English

Journal of Chinese Agricultural Mechanization

Journal of Chinese Agricultural Mechanization ›› 2025, Vol. 46 ›› Issue (11): 144-151.DOI: 10.13733/j.jcam.issn.2095-5553.2025.11.019

• Research on Agricultural Intelligence • Previous Articles     Next Articles

Detection and identification of crop pests based on improved YOLOv8n 

Xu Yue1, 2, Zhao Hui1, 2, Yue Youjun1, 2

#br#
  

  1. (1. School of Electrical Engineering and Automation, Tianjin University of Technology, Tianjin, 300384, China; 
    2. Tianjin Key Laboratory of Complex System Control Theory and Application, Tianjin, 300384, China)

  • Online:2025-11-15 Published:2025-10-11

基于改进YOLOv8n的农作物虫害检测与识别

徐悦1,2,赵辉1,2,岳有军1,2   

  1. (1. 天津理工大学电气工程与自动化学院,天津市,300384;
    2. 天津市复杂系统控制理论及应用重点实验室,天津市,300384)

  • 基金资助:
    天津市科技支撑计划项目(19YFZCSN00360)

Abstract: To address the issues of low efficiency, easy false detection, missed detection and limited accuracy in pest detection based on machine vision in agricultural fields, a deep learning algorithm for pest recognition named YOLOv8—ECSI, based on an improved YOLOv8, was proposed to enhance detection performance for small, dense and similar‑featured common pests. Firstly, EfficientNetwas used to replace the original backbone network, achieving model lightweighting without significantly affecting detection accuracy. Secondly, the original upsampling module was replaced with a CARAFE upsampling module to reduce the loss of detail information. Additionally, the small object detection layer incorporated spatial‑channel reorganization convolution (SCConv) to enhance feature representation capabilities. The original loss function was replaced with the Inner—CIoU loss function to improve small object detection capabilities. A dataset was established by using the large public dataset IP102 and web queries. Experiments demonstrated that the improved model achieved an average precision of 94.6%, with a reduction of 33.6% in the number of parameters and a reduction of 23.5% in computational load. Compared with models such as YOLOv5, YOLOv7, and SSD, the improved model exhibited superior detection performance and faster speed.


Key words:  crop pests, deep learning, lightweight model, small target detection, spatial channel recombination

摘要: 针对农田中基于机器视觉的虫害检测效率低且容易出现误检、漏检、精度较低的问题,为提高对小且密集、特征接近的常见虫害的检测性能,提出一种基于改进YOLOv8的虫害识别深度学习算法YOLOv8—ECSI。首先将EfficientNet替换原有的骨干网络,在保证检测精度不受到大幅影响的前提下实现模型轻量化;其次将原始的上采样模块替换为CARAFE上采样模块,减少细节信息的损失;然后在小目标检测层加入空间通道重组卷积(SCConv),增强特征表达能力;最后将原有损失函数更换为Inner—CIoU损失函数,提高对小目标的检测能力。通过大型公开数据集IP102和网络查询建立数据集。试验表明,改进后的模型平均精度均值达到94.6%,同时参数量减少33.6%,计算量减少23.5%,比YOLOv5、YOLOv7、SSD等模型检测效果更优、速度更快。


关键词: 农作物虫害, 深度学习, 轻量化模型, 小目标检测, 空间通道重组

CLC Number: