MSDD-YOLOX: An enhanced YOLOX for real-time surface defect detection of oranges by type

IF 5.5 1区 农林科学 Q1 AGRONOMY
Jintao Feng , Zhipeng Wang , Shuai Wang , Shijie Tian , Huirong Xu
{"title":"MSDD-YOLOX: An enhanced YOLOX for real-time surface defect detection of oranges by type","authors":"Jintao Feng ,&nbsp;Zhipeng Wang ,&nbsp;Shuai Wang ,&nbsp;Shijie Tian ,&nbsp;Huirong Xu","doi":"10.1016/j.eja.2023.126918","DOIUrl":null,"url":null,"abstract":"<div><p>Using an online high-throughput detection system for sorting oranges during the post-harvest process helped improve the commercialization level of the oranges industry. Surface defects on oranges created a poor first impression for consumers, making the rapid detection of oranges surface defects a primary concern for online sorting systems. However, due to variations in defect size and the visual similarity of different defects, there were still some challenges in detecting and identifying various surface defects on orange fruits based on their types. To address these challenges, this study first categorized surface defects on oranges into three major categories: deformity, scarring, and disease spot, based on their causes and potential post-harvest losses. Subsequently, to achieve real-time detection of orange surface defects on the orange sorting machine, a YOLOX-based real-time multi-type surface defect detection algorithm (MSDD-YOLOX) for oranges was proposed. This algorithm significantly improved the detection effectiveness of scarring at different scales by introducing neck network residual connections and cascading of the neck network. To address the issue of missed detections in texture-based defects and improve the regression of predicted bounding boxes, focal loss and Complete-IoU (CIoU) were employed in the algorithm. The results showed that MSDD-YOLOX achieved F1 values of 88.3 %, 80.4 %, and 92.7 % for the detection of deformity, scarring, and disease spot, respectively, with an overall detection F1 value of 90.8 %. These values represented improvements of 13.1 %, 10.2 %, 4.5 %, and 6.4 %, respectively, compared to the baseline model. Furthermore, compared to other deep learning object detectors, namely Faster RCNN, RetinaNet, FCOS, and Swin-Transformer, the proposed algorithm achieved optimal detection accuracy. Additionally, the MSDD-YOLOX model had a compact size of only 8.98 M, enabling real-time detection on the fruit grading line with an inference speed of up to 64.2FPS. Another innovation of this research was the external validation conducted on green oranges from Hainan and mandarins from Zhejiang. The results of external testing demonstrated that MSDD-YOLOX achieved overall F1 values of 90.6 % and 81.1 % for citrus fruits in these two regions, effectively proving the online deployment capability of MSDD-YOLOX and providing a robust solution for external defect detection in citrus fruits.</p></div>","PeriodicalId":51045,"journal":{"name":"European Journal of Agronomy","volume":"149 ","pages":"Article 126918"},"PeriodicalIF":5.5000,"publicationDate":"2023-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"European Journal of Agronomy","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S1161030123001867","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRONOMY","Score":null,"Total":0}
引用次数: 0

Abstract

Using an online high-throughput detection system for sorting oranges during the post-harvest process helped improve the commercialization level of the oranges industry. Surface defects on oranges created a poor first impression for consumers, making the rapid detection of oranges surface defects a primary concern for online sorting systems. However, due to variations in defect size and the visual similarity of different defects, there were still some challenges in detecting and identifying various surface defects on orange fruits based on their types. To address these challenges, this study first categorized surface defects on oranges into three major categories: deformity, scarring, and disease spot, based on their causes and potential post-harvest losses. Subsequently, to achieve real-time detection of orange surface defects on the orange sorting machine, a YOLOX-based real-time multi-type surface defect detection algorithm (MSDD-YOLOX) for oranges was proposed. This algorithm significantly improved the detection effectiveness of scarring at different scales by introducing neck network residual connections and cascading of the neck network. To address the issue of missed detections in texture-based defects and improve the regression of predicted bounding boxes, focal loss and Complete-IoU (CIoU) were employed in the algorithm. The results showed that MSDD-YOLOX achieved F1 values of 88.3 %, 80.4 %, and 92.7 % for the detection of deformity, scarring, and disease spot, respectively, with an overall detection F1 value of 90.8 %. These values represented improvements of 13.1 %, 10.2 %, 4.5 %, and 6.4 %, respectively, compared to the baseline model. Furthermore, compared to other deep learning object detectors, namely Faster RCNN, RetinaNet, FCOS, and Swin-Transformer, the proposed algorithm achieved optimal detection accuracy. Additionally, the MSDD-YOLOX model had a compact size of only 8.98 M, enabling real-time detection on the fruit grading line with an inference speed of up to 64.2FPS. Another innovation of this research was the external validation conducted on green oranges from Hainan and mandarins from Zhejiang. The results of external testing demonstrated that MSDD-YOLOX achieved overall F1 values of 90.6 % and 81.1 % for citrus fruits in these two regions, effectively proving the online deployment capability of MSDD-YOLOX and providing a robust solution for external defect detection in citrus fruits.

MSDD-YOLOX:一种用于按类型实时检测橙子表面缺陷的增强型YOLOX
在收获后的过程中使用在线高通量检测系统对橙子进行分拣,有助于提高橙子行业的商业化水平。橙子表面缺陷给消费者留下了糟糕的第一印象,使得快速检测橙子表面缺陷成为在线分拣系统的主要关注点。然而,由于缺陷大小的变化和不同缺陷的视觉相似性,在根据其类型检测和识别橙子果实上的各种表面缺陷方面仍然存在一些挑战。为了应对这些挑战,这项研究首先根据其原因和潜在的收获后损失,将橙子表面缺陷分为三大类:畸形、疤痕和病斑。随后,为了在橙子分拣机上实现橙子表面缺陷的实时检测,提出了一种基于YOLOX的橙子实时多类型表面缺陷检测算法(MSDD-YOLOX)。该算法通过引入颈部网络残差连接和颈部网络级联,显著提高了不同尺度疤痕的检测效率。为了解决基于纹理的缺陷中的漏检问题,并改进预测边界框的回归,在算法中采用了焦点损失和完全IoU(CIoU)。结果显示,MSDD-YOLOX对畸形、瘢痕和病斑的检测F1值分别为88.3%、80.4%和92.7%,总体检测F1值为90.8%。与基线模型相比,这些值分别提高了13.1%、10.2%、4.5%和6.4%。此外,与其他深度学习对象检测器,即Faster RCNN、RetinaNet、FCOS和Swin Transformer相比,该算法实现了最佳的检测精度。此外,MSDD-YOLOX模型的紧凑尺寸仅为8.98M,能够在水果分级线上进行实时检测,推理速度高达64.2FPS。该研究的另一个创新是对海南的青橙和浙江的柑橘进行了外部验证。外部测试结果表明,MSDD-YOLOX在这两个地区的柑橘类水果F1值分别为90.6%和81.1%,有效证明了MSDD-YOLOX的在线部署能力,为柑橘类水果的外部缺陷检测提供了一个稳健的解决方案。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
European Journal of Agronomy
European Journal of Agronomy 农林科学-农艺学
CiteScore
8.30
自引率
7.70%
发文量
187
审稿时长
4.5 months
期刊介绍: The European Journal of Agronomy, the official journal of the European Society for Agronomy, publishes original research papers reporting experimental and theoretical contributions to field-based agronomy and crop science. The journal will consider research at the field level for agricultural, horticultural and tree crops, that uses comprehensive and explanatory approaches. The EJA covers the following topics: crop physiology crop production and management including irrigation, fertilization and soil management agroclimatology and modelling plant-soil relationships crop quality and post-harvest physiology farming and cropping systems agroecosystems and the environment crop-weed interactions and management organic farming horticultural crops papers from the European Society for Agronomy bi-annual meetings In determining the suitability of submitted articles for publication, particular scrutiny is placed on the degree of novelty and significance of the research and the extent to which it adds to existing knowledge in agronomy.
×
引用
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学术官方微信