An Embedded Machine Learning-Based Spoiled Leftover Food Detection Device for Multiclass Classification

Authors

  • Wan Nur Fadhlina Syamimi Wan Azman Faculty of Electronic Engineering & Technology Universiti Malaysia Perlis, Malaysia
  • Ku Nurul Fazira Ku Azir Faculty of Electronic Engineering & Technology Universiti Malaysia Perlis, Malaysia
  • Adam Mohd Khairuddin Faculty of Electronic Engineering & Technology Universiti Malaysia Perlis, Malaysia

DOI:

https://doi.org/10.32890/jict2024.23.2.4

Keywords:

Classification, electronic nose, food safety, food waste, machine learning

Abstract

Food waste’s negative environmental repercussions are causing it to become a global concern. Several studies have examined the
factors influencing food waste behaviour and management. This work was motivated by the lack of previous research on machine
learning and electronic noses to detect contamination from leftover cooked food. This work proposes using machine learning algorithms and electronic nose technology to recognise and forecast the contamination in leftover cooked food. After five days of storage, the freshness of cooked leftovers was evaluated using an electronic nose combined with machine learning algorithms. Most food samples used in this work were from Malaysian’s leftover lunch and dinner dishes. Four (4) gas sensors—MQ-2, MQ-136, MQ-137, and MQ-138—are used in developing the electronic nose to identify the presence of gas in the food sample. The data from the gas sensors was analysed using machine learning methods, namely Random Forest, k-nearest Neighbors, Support Vector Machine, and Linear Discriminant Analysis. Based on the results, a multi-classification technique yielded a greater accuracy rate in classifying and identifying the level of contamination in the cooked food leftovers, with average accuracy ranging from 90 percent to 100 percent. In conclusion, the work demonstrates a novel method for using machine learning algorithms to classify, identify, and predict the contamination level of leftover cooked food, contributing to reducing food waste generated primarily by Malaysians.

References

Abu-Khalaf, N. (2021). Identification and quantification of olive oil quality parameters using an electronic nose. Agriculture (Switzerland), 11(7). https://doi.org/10.3390/ agriculture11070674

Amirudin, N., & Gim, T. H. T. (2019). Impact of perceived food accessibility on household food waste behaviors: A case of the Klang Valley, Malaysia. Resources, Conservation and Recycling, 151. https://doi.org/10.1016/j. resconrec.2019.05.011

Bejjanki, K. K., Gyani, J., & Gugulothu, N. (2020). Class imbalance reduction (CIR): A novel approach to software defect prediction in the presence of class imbalance. Symmetry, 12(3). https://doi.org/10.3390/sym12030407

Betz, A., Buchli, J., Göbel, C., & Müller, C. (2015). Food waste in the Swiss food service industry - Magnitude and potential for reduction. Waste Management, 35, 218–226. https://doi.org/10.1016/j.wasman.2014.09.015

Bindra, N., & Sood, M. (2019). Detecting DDoS attacks using machine learning techniques and contemporary intrusion detection dataset. Automatic Control and Computer Sciences, 53(5), 419–428. https://doi.org/10.3103/ S0146411619050043

Buratti, S., Malegori, C., Benedetti, S., Oliveri, P., & Giovanelli, G. (2018). E-nose, e-tongue and e-eye for edible olive oil characterisation and shelf life assessment: A powerful data fusion approach. Talanta, 182(January), 131–141. https://doi.org/10.1016/j.talanta.2018.01.096 Journal of ICT, 23, No. 2 (April) 2024, pp:253-

Camardo Leggieri, M., Mazzoni, M., Fodil, S., Moschini, M., Bertuzzi, T., Prandini, A., & Battilani, P. (2021). An electronic nose supported by an artificial neural network for the rapid detection of aflatoxin B1 and fumonisins in maise. Food Control, 123. https://doi.org/10.1016/j. foodcont.2020.107722

Chauhan, C., Dhir, A., Akram, M. U., & Salo, J. (2021). Food loss and waste in food supply chains. A systematic literature review and framework development approach. Journal of Cleaner Production, 295. https://doi.org/10.1016/j. jclepro.2021.126438

Chauhan, V. K., Dahiya, K., & Sharma, A. (2019). Problem formulations and solvers in linear SVM: A review. Artificial Intelligence Review, 52(2), 803–855. https://doi.org/10.1007/ s10462-018-9614-6

Chen, Q., Zhao, J., Chen, Z., Lin, H., & Zhao, D. A. (2011). Discrimination of green tea quality using the electronic nose technique and the human panel test, comparison of linear and nonlinear classification tools. Sensors and Actuators, B: Chemical, 159(1), 294–300. https://doi.org/10.1016/j. snb.2011.07.009

Elith, J., Leathwick, J. R., & Hastie, T. (2008). A working guide to boosted regression trees. Journal of Animal Ecology, 77(4), 802–813. https://doi.org/10.1111/j.1365-2656.2008.01390.x

Feng, W., Huang, W., & Ren, J. (2018). Class imbalance ensemble learning based on the margin theory. Applied Sciences (Switzerland), 8(5). https://doi.org/10.3390/app8050815

Feyzioglu, A., & Taspinar, Y. S. (2023). Beef quality classification with reduced e-nose data features according to beef cut types. Sensors, 23(4), 2222. https://doi.org/10.3390/s23042222 Food wastage leads to climate change — Forum Air Malaysia | What You Think | Malay Mail. (n.d.). Retrieved September 21, 2021, from https://www.malaymail.com/news/what-you-think/2018/07/20/food-wastage-leads-to-climate-change-forum-air-malaysia/1654305

Gębicki, J., & Szulczyński, B. (2018). Discrimination of selected fungi species based on their odour profile using prototypes of electronic nose instruments. Measurement: Journal of the International Measurement Confederation, 116(August 2015), 307–313. https://doi.org/10.1016/j. measurement.2017.11.029 Journal of ICT, 23, No. 2 (April) 2024, pp:253-

Gonçalves, W. B., Teixeira, W. S. R., Sampaio, A. N. da C. E., Martins, O. A., Cervantes, E. P., Mioni, M. de S. R., Gruber, J., & Pereira, J. G. (2023). Combination of the electronic nose with microbiology as a tool for rapid detection of Salmonella. Journal of Microbiological Methods, 212, 106805. https://doi.org/10.1016/j.mimet.2023.106805

Gu, S., Wang, J., & Wang, Y. (2019). Early discrimination and growth tracking of Aspergillus spp. contamination in rice kernels using electronic nose. Food Chemistry, 292(April), 325–335. https://doi.org/10.1016/j.foodchem.2019.04.054

Gunders, D., & Bloom, J. (2017). Wasted: How America is losing up to 40% of its food from farm to fork to landfill. Natural Resources Defense Council, 1(August), 1–58. www.suerossi. com

Hosseini, H., Minaei, S., & Beheshti, B. (2023). A dedicated electronic nose combined with chemometric methods for detection of adulteration in sesame oil. Journal of Food Science and Technology, 60(10), 2681–2694. https://doi.org/10.1007/s13197-023-05792-2

Hsieh, Y. C., & Yao, D. J. (2018). Intelligent gas-sensing systems and their applications. Journal of Micromechanics and Microengineering, 28(9), 093001. https://doi.org/10.1088/1361-6439/aac849

Huang, L., Zhao, J., Chen, Q., & Zhang, Y. (2014). Nondestructive measurement of total volatile basic nitrogen (TVB-N) in pork meat by integrating near infrared spectroscopy, computer vision and electronic nose techniques. Food Chemistry, 145, 228–236. https://doi.org/10.1016/j.foodchem.2013.06.073

Interest, C. (2017). Talking Trash – The Chemistry Behind the Smell of Garbage | SciTech Connect. Elsevier SciTech Connect. https://scitechconnect.elsevier.com/talking-trash-chemistry-behind-garbage-smell/

Ismail, M. H., Ghazi, T. I. M., Hamzah, M. H., Manaf, L. A., Tahir, R. M., Nasir, A. M., & Omar, A. E. (2020). Impact of movement control order (MCO) due to coronavirus disease (Covid-19) on food waste generation: A case study in Klang Valley, Malaysia. Sustainability (Switzerland), 12(21), 1–17. https://doi.org/10.3390/su12218848

Jiang, S., & Liu, Y. (2020). Gas sensors for volatile compounds analysis in muscle foods: A review. TrAC - Trends in Analytical Chemistry, 126, 115877. https://doi.org/10.1016/j. trac.2020.115877 Journal of ICT, 23, No. 2 (April) 2024, pp:253-

Jiarpinijnun, A., Osako, K., & Siripatrawan, U. (2020). Visualisation of volatomic profiles for early detection of fungal infection on storage Jasmine brown rice using electronic nose coupled with chemometrics. Measurement: Journal of the International Measurement Confederation, 157, 107561. https://doi.org/10.1016/j.measurement.2020.107561

Kefi-Fatteh, T., Ksantini, R., Kaâniche, M. B., & Bouhoula, A. (2019). A novel incremental one-class support vector machine based on low variance direction. Pattern Recognition, 91, 308–321. https://doi.org/10.1016/j.patcog.2019.02.027

Li, Q., Gu, Y., & Jia, J. (2017). Classification of multiple Chinese liquors by means of a QCM-based e-nose and MDS-SVM classifier. Sensors (Switzerland), 17(2). https://doi.org/10.3390/s17020272

Li, Q., Gu, Y., & Wang, N. F. (2017). Application of random forest classifier by means of a QCM-based e-nose in the identification of Chinese liquor flavors. IEEE Sensors Journal, 17(6), 1788–1794. https://doi.org/10.1109/ JSEN.2017.2657653

Lipinski, B. (2013). By the numbers: Reducing food loss and waste. World Resources Institute. 1–4. http://www.wri.org/ blog/2013/06/numbers-reducing-food-loss-and-waste

Liu, H., Li, Q., Yan, B., Zhang, L., & Gu, Y. (2019). Bionic electronic nose based on mos sensors array and machine learning algorithms used for wine properties detection. Sensors (Switzerland), 19(1). https://doi.org/10.3390/ s19010045

Mahmodi, K., Mostafaei, M., & Mirzaee-Ghaleh, E. (2019). Detection and classification of diesel-biodiesel blends by LDA, QDA and SVM approaches using an electronic nose. Fuel, 258(July), 116114. https://doi.org/10.1016/j. fuel.2019.116114

Mohamed, A. E. (2017). Comparative study of four supervised machine learning techniques for classification. International Journal of Applied Science and Technology, 7(2), 5–18. https://doi.org/10.15546/aeei-2014-0021

Mohammed, R., Rawashdeh, J., & Abdullah, M. (2020). Machine learning with oversampling and undersampling techniques: Overview study and experimental results. 2020 11th International Conference on Information and Communication Systems, ICICS 2020, April, 243–248. https://doi.org/10.1109/ICICS49469.2020.239556 Journal of ICT, 23, No. 2 (April) 2024, pp:253-

Naim, M. N., & Rahman, H. A. (2020). Knowledge, attitude and practice on food waste management among food vendors in Universiti Putra Malaysia, Serdang, Selangor. Malaysian Journal of Medicine and Health Sciences, 16(8), 118–127.

Oates, M. J., Abu-Khalaf, N., Molina-Cabrera, C., Ruiz-Canales, A., Ramos, J., & Bahder, B. W. (2020). Detection of lethal bronzing disease in cabbage palms (Sabal palmetto) using a low-cost electronic nose. Biosensors, 10(11). https://doi.org/10.3390/bios10110188

Oates, M. J., Fox, P., Sanchez-Rodriguez, L., Carbonell-Barrachina, Á. A., & Ruiz-Canales, A. (2018). DFT based classification of olive oil type using a sinusoidally heated, low cost electronic nose. Computers and Electronics in Agriculture, 155, 348–358. https://doi.org/10.1016/j.compag.2018.10.026

Ong, S. Q., Lee, B. B., Tan, G. P., & Maniam, S. (2019). Food waste pattern in tertiary education institution in Penang: Quantitative comparison of food waste composition between semester break and start. Pertanika Journal of Social Sciences and Humanities, 27(1), 379–389.

Ordukaya, E., & Karlik, B. (2017). Quality control of olive oils using machine learning and electronic nose. Journal of Food Quality, 2017, 1-7. https://doi.org/10.1155/2017/9272404

Pampoukis, G., Lytou, A. E., Argyri, A. A., Panagou, E. Z., & Nychas, G.-J. E. (2022). Recent advances and applications of rapid microbial assessment from a food safety perspective. Sensors, 22(7), 2800. https://doi.org/10.3390/s22072800

Papadopoulou, O. S., Panagou, E. Z., Mohareb, F. R., & Nychas, G. J. E. (2013). Sensory and microbiological quality assessment of beef fillets using a portable electronic nose in tandem with support vector machine analysis. Food Research International, 50(1), 241–249. https://doi.org/10.1016/j. foodres.2012.10.020

Putri, L. A., Rahman, I., Puspita, M., Hidayat, S. N., Dharmawan, A. B., Rianjanu, A., Wibirama, S., Roto, R., Triyana, K., & Wasisto, H. S. (2023). Rapid analysis of meat floss origin using a supervised machine learning-based electronic nose towards food authentication. NPJ Science of Food, 7(1), 31. https://doi.org/10.1038/s41538-023-00205-2

