RT-CWDT: A lightweight real-time transformer for crop and weed detection with adaptive feature sampling
Qi Yan, Ning Jin, Si Li, Huaji Zhu, Yisheng Miao, Huarui Wu
Key points
From the paper's conclusion- This study proposes RT-CWDT, a lightweight real-time crop–weed detector that improves the feature representation of RT-DETR-R18 in the backbone, in the enhancement of the high-level feature, and in the encoder.
Abstract
Accurate crop–weed discrimination is essential for site-specific weed management and reduced herbicide use in precision agriculture. In real field environments, irregular plant morphology, small targets, mutual leaf occlusion, and cluttered soil backgrounds degrade detection accuracy, while on-board deployment further requires real-time inference on resource-constrained devices. This study proposes RT-CWDT, a lightweight real-time crop–weed detector that improves the feature representation of RT-DETR-R18 in the backbone, in the enhancement of the high-level feature, and in the encoder. The selective gated residual block (SGRB) restricts the spatial convolution of the backbone to a quarter of the channels and recalibrates the result with a gated module. The dual-attention hybrid-kernel module (DAHK) applies attention-guided large kernels to part of the channels of the high-level feature and preserves lightweight local feature modeling on the remaining ones. The adaptive sampling encoder (ASE) combines deformable sampling with a reordering attention, enabling high-level features to align with the irregular geometry of plants rather than a fixed token grid. On the Weed-Crop dataset, RT-CWDT reaches 76.7% precision, 73.0% recall, 75.9% mAP50, and 38.8% mAP50:95, outperforming RT-DETR-R18 by 3.5 percentage points in mAP50 while reducing parameters by 21.1% and GFLOPs by 18.1%. RT-CWDT also outperforms RT-DETR-R18 on the CropAndWeed and ImageWeeds datasets, which differ in species, label scheme, and viewpoint, and it keeps its advantage under both single-factor and compound simulated imaging degradations. Using TensorRT INT8 on an NVIDIA Jetson Orin NX, RT-CWDT runs at 51.9 FPS against 42.0 FPS for RT-DETR-R18. RT-CWDT therefore improves detection accuracy while maintaining a lightweight architecture and real-time inference, which suits the detection of crops and weeds on a resource-constrained embedded device.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- ASSET-DETR: a relation-aware multi-scale feature arbitration network for real-time weed detection in sugar beet fields.Frontiers in plant science · 2026
- CSAG-DETR: a lightweight detector for accurate weed detection in sugar beet fields under complex field conditions.Frontiers in plant science · 2026
- Alfalfa-Yolo: a boundary-aware lightweight framework for real-time weed detection in alfalfa fields.Frontiers in plant science · 2026
- Real-time on-device weed identification using a hardware-efficient lightweight CNNFrontiers in Plant Science · 2026
- An Efficient Lightweight Framework for Cotton Weed Localization and Classification Using Multi-Scale Dual Attention Vision Transformer and Enhanced Haze OptimizationEngineering Research Express · 2026
- WAGENet: A Hardware-Aware Lightweight Network for Real-Time Weed Identification on Low-Power Resource-Constrained MCUsAgriculture · 2026