René Ernesto García Rivas, Pedro Luiz Lima Bertarini, Henrique Fernandes
{"title":"使用机器学习和深度学习模型的自动咖啡烘焙等级分类","authors":"René Ernesto García Rivas, Pedro Luiz Lima Bertarini, Henrique Fernandes","doi":"10.1111/1750-3841.70532","DOIUrl":null,"url":null,"abstract":"<div>\n \n \n <section>\n \n <p>The coffee roasting process is a critical factor in determining the final quality of the beverage, influencing its flavour, aroma, and acidity. Traditionally, roast-level classification has relied on manual inspection, which is time-consuming, subjective, and prone to inconsistencies. However, advancements in machine learning (ML) and computer vision, particularly convolutional neural networks (CNNs), have shown great promise in automating and improving the accuracy of this process. This study evaluates multiple ML models for coffee roast level classification, including a CNN with Xception as a feature extractor, alongside AdaBoost, random forest (RF), and support vector machine (SVM). The models were trained and tested on a public dataset of 1,600 high-quality images, balanced across four roast levels: green, light, medium, and dark, to ensure robust performance. Experimental results demonstrate that all models achieved 100 % accuracy and F-1 scores, confirming their effectiveness in accurately distinguishing roast levels. Furthermore, the proposed approach was compared with previous studies, showing strong performance in roast classification. Image augmentation techniques were applied to improve generalizability in real-world applications. This research presents a reliable, scalable, and fully automated solution for roast-level classification, significantly contributing to quality control in the coffee industry.</p>\n </section>\n \n <section>\n \n <h3> Practical Applications</h3>\n \n <p>This research offers a reliable and automated way to classify coffee bean roast levels using image analysis and ML. It can help coffee producers and roasters improve quality control by providing faster, more consistent, and objective assessments of roast levels, ultimately ensuring a better product for consumers.</p>\n </section>\n </div>","PeriodicalId":193,"journal":{"name":"Journal of Food Science","volume":"90 9","pages":""},"PeriodicalIF":3.4000,"publicationDate":"2025-09-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://ift.onlinelibrary.wiley.com/doi/epdf/10.1111/1750-3841.70532","citationCount":"0","resultStr":"{\"title\":\"Automated Coffee Roast Level Classification Using Machine Learning and Deep Learning Models\",\"authors\":\"René Ernesto García Rivas, Pedro Luiz Lima Bertarini, Henrique Fernandes\",\"doi\":\"10.1111/1750-3841.70532\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div>\\n \\n \\n <section>\\n \\n <p>The coffee roasting process is a critical factor in determining the final quality of the beverage, influencing its flavour, aroma, and acidity. Traditionally, roast-level classification has relied on manual inspection, which is time-consuming, subjective, and prone to inconsistencies. However, advancements in machine learning (ML) and computer vision, particularly convolutional neural networks (CNNs), have shown great promise in automating and improving the accuracy of this process. This study evaluates multiple ML models for coffee roast level classification, including a CNN with Xception as a feature extractor, alongside AdaBoost, random forest (RF), and support vector machine (SVM). The models were trained and tested on a public dataset of 1,600 high-quality images, balanced across four roast levels: green, light, medium, and dark, to ensure robust performance. Experimental results demonstrate that all models achieved 100 % accuracy and F-1 scores, confirming their effectiveness in accurately distinguishing roast levels. Furthermore, the proposed approach was compared with previous studies, showing strong performance in roast classification. Image augmentation techniques were applied to improve generalizability in real-world applications. This research presents a reliable, scalable, and fully automated solution for roast-level classification, significantly contributing to quality control in the coffee industry.</p>\\n </section>\\n \\n <section>\\n \\n <h3> Practical Applications</h3>\\n \\n <p>This research offers a reliable and automated way to classify coffee bean roast levels using image analysis and ML. It can help coffee producers and roasters improve quality control by providing faster, more consistent, and objective assessments of roast levels, ultimately ensuring a better product for consumers.</p>\\n </section>\\n </div>\",\"PeriodicalId\":193,\"journal\":{\"name\":\"Journal of Food Science\",\"volume\":\"90 9\",\"pages\":\"\"},\"PeriodicalIF\":3.4000,\"publicationDate\":\"2025-09-09\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://ift.onlinelibrary.wiley.com/doi/epdf/10.1111/1750-3841.70532\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Journal of Food Science\",\"FirstCategoryId\":\"97\",\"ListUrlMain\":\"https://ift.onlinelibrary.wiley.com/doi/10.1111/1750-3841.70532\",\"RegionNum\":2,\"RegionCategory\":\"农林科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q2\",\"JCRName\":\"FOOD SCIENCE & TECHNOLOGY\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Food Science","FirstCategoryId":"97","ListUrlMain":"https://ift.onlinelibrary.wiley.com/doi/10.1111/1750-3841.70532","RegionNum":2,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"FOOD SCIENCE & TECHNOLOGY","Score":null,"Total":0}
Automated Coffee Roast Level Classification Using Machine Learning and Deep Learning Models
The coffee roasting process is a critical factor in determining the final quality of the beverage, influencing its flavour, aroma, and acidity. Traditionally, roast-level classification has relied on manual inspection, which is time-consuming, subjective, and prone to inconsistencies. However, advancements in machine learning (ML) and computer vision, particularly convolutional neural networks (CNNs), have shown great promise in automating and improving the accuracy of this process. This study evaluates multiple ML models for coffee roast level classification, including a CNN with Xception as a feature extractor, alongside AdaBoost, random forest (RF), and support vector machine (SVM). The models were trained and tested on a public dataset of 1,600 high-quality images, balanced across four roast levels: green, light, medium, and dark, to ensure robust performance. Experimental results demonstrate that all models achieved 100 % accuracy and F-1 scores, confirming their effectiveness in accurately distinguishing roast levels. Furthermore, the proposed approach was compared with previous studies, showing strong performance in roast classification. Image augmentation techniques were applied to improve generalizability in real-world applications. This research presents a reliable, scalable, and fully automated solution for roast-level classification, significantly contributing to quality control in the coffee industry.
Practical Applications
This research offers a reliable and automated way to classify coffee bean roast levels using image analysis and ML. It can help coffee producers and roasters improve quality control by providing faster, more consistent, and objective assessments of roast levels, ultimately ensuring a better product for consumers.
期刊介绍:
The goal of the Journal of Food Science is to offer scientists, researchers, and other food professionals the opportunity to share knowledge of scientific advancements in the myriad disciplines affecting their work, through a respected peer-reviewed publication. The Journal of Food Science serves as an international forum for vital research and developments in food science.
The range of topics covered in the journal include:
-Concise Reviews and Hypotheses in Food Science
-New Horizons in Food Research
-Integrated Food Science
-Food Chemistry
-Food Engineering, Materials Science, and Nanotechnology
-Food Microbiology and Safety
-Sensory and Consumer Sciences
-Health, Nutrition, and Food
-Toxicology and Chemical Food Safety
The Journal of Food Science publishes peer-reviewed articles that cover all aspects of food science, including safety and nutrition. Reviews should be 15 to 50 typewritten pages (including tables, figures, and references), should provide in-depth coverage of a narrowly defined topic, and should embody careful evaluation (weaknesses, strengths, explanation of discrepancies in results among similar studies) of all pertinent studies, so that insightful interpretations and conclusions can be presented. Hypothesis papers are especially appropriate in pioneering areas of research or important areas that are afflicted by scientific controversy.