Skip to Content
Remote SensingRemote Sensing
  • Article
  • Open Access

24 November 2026

35 Pages

Robust Ship Detection in Complex SAR Scenes via Multi-Stage Enhancement and Gated Fusion

,
,
,
and
1
College of Information Engineering, Inner Mongolia University of Technology, Hohhot 010051, China
2
Inner Mongolia Key Laboratory of Radar Technology and Application, Hohhot 010051, China
*
Author to whom correspondence should be addressed.
Remote Sens.2026, 18(23), 4043;https://doi.org/10.3390/rs18234043 
(registering DOI)
This article belongs to the Section AI Remote Sensing

Highlights

What are the main findings?
•
MEGFNet combines stage-specific feature enhancement with asymmetric gated fusion, achieving an average mAP50 of 96.81% across five clean and degraded SSDD test conditions.
•
Compared with YOLO11n, MEGFNet reduces small-ship misses by 46.88% on the clean SSDD test set and exhibits lower performance variability across ten training runs with different random seeds.
What are the implications of the main findings?
•
Preserving local ship details and selectively integrating cross-scale information offer an effective design strategy for ship detection in complex and degraded SAR imagery.
•
MEGFNet offers a balance between detection accuracy and model complexity, supporting further development of SAR maritime monitoring.

Abstract

Synthetic Aperture Radar (SAR) has significant application value in the surveillance of ships at sea due to its all-weather and all-time imaging capabilities. However, SAR images are often disturbed by thermal noise and blurring, which weakens the target edges and leads to unstable local scattering responses, resulting in high missed detection rates, high false alarm rates, and low detection rates. Achieving high-precision and robust detection has long been a challenge. This paper proposes a multi-stage enhancement and gated fusion network for thermal noise and blur interference in SAR images, named MEGFNet. The proposed network adopts a multi-stage pre-enhancement backbone (MPEB), in which three submodules are designed for the P3, P4, and P5 feature levels: the Multi-scale Detail Refinement Module (MDR), the Directional Global–Local Context Aggregation Module (DGCA), and the Semantic Stabilization Gating Module (SSG), respectively. These modules enhance the stability of shallow-level details, middle-level structures, and high-level semantic representations. In the neck stage, a bidirectional gated fusion neck (BGFN) is introduced. Specifically, the top-down pathway employs selective gated fusion (SGF) to suppress redundant noise, while the bottom-up pathway adopts residual soft-gated fusion (RSF) to enhance effective details through a weak gating mechanism while preserving positional information. Experimental results on four degraded SSDD test sets show that the proposed method achieves an average mAP50, Precision, Recall, and F1 score of 96.54%, 95.55%, 92.46%, and 93.97%, respectively, with only 3.49 million parameters and a computational complexity of 3.79 GFLOPs. These results demonstrate that the proposed method effectively reduces missed detections under thermal noise and blur interference while maintaining high detection accuracy, thereby improving the robustness of SAR ship target detection.

1. Introduction

Synthetic Aperture Radar (SAR) is an active microwave remote sensing technique capable of providing high-resolution observations during both day and night and under a wide range of weather conditions. Compared with optical remote sensing systems, SAR is less affected by illumination and cloud cover, making it particularly suitable for continuous maritime surveillance. Consequently, SAR ship detection plays an important role in maritime traffic monitoring, marine resource management, emergency rescue, and maritime security [1,2,3]. With the increasing availability of high-resolution spaceborne SAR imagery, automatic ship detection has attracted considerable attention, while practical applications also place increasing demands on detection accuracy, robustness, and computational efficiency.
Despite substantial progress, ship detection in complex SAR scenes remains challenging. Owing to the coherent imaging mechanism of SAR, ship signatures may be affected by speckle-like fluctuations, background clutter, and variations in scattering responses. In nearshore and harbor scenes, coastlines, buildings, docks, and other strong scatterers can produce responses similar to ships and thus increase false alarms. Small or weak ships, meanwhile, usually occupy only a limited number of pixels and contain insufficient discriminative information, increasing the risk of missed detection. Large scale variations, dense target distributions, weak target-to-background contrast, and indistinct ship contours further complicate feature extraction and localization [4,5,6,7,8,9,10]. Moreover, image degradation such as noise and blur can weaken ship boundaries, local scattering structures, and target–background separability, making stable detection more difficult.
Before the widespread adoption of deep learning, SAR ship detection mainly relied on traditional methods such as statistical modeling and Constant False Alarm Rate (CFAR) detection. CFAR-based approaches estimate local background statistics and determine adaptive thresholds to maintain a predefined false-alarm probability. Although effective in relatively homogeneous backgrounds, their performance may deteriorate in heterogeneous scenes containing coastline clutter, strong scattering structures, or densely distributed targets. In addition, traditional methods usually depend on handcrafted features and prior assumptions, which limits their adaptability to diverse SAR scenes [1,2]. Deep-learning-based detectors overcome some of these limitations by learning hierarchical feature representations directly from data and have therefore become the dominant paradigm for SAR ship detection.
In addition to conventional statistical detection and data-driven approaches, recent studies have explored the incorporation of physically interpretable scattering characteristics into radar target analysis. Li and Chen proposed the General Polarimetric Correlation Pattern (GPCP), which characterizes joint-domain scattering mechanisms through polarimetric, temporal, frequency, and spatial information, and demonstrated the potential of physically meaningful polarimetric features for enhancing ship-to-clutter contrast [11]. Furthermore, Li et al. developed the Scattering Mechanism Embedded Network (SMEN) for polarimetric radar corner reflector array identification, integrating scattering mechanism knowledge into deep learning through physics-aware feature extraction and multi-level fusion [12]. These studies highlight the potential of combining physical scattering characteristics with learned representations to improve radar target characterization and generalization. However, such approaches typically require additional polarimetric or scattering-related information. For SAR ship detection based on image-domain inputs, enhancing discriminative feature representations under complex backgrounds and image degradation remains an important research direction.
Among deep-learning-based approaches, one-stage detectors have been widely investigated because of their favorable balance between detection accuracy and computational efficiency. In particular, YOLO-based architectures have been increasingly applied to SAR ship detection through modifications to the backbone, neck, attention mechanisms, feature pyramids, and detection heads. Representative studies have improved multi-scale representation, lightweight feature extraction, and small-ship detection using adaptive feature fusion, receptive-field enhancement, feature transformers, and efficient network structures [10,13,14,15]. These studies demonstrate that strengthening ship-related features and improving multi-scale information interaction are effective for complex SAR scenes.
One important research direction is feature enhancement under complex backgrounds. FASC-Net employs lightweight feature extraction and multi-scale representation for complex SAR scenes [2], while MSSDNet introduces multi-scale feature extraction and adaptive fusion coefficients to improve scale-sensitive representation [4]. A robust one-stage detector incorporates coordinate attention and receptive-field enhancement to alleviate complex-background interference and scale variation [5]. Other studies enhance ship contours, refine multi-level features, or introduce attention mechanisms to suppress irrelevant background responses and preserve small-target information [6,7,8,9,10]. More recent methods further exploit adaptive spatial aggregation, prior feature enhancement, and dynamic feature processing to improve ship representation [16,17,18,19]. Nevertheless, many of these approaches mainly improve the overall representational capability of the network, while the distinct roles of shallow, intermediate, and deep features are not always explicitly considered.
Recent studies have further investigated SAR ship detection from the perspectives of complex-background feature enhancement, practical maritime scenes, and dynamic multi-scale fusion. Ba et al. proposed a feature-enhanced detection method that combines target edge enhancement with dynamic hierarchical feature extraction to address background interference and ship-scale variations [20]. Saleh et al. developed an attention-guided CNN-based detector for high-resolution COSMO-SkyMed SAR imagery of the Suez Canal, incorporating self-learning augmented segmentation and attention-guided feature refinement to improve ship detection in complex coastal scenes [21]. Cao and Sui proposed DRGD-YOLO, which combines dynamic feature extraction, a reconstructed multi-scale feature fusion network, and a dynamic detection head to improve SAR ship detection performance under complex maritime conditions [22]. These studies demonstrate the importance of discriminative feature extraction, contextual representation, and adaptive multi-scale fusion for reliable SAR ship detection.
Another important direction is multi-scale and cross-level feature fusion. Since ships in SAR imagery exhibit considerable scale variation, feature pyramids are commonly employed to combine fine spatial information from shallow layers with semantic information from deeper layers. CSEF-Net enhances hierarchical cross-scale fusion to integrate lower- and higher-level representations [23]. The multi-level feature-refinement framework of Zhou et al. improves adjacent-scale information interaction while alleviating semantic loss [24]. SAFN introduces stepwise attention and bidirectional fusion to selectively emphasize relevant features [25], whereas BFEA and HFFANet further employ attention-based multi-level fusion to balance features across different hierarchy levels [26,27]. Recent lightweight models such as LPFFNet, AC-YOLO, and other multi-level fusion networks further demonstrate the importance of adaptive feature interaction for SAR ship detection [14,18,27,28,29].
From an operational perspective, SAR ship detection requires reliable identification of ships with varying sizes and scattering characteristics in complex maritime environments. However, real-world SAR imagery is often affected by coastal clutter, strong background scattering, and image degradation such as noise and blur, placing higher demands on feature extraction, cross-scale information fusion, and detection stability. Although existing studies have made substantial progress in feature enhancement and multi-scale object detection, maintaining stable feature representations and effective cross-scale information interactions under complex backgrounds and image degradation remains challenging.
Specifically, two issues remain worthy of further investigation. First, hierarchical SAR features have different representation characteristics and may respond differently to image degradation. Shallow features retain abundant spatial details and local scattering information but are sensitive to noise and blur; intermediate features describe target structures and contextual relationships and may lose useful local responses when target boundaries are weakened; deep features provide stronger semantic abstraction but may produce unstable responses when ship signatures are weak or heavily contaminated by background interference. Therefore, applying similar enhancement operations across different feature stages may not fully exploit their complementary characteristics.
Second, conventional cross-scale fusion may propagate unreliable information together with useful target responses. Direct concatenation or element-wise addition generally combines features without explicitly evaluating their relative reliability. During repeated top-down and bottom-up propagation, noise-contaminated or redundant responses may therefore accumulate across feature levels. Although attention-based and weighted fusion strategies partially alleviate this problem, jointly performing stage-specific hierarchical enhancement and selective bidirectional feature fusion remains insufficiently explored, especially for robust SAR ship detection under complex backgrounds and image degradation. Recent adaptive and attention-guided fusion methods also indicate the importance of selectively regulating cross-level feature interaction rather than simply aggregating all input features.
To address these issues, this paper proposes MEGFNet, a Multi-Stage Enhancement and Gated Fusion Network for Robust SAR Ship Detection, based on YOLO11. Instead of applying a homogeneous enhancement strategy to all feature levels, MEGFNet performs differentiated processing at multiple stages of the backbone. Specifically, the MDR module enhances shallow features to preserve fine-grained details and local scattering responses; the DGCA module strengthens intermediate structural representations and local multi-branch information; and the SSG module selectively regulates high-level semantic responses. These modules are designed to provide complementary enhancement according to the characteristics of different hierarchical stages rather than repeatedly applying the same operation.
Furthermore, a bidirectional gated feature fusion neck is introduced to improve cross-scale interaction. In the top-down pathway, SGF employs relatively strong gating to regulate the contribution of high-level semantic information when it is fused with finer-resolution features. In the bottom-up pathway, RSF adopts residual soft gating to adaptively adjust newly fused information while retaining useful original representations. Through this asymmetric gated-fusion strategy, MEGFNet aims to reduce the indiscriminate propagation of unreliable responses while preserving complementary spatial and semantic information.
To comprehensively evaluate the proposed method, experiments are conducted on SSDD under both the original test conditions and controlled image-degradation scenarios. In addition to comparative and ablation experiments, noise, blur, and mixed degradation are introduced to investigate model robustness to image-quality disturbances. Furthermore, the model trained on SSDD is directly evaluated on the HRSID test domain without target-domain fine-tuning to assess cross-dataset generalization under different SAR data distributions. Feature-response visualization is also employed to qualitatively analyze the differences between MEGFNet and the YOLO11 baseline. The main contributions of this work are summarized as follows:
  • A multi-stage hierarchical feature enhancement strategy is proposed for robust SAR ship detection. Differentiated enhancement operations are applied to shallow, intermediate, and deep features according to their representation characteristics, improving the preservation of local details, structural information, and semantic responses under complex backgrounds and image degradation.
  • A bidirectional gated feature fusion mechanism is developed to selectively regulate cross-scale information propagation. Strong gated fusion in the top-down pathway and residual soft-gated fusion in the bottom-up pathway adaptively control the contribution of heterogeneous features, reducing the propagation of unreliable responses while retaining complementary information across scales.
  • A comprehensive robustness-oriented evaluation is conducted. In addition to conventional comparative and ablation experiments on SSDD, noise, blur, and mixed-degradation experiments, feature-response visualization, and direct SSDD-to-HRSID cross-dataset evaluation are employed to assess the detection accuracy, robustness, and generalization capability of MEGFNet.

2. Materials and Methods

2.1. Overview of MEGFNet

Affected by factors such as imaging mechanism, sea clutter, thermal noise and signal attenuation, ship targets in SAR images usually have problems such as blurred edges, missing local scattering structures, reduced contrast between the target and the background, and unstable high-level semantic responses [30]. Traditional multi-scale detection networks usually directly send the features of different scales output by the backbone network to the neck network for fusion, lacking differentiated processing for the degradation characteristics of features at different levels. Meanwhile, the common channel splicing operation cannot determine the validity of different input features and is prone to propagate and accumulate noise responses during the fusion process [31,32,33].
For this purpose, this study proposes a multi-stage enhancement and gated fusion network for SAR ship detection—MEGFNet. The overall architecture of MEGFNet is illustrated in Figure 1. The proposed network consists of two main components: the Multi-Stage Pre-Enhancement Backbone (MPEB) and the Bidirectional Gated Fusion Neck (BGFN). MPEB aims to enhance feature representations at different backbone stages before multi-scale feature fusion, while BGFN adopts an asymmetric bidirectional gated fusion strategy to facilitate the selective transmission of semantic and detailed information.
Figure 1. MEGFNet network architecture diagram.
Given an input SAR image of size 640 × 640, MPEB consists of five sequential backbone stages, denoted as S1–S5, with output strides of 2, 4, 8, 16, and 32, respectively. To avoid ambiguity in stage notation, S1–S5 represent the five backbone stages, whereas P3, P4, and P5 denote the feature levels corresponding to strides of 8, 16, and 32, respectively. Specifically, MDR, DGCA, and SSG are introduced into S3, S4, and S5 to enhance shallow-level details, middle-level structural representations, and high-level semantic responses, respectively.
The enhanced features are denoted as P 3 e , P 4 e , and P 5 e , which are subsequently fed into BGFN for multi-scale feature interaction. In BGFN, the top-down pathway employs the Selective Gated Fusion (SGF) module to selectively propagate high-level semantic information toward shallow layers, whereas the bottom-up pathway adopts the Residual Soft-Gated Fusion (RSF) module to preserve and reinforce detailed information during feature transmission.
Finally, the three output feature maps are fed into the detection module at different scales. For a 640 × 640 input image, their spatial resolutions are 80 × 80, 40 × 40, and 20 × 20, respectively. These resolutions represent feature-map grid sizes rather than independent output images. The predictions from the three detection scales are decoded and aggregated into a unified set of ship detections in the input-image coordinate system.
The corresponding relationships between different stages and the network layer are shown in Table 1.
Table 1. Correspondence between different stages and network layers.

2.2. MPEB: Multi-Stage Pre-Enhancement Backbone Network

The design objective of the MPEB backbone is to enhance features at different scales before they are fed into the neck for multi-scale feature fusion. The motivation behind this design is that the neck is responsible for multi-scale information interaction; however, if the single-scale features entering the neck have already been affected by background interference, the subsequent fusion process may further propagate ineffective or erroneous responses. Therefore, in this study, key-stage features are enhanced in advance during backbone feature extraction, enabling P3, P4, and P5 to achieve stronger detail representation, structural discrimination, and semantic stability, respectively.
As illustrated in Figure 1, the MPEB backbone consists of five sequential stages, denoted as S1–S5. The output strides of these stages are 2, 4, 8, 16, and 32, respectively. Among them, the S3, S4, and S5 stages are equipped with MDR, DGCA, and SSG modules, respectively. Let X3, X4, and X5 denote the backbone feature maps before enhancement at the corresponding stages. The enhanced features are formulated as:
P 3 e = MDR ( X 3 ) ,
P 4 e = DGCA ( X 4 ) ,
P 5 e = SSG ( X 5 ) ,
Here, P 3 e , P 4 e , and P 5 e denote the enhanced feature maps at strides of 8, 16, and 32, respectively. For an input image of size 640 × 640, their corresponding spatial resolutions are 80 × 80, 40 × 40, and 20 × 20. These enhanced features provide the inputs for subsequent feature fusion in BGFN.
Convolutional features at different depths exhibit significantly different representation characteristics. Shallow features have high spatial resolution and contain abundant edge and scattering details, but they are easily disturbed by noise. Middle-level features are capable of describing ship contours and directional structures, but these representations may be weakened by blurring. Deep features possess strong semantic representation capabilities but are prone to abnormal semantic activation under low-signal-to-noise-ratio conditions.
Therefore, MPEB adopts a differentiated enhancement strategy according to the characteristics of different feature levels. MDR focuses on preserving and enhancing local details at S3, DGCA emphasizes structural discrimination and global-local context aggregation at S4, and SSG stabilizes high-level semantic responses at S5. Together, these three modules constitute the multi-stage pre-enhancement mechanism of MPEB.

2.2.1. MDR: Multi-Scale Detail Refinement Module for Shallow-Level Ship Features

MDR is a detail enhancement module applied to the high-resolution P3/8 feature layer. The P3 layer is critical for small-object detection because small ships may occupy only a few pixels in deep feature maps. If shallow edges and textures are degraded by blurring or noise, it becomes difficult for the detection head to recover effective localization information. Therefore, the MDR module is designed to emphasize lightweight detail enhancement and weak-edge preservation.
As shown in Figure 2, the MDR module first employs a 1 × 1 pointwise convolution to project the input feature into an intermediate representation Z. Then, three parallel branches are constructed. The first branch is an identity mapping branch, which directly preserves the original information. The second branch is a 3 × 3 depthwise convolution branch, which enhances local edges and fine-grained textures. The third branch is a 5 × 5 depthwise convolution branch, which provides a larger receptive field to capture weak edges and blurred contours within a wider neighborhood. The outputs of the three branches are concatenated along the channel dimension and then recalibrated by ECA channel attention. After that, a 1 × 1 convolution is used to fuse the concatenated features back to the original number of channels. Finally, the module adopts a learnable residual coefficient to add the enhanced features to the input, preventing the enhancement branches from disrupting the original feature distribution at the early stage of training. The output can be formulated as:
F MDR = X + γ ⋅ Conv 1 × 1 ECA Concat Z , DWConv 3 × 3 ( Z ) , DWConv 5 × 5 ( Z ) ,
Z = Conv 1 × 1 ( X ) ,
where X denotes the input feature, Z denotes the intermediate feature obtained after the 1 × 1 convolution, and γ is a learnable scaling coefficient. Its initial value is set to 0.1, and it is optimized during network training. The main functions of MDR include preserving the original spatial details of P3, enhancing ship edges under blurred conditions, suppressing ineffective channel responses through ECA, and improving the quality of shallow features with low computational cost.
Figure 2. Structure of the MDR module.

2.2.2. DGCA: Directional Global–Local Context Aggregation Module for Mid-Level Structural Features

The DGCA module is applied to the middle-level P4/16 feature layer. The P4 layer is a crucial intermediate layer for SAR ship detection, as it preserves a certain degree of spatial resolution while providing relatively strong semantic representation. It plays an important role in describing the elongated contours and directional structures of ships, as well as the relationship between targets and nearby background regions. Since ship targets usually exhibit slender outlines, directional scattering characteristics, and local bright-spot structures, while sea clutter may generate similar textures, the P4 layer requires stronger structural discrimination capability.
To balance feature representation capability and computational efficiency, the DGCA module adopts a partial channel-splitting structure, where the input feature is divided into four branches along the channel dimension. As shown in Figure 3, the first branch directly preserves the original information, preventing information loss caused by multi-branch transformations. The second branch is the EACM edge-aware asymmetric convolution branch [34], which models horizontal and vertical structural patterns through 3 × 1 and 1 × 3 asymmetric convolutions. It further incorporates dilated asymmetric convolutions to enlarge the receptive field, thereby enhancing ship contours, strip-like structures, and directional textures. The third branch is the GLCA global–local channel attention branch [35], which is used to model global–local channel relationships. In this branch, some of the channels are used for global channel dependency modeling, while the remaining channels are used for local channel attention, enabling both global semantic selection and local response preservation. The fourth branch is the MLE (Multi-branch Local Enhancement) branch. As shown in Figure 4, inspired by the bottleneck design philosophy of ResNet and the multi-branch representation strategy [36], the MLE branch adopts a lightweight residual architecture consisting of pointwise projection, channel splitting, parallel depthwise convolutions, and feature fusion. The projected features are divided into two channel subsets, which are independently processed by 3 × 3 depthwise convolutions to extract local responses from different channel subspaces. Subsequently, the two branch features are concatenated and integrated through pointwise convolution, while a residual connection is employed to preserve the original feature information. In this manner, MLE complements the local structural representation of middle-level features with low computational overhead while enabling efficient multi-scale feature extraction. The advantage of MLE lies in reducing the computational cost of each branch through channel splitting while introducing diverse local representations through multiple depthwise convolution branches. Compared with conventional convolution-based enhancement, this structure provides greater computational efficiency and richer local feature diversity.
Figure 3. Structure of the DGCA module.
Figure 4. Structure of the MLE.
After the outputs of the four branches are concatenated, a 1 × 1 convolution is applied for feature fusion, and the fused feature is added to the input through learnable residual scaling:
F DGCA = X + γ ⋅ Con v 1 × 1 Concat F identity , F EACM , F GLCA , F MLE
where X denotes the input feature, and Fidentity, FEACM, FGLCA, and FMLE represent the outputs of the four branches. γ is a learnable residual scaling coefficient initialized to 0.1 and optimized during training.
The design philosophy of DGCA can be summarized as “preserving original information, enhancing directional structures, selecting effective channels, and complementing multi-scale representations.”

2.2.3. SSG: Semantic Stabilization Gating Module for High-Level Semantic Features

The SSG module is applied to the high-level semantic feature layer P5/32. The P5 layer has strong semantic representation capability but relatively low spatial resolution. In SAR images, high-level semantic features are easily affected by background noise and low contrast, leading to unstable semantic responses or false activation in background regions. Therefore, the SSG module does not aim to enhance details; instead, it focuses on semantic gating and response stabilization. The structure of SSG is shown in Figure 5.
Figure 5. Structure of the SSG module.
SSG first employs a 1 × 1 convolution to align the channels of the input feature, producing the feature Z. Then, two paths are constructed: a global context path and a local semantic path. The global context path extracts a global channel descriptor through adaptive average pooling and then generates global channel weights through two 1 × 1 convolutions and a SiLU activation function. The local semantic path extracts local semantic context through a 3 × 3 convolution and then generates spatially related local semantic weights through a 1 × 1 convolution. The outputs of the two paths are added together and passed through a Sigmoid function to obtain the semantic gate:
G = σ MLP GAP ( Z ) + Conv 1 × 1 Conv 3 × 3 ( Z ) ,
The final output is formulated as:
F SSG = X + γ ⋅ ( Z ⊙ G ) .
where ⊙ denotes element-wise multiplication. X denotes the original input feature, Z denotes the channel-aligned feature, and G represents the generated semantic gate. γ is a learnable residual scaling coefficient initialized to 0.1 and optimized during training.
By integrating global channel information and local semantic information, SSG adaptively recalibrates the P5 features. Its main functions are to enhance reliable semantic responses, suppress abnormal activations caused by noise, and stabilize the semantic information transmitted from high-level features to the neck network.

2.3. BGFN: Bidirectional Gated Fusion Neck Network

After pre-enhancement by the backbone network, P 3 e , P 4 e and P 5 e contain detail, structural, and semantic information, respectively. If ordinary concatenation is directly adopted for feature fusion, different input features will be equally retained, and noise responses may also propagate along the multi-scale information flow.
To address this issue, this paper constructs an asymmetric bidirectional gated fusion neck network. In the top-down path, the SGF selective gated fusion module is adopted to perform selective fusion, while in the bottom-up path, the RSF residual soft fusion module is used to perform residual soft fusion. The two gating methods share the same weight generation structure but adopt different feature modulation strategies.
For clarity, Up(⋅) denotes nearest-neighbor upsampling with a scale factor of 2, whereas Down(⋅) denotes convolutional downsampling implemented using a 3 × 3 convolution with a stride of 2. The output channels of the downsampling convolution are adjusted according to the corresponding fusion stage.
The top-down path is formulated as:
T 4 = C 3 k 2 SGF Up ( P 5 e ) , P 4 e ,
T 3 = C 3 k 2 SGF Up ( T 4 ) , P 3 e ,
The bottom-up path is formulated as:
B 4 = C 3 k 2 RSF Down ( T 3 ) , T 4 ,
B 5 = C 3 k 2 RSF Down ( B 4 ) , P 5 e .
Here, T4 and T3 denote the intermediate features generated by the first and second fusion operations in the top-down pathway, respectively. B4 and B5 represent the intermediate features generated by the first and second fusion operations in the bottom-up pathway, respectively. Notably, T4 is used not only in the second top-down fusion operation but also as an input to the first RSF module in the bottom-up pathway. This connection preserves the intermediate semantic information generated by the top-down pathway during subsequent bottom-up feature fusion.
Finally, T3, B4, and B5 are fed into the three detection branches of the Detect module, corresponding to the small-, medium-, and large-scale detection features, respectively. For a 640 × 640 input image, their spatial resolutions are 80 × 80, 40 × 40, and 20 × 20, respectively. The multi-scale predictions are subsequently decoded and aggregated through the detection post-processing procedure to obtain a unified set of ship detections in the input-image coordinate system.

2.3.1. SGF: Selective Gated Fusion Module

SGF is used for top-down feature fusion. Since deep semantic features may contain erroneous activations caused by degradation, directly propagating them to shallow layers may interfere with target localization. Therefore, SGF adopts a stronger selective gating mechanism.
As shown in Figure 6, given two input features X1 and X2, they are first concatenated along the channel dimension:
Y = Concat ( X 1 , X 2 ) .
Figure 6. Structure of the SGF module.
Then, channel gating weights are generated through global average pooling, two 1 × 1 convolutions, and a Sigmoid function:
G = σ ϕ 2 SiLU ϕ 1 GAP ( Y ) .
The output of SGF is formulated as:
F SGF = Y ⊙ G .
Here, ϕ1 and ϕ2 denote the two 1 × 1 convolutional transformations, and G represents the generated channel gating weights. The gating weights are broadcast along the spatial dimensions for feature modulation. Since the gating weight G ranges from 0 to 1, SGF can directly suppress ineffective channel responses. In this way, high-level semantic information is selectively filtered when propagated to shallow layers, thereby reducing the contamination of high-resolution features by noisy semantic responses. Unlike the residual enhancement modules, SGF does not introduce an additional learnable residual scaling coefficient.

2.3.2. RSF: Residual Soft-Gated Fusion Module

RSF is used for bottom-up feature fusion. This path is mainly responsible for re-transmitting shallow target edges, positional cues, and detailed information to middle- and high-level layers. Therefore, it is necessary to prevent the gating mechanism from excessively suppressing the original fused features.
As shown in Figure 7, RSF adopts the same feature concatenation and gating weight generation strategy as SGF:
Y = Concat ( X 1 , X 2 ) ,
G = σ ϕ 2 SiLU ϕ 1 GAP ( Y ) ,
Figure 7. Structure of the RSF module.
The difference is that RSF uses residual weak gating for feature modulation:
F RSF = Y ⊙ ( 1 + γ G ) ,
where γ is a learnable scaling factor, with its initial value set to 0.1. This structure always preserves the original concatenated feature Y, and moderately enhances effective channels on this basis, thereby reducing the loss of shallow detail information during bottom-up transmission.
In summary, SGF is responsible for selectively transmitting high-level semantics in the top-down path, while RSF is responsible for preserving and enhancing shallow details in the bottom-up path. The two fusion modules jointly form an asymmetric gated strategy, enabling MEGFNet to achieve more stable and effective multi-scale ship feature fusion in degraded SAR images.

3. Results

3.1. Dataset

This study uses the SSDD ship detection dataset, with one category named ship, and converts the dataset annotations into the YOLO annotation format. The dataset contains a total of 1160 SAR images, covering ship targets of different scales and orientations under various background conditions, as well as diverse maritime scenarios such as inshore and offshore scenes [37]. Following the official fixed training–test partition protocol, images whose file identifiers end in 1 or 9 were assigned to the test set, while the remaining images were designated as the training pool, resulting in 928 training images and 232 test images.
To provide a validation set for performance monitoring and model selection during training, 116 images were randomly sampled from the official 928-image training pool, while the remaining 812 images were used for model training. A fixed random seed of 0 was used to ensure reproducibility. Consequently, the final training, validation, and test sets contained 812, 116, and 232 images, respectively, corresponding to an overall ratio of approximately 7:1:2. The training, validation, and test sets do not share any images. All comparative models were trained and evaluated using exactly the same data partitions to ensure a fair and reproducible comparison.
Furthermore, following the official inshore–offshore categorization of SSDD, the 232 test images comprise 46 inshore images and 186 offshore images. In addition to reporting the overall detection results, we separately evaluated the two subsets to further investigate the detection performance of the proposed method in different background scenarios. The dataset split is shown in Table 2.
Table 2. The dataset split.
In real-world scenarios, SAR images may be affected by system thermal noise, speckle fluctuations, and imaging defocusing. To evaluate robustness to these disturbances, five test sets were constructed from the original SSDD test images: test_clean, test_thermal, test_blur, test_mix, and test_speckle. All models were trained exclusively on the clean training set and validated on val. They were evaluated on the five test sets without exposure to artificially degraded images during training, allowing comparison of their generalization to unseen degradation conditions.
For test-set construction, all original images were uniformly converted into single-channel grayscale, and degradation operations were applied in the grayscale domain. The processed images were then replicated into three channels to meet the YOLO-based detectors’ input requirements and saved in PNG format to avoid distortion from repeated JPEG compression. All five sets retain the original ground-truth labels and identical numbers of images and annotated targets. Performance differences therefore primarily reflect degradation effects rather than changes in sample composition or annotations.
These operations are controlled image-domain approximations of representative SAR imaging disturbances. They examine the effects of different degradation characteristics on ship detection rather than reproduce the complete physical SAR signal acquisition and imaging process.
The five types of test sets used in this paper are as follows:
•
test_clean
This test set directly preserves the original test images without applying any additional degradation processing, and is used to evaluate the detection performance of the model under normal SAR image conditions. Its degradation process can be expressed as:
I clean = I ,
where I denotes the original test image.
•
test_thermal
This test set is designed to investigate the influence of additive noise associated with SAR system thermal noise. In practical SAR systems, thermal noise originates mainly from electronic components in the receiver and is superimposed on the received radar signal. It is commonly modeled as an additive noise component in SAR products [38]. In this study, additive Gaussian noise is employed as a controlled image-domain approximation to examine the influence of thermal-noise-related perturbations on ship detection. Specifically, the input image is first normalized to the range [0,1], and its signal power is calculated as:
P s = mean ( I 2 ) ,
where Ps represents the average signal power of the normalized image I, and mean(⋅) denotes the spatial averaging operation over all image pixels.
Then, the noise power is calculated according to the specified signal-to-noise ratio:
P n = P s 10 SNR / 10 ,
where Pn represents the noise power, which is also the variance of the zero-mean Gaussian noise, and SNR denotes the prescribed signal-to-noise ratio in decibels.
  • Subsequently, independent Gaussian noise samples are generated and added to the original image:
