Hostname: page-component-76d6cb85b7-vdhp9 Total loading time: 0 Render date: 2026-07-10T21:52:06.839Z Has data issue: false hasContentIssue false

WeedDETR: an efficient and accurate detection method for detecting small-target weeds in UAV images

Published online by Cambridge University Press:  27 August 2025

Shengxian Yang
Affiliation:
Master’s Student, College of Big Data and Information Engineering, Guizhou University, Guiyang, China
Jianwu Lin
Affiliation:
Doctoral Student, State Key Laboratory of Public Big Data, College of Computer Science and Technology, Guizhou University, Guiyang, China
Tomislav Cernava
Affiliation:
Professor, School of Biological Sciences, Faculty of Environmental and Life Sciences, University of Southampton, Southampton, UK
Xiaoyulong Chen*
Affiliation:
Professor, College of Life Sciences, Guizhou University, Guiyang, China Guizhou-Europe Environmental Biotechnology and Agricultural Informatics Oversea Innovation Center in Guizhou University, Guizhou Provincial Science and Technology Department, Guiyang, China International Jointed Institute of Plant Microbial Ecology and Resource Management in Guizhou University, China Association of Agricultural Science Societies, Guiyang, China
Xin Zhang*
Affiliation:
Associate Professor, College of Big Data and Information Engineering, Guizhou University, Guiyang, China
*
Corresponding authors: Xiaoyulong Chen; Email: ylcx@gzu.edu.cn; Xin Zhang; Email: xzhang1@gzu.edu.cn
Corresponding authors: Xiaoyulong Chen; Email: ylcx@gzu.edu.cn; Xin Zhang; Email: xzhang1@gzu.edu.cn
Rights & Permissions [Opens in a new window]

Abstract

Site-specific weed management (SSWM) provides precise weed control and reduces the use of herbicides, which not only reduces the risk of environmental damage but also improves agricultural productivity. Accurate and efficient weed detection is the foundation for SSWM. However, complex field environments and small-target weeds in fields pose challenges for their detection. To address the above limitations, we developed WeedDETR, a real-time end-to-end detection model specifically designed to enhance the detection of small-target weeds in unmanned aerial vehicle (UAV) imagery. WeedDETR incorporates RepCBNet, a backbone network optimized through structural re-parameterization, to improve fine-grained feature extraction and accelerate inference. In addition, the designed feature complement fusion module (FCFM) was used for multi-scale feature fusion to alleviate the problem of small-target weed information being ignored in the deep network. During training, varifocal loss was used to focus on high-quality weed samples. We experimented on a new dataset, GZWeed, which contains weed imagery captured by a UAV. The experimental results demonstrated that WeedDETR achieves 73.9% and 91.8% AP0.5 (average precision at 0.5 intersection over union threshold) in the weed and Chinese cabbage [Brassica rapa subsp. chinensis (L.) Hanelt] categories, respectively, while achieving an inference speed of 76.28 frames per second (FPS). In comparison to YOLOv5-L, YOLOv6-M, and YOLOv8-L, WeedDETR demonstrated superior accuracy and speed, exhibiting 3.5%, 6.3%, and 3.6% higher AP0.5 for weed categories, while FPS was 14.9%, 12.9%, and 1.4% higher, respectively. The innovative architectural design of WeedDETR significantly enhances the detection accuracy of small-target weeds, enabling efficient end-to-end weed detection. The proposed method establishes a solid technological foundation for UAV-based precision weeding systems in field conditions, advancing the development of deep learning–driven intelligent weed management.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press on behalf of Weed Science Society of America
Figure 0

Figure 1. Location of the study site: Anlong County, Guizhou Province, China.

Figure 1

Figure 2. Flowchart of dataset preprocessing: (A) Dataset label with Roboflow, (B) image crop, and (C) augmented image.

Figure 2

Table 1. The number of images of object classes in GZWeed dataset.

Figure 3

Figure 3. Representative samples from the weed dataset.

Figure 4

Table 2. Experimental configuration.

Figure 5

Figure 4. The structure of WeedDETR. P1–P5 represent different levels of feature maps. CFI, complementary feature integration; IoU, intersection over union; TEncoder, transform encoder.

Figure 6

Figure 5. The structure of RepCBNet. (A) The structure of RepCBNet. P1–P5 represent different levels of feature maps. (B) The structure of ConvNL. k = 1/3 represents the size of the convolution kernel. (C) The structure of PadConv. (d) The structure of RepCBlock. BN, batch normalization.

Figure 7

Figure 6. Re-parameterization of the PadConv block. (A) Perspective of structure. (B) Perspective of parameter. BN, batch normalization.

Figure 8

Figure 7. The structure of feature complement fusion module (FCFM) and its components: (A) the structure of FCFM, with P1–P5 representing different levels of features; (B) the structure of Fusion module; and (C) the structure of transform encoder (TEncoder) module. CFI, complementary feature integration;TEncoder, transform encoder; BN, batch normalization.

Figure 9

Figure 8. The structure of two types of complementary feature integration (CFI) modules: (A) the structure of CFI-A, and (B) the structure of CFI-B.

Figure 10

Table 3. Comparison of WeedDETR with different backbone networks.

Figure 11

Table 4. Comparison of WeedDETR with different complementary feature integration (CFI) modules.

Figure 12

Table 5. Comparison of the results between focal loss (FL) and varifocal loss (VFL).

Figure 13

Table 6. Results of ablation experiment.

Figure 14

Figure 9. Heat map comparison of RT-DETR and WeedDETR. The darker red areas in the heat maps indicate the areas of the feature maps that the models focus on.

Figure 15

Table 7. Parameters and floating-point operations (FLOPs) change during training and inference.

Figure 16

Table 8. Comparison of detection results of different detection models.

Figure 17

Figure 10. Comparison of precision-recall (PR) curves.

Figure 18

Figure 11. Comparison of detection results by different models in complex background. The three scenarios are: (A), shadow occlusion, (B) rice straw occlusion, and (C) waterbody interference. Red boxes represent detected Chinese cabbage, brown boxes represent detected weeds, and yellow boxes represent missed weeds.

Figure 19

Figure 12. Comparison of detection results by different models in small-target weeds scenarios. Red boxes represent detected Chinese cabbage, brown boxes represent detected weeds, and yellow boxes represent missed weeds.

Supplementary material: File

Yang et al. supplementary material

Yang et al. supplementary material
Download Yang et al. supplementary material(File)
File 3.7 MB