首页|基于改进YOLOv7的玉米作物害虫检测研究

基于改进YOLOv7的玉米作物害虫检测研究

扫码查看
面对玉米作物害虫检测中目标体积较小、形态多变且种类分布不均的情况,现有检测器会出现误检、漏检等问题;针对以上问题,提出了基于YOLOv7的玉米作物虫害检测算法SPD-YOLOv7;制作收集玉米害虫数据集,采用数据增强方法扩充数据集;引入SPD-Conv模块,替换原先骨干和头部网络中的部分跨步卷积层,减少随着网络加深细节信息的丢失,提高模型获取小目标特征和位置信息的能力;将ELAN-W模块与CBAM注意力机制结合,使网络更好地学习害虫特征,抑制背景信息,关注目标本身;改进后的YOLOv7网络模型准确率达到了 98。38%,平均精度均值达到了 99。4%;相较于原始的YOLOv7模型,准确性和平均精度均值分别提高了 2。46、3。19个百分点,与Faster-RCNN、YOLOv3、YOLOv4、YOLOv5和YOLOv6主流算法的检测精度相比更具优势,且满足实时性;实验结果说明改进算法有利于快速识别玉米作物的虫害分布,可用于实际农田间的害虫实时监测。
Study on Corn Crop Pest Detection Based On Improved YOLOv7
Faced with the challenges of small target volumes,diverse morphologies,and uneven distributions of pests in maize crop pest detection,existing detectors suffer from issues such as false positives and false negatives.In response to above challenges,a maize crop pest detection algorithm SPD-YOLOv7 based on YOLOv7 is proposed.The maize pest dataset is created and collected,and the data augmentation technique is used to enlarge the data set.The SPD-Conv module is introduced to replace some step convolu-tion layers in the original backbone and head networks,and mitigate the loss of detailed information as the network deepens,thereby enhancing the model's ability to capture the features and positional information of small targets.By integrating the ELAN-W module with the CBAM attention mechanism,it enables the network to better learn pest features,suppress background noise,and focus on the target itself.The improved YOLOv7 network achieves an accuracy of 98.38%and mean average precision of 99.4%.Compared to the original YOLOv7 model,the accuracy and mean average precision improve by 2.46 and 3.19%,respectively.The enhanced al-gorithm is superior to mainstream algorithms such as Faster-RCNN,YOLOv3,YOLOv4,YOLOv5,and YOLOv6 in the detection ac-curacy,while maintaining real-time performance.Experimental results indicate that the proposed algorithm has the rapid identification of maize crop pest distributions and can be applied for real-time pest monitoring in practical agricultural fields.

YOLOv7SPD-Conv moduleCBAM attention mechanismpest detectionsmall target detection

宫妍、翟俊杰、王凯、李玉

展开 >

哈尔滨商业大学轻工学院,哈尔滨 150028

YOLOv7 SPD-Conv模块 CBAM注意力机制 虫害检测 小目标检测

黑龙江省哲学社会科学规划项目哈尔滨商业大学博士启动项目

23YSD2452019DS087

2024

计算机测量与控制
中国计算机自动测量与控制技术协会

计算机测量与控制

CSTPCD
影响因子:0.546
ISSN:1671-4598
年,卷(期):2024.32(9)
  • 10