基于改进YOLOv8n的苹果采摘机器人识别算法研究OA
Research on apple picking robot recognition algorithm based on improved YOLOv8n
针对果园内枝叶遮挡、光照不均等复杂环境因素导致采摘机器人对苹果的检测精度低、鲁棒性差等问题.研究提出一种改进YOLOv8n网络轻量化模型的苹果检测算法,旨在提升复杂场景下果实检测的准确性与可靠性.首先,在主干网络末端加入多尺度位置注意力机制(multi-scale position-channel attention,MPCA),通过对不同尺度下苹果位置信息的精准捕捉,增强模型对目标位置特征的感知能力,有效降低复杂果园环境对检测结果的干扰;其次,在颈部网络中引入"FocusFeature"特征融合模块,借助多尺度深度可分离卷积实现信息融合与特征增强,提升模型的检测能力.最后,将损失函数CIoU替换为WIoUv3,依据预测框与真实框的匹配质量,动态调整样本在损失计算中的权重,有效提升了模型的定位精度.试验表明,改进模型在复杂果园环境下精确率达92.2%、召回率86.4%,mAP@0.5与mAP@[0.5:0.95]分别为94.4%、72.4%,相较原始算法提升3.4%、6%、3.9%、2.8%.消融试验显示,WIoUv3、MPCA、FocusFeature特征融合模块分别使mAP@0.5提升0.3%、0.9%、1.1%,多模块协同实现性能叠加.模型大小为6.69 MB,较原始模型仅增加0.74 MB,未显著增加计算负载.与YOLOv5n、YOLOv7-tiny、YOLOv11n等主流算法相比,改进模型在精确率上分别提高3.9%、7.6%、5.7%,mAP@[0.5:0.95]指标分别提升2.5%、9.9%、13%,在检测精度与泛化能力方面展现出显著优势.可见,提出的改进YOLOv8n算法通过多模块协同作用,显著提升了复杂果园环境下苹果检测的精度与鲁棒性,为采摘机器人的实际应用提供了有效技术方案,对推动苹果采收智能化发展具有重要意义.
To address the issues of low detection accuracy and poor robustness of apple picking robots caused by complex environmental factors such as branch and leaf occlusion and uneven light distribution in orchards,this study proposes an apple fruit detection algorithm that improves the lightweight model of the YOLOv8n network,aiming to enhance the accuracy and reliability of apple detection in complex scenarios.Firstly,an"MPCA"(multi-scale position-channel attention)is added at the end of the backbone network to precisely capture the position information of apples at different scales,thereby enhancing the model's perception of target position features and effectively reducing the interference of complex orchard environments on detection results.Secondly,a"FocusFeature"feature fusion module is introduced in the neck network,which uses multi-scale depth wise separable convolution to achieve information fusion and feature enhancement,improving the model's detection capability.Finally,the loss function CIoU is replaced with WIoUv3(WiseIoU),dynamically adjusting the weight of samples in the loss calculation based on the matching quality of predicted and ground truth boxes,effectively enhancing the model's localization accuracy.Experiments show that the improved model achieves an accuracy of 92.2%,a recall rate of 86.4%,and mAP@0.5 and mAP@[0.5:0.95]of 94.4%and 72.4%respectively in complex orchard environments,representing improvements of 3.4%,6%,3.9%,and 2.8%compared to the original algorithm.Ablation experiments reveal that WIoUv3,MPCA,and FocusFeature feature fusion module increase mAP@0.5 by 0.3%,0.9%,and 1.1%respectively,with performance enhancement achieved through the synergy of multiple modules.The model size is 6.69 MB,only 0.74 MB larger thanthe original model,without significantly increasing the computational load.Compared with mainstream algorithms such as YOLOv5n,YOLOv7-tiny,and YOLOv11n,the improved model increases the accuracy by 3.9%,7.6%,and 5.7%respectively,and mAP@[0.5:0.95]by 2.5%,9.9%,and 13%,demonstrating significant advantages in detection accuracy and generalization ability.It is evident that the improved YOLOv8n algorithm proposed in this study significantly enhances the accuracy and robustness of apple detection in complex orchard environments through the collaborative effect of multiple modules,providing an effective technical solution for the practical application of picking robots and playing a crucial role in promoting the intelligent development of apple harvesting.
门晓龙;何义川;汤智辉;刘湛;潘思祺;姚欢杰
塔里木大学机械电气化工程学院,新疆 阿拉尔,843300||南疆特色农林产物利用与装备兵团重点实验室,新疆 阿拉尔,843300||新疆维吾尔自治区教育厅普通高等学校现代农业工程重点实验室,新疆 阿拉尔,843300塔里木大学机械电气化工程学院,新疆 阿拉尔,843300||南疆特色农林产物利用与装备兵团重点实验室,新疆 阿拉尔,843300||新疆维吾尔自治区教育厅普通高等学校现代农业工程重点实验室,新疆 阿拉尔,843300南疆特色农林产物利用与装备兵团重点实验室,新疆 阿拉尔,843300||新疆维吾尔自治区教育厅普通高等学校现代农业工程重点实验室,新疆 阿拉尔,843300塔里木大学机械电气化工程学院,新疆 阿拉尔,843300||南疆特色农林产物利用与装备兵团重点实验室,新疆 阿拉尔,843300塔里木大学机械电气化工程学院,新疆 阿拉尔,843300||新疆维吾尔自治区教育厅普通高等学校现代农业工程重点实验室,新疆 阿拉尔,843300阿拉尔市疆田果将香梨种植农民专业合作社,新疆 阿拉尔,843300
农业科技
YOLOv8n采摘机器人目标检测轻量化模型改进复杂果园环境
YOLOv8npicking robotobject detectionlightweightmodel improvementcomplex orchard environment
《智能化农业装备学报(中英文)》 2026 (1)
52-62,11
新疆生产建设兵团科技计划(2024BA005) Science and Technology Program of Xinjiang Production and Construction Corps(XPCC)(2024BA005)
评论