多重注意力改进YOLOv8的密集茶芽目标识别算法OA
YOLOv8 Algorithm Improved by Multi-Attention for Dense Scene Tea Bud Target Recognition
针对茶芽密度高、遮挡严重导致的茶芽识别精度低、难以满足无人化采收需求的问题,提出了改进的 Tea-YOLOv8-Pruning模型,来优化高密度场景下的茶芽检测.为增强Tea-YOLOv8-Pruning模型对全局特征的感知能力,在原YOLOv8 中引入了双注意力(A2 Net)模块.通过在检测头中引入Multiple-SEAM模块,建立不同密度区域中茶芽之间的特征关系,利用未遮挡茶芽的关键特征预测出重叠率高且遮挡严重茶芽的特征信息,提升模型对密集场景下目标的检测能力.考虑密集场景下因茶芽重叠易出现冗余检测框的问题,在YOLOv8 中引入Repulsion损失函数,利用吸引与排斥策略,保证预测框向真实框靠近,相邻非同一目标的预测框相互排斥,减少漏检、错检率.同时,对改进模型进行了剪枝优化,提高检测速率.基于自建数据集开展了模型的性能对比试验,结果显示:改进的Tea-YOLOv8-Pruning网络的平均准确率(mAP)、精确率(P)和召回率(R)分别达到 90.6%、87.9%和 87.9%,明显优于Faster R-CNN、YOLOv8n和YOLOv10n.通过不同密度场景下茶芽的检测对比试验可知:Tea-YOLOv8-Pruning网络表现出了明显的优势,特别是在高密度复杂环境下正确识别数量更多、置信度更高,具有更强的检测性能和鲁棒性.
To tackle the challenges of low recognition accuracy for tea buds and the difficulties in achieving automation due to high bud density and significant occlusion,an enhanced Tea-YOLOv8-Pruning model aimed at optimizing the tea bud detection performance in densely populated scenes was introduced.To augment the global feature perception capabili-ties of the Tea-YOLOv8-Pruning model,the A2Net(double attention)module was incorporated into the original YOLOv8 framework.By integrating the Multiple-SEAM module into the detection head,a relationship among features across varying density regions was established,the key characteristics of unobstructed tea buds were leveraged to predict feature information of tea buds which were highly overlapped and severely occluded buds,thereby enhancing the model's detection efficacy in dense environments.Recognizing that redundant detection boxes may arise from overlapping tea buds in such scenarios,the Repulsion loss function was introduced into YOLOv8 employing an attract-and-repel strategy,which ensured that predicted boxes converged towards true boxes while adjacent non-target prediction boxes repelled each other to mitigate the rate of missed detection and false detection.The optimal model was further optimized by pruning to improve the detection speed.Performance comparison experiments conducted on a self-constructed dataset revealed that the improved Tea-YOLOv8-Pruning network achieved average metrics of 90.6%mean Average Precision(mAP),87.9%precision(P),and 87.9%recall(R),significantly surpassing those of Faster R-CNN,YOLOv8n,and YOLOv10n models.Through comparative analysis of tea bud detection in various density scenarios,indicating that en-hanced Tea-YOLOv8-Pruning network demonstrated marked advantages,particularly in high-density and complex envi-ronments where it accurately identified more tea buds with greater confidence,and the detection performance and robust-ness were stronger.
陶厚琦;张瑞瑞;张林焕;张旦主;伊铜川;吴明齐;丁晨琛
北京市农林科学院 智能装备技术研究中心,北京 100097||新疆农业大学 机电工程学院,乌鲁木齐 830000北京市农林科学院 智能装备技术研究中心,北京 100097北京市农林科学院 智能装备技术研究中心,北京 100097北京市农林科学院 智能装备技术研究中心,北京 100097北京市农林科学院 智能装备技术研究中心,北京 100097北京市农林科学院 智能装备技术研究中心,北京 100097北京市农林科学院 智能装备技术研究中心,北京 100097
农业科技
茶芽识别YOLOv8密集目标多重注意力深度学习
tea bud recognitionYOLOv8intensive targetmultiple attentiondeep learning
《农机化研究》 2026 (6)
203-212,10
国家自然科学基金项目(联合基金项目U23A20175-2)
评论