The invention discloses an automatic baseline
correction method for
infrared spectroscopy. The automatic baseline
correction method comprises the following steps: A1, preparing a to-be-detected sample; B1, acquiring an
infrared spectrum of the to-be-detected sample by using a
spectrograph, and preprocessing the spectrum to obtain the original
absorbance spectrum; C1, for spectral intensity Y=[y1, y2...yN] in the original
absorbance spectrum at equal interval, performing average minimum updating on the original
absorbance spectrum, and obtaining the spectral intensity Y1=[y1,...yi+1] of the absorbance spectrum after the first update; D1, calculating the sum of range differences, namely Sabs(1) =Sigma of an absolute value of (Y-Y1); E1, repeating the step C1 for performing iterative computations for n times, updating the Y1 to obtain Y2, deducing the rest to obtain the Y1, Y2...Yn, further performing iterative computations on the step D1 to obtain Sabs(n), then calculating until the deltaSabs(n-1) / Sabs(n) is less than or equal to an iterative threshold
lambda, and stopping calculating to obtain a baseline Yn of the absorbance spectrum, wherein n is more than 2; and F1, subtracting the baseline from the original absorbance spectrum, thereby obtaining the corrected absorbance spectrum.