English

Journal of Chinese Agricultural Mechanization

Journal of Chinese Agricultural Mechanization

   

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

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

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

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

  1. 1. 山西大同大学机电工程学院,山西大同,0370032. 山西大同大学煤炭工程学院, 山西大同,037003;3. 山西大同大学商学院,山西大同,037000

  • 基金资助:
    2022年山西省基础研究计划项目(202303021211330);2022年度山西省高等学校科技创新计划创新平台项目(2022P009)

Abstract: To address 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,in this method, the lightweight network ShuffleNet V2 was combined with original YOLOv5 backbone to compress model size and improve the detection speed. Squeeze-and-Excitation network was integrated into the model to 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 presicion of SSH-YOLOv5 was improved from 88.8% to 91.2% of the original algorithm. The real-time detection speed reached 66.4FPS, which is 18.1% higher than the original YOLOv5 algorithm and meets the real-time detection requirements. According to the results showed that the proposed algorithm is more accurate and faster, which can better meet the demand of Hemerocallis citrina Baroni detection.

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

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

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

CLC Number: