English

中国农机化学报

中国农机化学报 ›› 2025, Vol. 46 ›› Issue (7): 226-232.DOI: 10.13733/j.jcam.issn.2095-5553.2025.07.032

• 设施农业与植保机械工程 • 上一篇    下一篇

基于迁移学习与注意力机制的花生叶部病害识别算法

郑大帅,余琼,李德豪,黄劲龙,员玉良   

  1. (青岛农业大学机电工程学院,青岛市,266109)
  • 出版日期:2025-07-15 发布日期:2025-07-02
  • 基金资助:
    山东省重点研发计划(乡村振兴科技创新提振行动计划)项目(2023TZXD023);中央引导地方科技发展专项计划项目(23—1—3—6—zyyd—nsh)

Peanut leaf disease identification algorithm based on transfer learning and attention mechanism

Zheng Dashuai, Yu Qiong, Li Dehao, Huang Jinlong, Yun Yuliang   

  1. (College of Mechanical and Electrical Engineering, Qingdao Agricultural University, Qingdao, 266109, China)
  • Online:2025-07-15 Published:2025-07-02

摘要: 针对花生叶部病害识别效率低、现场识别困难等问题,通过迁移学习并融合注意力集中机制(CBAM),提出一种基于CBAM—MobileNetV2的花生叶部病害识别算法。首先,建立健康叶、黑斑病叶、褐斑病叶、网斑病叶、花叶病叶5种花生叶片病害图像数据集;其次,结合通道注意力机制和空间注意力机制,构建花生叶部病害识别模型;最后,分析模型改进前后的识别精度,与VGG16、InceptionV3和ResNet50进行对比,并预测单幅图像检测时间。结果表明,MobileNetV2、VGG16、InceptionV3和ResNet50准确率分别为97.54%、97.34%、96.06%和74.88%,均低于改进后模型准确率的99.41%,且改进后模型的单幅图像检测时间为0.061 s。基于迁移学习与注意力机制的花生叶部病害识别算法准确率高、模型参数少,属于轻量级神经网络,可应用于花生田间检测,利用移动设备可现场检测花生病害,及时了解花生生长状况。

关键词: 花生, 叶部病害识别, 注意力机制, 迁移学习, MobileNetV2

Abstract: Aiming at the problems of low identification efficiency of peanut leaf diseases and difficulty in one-site identification, a peanut leaf disease recognition algorithm based on the Convolution Block Attention Module (CBAM) and MobileNetV2 is proposed through transfer learning and by integrating the attention mechanism of CBAM. Firstly, a dataset of five kinds of peanut leaf disease images, including healthy leaves, black spot disease leaves, brown spot disease leaves, net spot disease leaves, and mosaic disease leaves, is established. Secondly, a peanut leaf disease recognition model is built by integrating channel attention mechanism and spatial attention mechanism. Finally, the recognition accuracy before and after model improvement is analyzed, compared with VGG16, InceptionV3 and ResNet50, and the detection time of a single image is predicted. The experimental results show that the accuracy rates of MobileNetV2, VGG16, InceptionV3 and ResNet50 are 97.54%, 97.34%, 96.06% and 74.88%, respectively, which are all lower than the accuracy rate of the improved model at 99.41%. The detection time for a single image is 0.061 s. The peanut leaf disease recognition algorithm based on transfer learning and attention mechanism is a lightweight neural network with high accuracy and few model parameters. It can be applied in peanut fields and used for on-site detection of peanut diseases by using mobile devices, enabling farmers to understand the growth status of peanuts in a timely manner.

Key words: peanut, leaf disease identification, attention mechanism, transfer learning, MobileNetV2

中图分类号: