{"title":"基于改进的 YOLOv8 模型的咖啡青豆缺陷检测方法","authors":"Yuanhao Ji, Jinpu Xu, Beibei Yan","doi":"10.1155/2024/2864052","DOIUrl":null,"url":null,"abstract":"<p>This research is aimed at addressing the significant challenges of detecting and classifying green coffee beans, with a particular focus on identifying defective coffee beans—an important task for improving coffee quality and market value. The main challenge is to accurately detect small and visually subtle defects in coffee beans in real-world production environments with a large number of beans, varying lighting conditions, and complex backgrounds. To address these challenges, we propose a YOLOv8n-based object detection model that employs several innovative strategies aimed at improving detection performance and robustness.</p><p>Our research includes the introduction of WIoUv3 and the development of the Atn-C3Ghost module, which integrates the ECA mechanism with the C3Ghost module to refine the feature extraction and improve the accuracy of the model.</p><p>In order to validate the effectiveness of our proposed method, we conducted comprehensive comparison and ablation experiments. In addition, we compared the C3Ghost structure in combination with various attentional mechanisms to determine their impact on the model’s detection ability. We also conducted ablation studies to evaluate the respective contributions of WIoUv3, ECA, and C3Ghost to overall model performance.</p><p>The experimental results show that the YOLOv8n-based model enhanced with WIoUv3, ECA, and C3Ghost achieves an accuracy of 99.0% in detecting green coffee beans, which is significantly better than other YOLO models. This study not only provides a practical solution for green coffee bean detection but also provides a valuable framework for addressing similar challenges in other small object detection tasks.</p>","PeriodicalId":15717,"journal":{"name":"Journal of Food Processing and Preservation","volume":"2024 1","pages":""},"PeriodicalIF":2.0000,"publicationDate":"2024-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://onlinelibrary.wiley.com/doi/epdf/10.1155/2024/2864052","citationCount":"0","resultStr":"{\"title\":\"Coffee Green Bean Defect Detection Method Based on an Improved YOLOv8 Model\",\"authors\":\"Yuanhao Ji, Jinpu Xu, Beibei Yan\",\"doi\":\"10.1155/2024/2864052\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p>This research is aimed at addressing the significant challenges of detecting and classifying green coffee beans, with a particular focus on identifying defective coffee beans—an important task for improving coffee quality and market value. The main challenge is to accurately detect small and visually subtle defects in coffee beans in real-world production environments with a large number of beans, varying lighting conditions, and complex backgrounds. To address these challenges, we propose a YOLOv8n-based object detection model that employs several innovative strategies aimed at improving detection performance and robustness.</p><p>Our research includes the introduction of WIoUv3 and the development of the Atn-C3Ghost module, which integrates the ECA mechanism with the C3Ghost module to refine the feature extraction and improve the accuracy of the model.</p><p>In order to validate the effectiveness of our proposed method, we conducted comprehensive comparison and ablation experiments. In addition, we compared the C3Ghost structure in combination with various attentional mechanisms to determine their impact on the model’s detection ability. We also conducted ablation studies to evaluate the respective contributions of WIoUv3, ECA, and C3Ghost to overall model performance.</p><p>The experimental results show that the YOLOv8n-based model enhanced with WIoUv3, ECA, and C3Ghost achieves an accuracy of 99.0% in detecting green coffee beans, which is significantly better than other YOLO models. This study not only provides a practical solution for green coffee bean detection but also provides a valuable framework for addressing similar challenges in other small object detection tasks.</p>\",\"PeriodicalId\":15717,\"journal\":{\"name\":\"Journal of Food Processing and Preservation\",\"volume\":\"2024 1\",\"pages\":\"\"},\"PeriodicalIF\":2.0000,\"publicationDate\":\"2024-11-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://onlinelibrary.wiley.com/doi/epdf/10.1155/2024/2864052\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Journal of Food Processing and Preservation\",\"FirstCategoryId\":\"97\",\"ListUrlMain\":\"https://onlinelibrary.wiley.com/doi/10.1155/2024/2864052\",\"RegionNum\":3,\"RegionCategory\":\"农林科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q3\",\"JCRName\":\"FOOD SCIENCE & TECHNOLOGY\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Food Processing and Preservation","FirstCategoryId":"97","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1155/2024/2864052","RegionNum":3,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"FOOD SCIENCE & TECHNOLOGY","Score":null,"Total":0}
Coffee Green Bean Defect Detection Method Based on an Improved YOLOv8 Model
This research is aimed at addressing the significant challenges of detecting and classifying green coffee beans, with a particular focus on identifying defective coffee beans—an important task for improving coffee quality and market value. The main challenge is to accurately detect small and visually subtle defects in coffee beans in real-world production environments with a large number of beans, varying lighting conditions, and complex backgrounds. To address these challenges, we propose a YOLOv8n-based object detection model that employs several innovative strategies aimed at improving detection performance and robustness.
Our research includes the introduction of WIoUv3 and the development of the Atn-C3Ghost module, which integrates the ECA mechanism with the C3Ghost module to refine the feature extraction and improve the accuracy of the model.
In order to validate the effectiveness of our proposed method, we conducted comprehensive comparison and ablation experiments. In addition, we compared the C3Ghost structure in combination with various attentional mechanisms to determine their impact on the model’s detection ability. We also conducted ablation studies to evaluate the respective contributions of WIoUv3, ECA, and C3Ghost to overall model performance.
The experimental results show that the YOLOv8n-based model enhanced with WIoUv3, ECA, and C3Ghost achieves an accuracy of 99.0% in detecting green coffee beans, which is significantly better than other YOLO models. This study not only provides a practical solution for green coffee bean detection but also provides a valuable framework for addressing similar challenges in other small object detection tasks.
期刊介绍:
The journal presents readers with the latest research, knowledge, emerging technologies, and advances in food processing and preservation. Encompassing chemical, physical, quality, and engineering properties of food materials, the Journal of Food Processing and Preservation provides a balance between fundamental chemistry and engineering principles and applicable food processing and preservation technologies.
This is the only journal dedicated to publishing both fundamental and applied research relating to food processing and preservation, benefiting the research, commercial, and industrial communities. It publishes research articles directed at the safe preservation and successful consumer acceptance of unique, innovative, non-traditional international or domestic foods. In addition, the journal features important discussions of current economic and regulatory policies and their effects on the safe and quality processing and preservation of a wide array of foods.