Qiu, S., Gao, L., & Wang, J. (2014). Classification and regression of ELM, LVQ and SVM for E-nose data of strawberry juice. Journal of Food Engineering, 144, 77–85. https://doi.org/10.1016/j.jfoodeng.2014.07.015 Journal of ICT, 23, No. 2 (April) 2024, pp:253-

Qiu, S., Wang, J., Tang, C., & Du, D. (2015). Comparison of ELM, RF, and SVM on E-nose and E-tongue to trace the quality status of mandarin (Citrus unshiu Marc.). Journal of Food Engineering, 166, 193–203. https://doi.org/10.1016/j. jfoodeng.2015.06.007

Qiu, S., & Wang, J. (2017). The prediction of food additives in the fruit juice based on electronic nose with chemometrics. Food Chemistry, 230, 208–214. https://doi.org/10.1016/j. foodchem.2017.03.011

Roy, M., & Yadav, B. K. (2021). Electronic nose for detection of food adulteration: A review. Journal of Food Science and Technology, 1-13. https://doi.org/10.1007/s13197-021-05057-w

Schroeder, V., Evans, E. D., Wu, Y. C. M., Voll, C. C. A., McDonald, B. R., Savagatrup, S., & Swager, T. M. (2019). Chemiresistive sensor array and machine learning classification of food. ACS Sensors, 4(8), 2101–2108. https://doi.org/10.1021/ acssensors.9b00825

Tan, J., & Xu, J. (2020). Applications of electronic nose (e-nose) and electronic tongue (e-tongue) in food quality-related properties determination: A review. Artificial Intelligence in Agriculture, 4, 104–115. https://doi.org/10.1016/j. aiia.2020.06.003

Tian, H., Wu, D., Chen, B., Yuan, H., Yu, H., Lou, X., & Chen, C. (2023). Rapid identification and quantification of vegetable oil adulteration in raw milk using a flash gas chromatography electronic nose combined with machine learning. Food Control, 150, 109758. https://doi.org/10.1016/J. FOODCONT.2023.109758

Tonini, D., Albizzati, P. F., & Astrup, T. F. (2018). Environmental impacts of food waste: Learnings and challenges from a case work on UK. Waste Management, 76, 744–766. https://doi.org/10.1016/j.wasman.2018.03.032

Wan Azman, W. N. F. S., Ku Azir, K. N. F., & Amir, A. (2022). Classification of odour in the leftover cooked food to determine contamination using machine learning. Lecture Notes in Electrical Engineering, 835, 831–841. https://doi.org/10.1007/978-981-16-8515-6_63

Wong, K. K. S., Sharifuddin, J., Nik Masdek, N. R., Wong, W. L., & Lai, K. S. (2021). Determinants of household’s intention of practicing sustainable food waste management in Malaysia. Journal of ICT, 23, No. 2 (April) 2024, pp:253-IOP Conference Series: Earth and Environmental Science, 756(1). https://doi.org/10.1088/1755-1315/756/1/012036

Xu, M., Wang, J., & Gu, S. (2019). Rapid identification of tea quality by E-nose and computer vision combining with a synergetic data fusion strategy. Journal of Food Engineering, 241(June 2018), 10–17. https://doi.org/10.1016/j. jfoodeng.2018.07.020

Zulkifli, A. A., Yusoff, M. Z. M., Manaf, L. A., Zakaria, M. R., Roslan, A. M., Ariffin, H., Shirai, Y., & Hassan, M. A. (2019). Assessment of municipal solid waste generation in Universiti Putra Malaysia and its potential for green energy production. Sustainability (Switzerland), 11(14). https://doi.org/10.3390/su11143909

Downloads

Published

30-04-2024

How to Cite

Wan Azman, W. N. F. S., Ku Azir, K. N. F., & Mohd Khairuddin, A. (2024). An Embedded Machine Learning-Based Spoiled Leftover Food Detection Device for Multiclass Classification. Journal of Information and Communication Technology, 23(2), 253-292. https://doi.org/10.32890/jict2024.23.2.4

Research impact

Harvested 2026-09-22
5 citations, from Scopus — the highest of the sources checked

Counts differ between services because each indexes a different body of literature. None of them is the whole picture.

Identifiers DOI 10.32890/jict2024.23.2.4 OpenAlex W4396589740 Semantic Scholar CorpusID 269561475 Scopus 85192391103