RT-DETR-DCEA: A Lightweight Citrus Defective Fruit Detection Algorithm for Complex Orchard Environments
Abstract
Given the issues in natural orchard environments, such as large-scale variations of defective citrus fruits, weak texture boundaries, strong illumination changes, branch and leaf occlusion, and significant background interference, this paper constructs a lightweight detection model, RT-DETR-DCEA, based on RT-DETR-R18. This model is improved through four aspects: “fine-grained defective feature extraction—multi-scale feature fusion—up-sampling detail recovery—global feature interaction for noise suppression”. First, a Dynamic Hybrid Convolution Module (DIMB) is introduced into the backbone network, drawing on the ideas of Inception-style multi-branch depthwise convolution and MetaFormer residual mixing. It extracts local textures of various forms through square convolution, horizontal strip convolution, and vertical strip convolution, and utilizes dynamic branch weights to enhance the model’s adaptability to irregular defects such as lesions, mildew, and external damage. Second, a Content-Guided Attention Feature Fusion Network (CGAFN) is designed in the neck network, which achieves adaptive fusion of low-level detail features and high-level semantic features through channel attention, spatial attention, and pixel-level fusion weights. Next, a lightweight upsampling enhancement module called EUCB-SC is constructed, which introduces channel rearrangement and Shift spatial offset into the efficient upsampling convolutional structure to enhance the local spatial interaction capability of upsampled features with low parameter overhead. Finally, adaptive sparse self-attention is introduced into the AIFI module to form AIFI-ASSA, which suppresses irrelevant background interactions through a sparse attention branch and retains necessary contextual information through a dense attention branch. The experimental results demonstrate that on a dataset containing four categories of citrus images—healthy, diseased, moldy, and severely externally damaged—RT-DETR-DCEA achieves 92.1% Precision, 86.1% Recall, and 91.8% mAP@50, with a parameter count of 1.477 × 107 and an inference speed of 81 FPS. Compared with the original RT-DETR-R18 and various YOLO series models, this method strikes a favorable balance among detection accuracy, recall capability, and model lightweightness. This paper also discusses limitations such as data scale, ratio of private data, single training result, and insufficient validation on edge devices, providing a basis for subsequent cross-regional data validation and real-world deployment testing.
Fields of Study & Subjects
Smart Agriculture and AI
Advanced Neural Network Applications
Remote Sensing in Agriculture
Publication details
- Journal / source
- Plants
- Publisher
- MDPI AG
- Volume
- 15
- Issue
- 13
- Pages
- 2077–2077
- Publication date
- 3 July 2026
- Language
- EN