摘要
针对当前因检测背景复杂、粮虫个体较小等因素造成的储粮害虫检测准确率较低、漏检、误检的现状,提出一种改进YOLOv5s的检测方法。使用MobileNetv3作为YOLOv5s模型的主干特征提取网络,并将其SE注意力机制修改为ECA模块,减少计算量和参数量;同时,调整PANet网络为加权双向特征金字塔BiFPN结构,增强特征融合能力;颈部网络部分引入Swin Transformer,解决全局提取特征不足的问题,提升识别精度;采用EIOU损失函数,提高模型的收敛速度。结果表明:改进后的模型mAP达到97.8%,FPS达到133.3,与主流目标检测模型比较,表现出较强的鲁棒性和泛化能力;改进的YOLOv5s检测模型能克服复杂环境的影响,显著提高储粮害虫在密集分布及遮挡条件下的检测效果。研究结果为移动设备上实现储粮害虫实时检测提供技术参考。
Addressing the current challenges of low detection accuracy and missed detections due to complex backgrounds and small sizes of these pests,an enhanced YOLOv5s method for detecting stored grain pests is proposed.Firstly,MobileNetv3 is employed as the backbone feature extraction network for the YOLOv5s model,with its SE attention mechanism being modified into an ECA module to reduce computation and parameter count.Simultaneously,the PANet network is adjusted to incorporate a weighted bidirectional feature pyramid BiFPN structure to enhance feature fusion capabilities.Secondly,Swin Transformer is introduced into the neck network to address insufficient global feature extraction issues and improve recognition accuracy.Finally,the EIOU loss function is utilized to expedite model convergence speed.The results demonstrate that this improved model achieves a mAP(mean average precision)score of 97.8% and operates at a FPS(frames per second)rate of 133.3,showcasing remarkable robustness and generalization abilities when compared with mainstream target detection models.This study′s improved YOLOv5 model for detecting stored grain pests effectively overcomes environmental complexities while significantly enhancing pest detection under conditions involving dense distributions and occlusions-thereby providing valuable technical insights towards achieving real-time pest detection on mobile devices.
作者
陈卫东
王莹
丁俊丹
何为
CHEN Weidong;WANG Ying;DING Jundan;HE Wei(College of Information Science and Engineering,Henan University of Technology,Zhengzhou 450001,China;National Engineering Research Center of Grain Storage and Logistics,Henan University of Technology,Zhengzhou 450001,China)
出处
《河南工业大学学报(自然科学版)》
CAS
北大核心
2024年第5期111-120,共10页
Journal of Henan University of Technology:Natural Science Edition
基金
财政部和农业农村部国家现代农业产业技术体系资助项目(CARS-03)。