Journal of Frontiers of Computer Science and Technology ›› 2023, Vol. 17 ›› Issue (4): 933-941.DOI: 10.3778/j.issn.1673-9418.2210066

• Artificial Intelligence·Pattern Recognition • Previous Articles     Next Articles

Research on Corn Disease Detection Based on Improved YOLOv5 Algorithm

SU Junkai, DUAN Xianhua, YE Zhaobing   

  1. College of Computer Science, Jiangsu University of Science and Technology, Zhenjiang, Jiangsu 212100, China
  • Online:2023-04-01 Published:2023-04-01

改进YOLOv5算法的玉米病害检测研究

苏俊楷,段先华,叶赵兵   

  1. 江苏科技大学 计算机学院,江苏 镇江 212100

Abstract: In order to solve the problems of backward identification technology, low efficiency and insufficient accuracy of corn leaf disease, an improved YOLOv5 algorithm is proposed to identify corn disease. In order to maintain low computation of the model, and improve detection speed and algorithm performance, the feature extraction structure of traditional YOLOv5s network is improved, and CA (coordinate attention) attention mechanism is added to the backbone network, which improves the problem of target undetected, and helps the model locate and identify more accurately. In the neck, BiFPN (bidirectional feature pyramid network) is used to replace original PANet (path aggregation network), and the application of multi-scale semantic features is improved through two-way feature fusion to enhance the extraction for deep features of images. A small target monitoring layer is added to enhance the detection effect of small objects. Loss function is improved and Focal-EIOU Loss is introduced to improve the precision of BBox regression. Compared with traditional YOLOv5s, Recall is increased by 4.61 percentage points, AP is increased by 4.5 percentage points, mAP@0.5 is increased by 2.14 percentage points, and detection speed is increased by 4.5 FPS. Experimental results show that the improved YOLOv5 algorithm significantly improves the efficiency and performance of the algorithm with little complexity increase, and the effect is better than traditional YOLOv5s algorithm.

Key words: corn disease, YOLOv5, feature pyramid, attention mechanism, efficient intersection over union (EIOU), object detection

摘要: 为了解决玉米叶部病害识别技术落后、效率不高、精度不够的问题,提出一种改进的YOLOv5算法识别玉米病害。在保持模型的较低计算量的情况下,同时提升检测速度和算法性能,将传统的YOLOv5s网络的特征提取结构进行改进,在主干网络中添加CA注意力机制,改善目标漏检问题,帮助模型更加精准地定位和识别;在颈部使用BiFPN替代原有的PANet,通过双向的特征融合提升多尺度语义特征的利用,加强对图像深层特征的提取,添加小目标监测层,加强对小物体的检测效果;改进损失函数,引入Focal-EIOU Loss损失函数,提高BBox的回归精度。改进后的YOLOv5算法和传统的YOLOv5s相比,Recall提升了4.61个百分点,平均精度AP上升了4.5个百分点,mAP@0.5提高了2.14个百分点,检测速度上升了4.5 FPS。实验结果表明,改进后的YOLOv5算法在增加极少复杂度的情况下明显提升了算法的效率和性能,并且效果优于传统的YOLOv5s算法。

关键词: 玉米病害, YOLOv5, 特征金字塔, 注意力机制, EIOU, 目标检测