吉林大学学报(理学版) ›› 2026, Vol. 64 ›› Issue (5): 1077-1087.

• • 上一篇    下一篇

基于改进ResNet34的辣椒病虫害图像识别

李艳美, 周文学, 王兆琪   

  1. 兰州交通大学 数理学院, 兰州 730070
  • 收稿日期:2025-05-29 出版日期:2026-09-26 发布日期:2026-09-26
  • 通讯作者: 周文学 E-mail:wxzhou2006@126.com

Image Recognition of Pepper Diseases and Pests Based on Improved ResNet34

Li Yanmei, Zhou Wenxue, Wang Zhaoqi   

  1. School of Mathematics and Physics, Lanzhou Jiaotong University, Lanzhou 730070, China
  • Received:2025-05-29 Online:2026-09-26 Published:2026-09-26

摘要: 针对辣椒病虫害图像识别任务中模型计算复杂度高、 参数规模大、 难以在资源受限设备上部署的问题, 提出一种基于改进ResNet34的轻量化病虫害识别方法. 首先, 通过引入深度可分离卷积结构替换传统标准卷积, 在保证特征提取能力的同时显著降低模型参数量和计算开销; 其次, 融合卷积块注意力机制, 从通道和空间两个维度增强模型对病斑关键区域特征的关注能力, 提高特征表达的判别性. 为验证该方法的有效性, 在辣椒病虫害数据集及公开PlantVillage番茄病害数据集上进行系统实验. 实验结果表明, 改进模型在多项评价指标上均取得显著提升, 其中识别准确率达98.36%, 较原始ResNet34提高5.64%. 在与MobileNetV2,GoogLeNet,AlexNet,VGG16和ResNet18等模型的对比实验中, 该方法在准确率、 精确率、 召回率和F1值等指标上均表现更优. 此外, 模型的参数量仅为2.73 M, 模型体积为10.62 MiB, 在保持较高识别精度的同时具有良好的轻量化特性和部署适用性.

关键词: 辣椒病虫害, ResNet34网络, 深度可分离卷积, 注意力机制, 深度学习

Abstract: Aiming at  the problems of high computational complexity, large parameter size, and limited deployability of existing models in the  image recognition tasks of pepper diseases and pests,  we  proposed a lightweight  disease and pest recognition method based on an improved ResNet34. Firstly,  depthwise separable convolution structures were introduced to replace conventional standard convolutions, which significantly reduced model parameter count and computational cost while maintaining feature extraction capability. Secondly, a convolutional block attention mechanism was integrated to enhance the model’s ability to focus on critical region features of lesions from both channel and spatial dimensions, and  improve the discriminative power of feature representations. In order to verify the effectiveness of the proposed method, systematic experiments were conducted on a pepper  disease  and pest dataset as well as the public PlantVillage tomato disease dataset. Experimental results show that the improved model achieves significant improvements in  multiple evaluation metrics, with a recognition accuracy of 98.36%, which is  5.64% higher than  the original ResNet34. In comparative experiments with models such as MobileNetV2, GoogLeNet, AlexNet, VGG16, and ResNet18, the proposed method performs better  in accuracy, precision, recall, and F1 values. Furthermore, the parameter count of proposed model is  only 2.73 M, and the  model volume is  10.62 MiB, which has good  lightweight characteristics and deployment applicability  while maintaining high recognition accuracy.

Key words: pepper disease and pest, ResNet34 network, depthwise separable convolution, attention mechanism, deep learning

中图分类号: 

  • TP391.41