湖北农业科学 ›› 2026, Vol. 65 ›› Issue (5): 187-195.doi: 10.14088/j.cnki.issn0439-8114.2026.05.029

• 农业工程 • 上一篇    下一篇

基于改进RT-DETR的农田杂草检测算法

尹业荣, 匡迎春, 方帅, 金微, 周浩宇   

  1. 湖南农业大学信息与智能科学技术学院,湖南 长沙 410128
  • 收稿日期:2026-02-05 出版日期:2026-05-25 发布日期:2026-05-26
  • 通讯作者: 匡迎春(1971-),女,博士,教授,主要从事计算机科学,智慧农业研究工作,(电子信箱)kyc@hunau.net。
  • 作者简介:尹业荣(2000-),男,硕士研究生,主要从事深度学习与目标检测研究工作,(电子信箱)yyrsz0796@stu.hunau.edu.cn。
  • 基金资助:
    国家自然科学基金项目(61972147); 校级科学研究项目(25KJ069)

Weed detection algorithm for farmland based on an improved RT-DETR

YIN Ye-rong, KUANG Ying-chun, FANG Shuai, JIN Wei, ZHOU Hao-yu   

  1. College of Information and Intelligence, Hunan Agricultural University, Changsha 410128,China
  • Received:2026-02-05 Published:2026-05-25 Online:2026-05-26

摘要: 随着农业智能化和精准施药技术的发展,农田杂草的精准检测对提高作物产量和减少农药使用具有重要意义。然而,现有目标检测算法在复杂农田背景和小尺度杂草目标检测方面仍面临较大挑战。针对上述问题,本研究提出了一种基于改进RT-DETR的农田杂草检测算法FAS-DETR。该方法融合FasterBlock-SCSA混合残差模块、AIFI-AgentAttention代理注意力机制以及SSFF多尺度特征融合模块,从特征提取、全局上下文建模和多尺度信息融合等方面对模型结构进行优化。其中,FasterBlock-SCSA提升了模型对细粒度纹理和关键区域的表征能力,AIFI-AgentAttention利用代理Token增强全局特征聚合效果,SSFF模块进一步提升了不同尺度杂草目标的检测性能。结果表明,FAS-DETR在精确率、召回率和mAP50等指标上均优于主流的YOLO系列模型和RT-DETR基线模型,其中mAP50达76.4%,较RT-DETR基准模型提升3.1个百分点。在保持计算量和参数量合理的前提下,上述结果验证了该方法在农田杂草检测任务中的有效性。

关键词: RT-DETR, 杂草检测, 深度学习, 目标检测

Abstract: With the advancement of intelligent agriculture and precision pesticide application technologies, the accurate detection of farmland weeds is of great significance for increasing crop yields and reducing pesticide usage. However, existing object detection algorithms still faced considerable challenges in complex farmland backgrounds and the detection of small-scale weed targets. To address these issues, this study proposed FAS-DETR, a farmland weed detection algorithm based on an improved RT-DETR. This method integrated the FasterBlock-SCSA hybrid residual module, the AIFI-AgentAttention agent attention mechanism, and the SSFF multi-scale feature fusion module, optimizing the model architecture in terms of feature extraction, global context modeling, and multi-scale information fusion. Specifically, FasterBlock-SCSA enhanced the model's ability to represent fine-grained textures and key regions, AIFI-AgentAttention leveraged agent tokens to improve global feature aggregation, and the SSFF module further improved the detection performance for weed targets at different scales. Experimental results demonstrated that FAS-DETR outperformed both mainstream YOLO series models and the RT-DETR baseline model in metrics including precision, recall, and mAP50. Specifically, its mAP50 reached 76.4%, representing a 3.1 percentage point improvement over RT-DETR baseline model. These results validated the method's effectiveness for farmland weed detection while maintaining reasonable computational and parameter requirements.

Key words: RT-DETR, weed detection, deep learning, object detection

中图分类号: