Comparative analysis of YOLO models for green coffee bean detection and defect classification

The quality and uniformity of green coffee beans significantly influence the overall flavor and value of the product. In the coffee industry, automated flaws and bean-type identification offer numerous advantages. This study examines the effectiveness of multiple YOLO (You Only Look Once) models for identifying and classifying green coffee beans. Various YOLO variants, including YOLOv3, YOLOv4, YOLOv5, YOLOv7, YOLOv8, and custom models, are compared with a focus on computational efficiency, accuracy, and speed. Utilizing a dataset of 4,032 training and 506 testing images encompassing diverse bean types, defects, and lighting conditions, we assessed the performance. The bounding boxes generated by our models accurately encompass coffee beans, with the background typically uniform and set to black. Our analysis reveals the superior performance of the custom-YOLOv8n model, which we meticulously customized for green coffee bean detection. This model achieved high precision, recall, f1-score, and mAP, demonstrating its potential for real-world implementation in coffee bean quality control systems. The customization process involved fine-tuning the model to focus on significant features relevant to green coffee bean detection and employing specific labeling strategies. Customization allows you to fine-tune the model to focus on important features relevant to green coffee bean detection. This sensitivity ensures that the model can effectively distinguish between different bean types and detect even subtle defects. This paper clarifies our primary objective of evaluating YOLO models' performance in identifying and categorizing green coffee beans, with potential implications for enhancing efficiency and consistency in the coffee industry. A succinct key sentence underscores the benefits of our research for readers seeking efficient YOLO model selection and implementation in agricultural systems.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2024-11-22
DOI
https://doi.org/10.1038/s41598-024-78598-7
Citations
16
Primary Topic
Coffee research and impacts
Type
article
Field-Weighted Citation Impact
7.17
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparative analysis of YOLO models for green coffee bean detection and defect classification

Hira Lal Gope, Shohag Barman, Hidekazu Fukai, Fahim Mahafuz Ruhad
16 citations
Scientific Reports
Coffee research and impacts
7.17
article

Comparative analysis of YOLO models for green coffee bean detection and defect classification

Hira Lal Gope, Shohag Barman, Hidekazu Fukai, Fahim Mahafuz Ruhad
article en
16 citations

Abstract

The quality and uniformity of green coffee beans significantly influence the overall flavor and value of the product. In the coffee industry, automated flaws and bean-type identification offer numerous advantages. This study examines the effectiveness of multiple YOLO (You Only Look Once) models for identifying and classifying green coffee beans. Various YOLO variants, including YOLOv3, YOLOv4, YOLOv5, YOLOv7, YOLOv8, and custom models, are compared with a focus on computational efficiency, accuracy, and speed. Utilizing a dataset of 4,032 training and 506 testing images encompassing diverse bean types, defects, and lighting conditions, we assessed the performance. The bounding boxes generated by our models accurately encompass coffee beans, with the background typically uniform and set to black. Our analysis reveals the superior performance of the custom-YOLOv8n model, which we meticulously customized for green coffee bean detection. This model achieved high precision, recall, f1-score, and mAP, demonstrating its potential for real-world implementation in coffee bean quality control systems. The customization process involved fine-tuning the model to focus on significant features relevant to green coffee bean detection and employing specific labeling strategies. Customization allows you to fine-tune the model to focus on important features relevant to green coffee bean detection. This sensitivity ensures that the model can effectively distinguish between different bean types and detect even subtle defects. This paper clarifies our primary objective of evaluating YOLO models' performance in identifying and categorizing green coffee beans, with potential implications for enhancing efficiency and consistency in the coffee industry. A succinct key sentence underscores the benefits of our research for readers seeking efficient YOLO model selection and implementation in agricultural systems.

Scientific ReportsVol. 14(1)
Gopalganj Science and Technology University (BD), Sylhet Agricultural University (BD), Gifu University (JP)
Zero hunger
Openalex Percentile: Top 2%
Coffee research and impacts
7.17
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.