Real-Time Detection Technology of Corn Kernel Breakage and Mildew Based on Improved YOLOv5s

被引:3
作者
Liu, Mingming [1 ,2 ]
Liu, Yinzeng [2 ]
Wang, Qihuan [1 ]
He, Qinghao [1 ]
Geng, Duanyang [1 ]
机构
[1] Shandong Univ Technol, Sch Agr Engn & Food Sci, Zibo 255000, Peoples R China
[2] Shandong Agr & Engn Univ, Mech & Elect Engn Coll, Jinan 250100, Peoples R China
来源
AGRICULTURE-BASEL | 2024年 / 14卷 / 05期
基金
国家重点研发计划;
关键词
corn kernels; breakage; mildew; YOLOv5s; CBAM; SPPCPSC; transformer;
D O I
10.3390/agriculture14050725
中图分类号
S3 [农学(农艺学)];
学科分类号
0901 ;
摘要
In order to solve low recognition of corn kernel breakage degree and corn kernel mildew degree during corn kernel harvesting, this paper proposes a real-time detection method for corn kernel breakage and mildew based on improved YOlOv5s, which is referred to as the CST-YOLOv5s model algorithm in this paper. The method continuously obtains images through the discrete uniform sampling device of corn kernels and generates whole corn kernels, breakage corn kernels, and mildew corn kernel dataset samples. We aimed at the problems of high similarity of some corn kernel features in the acquired images and the low precision of corn kernel breakage and mildew recognition. Firstly, the CBAM attention mechanism is added to the backbone network of YOLOv5s to finely allocate and process the feature information, highlighting the features of corn breakage and mildew. Secondly, the pyramid pooling structure SPPCPSC, which integrates cross-stage local networks, is adopted to replace the SPPF in YOLOv5s. SPP and CPSC technologies are used to extract and fuse features of different scales, improving the precision of object detection. Finally, the original prediction head is converted into a transformer prediction head to explore the prediction potential with a multi-head attention mechanism. The experimental results show that the CST-YOLOv5s model has a significant improvement in the detection of corn kernel breakage and mildew. Compared with the original YOLOv5s model, the average precision (AP) of corn kernel breakage and mildew recognition increased by 5.2% and 7.1%, respectively, and the mean average precision (mAP) of all kinds of corn kernel recognition is 96.1%, and the frame rate is 36.7 FPS. Compared with YOLOv4-tiny, YOLOv6n, YOLOv7, YOLOv8s, and YOLOv9-E detection model algorithms, the CST-YOLOv5s model has better overall performance in terms of detection accuracy and speed. This study can provide a reference for real-time detection of breakage and mildew kernels during the harvesting process of corn kernels.
引用
收藏
页数:16
相关论文
共 36 条
[1]  
[鲍文霞 Bao Wenxia], 2023, [农业工程学报, Transactions of the Chinese Society of Agricultural Engineering], V39, P155
[2]  
Bochkovskiy A, 2020, Arxiv, DOI arXiv:2004.10934
[3]  
Chen Jin Chen Jin, 2018, Transactions of the Chinese Society of Agricultural Engineering, V34, P187
[4]  
[陈禹 Chen Yu], 2023, [农业工程学报, Transactions of the Chinese Society of Agricultural Engineering], V39, P185
[5]  
Cui X., 2019, J. Agric. Mech. Res, V41, P28, DOI [10.13427/j.cnki.njyi.2019.02.005, DOI 10.13427/J.CNKI.NJYI.2019.02.005]
[6]  
Ding R., 2023, J. Fujian Univ. Technol, V21, P585
[7]  
Fan B., 2022, Masters Thesis
[8]   Multi-channel feature fusion networks with hard coordinate attention mechanism for maize disease identification under complex backgrounds [J].
Fang, Shundong ;
Wang, Yanfeng ;
Zhou, Guoxiong ;
Chen, Aibin ;
Cai, Weiwei ;
Wang, Qifan ;
Hu, Yahui ;
Li, Liujun .
COMPUTERS AND ELECTRONICS IN AGRICULTURE, 2022, 203
[9]   Online detection technology for broken corn kernels based on deep learning [J].
Geng D. ;
Wang Q. ;
Li H. ;
He Q. ;
Yue D. ;
Ma J. ;
Wang Y. ;
Xu H. .
Nongye Gongcheng Xuebao/Transactions of the Chinese Society of Agricultural Engineering, 2023, 39 (22) :270-278
[10]  
Jocher Glenn, 2022, Zenodo