Automated Coffee Roast Level Classification Using Machine Learning and Deep Learning Models

IF 3.4 2区 农林科学 Q2 FOOD SCIENCE & TECHNOLOGY
René Ernesto García Rivas, Pedro Luiz Lima Bertarini, Henrique Fernandes
{"title":"Automated Coffee Roast Level Classification Using Machine Learning and Deep Learning Models","authors":"René Ernesto García Rivas,&nbsp;Pedro Luiz Lima Bertarini,&nbsp;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}
引用次数: 0

Abstract

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.

Abstract Image

Abstract Image

Abstract Image

Abstract Image

使用机器学习和深度学习模型的自动咖啡烘焙等级分类
咖啡烘焙过程是决定饮料最终质量的关键因素,影响其风味、香气和酸度。传统上,烘焙级别的分类依赖于人工检查,这是耗时的,主观的,并且容易产生不一致。然而,机器学习(ML)和计算机视觉的进步,特别是卷积神经网络(cnn),在自动化和提高这一过程的准确性方面显示出巨大的希望。本研究评估了用于咖啡烘焙级别分类的多种ML模型,包括使用Xception作为特征提取器的CNN,以及AdaBoost、随机森林(RF)和支持向量机(SVM)。这些模型在1600张高质量图像的公共数据集上进行了训练和测试,并在四个烘烤级别上进行了平衡:绿色、浅色、中等和深色,以确保稳健的性能。实验结果表明,所有模型都达到了100%的准确率和F-1分,证实了它们在准确区分烘烤等级方面的有效性。此外,将该方法与前人的研究结果进行了比较,结果表明该方法具有较强的烘烤分类性能。图像增强技术的应用,以提高在现实世界的应用普遍性。这项研究提出了一个可靠的、可扩展的、完全自动化的烘焙级分类解决方案,对咖啡行业的质量控制有重大贡献。本研究提供了一种可靠的、自动化的方法,利用图像分析和机器学习对咖啡豆的烘焙水平进行分类。它可以帮助咖啡生产商和烘焙师通过提供更快、更一致和客观的烘焙水平评估来提高质量控制,最终确保为消费者提供更好的产品。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Journal of Food Science
Journal of Food Science 工程技术-食品科技
CiteScore
7.10
自引率
2.60%
发文量
412
审稿时长
3.1 months
期刊介绍: 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.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信