通过改进的 YOLOv5 和 X 射线成像检测核桃内部质量

IF 2.7 3区 农林科学 Q3 ENGINEERING, CHEMICAL Journal of Food Process Engineering Pub Date : 2024-10-23 DOI:10.1111/jfpe.14742
Jiale Lei, Weiqiang Zheng, Liping Zhang, Wentao Lv, Yihao Li
{"title":"通过改进的 YOLOv5 和 X 射线成像检测核桃内部质量","authors":"Jiale Lei,&nbsp;Weiqiang Zheng,&nbsp;Liping Zhang,&nbsp;Wentao Lv,&nbsp;Yihao Li","doi":"10.1111/jfpe.14742","DOIUrl":null,"url":null,"abstract":"<div>\n \n \n <section>\n \n <p>This study proposes a walnut target detection algorithm based on improved YOLOv5 and x-ray imaging to meet the demand for internal quality detection and removal in the Xinjiang walnut industry. By replacing the C3 module in the backbone layer with the C2f module and the couple-head in the head layer with the decouple-head, the algorithm reduces computational complexity, enhances robustness and generalizability, and retains more spatial information, thereby improving the performance of multicategory small target detection. In addition, this paper replaces the original CIOU loss function with the EIOU loss function to improve the convergence speed of the algorithm's accuracy and boundary aspect ratio. Compared with the original model, the improved model, improved YOLOv5, maintains the same average precision for normal walnuts while increasing the average precision for shriveled walnuts and empty-shell walnuts by 8.2% and 0.4%, respectively. Compared with other mainstream models, such as VGG16, ResNet50, YOLOv5s, YOLOv7, YOLOv8s, YOLOv9s, and YOLOv10s, this model achieves the highest detection accuracy and good detection performance, with a single-image detection time of 11.9 ms, meeting the requirements for real-time detection. This work lays a foundation for automatic robot detection of the internal quality and removal of walnuts, showing practical application potential.</p>\n </section>\n \n <section>\n \n <h3> Practical applications</h3>\n \n <p>Xinjiang stands as a prominent producer of walnuts; however, due to the decentralized nature of its cultivation and management processes, a notable prevalence of internal empty shells and shrinkage is observed, which substantially diminishes their commercial value. The integration of YOLOv5 with x-ray imaging technology promises to enhance the precision of internal quality assessments of walnuts. The improved YOLOv5 model, as delineated in this study, exhibits the highest detection accuracy when benchmarked against a multitude of other models. It achieves a detection latency of merely 11.9 ms per image, thereby satisfying the stringent demands for real-time detection applications. This model is designed for integration into x-ray systems with an adjunctive sorting mechanism, which facilitates the inspection and exclusion of defective walnuts on conveyor belts.</p>\n </section>\n </div>","PeriodicalId":15932,"journal":{"name":"Journal of Food Process Engineering","volume":"47 10","pages":""},"PeriodicalIF":2.7000,"publicationDate":"2024-10-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Detection of walnut internal quality via improved YOLOv5 and x-ray imaging\",\"authors\":\"Jiale Lei,&nbsp;Weiqiang Zheng,&nbsp;Liping Zhang,&nbsp;Wentao Lv,&nbsp;Yihao Li\",\"doi\":\"10.1111/jfpe.14742\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div>\\n \\n \\n <section>\\n \\n <p>This study proposes a walnut target detection algorithm based on improved YOLOv5 and x-ray imaging to meet the demand for internal quality detection and removal in the Xinjiang walnut industry. By replacing the C3 module in the backbone layer with the C2f module and the couple-head in the head layer with the decouple-head, the algorithm reduces computational complexity, enhances robustness and generalizability, and retains more spatial information, thereby improving the performance of multicategory small target detection. In addition, this paper replaces the original CIOU loss function with the EIOU loss function to improve the convergence speed of the algorithm's accuracy and boundary aspect ratio. Compared with the original model, the improved model, improved YOLOv5, maintains the same average precision for normal walnuts while increasing the average precision for shriveled walnuts and empty-shell walnuts by 8.2% and 0.4%, respectively. Compared with other mainstream models, such as VGG16, ResNet50, YOLOv5s, YOLOv7, YOLOv8s, YOLOv9s, and YOLOv10s, this model achieves the highest detection accuracy and good detection performance, with a single-image detection time of 11.9 ms, meeting the requirements for real-time detection. This work lays a foundation for automatic robot detection of the internal quality and removal of walnuts, showing practical application potential.</p>\\n </section>\\n \\n <section>\\n \\n <h3> Practical applications</h3>\\n \\n <p>Xinjiang stands as a prominent producer of walnuts; however, due to the decentralized nature of its cultivation and management processes, a notable prevalence of internal empty shells and shrinkage is observed, which substantially diminishes their commercial value. The integration of YOLOv5 with x-ray imaging technology promises to enhance the precision of internal quality assessments of walnuts. The improved YOLOv5 model, as delineated in this study, exhibits the highest detection accuracy when benchmarked against a multitude of other models. It achieves a detection latency of merely 11.9 ms per image, thereby satisfying the stringent demands for real-time detection applications. This model is designed for integration into x-ray systems with an adjunctive sorting mechanism, which facilitates the inspection and exclusion of defective walnuts on conveyor belts.</p>\\n </section>\\n </div>\",\"PeriodicalId\":15932,\"journal\":{\"name\":\"Journal of Food Process Engineering\",\"volume\":\"47 10\",\"pages\":\"\"},\"PeriodicalIF\":2.7000,\"publicationDate\":\"2024-10-23\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Journal of Food Process Engineering\",\"FirstCategoryId\":\"97\",\"ListUrlMain\":\"https://onlinelibrary.wiley.com/doi/10.1111/jfpe.14742\",\"RegionNum\":3,\"RegionCategory\":\"农林科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q3\",\"JCRName\":\"ENGINEERING, CHEMICAL\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Food Process Engineering","FirstCategoryId":"97","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1111/jfpe.14742","RegionNum":3,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"ENGINEERING, CHEMICAL","Score":null,"Total":0}
引用次数: 0