I thermal = clip ( I + n , 0 , 1 ) ,       n ( x , y ) ~ N ( 0 , P n ) ,
where Ithermal denotes the noise-degraded image, n(x,y) represents the additive Gaussian noise at pixel position (x,y), and N ( 0 , P n ) denotes a Gaussian distribution with zero mean and variance Pn. The function clip(⋅) constrains the resulting pixel values to the interval [0,1].
In this study, the parameter of test_thermal is set to:
SNR = 20   dB .
This setting introduces controlled random intensity fluctuations into the image, thereby reducing the distinguishability of weak ship targets from the surrounding background. The SNR is fixed at 20 dB, which corresponds to a noise-to-signal power ratio of 0.01 according to Equation (21). Therefore, the generated noise power is 1% of the average signal power of each input image before clipping and quantization. This parameter provides a quantitatively defined and reproducible additive noise condition for evaluating the influence of random intensity fluctuations on ship detection. In practical SAR systems, thermal noise is primarily associated with receiver electronics, and its contribution to processed images may depend on sensor characteristics and subsequent signal processing procedures [38,39]. Accordingly, the adopted Gaussian noise model is regarded as a controlled image-domain approximation of thermal-noise-related disturbances rather than a sensor-calibrated simulation. The selected SNR is used as a fixed experimental condition and is not assumed to represent a universal thermal noise level in real-world SAR imagery.
•
test_blur
This test set is constructed to investigate the influence of spatial blurring on SAR ship detection. In practical SAR imaging, defocusing may arise from platform motion errors, residual phase errors, imperfect motion compensation, and mismatches during the focusing process. These effects may cause target scattering responses to spread spatially, thereby weakening ship boundaries and local structural details [40].
To approximate the resulting spatial smoothing and loss of image sharpness, Gaussian filtering is applied to the original grayscale image:
I blur = I ∗ G σ ( K × K ) ,
where Iblur denotes the blurred image, * represents the two-dimensional convolution operation, and G σ ( K × K ) denotes a normalized Gaussian kernel with a spatial size of K × K and standard deviation σ.
The Gaussian kernel is defined as:
G σ ( K × K ) ( u , v ) = exp − u 2 + v 2 2 σ 2 ∑ ( i , j ) ∈ Ω K exp − i 2 + j 2 2 σ 2 ,
where (u,v) and (i,j) denote spatial coordinates within the Gaussian kernel, ΩK represents the discrete spatial support of the kernel, and σ controls the spatial spread of the Gaussian function. The denominator normalizes the kernel weights so that their sum equals one.
The parameters of test_blur are set to K = 5 and σ = 1.4, corresponding to a 5 × 5 Gaussian kernel. The kernel size K = 5 defines the local spatial filtering region, while σ = 1.4 controls the attenuation of high-frequency image components. This parameter configuration suppresses high-frequency image components and weakens ship boundaries and local scattering structures while preserving the overall structural characteristics of ship targets, thereby providing a controlled experimental condition for evaluating the effects of blurred boundaries and weakened scattering details on detection performance.
Gaussian filtering provides a simplified, reproducible image-domain approximation of spatial blurring and defocusing rather than an exact representation of the sensor-specific SAR point spread function. It allows controlled investigation of detection sensitivity to the loss of local structural information; the adopted parameters should therefore not be interpreted as a physically calibrated simulation of a particular SAR sensor’s focusing errors.
•
test_mix
To further investigate the detection performance under multiple simultaneous image degradation effects, a mixed-degradation test set, denoted as test_mix, is constructed by sequentially applying contrast compression, nonlinear gamma transformation, additive Gaussian noise, and Gaussian blur. This setting is intended to approximate a composite image-quality degradation condition in which target-to-background contrast reduction, random intensity fluctuations, and spatial detail loss occur simultaneously.
First, contrast compression is applied to the normalized grayscale image:
I c = clip α ( I − μ I ) + μ I + β , 0 , 1 ,
where Ic denotes the contrast-adjusted image, μI represents the mean intensity of the original normalized image I, α controls the degree of contrast compression, and β represents a brightness offset.
A nonlinear gamma transformation is then performed:
I γ = I c γ c ,
where Iγ denotes the gamma-transformed image, and γc is the gamma correction parameter controlling the nonlinear mapping of pixel intensities.
Next, additive Gaussian noise is introduced into the transformed image. The signal power is calculated based on Iγ, rather than the original image I, as follows:
P s , mix = mean ( I γ 2 ) ,
where Ps,mix represents the average signal power after contrast compression and gamma transformation.
The corresponding noise power is calculated as:
P n , mix = P s , mix 10 SNR mix / 10 ,
where Pn,mix denotes the variance of the additive Gaussian noise, and SNRmix represents the prescribed signal-to-noise ratio for the mixed-degradation condition.
Finally, Gaussian filtering is applied to the noise-contaminated image:
I mix = G σ mix ( K mix × K mix ) * clip ( I γ + n mix , 0 , 1 ) ,       n mix ( x , y ) ~ N ( 0 , P n , mix ) ,
where Imix denotes the final mixed-degradation image, nmix(x,y) represents the additive Gaussian noise, Kmix denotes the Gaussian kernel size, and σmix controls the blur intensity.
The parameters of test_mix are configured as follows:
α = 0.72 ,       β = − 0.02 ,       γ c = 1.10 ,
SNR mix = 18   dB ,       K mix = 3 ,       σ mix = 0.8 .
Specifically, the contrast compression coefficient α = 0.72 reduces gray-level deviations from the image mean, thereby decreasing the intensity differences between ship targets and their surrounding background. The brightness offset β = −0.02 and gamma correction parameter γc = 1.10 further adjust the image intensity distribution.
Subsequently, additive Gaussian noise with SNRmix = 18 dB introduces random intensity perturbations, while Gaussian filtering with Kmix = 3 and σmix = 0.8 introduces mild spatial smoothing and further weakens local structural details.
These parameters construct a controlled composite image-domain condition rather than reproduce a specific sensor-calibrated imaging scenario. Combining reduced contrast, additive noise, and mild blur allows evaluation of robustness when several image-quality disturbances occur simultaneously. Accordingly, test_mix represents combined image degradation rather than a single physical SAR degradation mechanism.
•
test_speckle
In addition to additive noise and spatial blurring, multiplicative speckle noise is introduced to further evaluate the robustness of the proposed model against SAR-specific noise characteristics. Speckle is an inherent phenomenon in coherent SAR imaging and arises from the coherent superposition of backscattered signals from multiple unresolved scatterers within a resolution cell. Unlike additive thermal noise, speckle exhibits multiplicative statistical characteristics. For SAR intensity images, fully developed speckle is commonly described using a Gamma-distributed multiplicative noise model [41].
Accordingly, a Gamma-distributed multiplicative perturbation is adopted in this study. The degraded image is expressed as:
I speckle = clip ( I ⊙ S , 0 , 1 ) ,
where Ispeckle denotes the speckle-degraded image, I represents the original normalized grayscale image, ⊙ denotes element-wise multiplication, and S represents the multiplicative speckle factor.
The random variable S follows a unit-mean Gamma distribution parameterized by the equivalent number of looks (ENL), denoted by L:
S ~ Gamma L , 1 L ,
where L is the shape parameter, and 1/L is the scale parameter of the Gamma distribution.
The corresponding probability density function is given by:
p S ( s ) = L L Γ ( L ) s L − 1 exp ( − Ls ) ,       s ≥ 0 ,
where pS(s) denotes the probability density function of the speckle factor S, s represents a possible realization of S, and Γ(L) denotes the Gamma function evaluated at L.
The statistical properties of S are:
E [ S ] = 1 ,         Var ( S ) = 1 L
where E[⋅] and Var(⋅) denote the expectation and variance operators, respectively.
According to the above relationship, a smaller value of L corresponds to a larger variance of the multiplicative factor and thus stronger speckle fluctuations.
In this study, the ENL parameter is set to L = 4, corresponding to Var(S) = 0.25. This configuration introduces noticeable multiplicative intensity fluctuations while avoiding the substantially stronger perturbations associated with smaller ENL values.
The selected L = 4 is a parameter of the synthetic perturbation model, not an ENL measured from the original SSDD images. Since these images may already contain speckle from coherent imaging, this experiment evaluates model responses to additional multiplicative perturbations imposed on the original images. Moreover, SSDD provides grayscale images without explicit radiometric calibration information. The operation is therefore regarded as a Gamma-model-based perturbation in the normalized grayscale domain, rather than an exact physical simulation of complex SAR echoes or calibrated intensity measurements.
Overall, the five test sets cover original imaging conditions, additive noise, spatial blur, combined degradation, and multiplicative speckle perturbations. They share the same original images and ground-truth annotations, allowing consistent performance comparisons across degradation conditions. Figure 8a–e present examples of test_clean, test_thermal, test_blur, test_mix, and test_speckle, respectively.
Figure 8. Five types of test sets. (a) test_clean; (b) test_thermal; (c) test_blur; (d) test_mix; (e) test_speckle.

3.2. Experimental Environment

In this study, all experiments are conducted on the Windows 11 operating system using an NVIDIA GeForce RTX 4050 GPU. The development environment includes Python 3.9.23 and Torch 2.0.0, with GPU acceleration provided by CUDA 11.8.
Eight detection models, including Faster R-CNN, AC-YOLO, YOLOv8n, YOLOv10n, YOLO11n, YOLO12n, YOLO26n, and MEGFNet, were trained from scratch without pretrained weights using the same SSDD partition (812 training, 116 validation, and 232 test images). Model-specific training configurations were adopted with an input resolution of 640 × 640 and 300 epochs. All YOLO-based models were initialized using their YAML configurations and trained with SGD (initial learning rate = 0.01, momentum = 0.937, weight decay = 0.0005), a batch size of 16, and a linear learning rate decay. The random seed was fixed at 0, and consistent data augmentation was applied, including Mosaic, horizontal flipping, translation, and scaling.
Faster R-CNN was implemented using MMDetection 2.28.1 and MMCV-full 1.7.2 with a ResNet-50-FPN backbone. Images were resized with aspect ratios preserved and padded to 640 × 640. Training used SGD with Nesterov momentum, a batch size of 2, and gradient accumulation over 32 iterations. Mixed-precision training was enabled, while evaluation used FP32. For all models, the evaluation confidence threshold and NMS IoU threshold were set to 0.001 and 0.7, respectively, with test-time augmentation disabled. A confidence threshold of 0.25 was separately used for visualization and fixed-threshold small-ship missed-detection analysis.

3.3. Evaluation Metrics

This study adopts Precision, Recall, F1 score, mAP50 and mAP50-95 as evaluation metrics. Precision measures the proportion of correct targets in the prediction results. Recall measures the proportion of genuine targets that are detected. The F1 score is the harmonic mean of Precision and Recall, comprehensively reflecting the balance between precision and recall. mAP50 represents the average accuracy when the IoU threshold is 0.5. mAP50-95 represents the average accuracy when the IoU threshold varies from 0.5 to 0.95, which can better reflect the positioning quality of the model. The formulas for Precision, Recall and F1 score are as follows:
Precision = TP TP + FP ,
Recall = TP TP + FN ,
F 1 = 2 × Precision × Recall Precision + Recall ,
where TP denotes true positives, namely the number of targets correctly detected by the model; FP denotes false positives, namely the number of false detections; and FN denotes false negatives, namely the number of missed targets.

3.4. Detection Result Analysis

MEGFNet was evaluated on test_clean, test_thermal, test_blur, test_mix, and test_speckle, with quantitative results reported in Table 3. Across these five sets, average mAP50, mAP50-95, Precision, Recall, and F1 are 96.81%, 65.98%, 95.84%, 92.63%, and 94.20%, respectively. The model maintains relatively high detection performance under these conditions, although sensitivity varies by degradation type.
Table 3. Average performance metrics of MEGFNet on the five test sets.
On test_clean, mAP50 and mAP50-95 are 97.88% and 68.77%, with Precision, Recall, and F1 of 96.98%, 93.31%, and 95.11%, respectively. These results show that the model can identify and localize ships under clean SAR imaging conditions, providing a reference for assessing how its performance changes with different degradation types.
On test_thermal, mAP50 and mAP50-95 decrease by 0.92 and 1.11 percentage points to 96.96% and 67.66%. Recall increases from 93.31% to 94.36%, while F1 decreases slightly from 95.11% to 94.83%. Thus, additive thermal noise slightly affects overall detection and localization, but its influence remains limited at the selected degradation level, with relatively high performance retained.
On test_blur, mAP50 is 96.98%, whereas mAP50-95 falls by 5.25 percentage points from test_clean to 63.52%; Recall and F1 decrease to 91.35% and 93.25%. The relatively small mAP50 reduction suggests that ship identification is largely retained under Gaussian blur. The larger mAP50-95 loss indicates that precise bounding-box localization at higher IoU thresholds is more affected, potentially because blur weakens ship boundaries and local scattering structures.
On test_mix, mAP50, mAP50-95, and F1 are 97.32%, 67.19%, and 94.92%, decreasing by 0.56, 1.58, and 0.19 percentage points from test_clean. These results suggest that the model retains effective ship representations under combined contrast adjustment, noise, and blur. Nevertheless, the reduction in mAP50-95 shows that localization remains affected.
On test_speckle, mAP50, mAP50-95, Precision, Recall, and F1 are 94.89%, 62.77%, 95.12%, 90.76%, and 92.88%, respectively. Relative to test_clean, mAP50, mAP50-95, Recall, and F1 decrease by 2.99, 6.00, 2.55, and 2.23 percentage points. Among the four degradation types, additional multiplicative speckle produces the largest reductions in mAP50, mAP50-95, and Recall. Speckle-induced intensity fluctuations may interfere with the representation of ship scattering characteristics and discrimination between ships and surrounding background regions. These effects can impair both the identification of ship targets and the precision of their localization.
Overall, losses are relatively small under the evaluated thermal-noise and mixed-degradation conditions. Blur mainly affects high-IoU localization, whereas speckle produces more pronounced losses in both detection and localization. These findings suggest that MPEB’s multi-stage enhancement and BGFN’s bidirectional gated fusion provide effective representations under the evaluated conditions while identifying sensitivity to blur and speckle as areas requiring further improvement.
The visualized detection results on the five test sets are shown in Figure 9, where the original dataset annotation contains five correct targets. From Figure 9a-e, the results correspond to test_clean, test_thermal, test_blur, test_mix and test_speckle, respectively.
Figure 9. Visual detection results of MEGFNet on five types of test sets. (a) test_clean; (b) test_thermal; (c) test_blur; (d) test_mix; (e) test_speckle.

3.5. Ablation Study

Ablation experiments assessed the individual and combined contributions of feature enhancement and gated fusion using YOLO11n as the baseline. All configurations used the same clean training set, dataset partition, and training strategy, and were evaluated on test_clean, test_thermal, test_blur, test_mix, and test_speckle. Overall performance was assessed using mAP50, mAP50-95, Precision, Recall, and F1 averaged across these five sets. Table 4 summarizes the configurations and results.
Table 4. Ablation study module configurations and corresponding performance.
Table 4 first evaluates MDR, DGCA, and SSG individually and in combination within MPEB. MDR slightly improves mAP50-95, Precision, Recall, and F1 over the baseline, consistent with preserving shallow details and improving localization. DGCA increases Recall from 90.12% to 91.78% and F1 from 92.57% to 93.06%, but slightly reduces both mAP metrics, suggesting improved target retrieval without gains across all metrics. SSG alone increases Recall by 1.42 percentage points while slightly reducing Precision and F1. These effects are complementary but metric-dependent.
Combining MDR and DGCA improves mAP50, mAP50-95, Recall, and F1 by 0.28, 0.70, 1.74, and 0.65 percentage points, respectively. Adding SSG raises mAP50 and mAP50-95 to 95.57% and 65.51%, while Precision falls to 93.53%, and F1 remains close to the baseline. Thus, combined enhancement does not uniformly improve all metrics. BGFN alone, without MPEB, improves mAP50-95 and Recall by 0.36 and 1.41 percentage points, respectively, but reduces Precision. Adding SGF to the complete MPEB raises mAP50-95 to 66.75% and F1 to 93.74%, indicating a benefit from top-down fusion of enhanced features. Adding bottom-up RSF produces the full MEGFNet, with the highest average mAP50, Precision, Recall, and F1 among the evaluated configurations: 96.81%, 95.84%, 92.63%, and 94.20%, respectively. Relative to the baseline, mAP50 and mAP50-95 improve by 1.98 and 1.12 percentage points. Together, these results support complementary contributions from multi-stage enhancement and bidirectional gated fusion.
To examine the performance trade-off introduced by bottom-up residual soft gating, Table 5 compares MPEB+SGF with MPEB+SGF+RSF separately across the five test sets. RSF increases mAP50 by 1.99 and 1.35 percentage points under clean and thermal-noise conditions, respectively, with slight mAP50-95 gains. Under blur and mixed degradation, mAP50 increases by 2.10 and 1.50 percentage points, while mAP50-95 decreases by 0.22 and 0.21 percentage points. Under speckle, both metrics decrease, by 0.81 and 4.05 percentage points, respectively. Averaged across conditions, mAP50 increases from 95.58% to 96.81%, whereas mAP50-95 decreases from 66.75% to 65.98%.
Table 5. Per-degradation ablation analysis of RSF in terms of mAP50 and mAP50-95.
Thus, RSF improves detection under most evaluated conditions but may compromise high-IoU localization, particularly under speckle. One possible explanation is that multiplicative noise changes local scattering responses and feature distributions, affecting residual soft-gated fusion; this interpretation requires further investigation.

3.6. Comparison with Other Ship Detection Models

To evaluate MEGFNet for SAR ship detection, seven representative models were compared: Faster R-CNN, AC-YOLO, YOLOv8n, YOLOv10n, YOLO11n, YOLO12n, and YOLO26n. Faster R-CNN represents two-stage detectors, AC-YOLO provides a SAR-oriented comparison, and the YOLO models cover several generations of lightweight one-stage detectors. All models used the same dataset partition and evaluation protocol. Their detection capabilities under complex backgrounds and degradation were assessed using mAP50, mAP50-95, Precision, Recall, and F1 averaged across the five test sets. Parameter counts and FLOPs were also reported to examine the trade-off between detection performance and model complexity. Table 6 presents the results.
Table 6. Comparison with other object detection models.
In Table 6, MEGFNet has the highest five-set averages across all five metrics among the compared models. Its mAP50 and mAP50-95 are 96.81% and 65.98%, exceeding YOLO11n by 1.98 and 1.12 percentage points. Precision, Recall, and F1 are 95.84%, 92.63%, and 94.20%, with gains of 0.68, 2.51, and 1.63 percentage points, respectively. MEGFNet also outperforms AC-YOLO and the other YOLO models across these metrics, with more evident differences from YOLO12n and YOLO26n in mAP50-95, Recall, and F1. Relative to Faster R-CNN, its mAP50 and mAP50-95 are higher by 23.55 and 28.10 percentage points, respectively, indicating better detection and localization under the evaluated conditions.
To further investigate whether the performance advantages of MEGFNet over YOLO11n are consistent across different random initializations, ten independent training runs with matched random seeds (0–7, 42, and 123) were conducted. The mean and standard deviation of mAP50 and mAP50-95 were calculated separately for the five test sets. Paired Wilcoxon signed-rank tests were then performed for each test set and metric, with Holm correction applied to the ten comparisons. The detailed results are presented in Table 7.
Table 7. Statistical significance analysis of MEGFNet and YOLO11n under different degradation conditions.
Table 7 shows that MEGFNet achieves higher mAP50 than YOLO11n across all five test sets, with mean gains of 1.21–2.76 percentage points. All five differences remain significant after Holm correction (adjusted p = 0.01953). For mAP50-95, gains on the clean, thermal, blur, and speckle sets are 1.70, 2.79, 2.55, and 3.13 percentage points, respectively, and remain significant after correction. Under mixed degradation, however, mAP50-95 decreases by 0.75 percentage points, which is also significant (adjusted p = 0.01953). This suggests that combined degradation may affect localization at stricter IoU thresholds despite improved detection at IoU = 0.5. The repeated experiments therefore provide statistical support for improvements under most evaluated conditions while identifying a remaining localization limitation under mixed degradation.
The performance improvements are related to the complementary roles of MPEB and BGFN. Before fusion, MPEB enhances the detail, structural, and semantic representations of P3, P4, and P5, respectively, to provide more discriminative multi-level features. BGFN then uses SGF and RSF to adaptively regulate cross-scale interactions, helping control background interference and redundant information. Together, the components improve feature representation and fusion under complex SAR imaging conditions.
In terms of model complexity, MEGFNet uses 3.49 M parameters and 3.79 G FLOPs, increases of approximately 34.75% and 17.70% over YOLO11n. Although AC-YOLO is smaller, with 1.82 M parameters and 2.70 G FLOPs, MEGFNet achieves higher values on all five detection metrics. It also exceeds Faster R-CNN’s detection performance with substantially lower complexity than its 41.36 M parameters and 182.79 G FLOPs. These comparisons indicate a favorable balance between detection performance and computational cost under the evaluated protocol.
Despite its advantages in average detection performance, MEGFNet still experiences performance degradation under challenging imaging conditions. In particular, Gaussian blur weakens ship boundaries and local scattering details, which can adversely affect bounding-box regression and high-IoU localization accuracy. Moreover, the statistical comparison under mixed degradation reveals that improvements in mAP50 do not necessarily translate into better localization performance at stricter IoU thresholds. Future work may explore degradation-aware feature enhancement, blur-aware training, and localization loss optimization to further improve the model’s localization capability under complex SAR imaging conditions.
The visual comparison results of the eight detection models across the five test sets are shown in Figure 10, Figure 11, Figure 12 and Figure 13. In the visual results presented in these figures, the results in each row are arranged in the following order: test_clean, test_thermal, test_blur, test_mix, and test_speckle.
Figure 10. Visualization results of Faster R-CNN and AC-YOLO. (a–e) Faster R-CNN; (f–j) AC-YOLO.
Figure 11. Visualization results of YOLOv8n and YOLOv10n. (a–e) YOLOv8n; (f–j) YOLOv10n.
Figure 12. Visualization results of YOLO11n and YOLO12n. (a–e) YOLO11n; (f–j) YOLO12n.
Figure 13. Visualization results of YOLO26n and MEGFNet. (a–e) YOLO26n; (f–j) MEGFNet.

3.7. Repeated Experiments and Model Capacity Analysis

To evaluate the reproducibility of the experimental results and investigate whether the performance improvements of MEGFNet are primarily attributable to increased model capacity, repeated experiments were conducted using ten different random seeds (0–7, 42, and 123). Specifically, YOLO11n, YOLO11n-W, and MEGFNet were independently trained under the same dataset partition and training protocol. YOLO11n-W was constructed by increasing the width scaling factor of the original YOLO11n from 0.25 to 0.28 while retaining its original architecture and connectivity, without introducing the proposed feature enhancement or gated fusion modules. This configuration provides a parameter-matched baseline for evaluating the contribution of the proposed architectural design.
For each random seed, the three models were evaluated on five test sets, namely test_clean, test_thermal, test_blur, test_mix, and test_speckle. The evaluation metrics were first averaged across the five test sets for each independent run. Subsequently, the mean and sample standard deviation were calculated across the ten runs using Equations (40) and (41), where n = 10 represents the number of independent runs, and xi denotes the corresponding evaluation metric obtained with the i-th random seed. The experimental results and computational complexity are summarized in Table 8.
x ¯ = 1 n ∑ i = 1 n x i
s = 1 n − 1 ∑ i = 1 n ( x i − x ¯ ) 2
Table 8. Detection performance and computational complexity comparison based on repeated experiments.
Table 8 shows that MEGFNet has the highest mean values across all five metrics. Its mAP50 and mAP50-95 reach 96.81% and 66.21%, exceeding YOLO11n by 2.19 and 1.89 percentage points, respectively. Despite having more parameters, YOLO11n-W yields lower values of 93.92% and 62.45% than YOLO11n. MEGFNet also has lower sample standard deviations across all five metrics than both baselines, indicating more concentrated results over the ten runs under the evaluated protocol.
Statistical significance was assessed using two-sided paired Wilcoxon signed-rank tests on mAP50 and mAP50-95 from the ten matched random seeds. The three pairwise model comparisons produced six tests, with Holm correction applied to control the family-wise error rate. The results are summarized in Table 9. MEGFNet outperforms YOLO11n in both metrics (Holm-adjusted p = 0.0117 for each) and exceeds YOLO11n-W by 2.88 and 3.76 percentage points, respectively (adjusted p = 0.0117 for each). YOLO11n also outperforms YOLO11n-W, with adjusted p-values of 0.0137 and 0.0117 for mAP50 and mAP50-95, respectively. All six comparisons remain significant after correction (adjusted p < 0.05), indicating that widening YOLO11n does not improve performance under these conditions.
Table 9. Statistical significance analysis of pairwise model comparisons based on ten repeated experiments.
In terms of model complexity, YOLO11n-W contains approximately 3.47 M parameters, close to the 3.49 M parameters of MEGFNet, but requires more computational operations. Despite its comparable parameter count and lower computational cost than YOLO11n-W, MEGFNet achieves significantly higher detection performance. This comparison suggests that the improvements of MEGFNet cannot be explained solely by increased model capacity, providing additional evidence for the effectiveness of the proposed multi-stage feature enhancement in MPEB and bidirectional gated feature fusion in BGFN.
Overall, the repeated experiments and statistical significance tests support the reproducibility of the performance advantages of MEGFNet under the evaluated experimental conditions. The parameter-matched comparison further indicates that the proposed architectural design contributes to the observed improvements beyond simply increasing network capacity.

3.8. Comparative Evaluation in Inshore and Offshore SAR Scenes

To further examine the detection performance of MEGFNet under different background conditions, comparative experiments were conducted using YOLO11n as the baseline model. Inshore SAR scenes often contain strong scattering responses from land areas, harbor facilities, and other man-made structures, which may interfere with ship detection and increase the likelihood of false-positive predictions. In contrast, offshore scenes generally exhibit relatively homogeneous open-sea backgrounds. The experiments were therefore conducted on the inshore and offshore subsets of the official SSDD test set, containing 46 and 186 images, respectively.
To examine detection behavior under different degradation conditions, representative inshore and offshore scenes were evaluated on five test sets: test_clean, test_thermal, test_blur, test_mix, and test_speckle. The original images and their degraded versions shared the same ground-truth (GT) annotations. A confidence threshold of 0.25 and a non-maximum suppression (NMS) IoU threshold of 0.7 were adopted for both models. A prediction was counted as a true positive (TP) when uniquely matched to a GT box at an IoU threshold of 0.5; unmatched predictions and GT boxes were counted as false positives (FPs) and false negatives (FNs), respectively. Representative results are presented in Figure 14 and Figure 15, where subfigures (a–e) and (f–j) correspond to YOLO11n and MEGFNet, respectively.
Figure 14. Visual comparison of YOLO11n and MEGFNet in the inshore scene. (a–e) YOLO11n; (f–j) MEGFNet.
Figure 15. Visual comparison of YOLO11n and MEGFNet in the offshore scene. (a–e) YOLO11n; (f–j) MEGFNet.
As shown in Figure 14, the selected inshore image contains ten annotated ships. Under clean and thermal-noise conditions, both models detect all ten targets, although YOLO11n produces one additional false-positive prediction in each condition. Under Gaussian blur, MEGFNet correctly detects eight ships, compared with seven for YOLO11n. Under mixed degradation, the corresponding numbers are ten and nine, while under speckle noise, they are nine and six, respectively. These observations illustrate differences in detection behavior under the evaluated degradations, but results from a single image cannot establish consistent performance advantages across diverse inshore scenes.
For the representative offshore image in Figure 15, both models correctly detect all seven annotated ships without additional false-positive predictions under the five test conditions. This comparable performance may be related to the relatively homogeneous background of the selected scene. Nevertheless, this observation is limited to the displayed example and does not imply equivalent detection performance across the complete offshore subset.
The quantitative evaluation covered all 46 clean inshore test images, containing 172 annotated ships. As summarized in Table 10, YOLO11n yields 147 TPs, 46 FPs, and 25 FNs, compared with 158 TPs, 38 FPs, and 14 FNs for MEGFNet. Precision consequently increases from 76.17% to 80.61%, and Recall from 85.47% to 91.86%. Despite these reductions in false positives and missed ships, the remaining 38 FPs and 14 FNs are substantial; Precision of 80.61% still indicates a considerable proportion of incorrect predictions. These FP counts depend on the available GT annotations and do not independently identify coastal structures, sea clutter, or other sources as their causes.
Table 10. Comparison of false-positive and missed-detection statistics between YOLO11n and MEGFNet on the SSDD inshore test subset.
The visual examples and full-subset results therefore indicate incremental improvements over YOLO11n under the examined conditions. They do not establish sufficiently reliable detection in complex maritime environments. Quantitative evaluation covers only the clean inshore subset, whereas degraded and offshore comparisons use representative examples. Broader coastal scenes, degradation conditions, and independently verified annotations are needed to assess consistency and reduce the remaining false alarms and missed detections.

3.9. Small-Ship Detection and Missed-Detection Analysis

Due to their limited spatial information and weak scattering characteristics, small ship targets are more susceptible to background interference, which may lead to missed detections. To investigate whether the proposed MEGFNet can alleviate these challenges, a targeted small-ship detection and missed-detection analysis was conducted using YOLO11n and MEGFNet on the clean SSDD test set.
The evaluation included 232 images containing 546 annotated ship targets, of which 263 were classified as small targets, accounting for 48.17% of the total. Following the commonly used bounding-box area criterion, small ships were defined as targets with bounding-box areas smaller than 32 × 32 pixels at a reference image scale of 640 pixels.
A fixed confidence threshold of 0.25, a commonly used YOLO inference operating point, was adopted to compare correctly detected and missed small ships. Unlike overall mAP evaluation, which uses 0.001 to retain predictions for precision–recall curves, this analysis filters low-confidence predictions at a consistent operating point rather than seeking an optimal threshold. It therefore quantifies target-level detections and misses at a fixed threshold rather than summarizing performance across confidence levels. Both models used an input size of 640 pixels and an NMS IoU threshold of 0.7, consistent with the overall evaluation settings. Predictions were matched one-to-one with GT boxes at IoU = 0.5 across all annotated targets before small-ship statistics were extracted. Under these identical settings, TP, FN, Recall, and miss rate were calculated for the small-ship subset.
Table 11 shows that MEGFNet increases small-ship Recall from 87.83% to 93.54%, a gain of 5.70 percentage points. Correctly detected ships increase from 231 to 246, while misses decrease from 32 to 17. The miss rate falls from 12.17% to 6.46%, corresponding to a 46.88% relative reduction. Target-level comparison shows that MEGFNet detects 18 small ships missed by YOLO11n but misses 3 detected by YOLO11n, giving a net gain of 15 correctly detected targets. These results quantify the reduction in small-ship misses under the specified conditions.
Table 11. Small-ship detection and missed-detection comparison between YOLO11n and MEGFNet on SSDD.
Figure 16 illustrates representative cases of ships detected by MEGFNet but missed by YOLO11n under the matching criteria. Yellow dashed boxes denote GT ships; green and red solid boxes denote successfully matched and unmatched predictions, respectively. These examples provide qualitative support for the results in Table 11.
Figure 16. Visual comparison of small-ship detection results between YOLO11n and MEGFNet on SSDD. (a) Ground-truth annotations; (b) YOLO11n detection results; (c) MEGFNet detection results. Yellow dashed boxes denote ground-truth ships, green and red solid boxes denote successfully matched and unmatched predictions, respectively.
The improvement may be associated with MPEB, particularly MDR’s preservation of fine spatial details and local scattering responses, and with BGFN’s integration of complementary features across levels. These mechanisms may improve representations of small ships that contain limited spatial information by preserving useful local responses and integrating them with features at other levels. Although this experiment does not separately quantify their contributions to small-ship detection, the complete MEGFNet achieves higher Recall and a lower miss rate than YOLO11n at the fixed confidence threshold of 0.25.

3.10. Robustness Analysis

3.10.1. Feature Response Analysis

To further investigate the feature response characteristics of the proposed MEGFNet in ship target regions and surrounding backgrounds, Grad-CAM++ is employed to visualize and compare the feature responses of MEGFNet and the baseline model YOLO11n. Grad-CAM++ generates class-discriminative heatmaps by weighting feature maps according to their gradient contributions to the target class. In the resulting heatmaps, red and yellow regions indicate stronger contributions to the final prediction, whereas blue and green regions represent relatively weaker activation responses.
The visualization results are shown in Figure 17. The selected sample represents a typical inshore SAR scene, containing multiple ship targets surrounded by sea-surface backgrounds and coastal structures with strong scattering responses. Such a scene provides a representative example for examining the ability of different models to distinguish ship targets from complex background interference.
Figure 17. Heatmap visualization comparison between YOLO11n and MEGFNet. (a) YOLO11n; (b) MEGFNet. Warmer colors (red and yellow) indicate stronger feature responses, while cooler colors (blue and cyan) indicate weaker responses.
As shown in Figure 17a, YOLO11n generates distinct high-response regions around the main ship targets, indicating that the baseline model can effectively identify the primary target locations. However, relatively broad activation responses are also observed in some non-target sea-surface regions, where green and cyan responses extend beyond the main target areas. This suggests that background information may still contribute to the feature responses of the baseline model, resulting in less selective activation in certain regions.
In comparison, as shown in Figure 17b, MEGFNet produces more concentrated high-response regions around the same ship target locations. The red and yellow activation peaks are more spatially localized around the target regions, while most of the surrounding sea-surface areas exhibit relatively weak responses, predominantly represented by dark blue regions. Although some responses remain in the coastal background with strong scattering characteristics, the overall activation distribution is more concentrated around the ship targets. These observations suggest that MEGFNet exhibits improved target-region selectivity and reduced background-related responses in the selected complex SAR scene.
Overall, the Grad-CAM++ visualization indicates that MEGFNet can maintain strong feature responses around ship targets while reducing the spread of activation in non-target sea-surface regions. This observation is consistent with the design objectives of the proposed multi-stage feature enhancement and bidirectional gated fusion mechanisms. Specifically, MPEB enhances the detail, structural, and semantic representations at different feature levels, while BGFN adaptively regulates cross-scale feature interactions through gated fusion. Their combination helps strengthen target-related feature responses and reduce the propagation of ineffective background information. Therefore, these heatmaps provide qualitative observations consistent with the intended target-region feature enhancement effects of MEGFNet in the selected complex inshore SAR scene, complementing the quantitative detection results.

3.10.2. Comparative Detection Performance Under Different Degradation Intensities

To examine how individual image degradations affect detection and localization, additional experiments compared MEGFNet with YOLO11n under Gaussian blur, thermal noise, and speckle noise. Multiple intensity levels were established for each factor to track the performance of both models as degradation severity increased. These experiments focus on individual disturbances, rather than the combined effects present in mixed degradation, allowing the behavior under each factor to be analyzed more explicitly. The clean test set provided a separate reference baseline for each model, and mAP50-95 was the primary metric.
Figure 18a shows that mAP50-95 generally decreases for both models as Gaussian blur increases, indicating poorer ship detection and localization with stronger blurring. MEGFNet exhibits a slight increase over its clean baseline at σ = 0.6, followed by declining performance as blur intensifies. It nevertheless exceeds YOLO11n at every evaluated level, with a larger performance gap under severe blur. At σ = 2.2, MEGFNet achieves 60.57%, compared with approximately 54.5% for YOLO11n, a difference of approximately 6.07 percentage points. At this intensity, MEGFNet also shows a smaller reduction relative to its own clean-image baseline. These results indicate better detection and localization under the evaluated blur conditions, particularly higher intensities. This advantage is related to the multi-stage enhancement of shallow details, intermediate structures, and high-level semantics, together with gated integration of complementary features across levels. However, the performance differences alone cannot independently establish each module’s specific contribution to blur robustness.
Figure 18. Robustness comparison of YOLO11n and MEGFNet under different degradation intensities: (a) Gaussian blur; (b) thermal noise; (c) speckle noise.
Figure 18b shows declining mAP50-95 for both models as SNR decreases from 30 to 10 dB, reflecting progressively poorer ship detection and localization under stronger thermal noise. MEGFNet consistently has higher absolute performance within the evaluated moderate-noise range of 30–15 dB. However, the gap gradually narrows as SNR decreases, and the two models become nearly comparable at 10 dB. At this most severe tested level, MEGFNet also shows a larger reduction relative to its own clean-image baseline than YOLO11n. Thus, its higher absolute accuracy under moderate noise does not demonstrate stronger relative robustness under severe thermal interference. This phenomenon further illustrates that absolute detection accuracy and the ability of a model to maintain its performance as noise intensity increases are two distinct concepts.
For multiplicative speckle noise, five equivalent number of looks (ENL) levels—16, 8, 4, 2, and 1—were evaluated. Lower ENL indicates stronger speckle fluctuations and more severe image degradation. As shown in Figure 18c, both models’ mAP50-95 values decrease noticeably as ENL falls, although MEGFNet’s remain higher at every evaluated level. The performance gap varies with noise intensity rather than increasing monotonically. The largest difference occurs at ENL = 2: MEGFNet reaches 53.35%, compared with approximately 42.7% for YOLO11n, a gain of approximately 10.65 percentage points. The gap narrows at ENL = 1, but MEGFNet still maintains clearly higher mAP50-95. Relative to the models’ respective clean-image baselines, MEGFNet also retains more performance under the evaluated severe speckle conditions. These results indicate better preservation of discriminative ship features and adaptability across the tested speckle intensities. Nevertheless, both models suffer substantial losses under extremely strong speckle, which remains a challenge for SAR ship detection.
Overall, the experiments show that MEGFNet’s accuracy and robustness depend on degradation type and severity. It maintains higher mAP50-95 than YOLO11n across every evaluated blur and speckle intensity. Under severe blur and speckle conditions, it also shows smaller reductions relative to the models’ respective clean-image baselines. Its advantage under moderate thermal noise, however, becomes negligible at 10 dB, where its relative loss is greater than YOLO11n’s. These findings support the benefits of multi-stage enhancement and gated fusion under several tested degradations while identifying substantial remaining losses under severe thermal and speckle noise. They also show that a performance advantage under one disturbance should be interpreted in relation to the tested degradation type and intensity. Further work on noise suppression, degradation-aware feature enhancement, and fusion strategies is needed to improve reliability under more challenging SAR imaging conditions.

3.10.3. Cross-Dataset Generalization Evaluation on HRSID

Due to differences in imaging sensors, spatial resolutions, acquisition conditions, and background complexity, SAR image distributions may vary across datasets. To evaluate the cross-dataset generalization capability of MEGFNet, YOLO11n and MEGFNet were trained exclusively on SSDD and directly evaluated on the official HRSID test split containing 1962 images, without additional training or fine-tuning on HRSID.
The original 800 × 800-pixel HRSID images were processed using the standard Ultralytics YOLO validation pipeline with a target input size of 640 pixels, including aspect-ratio-preserving resizing and Letterbox padding when necessary. The original COCO-format annotations were converted into normalized YOLO bounding-box coordinates, with the ship category mapped to class ID 0. Both models were evaluated under identical settings, including a batch size of 16, a confidence threshold of 0.001, and an NMS IoU threshold of 0.7.
To assess the consistency of the cross-dataset results, both models were independently trained using ten matched random seeds (0–7, 42, and 123). The mean and sample standard deviation of five evaluation metrics were calculated across the ten runs. Statistical significance was assessed using two-sided paired Wilcoxon signed-rank tests, with Holm correction applied across the five comparisons. The results are summarized in Table 12.
Table 12. Cross-dataset detection performance and statistical significance comparison between YOLO11n and MEGFNet on HRSID over ten independent runs.
As shown in Table 12, MEGFNet achieves mean mAP50 and mAP50-95 values of 65.01% and 35.62%, outperforming YOLO11n by 3.73 and 4.71 percentage points, respectively. Improvements are also observed in Precision, Recall, and F1. All five differences are statistically significant after Holm correction (adjusted p = 0.0098), providing evidence of consistent performance advantages across the evaluated random seeds. These improvements may be associated with the multi-stage feature enhancement in MPEB and bidirectional gated fusion in BGFN. Nevertheless, MEGFNet achieves a mean Recall of only 55.15%, indicating that substantial missed detections remain under direct SSDD-to-HRSID transfer. Therefore, further investigation is needed to improve detection performance under cross-dataset distribution shifts.

4. Discussion

To examine MEGFNet on real-world large-scale SAR imagery, a Sentinel-1 image acquired on 17 January 2026 near the Strait of Hormuz was selected for ship detection. Frequent vessel activity and complex coastal environments make this scene challenging. Figure 19 compares YOLO11n and MEGFNet on the same image. Both identify multiple candidate ships across this scene, where sea clutter, coastal scattering, and land and port structures may complicate target discrimination.
Figure 19. Qualitative ship detection results on a real large-scale Sentinel-1 SAR image of the Strait of Hormuz acquired on 17 January 2026: (a) YOLO11n; (b) MEGFNet.
AIS-assisted reference annotations identified 363 ship targets in this scene. Under the same evaluation procedure, MEGFNet yields 331 TPs, 21 FPs, and 32 FNs, with Precision of 94.03% and Recall of 91.18%; YOLO11n yields 324 TPs, 27 FPs, and 39 FNs, with Precision of 92.31% and Recall of 89.26%. Thus, MEGFNet provides seven additional correctly matched detections, six fewer false positives, and seven fewer misses, indicating a modest improvement over YOLO11n under these scene-specific conditions. Figure 19 presents the detection results of YOLO11n and MEGFNet on the same image.
MEGFNet still produces 21 false positives and misses 32 reference targets, errors that may cause unnecessary alerts or missed vessels in maritime monitoring and require further improvements in detection reliability. AIS-assisted annotations may also be affected by vessel reporting availability, positional uncertainty, and temporal differences from SAR observations. The metrics therefore apply to the available reference annotations and should not be treated as definitive measurements of all vessels in the scene.
Because this experiment uses only one large-scale SAR image from a specific region and acquisition time, the numerical improvement over YOLO11n neither establishes a statistically significant advantage across real-world maritime environments nor demonstrates operational reliability. It is a preliminary application evaluation rather than evidence of a mature or consistently superior system. Generalization must be assessed using multiple maritime regions, different SAR acquisition conditions, and more comprehensive independently verified reference data. Reducing false positives and missed detections remains necessary before the method can be considered sufficiently reliable for practical maritime monitoring.

5. Conclusions

This study presented MEGFNet for ship detection in complex and degraded SAR imagery. Its multi-stage pre-enhancement backbone (MPEB) uses MDR, DGCA, and SSG to strengthen shallow details, intermediate structures, and deep semantic responses, respectively. Its bidirectional gated fusion neck (BGFN) applies selective gating in the top-down pathway and residual soft gating in the bottom-up pathway, regulating cross-scale information while preserving complementary spatial and semantic features.
Across the original SSDD test set and four controlled degradation conditions, MEGFNet achieved average mAP50 and mAP50–95 values of 96.81% and 65.98%, respectively, with 3.49 million parameters and 3.79 GFLOPs. Ten independent training runs showed statistically significant improvements over YOLO11n and the nearly parameter-matched YOLO11n-W in both mAP metrics averaged across the five conditions after Holm correction, supporting architectural contributions beyond increased model capacity. At a confidence threshold of 0.25 and a matching IoU of 0.5, small-ship misses on the clean SSDD test set decreased from 32 to 17, a relative reduction of 46.88%. The clean inshore evaluation also showed fewer false positives and misses, although substantial errors remained.
Ablation results showed complementary but metric-dependent effects, while feature-response visualization provided qualitative observations consistent with the intended target enhancement. Adding RSF increased average mAP50 but reduced average mAP50–95, particularly under speckle. Although MEGFNet achieved higher mAP50–95 than YOLO11n at every tested blur and speckle level, its thermal-noise advantage became negligible at 10 dB, where its decline from the clean-image baseline was larger than YOLO11n’s. Repeated comparisons also identified a significant decrease of 0.75 percentage points in mAP50–95 relative to YOLO11n under mixed degradation.
Under direct SSDD-to-HRSID transfer without target-domain training or fine-tuning, MEGFNet achieved ten-run mean mAP50 and mAP50–95 values of 65.01% and 35.62%, with significant improvements across all five evaluated metrics after Holm correction. However, its mean Recall of 55.15% indicates that substantial missed detections remain. In a single large-scale Sentinel-1 scene near the Strait of Hormuz, the model produced fewer false positives and missed targets than YOLO11n, but these results depend on AIS-assisted reference annotations and do not establish operational reliability.
Further work should focus on degradation-aware feature enhancement and fusion, more precise localization, and reducing false positives and missed ships under dataset shifts. The controlled degradations are image-domain approximations; broader evaluation across maritime regions and SAR sensors, using independently verified reference annotations, is needed to assess practical reliability.

Author Contributions

Conceptualization, W.X.; methodology, W.X. and T.L.; software, T.L.; validation, T.L. and W.X.; formal analysis, W.X. and P.H.; investigation, W.X., T.L. and P.H.; data curation, T.L.; writing—original draft preparation, T.L., W.X. and W.T.; writing—review and editing, T.L., M.M. and P.H.; supervision, W.X. and W.T.; funding acquisition, W.X. and P.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China under Grant Number 62071258.

Data Availability Statement

No new data were created or analyzed in this study. The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Li, J.W.; Xu, C.A.; Su, H.; Gao, L.; Wang, T.Y. Deep Learning for SAR Ship Detection: Past, Present and Future. Remote Sens. 2022, 14, 2712. [Google Scholar] [CrossRef] [Scilit]
  2. Yu, J.M.; Zhou, G.Y.; Zhou, S.B.; Qin, M.W. A Fast and Lightweight Detection Network for Multi-Scale SAR Ship Detection under Complex Backgrounds. Remote Sens. 2022, 14, 31. [Google Scholar] [CrossRef] [Scilit]
  3. Liu, S.W.; Kong, W.M.; Chen, X.F.; Xu, M.M.; Yasir, M.; Zhao, L.M.; Li, J.G. Multi-Scale Ship Detection Algorithm Based on a Lightweight Neural Network for Spaceborne SAR Images. Remote Sens. 2022, 14, 1149. [Google Scholar] [CrossRef] [Scilit]
  4. Zhou, K.X.; Zhang, M.; Wang, H.; Tan, J.L. Ship Detection in SAR Images Based on Multi-Scale Feature Extraction and Adaptive Feature Fusion. Remote Sens. 2022, 14, 755. [Google Scholar] [CrossRef] [Scilit]
  5. Yang, X.; Zhang, X.; Wang, N.N.; Gao, X.B. A Robust One-Stage Detector for Multiscale Ship Detection With Complex Background in Massive SAR Images. IEEE Trans. Geosci. Remote Sens. 2022, 60, 1–12. [Google Scholar] [CrossRef] [Scilit]
  6. Li, S.; Fu, X.J.; Dong, J. Improved Ship Detection Algorithm Based on YOLOX for SAR Outline Enhancement Image. Remote Sens. 2022, 14, 4070. [Google Scholar] [CrossRef] [Scilit]
  7. Wang, S.M.; Gao, S.; Zhou, L.; Liu, R.C.; Zhang, H.S.; Liu, J.M.; Jia, Y.; Qian, J. YOLO-SD: Small Ship Detection in SAR Images by Multi-Scale Convolution and Feature Transformer Module. Remote Sens. 2022, 14, 5268. [Google Scholar] [CrossRef] [Scilit]
  8. Guo, Y.; Chen, S.Q.; Zhan, R.H.; Wang, W.; Zhang, J. LMSD-YOLO: A Lightweight YOLO Algorithm for Multi-Scale SAR Ship Detection. Remote Sens. 2022, 14, 4801. [Google Scholar] [CrossRef] [Scilit]
  9. Li, C.N.; Lang, H.T. An Oriented SAR Ship Detector With Mixed Convolution Channel Attention Module and Geometric Nonmaximum Suppression. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2022, 15, 8074–8084. [Google Scholar] [CrossRef] [Scilit]
  10. Yang, S.; An, W.T.; Li, S.B.; Wei, G.L.; Zou, B. An Improved FCOS Method for Ship Detection in SAR Images. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2022, 15, 8910–8927. [Google Scholar] [CrossRef] [Scilit]
  11. Li, H.L.; Chen, S.W. General Polarimetric Correlation Pattern: A Visualization and Characterization Tool for Target Joint-Domain Scattering Mechanisms Investigation. IEEE Trans. Geosci. Remote Sens. 2026, 64, 1–17. [Google Scholar] [CrossRef] [Scilit]
  12. Li, H.L.; Hu, Y.S.; Chen, S.W. SMEN: Scattering Mechanism Embedded Network for Polarimetric Radar Corner Reflector Array Identification. IEEE Trans. Aerosp. Electron. Syst. 2026, 62, 16728–16744. [Google Scholar] [CrossRef] [Scilit]
  13. Chen, Z.; Liu, C.; Filaretov, V.F.; Yukhimets, D.A. Multi-Scale Ship Detection Algorithm Based on YOLOv7 for Complex Scene SAR Images. Remote Sens. 2023, 15, 2071. [Google Scholar] [CrossRef] [Scilit]
  14. Wang, Y.; Dong, G.G.; Shao, S.; Liu, H.W. A Prediction and Prior Information Guided SAR Ship Detection Method. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2023, 16, 7076–7088. [Google Scholar] [CrossRef] [Scilit]
  15. Tang, H.D.; Gao, S.; Li, S.; Wang, P.Y.; Liu, J.Q.; Wang, S.M.; Qian, J. A Lightweight SAR Image Ship Detection Method Based on Improved Convolution and YOLOv7. Remote Sens. 2024, 16, 486. [Google Scholar] [CrossRef] [Scilit]
  16. Li, X.T.; Duan, W.; Fu, X.K.; Lv, X.L. R-SABMNet: A YOLOv8-Based Model for Oriented SAR Ship Detection with Spatial Adaptive Aggregation. Remote Sens. 2025, 17, 551. [Google Scholar] [CrossRef] [Scilit]
  17. Ren, X.Z.; Zhou, P.Y.; Fan, X.Q.; Feng, C.G.; Li, P. LPFFNet: Lightweight Prior Feature Fusion Network for SAR Ship Detection. Remote Sens. 2025, 17, 1698. [Google Scholar] [CrossRef] [Scilit]
  18. He, R.; Han, D.Z.; Shen, X.; Han, B.; Wu, Z.D.; Huang, X.H. AC-YOLO: A lightweight ship detection model for SAR images based on YOLO11. PLoS ONE 2025, 20, e0327362. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  19. Yu, C.S.; Shin, O.S.; Shin, Y. YOSDet: A YOLO-Based Oriented Ship Detector in SAR Imagery. Remote Sens. 2026, 18, 645. [Google Scholar] [CrossRef] [Scilit]
  20. Ba, Y.S.; Xia, N.; Lu, W.J.; Liu, J.Q. A Feature-Enhanced Network-Based Target Detection Method for SAR Images of Ships in Complex Scenes. Remote Sens. 2026, 18, 178. [Google Scholar] [CrossRef] [Scilit]
  21. Saleh, T.; Holail, S.; Weng, X.X.; Xiao, X.W.; Xia, G.S. Ship detection in cosmo-skymed sar imagery using a novel CNN-based detector: A case study from the suez canal. In Proceedings of the 5th International-Society-for-Photogrammetry-and-Remote-Sensing (ISPRS) Geospatial Week (GSW), Cairo, Egypt, 2–7 September 2023; pp. 715–722. [Google Scholar]
  22. Cao, R.; Sui, J.H. A Dynamic Multi-Scale Feature Fusion Network for Enhanced SAR Ship Detection. Sensors 2025, 25, 5194. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  23. Zhang, H.D.; Wu, Y.Q. CSEF-Net: Cross-Scale SAR Ship Detection Network Based on Efficient Receptive Field and Enhanced Hierarchical Fusion. Remote Sens. 2024, 16, 622. [Google Scholar] [CrossRef] [Scilit]
  24. Zhou, Y.; Wang, S.S.; Ren, H.H.; Hu, J.Y.; Zou, L.; Wang, X.G. Multi-Level Feature-Refinement Anchor-Free Framework with Consistent Label-Assignment Mechanism for Ship Detection in SAR Imagery. Remote Sens. 2024, 16, 975. [Google Scholar] [CrossRef] [Scilit]
  25. Wang, C.Y.; Cai, X.J.; Wu, F.; Cui, P.; Wu, Y.; Zhang, Y. Stepwise Attention-Guided Multiscale Fusion Network for Lightweight and High-Accurate SAR Ship Detection. Remote Sens. 2024, 16, 3137. [Google Scholar] [CrossRef] [Scilit]
  26. Zhou, L.M.; Wan, Z.Y.; Zhao, S.; Han, H.Y.; Liu, Y. BFEA: A SAR Ship Detection Model Based on Attention Mechanism and Multiscale Feature Fusion. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2024, 17, 11163–11177. [Google Scholar] [CrossRef] [Scilit]
  27. Mao, Q.Q.; Li, Y.W.; Zhu, Y.M. A Hierarchical Feature Fusion and Attention Network for Automatic Ship Detection From SAR Images. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2024, 17, 13981–13994. [Google Scholar] [CrossRef] [Scilit]
  28. Yu, C.S.; Shin, Y. An efficient YOLO for ship detection in SAR images via channel shuffled reparameterized convolution blocks and dynamic head. ICT Express 2024, 10, 673–679. [Google Scholar] [CrossRef] [Scilit]
  29. Cao, Q.; Chen, H.; Wang, S.; Wang, Y.Q.; Fu, H.S.; Chen, Z.J.; Liang, F. LH-YOLO: A Lightweight and High-Precision SAR Ship Detection Model Based on the Improved YOLOv8n. Remote Sens. 2024, 16, 4340. [Google Scholar] [CrossRef] [Scilit]
  30. Cao, S.; Zhao, C.X.; Dong, J.; Fu, X.J. Ship Detection in Synthetic Aperture Radar Images under Complex Geographical Environments, Based on Deep Learning and Morphological Networks. Sensors 2024, 24, 4290. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  31. Ke, X.; Zhang, X.L.; Zhang, T.W.; Shi, J.; Wei, S.J. SAR ship detection based on an improved faster R-CNN using deformable convolution. In Proceedings of the IEEE International Geoscience and Remote Sensing Symposium (IGARSS), Electr Network, Brussels, Belgium, 12–16 July 2021; IEEE: Piscataway, NJ, USA, 2021; pp. 3565–3568. [Google Scholar]
  32. Li, X.Q.; Li, D.; Liu, H.Q.; Wan, J.; Chen, Z.Y.; Liu, Q.H. A-BFPN: An Attention-Guided Balanced Feature Pyramid Network for SAR Ship Detection. Remote Sens. 2022, 14, 3829. [Google Scholar] [CrossRef] [Scilit]
  33. Ma, X.L.; Cheng, J.K.; Li, A.H.; Zhang, Y.H.; Lin, Z.L. AMANet: Advancing SAR Ship Detection With Adaptive Multi-Hierarchical Attention Network. IEEE Access 2024, 12, 105952–105967. [Google Scholar] [CrossRef] [Scilit]
  34. Dai, D.W.; Dong, C.X.; Yang, X.; Li, Z.F.; Xu, S.H. Striking a better balance between segmentation performance and computational costs with a minimalistic network design. Appl. Soft Comput. 2025, 182, 113549. [Google Scholar] [CrossRef] [Scilit]
  35. Truong, G.B.; Tran, T.T.; Than, N.L.; Nguyen, V.; Nguyen, T.H.; Pham, V. SC-MambaFew: Few-shot learning based on Mamba and selective spatial-channel attention for bearing fault diagnosis. Comput. Electr. Eng. 2025, 123, 110004. [Google Scholar] [CrossRef] [Scilit]
  36. He, K.M.; Zhang, X.Y.; Ren, S.Q.; Sun, J. Deep residual learning for image recognition. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 27–30 June 2016; IEEE: Piscataway, NJ, USA, 2016; pp. 770–778. [Google Scholar]
  37. Zhang, T.W.; Zhang, X.L.; Li, J.W.; Xu, X.W.; Wang, B.Y.; Zhan, X.; Xu, Y.Q.; Ke, X.; Zeng, T.J.; Su, H.; et al. SAR Ship Detection Dataset (SSDD): Official Release and Comprehensive Data Analysis. Remote Sens. 2021, 13, 3690. [Google Scholar] [CrossRef] [Scilit]
  38. Park, J.W.; Korosov, A.A.; Babiker, M.; Sandven, S.; Won, J.S. Efficient Thermal Noise Removal for Sentinel-1 TOPSAR Cross-Polarization Channel. IEEE Trans. Geosci. Remote Sens. 2018, 56, 1555–1565. [Google Scholar] [CrossRef] [Scilit]
  39. Korosov, A.; Demchev, D.; Miranda, N.; Franceschi, N.; Park, J.W. Thermal Denoising of Cross-Polarized Sentinel-1 Data in Interferometric and Extra Wide Swath Modes. IEEE Trans. Geosci. Remote Sens. 2022, 60, 1–11. [Google Scholar] [CrossRef] [Scilit]
  40. Lee, H.; Jung, C.S.; Kim, K.W. Feature Preserving Autofocus Algorithm for Phase Error Correction of SAR Images. Sensors 2021, 21, 2370. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  41. Chen, Y.L.; Shen, Y.Y.; Duan, C.; Wang, Z.P.; Mo, Z.W.; Liang, Y.Y.; Zhang, Q.L. Robust and Efficient SAR Ship Detection: An Integrated Despecking and Detection Framework. Remote Sens. 2025, 17, 580. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Article metric data becomes available approximately 24 hours after publication online.