In order to improve the predictability of selected models,
pre-processing of spectra such as baseline correction, smoothing
(second order), full multiplicative scatter correction (MSC) and
first, second and third order derivative (Savitzky–Golay, by averaging
one point to the left and one point to the right and fitting a
second order polynomial) of selected range of wavelengths were
performed.