首页|基于改进YOLOv5s的储粮害虫检测方法研究

基于改进YOLOv5s的储粮害虫检测方法研究

扫码查看
针对当前因检测背景复杂、粮虫个体较小等因素造成的储粮害虫检测准确率较低、漏检、误检的现状,提出一种改进 YOLOv5s 的检测方法.使用 MobileNetv3 作为 YOLOv5s 模型的主干特征提取网络,并将其SE 注意力机制修改为ECA模块,减少计算量和参数量;同时,调整 PANet 网络为加权双向特征金字塔BiFPN 结构,增强特征融合能力;颈部网络部分引入Swin Transformer,解决全局提取特征不足的问题,提升识别精度;采用EIOU损失函数,提高模型的收敛速度.结果表明:改进后的模型 mAP达到 97.8%,FPS达到 133.3,与主流目标检测模型比较,表现出较强的鲁棒性和泛化能力;改进的YOLOv5s检测模型能克服复杂环境的影响,显著提高储粮害虫在密集分布及遮挡条件下的检测效果.研究结果为移动设备上实现储粮害虫实时检测提供技术参考.
Detection method of stored grain pests based on improved YOLOv5s
Addressing the current challenges of low detection accuracy and missed detections due to com-plex 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 computa-tion and parameter count.Simultaneously,the PANet network is adjusted to incorporate a weighted bidirec-tional 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 rec-ognition accuracy.Finally,the EIOU loss function is utilized to expedite model convergence speed.The re-sults 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 enhan-cing pest detection under conditions involving dense distributions and occlusions-thereby providing valuable technical insights towards achieving real-time pest detection on mobile devices.

stored grain pestYOLOv5sMobileNetv3BiFPNSwin TransformerEIOU

陈卫东、王莹、丁俊丹、何为

展开 >

河南工业大学 信息科学与工程学院,河南 郑州 450001

河南工业大学 粮食储运国家工程研究中心,河南 郑州 450001

储粮害虫 YOLOv5s MobileNetv3 BiFPN Swin Transformer EIOU

财政部和农业农村部国家现代农业产业技术体系资助项目

CARS-03

2024

河南工业大学学报(自然科学版)
河南工业大学

河南工业大学学报(自然科学版)

CSTPCD北大核心
影响因子:0.547
ISSN:1673-2383
年,卷(期):2024.45(5)