Please wait a minute...
Journal of ZheJiang University (Engineering Science)  2027, Vol. 61 Issue (1): 108-119    DOI: 10.3785/j.issn.1008-973X.2027.01.011
Computer Technology     
An optimized RT-DETR object detection method for complex underwater environments
Lin Duo(),Hang Song,Yuantao Feng,Ying Zhao
School of Information Engineering and Automation, Kunming University of Science and Technology, Kunming 650500, China
Download: HTML     PDF(6141KB) HTML
Export: BibTeX | EndNote (RIS)      

Abstract  

An RT-DETR-based underwater object detection algorithm DS-DETR was proposed to tackle the complex challenges in underwater target detection, such as similar backgrounds, dense targets, partial occlusions, and low contrast. Building on the RT-DETR framework, the model designed a feature extraction enhancement network (FEE-Net), which adopted a classic pyramid architecture and integrated a self-attention mechanism at the deepest layer to capture global contextual dependencies, thereby enhancing the feature representation capability. Additionally, a multi-scale feature enhancement module (MFEM) was constructed, employing a multi-path parallel processing architecture to dynamically strengthen detail perception in multi-scale feature sequences. Furthermore, an efficient global awareness module (EGAM) was introduced to balance accuracy and computational complexity. Experiments on two public underwater datasets demonstrated that the improved model achieved mAP50 and mAP50:95 improvements of 2.1% and 1.0% on the URPC2021 dataset, and 2.1% and 2.4% on the DUO dataset, respectively. Moreover, it effectively reduced the false positive and false negative rates, attaining state-of-the-art performance among mainstream detection models.



Key words: RT-DETR      underwater object detection      feature enhancement      global awareness      multi-scale feature fusion     
Received: 01 September 2025      Published: 25 November 2026
CLC:  TP 393  
Cite this article:

Lin Duo,Hang Song,Yuantao Feng,Ying Zhao. An optimized RT-DETR object detection method for complex underwater environments. Journal of ZheJiang University (Engineering Science), 2027, 61(1): 108-119.

URL:

https://www.zjujournals.com/eng/10.3785/j.issn.1008-973X.2027.01.011     OR     https://www.zjujournals.com/eng/Y2027/V61/I1/108


面向水下复杂环境的RT-DETR目标检测优化方法

针对水下目标检测面临的相似背景、密集目标、部分遮挡及低对比度等复杂场景,提出基于RT-DETR的水下目标检测算法DS-DETR. 该模型以RT-DETR框架为基础,设计特征提取增强网络(FEE-Net),采用经典金字塔设计在网络最深层引入自注意力机制来捕获全局上下文依赖关系,以此增强特征表达能力;构建多尺度特征增强模块(MFEM),采用多路径并行处理架构并动态强化多尺度特征序列的细节感知能力;引入轻量化全局感知模块(EGAM),平衡精度与复杂度. 结果显示,改进模型在URPC2021数据集上mAP50和mAP50:95分别提升2.1%和1.0%,在DUO数据集上分别提升2.1%和2.4%,有效降低了误检率及漏检率,达到主流检测模型的先进水平.


关键词: RT-DETR,  水下目标检测,  特征增强,  全局感知,  多尺度特征融合 
Fig.1 Overall framework for proposed model
Fig.2 Feature extraction enhanced network module
Fig.3 Detailed diagrams of CSPB and C-SMFBA modules
Fig.4 Multi-scale feature enhancement module
Fig.5 ScalSeq module
Fig.6 Efficient global awareness module
Fig.7 URPC dataset visualization
组别FEE-NetMFEMEAGMPrecision/%Recall/%F1-Score/%mAP50/%mAP50:95/%GFLOPsParams/106FPS (bs=1)
A———79.869.873.777.244.157.019.974.6
B√——82.469.475.178.144.561.426.471.6
C—√—81.670.474.878.644.863.222.570.4
D——√79.871.174.578.444.450.218.580.2
E√—√81.570.574.778.644.854.725.168.5
F—√√81.070.674.778.245.056.521.172.2
G√√—81.868.874.078.744.967.529.859.6
H√√√82.172.075.679.345.159.927.767.2
Table 1 Performance comparison results of each improved modules in ablation experiments
模型BackbonePrecision/%Recall/%mAP50/%mAP50:95/%GFLOPsParams/106FPS (bs=1)
Faster R-CNNResnet5078.466.874.942.2208.041.416.5
TOODResnet5080.470.478.144.3199.032.020.6
GFL[17]Resnet5078.266.774.241.8206.032.319.1
RetinaNetResnet5080.468.477.144.0210.036.518.2
ATSS- DyHeadResnet5078.869.977.343.9110.038.919.5
DINOResnet5081.172.979.645.2279.047.68.8
YOLO v5-MCSPDarknet5380.269.276.844.264.025.180.4
YOLOv6-MCSPDarknet5380.566.374.642.5161.152.074.7
YOLOv8-MCSPDarknet5382.167.676.944.378.725.979.1
YOLOv11-MCSPDarknet5381.068.877.044.667.720.076.8
YOLOv12-M[18]CSPDarknet5382.468.177.844.859.519.665.4
DETRResnet5076.769.473.838.996.041.023.8
Deformable DETRResnet5079.969.477.643.8196.040.011.6
DEIM[19]Resnet5081.671.878.744.892.031.252.4
AMSP-UOD[20]VortexNet81.169.377.644.2136.043.043.9
RT-DETRResnet1879.869.877.244.157.019.974.6
RT-DETRResnet5082.268.977.844.2129.042.045.7
OursResnet1882.172.079.345.159.927.767.2
Table 2 Comparison results of different object detection algorithms on UPRC test set
模型BackbonePrecision/%Recall/%mAP50/%mAP50:95/%GFLOPsParams/106FPS (bs=1)
Faster R-CNNResnet5078.466.881.962.220841.416.5
TOODResnet5084.175.384.464.119932.020.6
GFLResnet5083.673.783.263.820632.319.1
RetinaNetResnet5085.475.484.764.021036.518.2
YOLO v5-MCSPDarknet5384.275.684.164.364.025.180.4
YOLOv8-MCSPDarknet5385.675.885.665.478.725.979.1
YOLOv11-MCSPDarknet5385.476.185.966.467.720.076.8
YOLOv12-MCSPDarknet5386.274.985.865.659.519.665.4
DETRResnet5076.769.482.060.79641.011.6
RT-DETRResnet1885.675.384.063.857.019.974.7
OursResnet1885.876.886.166.259.927.767.2
Table 3 Comparison results of different object detection algorithms on DUO test set
nmAP50/%mAP50:95/%GFLOPsParams/106FPS (bs=1)
176.243.155.618.676.7
277.443.958.522.572.1
378.144.561.426.471.6
478.244.664.330.369.3
577.844.267.234.265.4
Table 4 Comparison of results with different repetition numbers for C_SMAFB module on URPC test set
NeckmAP50/%mAP50:95/%GFLOPsParams/106FPS (bs=1)
CCFM77.244.157.019.974.7
GD78.144.659.923.458.1
Bi-FPN77.944.554.320.364.8
HS-FPN77.644.354.118.267.3
MFEM78.644.863.222.570.4
Table 5 Comparison results of applying different fusion networks on UPRC test set
比例mAP50/%mAP50:95/%GFLOPsParams/106FPS (bs=1)
1∶177.4±0.2843.5±0.1550.718.677.8
1∶278.3±0.2243.8±0.0954.318.372.6
2∶177.2±0.3143.7±0.1351.218.766.7
1∶478.2±0.2744.2±0.1250.418.675.6
1∶378.4±0.1744.4±0.0750.218.580.2
Table 6 Comparison of results with different ratios of EGAM on URPC test set
Fig.8 Example of a heatmap on URPC dataset
Fig.9 Heatmaps of different modules on URPC dataset
Fig.10 Example of detection results on URPC dataset
[1]   方侦波, 高向阳, 张锲石, 等. 基于改进YOLO11的水下目标检测模型. 电子测量技术, 2025, 48 (15): 159- 167.
Fang Zhenbo, Gao Xiangyang, Zhang Qieshi, et al. Underwater object detection model based on improved YOLOv11. Electronic Measurement Technology, 2025, 48 (15): 159- 167.
doi: 10.19651/j.cnki.emt.2517874
[2]   Zeng L, Sun B, Zhu D. Underwater target detection based on Faster R-CNN and adversarial occlusion network. Engineering Applications of Artificial Intelligence, 2021, 100, 104190.
doi: 10.1016/j.engappai.2021.104190
[3]   Song P, Li P, Dai L, et al. Boosting R-CNN: reweighting R-CNN samples by RPN’s error for underwater object detection. Neurocomputing, 2023, 530, 150- 164.
doi: 10.1016/j.neucom.2023.01.088
[4]   Yao Q, Wang Y, Yang Y. Underwater acoustic target recognition based on data augmentation and residual CNN. Electronics, 2023, 12 (5): 1206.
doi: 10.3390/electronics12051206
[5]   李彬, 李生林. 改进YOLOv11n的无人机小目标检测算法. 计算机工程与应用, 2025, 61 (7): 96- 104.
Li Bin, Li Shenglin. Improved YOLOv11n small object detection algorithm in UAV view. Computer Engineering and Applications, 2025, 61 (7): 96- 104.
doi: 10.3778/j.issn.1002-8331.2411-0072
[6]   Feng J, Jin T. CEH-YOLO: a composite enhanced YOLO-based model for underwater object detection. Ecological Informatics, 2024, 82, 102758.
doi: 10.1016/j.ecoinf.2024.102758
[7]   Carion N, Massa F, Synnaeve G, et al. End-to-end object detection with transformers [C]// European Conference on Computer Vision. Cham: Springer, 2020: 213–229.
[8]   Zhang H, Li F, Liu S, et al. DINO: DETR with improved DeNoising anchor boxes for end-to-end object detection [PP/OL]. V4. arXiv (2022-07-11) [ 2025-06-01]. https://doi.org/10.48550/arXiv.2203.03605.
[9]   Zhao Y, Lv W, Xu S, et al. DETRs beat YOLOs on real-time object detection [C]// Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. Seattle: IEEE, 2024: 16965–16974.
[10]   宋巍, 倪舟, 梁纪辰, 等. 结合目标特征增强与语义-位置路径聚合的水下目标检测. 计算机工程与应用, 2025, 61 (15): 93- 110.
Song Wei, Ni Zhou, Liang Jichen, et al. Underwater object detection combining target feature enhancement and semantic-location path aggregation. Computer Engineering and Applications, 2025, 61 (15): 93- 110.
doi: 10.3778/j.issn.1002-8331.2501-0158
[11]   覃学标, 黄冬梅, 宋巍, 等. 模糊水下图像多增强与输出混合的鱼类检测方法. 农业机械学报, 2022, 53 (7): 243- 249.
Qin Xuebiao, Huang Dongmei, Song Wei, et al. Fish detection method of multiple enhanced and outputs blend for blurred underwater images. Transactions of the Chinese Society for Agricultural Machinery, 2022, 53 (7): 243- 249.
doi: 10.6041/j.issn.1000-1298.2022.07.025
[12]   Wang C Y, Liao H Y M, Wu Y H, et al. CSPNet: A new backbone that can enhance learning capability of CNN [C]// 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops. Seattle: IEEE, 2020: 1571−1580.
[13]   Zheng F, Chen X, Liu W, et al. SMAFormer: synergistic multi-attention transformer for medical image segmentation [C]// 2024 IEEE International Conference on Bioinformatics and Biomedicine. Lisbon, Portugal: IEEE, 2024.
[14]   Wang C, He W, Nie Y, et al. Gold-YOLO: efficient object detector via gather-and-distribute mechanism [C]// Advances in Neural Information Processing Systems. New Orleans: NeurIPS, 2023: 51094–51112.
[15]   Kang M, Ting C M, Ting F F, et al. ASF-YOLO: a novel YOLO model with attentional scale sequence fusion for cell instance segmentation. Image and Vision Computing, 2024, 147, 105057.
doi: 10.1016/j.imavis.2024.105057
[16]   Ma N, Zhang X, Zheng H T, et al. ShuffleNet V2: practical guidelines for efficient CNN architecture design [C]// Computer Vision – ECCV 2018. Lecture Notes in Computer Science. Cham: Springer, 2018: 122-138.
[17]   Hu Y, Zhou Y, Xiao J, et al. GFL: a decentralized federated learning framework based on blockchain [PP/OL]. V3. arXiv (2021-04-13)[2025-06-01]. https://doi.org/10.48550/arXiv.2010.10996.
[18]   Tian Y, Ye Q, Doermann D. YOLOv12: attention-centric real-time object detectors [PP/OL]. arXiv (2025-02-18)[2025-02-18]. https://doi.org/10.48550/arXiv.2502.12524.
[19]   Huang S H, Lu Z C, Cun X D, et al. DEIM: DETR with improved matching for fast convergence [C]// Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2025: 15162-15171.
[1] Aihua MAO,Siyu CHEN. 3D visual question answering guided by knowledge graph[J]. Journal of ZheJiang University (Engineering Science), 2026, 60(8): 1801-1808.
[2] Shaojiang DONG,Tao XIAO,Zhenming LV,Haoran XIA,Jiayuan LUO,Shizheng SUN,Xia ZHANG,Chao LIU. Small organism detection in underwater color-cast environments based on improved RT-DETR[J]. Journal of ZheJiang University (Engineering Science), 2026, 60(7): 1404-1415.
[3] Baijing WU,Guanghui YAN,Long MA,Wenxin CHENG,Yaning HUANG. Small-target water-floating garbage detection based on edge perception and cross-scale feature enhancement[J]. Journal of ZheJiang University (Engineering Science), 2026, 60(7): 1452-1463.
[4] Guoyan LI,Wei YU,Yupeng MEI,Minghui ZHANG,Xinqiang WANG. Building extraction from remote sensing images with global-local feature fusion[J]. Journal of ZheJiang University (Engineering Science), 2026, 60(5): 1100-1108.
[5] Yaolian SONG,Chi PENG,Jingmin TANG,Xuanzhi ZHAO,Guicai YU. Small object detection algorithm for optical remote sensing images based on fusion attention mechanism[J]. Journal of ZheJiang University (Engineering Science), 2026, 60(4): 763-771.
[6] Guoyan LI,Penghui LI,Rong LIU,Yupeng MEI,Minghui ZHANG. Remote sensing road extraction by fusing multi-scale resolution and strip feature[J]. Journal of ZheJiang University (Engineering Science), 2026, 60(3): 585-593.
[7] Hui LIU,Fangxiu WANG,Yi WANG,Zibo HUANG,Chen SU. Lightweight improved RT-DETR algorithm for grape leaf disease detection[J]. Journal of ZheJiang University (Engineering Science), 2026, 60(3): 604-613.
[8] Yuxuan LIU,Enqi SU,Peiguang JING,Hongbo SUN,Yuting SU. Anomaly detection algorithm based on multi-task contrastive constraints and controllable anomaly synthesis[J]. Journal of ZheJiang University (Engineering Science), 2026, 60(11): 2442-2452.
[9] Tengfei HUANG,Jiuyuan HUO,Fang CAO,Zeyu WU,Chuile KONG. Framework for railway defect detection oriented to small and blurry object[J]. Journal of ZheJiang University (Engineering Science), 2026, 60(11): 2453-2461.
[10] Guimei GU,Xinlong ZHANG,Kejin ZHAO. Small-target fault detection algorithm for dropper bolts in overhead catenary systems based on improved RT-DETR[J]. Journal of ZheJiang University (Engineering Science), 2026, 60(11): 2418-2430.
[11] Chunjuan LIU,Yihang BAO,Xiaosuo WU,Haowen YAN,Tieshuan ZHU,Haoran ZHAO. PCB defect detection algorithm based on detail enhancement and cross-scale attention fusion[J]. Journal of ZheJiang University (Engineering Science), 2026, 60(11): 2431-2441.
[12] Jiangang ZHANG,Xiao LI,Dandan FENG. Dynamic kernel perception for pavement distress detection in UAV inspection[J]. Journal of ZheJiang University (Engineering Science), 2026, 60(10): 2141-2152.
[13] Wenhu HUANG,Xing ZHAO,Liang XIE,Haoran LIANG,Ronghua LIANG. Contrastive learning-based sound source localization-guided audio-visual segmentation model[J]. Journal of ZheJiang University (Engineering Science), 2025, 59(9): 1803-1813.
[14] Gengliang LIANG,Shuguang HAN. Denim fabric defect detection algorithm based on improved RT-DETR[J]. Journal of ZheJiang University (Engineering Science), 2025, 59(6): 1169-1178.
[15] Dengfeng LIU,Wenjing GUO,Shihai CHEN. Content-guided attention-based lane detection network[J]. Journal of ZheJiang University (Engineering Science), 2025, 59(3): 451-459.