农业机械学报2024,Vol.55Issue(3):231-242,262,13.DOI:10.6041/j.issn.1000-1298.2024.03.023
基于改进YOLO v7轻量化模型的自然果园环境下苹果识别方法
Lightweight Apple Recognition Method in Natural Orchard Environment Based on Improved YOLO v7 Model
摘要
Abstract
In the task of apple recognition in natural orchard environments,it is difficult for traditional object detection algorithms to achieve a balance between the accuracy,speed,and lightweight of the detection model.Therefore,a lightweight apple detection model based on improved YOLO v7 model was proposed.Firstly,partial convolution(PConv)was introduced in the multi branch stacking module to replace regular convolution,in order to reduce the parameter and computation of the model.Then a lightweight efficient channel attention(ECA)module was introduced to enhance the feature extraction ability and improve the problem of false and missed detection of occluded targets in complex environments.Finally,a learning rate optimization strategy based on sparrow search algorithm(SSA)was adopted in model training to further increase the detection accuracy of the model.The experimental results showed that compared with the original YOLO v7 model,the precision,recall,and average accuracy of the improved model was raised by 4.15 percentage points,0.38 percentage points and 1.39 percentage points respectively;the number of parameters and computations were decreased by 22.93%and 27.41%,respectively;and the average time to detect each image under GPU and CPU was decreased by 0.003 s and 0.014 s,respectively.The results indicated that the improved model can quickly and accurately detect apple fruits in natural orchard environments,and the number of parameters and computations were less,which was suitable to be deployed on the embedded devices of apple harvesting robots,and laying the foundation for unmanned intelligent apple picking.关键词
苹果识别/自然果园环境/YOLO v7/PConv/高效通道注意力机制/麻雀搜索算法Key words
apple recognition/natural orchard environments/YOLO v7/PConv/efficient channel attention module/sparrow search algorithm分类
信息技术与安全科学引用本文复制引用
张震,周俊,江自真,韩宏琪..基于改进YOLO v7轻量化模型的自然果园环境下苹果识别方法[J].农业机械学报,2024,55(3):231-242,262,13.基金项目
江苏省重点研发计划项目(BE2017370)和国家自然科学基金项目(31471419) (BE2017370)