M 2 S-DETR: A Mixed Receptive Field and Multiposition Encoding for Scale-Sensitive SAR Ship Detection With Transformer

Pengfei Guo, Heng-Chao Li, Nanqing Liu, Sen Lei, Xiongfei Geng, Jie PanIEEE Sensors Journal 2025

Abstract

Ship detection in synthetic aperture radar (SAR) images has garnered widespread attention due to its significant applications. However, few researchers have focused on the challenges posed by the unique limitations of SAR imaging mechanisms. These challenges include the discontinuity and incompleteness of ship instances caused by internal hollowing or fracturing, the limitation of conventional IoU metric in evaluating the similarity between two boxes, and the sole reliance of self-attention mechanism on absolute position information. To address these challenges, we propose the mixed receptive field and multiposition encoding (MPE) for scale-sensitive SAR ship detection with transformer (M2S-DETR), which consists of four key components: the mixed receptive field module (MRFM), MPE, multiscale feature aggregation unit (MFAU), and scale-sensitive IoU (S2-IoU). The MRFM, based on dilated convolution, complements missing ship structure information and allows for a larger receptive field. To more accurately capture position relationships within the self-attention mechanism, we incorporate learnable relative position encoding in the MPE, which reveals more nuanced relative position information to supplement absolute position encoding. In the multiscale feature extraction and fusion phase, the MFAU utilizes a dual-path top-down and bottom-up strategy to better represent features across all scales. Additionally, we introduce S2-IoU into the classification branch to mitigate the phenomenon of inconsistent prediction pairs, thereby enabling the transformer decoder to perform high-quality initial query selection. Our method surpasses several convolutional neural network (CNN)-based and transformer-based detectors on the commonly used benchmark datasets SSDD and HRSID, respectively. Code is available at: <uri xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">https://github.com/douling843/M2S-DETR</uri>.
BibTeX
@article{guo2025m,
  author = {Pengfei Guo and Heng-Chao Li and Nanqing Liu and Sen Lei and Xiongfei Geng and Jie Pan},
  title = {{M <sup>2</sup> S-DETR: A Mixed Receptive Field and Multiposition Encoding for Scale-Sensitive SAR Ship Detection With Transformer}},
  journal = {IEEE Sensors Journal},
  year = {2025},
  doi = {10.1109/jsen.2025.3540901},
}

Loading related content...

Figure