Multi-granularity context network for SAR ship detection

Li Ying, Zhifei Zhang, Duoqian Miao, Cairong ZhaoJournal of Image and Graphics 2025

Abstract

Synthetic Aperture Radar (SAR) is an active microwave sensor capable of high-resolution imaging regardless of weather or light conditions, making it vital for maritime ship detection. However, SAR imagery presents significant challenges, including complex background clutter and extreme diversity in ship sizes. This paper introduces a Multi-granularity Context Network designed to address these issues. By implementing a Multi-granularity Channel Attention (MCA) module and a Multi-granularity Atrous Adaptive Spatial Feature Fusion (MAASFF) module, the network effectively suppresses noise and captures multi-scale features. Evaluations on the SAR-Ship-Dataset and SSDD benchmarks demonstrate superior performance, achieving mean Average Precision (mAP) scores of 96.1% and 97.0%, respectively.

Introduction

Detecting ships in SAR images is a critical task for maritime security and traffic management. Unlike optical imagery, SAR data is characterized by "speckle noise" and complex backscatter from waves and coastal structures. Furthermore, ships can range from small fishing vessels to massive tankers, requiring a detector that is robust across multiple scales. Existing methods often struggle to balance the suppression of background interference with the preservation of fine-grained details for small target detection.

Methodology

The proposed architecture builds upon the YOLOv5s framework, optimized for the unique characteristics of SAR data through two primary modules:

Multi-granularity Channel Attention (MCA)

To mitigate the impact of complex backgrounds, the MCA module weights context information at different granularities. By combining global and local channel attention, the network can focus on salient ship features while ignoring non-target clutter. To maintain computational efficiency, the module utilizes pointwise convolutions instead of standard heavy convolutions.

Multi-granularity Atrous Adaptive Spatial Feature Fusion (MAASFF)

To handle the multi-scale challenge, the MAASFF module employs atrous (dilated) convolutions with varying expansion rates (1, 2, and 3). This approach expands the receptive field without losing spatial resolution. An adaptive fusion mechanism then dynamically weights these features, enhancing the representation capability of the feature pyramid for ships of all sizes.

Architectural components of the proposed network, including specialized convolution and residual units.

Experimental Results

The model was rigorously tested on two major datasets: the SAR-Ship-Dataset (43,819 chips) and the SSDD (1,160 images).

Performance Comparison

The Multi-granularity Context Network outperformed nine state-of-the-art methods, including YOLOv4, CenterNet++, and Faster R-CNN. On the SSDD, it achieved a 97.0% mAP, representing a 1.6% improvement over the baseline YOLOv5s and an 8.7% lead over Faster R-CNN. Despite the added complexity, the model maintains a high inference speed (approx. 4.4ms to 8.5ms per image), making it viable for real-time deployment.

Detection Visualization

Visual analysis confirms the model's effectiveness in identifying targets amidst noise and across varying scales.

Detection results demonstrating the model's ability to identify multiple ships of varying sizes in SAR imagery.

Conclusion

This research presents a robust solution for SAR ship detection by leveraging multi-granularity context. The integration of MCA and MAASFF modules allows the network to suppress complex background interference and accurately detect ships of diverse sizes. Future work will focus on adapting these modules for even more challenging near-shore environments and exploring their utility in broader remote sensing applications.

Summary updated

BibTeX
@article{ying2025multi,
  author = {Li Ying and Zhifei Zhang and Duoqian Miao and Cairong Zhao},
  title = {{Multi-granularity context network for SAR ship detection}},
  journal = {Journal of Image and Graphics},
  year = {2025},
  doi = {10.11834/jig.230838},
}
Figure