Abstract:
To address the problems of limited target scale, uneven sample distribution, and high missed detection and false detection rates in small target detection on water, an improved algorithm based on real-time detection Transformer (RT-DETR), named CGMS-DETR, is proposed. First, a BiConv module is introduced into the backbone network, in which parallel convolution is adopted for multi-scale feature extraction, enhancing the feature extraction capability while reducing the number of model parameters and computational complexity. Second, a multi-scale feature enhanced attention (MSFA) module is constructed. By using a convolutional prior mechanism to expand the multi-scale receptive field, the modeling capability for small targets is improved, and hybrid attention is employed to reduce computational overhead. Finally, a context-guided feature fusion (CGFM) module is designed to improve the traditional pyramid feature fusion method, enrich semantic information, and thereby improve the accuracy of small target detection. Experimental results show that on the Flow-Img dataset, the mean average precision (mAP@0.5) of CGMS-DETR reaches 92.6%, which is 3.2% higher than that of the baseline model, while the number of parameters and computational cost are reduced by approximately 18.6% and 16.5%, respectively. On the VisDrone2019 dataset, the mAP@0.5 reaches 48.2%, which is 1.4% higher than that of the baseline model. The proposed method demonstrates good effectiveness and real-time performance in small target detection tasks.