Next Article in Journal
A Magnetic Deburring Method for Hypodermic Needles Used in Human Bodies
Previous Article in Journal
Simulated Adversarial Attacks on Traffic Sign Recognition of Autonomous Vehicles
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Classification of Flavored Filipino Vinegars Using Electronic Nose †

by
Jon Laurman Palanas
*,
Michael Irvin C. Peña
and
Meo Vincent C. Caya
School of Electrical, Electronics, and Computer Engineering, Mapúa University, Manila 1002, Philippines
*
Author to whom correspondence should be addressed.
Presented at the 2024 IEEE 6th Eurasia Conference on IoT, Communication and Engineering, Yunlin, Taiwan, 15–17 November 2024.
Eng. Proc. 2025, 92(1), 16; https://doi.org/10.3390/engproc2025092016
Published: 25 April 2025
(This article belongs to the Proceedings of 2024 IEEE 6th Eurasia Conference on IoT, Communication and Engineering)

Abstract

:
Condiments such as vinegar are made and fermented manually with the help of the human nose. We developed an electronic nose to classify pure Filipino vinegar varieties for automated vinegar classification. MQ sensors were used to determine the sensitivity of gas content of different vinegar flavors, namely, Sinamak, Pinakurat, and Iloko. Linear discriminant analysis was conducted for dimensionality reduction. A support vector machine (SVM) was employed to utilize the data gathered and accurately identify the varieties. 360 samples were included in the training dataset, while 108 samples were included in the testing datasets. The accuracy was 78.7%.

1. Introduction

Vinegar is a common ingredient in different flavors from various origins. In the Philippines, Iloko from the Ilocos Region, Sinamak from Iloilo City, and Pinakurat, which originated in Iligan City, and other flavor varieties can be found. To classify these varieties, gas chromatography (GC), mass spectrometers (MS), or human senses are used. However, the acetic acid content of vinegar is dangerous and causes interferences [1,2,3].
An electronic nose is used to classify and recognize a variety of complex odors with an array of sensors [4]. The detection of the electronic nose comprises olfactory, evaluation, and signal accumulation [5]. Vinegar has long been regarded as a byproduct of fermented goods. People use vinegar as a condiment, a food preservative, and medicine. Vinegar is famous and widely used in Filipinos’ everyday lives. In a tropical country, food quality worsens easily, and vinegar serves as a preservative for foods.
Vinegar classification has been conducted using a human nose. Different volatile compounds are detected by the e-Nose [6]. An existing method is used to detect different types of vinegar using headspace solid-phase microextraction (HS-SPME) in conjunction with GC. It resulted in an accuracy of 100% [1]. However, this method is not cost-efficient and requires chemical engineering knowledge. In classifying Chinese vinegar, an e-Nose using fuzzy foley-sammon transformation (FFST) showed 96.92% accuracy [2]. Neural networks such as deep convolutional neural networks (DCNNs) were also used [7]. The spoilage of tomato-based Filipino dishes at different temperatures was detected using various MQ sensors, too [8]. E-Noses are used in different areas of the food industry, such as discriminating coffee bean quality and aroma analysis and analyzing the ripeness of tomatoes and cantaloupes [9,10,11,12]. Improvements in the e-Nose enable more effective vinegar classification than before.
In the e_Nose, tin dioxide gas sensors (TGS) are used along with neural networks such as KNN, FNN, RNN, and DCNN. The Raspberry Pi microcomputer is often used due to its reliability and efficiency [13,14]. A support vector machine (SVM) is used to estimate the body mass index from 2D face images. The system yielded an accuracy of 91% [15]. Gas sensors mainly use TGS. E-Nose classification is accurate with the algorithms [7,16].
Based on the results, we developed an e-Nose for the classification of Filipino-flavored vinegar varieties using the linear discriminant analysis (LDA)–SVM algorithm. Using supervised learning, we collected three different classes of vinegar samples: Sinamak, Iloko, and Pinakurat. Linear discriminant analysis was used to reduce the dimensions of the extracted features. The developed e-Nose was evaluated for its performance using a confusion matrix. The developed e-Nose can be used in identifying other food ingredients and benefits local Filipino vinegar production.

2. Methodology

2.1. Conceptual Framework

Figure 1 shows the research framework of this study. MQ sensors were used for 60 samples. The gathered data were processed using the LDA–SVM algorithm to reduce the dimensions of features. The data were used to train the SVM algorithm. The system classified the vinegar samples, and the results were displayed on the LCD.
MQ gas sensors were used to classify Sinamak, Iloko, and Pinakurat vinegar. Five MQ gas sensors were used to collect training and test data: MQ2, MQ3, MQ4, MQ8, and MQ135 (Table 1).

2.2. Hardware

Figure 2 represents the hardware component of the system. The MQ gas sensors were connected to an ADS1115 (Texas Instruments, Dallas, United States) a 16-bit analog-to-digital converter that was connected to the Raspberry Pi 4(Raspberry Pi Holdings PLC, London, UK) and an external power source. An SD card with a storage capacity of 64 GB was used in the system. Raspberry Pi is a reliable microcomputer with acceptable accuracy and percentage error [17]. As an output device, an I2C 16 × 2 LCD was employed. The data collected by the MQ gas sensors were stored in the SD card. Previous studies showed the accuracy of the MOS sensor arrays of 75% for Pandan and 72% for Banaba [18]. A built-in 5 V exhaust fan was installed.

2.3. Software Development

The e-Nose operated on the Raspberry Pi and sensors with software presented in Figure 3.
Figure 4 shows the model training with data gathering. Samples were placed inside the gas chamber, and the data were collected and recorded in a .csv file format by the MQ sensors. The data was processed by LDA for feature dimension reduction. The reduced features were used for training. We used five features, and (1) was used to calculate the mean vector of each class denoted as μ, where N denotes the number of samples in class k, ik represents the number of samples in class k, and x i k is a sample in class k. The equation of the step-by-step process of LDA to reduce features is (2).
μ k = 1 N k i = 1 N k x i k
μ k = 1 N k = 1 K N k μ k
(3) was used to determine the scatter matrices for each class. The matrix was used to measure the scatterness of samples in each class. (4) was used to measure scatterness between the different class means. (5) was used to maximize the ratio of (3) and (4) by solving the generalized eigenvalue problem. In the equations, Λ represents the eigenvalues diagonal matrix, while W is the eigenvectors corresponding to the largest eigenvalues shown above. (6) was used to reduce the dimensionality while maintaining class separability.
S w = k = 1 K i = k N k x i k μ k x i k μ k T
S w   =   k   =   1 K N k u k     u u k     u T
S W 1 S B W = Λ W
Y = X W
We used the linear SVM algorithm to improve the system’s accuracy. SVM was used to detect different classes of eczema, resulting in an accuracy of 83% [19]. SVM was also used to identify abnormal red blood cells, which yielded an accuracy of 83.3% [20]. SVM in this study was fed with the data that was dimensionally reduced by LDA. The trained LDA-SVM model classified the vinegar flavor after the LDA reduction (Figure 5 and Figure 6).
The LDA–SVM model classified Pinakurat, Iloko, and Sinamak vinegar (Figure 7).

2.4. Experimental Setup

The experimental setup of the e-Nose is shown in Figure 8. The MQ gas sensor was attached to the chamber to ensure the gas contents of the sample were detected in the sealed chamber. The LCD displayed the classification result of vinegar. We used a real VNC viewer to monitor the behavior of the gas sensors and control the prototype. The classification of vinegar inside the chamber.

3. Results and Discussion

3.1. Data

The collected data using the MQ sensors is presented in Table 2. Table 2 shows the features of vinegar flavors before LDA dimension reduction with five features.
Table 3 lists the dimension-reduced data. The remaining features were two and named LDA1 and LDA2.

3.2. Statistical Analysis

The confusion matrix displays the overall count of accurate and inaccurate predictions made by the e-Nose employing the LDA–SVM model (Table 4). The table shows incorrect predictions regarding the Sinamak flavored vinegar. The testing data consisted of 108 samples which was 30% of the total samples. The Sinamak flavor had the most incorrect predictions, yielding 23 samples misclassified. The system’s accuracy was calculated using (7). The accuracy was calculated as the sum of the true positives of the three classes divided by the sum of the true negatives. The model accurately classifies the flavored vinegar sample. The confusion matrix yielded 78.7% accuracy.
A c c u r a c y = i = 1 j = 1 3 A i i A i j

4. Conclusions and Recommendations

We classified flavored vinegar varieties using an e-Nose. The e-Nose distinguished Sinamak, Iloko, and Pinakurat Filipino vinegar. The LDA–SVM model showed an accuracy of 78.7%, demonstrating the effectiveness of the e-Nose. The Sinamak flavored vinegar showed the most incorrect classification. By using a nonlinear algorithm, higher accuracy can be obtained. More MQ sensors need to be used for better various gas detection. A smaller chamber at room temperature needs to be used to obtain better classification results. The dataset must be expanded to increase accuracy.

Author Contributions

Conceptualization, M.V.C.C., M.I.C.P. and J.L.P.; methodology, M.V.C.C., M.I.C.P. and J.L.P.; software, M.I.C.P. and J.L.P.; validation, M.I.C.P. and J.L.P.; formal analysis, M.V.C.C., M.I.C.P. and J.L.P.; investigation, M.I.C.P. and J.L.P.; resources, M.I.C.P. and J.L.P.; data curation, M.I.C.P. and J.L.P.; writing—original draft preparation, M.I.C.P. and J.L.P.; writing—review and editing, M.V.C.C., M.I.C.P. and J.L.P.; visualization, M.I.C.P. and J.L.P.; supervision, M.V.C.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Informed Consent Statement

Not applicable.

Data Availability Statement

Dataset available on request from the authors.

Conflicts of Interest

The authors declare no conflict of interests.

References

  1. Pizarro, C.; Esteban-Díez, I.; Sáenz-González, C.; González-Sáiz, J.M. Vinegar classification based on feature extraction and selection from headspace solid-phase microextraction/gas chromatography volatile analyses: A feasibility study. Anal. Chim. Acta 2008, 608, 38–47. [Google Scholar] [CrossRef] [PubMed]
  2. Wu, X.H.; Zhu, J.; Wu, B.; Huang, D.P.; Sun, J.; Dai, C.X. Classification of Chinese vinegar varieties using electronic nose and fuzzy Foley–Sammon transformation. J. Food Sci. Technol. 2020, 57, 1310–1319. [Google Scholar] [CrossRef] [PubMed]
  3. Nam, S.O.; Moon, D.S.; Lee, D.S.; Kim, J.H.; Park, I.S.; Yoon, H.J.; Shin, D.H.; Park, S.S.; Lee, J.H. A Case of Chemical Pneumonitis Caused by Acetic Acid Fume Inhalation. Tuberc. Respir. Dis. 1994, 41, 424. [Google Scholar] [CrossRef]
  4. Padilla, D.A.; Krystine, M.; Directo, R. An Electronic Nose Approach in Identifying Ripe Tomato Fruit Using LeNet-5 Structure. In Proceedings of the 2024 7th International Conference on Information and Computer Technologies (ICICT), Honolulu, HI, USA, 15–17 March 2024. [Google Scholar] [CrossRef]
  5. Jayson, P.; Armada, E.G.; Manlises, C.O. Identification of Various Genus mentha L. with Electronic Nose Using Fuzzy Logic Algorithm. In Proceedings of the 2024 7th International Conference on Information and Computer Technologies (ICICT), Honolulu, HI, USA, 15–17 March 2024. [Google Scholar] [CrossRef]
  6. Zambotti, G.; Soprani, M.; Gobbi, E.; Capuano, R.; Pasqualetti, V.; Di Natale, C.; Ponzoni, A. Early detection of fish degradation by an electronic nose. In Proceedings of the 2019 IEEE International Symposium on Olfaction and Electronic Nose (ISOEN), Fukuoka, Japan, 26–29 May 2019. [Google Scholar] [CrossRef]
  7. Wang, S.H.; Chou, T.I.; Chiu, S.W.; Tang, K.T. Using a Hybrid Deep Neural Network for Gas Classification. IEEE Sens. J. 2021, 21, 6401–6407. [Google Scholar] [CrossRef]
  8. Caya, M.V.C.; Cruz, F.R.G.; Blas, P.J.R.; Cagalingan, M.M.; Malbas, R.G.L.; Chung, W.-Y. Determining spoilage level against time and temperature of tomato-based Filipino cuisines using electronic nose. In Proceedings of the 2017IEEE 9th International Conference on Humanoid, Nanotechnology, Information Technology, Communication and Control, Environment and Management (HNICEM), Manila, Philippines, 1–3 December 2017. [Google Scholar] [CrossRef]
  9. Caya, M.V.; Maramba, R.G.; Mendoza, J.S.; Suman, P.S. Characterization and classification of coffee bean types using support vector machine. In Proceedings of the 2020 IEEE 12th International Conference on Humanoid, Nanotechnology, Information Technology, Communication and Control, Environment, and Management (HNICEM), Manila, Philippines, 3–7 December 2020. [Google Scholar] [CrossRef]
  10. Anticuando, M.K.D.; Directo, C.K.R.; Padilla, D.A. Electronic Nose and Deep Learning Approach in Identifying Ripe Lycopersicum esculentum L. TomatoFruit. In Proceedings of the 2022 13th International Conference on Computing Communication and Networking Technologies, ICCCNT 2022, Kharagpur, India, 3–5 October 2022; pp. 1–6. [Google Scholar] [CrossRef]
  11. Ibarra, M.A.; Patajo, S.J.G.; Caya, M.V.C. Characterization and Classification of Mangifera Indica Ripeness with Electronic 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, Boracay Island, Philippines, 1–4 December 2022; Institute of Electrical and Electronics Engineers Inc.: Piscataway, NJ, USA, 2022. [Google Scholar] [CrossRef]
  12. MacAtangay, C.; Cruz, C.A.C.D.; Villaverde, J.F. Determination of Tomato Fruit Stages Using Principal Component Analysis and Fuzzy Logic Algorithm. In Proceedings of the 4th IEEE International Conference on Artificial Intelligence in Engineering and Technology, IICAIET 2022, Kota Kinabalu, Malaysia, 13–15 September 2022; pp. 1–6. [Google Scholar] [CrossRef]
  13. Cerenio, W.; Custodio, A.; Perez, N.; Villaverde, J.F. Shopping Cart Following Robot through Computer Vision and Object Tracking Method. In Proceedings of the 2022 IEEE Region 10 Symposium (TENSYMP), Mumbai, India, 1–3 July 2022. [Google Scholar] [CrossRef]
  14. Balangue, R.D.; Christ; Linsangan, N.B.; Paul, J.; Juanatas, R.A.; Juanatas, I.C. Ear Recognition for Ear Biometrics Using Integrated Image Processing Techniques via Raspberry Pi. In Proceedings of the 2022 IEEE 14th International Conference on Humanoid, Nanotechnology, Information Technology, Communication and Control, Environment, and Management (HNICEM), Boracay Island, Philippines, 1–4 December 2022. [Google Scholar] [CrossRef]
  15. Gonzales, J.C.; Ron, J.; Villaverde, J.F. BMI Estimation from 2D Face Images Using Support Vector Machine. In Proceedings of the 2022 6th International Conference on Communication and Information Systems (ICCIS), Chongqing, China, 14–16 October 2022. [Google Scholar] [CrossRef]
  16. Evangelista, G.; Paglinawan, A.C.; Paglinawan, C.C. Design of breath acetone detection for diabetes detection and classification using electronic nose. In Proceedings of the 2024 16th International Conference on Computer and Automation Engineering (ICCAE), Melbourne, Australia, 14–16 March 2024; pp. 1–6. [Google Scholar] [CrossRef]
  17. Pellegrino, R.V.; Tarrobago, A.C.; Zulueta, D.L. Development of anemia cells recognition system using Raspberry Pi. In Proceedings of the 2023 15th International Conference on Computer and Automation Engineering (ICCAE), Sydney, Australia, 3–5 March 2023; pp. 1–6. [Google Scholar] [CrossRef]
  18. Caya, M.V.; Romero, D.K.R.; Castro, P.A. E-nose Based Classification of Drying Method Using Local Tea Leaves Gas Signature. In Proceedings of the 2021 IEEE 13th International Conference on Humanoid, Nanotechnology, Information Technology, Communication and Control, Environment, and Management, HNICEM 2021, Manila, Philippines, 28–30 November 2021; pp. 1–6. [Google Scholar] [CrossRef]
  19. Gabrielle, S.; Jose, J.C.; Villaverde, J.F.; Ann, M. Detection of Common Types of Eczema Using Gray Level Co-occurrence Matrix and Support Vector Machine. In Proceedings of the 2023 15th International Conference on Computer and Automation Engineering (ICCAE), Sydney, Australia, 3–5 March 2023. [Google Scholar] [CrossRef]
  20. Hortinela, C.; Balbin, J.R.; Fausto, J.C.; Divina, P.D.; Felices, J.P.T. Identification of Abnormal Red Blood Cells and Diagnosing Specific Types of Anemia Using Image Processing and Support Vector Machine. In Proceedings of the 2019 IEEE 11th International Conference on Humanoid, Nanotechnology, Information Technology, Communication and Control, Environment, and Management (HNICEM), Laoag, Philippines, 29 November–1 December 2019. [Google Scholar] [CrossRef]
