期刊文献+

融合注意力机制和二次特征提取的ResNet小样本农作物病虫害识别

ResNet Few-shot Crop Pest and Disease Recognition Incorporating Attention Mechanism and Secondary Feature Extraction
下载PDF
导出
摘要 针对传统机器学习方法对于小样本和多类别的农作物叶片病虫害识别效果和时间不理想的问题,本文利用改进的ResNet模型来实现农作物病害识别.通过加入dropout层、激活函数、最大池化层和注意力机制来提高模型的鲁棒性、特征捕捉能力、实现了用较低的模型参数量来提高病虫害识别的准确率.首先对从公共数据集Plant Village获取的图像进行预处理和增强,将ReLU激活函数替换为PReLU,解决ReLU函数在小于0部分神经元坏死的问题;然后在全局平均池化层之前加入dropout层,设置合理的阈值,有效避免过拟合现象的发生,增强模型的鲁棒性;此外,在dropout与全局平均池化层之间加入最大池化层,不仅能扩大神经元的感受野,还能帮助模型获取局部病虫害的最显著特征,减小图片背景的噪声影响,实现二次特征提取;最后嵌入CBAM注意力机制,使模型自动学习输入特征图中最重要的通道信息,并对其进行通道与空间之间加权,从而更好地捕捉图像中的语义信息.实验结果表明,改进后的模型对测试集识别准确度达99.15%,模型参数量仅为9.13M,与Xception、InceptionV3、原ResNet等模型相比,准确率分别超过了1.01,0.68,0.59个百分点,降低了模型参数量,为农作物病虫害识别提供了一种先进的深度学习方法. Aiming at the problem that traditional machine learning methods are not ideal in terms of effect and time for identifying crop leaf pests and diseases with small samples and multiple categories,this study utilizes an improved ResNet model to realize the recognition of crop pests and diseases.By adding dropout layers,activation function,maximum pooling layer,and attention mechanism,the robustness and feature capturing ability of the model is improved,and the accuracy of pest and disease recognition with a lower number of model parameters is achieved.Firstly,the images obtained from the public dataset Plant Village are preprocessed and enhanced,and the ReLU activation function is replaced by PReLU to solve the problem of neuron necrosis in the part of the ReLU function less than 0.Then,a dropout layer is added before the global average pooling layer,and a reasonable threshold value is set to effectively avoid the occurrence of overfitting and to enhance the robustness of the model.In addition,a maximum pooling layer is added between the dropout and global average pooling layer,which not only expands the receptive field of neurons,but also helps the model to obtain the most significant features of local pests and diseases,reduce the noise effect from image background,and realize secondary feature extraction.Finally,the CBAM attention mechanism is embedded,which makes the model automatically learn the most important channel information in the input feature maps and weight it between the channel and space to better capture the semantic information in the images.Experimental results show that the improved model recognizes the test set with an accuracy of 99.15% with a model parameter count of only 9.13M,which exceeds the accuracy of Xception,InceptionV3,and the original ResNet by 1.01,0.68,and 0.59 percentage points,respectively,and reduces the model parameter count.This provides a state-of-the-art crop disease recognition deep learning method.
作者 汪志立 王定成 曹蓉 郑梦丽 刘亚鹏 卓欣 WANG Zhi-Li;WANG Ding-Cheng;CAO Rong;ZHENG Meng-Li;LIU Ya-Peng;ZHUO Xin(School of Software,Nanjing University of Information Engineering,Nanjing 210044,China;School of Computer Science and School of Cyberspace Security,Nanjing University of Information Engineering,Nanjing 210044,China;Engineering Research Centre for Digital Forensics Ministry of Education,Nanjing University of Information Engineering,Nanjing 210044,China)
出处 《计算机系统应用》 2024年第9期208-215,共8页 Computer Systems & Applications
基金 国家自然科学基金(62072251) 江苏省自然科学基金(BK2007195.4) 南京信息工程大学创新专项(XJDC202310300351)。
关键词 病虫害识别 注意力机制 迁移学习 最大池化 激活函数PReLU pest and disease recognition attention mechanism transfer learning maximizing pooling activation function PReLU
  • 相关文献

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部