Skip to Content
SensorsSensors
  • Article
  • Open Access

21 March 2026

17 Pages

Embedded MOX-Based Volatilomic Sensing for Real-Time Classification of Plant-Based Milk Beverages

,
and
1
Department of Life Sciences, University of Modena and Reggio Emilia, Via J.F. Kennedy, 17/i, 42124 Reggio Emilia, RE, Italy
2
Institute of Bioscience and Bioresources (CNR-IBBR), National Research Council URT Reggio Emilia, Via J.F. Kennedy, 17/i, 42124 Reggio Emilia, RE, Italy
3
Nano Sensor System s.r.l. (NASYS), Via Alfonso Catalani, 9, 42124 Reggio Emilia, RE, Italy
*
Author to whom correspondence should be addressed.

Abstract

The increasing diffusion of plant-based milk alternatives poses new challenges at the intersection of food safety and consumer experience, particularly regarding allergen cross-contamination and beverage performance during preparation. Traditional quality control strategies are typically confined to upstream production stages and are unable to address individualized risks and sensory variability at the point of consumption. In this study, we propose an embedded volatilomic sensing approach that combines metal oxide semiconductor (MOX) sensor arrays with lightweight artificial intelligence algorithms to enable real-time, on-device decision-making. The volatilome of four commercially available plant-based milk beverages (oat, almond, soy, and coconut) was characterized using GC–MS/SPME as a reference method, while a MOX-based electronic nose provided rapid, non-destructive sensing of volatile fingerprints. Linear Discriminant Analysis demonstrated clear discrimination among beverage types based on their volatile signatures, supporting the use of MOX sensor arrays as functional descriptors of compositional identity and process-related variability. Beyond beverage classification, the proposed framework is designed to support future implementation of (i) screening for anomalous volatilomic patterns potentially compatible with accidental cow’s milk carryover in shared preparation settings and (ii) adaptive tuning of preparation parameters (e.g., foaming-related settings) in smart beverage systems. The results highlight the role of embedded volatilomic intelligence as a unifying layer between personalized risk-aware screening and sensory-oriented process control, paving the way for intelligent food-processing appliances capable of autonomous, real-time adaptation at the point of consumption.

1. Introduction

While food safety regulations and quality control protocols are well established at the industrial level, they are typically designed for population-scale risk mitigation and primarily operate upstream along the production chain [1]. These approaches are effective in ensuring baseline compliance and reducing systemic hazards, but they are not conceived to manage individualized exposure scenarios or the dynamic variability occurring during food preparation and consumption [2]. As a result, potential risks arising at the point of use often remain unmonitored [3]. This limitation is particularly relevant for plant-based milk beverages, whose rapid diffusion as alternatives to cow’s milk has introduced new challenges related to allergen management and product variability [4]. In this context, accidental cross-contamination with cow’s milk can pose serious risks to allergic or intolerant consumers, especially in shared preparation environments such as cafés, vending systems, and smart domestic appliances, where different beverages are processed sequentially using the same equipment [5,6].
In parallel with these safety considerations, the last decade has witnessed a growing adoption of smart food-processing appliances aimed at improving sensory performance and user experience [7]. Automated systems for beverage preparation increasingly rely on digital control of parameters such as temperature, aeration, pressure, and mixing conditions to ensure reproducibility and customization [8]. However, these systems typically operate independently of compositional safety assessment, relying on predefined recipes, barcode recognition, or user-selected settings rather than on real-time interpretation of the product being processed [9]. Consequently, safety assurance and sensory optimization remain conceptually and technologically decoupled, despite being intrinsically linked from the consumer’s perspective. To date, most smart beverage systems operate without any embedded chemical sensing layer, relying instead on predefined recipes or user-selected parameters, with no real-time verification of the product being processed [10].
Bridging food safety and consumer experience therefore requires sensing architectures capable of interpreting complex food matrices in real time and translating chemical information into actionable, on-device decisions [11]. Among the different chemical layers accessible for such real-time sensing, the volatilome represents a particularly informative interface between product composition, processing history, and functional behavior [12]. Volatile organic compounds reflect both the nature of raw materials and the technological treatments applied during production, while also influencing key physicochemical and sensory properties relevant during preparation, such as aroma release, foam formation, texture, and interaction with coffee matrices. For plant-based milk beverages, whose formulation often involves complex emulsions and stabilizing systems, volatile profiles can thus provide indirect yet meaningful information on both compositional identity and technological performance [13].
Despite its relevance, volatilomic information is still predominantly accessed through laboratory-based analytical techniques, such as gas chromatography coupled with mass spectrometry, which offer high chemical resolution but are inherently incompatible with real-time, embedded applications. Recent advances in gas sensing technologies, and in particular in metal oxide semiconductor (MOX) sensor arrays, have opened new opportunities for capturing global volatile patterns in a rapid and non-destructive manner. Rather than targeting the identification of individual compounds, MOX-based systems respond to complex mixtures of volatile species, generating characteristic signal patterns that can be interpreted as holistic fingerprints of the sampled matrix when combined with appropriate data processing strategies [14].
In recent years, several studies have investigated the use of artificial intelligence (AI) techniques combined with electronic nose (e-nose) systems for milk classification and quality assessment. Machine learning algorithms applied to gas sensor arrays have demonstrated promising performance in milk source identification, spoilage detection, and compositional grading in dairy matrices [4]. Supervised models such as support vector machines, linear discriminant analysis, and ensemble methods have been successfully employed to discriminate between different milk types and to detect freshness alterations based on volatile fingerprints. Furthermore, MOX-based sensing platforms integrated with pattern recognition approaches have been proposed for rapid monitoring of milk authenticity and quality, highlighting the potential of chemiresistive sensors for real-time dairy analysis [15,16]. However, most of these studies focus primarily on bovine milk and traditional dairy products, with limited attention to plant-based milk alternatives, whose volatilomic composition differs substantially due to botanical origin and formulation complexity [17]. In addition, many reported approaches rely on laboratory-scale instrumentation or external computational resources, rather than on embedded, lightweight intelligence suitable for integration into smart food-processing appliances [18,19].
In this context, the integration of MOX sensor arrays with lightweight artificial intelligence algorithms enables the on-device interpretation of volatilomic fingerprints, ensuring low latency, data privacy, and autonomous operation without reliance on cloud-based computation. Such embedded approaches are particularly relevant for smart food-processing environments, where rapid decision-making is required to dynamically adapt process parameters. By encoding information related to both compositional identity and functional behavior, embedded volatilomic sensing establishes the basis for simultaneously supporting real-time beverage discrimination and future point-of-use screening and process adaptation.
Recent advances in gas-sensing technologies are increasingly enabling scalable and system-integrable electronic-nose platforms, driven by progress in both device-level manufacturing and signal acquisition strategies. On the device side, wafer-level approaches for integrating high-performance nanomaterial sensing layers into MEMS architectures are emerging as key enablers for reproducible, low-power, and scalable gas-sensing chips. For example, Zhang et al. [20] proposed a wafer-level “film-first, cantilever-later” strategy enabling uniform nanomaterial incorporation (e.g., Pd/SnO2) into suspended MEMS structures, addressing long-standing limitations in throughput and device-to-device uniformity for micro-hotplate gas sensors. In parallel, methodological innovations in sensor operation and signal acquisition are being proposed to amplify informative transients and enhance gas identification capability in resistive sensors, moving beyond material-only optimization. In this context, Zhou et al. [21] highlighted how edge intelligence represents a key paradigm for shifting processing and inference capabilities from centralized infrastructures to the network edge, enabling real-time analysis of large volumes of data generated by distributed devices and facilitating autonomous decision-making in sensing systems.
Within this evolving technological landscape, the contribution of the present study does not lie in the development of new materials or fabrication processes, but in the definition of a system-level embedded volatilomic architecture. We demonstrate the integration of a MOX sensor array with lightweight, interpretable machine-learning models, using GC–MS–SPME as a chemical reference to validate signal interpretation. The proposed framework enables real-time discrimination of complex food headspaces under controlled conditions, translating volatile fingerprints into actionable on-device decisions. It is further conceived with scalability in mind and is compatible with future integration into smart beverage preparation appliances [22]. The aim of this work is to assess the feasibility of employing embedded MOX sensors for the real-time discrimination of plant-based milk beverages. Beyond demonstrating classification performance, the study lays the groundwork for future applications in anomaly detection, authenticity verification, and point-of-use safety screening.

2. Materials and Methods

2.1. Plant-Based Milk

Four types of commercially available plant-based beverages—oat, coconut, almond, and soy—were analyzed. All samples were purchased from local supermarkets and stored under refrigeration (4 ± 1 °C) until analysis. Prior to measurement, the beverages were gently homogenized to ensure representative sampling and to minimize phase separation effects. Two parallel analytical approaches were applied for the characterization of the volatile organic compound (VOC) profiles: Gas Chromatography–Mass Spectrometry (GC–MS) and metal oxide (MOX) sensor-based analysis (Figure 1). This dual analytical setup allowed a complementary evaluation of the volatilome: the GC–MS analysis provided compound-specific identification and quantification of VOCs, whereas the MOX sensor system enabled rapid, non-destructive detection of global volatile patterns for comparative and classification purposes.
Figure 1. Schematic representation of the overall experimental workflow.

2.2. Gas Chromatography Mass Spectrometry Analysis

Gas Chromatography–Mass Spectrometry (GC–MS) coupled with Solid Phase Microextraction (SPME) was employed for the qualitative and semi-quantitative characterization of volatile organic compounds (VOCs) constituting the food volatilome, enabling the detection and profiling of a wide range of volatile species.
Sample preparation was performed using a DVB/CAR/PDMS 50/30 μm SPME fiber (Supelco Co., Bellefonte, PA, USA). For each beverage type (oat, coconut, almond, and soy), three replicate analyses were carried out. A 5 mL aliquot of each sample was transferred into a 20 mL glass vial sealed with a screw cap fitted with a PTFE/silicone septum. The vials were equilibrated in a thermostatic block at 40 °C for 15 min to promote headspace enrichment. Subsequently, the SPME fiber was exposed to the vial headspace for 45 min at 40 °C to allow adsorption of VOCs onto the fiber coating. The fiber was then thermally desorbed in the GC injector port at 250 °C for 6 min in direct mode to ensure complete analyte transfer. Chromatographic separation was performed using a Shimadzu GC-2020 system (Kyoto, Japan) coupled with a Shimadzu MS-QP2020 mass spectrometer. A MEGA-5MS capillary column (25 m × 0.25 mm i.d., 0.25 μm film thickness; Agilent Technologies, Santa Clara, CA, USA) was used for analyte separation. The injector temperature was set at 250 °C. The mass spectrometer operated in electron impact (EI) mode at 70 eV, with the ion source temperature maintained at 240 °C. Spectra were acquired in total ion current (TIC) mode over a mass range of 35–500 m/z, with a scan interval of 0.3 s. Hydrogen (99.99%), supplied by a GENius PF500 generator (FullTech Instruments S.r.l., Rome, Italy), was used as the carrier gas under the following conditions: pressure 35.7 kPa, column flow 2.2 mL min−1, linear velocity 87.4 cm s−1, and purge flow 4.0 mL min−1. The detector temperature was maintained at 240 °C, and the GC–MS interface at 200 °C. The GC oven temperature program started at 40 °C (held for 3.5 min), ramped to 90 °C at 5 °C min−1, increased to 220 °C at 12 °C min−1, and was finally held at 220 °C for 7 min.
Compound identification was performed using the instrument’s proprietary data-processing software by comparing the acquired mass spectra with the NIST11, NIST11b, and FFNSC2 reference libraries. Library matching was automatically carried out, and only identifications with a spectral similarity index ≥ 90% were accepted. When consistent matches were obtained across multiple libraries, the assignment was considered reliable [23,24]. As retention indices (RI) were not independently calculated, compound identifications should be considered tentative and based on spectral matching combined with chromatographic consistency. Retention time (RT) values obtained under the described chromatographic conditions are reported in Annex 1. Chromatographic peaks were automatically integrated using peak area as the quantification parameter, applying predefined software settings (slope 100 min−1, peak width 2 s, drift 0 min−1, doubling time (T.DBL) 1000 min), with no smoothing applied. Following automated processing, manual inspection of each chromatogram was conducted to verify peak quality and ensure correct peak assignment. Volatile compounds were quantified on a semi-quantitative basis and expressed as relative abundance (% total GC peak area), reported as mean ± standard deviation (SD). No external calibration curves or internal standards were used, as the purpose of the GC–MS analysis was to obtain comparative volatilomic profiles rather than absolute concentration values. Coupling GC–MS with SPME enabled robust qualitative profiling of complex volatile mixtures under controlled analytical conditions [25,26].

2.3. MOX Sensor Device and Experimental Setup

Metal oxide semiconductor (MOX) sensors were employed for the rapid and non-destructive detection of volatile organic compounds (VOCs) emitted by the beverages. Sensor responses arise from changes in electrical conductivity upon interaction with volatile species present in the sample headspace [27,28,29,30,31]. Measurements were performed using the S3+ device, an electronic platform developed by Nano Sensor Systems (Reggio Emilia, Italy) for real-time VOC analysis (Figure 2).
Figure 2. MOX-based sensing platform used in this study: (A) internal printed circuit board integrating the sensing elements and control electronics; (B) external enclosure of the S3+ device; (C) user interface display during operation. The system was connected to sealed glass vials for headspace sampling under controlled flow and temperature conditions.
The system integrates two independent MOX sensors, each comprising three sensitive elements, resulting in a total of six sensing channels (Table 1). The sensitive elements are based on tin oxide (SnO2), palladium-doped tin oxide (SnO2 + Pd), and gold-doped tin oxide (SnO2 + Au), a configuration that broadens the overall sensor array response toward different classes of volatile compounds. All sensors were operated at a constant temperature of 500 °C, automatically regulated by the electronic control unit to ensure measurement stability and reproducibility. Importantly, the operating temperature of 500 °C refers exclusively to the sensing layer and not to the bulk sample [31]. Each element incorporates an integrated micro-heater controlled via a closed-loop system that continuously monitors heater resistance to maintain stable thermal conditions and minimize temperature fluctuations across acquisition cycles. The beverage itself was maintained at 40 °C during preconditioning, and only gas-phase VOCs reached the heated sensing surface. Detection occurs through surface redox interactions with chemisorbed oxygen species, without implying thermal decomposition of the liquid matrix. The elevated temperature is required to activate surface oxygen species, enhance reaction kinetics, and ensure stable chemiresistive responses, in accordance with established MOX sensing principles [2].
Table 1. Configuration of the MOX sensing array integrated into the S3+ device.
Prior to experimental measurements, the sensors underwent a conditioning protocol consisting of thermal annealing (500–800 °C for 1–10 h) to stabilize the sensitive layers, followed by aging in clean air to optimize baseline resistance. System validation was performed through controlled exposure to calibration gas mixtures to verify response reproducibility and minimize signal drift during prolonged operation.
Measurements were conducted in 20 min acquisition cycles, including 60 s of stabilization, 120 s of sample exposure, and 60 s of recovery. Sensor signals were acquired at a sampling frequency of 1 Hz and normalized with respect to baseline resistance (R/R0) to ensure comparability across measurements.
The device is equipped with a measurement chamber (11 cm × 6.5 cm × 1.3 cm) designed to ensure uniform airflow and consistent sensor exposure to the sample headspace [32,33]. The fluidic system includes a membrane pump (KNF Neuberger GmbH, Freiburg, Germany; model NMP05B), an inlet solenoid valve (Camozzi Group S.p.A., Brescia, Italy; model K000-303-K11M), and an activated carbon filter for air purification, minimizing interference from ambient air [34]. Airflow was regulated up to 250 sccm, and sampling and purging phases were automatically controlled by the system [35].
For analysis, 25 mL of each beverage (oat, coconut, almond, and soy) were transferred into hermetically sealed glass containers and preconditioned at 40 °C for 10 min to promote VOC accumulation in the headspace. The containers were then directly connected to the device for sampling under controlled flow conditions. Ten measurements were performed for each beverage type, corresponding to technical replicates on the same commercial product (single brand and batch) to assess short-term repeatability under controlled laboratory conditions.

Machine Learning Approaches for MOX Sensor Signal Processing

The analysis of the signals generated by the metal oxide semiconductor (MOX) sensors was performed using multivariate statistical techniques and machine learning (ML) approaches, with the aim of processing and classifying the data acquired by the sensing system. Prior to data analysis, the raw sensor signals underwent a preprocessing phase to improve data quality and minimize experimental noise. Each signal was normalized with respect to its baseline resistance (R0), temporally aligned, and filtered using a Savitzky–Golay filter to attenuate high-frequency fluctuations while preserving the original shape of the sensor response.
Data analysis was carried out using Linear Discriminant Analysis (LDA), a supervised dimensionality reduction and classification technique. LDA was selected as a lightweight, interpretable, and computationally efficient method, consistent with the low-complexity and embedded-oriented nature of the proposed sensing framework. The method projects the original multidimensional sensor responses into an optimized discriminant space that maximizes the separation between predefined classes while minimizing within-class variability.
LDA was applied to the feature set extracted from the temporal responses of the six MOX sensing elements, enabling the identification of discriminative patterns associated with the different plant-based beverage types. The resulting discriminant space was used to visualize class separation and to assess the robustness and repeatability of the sensor responses across replicates (Figure 3).
Figure 3. Features extracted from the recorder tracks of each sensor.
All preprocessing, feature extraction, discriminant analysis, and data visualization procedures were performed using MATLAB R2019b (MathWorks, Natick, MA, USA). Cloud-based computational resources provided by the Microsoft Azure platform were used exclusively for offline data processing and visualization. However, the proposed signal processing and classification approach is inherently compatible with fully on-device implementation, as it relies on lightweight algorithms that can be deployed on embedded hardware without the need for continuous cloud connectivity.

3. Results and Discussion

3.1. Gas Chromatography Mass Spectrometry Result

The GC–MS–SPME analysis of the four plant-based milk beverages led to the identification of 102 volatile organic compounds (Table 2), distributed among the main chemical classes shown in Figure 4, including alkanes, alkenes, alcohols, esters, terpenes, and carboxylic acids.
Table 2. Volatile compounds identified by GC–MS–SPME in the analyzed plant-based beverages. Relative abundance is expressed as the mean percentage of total GC peak area, providing an indication of the contribution of each compound to the overall volatilomic profile of the sample. Compounds not detected in a specific beverage are reported as blank cells.
Figure 4. Volatile profile comparison of plant-based milks.
Across all samples, the volatile profiles were dominated by alkanes, which represented the most abundant chemical class in terms of relative contribution. This predominance reflects the lipid-based nature of plant-derived milk alternatives and the influence of industrial processing steps, such as thermal treatments, on the transformation of native lipid fractions.
A set of hydrocarbon compounds—including undecane 5-methyl, dodecane and its branched isomers (e.g., dodecane 4,6-dimethyl), and eicosane—was consistently detected across all beverage types. The recurrent presence of these compounds defines a common volatilomic background shared by the different matrices, indicating that despite differences in raw materials, plant-based milk beverages exhibit comparable lipid-derived volatile frameworks. This shared background provides a stable chemical baseline for comparative analysis and fingerprint-based discrimination [5].
Superimposed on this common framework, each beverage exhibited matrix-specific deviations in the relative distribution of volatile compounds. The oat-based beverage was characterized by a higher relative contribution of C10–C12 branched alkanes, with dodecane 4,6-dimethyl representing more than 22% of the total volatile fraction. This profile is consistent with the presence and processing of cereal-derived lipids. The almond-based beverage displayed a more complex volatilomic composition, enriched in C11–C14 branched hydrocarbons and characterized by the presence of octane 2,3,6,7-tetramethyl, which was scarcely detected in the other matrices. These features reflect the lipid-rich nature of almonds and contribute to a distinctive volatile fingerprint.
The coconut-based beverage showed a volatile distribution partially overlapping with that of almond in terms of alkane content, but it was clearly distinguished by the presence of oxygenated compounds, particularly 11-methyldodecanol. This compound, associated with medium-chain saturated fatty acids, emerged as a matrix-specific marker and introduced a shift toward more polar volatile species. The soy-based beverage exhibited an intermediate profile, characterized by branched alkanes similar to oat and almond, but with a relatively higher contribution of long-chain linear hydrocarbons, especially eicosane, resulting in a more uniform and less heterogeneous volatile pattern [15].
From a functional perspective, the GC–MS results indicate that the volatilome of plant-based milk beverages is largely composed of non-polar and weakly polar lipid-derived compounds, whose relative distribution varies in a matrix-dependent manner. Rather than providing isolated chemical markers, this compositional scenario generates global, reproducible volatile fingerprints that are particularly suited to pattern-recognition approaches. As such, the GC–MS analysis defines a reference volatilomic landscape against which the ability of MOX sensor arrays to capture matrix-specific volatile signatures can be evaluated.

3.2. MOX Sensors Result

Figure 5A,B shows the temporal responses of the six MOX sensing elements, arranged into two independent sensors with three sensitive elements each, which together constitute the sensing array of the S3+ device. During exposure to the different plant-based beverages, all sensing elements exhibited a reproducible triphasic response profile corresponding to stabilization in clean air, headspace exposure, and signal recovery after sample removal.
Figure 5. (A) Registered signals obtained from the analysis of the volatile fraction of plant-based milk using Sensor 1, composed of three sensitive elements (S1–S3). (B) Signals obtained from Sensor 2, composed of three sensitive elements (S4–S6), under the same experimental conditions.
Consistent with the GC–MS characterization, the MOX sensor array generated distinct and reproducible response patterns for each beverage type, reflecting differences in the overall volatile composition rather than the presence of individual marker compounds. Coconut-based beverages produced broader resistance variations and slower recovery kinetics, indicating stronger and more persistent interactions between the released volatile mixture and the sensing surfaces. This behavior is consistent with the higher contribution of oxygenated compounds observed in the GC–MS analysis, which are known to exhibit stronger surface interactions with metal oxide materials.
Oat-based beverages exhibited intermediate response amplitudes combined with high signal stability across replicates, reflecting a volatilomic profile dominated by non-polar branched hydrocarbons. Soy-based beverages generated less intense responses, suggesting weaker overall interactions with the sensing materials, in agreement with the prevalence of long-chain linear hydrocarbons identified by GC–MS. Almond-based beverages displayed a distinctive and consistent response pattern, likely arising from their more heterogeneous distribution of branched hydrocarbons and matrix-specific volatile components.
The diversity of sensor responses highlights the discriminative capability of the S3+ system, which arises from the complementary sensitivity of the different sensing materials (SnO2, SnO2 + Pd, and SnO2 + Au). Rather than targeting individual volatile compounds, each sensing element integrates the collective interaction with the complex volatile mixture, generating a multidimensional response pattern characteristic of each beverage matrix. The high reproducibility observed across replicates confirms that these differences arise from stable volatilomic fingerprints rather than experimental variability.
These response patterns were subsequently processed using Linear Discriminant Analysis (LDA) to project multidimensional sensor responses into a reduced discriminant space. The two-dimensional LDA projection (Figure 6A) shows well-separated clusters corresponding to the four beverage types, while the three-dimensional representation (Figure 6B) further emphasizes the spatial separation among classes and the low intra-class dispersion. Together, these results demonstrate that the discrimination capability of the system is based on robust pattern recognition within a volatilomic feature space rather than on overfitting to transient signal features.
Figure 6. LDA score plots showing the separation of plant-based milk beverages based on MOX sensor features: (A) two-dimensional projection (LD1–LD2); (B) three-dimensional projection (LD1–LD2–LD3).
The classification performance was quantitatively evaluated using a confusion matrix and standard classification metrics. The confusion matrix obtained from the LDA model is shown in Figure 7, while the corresponding performance metrics are summarized in Table 3. The full dataset used to generate the classification results is provided in the Supplementary Materials (File S2), where the raw prediction outputs are reported.
Figure 7. Confusion matrix obtained from the LDA classification of plant-based milk beverage samples using MOX sensor responses.
Table 3. Performance metrics of the LDA classification model.
A total of 40 samples were analyzed, corresponding to ten technical replicates for each beverage type (oat, almond, coconut, and soy). Most samples were correctly classified, with only a single misclassification observed between coconut and soy beverages. Specifically, all oat, almond, and soy samples were correctly identified (10/10), while coconut samples achieved a classification accuracy of 9 out of 10, with one sample incorrectly assigned to the soy class.
From the confusion matrix, several performance metrics were computed to quantitatively assess the robustness of the classifier. The overall classification accuracy reached 97.5%, corresponding to 39 correctly classified samples out of 40. Class-wise precision values were equal to 1.00 for oat, almond, and coconut beverages, while the soy class exhibited a slightly lower precision (0.91) due to the single misclassified coconut sample. Similarly, recall values were 1.00 for oat, almond, and soy, while coconut beverages achieved a recall of 0.90. The resulting class-wise F1-scores were 1.00 for oat and almond and 0.95 for coconut and soy, indicating balanced precision–recall performance across the dataset. When averaged across all classes, the macro-averaged metrics reached 0.98 for precision, 0.98 for recall, and 0.98 for F1-score, confirming the high reliability of the classification model.
From a system-level perspective, the proposed sensing architecture is inherently compatible with embedded and IoT-oriented implementations. The MOX sensing elements are integrated into a dedicated electronic platform (S3+) that includes the readout circuitry, micro-heater control electronics, and data acquisition modules on a compact printed circuit board. This configuration enables stable temperature regulation, real-time signal acquisition, and direct interfacing with embedded processing units. The use of lightweight machine-learning algorithms such as LDA further supports on-device implementation, allowing rapid classification without reliance on external computational infrastructure. These characteristics make the proposed platform suitable for integration into smart food-processing appliances and other edge-computing sensing systems.
Although the present study focuses on beverage-type discrimination under controlled laboratory conditions, the stability and reproducibility of the observed volatilomic fingerprints suggest that the proposed sensing architecture could be extended to additional analytical tasks, including quality monitoring and authenticity assessment. In MOX-based sensing systems, variations in volatile composition caused by oxidation processes, microbial activity, storage degradation, or matrix mixing are expected to generate measurable shifts in the multidimensional sensor response space.
In practical implementations, these applications could be addressed by training supervised models using controlled datasets, including calibrated mixture samples, dilution series, or controlled aging experiments. Such datasets would allow the system to learn characteristic deviations associated with quality degradation, freshness loss, or adulteration phenomena. Since the sensor response depends on VOC partial pressure, concentration changes may affect both signal amplitude and kinetic behavior; model robustness can therefore be improved by incorporating multi-concentration datasets and by adopting normalized or dynamic features (e.g., ΔR/R0, kinetic descriptors, or normalized response area). Although these scenarios were not experimentally validated in the present work, the results obtained here provide a methodological basis for future developments in volatilomic-based quality monitoring and authenticity screening.

4. Conclusions

This work demonstrates the feasibility of an embedded volatilomic sensing approach based on metal oxide semiconductor (MOX) sensor arrays for the real-time, non-destructive discrimination of plant-based milk alternatives. The system exploits global volatile fingerprints as functional descriptors of compositional identity and process-related variability, without aiming at compound-specific identification or allergen quantification.
The integration of MOX sensor arrays with lightweight and interpretable data processing techniques enabled robust and reproducible classification of different beverage matrices under controlled experimental conditions. Consistency with GC–MS reference results supports the use of pattern-based sensing as a suitable strategy for embedded applications, where rapid decision-making, low computational complexity, and on-device operation are required.
Beyond safety-related aspects, the proposed approach opens opportunities for adaptive control of preparation parameters in smart beverage systems, linking volatilomic fingerprints to functional properties such as foaming behavior. Overall, the results highlight the potential of embedded MOX sensor platforms as scalable and IoT-compatible solutions for the agri-food sector.
Future developments will focus on expanding the experimental framework to include (i) controlled dilution series to evaluate robustness under varying concentration levels, (ii) batch-to-batch variability assessment to strengthen model generalization, (iii) calibrated mixture experiments for the detection of cross-contamination between plant-based and dairy milk matrices, and (iv) validation under real-world operational conditions to support practical deployment in smart food-processing environments.
In addition, the integration of lightweight embedded implementation and real-time validation under operational conditions will be explored to support practical deployment in smart food-processing environments.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/s26061976/s1.

Author Contributions

Conceptualization, E.P., E.N.-C. and V.S.; methodology, E.N.-C.; software, V.S.; validation, E.P., E.N.-C. and V.S.; formal analysis, E.P., E.N.-C. and V.S.; investigation, E.P., E.N.-C. and V.S.; resources, E.P., E.N.-C. and V.S.; data curation, E.P.; writing—original draft preparation, E.P., E.N.-C. and V.S.; writing—review and editing, E.P., E.N.-C. and V.S.; visualization, E.P., E.N.-C. and V.S.; supervision, V.S.; project administration, E.N.-C., E.P. and V.S.; funding acquisition, E.N.-C., E.P. and V.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding authors.

Conflicts of Interest

Author Veronica Sberveglieri is a co-founder of the company Nano Sensor Systems S.r.l. (NASYS), which produces the device used in this study. However, she has never been employed by the company, nor has she received any salary or financial compensation from it. The company had no role in the study design, data collection and analysis, decision to publish, or preparation of the manuscript. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

  1. Poghossian, A.; Geissler, H.; Schöning, M.J. Rapid methods and sensors for milk quality monitoring and spoilage detection. Biosens. Bioelectron. 2019, 140, 111272. [Google Scholar] [CrossRef] [Scilit]
  2. Poeta, E.; Núñez-Carmona, E.; Sberveglieri, V. A Review: Applications of MOX Sensors from Air Quality Monitoring to Biomedical Diagnosis and Agro-Food Quality Control. J. Sens. Actuator Netw. 2025, 14, 50. [Google Scholar] [CrossRef] [Scilit]
  3. Riu, J.; Maroto, A.; Rius, F.X. Nanosensors in Environmental Analysis. Talanta 2006, 69, 288–301. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Mu, F.; Gu, Y.; Zhang, J.; Zhang, L. Milk Source Identification and Milk Quality Estimation Using an Electronic Nose and Machine Learning Techniques. Sensors 2020, 20, 4238. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  5. Nutten, S.; Schuh, S.; Dutter, T.; Heine, R.G.; Kuslys, M. Design, Quality, Safety and Efficacy of Extensively Hydrolyzed Formula for Management of Cow’s Milk Protein Allergy: What Are the Challenges? Adv. Food Nutr. Res. 2020, 93, 147–204. [Google Scholar] [CrossRef] [Scilit]
  6. Sharma, N.; Yeasmen, N.; Dube, L.; Orsat, V. Rise of Plant-Based Beverages: A Consumer-Driven Perspective. Food Rev. Int. 2024, 40, 3315–3341. [Google Scholar] [CrossRef] [Scilit]
  7. Schiano, A.N.; Harwood, W.S.; Gerard, P.D.; Drake, M.A. Consumer Perception of the Sustainability of Dairy Products and Plant-Based Dairy Alternatives. J. Dairy Sci. 2020, 103, 11228–11243. [Google Scholar] [CrossRef] [Scilit]
  8. Fuentes, C.; Fuentes, M. Making a Market for Alternatives: Marketing Devices and the Qualification of a Vegan Milk Substitute. J. Mark. Manag. 2017, 33, 529–555. [Google Scholar] [CrossRef] [Scilit]
  9. Hashim, L.; Chaveron, H. Isolation and Identification of Off-Flavor Components from Soy Milk. In Developments in Food Science; Charalambous, G., Ed.; Elsevier: Amsterdam, The Netherlands, 1995; Volume 37, pp. 1007–1019. [Google Scholar] [CrossRef] [Scilit]
  10. Giugliano, R.; Musolino, N.; Ciccotelli, V.; Ferraris, C.; Savio, V.; Vivaldi, B.; Ercolini, C.; Bianchi, D.M.; Decastelli, L. Soy, Rice and Oat Drinks: Investigating Chemical and Biological Safety in Plant-Based Milk Alternatives. Nutrients 2023, 15, 2258. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  11. Haenlein, G.F.W. Goat Milk in Human Nutrition. Small Rumin. Res. 2004, 51, 155–163. [Google Scholar] [CrossRef] [Scilit]
  12. Durgun, M. Real-Time Milk Quality Control Using Multi-Spectral Sensing and Edge Computing: Advancing On-Site Detection of Milk Components with XGBoost. Appl. Sci. 2024, 14, 10916. [Google Scholar] [CrossRef] [Scilit]
  13. Corvino, A.; Khomenko, I.; Betta, E.; Brigante, F.I.; Bontempo, L.; Biasioli, F.; Capozzi, V. Rapid Profiling of Volatile Organic Compounds Associated with Plant-Based Milks versus Bovine Milk Using an Integrated PTR-ToF-MS and GC-MS Approach. Molecules 2025, 30, 761. [Google Scholar] [CrossRef] [Scilit]
  14. Ponzoni, A.; Zappa, D.; Comini, E.; Sberveglieri, V.; Faglia, G.; Sberveglieri, G. Metal Oxide Nanowire Gas Sensors: Application of Conductometric and Surface Ionization Architectures. Chem. Eng. Trans. 2012, 30, 31–36. [Google Scholar] [CrossRef] [Scilit]
  15. Zeng, Q.; Wen, Y.; Li, W.; Xiao, H.; Fu, X.; Shi, Z.; Li, A.; Liang, J.; Tan, C.; Xu, Q.; et al. Smartphone Electrochemical Sensor Based on Laser-Induced Graphene Integrated Electrode for On-Site Sulfadimidine Detection in Beef and Milk. Mikrochim. Acta 2025, 192, 684. [Google Scholar] [CrossRef] [Scilit]
  16. Peris, M.; Escuder-Gilabert, L. A 21st century technique for food control: Electronic noses. Anal. Chim. Acta 2009, 638, 1–15. [Google Scholar] [CrossRef] [Scilit]
  17. Poeta, E.; Liboà, A.; Mistrali, S.; Núñez-Carmona, E.; Sberveglieri, V. Nanotechnology and E-Sensing for Food Chain Quality and Safety. Sensors 2023, 23, 8429. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  18. Ramachandran, R.P.; Clément, A.; Erkinbaev, C. Miniaturized Spectroscopy and AI-Driven Probes in Food Industry Automation. Food Res. Int. 2025, 214, 116646. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  19. Aspromonte, J.; Mascrez, S.; Eggermont, D.; Purcaro, G. Solid-Phase Microextraction Coupled to Comprehensive Multidimensional Gas Chromatography for Food Analysis. Anal. Bioanal. Chem. 2024, 416, 2221–2246. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  20. Zhang, Z.; Zhang, Y.; Luo, Y.; Lv, G.; Yin, J.; Tan, P.; Duan, G. Wafer-Level Self-Assembly and Interface Passivation Patterning Technology for Nanomaterial-Compatible 3D MEMS Sensing Chips. Nano-Micro Lett. 2026, 18, 221. [Google Scholar] [CrossRef] [Scilit]
  21. Zhou, Z.; Chen, X.; Li, E.; Zeng, L.; Luo, K.; Zhang, J. Edge Intelligence: Paving the Last Mile of Artificial Intelligence with Edge Computing. Proc. IEEE 2019, 107, 1738–1762. [Google Scholar] [CrossRef] [Scilit]
  22. Choi, K.; Koo, R.-H.; Park, J.; Kim, D.; Kim, J.; Shin, H.; Jung, G.; Lee, J.-H. Novel Gas Sensor Signal Acquisition Method: Amplifying Sensor Signals and Enabling Efficient Gas Identification. Adv. Sci. 2025, 12, 2415104. [Google Scholar] [CrossRef] [Scilit]
  23. Poeta, E.; Núñez-Carmona, E.; Sberveglieri, V.; Lozano, J.; Sánchez, R. Monitoring the Olfactory Evolution of Cold-Fermented Sourdough Using an Electronic Nose. Chemosensors 2025, 13, 187. [Google Scholar] [CrossRef] [Scilit]
  24. Pawliszyn, J. Theory of Solid-Phase Microextraction. In Handbook of Solid Phase Microextraction; Pawliszyn, J., Ed.; Elsevier: Amsterdam, The Netherlands, 2012; pp. 13–59. [Google Scholar] [CrossRef] [Scilit]
  25. Khan, W.A.; Fallah, S.A.H.; Moltajihagh, S.; Hamdi, F.; Alipour, F.; Mollahosseini, A.; Boczkaj, G. Automation and High Throughput Sample Analysis with Various Platforms in Microextraction Techniques: A Need for Ecofriendly, Green, and Cost-Effective Sample Preparation Approaches—A Review. TrAC Trends Anal. Chem. 2025, 189, 118247. [Google Scholar] [CrossRef] [Scilit]
  26. Scortichini, S.; Boarelli, M.C.; Castello, M.; Chiavarini, F.; Gabrielli, S.; Marcantoni, E.; Fiorini, D. Development and Application of a Solid-Phase Microextraction Gas Chromatography Mass Spectrometry Method for Analysing Volatile Organic Compounds Produced during Cooking. J. Mass Spectrom. 2020, 55, e4534. [Google Scholar] [CrossRef] [Scilit]
  27. Wang, C.; Yin, L.; Zhang, L.; Xiang, D.; Gao, R. Metal Oxide Gas Sensors: Sensitivity and Influencing Factors. Sensors 2010, 10, 2088–2106. [Google Scholar] [CrossRef] [Scilit]
  28. Barsan, N.; Weimar, U. Conduction Model of Metal Oxide Gas Sensors. J. Electroceram. 2001, 7, 143–167. [Google Scholar] [CrossRef] [Scilit]
  29. Kritwattanakhorn, J.; Bauersfeld, M.-L.; Kovacs, A.; Müller, B.; Mescheder, U.; Rademacher, S.; Wöllenstein, J. Optimization of Platinum Adhesion in Electrochemical Etching Process for Multi-Sensor Systems. Sens. Actuators B Chem. 2007, 127, 126–131. [Google Scholar] [CrossRef] [Scilit]
  30. Meena, D.; Jain, M.; Bhatnagar, M.C. Resistive Gas Sensors Based on Nanostructured Ternary Metal Oxide: A Review. J. Mater. Sci. 2024, 59, 12177–12218. [Google Scholar] [CrossRef] [Scilit]
  31. Sun, Y.-F.; Liu, S.-B.; Meng, F.-L.; Liu, J.-Y.; Jin, Z.; Kong, L.-T.; Liu, J.-H. Metal Oxide Nanostructures and Their Gas Sensing Properties: A Review. Sensors 2012, 12, 2610–2631. [Google Scholar] [CrossRef] [Scilit]
  32. Sangiorgi, L.; Sberveglieri, V.; Carnevale, C.; De Nardi, S.; Nunez-Carmona, E.; Raccagni, S. Data-Driven Virtual Sensing for Electrochemical Sensors. Sensors 2024, 24, 1396. [Google Scholar] [CrossRef] [Scilit]
  33. Galstyan, V.; Comini, E.; Baratto, C.; Faglia, G.; Sberveglieri, G. Nanostructured ZnO Chemical Gas Sensors. Ceram. Int. 2015, 41, 14239–14244. [Google Scholar] [CrossRef] [Scilit]
  34. Zhang, J.; Liu, X.; Neri, G.; Pinna, N. Nanostructured Materials for Room-Temperature Gas Sensors. Adv. Mater. 2016, 28, 795–831. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  35. Xie, T.; Sullivan, N.; Steffens, K.; Wen, B.; Liu, G.; Debnath, R.; Davydov, A.; Gomez, R.; Motayed, A. UV-Assisted Room-Temperature Chemiresistive NO2 Sensor Based on TiO2 Thin Film. J. Alloys Compd. 2015, 653, 255–259. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.