Figure 1. Input, process, and output of this study.
Figure 1. Input, process, and output of this study.
Engproc 92 00016 g001
Figure 2. Hardware components of developed system.
Figure 2. Hardware components of developed system.
Engproc 92 00016 g002
Figure 3. Software used in developed system.
Figure 3. Software used in developed system.
Engproc 92 00016 g003
Figure 4. Model training flowchart.
Figure 4. Model training flowchart.
Engproc 92 00016 g004
Figure 5. SVM training.
Figure 5. SVM training.
Engproc 92 00016 g005
Figure 6. LDA–SVM model.
Figure 6. LDA–SVM model.
Engproc 92 00016 g006
Figure 7. Model classification.
Figure 7. Model classification.
Engproc 92 00016 g007
Figure 8. Experimental setup of e-Nose in this study.
Figure 8. Experimental setup of e-Nose in this study.
Engproc 92 00016 g008
Table 1. MQ sensors used in this study.
Table 1. MQ sensors used in this study.
SensorsSensitivityGas Present in Vinegar
MQ2Methane, Butane, LPG, Smoke DetectionIsobutanol, Methane Carboxylic Acid
MQ3Alcohol, Ethanol, Smoke DetectionEthyl Lactate, Ethyl Acetate
MQ4Methane, CNG Gas DetectionMethane Carboxylic Acid
MQ8Hydrogen Gas DetectionAcetic Acid
MQ135CO, Ammonia, Benzene, Alcohol, Smoke DetectionBenzyl Alcohol, Ethyl Lactate, Ethyl Acetate
Table 2. Sample Vinegar Data Before LDA Reduction.
Table 2. Sample Vinegar Data Before LDA Reduction.
Vinegar FlavorMQ135MQ8MQ3MQ4MQ2
Pinakurat8815433474852671425
Pinakurat8175449482853951441
Iloko13374534332742271314
Pinakurat8815433474852671425
Iloko13534454315141791346
Sinamak127103516031020207
Sinamak19345595362951311771
Table 3. Sample Vinegar Data After LDA Reduction.
Table 3. Sample Vinegar Data After LDA Reduction.
Vinegar FlavorLDA1 ValuesLDA2 Values
Pinakurat−14.17041487−0.570621815
Pinakurat−16.220631840.46116660216968114
Iloko5.371439689865838−0.389170779
Iloko6.7109159789165851.2452827362266632
Sinamak9.178909891882189−1.125653828
Sinamak9.1297811520.37899708410468125
Table 4. Confusion Matrix.
Table 4. Confusion Matrix.
Predicted
Actual SinamakIlokoPinakuratTotal
Sinamak13023
Iloko0360
Pinakurat0036
Total 85
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.

Share and Cite

MDPI and ACS Style

Palanas, J.L.; Peña, M.I.C.; Caya, M.V.C. Classification of Flavored Filipino Vinegars Using Electronic Nose. Eng. Proc. 2025, 92, 16. https://doi.org/10.3390/engproc2025092016

AMA Style

Palanas JL, Peña MIC, Caya MVC. Classification of Flavored Filipino Vinegars Using Electronic Nose. Engineering Proceedings. 2025; 92(1):16. https://doi.org/10.3390/engproc2025092016

Chicago/Turabian Style

Palanas, Jon Laurman, Michael Irvin C. Peña, and Meo Vincent C. Caya. 2025. "Classification of Flavored Filipino Vinegars Using Electronic Nose" Engineering Proceedings 92, no. 1: 16. https://doi.org/10.3390/engproc2025092016

APA Style

Palanas, J. L., Peña, M. I. C., & Caya, M. V. C. (2025). Classification of Flavored Filipino Vinegars Using Electronic Nose. Engineering Proceedings, 92(1), 16. https://doi.org/10.3390/engproc2025092016

Article Metrics

Back to TopTop