[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-118194-en":3,"doc-seo-118194-105":30,"detail-sidebar-cat-0-en-105":91},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":4,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29},118194,8796095461564,"Liam","https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d",8,"Research & Report","An Embedded Machine Learning-Based Spoiled Leftover Food Detection Device for Multiclass Classification","Food waste’s negative environmental repercussions drive global concern about how contamination forms and how freshness can be assessed after cooking and storage. Limited prior work addresses the combination of machine learning and electronic noses for detecting spoilage in leftover cooked food. This study proposes a multi-class approach that evaluates freshness after five days using an electronic nose with four MQ gas sensors (MQ-2, MQ-136, MQ-137, MQ-138) and machine-learning classifiers, achieving average accuracy between 90% and 100%.","JOURNAL OF INFORMATION AND COMMUNICATION TECHNOLOGY  \n[https://e-journal.uum.edu.my/index.php/jict](https://e-journal.uum.edu.my/index.php/jict)  \nHow to cite this article:  \nWan 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](https://doi.org/10.32890/jict2024.23.2.4)  \nAn Embedded Machine Learning-Based Spoiled Leftover Food Detection Device for Multiclass Classification  \n1Wan Nur Fadhlina Syamimi Wan Azman,  \n2Ku Nurul Fazira Ku Azir & 3Adam Mohd Khairuddin  \n1,2&3Faculty of Electronic Engineering & Technology Universiti Malaysia Perlis, Malaysia.  \n1,2&3Centre of Excellence for Advanced Computing, Universiti Malaysia Perlis, Malaysia.  \n* [1](1 syamimifadhlina@gmail.com)[ syamimifadhlina@gmail.com](1 syamimifadhlina@gmail.com)  \n[2](2 fazira@unimap.edu.my)[ fazira@unimap.edu.my](2 fazira@unimap.edu.my)  \n[3](3 adamkhairuddin@unimap.edu.my)[ adamkhairuddin@unimap.edu.my](3 adamkhairuddin@unimap.edu.my)  \n*Corresponding author  \nReceived: 24/3/2024 Revised:14/4/2024 Accepted: 15/4/2024 Published: 30/4/2024  \nABSTRACT  \nFood 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  \nof 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 demonstratesa 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.  \nKeywords: Classification, electronic nose, food safety, food waste, machine learning.  \nINTRODUCTION  \nThe socioeconomic costs, waste management, and climate change consequences of food loss and waste (FLW) make it a substantial issue (Chauhan et al. , 2021) . Food loss, which typically happens in the food value chain, is the term used to describe food that deteriorates or is lost before reaching customers. It frequently results from unintended farming techniques or technical shortcomings in infrastructure, packaging, marketing, storage, or other areas. Contrarily, food that is of good quality but is rejected before or beyond expiration and is not consumed is food waste. It usually happens at the retail and consuming phases of the food value chain, frequently due to carelessness or intentional disposal (Lipinski, 2013) . The issue of food waste has grown significantly on a global scale, particularly in developing nations like Malaysia. It has contributed substantially to climate change’s effects (Toniniet al. , 2018) . Some scholars have equated “food loss” with “food waste.” However, those who distinguish between the two define  \n“food loss” as food wasted at the start ","cbCaiqQlKqeERjcj","https://ap.wps.com/l/cbCaiqQlKqeERjcj","pdf",2589121,1,40,"English","en",105,"# Introduction\n## Food loss vs. food waste and global impacts\n## Food waste issues in Malaysia\n## Consumer perception and storage practices\n# Proposed Detection Approach\n## Electronic nose with gas sensors\n## Machine learning classifiers and multi-class classification\n# Conclusion\n## Model performance and relevance to reducing food waste","[{\"question\":\"What problem does the study address?\",\"answer\":\"The study targets the growing issue of food waste by enabling earlier detection of contamination in leftover cooked food.\"},{\"question\":\"How does the proposed system detect spoilage?\",\"answer\":\"It combines an electronic nose with four gas sensors (MQ-2, MQ-136, MQ-137, MQ-138) and machine learning algorithms to recognize contamination levels after storage.\"},{\"question\":\"Which machine learning methods are used and how accurate is the classification?\",\"answer\":\"Random Forest, k-nearest Neighbors, Support Vector Machine, and Linear Discriminant Analysis are used, and the multi-class classification reaches average accuracy from about 90% to 100%.\"}]","An Embedded Machine Learning-Based Spoiled Leftover Food Detection Device for Multiclass Classification | PDF",1785682108,101,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":86,"head_meta":88,"extra_data":90,"updated_unix":28},"an-embedded-machine-learning-based-spoiled-leftover-food-detection-device-for-multiclass-classification","",{"@graph":36,"@context":85},[37,54,68],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/research-report/",3,{"item":52,"name":13,"@type":43,"position":53},"https://docshare.wps.com/document/an-embedded-machine-learning-based-spoiled-leftover-food-detection-device-for-multiclass-classification/118194/",4,{"url":52,"name":13,"@type":55,"author":56,"headline":13,"publisher":58,"fileFormat":61,"inLanguage":23,"description":14,"dateModified":62,"datePublished":62,"encodingFormat":61,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":41,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-08-02",true,{"@type":65,"interactionType":66,"userInteractionCount":4},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81],{"name":72,"@type":73,"acceptedAnswer":74},"What problem does the study address?","Question",{"text":75,"@type":76},"The study targets the growing issue of food waste by enabling earlier detection of contamination in leftover cooked food.","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"How does the proposed system detect spoilage?",{"text":80,"@type":76},"It combines an electronic nose with four gas sensors (MQ-2, MQ-136, MQ-137, MQ-138) and machine learning algorithms to recognize contamination levels after storage.",{"name":82,"@type":73,"acceptedAnswer":83},"Which machine learning methods are used and how accurate is the classification?",{"text":84,"@type":76},"Random Forest, k-nearest Neighbors, Support Vector Machine, and Linear Discriminant Analysis are used, and the multi-class classification reaches average accuracy from about 90% to 100%.","https://schema.org",{"og:url":52,"og:type":87,"og:title":13,"og:site_name":59,"og:description":14},"article",{"robots":89,"canonical":52},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":92},[93,97,101,105,110,115,119,122,127,130,134],{"id":20,"doc_module":4,"doc_module_name":46,"category_name":94,"show_sort_weight":95,"slug":96},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":98,"show_sort_weight":99,"slug":100},"Literature",80,"literature",{"id":53,"doc_module":4,"doc_module_name":46,"category_name":102,"show_sort_weight":103,"slug":104},"Exam",70,"exam",{"id":106,"doc_module":4,"doc_module_name":46,"category_name":107,"show_sort_weight":108,"slug":109},5,"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":46,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":116,"doc_module":4,"doc_module_name":46,"category_name":117,"show_sort_weight":21,"slug":118},7,"Healthcare","healthcare",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":120,"slug":121},30,"research-report",{"id":123,"doc_module":4,"doc_module_name":46,"category_name":124,"show_sort_weight":125,"slug":126},9,"Religion & Spirituality",20,"religion-spirituality",{"id":125,"doc_module":4,"doc_module_name":46,"category_name":128,"show_sort_weight":125,"slug":129},"World Cup","world-cup",{"id":131,"doc_module":4,"doc_module_name":46,"category_name":132,"show_sort_weight":131,"slug":133},10,"Lifestyle","lifestyle",{"id":135,"doc_module":4,"doc_module_name":46,"category_name":136,"show_sort_weight":106,"slug":137},19,"General","general"]