English

中国农机化学报

中国农机化学报 ›› 2024, Vol. 45 ›› Issue (10): 262-268.DOI: 10.13733/j.jcam.issn.2095-5553.2024.10.038

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

基于注意力机制和迁移学习的小样本茶叶病害识别

张莉,杨明辉,孙嘉成   

  1. (信阳农林学院信息工程学院,河南信阳,464000)
  • 出版日期:2024-10-15 发布日期:2024-09-30
  • 基金资助:
    河南省科技攻关项目(222102210300)

Identification method of small sample tea leaf diseases based on attention mechanism and transfer learning

Zhang Li, Yang Minghui, Sun Jiacheng   

  1. (School of Information Engineering, Xinyang Agriculture and Forestry University, Xinyang, 464000, China)
  • Online:2024-10-15 Published:2024-09-30

摘要: 为提高茶叶病害识别的准确性,提出一种基于注意力机制和迁移学习的小样本茶叶病害图像识别方法。首先,通过对训练集图像随机旋转、随机翻转、随机色彩以及随机亮度调整操作,扩充训练集样本,旨在降低网络模型的过拟合风险。其次,引入卷积块注意力机制(CBAM)对ResNet50网络模型进行优化,使其能够更加精准地聚焦于茶叶病害的特征。最后,借助植物病害数据集对ResNet50模型进行预训练,并将预训练后的模型参数迁移到茶叶病害数据集进行训练。试验结果表明:扩充后的数据集识别准确率较原数据集提高7.85%,进行二次迁移学习后识别准确率又提高3.26%,再添加CBAM注意力机制后识别准确率又提高0.81%。在对8种茶树病害进行验证时,所提方法的样本识别率与原始模型相比由77.24%提高至89.16%。改进后的模型具有更好的特征提取能力,能够有效提高小样本茶叶病害的识别准确率。

关键词: 图像识别, 深度学习, 注意力机制, 迁移学习, 茶叶病害

Abstract: In order to improve the accuracy of tea disease recognition, a recognition method of small sample tea disease image based on attention mechanism and transfer learning was proposed. Firstly, the training set samples were expanded by random rotation, random flip, random color and random brightness adjustment operations to reduce the overfitting risk of the network model. Secondly, Convolutional Block Attention Module (CBAM) was introduced to optimize the ResNet50 network model so that it could focus more accurately on the characteristics of tea diseases. Finally, the ResNet50 model was pre‑trained with the help of plant disease data set, and the pre‑trained model parameters were transferred to the tea disease data set for training. The experimental results show that the recognition accuracy of the expanded data set is 7.85% higher than that of the original data set, the recognition accuracy is 3.26% higher after two transfer learning, and the recognition accuracy is 0.81% higher after adding CBAM attention mechanism. Compared with the original model, the sample recognition rate of the proposed method is increased from 77.24% to 89.16% when 8 tea tree diseases are verified. The improved model has better feature extraction ability, which can effectively improve the recognition accuracy of tea disease in small samples.

Key words: image recognition, deep learning, attention mechanism, transfer learning, tea disease

中图分类号: