Abstract
This study presents an E-nose system for the identification and classification of volatile compounds in traditional Filipino alcoholic beverages, Basi, Bignay, Lambanog, and Tapuy. The system utilizes a gas sensor array composed of MQ3, MQ6, MQ8, MQ135, and MQ136 sensors, and implements a Support Vector Machine (SVM) algorithm with principal component analysis for classification and dimensionality reduction. The experimental process involves three main phases: absorption, data acquisition, and desorption. A total of 225 training samples per class and a total of 20 testing samples were used, evenly distributed among all classes. The SVM model achieved an accuracy of 85%, highlighting its effectiveness in distinguishing between the beverages. This work contributes to the advancement of low-cost, sensor-based solutions for quality control, standardization, and the cultural preservation of traditional Filipino wines.
1. Introduction
Traditional Filipino alcoholic drinks have unique smells from their ingredients and how they’re made. This study investigates those smells using an electronic nose (E-nose) and a machine learning method called Support Vector Machine (SVM). E-noses tell different types of alcoholic drinks apart, such as beer, wine, and spirits, even when the alcohol has been removed, focusing on the aroma compounds using principal component analysis (PCA) and discriminant function analysis [1]. These systems can track smell changes in beers as they age, using techniques such as PCA, linear discriminant analysis, and neural networks to get classification accuracies as high as 100% [2]. These findings show that using sensors and machine learning can help test the quality and honesty of alcoholic beverages.
E-nose systems are used for checking fruit ripeness, spotting food spoilage, and testing drinks. Researchers have developed a device using a Raspberry Pi and gas sensors to sort five types of alcoholic beverages with 90% accuracy using SVM [3]. Farmers have assessed mango ripeness by measuring gas levels with MQ sensors combined with fuzzy logic, achieving an overall accuracy of 90% [4]. In another study [5], a portable image-processing system was developed to detect Black Sigatoka disease in banana leaves, an infection caused by Mycosphaerella fijiensis that can reduce yields by up to 50%. Using a USB camera, Raspberry Pi, and an SVM classifier, the device achieved 90% accuracy in distinguishing infected from healthy leaves. A banana shelf-life tester employing ethylene gas measurements demonstrated that heat and moisture significantly influence ripening speed [6]. Similarly, tomatoes were classified into ripe, unripe, and unknown categories using a camera-based sensor and deep learning, with 86% of samples correctly identified [7]. Another study developed a tool to evaluate pomelo sweetness using gas sensors, with results validated against sugar content tests, confirming the device’s accuracy [8].
Applications extend to health and quality control. Gas sensors and PCA are applied to detect indicators of kidney disease in urine samples, achieving a 90% accuracy [9]. A drink-testing device utilized sensor data and LDA to classify beverages, reaching perfect accuracy for some types but encountering difficulties with similar varieties such as rosé wine [10]. Researchers also applied camera and infrared imaging, combined with PCA and Soft Independent Modeling of Class Analogy (SIMCA), to detect counterfeit coconut wine and identify harmful substances such as methanol [11]. Italian wines were classified by gas patterns using sensors and neural networks, achieving 100% accuracy in recognizing wine types [12]. A food spoilage detection system monitored gases emitted from bananas, carrots, grapes, and pechay stored in refrigeration, employing PCA and k-Nearest Neighbors to achieve a 92% prediction rate [13]. Finally, cantaloupe ripeness was measured using ethanol levels, demonstrating that MQ-3 sensors can assess ripeness without destructive sampling [14].
Despite the cultural importance of traditional Filipino alcoholic beverages, reliable methods for assessing their quality, particularly their aroma, which defines their unique character, remain limited. Variability in production methods and ingredients complicates consistency and authenticity, while current manual quality checks are often unreliable. To address this challenge, the present study employs an E-nose (E-nose) system combined with an SVM classifier to group and recognize scent patterns of traditional Filipino alcoholic drinks with improved accuracy and reliability, thereby supporting quality assurance and identity preservation.
In this study, we designed a device capable of identifying volatile compounds emitted by four traditional Filipino alcoholic beverages using an E-nose system. To reduce data dimensionality through PCA and classify the beverages, Lambanog, Basi, Tapuy wine, and Bignay wine, we used an SVM algorithm and evaluated it for system accuracy using a confusion matrix alongside additional performance metrics.
The system developed contributes to improving the quality and consistency assessment of traditional Filipino alcoholic drinks by analyzing volatile compounds associated with aroma. By reliably identifying scent patterns, the system detects changes or potential adulteration, which is critical for maintaining product integrity. The use of low-cost MQ gas sensors facilitates consistent and reproducible recording of each beverage’s distinctive aroma, thereby safeguarding traditional production practices. Moreover, this approach supports local producers in differentiating their products and reinforces respect for cultural heritage. The study also opens avenues for future research in food science, chemistry, artificial intelligence, and agricultural technology.
2. Methodology
2.1. System Developpment
Figure 1 illustrates the development process of the E-nose system designed to analyze volatile compounds from four traditional Filipino alcoholic beverages—Lambanog, Basi, Tapuy, and Bignay. The system employs MQ gas sensors to detect the gases emitted by each drink. The workflow consists of three primary stages: acquisition of gas data, dimensionality reduction using PCA, and the classification of the beverages through the SVM algorithm. The output identifies the type of drink based on its characteristic scent profile. This configuration provides a practical and efficient approach for analyzing olfactory data and offers potential applications in product quality assessment and counterfeit detection within the alcoholic beverage market.
Figure 1.
Conceptual Framework.
2.2. System Components
Figure 2 illustrates the hardware components comprising the proposed E-nose system. The system integrates several key elements, including a power supply, Raspberry Pi 4B, an array of gas sensors (MQ-3, MQ-6, MQ-8, MQ-135, and MQ-136), a 12-volt exhaust fan, and a 3.5-inch Raspberry Pi touchscreen monitor. The main enclosure, serving as the testing chamber, measures 8 × 8 × 3 inches and houses both the exhaust fan and the battery supply. A 4-inch diameter exhaust port is positioned above the fan to remove residual gases after each test cycle, thereby enabling rapid sensor neutralization and preparation for subsequent measurements. The 3.5-inch touchscreen display, mounted on top of the chamber, functions as the user interface for visualizing classification results. Collectively, these components constitute the complete structure of the E-nose system.
Figure 2.
Hardware block diagram connection of the components in system.
2.3. System Workflow
Figure 3 presents the workflow of the developed system. The process begins with the capture of volatile gases emitted by alcoholic beverages using the MQ-3, MQ-6, MQ-8, MQ-135, and MQ-136 gas sensors manufactured by Henan Hanwei Electronics Co., Ltd., which provide the input data for classification. The collected gas samples are analyzed with the aid of a Raspberry Pi 4B to determine the precise parts-per-million (PPM) concentrations of each component. Following data acquisition, the dataset undergoes cleaning and preparation. PCA is applied to reduce dimensionality while preserving essential classification features, thereby facilitating the identification of key patterns and distinctions. The refined data is subsequently processed by the trained SVM model, which classifies and differentiates the alcoholic beverages based on their characteristic gas emission profiles.
Figure 3.
Main system flowchart showing the complete workflow of the electronic nose system.
2.4. Experimental Setup
Figure 4 illustrates the experimental setup for classifying traditional Filipino alcoholic beverages through absorption, data recording, and desorption. During absorption, the beverage sample is placed in a testing cup, and the gas sensor array embedded in the lid detects emitted volatile compounds. In the recording phase, temporal sensor data are collected for classification. Desorption is used to remove residual gases, preparing the system for the next test. The SVM algorithm, supported by PCA for dimensionality reduction, classifies the samples into three principal components, with results displayed on a 3.5-inch touchscreen. Unlike traditional E-Nose designs with enclosed chambers, this setup enhances efficiency by enabling faster desorption and reducing sensor reset time.
Figure 4.
Experimental setup to test the developed system.
2.5. Data Gathering and Analysis
Table 1 shows the dataset used in the study: 180 training samples evenly split across five classes (Basi, Bignay, Lambanog, Tapuy, and Unknown), with 36 samples per class. Model evaluation used 20 testing samples, 4 from each class.
Table 1.
Training and testing dataset.
To analyze the model’s performance, a 5 × 5 multi-class confusion matrix was employed. This matrix provides a detailed view of the classification results by comparing the predicted labels against the actual labels for each class. It highlights the number of correct predictions (true positives) and misclassifications (false positives and false negatives). The Formula (1) for multi-class accuracy was used to obtain the overall accuracy of the system where refers represent the number of correctly classified samples for each specific class and represents the total number of evaluated samples across all classes.
3. Results and Discussion
Figure 5 presents the confusion matrix for the classification of traditional Filipino alcoholic beverages, namely, Basi, Bignay, Lambanog, Tapuy, and Unknown. A total of 20 individual tests were conducted, with each class represented by 4 testing samples. The system accurately classified Basi, Lambanog, and Unknown, indicating that the features extracted for these classes are highly discriminative. This also suggests that the model separated these classes from the rest due to distinct sensor patterns or strong feature representation. There was a moderate performance observed for Tapuy and Bignay. For Tapuy, one out of four samples was misclassified, while for Bignay, two were misclassified. This misclassification pattern indicates overlap in feature characteristics between Bignay and Tapuy, due to similarities in their gas profiles. To improve this, additional feature extraction, dimensionality reduction, and ensemble methods need to be used for accurate classification.
Figure 5.
Multi-class confusion matrix.
Table 2 shows the classification report of the system, demonstrating a high overall accuracy of 85% on the test dataset comprising 20 samples. An analysis of the per-class metrics revealed a varied performance profile across the five categories. The Lambanog and Unknown were classified with perfect precision, recall, and F1-scores of 1.00, indicating faultless identification and discrimination for these classes. The Tapuy class also exhibited strong performance, achieving a perfect recall of 1.00 and a high F1-score of 0.89. This combination suggests that while all true Tapuy instances were correctly identified, the model produced some false positives by misclassifying other wines, such as Tapuy specifically for Bignay. In contrast, the Basi class yielded a balanced and consistent performance, with a precision, recall, and F1-score of 0.75.
Table 2.
Data classification results.
The limitation of the model was observed in the classification of Bignay wine, which yielded the lowest F1-score of 0.57. This was attributed to a recall of 0.50, indicating that only half of the true Bignay samples were correctly identified. The limited number of test samples reduced the performance. A larger dataset is needed, as increasing the number of test instances provides a reliable measure of accuracy and potentially improves performance for this category. The model achieved an accuracy of 85%, correctly classifying 17 out of 20 test samples. While the results were promising, particularly for Lambanog and Unknown, which attained perfect classification. Alternative classifiers need to be added to enhance accuracy and robustness.
As shown in Figure 6, the PCA visualization effectively represented the distribution of Basi, Bignay, Lambanog, Tapuy, and Unknown samples in reduced-dimensional space. Projection onto the first three principal components captured most of the dataset’s variance while maintaining interpretability. Distinct clustering was observed for certain classes, indicating clearer separability, whereas overlaps between Bignay and Tapuy suggest similarities in their chemical profiles or limitations in the captured features. Overall, the PCA plot provided valuable insights into class separability prior to classification using k-Nearest Neighbors.
Figure 6.
PCA plot.
4. Conclusions and Future Works
The E-nose system was developed by combining an SVM classifier for identifying traditional Filipino alcoholic beverages. With an overall accuracy of 85%, the system performed effectively in distinguishing most wine classes, particularly Lambanog and Unknown, which achieved perfect classification. However, misclassifications in Basi and Tapuy were likely due to overlapping gas sensor responses or limited sample data. To improve system performance, expanding the dataset with more authentic wine samples is recommended to better capture natural variations in aroma and reduce misclassification, especially for closely related beverages such as Basi and Tapuy. Incorporating advanced data augmentation techniques may further enhance class balance and generalization. Additionally, optimizing the E-nose sensor array could increase sensitivity and accuracy in detecting subtle differences in wine aromas.
Author Contributions
Conceptualization, J.P.T.C., C.B.D. and E.A.E.L.; methodology, C.B.D. and E.A.E.L.; software, C.B.D. and E.A.E.L.; validation, J.P.T.C.; formal analysis, C.B.D. and E.A.E.L.; investigation, J.P.T.C., C.B.D. and E.A.E.L.; resources, J.P.T.C., M.B.T. and R.A.J.; data curation, C.B.D. and E.A.E.L.; writing—original draft preparation, J.P.T.C. and E.A.E.L.; writing—review and editing, J.P.T.C., C.B.D. and E.A.E.L.; visualization, J.P.T.C.; supervision, J.P.T.C., M.B.T. and R.A.J.; project administration, J.P.T.C., M.B.T. and R.A.J.; funding acquisition, M.B.T. and R.A.J. All authors have read and agreed to the published version of the manuscript.
Funding
The presentation was funded by Mapua Malayan Colleges Mindanao through the Office for Research, Development, and Innovation.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Datasets were obtained from selected sites by the researchers. These may be requested by sending an e-mail to the corresponding author.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Ragazzo-Sanchez, J.; Chalier, P.; Chevalier, D.; Calderon-Santoyo, M.; Ghommidh, C. Identification of different alcoholic beverages by E-nose coupled to GC. Sens. Actuators B Chem. 2008, 134, 43–48. [Google Scholar] [CrossRef] [Scilit]
- Ghasemi-Varnamkhasti, M.; Mohtasebi, S.S.; Siadat, M.; Lozano, J.; Ahmadi, H.; Razavi, S.H.; Dicko, A. Aging fingerprint characterization of beer using E-nose. Sens. Actuators B Chem. 2011, 159, 51–59. [Google Scholar] [CrossRef] [Scilit]
- Bautista, J.D.V.; Elizarde, M.J.M.; Caya, M.V.C. Classification of Alcoholic Beverage Using E-nose and Support Vector Machine. In Proceedings of the 2025 17th International Conference on Computer and Automation Engineering (ICCAE); IEEE: New York, NY, USA, 2025; pp. 48–52. [Google Scholar] [CrossRef] [Scilit]
- Ibarra, D.M.A.; Patajo, S.J.G.; Caya, M.V.C. Characterization and Classification of Mangifera Indica Ripeness with E-nose using Fuzzy Logic Algorithm. In Proceedings of the 2022 IEEE 14th International Conference on Humanoid, Nanotechnology, Information Technology, Communication and Control, Environment, and Management (HNICEM 2022); Institute of Electrical and Electronics Engineers Inc.: New York, NY, USA, 2022. [Google Scholar] [CrossRef] [Scilit]
- Tuazon, G.L.H.; Duran, H.M.; Villaverde, J.F. Portable Sigatoka Spot Disease Identifier on Banana Leaves Using Support Vector Machine. In Proceedings of the 2021 IEEE 13th International Conference on Humanoid, Nanotechnology, Information Technology, Communication and Control, Environment, and Management (HNICEM 2021); Institute of Electrical and Electronics Engineers Inc.: New York, NY, USA, 2021. [Google Scholar] [CrossRef] [Scilit]
- Taghoy, D.M.; Villaverde, J.F. A Fuzzy Logic Approach for the Determination of Cavendish Banana Shelf Life. In TENCON 2018-2018 IEEE Region 10 Conference; IEEE: New York, NY, USA, 2018; pp. 2467–2472. [Google Scholar] [CrossRef] [Scilit]
- Anticuando, M.K.D.; Directo, C.K.R.; Padilla, D.A. E-nose and Deep Learning Approach in Identifying Ripe Lycopersicum esculentum L. Tomato Fruit. In Proceedings of the 2022 13th International Conference on Computing Communication and Networking Technologies (ICCCNT 2022); Institute of Electrical and Electronics Engineers Inc.: New York, NY, USA, 2022. [Google Scholar] [CrossRef] [Scilit]
- Quinola, C.V.; Lapitan, J.N.; Pelletero, M.H.S.; Adtoon, J.J.; Linsangan, N.B. Non-Invasive Sweetness Classification for Citrus Maxima. In Proceedings of the 2020 IEEE 12th International Conference on Humanoid, Nanotechnology, Information Technology, Communication and Control, Environment, and Management (HNICEM 2020); Institute of Electrical and Electronics Engineers Inc.: New York, NY, USA, 2020. [Google Scholar] [CrossRef] [Scilit]
- Yumang, A.N.; Lazaro, J.B.; Leon, C.D.D.; Corpuz, M.A. Application of E-nose for Diagnosing Azotemia from Urinalysis Using Principal Component Analysis. In ACM International Conference Proceeding Series; Association for Computing Machinery: New York, NY, USA, 2020; pp. 40–45. [Google Scholar] [CrossRef] [Scilit]
- Lu, T.; Shi, G.; Own, A.; Qu, Y.; Li, Y.; Adiraju, A.; Kanoun, O. Portable Metal Oxide E-Nose Based on Machine Learning for Multiple Beverage Classification. In Proceedings of International Workshop on Impedance Spectroscopy (IWIS 2024); Institute of Electrical and Electronics Engineers Inc.: New York, NY, USA, 2024; pp. 80–84. [Google Scholar] [CrossRef] [Scilit]
- Baquiran, V.D.; Bate, J.A.M.; Sembrano, M.J.B.; Villaverde, J.F.; Magwili, G.V. Determination of Adulteration in Philippine Coconut Wine using Principal Component Analysis and Soft Independent Modelling of Class Analogy. In Proceedings of the 2019 IEEE International Conference on Consumer Electronics-Asia (ICCE-Asia); IEEE: New York, NY, USA, 2019; pp. 25–29. [Google Scholar] [CrossRef] [Scilit]
- Penza, M.; Cassano, G. Chemometric characterization of Italian wines by thin-film multisensors array and artificial neural networks. Food Chem. 2004, 86, 283–296. [Google Scholar] [CrossRef] [Scilit]
- Caya, M.V.C.; Cruz, F.R.G.; Fernando, C.M.N.; Lafuente, R.M.M.; Malonzo, M.B.; Chung, W.-Y. Monitoring and Detection of Fruits and Vegetables Spoilage in the Refrigerator using E-nose Based on Principal Component Analysis. In Proceedings of the 2019 IEEE 11th International Conference on Humanoid, Nanotechnology, Information Technology, Communication and Control, Environment, and Management (HNICEM); IEEE: New York, NY, USA, 2019; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
- Gabriel, J.P.O.; Cabunilas, M.K.R.; Villaverde, J.F. Cantaloupe Ripeness Detection Using E-nose. In Proceedings of the 2022 14th International Conference on Computer and Automation Engineering (ICCAE 2022); Institute of Electrical and Electronics Engineers Inc.: New York, NY, USA, 2022; pp. 44–49. [Google Scholar] [CrossRef] [Scilit]
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.





