English

Journal of Chinese Agricultural Mechanization

Journal of Chinese Agricultural Mechanization ›› 2025, Vol. 46 ›› Issue (4): 126-132.DOI: 10.13733/j.jcam.issn.2095-5553.2025.04.019

• Research on Agricultural Intelligence • Previous Articles     Next Articles

Research and implementation of a lightweight YOLOv5 for apple leaf disease detection

Zhou Junchang1, Zeng Wei1, 2, Peng Peng1, 2, Pang Jicheng1, Liu Junjun1, Yang Xilin1   

  1. (1. College of Computer Science and Cyber Security, Chengdu University of Technology, Chengdu, 610059, China; 
    2. Sichuan Engineering Technology Research Center of Industrial Internet Intelligent Monitoring and Application, Chengdu, 610059, China)
  • Online:2025-04-15 Published:2025-04-18

苹果叶片病害检测的轻量化YOLOv5研究与实现

周俊昌1,曾维1,2,彭鹏1,2,庞记成1,刘军军1,杨熙临1   

  1. (1. 成都理工大学计算机与网络安全学院,成都市,610059; 
    2. 四川省工业互联网智能监测及应用工程技术研究中心,成都市,610059)
  • 基金资助:
    四川省科技计划项目(2023YFN0053)

Abstract: With the continuous improvement of agricultural intelligence level, the automatic detection method of apple leaf disease becomes important and necessary, but the existing automatic detection algorithm model is often difficult to deploy on the mobile terminal due to the complex network structure, a lightweight model of YOLOv5—SCFG is proposed in this paper. Firstly, the lightweight ShuffleNetv2 network is introduced to rebuild the YOLOv5 backbone network, so as to ensure the overall lightweight network. Additionally, the CARAFE up‑sampling operator and FasterNet module are introduced into the neck network, so as to enhance feature extraction capabilities and speed up feature fusion. Finally, the global attention mechanism (GAM) is introduced to compensate for the loss of precision caused by network lightweighting. The experimental results show that the weight size of YOLOv5—SCFG model is 6.2 MB, mAP is 85.9%, and FLOPs is 6.3 G. Compared with YOLOv5s, the weight size of YOLOV5-SCFG model is reduced by 57%, mAP is decreased by 0.2%, and FLOPs is decreased by 61%.

Key words: apple leaves, lightweight model, disease detection, YOLOv5s

摘要: 随着农业智能化水平不断提升,苹果叶片病害自动化检测十分必要,而现有的自动化检测模型由于网络结构复杂,难以在移动端进行部署。基于此,构建一种YOLOv5—SCFG轻量模型。首先,引入轻量型网络ShuffleNetv2重新构建YOLOv5骨干网络,保证网络整体轻量化;然后,在颈部网络引入CARAFE上采样算子和FasterNet模块,增强特征提取能力,加快特征融合速度;最后,添加全局注意力机制GAM,弥补网络轻量化带来的精度损失。结果表明,YOLOv5—SCFG模型权重大小为6.2 MB,平均精度均值mAP为85.9%,计算量FLOPs为6.3 G。相比于YOLOv5s,模型权重大小减少57%,mAP下降0.2%,FLOPs减小61%。

关键词: 苹果叶片, 轻量化模型, 病害检测, YOLOv5s

CLC Number: