English

中国农机化学报

中国农机化学报 ›› 2024, Vol. 45 ›› Issue (7): 235-242.DOI: 10.13733/j.jcam.issn.2095-5553.2024.07.035

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

基于改进YOLOv5的轻量级黄花成熟检测方法

吴利刚1,吕媛媛2,周倩3,陈乐2,张梁2,史建华1   

  1. 1. 山西大同大学机电工程学院,山西大同,037003; 2. 山西大同大学煤炭工程学院,山西大同,037003; 3. 山西大同大学商学院,山西大同,037003
  • 出版日期:2024-07-15 发布日期:2024-06-24
  • 基金资助:
    山西省基础研究计划项目(202303021211330);山西大同市科技计划项目(2023015)

Lightweight method for maturity detection of Hemerocallis citrina Baroni based on improved YOLOv5 

Wu Ligang1, Lü Yuanyuan2, Zhou Qian3, Chen Le2, Zhang Liang2, Shi Jianhua1   

  1. 1. School of Mechanical and Electrical Engineering, Shanxi Datong University, Datong, 037003, China;
    2. School of Coal Engineering, Shanxi Datong University, Datong, 037003, China;
    3. School of Business, Shanxi Datong University, Datong, 037003, China
  • Online:2024-07-15 Published:2024-06-24

摘要: 黄花菜具有较短的采摘周期和相对严格的采摘要求,针对传统人工采摘效率低、主观性高的问题,提出一种基于深度学习的SSH-YOLOv5黄花成熟度检测算法。以YOLOv5模型为基础,结合轻量级网络ShuffleNet V2基本残差单元压缩网络模型大小,提升模型目标检测速度;引入SE Net通道注意力机制模块,增强模型对有用特征信息的敏感度,提高目标检测精度;将普通卷积替换为深度可分离卷积模块,进一步减少模型计算量。试验结果表明,改进后的SSH-YOLOv5模型参数量和浮点运算量分别减少61.6%和68.3%,网络层数减少18%,同时SSH-YOLOv5的检测精度由原算法的88.8%提高到91.2%,实时检测速度达到66.4 f/s,相比原算法提高18.1%,达到实时检测要求。改进后的算法不仅实现模型的轻量化,同时也使黄花成熟度检测更加准确和快速,可以较好地满足黄花检测需求。

关键词: 黄花, 深度学习, YOLOv5算法, 轻量化, 注意力机制

Abstract:  Hemerocallis citrina Baroni has a short picking cycle and relatively strict picking requirements. Aiming at the problems of  the low efficiency and high subjectivity of manual harvesting of Hemerocallis citrina Baroni, a deep learning-based SSH-YOLOv5 Hemerocallis citrina Baroni maturity detection algorithm was proposed. Based on the YOLOv5 model, combined with the lightweight network ShuffleNet V2 basic residual unit to compress the size of the network model, and improve the model target detection speed. The attention mechanism module of Squeeze-and-Excitation network was integrated into the model to enhance the sensitivity of the model to useful feature information, and improve target detection precision, and ordinary convolution was replaced with depthseparable convolution module to further reduce the model computation. The experimental results showed that the number of parameters and floating point operations of the improved SSH-YOLOv5 model were reduced by 61.6% and 68.3% respectively, and the number of network layers was reduced by 18%, while the detection precision of SSH-YOLOv5 was improved from 88.8% to 91.2% of the original algorithm. The real-time detection speed reached 66.4 f/s, which was 18.1% higher than the original YOLOv5 algorithm and met the real-time detection requirements. The improved algorithm not only makes the model lightweight, but also makes Hemerocallis citrina Baroni maturity detection more accurate and faster, which can better meet the demand of Hemerocallis citrina Baroni detection.

Key words: Hemerocallis citrina Baroni, deep learning, YOLOv5 algorithm, lightweight, attention mechanism

中图分类号: