Target Detection of Trellised Watermelons in Complex Agricultural Scenes Based on Improved RT-DETR
Open Access
- 10 March 2026
- journal article
- research article
- Published by MDPI AG in Horticulturae
- Vol. 12 (3) , 333
Abstract
To address the problems of severe fruit occlusion, large variations in target scale, and many small-scale goals being overlooked in the recognition of trellised watermelons under complex agricultural scenarios, this study proposes an improved RT-DETR-based detection model, termed RT-DETR-Watermelon. A context-guided (CG) module is embedded into the backbone network. A dedicated P2 detection layer is added to enhance the model’s sensitivity to small objects. A scale sequence feature fusion (SSFF) module and a triple feature encoder (TFE) module are introduced into the model to improve the model’s capability to detect targets at multiple scales. The original bounding box regression loss is replaced with MPDIoU (Multiple Path Distance Intersection over Union) loss, which accelerates model convergence and improves localization precision. Finally, the number of channels is adjusted to reduce parameter count, computational complexity, and storage size. The experimental results show that, compared with the original RT-DETR model, the proposed RT-DETR-Watermelon model increases precision, recall, and mean Average Precision (mAP@0.5) by 0.4, 1.8, and 1.0 percentage points, while reducing the number of parameters, computational cost, and model size by 53.5%, 23.5%, and 53.2%, respectively.Keywords
Funding Information
- Shandong Academy of Agricultural Machinery Science (YDZX2024020;2022CXGC020701)
- Shandong Academy of Agricultural Machinery Science (YDZX2024020;2022CXGC020701)
This publication has 21 references indexed in Scilit:
- DETRs Beat YOLOs on Real-time Object Detection2024
- End-to-End Object Detection with Transformers2020
- GhostNet: More Features From Cheap Operations2020
- Generalized Intersection Over Union: A Metric and a Loss for Bounding Box Regression2019
- Soft-NMS — Improving Object Detection with One Line of Code2017
- Mask R-CNN2017
- Feature Pyramid Networks for Object Detection2017
- SSD: Single Shot MultiBox Detector2016
- Deep Residual Learning for Image Recognition2016
- Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation2014