基于RT-DETR改进的幼桃识别模型OA
Improved Immature Peach Recognition Model Based on RT-DETR
针对自然环境下未成熟桃子识别存在与周围环境颜色相似、光照不均及枝叶遮挡等问题,本研究以RT-DETR-R18为基础模型进行改进,提出一种幼桃检测模型FREDC-RTDETR.通过将RT-DETR-R18骨干网络中的BasicBlock替换为Faster NetBlock、结合RepConv重参数化技术、引入EMA注意力机制,设计新的骨干网络FRE Block,在降低参数量的同时提高模型特征提取能力;在颈部网络中,用基于可学习位置编码的AIFI-LPE替代原AIFI模块,解决注意力偏移的问题,同时采用DySample动态上采样以及重新设计的CG block Down下采样算子,优化上下采样过程;此外,使用Shape-IoU损失函数,增强模型对图像细节的捕捉能力.实验结果显示,在自建数据集上,改进后的模型均值平均精度达到96.1%,召回率达到91.9%,精确率达到97.6%,相比原模型分别提高了 2.4、2.7、2.5个百分点.可见,本研究提出的模型在复杂背景下表现出较好的鲁棒性和精确度,可为果树早期产量预测以及绿色果实识别提供参考.
In response to the challenges of identifying immature peaches in natural environments,such as color similarity with surrounding environments,uneven lighting,and obstruction by branches and leaves,a detection model FREDC-RTDETR was proposed based on improving RT-DETR-R18 in this study.By replacing the BasicBlock in the RT-DETR-R18 backbone network with the Faster NetBlock,incorporating RepConv reparameterization technology,and introducing the EMA attention mechanism,a new backbone network FRE Block was designed,which could reduce the number of parameters but enhancing the model's feature extrac-tion capability.In the neck network,the original AIFI module was replaced with AIFI-LPE based on learnable position encoding to address the issue of attention shift,and the DySample dynamic upsampling along with the redesigned CG block Down downsampling operator were employed to optimize the upsampling and downsam-pling processes.Additionally,the Shape-IoU loss function was used to enhance the model's ability to capture image details.The experimental results showed that on the self-built dataset,the improved model achieved the mean average precision of 96.1%,the recall rate of 91.9%,and the precision of 97.6%,representing increa-ses of 2.4,2.7 and 2.5 percentage points compared to the original model,respectively.In conclusion,the pro-posed model in this study demonstrated better robustness and accuracy in complex backgrounds,which could provide a reference for early yield prediction and green fruit identification of fruit trees.
张云建;陈红明;杨晓刚;杨灿鹏;王学睿;黄中豪;杨琳琳
云南农业大学机电工程学院,云南 昆明 650201云南农业大学机电工程学院,云南 昆明 650201云南农业大学机电工程学院,云南 昆明 650201云南农业大学机电工程学院,云南 昆明 650201云南农业大学机电工程学院,云南 昆明 650201作物模拟与智能调控重点实验室,云南 昆明 650201云南农业大学机电工程学院,云南 昆明 650201
农业科技
幼桃识别RT-DETRFRE BlockAIFI-LPE模块DySample动态上采样CG block Down下采样Shape-IoU损失函数
Immature peach recognitionRT-DETRFRE BlockAIFI-LPE moduleDySample dy-namic upsamplingCG block Down samplingShape-IoU loss function
《山东农业科学》 2026 (3)
160-170,11
国家自然科学基金项目(32160420)云南省重大科技专项(202202AE09002103)云南省农林联合专项(202301BD070001-172)
评论