Procedure designed to determine and correct background signals in a spectrum , said spectrum comprising signals on a multitude of spectral points , characterized by the following steps: (a) Calculation of at least three functions from the signal values of the spectrum, wherein the functions are selected from the following: (A) Moving average (B) Variance (C) Skewness (D) Kurtosis (E) Moving average with a fixed window width of 3 points (F) Second derivative (G) Median (H) Maximum (I) Minimum (J) Difference between the maximum and minimum (K) Quotient of the central signal value and the average value (L) Quotient (maximum average value)/(minimum average value); (b) Assignment of probabilities P i (band) for the presence of bands for each point in each of the calculated functions; (c) Totalization of the probabilities P i (band) to form a total probability ΣP i (band) from all the calculated functions for each point; (d) Calculation of a probability P(background) for the presence of a background for each point of the spectrum from the total probability ΣP i (band) according to P background = 1 − ΣP i band wherein negative values are set to zero. (e) Calculation of a fit across the signal values for all points of the original spectrum, wherein the signal on each point is only considered with the corresponding probability for the presence of background P(background) for the fit, and (f) Subtraction of the background function determined in this way from the signal values of the original spectrum to generate a background-corrected spectrum. (a) Calculation of at least three functions from the signal values of the spectrum, wherein the functions are selected from the following: (A) Moving average (B) Variance (C) Skewness (D) Kurtosis (E) Moving average with a fixed window width of 3 points (F) Second derivative (G) Median (H) Maximum (I) Minimum (J) Difference between the maximum and minimum (K) Quotient of the central signal value and the average value (L) Quotient (maximum average value)/(minimum average value); (A) Moving average (B) Variance (C) Skewness (D) Kurtosis (E) Moving average with a fixed window width of 3 points (F) Second derivative (G) Median (H) Maximum (I) Minimum (J) Difference between the maximum and minimum (K) Quotient of the central signal value and the average value (L) Quotient (maximum average value)/(minimum average value); (b) Assignment of probabilities P i (band) for the presence of bands for each point in each of the calculated functions; (c) Totalization of the probabilities P i (band) to form a total probability ΣP i (band) from all the calculated functions for each point; (d) Calculation of a probability P(background) for the presence of a background for each point of the spectrum from the total probability ΣP i (band) according to P background = 1 − ΣP i band wherein negative values are set to zero. (e) Calculation of a fit across the signal values for all points of the original spectrum, wherein the signal on each point is only considered with the corresponding probability for the presence of background P(background) for the fit, and (f) Subtraction of the background function determined in this way from the signal values of the original spectrum to generate a background-corrected spectrum. <EOS>