中国农业科技导报 ›› 2024, Vol. 26 ›› Issue (11): 107-116.DOI: 10.13304/j.nykjdb.2024.0036

• 智慧农业 农机装备 • 上一篇    

基于改进YOLOv7的农作物虫害识别

黄诗锐(), 王天一(), 文韬, 周江龙   

  1. 贵州大学大数据与信息工程学院,贵阳 550025
  • 收稿日期:2024-01-12 接受日期:2024-06-08 出版日期:2024-11-15 发布日期:2024-11-19
  • 通讯作者: 王天一
  • 作者简介:黄诗锐 E-mail:995739122@qq.com
  • 基金资助:
    贵州省科技计划项目(黔科合支撑〔2021〕一般176)

Crop Insect Identification Based on Improved YOLOv7

Shirui HUANG(), Tianyi WANG(), Tao WEN, Jianglong ZHOU   

  1. Institute of Big Data and Information Engineering,Guizhou University,Guizhou 550025,China
  • Received:2024-01-12 Accepted:2024-06-08 Online:2024-11-15 Published:2024-11-19
  • Contact: Tianyi WANG

摘要:

为提高农作物虫害检测的准确率和效率,提出了一种基于YOLOv7的农作物虫害识别模型。首先,使用信息聚集-分发机制改进YOLOv7的特征融合模块,增强了不同层级之间的特征融合能力;其次,将损失函数替换为最小点距离交并比来计算边界框回归损失,更好地对齐预测框和真实目标框,提高了边界框回归的准确性;最后,通过在SPPCSPC层后添加感受野增强模块,增强了模型对小尺度害虫的识别能力。实验结果表明,改进后的YOLOv7模型平均准确度为80.4%,精确率为85.3%,召回率为75.1%,较改进前分别提升了3.4%、3.2%、2.6%。该模型对农业害虫具有更好的识别效果和鲁棒性,为农业害虫监测与防治提供了更准确和可靠的工具。

关键词: 图像处理, YOLOv7, 农作物虫害, 目标检测

Abstract:

In order to solve the problem of time-consuming and laborious manual detection of crop pests, a crop pest recognition model based on YOLOv7 was proposed in this paper. Firstly, the feature fusion module of YOLOv7 was improved using the information aggregation-distribution mechanism, which enhanced the feature fusion ability between different levels. Secondly, the loss function was replaced by minimum points distance intersection over union to calculate the boundary box regression loss, which better aligned the predicted box and the real target box, and improved the accuracy of the boundary box regression. Finally, the receptive field enhancement module was added after the SPPCSPC layer to enhance the recognition ability of the model to small-scale pests. Experimental results showed that the average accuracy of the improved YOLOv7 model was 80.4%, the precision rate was 85.3%, and the recall rate was 75.1%, which were 3.4%, 3.2% and 2.6% higher than those before improvement. The model had better recognition effect and robustness for agricultural pests, and provided a more accurate and reliable tool for agricultural pest monitoring and control.

Key words: image processing, YOLOv7, crop pests, object detection

中图分类号: