Discrimination of plant-based milk alternatives: a pilot study comparing mid and near-infrared spectroscopy.
Stephan Freitag, Lukas Schlierenzauer, Marija Magdalena Babić, Bojan Šarkanj, David Lilek, Rudolf Krska
Department of Agricultural Sciences, Institute of Bioanalytics and Agro-Metabolomics, BOKU University, Konrad Lorenz Str. 20, 3430, Tulln, Austria. Stephan.Freitag@boku.ac.at. · Department of Agricultural Sciences, Institute of Bioanalytics and Agro-Metabolomics, BOKU University, Konrad Lorenz Str. 20, 3430, Tulln, Austria.
Key points
From the paper's conclusion- 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.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Assessing the Feasibility of Mid- and Near-Infrared Spectroscopy for Classifying Plant-Based Beverages and Predicting Nutrient Content.Foods (Basel, Switzerland) · 2026
- Rapid and Non-Destructive Prediction of Major Milk Fatty Acid Classes Using Handheld Near-Infrared Reflectance Spectroscopy Coupled with Chemometric Analysis.Molecules (Basel, Switzerland) · 2026
- Dataset of near-infrared hyperspectral images and 2D point-based spectra of beef patties with plant-based proteins added.Data in brief · 2026
- Application of partial least squares discriminant analysis to mid-infrared spectral data for discriminating green and roasted coffee processed by different post-harvest methods: MATLAB- and R-based computational tools and modeling pipelines.Data in brief · 2026
- A data-driven physiological profile classification for dairy cows using milk mid-infrared spectra and machine learning.Journal of dairy science · 2026
- Application of NIR spectroscopy with machine learning in the food industry: A comprehensive reviewFood Physics · 2026