English

中国农机化学报

中国农机化学报 ›› 2023, Vol. 44 ›› Issue (9): 190-197.DOI: 10.13733/j.jcam.issn.2095-5553.2023.09.027

• 农业智能化研究 • 上一篇    下一篇

基于改进SPP-x的YOLOv5神经网络水稻叶片病害识别检测

杨波1,何金平1,张立娜2   

  1. 1. 长春财经学院信息工程学院,长春市,130122; 2. 吉林农业大学信息技术学院,长春市,130118
  • 出版日期:2023-09-15 发布日期:2023-10-07
  • 基金资助:
    吉林省科技发展计划重点研发项目(20210203211SF)

Identification and detection of rice leaf diseases by YOLOv5 neural network based on improved SPP-x

Yang Bo1, He Jinping1, Zhang Lina2   

  • Online:2023-09-15 Published:2023-10-07

摘要: 针对YOLOv5模型在水稻病害叶片检测计算复杂度高,计算速度慢的问题,提出一种基于改进SPP-x的YOLOv5模型水稻病害叶片识别检测方法。首先,将原主干网中SPP模块中3个不同尺寸(5×5、9×9、13×13)的MaxPool层替换为3个尺寸相同的5×5 MaxPool层连接,后面通过1×1卷积层来调整输出特征维数,再将YOLOv5网络中优化器替换为Adam,从而构建新的YOLOv5网络结构。通过试验比较SGD和Adam优化器在训练集上的收敛速度,结果表明:改进后的SPP-x模块在运算时间上仅是原SPP的50%,计算精度值达到97%,mAP_0.5和mAP_0.5:0.95两项指标分别收敛于0.983和0.822。试验发现改进SPP-x的YOLOv5模型单张图像检测速度0.34s,效果良好,能够有效地辅助水稻病害识别。

关键词: 水稻叶片病害, 卷积神经网络, YOLOv5, ResNet, 优化器

Abstract: Aiming at the problems of high computational complexity and slow computational speed of YOLOv5 model in rice disease leaf detection, an improved method for YOLOv5 model identification and detection of rice disease leaf based on SPP-x was proposed. Firstly, three MaxPool layers of different sizes (5×5, 9×9, 13×13) in the SPP module of the original BackBone network were replaced with three 5×5 MaxPool layers of the same size, and then the output feature dimension was adjusted by a 1×1 convolutional layer. Then the optimizer in the YOLOv5 network was replaced with Adam. Thus, a new YOLOv5 network structure was constructed. By comparing the convergence rate of SGD and Adam optimizer on the training set, the results showed that the operation time of the improved SPP-x module was only 50% of the original SPP, and the calculation accuracy reached 97%. The two indexes of mAP_0.5 and mAP_0.5:0.95 converged to 0.983 and 0.822, respectively. The experiment found that the detection speed of single image of YOLOv5 model improved SPP-x was 0.34 s, and the effect was good, which could effectively assist rice disease recognition.

Key words: rice leaf diseases, convolutional neural network, YOLOv5, ResNet, optimizer

中图分类号: