From non-selective spectra to composition values
A near-infrared spectrometer records absorbance at many wavelengths, but no single wavelength is specific to protein, fat or moisture: the measurements are non-selective, and the information about one constituent is spread over many channels. Multivariate calibration is the family of methods that extracts quantitative information from such non-selective data by combining many channels at once, which also makes it possible to flag unusual samples as outliers [1]. ASTM E1655 sets out practices for multivariate calibration of infrared spectrometers in both the near-infrared (about 780 to 2500 nm) and the mid-infrared region, including criteria for validating the performance of a calibration [2]. This guide explains, without equations, how partial least squares (PLS) regression (the method at the centre of the standard calibration texts [1][3]) works in applications such as those of the food and feed industry, and how its performance is judged.
Latent variables
The obvious approach, an ordinary multiple linear regression on every wavelength, breaks down because spectra contain far more variables than there are calibration samples and neighbouring wavelengths are strongly correlated with each other. Geladi and Kowalski’s tutorial sets out these shortcomings of conventional regression methods and presents PLS as a way round them [4]. Wold et al. describe PLS regression as a linear model that relates the spectral matrix X to the reference values Y while also modelling the structure within X, and attribute its usefulness to its ability to handle many noisy, collinear and even incomplete variables [5].
In practice PLS compresses each spectrum into a small number of scores on latent variables, also called factors or components. Each latent variable is a weighted combination of all wavelengths, chosen so that it describes systematic spectral variation that is also related to the reference value; the composition is then predicted from these few scores rather than from hundreds of raw absorbances [4][5]. Haaland and Thomas showed how PLS relates to classical least squares, inverse least squares and principal component regression, and that chemically interpretable spectral information can be read from the intermediate steps of the algorithm, more directly than from principal component regression [6].
How many factors?
Each additional factor makes the model fit its own calibration samples more closely, but beyond a certain point the extra factors describe noise and sample-specific detail rather than chemistry. Gowen et al. summarise the consequence: too few latent variables under-fit and too many over-fit, and both lead to poor performance on future samples; one recognised sign of over-fitting is a noisy regression vector with sharp, oscillating peaks [7]. The number of factors is therefore chosen from the prediction error on samples not used to fit the model, by cross-validation or a separate test set, together with inspection of the regression coefficients [1][7]. Haaland and Thomas already described procedures for selecting the optimal number of factors in order to limit over-fitting of the calibration data [6].
Calibration, validation and the error statistics
Three root-mean-square errors are commonly reported [3]. RMSEC is the error on the calibration samples themselves and is always optimistic. RMSECV comes from cross-validation, in which each sample (or segment of samples) is predicted by a model built without it. RMSEP is the error on an independent validation set of samples that played no part in building the model, and is the best estimate of performance in routine use. ISO 12099, the guideline for NIR analysis of feeds and cereals, has separate clauses on calibration and initial validation and on statistics for performance measurement, including bias, the standard error of prediction (SEP) and slope [8]. Westad and Marini caution that randomly splitting one data set into calibration and test parts is justified only when there is no systematic structure in the samples; when validation is carried out across repeatability, reproducibility, instrument and raw-material variation, both the error figures and the number of factors can change [9]. Three practical consequences:
- Validation needs genuinely new samples: test samples should come from different batches, seasons or suppliers than the calibration set, so that the validation reflects the variation the analyzer will meet in use [9].
- The calibration procedure defines the range over which predictions are valid; samples outside it, or flagged as spectral outliers, should not be reported as normal results [1][2].
- Summary ratios such as the RPD (standard deviation of the reference values divided by the prediction error) are widely used, but Esbensen et al. criticise blind reliance on them as a tell-all measure of calibration quality [10].
The reference method sets the floor
A calibration is trained and tested against values from a laboratory reference method, and those values carry their own error. Faber and Kowalski point out that the prediction error estimated against measured reference values is an apparent error that is systematically larger than the true prediction error, because the random error of the reference measurement cannot be predicted by any model and is wrongly counted as an inadequacy of the calibration [11]. The relationship is subtler than “NIR can never be better than the reference”: DiFoggio lists that statement among recurrent misconceptions about NIR analysis and gives counter-examples [12]. What it means in practice is that a reported RMSEP cannot convincingly fall below the repeatability of the reference laboratory, so knowing that repeatability is part of interpreting any validation result [11][12].
PLS models for USTECH analyzers
PLS models for USTECH analyzers such as the ProLine2550 and the MasterLine17EC are developed in the caliX chemometrics software and deployed to the process through ProChem. Spectral pre-processing is covered in the guides on MSC and SNV and Savitzky-Golay filtering, and the software workflow in PLS regression in caliX. Validation follows the principles above, with independent samples and the statistics defined in ISO 12099 and ASTM E1655 [2][8]. Whether a parameter reaches the accuracy a process needs is established in a feasibility study in which a PLS model is built and validated on samples and reference values from your own process.
References
- [1] Martens, H., Næs, T. (1989). Multivariate Calibration. John Wiley & Sons, Chichester (paperback edition 1992, ISBN 978-0-471-93047-1). wiley.com
- [2] ASTM E1655-17(2024). Standard Practices for Infrared Multivariate Quantitative Analysis. ASTM International, West Conshohocken, PA. store.astm.org/e1655-17r24.html
- [3] Næs, T., Isaksson, T., Fearn, T., Davies, T. (2017). A User-Friendly Guide to Multivariate Calibration and Classification, 2nd edition. IM Publications Open, Chichester. doi:10.1255/978-1-906715-25-0
- [4] Geladi, P., Kowalski, B.R. (1986). Partial least-squares regression: a tutorial. Analytica Chimica Acta, 185, 1–17. doi:10.1016/0003-2670(86)80028-9
- [5] Wold, S., Sjöström, M., Eriksson, L. (2001). PLS-regression: a basic tool of chemometrics. Chemometrics and Intelligent Laboratory Systems, 58(2), 109–130. doi:10.1016/S0169-7439(01)00155-1
- [6] Haaland, D.M., Thomas, E.V. (1988). Partial least-squares methods for spectral analyses. 1. Relation to other quantitative calibration methods and the extraction of qualitative information. Analytical Chemistry, 60(11), 1193–1202. doi:10.1021/ac00162a020
- [7] Gowen, A.A., Downey, G., Esquerre, C., O’Donnell, C.P. (2011). Preventing over-fitting in PLS calibration models of near-infrared (NIR) spectroscopy data using regression coefficients. Journal of Chemometrics, 25(7), 375–381. doi:10.1002/cem.1349
- [8] ISO 12099:2017. Animal feeding stuffs, cereals and milled cereal products — Guidelines for the application of near infrared spectrometry. ISO, Geneva. iso.org/standard/67352.html
- [9] Westad, F., Marini, F. (2015). Validation of chemometric models – A tutorial. Analytica Chimica Acta, 893, 14–24. doi:10.1016/j.aca.2015.06.056
- [10] Esbensen, K.H., Geladi, P., Larsen, A. (2014). The RPD myth… NIR news, 25(5), 24–28. doi:10.1255/nirn.1462
- [11] Faber, K., Kowalski, B.R. (1997). Improved prediction error estimates for multivariate calibration by correcting for the measurement error in the reference values. Applied Spectroscopy, 51(5), 660–665. doi:10.1366/0003702971941061
- [12] DiFoggio, R. (1995). Examination of some misconceptions about near-infrared analysis. Applied Spectroscopy, 49(1), 67–75. doi:10.1366/0003702953963247