摘要

本研究提出了一种基于改进型 YOLOv5 和 X 射线成像的核桃目标检测算法,以满足新疆核桃产业内部质量检测和去除的需求。该算法将骨干层的 C3 模块替换为 C2f 模块,将头部层的耦合头替换为解耦头,降低了计算复杂度,增强了鲁棒性和普适性,保留了更多的空间信息,从而提高了多类小目标检测的性能。此外,本文用 EIOU 损失函数替换了原来的 CIOU 损失函数,提高了算法精度和边界宽高比的收敛速度。与原始模型相比,改进后的模型(改进 YOLOv5)保持了正常核桃的平均精度不变,而干瘪核桃和空壳核桃的平均精度分别提高了 8.2% 和 0.4%。与其他主流模型(如 VGG16、ResNet50、YOLOv5s、YOLOv7、YOLOv8s、YOLOv9s 和 YOLOv10s)相比,该模型的检测精度最高,检测性能良好,单幅图像检测时间为 11.9 ms,满足实时检测的要求。这项工作为机器人自动检测核桃内部质量和去除核桃奠定了基础,显示了实际应用潜力。 实际应用 新疆是核桃的重要产地,但由于其种植和管理过程的分散性,内部空壳和缩水现象十分普遍,大大降低了核桃的商业价值。将 YOLOv5 与 X 射线成像技术相结合,有望提高核桃内部质量评估的精确度。本研究中描述的改进型 YOLOv5 模型在与众多其他模型进行比较时表现出最高的检测精度。每幅图像的检测延迟时间仅为 11.9 毫秒,从而满足了实时检测应用的严格要求。该模型设计用于集成到带有辅助分拣机制的 X 射线系统中,从而方便检查和排除传送带上有缺陷的核桃。
本文章由计算机程序翻译,如有差异,请以英文原文为准。

摘要图片

查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
Detection of walnut internal quality via improved YOLOv5 and x-ray imaging

This study proposes a walnut target detection algorithm based on improved YOLOv5 and x-ray imaging to meet the demand for internal quality detection and removal in the Xinjiang walnut industry. By replacing the C3 module in the backbone layer with the C2f module and the couple-head in the head layer with the decouple-head, the algorithm reduces computational complexity, enhances robustness and generalizability, and retains more spatial information, thereby improving the performance of multicategory small target detection. In addition, this paper replaces the original CIOU loss function with the EIOU loss function to improve the convergence speed of the algorithm's accuracy and boundary aspect ratio. Compared with the original model, the improved model, improved YOLOv5, maintains the same average precision for normal walnuts while increasing the average precision for shriveled walnuts and empty-shell walnuts by 8.2% and 0.4%, respectively. Compared with other mainstream models, such as VGG16, ResNet50, YOLOv5s, YOLOv7, YOLOv8s, YOLOv9s, and YOLOv10s, this model achieves the highest detection accuracy and good detection performance, with a single-image detection time of 11.9 ms, meeting the requirements for real-time detection. This work lays a foundation for automatic robot detection of the internal quality and removal of walnuts, showing practical application potential.

Practical applications

Xinjiang stands as a prominent producer of walnuts; however, due to the decentralized nature of its cultivation and management processes, a notable prevalence of internal empty shells and shrinkage is observed, which substantially diminishes their commercial value. The integration of YOLOv5 with x-ray imaging technology promises to enhance the precision of internal quality assessments of walnuts. The improved YOLOv5 model, as delineated in this study, exhibits the highest detection accuracy when benchmarked against a multitude of other models. It achieves a detection latency of merely 11.9 ms per image, thereby satisfying the stringent demands for real-time detection applications. This model is designed for integration into x-ray systems with an adjunctive sorting mechanism, which facilitates the inspection and exclusion of defective walnuts on conveyor belts.

求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
Journal of Food Process Engineering
Journal of Food Process Engineering 工程技术-工程:化工
CiteScore
5.70
自引率
10.00%
发文量
259
审稿时长
2 months
期刊介绍: This international research journal focuses on the engineering aspects of post-production handling, storage, processing, packaging, and distribution of food. Read by researchers, food and chemical engineers, and industry experts, this is the only international journal specifically devoted to the engineering aspects of food processing. Co-Editors M. Elena Castell-Perez and Rosana Moreira, both of Texas A&M University, welcome papers covering the best original research on applications of engineering principles and concepts to food and food processes.
期刊最新文献
Cost Estimation for the Preservation of Selected Food/Crop Products With Ozone Application of Computational Intelligence to Determine the Effect of Different Shear Bar Positions on Chopping Length and Specific Cutting Energy Consumption in the Chopping of Silage Sorghum Modelling and Optimizing the Integrity of an Automated Vegetable Leaf Packaging Machine Diagnosing Fungal Infection in Wheat Kernels by Integrating Spectroscopic Technology and Digital Color Imaging System: Artificial Neural Network, Principal Component Analysis and Correlation Feature Selection Techniques Investigation of Cross-Sectional Characteristics of Internal Meshing Screw Mixing Flow Field for Dough Paste
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1