Discrimination of plant-based milk alternatives: a pilot study comparing mid and near-infrared spectroscopy
5 affiliations
- 1Department of Agricultural Sciences, Institute of Bioanalytics and Agro-Metabolomics, BOKU University, Konrad Lorenz Str. 20, 3430 Tulln, Austria
- 2Department of Food Technology, University North, Trg Dr. Žarka Dolinara 1, 48000 Koprivnica, Croatia
- 3Biotech Campus Tulln, University of Applied Sciences Wiener Neustadt, Konrad Lorenz Str. 10, 3430 Tulln, Austria
- 4Department of Chemistry and Physics of Materials, Paris Lodron University Salzburg, Jakob-Haringer-Str. 2a, 5020 Salzburg, Austria
- 5Institute for Global Food Security, School of Biological Sciences, Queen’s University Belfast, University Road, Belfast, Northern Ireland BT7 1NN UK
Abstract
Plant-based milk alternatives (PBMAs) are expanding rapidly, motivating the development of fast, minimal-prep analytical tools for their analysis. We collected and analyzed (n = 154) commercial PBMAs (almond, oat, rice, soy, coconut) from Austrian and Croatian supermarkets using attenuated total reflection mid‑infrared (ATR‑MIR) and diffuse reflection near‑infrared (DR‑NIR) spectroscopy to compare classification performance across spectral regions. Spectra were acquired without notable sample preparation and processed using second-derivative transformation. Exploratory principal component analysis (PCA) and partial least squares discriminant analysis (PLS‑DA) were applied in one‑class (PLS1‑DA) and multi‑class (PLS2‑DA) modes. Comparison of using either NIR or MIR was done on the Austrian samples only, as only legacy MIR data was available for the Croatian samples. A significant difference (p < 0.05) in the obtained predictions was found between the usage of MIR and NIR for one-class PLS1-DA identification of oat and almond models as well as for the discrimination using the PLS2-DA multi-class approach. Cross‑validated multi‑class macro‑F1-score reached 0.90 (MIR) versus 0.81 (NIR), a F1-score of 0.98 for one-class almond classification using MIR data and 0.90 for soy one-class classification using the NIR data was obtained. The MIR models trained on Austrian data showed excellent generalization on Croatian samples, for almond, oat, rice, and soy, while coconut showed poor generalization. Overall, our results suggest that ATR‑MIR offers slightly better discrimination to DR‑NIR for PBMA classification, though NIR remains attractive for straightforward portable screening. In the future, expanding sample diversity and exploring advanced machine learning modelling could further improve performance, particularly for coconut PBMAs.
Graphical Abstract:
Supplementary Information: The online version contains supplementary material available at https://doi.org/10.1007/s00216-026-06737-2.
Related
- Tyrosine–silver interactions: Comparing [Tyr,H]+ and [Tyr,Ag]+ using mass spectrometry, UVPD, and IRMPD action spectroscopy
- Geographical origin discrimination of Fructus Aurantii by visible near-infrared imaging with machine learning and explainable analysis
- Near-infrared spectroscopy for rapid and non-destructive assessment of PFAS effects in blue mussels (Mytilus spp.): a proof-of-concept study
- A Chemometric Framework Integrating Serum FTIR Spectroscopy and Routine Biochemical Indices for Minimally Invasive Discrimination of Colorectal and Lung Cancer
- Elaboration of chalcogenide glass tapered fibers for infrared evanescent wave spectroscopy for monitoring of chemical reactions in Li(Na)-ion batteries
BibTeX
@article{freitag2026discrimination,
title = {{Discrimination of plant-based milk alternatives: a pilot study comparing mid and near-infrared spectroscopy}},
author = {Stephan Freitag and Lukas Schlierenzauer and Marija Magdalena Babić and Bojan Šarkanj and David Lilek and Rudolf Krska},
journal = {Analytical and Bioanalytical Chemistry},
year = {2026},
month = aug,
doi = {10.1007/s00216-026-06737-2},
url = {https://doi.org/10.1007/s00216-026-06737-2},
note = {CC BY 4.0},
}
RIS
TY - JOUR
TI - Discrimination of plant-based milk alternatives: a pilot study comparing mid and near-infrared spectroscopy
AU - Stephan Freitag
AU - Lukas Schlierenzauer
AU - Marija Magdalena Babić
AU - Bojan Šarkanj
AU - David Lilek
AU - Rudolf Krska
PY - 2026
DA - 2026/08/12
JO - Analytical and Bioanalytical Chemistry
DO - 10.1007/s00216-026-06737-2
UR - https://doi.org/10.1007/s00216-026-06737-2
AB - Plant-based milk alternatives (PBMAs) are expanding rapidly, motivating the development of fast, minimal-prep analytical tools for their analysis. We collected and analyzed (n = 154) commercial PBMAs (almond, oat, rice, soy, coconut) from Austrian and Croatian supermarkets using attenuated total reflection mid‑infrared (ATR‑MIR) and diffuse reflection near‑infrared (DR‑NIR) spectroscopy to compare classification performance across spectral regions. Spectra were acquired without notable sample preparation and processed using second-derivative transformation. Exploratory principal component analysis (PCA) and partial least squares discriminant analysis (PLS‑DA) were applied in one‑class (PLS1‑DA) and multi‑class (PLS2‑DA) modes. Comparison of using either NIR or MIR was done on the Austrian samples only, as only legacy MIR data was available for the Croatian samples. A significant difference (p < 0.05) in the obtained predictions was found between the usage of MIR and NIR for one-class PLS1-DA identification of oat and almond models as well as for the discrimination using the PLS2-DA multi-class approach. Cross‑validated multi‑class macro‑F1-score reached 0.90 (MIR) versus 0.81 (NIR), a F1-score of 0.98 for one-class almond classification using MIR data and 0.90 for soy one-class classification using the NIR data was obtained. The MIR models trained on Austrian data showed excellent generalization on Croatian samples, for almond, oat, rice, and soy, while coconut showed poor generalization. Overall, our results suggest that ATR‑MIR offers slightly better discrimination to DR‑NIR for PBMA classification, though NIR remains attractive for straightforward portable screening. In the future, expanding sample diversity and exploring advanced machine learning modelling could further improve performance, particularly for coconut PBMAs. Graphical Abstract: Supplementary Information: The online version contains supplementary material available at https://doi.org/10.1007/s00216-026-06737-2.
SN - 1618-2642
SN - 1618-2650
ER -