The absorbance was recorded using the equation: absorbance = log(1/reflectance). The final spectrum used in the data analysis was generated using the mean of the triplicate measurements [22]. 2.3. Data Preprocessing The datasets, which are composed of NIR spectra and quantitative results (i.e....