← Back to Blogs & Publications How to Read an NIR Validation Report: SEP, Bias, RMSEP and RPD

How to Read an NIR Validation Report: SEP, Bias, RMSEP and RPD

What each statistic in an NIR calibration validation report measures (SEC, SECV, SEP, bias, slope, RMSEP, R² and RPD), how ISO 12099 and the ASTM practices treat them, why an independent validation set matters, and what the literature says about the limits of RPD and of the reference method, based on the standards and peer-reviewed sources.

Reading an NIR validation report

An NIR result is a prediction from a calibration fitted against a laboratory reference method. ISO 12099, the guideline for NIR analysis of feeds, cereals and milled cereal products in the food and feed industry, requires calibration equations to be validated locally, before use, on an independent test set that is representative of the population to be analysed [1]. ASTM E1655 includes criteria for validating multivariate infrared calibrations [2], and ASTM E2617 covers verifying that a calibration applies to the sample under test and agrees with an accepted reference method within control limits at a prespecified confidence [3]. Each statistic answers a different question.

Calibration, cross-validation and independent validation

The standard error of calibration (SEC) is computed on the samples the model was fitted to; it also scales the prediction uncertainty of a new sample, which grows with that sample’s leverage, its distance from the centre of the calibration set [4]. The standard error of cross-validation (SECV) comes from repeatedly leaving calibration samples out and predicting them. Esbensen and Geladi call cross-validation a sub-optimal simulation of test-set validation, because it rests on one data set and omits the sampling variance of future samples [5]. Westad and Marini add that a random split of one data set is justified only without systematic stratification of the samples [6].

In ISO 12099 the validation samples must be independent of the calibration set (new batches in a plant, a new crop or location in agriculture), at least 20 are needed for bias, slope and SEP, the NIR protocol must match routine use, and the calibration is valid only for the sample types, range and temperature validated [1].

Bias, SEP, RMSEP and slope as ISO 12099 defines them

ISO 12099 defines the residual of each validation sample as the reference value minus the NIR prediction, so a negative bias means that the predictions are too high [1]. The bias is the mean of these residuals, and the standard treats bias, the root mean square error of prediction (RMSEP), the standard error of prediction (SEP) and the slope in separate clauses [1]. In the usual decomposition, set out by Bellon-Maurel et al., the squared total prediction error (RMSEP) equals the squared bias plus the squared bias-corrected error (SEP), and only the latter shrinks by averaging replicates [4]. The slope is obtained by regressing the reference values on the predictions; if it differs significantly from 1, the calibration is skewed [1].

If the mean difference between NIR and reference values is significantly different from zero, the calibration is biased, and the bias may be removed by adjusting the constant term; slope adjustment is generally not recommended unless new sample types or instruments are involved [1]. After bias correction, samples with a residual beyond ±3 SEP are examined as possible outliers; a sample whose reference and NIR values are confirmed on re-measurement stays in the statistics [1] (see outlier detection with the Mahalanobis distance). What SEP is acceptable is not fixed by the standard; it depends on the reference method, the range and the purpose, and is for the parties involved to decide [1].

Statistic Obtained from Tells you
SEC Calibration-sample residuals Fit to the calibration samples only [4]
SECV Cross-validation Internal estimate; omits future sampling variance [5]
Bias Mean validation residual Systematic error; checked for significance against zero [1]
SEP Residual scatter after bias removal Random error [4]
RMSEP Root mean square residual Total error, bias included [4]
Slope Reference regressed on prediction Skew if significantly different from 1 [1]
R² Squared correlation Depends on validation design [6]
RPD Reference standard deviation / SEP Error relative to spread; misleading for skewed data [4][7]

R² and RPD: useful, but not on their own

Williams and Sobering introduced the RPD statistic, which relates the standard error of prediction to the standard deviation of the original data, to evaluate calibrations for grains and seeds [7]; Williams later revisited its reasoning in a tutorial note [8][9]. Bellon-Maurel et al. point out that the categories widely used in soil science (RPD above 2 excellent, 1.4 to 2 fair, below 1.4 not reliable) were set without a statistical basis, and that other authors proposed much higher thresholds [4]. Because the standard deviation describes a skewed population poorly, they propose the ratio of performance to inter-quartile distance (RPIQ), and they show that the SEP itself depends on the distribution of the validation set, since PLS pulls predictions towards the calibration mean [4]. Esbensen et al. criticise blind reliance on RPD as a tell-all index of calibration quality [9], and Westad and Marini show that R² also depends on how the validation is designed [6]. In practice:

  • Read bias, SEP and slope first, in the units of the reference method, and check them against the ISO 12099 tests [1].
  • Report the validation-set distribution next to any RPD or R² [4][6].
  • Compare models only on the same independent validation set [4][5].

The reference method sets a floor

ISO 12099 expects the reference method to be in statistical control and its precision to be known, which matters even more for the validation samples than for calibration [1]. Faber and Kowalski show that a prediction error estimated against measured reference values is an apparent error, systematically larger than the true prediction error, because the random reference error cannot be predicted by any model yet is counted against the calibration [10]. DiFoggio, however, gives counter-examples to the belief that NIR can never outperform its reference method [11]. An SEP should therefore always be read next to the precision of the reference method, which is why ISO 12099 ties the acceptability of an SEP to the performance of that method [1][10].

Validating calibrations for USTECH analyzers

Calibration models for USTECH analyzers such as the MasterLine17EC at-line analyzer and the ProLine2550 inline analyzer can be built and validated in the caliX chemometrics software (the method is explained in the guide on how PLS calibration works). For a given parameter, a feasibility study on your own samples, checked against your reference analyses, shows whether the accuracy your process needs is within reach.

References

  • [1] 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
  • [2] ASTM E1655-17(2024). Standard Practices for Infrared Multivariate Quantitative Analysis. ASTM International, West Conshohocken, PA. store.astm.org/e1655-17r24.html
  • [3] ASTM E2617-17(2024). Standard Practice for Validation of Empirically Derived Multivariate Calibrations. ASTM International, West Conshohocken, PA. store.astm.org/e2617-17r24.html
  • [4] Bellon-Maurel, V., Fernandez-Ahumada, E., Palagos, B., Roger, J.-M., McBratney, A. (2010). Critical review of chemometric indicators commonly used for assessing the quality of the prediction of soil attributes by NIR spectroscopy. TrAC Trends in Analytical Chemistry, 29(9), 1073–1081. doi:10.1016/j.trac.2010.05.006
  • [5] Esbensen, K.H., Geladi, P. (2010). Principles of Proper Validation: use and abuse of re-sampling for validation. Journal of Chemometrics, 24(3–4), 168–187. doi:10.1002/cem.1310
  • [6] 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
  • [7] Williams, P.C., Sobering, D.C. (1993). Comparison of commercial near infrared transmittance and reflectance instruments for analysis of whole grains and seeds. Journal of Near Infrared Spectroscopy, 1(1), 25–32. doi:10.1255/jnirs.3
  • [8] Williams, P. (2014). The RPD statistic: a tutorial note. NIR news, 25(1), 22–26. doi:10.1255/nirn.1419
  • [9] Esbensen, K.H., Geladi, P., Larsen, A. (2014). The RPD myth… NIR news, 25(5), 24–28. doi:10.1255/nirn.1462
  • [10] 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
  • [11] DiFoggio, R. (1995). Examination of some misconceptions about near-infrared analysis. Applied Spectroscopy, 49(1), 67–75. doi:10.1366/0003702953963247
USTECH Innovations Logo

Discuss this application for your process

Our application team can walk through the method, share the supporting literature and discuss how it applies to your process.

Contact Us

Read Next

PLS Regression in caliX
GUIDE

Introduction to PLS Regression in caliX Suite

A practitioner's walk through a PLS calibration: how the data are split, how the pre-processing and the number of latent variables are chosen by validation, which diagnostics to read, and how the model is kept alive in production.

Read Guide
What Is NIR Spectroscopy?
GUIDE

What Is NIR Spectroscopy?

An introduction to near-infrared spectroscopy: what NIR light is, where it was discovered, what overtone and combination bands reveal, why it depends on calibration and where the technique reaches its limits.

Read Guide