首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于改进YOLOv5s的自然场景下生姜叶片病虫害识别
引用本文:兰玉彬,孙斌书,张乐春,赵德楠.基于改进YOLOv5s的自然场景下生姜叶片病虫害识别[J].农业工程学报,2024,40(1):218-224.
作者姓名:兰玉彬  孙斌书  张乐春  赵德楠
作者单位:山东理工大学农业工程与食品科学学院,淄博 255049;山东省农业航空智能装备工程技术研究中心,淄博 255049;山东理工大学生态无人农场研究院,淄博 255049;山东理工大学农业工程与食品科学学院,淄博 255049;山东理工大学生态无人农场研究院,淄博 255049
基金项目:山东省引进顶尖人才“一事一议”专项经费资助项目(鲁政办字 [2018]27 号);宁夏回族自治区重点研发计划项目(项目号:2023BCF01051)
摘    要:为提高自然环境下生姜叶片病虫害的识别精确率,提出一种基于改进YOLOv5s的生姜叶片病虫害识别模型。建立了田间不同自然环境条件下的生姜叶片病虫害数据集,为保证模型在田间移动设备上流畅运行,实现网络模型的轻量化,在YOLOv5s中引入GhostNet网络中的Ghost模块和Ghost BottleNeck结构。同时,为避免生姜叶片病虫害图像小目标特征丢失的情况,增强图像特征提取,加入CA注意力机制模块,提升生姜叶片病虫害的识别准确率和定位精确度。改进后的模型参数量、计算量和权重文件大小分别为YOLOv5s模型的52.0%、50.6%和55.2%,对生姜叶片病虫害识别平均精度均值达到了83.8%。与Faster-RCNN、SSD、YOLOv4、YOLOv5s、Tea-YOLOv5s等算法相比,平均精度均值分别提高37.6、39.1、22.5、1.5、0.7个百分点,将改进后的目标检测模型部署在Jetson Orin NX开发板上,并使用TensorRT、Int8量化和CUDA等方法对检测模型加速,加速后的模型检测速度为74.3帧/s,满足实时检测的要求,测试结果显示,改进后的模型减少了漏检、误检的情况,并且对目标定位更加精准,适用于自然环境下生姜叶片病虫害的精准识别,为后续生姜机械自动化施药作业提供技术理论支持。

关 键 词:图像识别  深度学习  目标检测  轻量化  病虫害  生姜叶片
收稿时间:2023/10/18 0:00:00
修稿时间:2023/12/20 0:00:00

Identifying diseases and pests in ginger leaf under natural scenes using improved YOLOv5s
LAN Yubin,SUN Binshu,ZHANG Lechun,ZHAO Denan.Identifying diseases and pests in ginger leaf under natural scenes using improved YOLOv5s[J].Transactions of the Chinese Society of Agricultural Engineering,2024,40(1):218-224.
Authors:LAN Yubin  SUN Binshu  ZHANG Lechun  ZHAO Denan
Institution:College of Agricultural Engineering and Food Science, Shandong University of Technology, Zibo 255049, China;Shandong Provincial Engineering Technology Research Center for Agricultural Aviation Intelligent Equipment, Zibo 255049, China;Research Institute of Ecological Unmanned Farm, Shandong University of Technology, Zibo 255049, China;College of Agricultural Engineering and Food Science, Shandong University of Technology, Zibo 255049, China;Research Institute of Ecological Unmanned Farm, Shandong University of Technology, Zibo 255049, China
Abstract:Ginger diseases and pests have posed a serious threat to the yield in recent years. However, the artificial and mechanical application cannot fully meet the large-scale production at present, due to the slow overall progress and the low degree low of intelligence. This study aims to develop the intelligent application equipment of ginger for the high efficiency and accuracy of the intelligent vehicle. A lightweight model was proposed to realize the high-performance deployment of the ginger leaf disease and pest detection on mobile terminals using improved YOLOv5s. Ghost module of GhostNet was selected to replace the convolutional layers in the original YOLOv5s neural network, except the first layer. Ghost BottleNeck was used to replace the Resunit residual component in the original C3 concentrate-comprehensive convolution block. The lightweight of the network model was obtained to reduce the number of parameters and the amount of calculation. At the same time, the memory consumption was reduced in the model weight file. CA attention mechanism module was added after the C3 block in the feature fusion network, in order to improve the recognition and positioning accuracy. The reason was that the lightweight of the model caused the feature loss, when the neural network was used to extract the features of the image. The experimental results show that the number of parameters of the improved YOLOv5s model was 3.76×106M, which was 52.0% of the original. The computational complexity was 8.4GFLOPs, which was 50.6% of the original. The size of the weight file was 7.79MB, which was 55.2% of the original. The average precision and average precision reached 80.5% and 83.8%, respectively, which were 1.3 and 1.5 percentage points higher than those of the original model. The improved model was greatly reduced the number of parameters, calculation amount and weight file size for the high detection accuracy, compared with Fast-RCNN, SSD, YOLOv4, YOLOv5s and Tea-YOLOv5s target detection models. The missed and false detection of image targets were also reduced, compared with the YOLOv5s model. And the improved network model was required less hardware conditions. The performance of the improved model was verified on mobile terminals. The Ginger-YOLOv5s model was deployed on the Jetson Orin NX development board, where the detection code was rewritten in C++. The model was accelerated using TensorRT high-performance operator, Int8 quantization processing, CUDA rewriting preprocessing and multi-thread processing. The final FPS reached 74.3, which was fully met the requirements of operation efficiency in the application machinery for the real-time detection of ginger leaf diseases and pests. The finding can provide the technical support for the migration and deployment of the model on the ginger application vehicle.
Keywords:image recognition  deep learning  object detection  lightweight  diseases and pests  ginger leaves
点击此处可从《农业工程学报》浏览原始摘要信息
点击此处可从《农业工程学报》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号