Skip to Content
  • Article
  • Open Access

28 April 2026

29 Pages

OShipNet: Occlusion Ship Detection Based on Multidomain Fusion and Multiscale Refinement

,
,
,
and
1
School of Computer Science and Technology, Zhejiang University of Science and Technology, Hangzhou 310023, China
2
School of Information Science and Technology, Zhejiang Shuren University, Hangzhou 310015, China
3
Center of Research for Cyber Security and Network (CSNET), Faculty of Computer Science and Information Technology, University Malaya, Kuala Lumpur 50603, Malaysia
4
School of Maritime, Jiujiang Polytechnic University of Science and Technology, Jiujiang 332020, China

Abstract

The growth in international trade has precipitated operational demands on port facilities, mandating the development of advanced intelligent monitoring systems. Existing ship detection algorithms struggle with feature confusion and difficulty in extracting contextual features under occlusion, which reduces the discriminability between object features and background noise. This leads to positional misalignment and mismatching of similar targets, which reduce the detection accuracy. To resolve this, we propose OShipNet, an architecture engineered to optimize feature fusion and refinement for occluded ship detection. First, we design the OShipNeXt backbone network, which provides complementary feature representation in frequency and spatial domains. This approach enables the reconstruction of global–local semantic associations for occluded objects, enhancing feature representation and improving detection accuracy. Secondly, to further refine target boundaries, we develop a Multiscale Pooling Attention Module (MSPAM) to enhance contextual awareness and better capture occluded edge features. Furthermore, we propose a dual-path cooperative loss function that mitigates the effects of low-quality bounding boxes. Comprehensive evaluations on the MVDD13 dataset demonstrate the robustness of OShipNet, which achieved 94.98% mAP@50 and 84.37% mAP@50-95, demonstrating advantages over existing object detection methods and establishing an effective framework for intelligent port monitoring.

1. Introduction

With rapid advances in artificial intelligence, computer vision-based ship detection technology significantly enhances real-time monitoring of ship positions and status, improving dispatch efficiency. Specifically, ship detection technology plays a critical role in intelligent collision avoidance [1] and ship tracking [2]. Currently, researchers are exploring intelligent port ship monitoring using UAVs [3] and remote sensing images [4]. UAVs and remote sensing imagery have inherent limitations (endurance, airspace control, cloud interference, low resolution, and latency); their prohibitive computational latency precludes deployment within expansive, zero-delay terrestrial maritime surveillance frameworks. Therefore, the most widely used approach remains the direct use of shore-based surveillance camera networks for real-time ship monitoring. Existing deep learning-based shore-based monitoring methods like ALF-YOLO [5] and PJ-YOLO [6] have achieved limited progress, as they struggle to address ship occlusion issues.
However, in busy ports and major shipping lanes, the high density of vessel traffic often results in minimal spacing between vessels. This leads to frequent occlusions and imposes greater demands on detection models. Specifically, when an object is partially or fully obscured by other objects, the primary challenge in recognition and localization lies in preserving discriminative feature representations in the presence of occlusion and environmental disturbances. Figure 1 illustrates two common ship occlusion scenarios. Figure 1a shows inter-class occlusion between ships of similar categories. Because marine vessels often exhibit strong visual homogeneity in color, texture, and geometry, partial occlusion can easily lead to feature confusion. This challenges the model’s ability to differentiate individual instances based on limited visible regions. Figure 1b represents occlusion induced by perspective. In maritime environments, a single image often contains ships of varying sizes and categories due to the ocean’s wide field of view. Perspective effects create scale ambiguity, where distant ships (occupying a larger visual scale) and closer, smaller ships exhibit similar visual characteristics. This ambiguity exacerbates detection challenges, as models struggle to resolve spatial relationships and accurately distinguish between ships.
Figure 1. Occlusion between ships under two different conditions: (a) shows occlusion between similar classes, while (b) shows occlusion caused by perspective.
Researchers have conducted research on ship occlusion detection. It has been shown that mosaic data augmentation and the improved YOLO algorithm can effectively improve occlusion detection accuracy in simulated environments [7]. In [8], the combination of global intensity and local texture anomaly maps improves the ability to distinguish ships from surrounding waters, leading to more accurate identification. Wang proposed an enhanced YOLOv5 algorithm to reduce false detection of overlapping ships by featuring receptive field expansion and rapid multiscale feature aggregation [9]. YOLO-Vessel [10] builds on YOLOv7 by incorporating an efficient layer aggregation network for more comprehensive feature fusion.
Although researchers have recorded some achievements in ship detection under complex conditions, there are still many challenges. Specifically, these detection methods typically rely on static convolutional kernels and fixed receptive field designs in the feature processing stage. As a result, they are highly sensitive to feature confusion caused by densely packed ship targets or complex backgrounds, lack dynamic context modeling capabilities, and struggle to distinguish ships with similar textures from background pseudo-targets. They also weaken the explicit representation of important local features, resulting in the loss or distortion of target feature information. Such visual ambiguities severely impair algorithmic precision regarding bounding box regression and semantic classification, ultimately degrading performance. Overall, effective feature extraction and representation are important for achieving high-precision detection of occluded ships.
In view of the above limitations, the objective of this study is to develop an occlusion-aware ship detection framework for complex maritime scenes captured by shore-based surveillance cameras. To this end, we propose OShipNet, a dedicated detection framework designed to enhance feature discrimination and localization robustness for ships under dense occlusion, scale variation, and background interference. Specifically, its backbone, OShipNeXt, consists of four hierarchical OShipStages with OShipBlocks to progressively enlarge the receptive field and strengthen the integration of global and local information through spatial–frequency collaborative representations, thereby improving the distinction of overlapping targets. In addition, the proposed Multiscale Pooling Attention Module (MSPAM) is introduced to enhance feature representation and dynamically recalibrate ship-related responses in occluded scenes by combining multiscale processing with large-kernel convolution attention. Furthermore, a dual-path optimization loss is designed to improve both localization and classification performance, where the point calculation factor and dynamic gradient gain distribution factor enhance bounding box regression, while the Exponential Moving Average Sliding Sample Weighting Loss (EMALoss) improves category prediction. To validate the effectiveness of the proposed framework, experiments are conducted on the MVDD13 dataset, which contains multiple ship categories in realistic maritime scenes, and comparisons are performed against representative ship detection methods. Finally, the contributions of this paper are summarized as follows:
  • We propose a new backbone network, OShipNeXt, to alleviate the semantic discontinuity caused by occlusion. By integrating complementary representations from multiple domains, the backbone improves the preservation of visible local structures and strengthens global semantic perception for partially occluded ship targets.
  • We introduce a Multiscale Pooling Attention Module (MSPAM) to enhance contextual interaction and scale adaptation in complex occlusion scenarios. In addition, a dual-path optimization loss is developed to improve bounding-box regression and classification stability for heavily overlapping and low-confidence targets.
  • Based on the above designs, we establish a unified framework, OShipNet, for occluded ship detection in complex maritime scenes. Extensive experiments on the MVDD13, SeaShip7000, and Crowdhuman datasets demonstrate the effectiveness, robustness, and cross-scenario generalization capability of the proposed framework.

3. Proposed Method

3.1. Overall Architecture

Occluded ship detection can be viewed as learning a mapping from an input image to object categories and bounding boxes under incomplete visual observations. Let I denote an input image, and let Y ^ = { ( b ^ i , c ^ i ) } i = 1 N represent the predicted bounding boxes and categories. The overall detection process of OShipNet can be conceptually formulated as:
Y ^ = H F c t x ( F r e p ( I ) )
where F r e p ( · ) denotes the feature representation stage, F c t x ( · ) denotes the contextual refinement stage, and H ( · ) denotes the detection head.
Compared with conventional detector designs that mainly improve a single stage, OShipNet is developed following an occlusion-oriented coordinated design principle. Specifically, the proposed framework is organized around three coupled difficulties in occluded ship detection, namely incomplete local structural cues, contextual and scale ambiguity, and unstable optimization caused by heavily overlapping targets. Accordingly, the proposed framework can be summarized as:
D o c c = F r e p o c c , F c t x o c c , L o c c
where F r e p o c c aims to preserve discriminative visible structures under partial occlusion, F c t x o c c aims to recover contextual and multiscale semantic cues around occluded instances, and L o c c aims to provide stable supervision for ambiguous and overlapping samples during training.
As illustrated in Figure 2, OShipNet is built upon the one-stage object detection framework YOLOv11 and further tailored for occluded ship detection in complex maritime environments. The framework consists of three tightly coupled parts: an occlusion-aware backbone named OShipNeXt, a multiscale contextual refinement module named MSPAM in the neck, and a dual-path optimization loss for localization and classification. Specifically, OShipNeXt is responsible for strengthening feature representation under incomplete visibility, MSPAM enhances contextual interaction and scale adaptation, and the dual-path loss improves optimization stability when targets are heavily overlapped. Through this coordinated design, OShipNet improves its ability to capture discriminative cues under severe occlusion, perspective interference, and complex background interference.
Figure 2. Overall Architecture: (a) represents the overall network architecture; (b–f) represent the specific modules in the network architecture.

3.2. OShipNeXt

In accordance with the works of [28,29], a novel backbone network, OShipNeXt, was conceptualized. This backbone network employs a multidomain joint approach, fusing locational and spectral characteristics to construct comprehensive feature representations. As shown in Figure 2a, OShipNeXt is divided into 1 CBS (Figure 2d) and 4 OShipStages (Figure 2c). Each OShipStage consists of 1 downsampling stage and 2 OShipBlocks. From a conceptual perspective, the proposed OShipNeXt can be expressed as:
X r e p = M L P ( N o r m G E L U C o n c a t ( f 1 ( X ) , f 2 ( X ) , … , f 6 ( X ) ) + X ) + X
where X denotes the input feature, f i ( · ) denotes the transformation of the i-th branch, and X r e p denotes the refined representation. The branch functions are designed to capture complementary cues from different perspectives, including identity-preserved information, local spatial patterns, enlarged receptive-field responses, frequency-aware structures, and receptive-field attention. In this way, OShipNeXt enhances semantic continuity for partially visible targets while retaining fine-grained local details that remain observable under occlusion.
For each feature entering the OShipStage, the feature representation is given by [ B , C 2 , 2 H , 2 W ] , where [ B , C , H , W ] denote the batch size, channels, the height and width of the feature. As illustrated in Figure 2c, the features will first go into the downsampling stage and the feature size [ B , C , H , W ] is obtained by 2× downsampling. Specifically, to prevent information degradation typical in standard ConvNeXt [30] spatial reductions, a normalization layer and the GELU activation function are introduced at our downsampling stage. The normalization layer ensures the stability of the feature distribution, mitigating problems such as vanishing or exploding gradients and improving the training stability of the network. The GELU activation function improves the network’s ability to adapt to occluded environments through its smooth nonlinear mapping. This improved downsampling stage helps the model better retain essential features and reduces the loss of information for occluded objects.
Next, after downsampling stage, the feature with size [ B , C , H , W ] is fed into the OShipBlock for refined feature processing. To facilitate parallel multidomain processing, the incoming tensor within the OShipBlock undergoes channel-wise separation. This systematic splitting yields six independent subsets, each characterized by the geometric shape [ B , C 8 , H , W ] .
The channel split is introduced to allocate the representation capacity of the block to multiple complementary subspaces with different receptive characteristics. Specifically, the split branches are responsible for preserving original information, modeling local spatial textures, enlarging directional receptive fields, capturing frequency-aware structural cues, and performing adaptive receptive-field emphasis. Such a design improves branch diversity while retaining sufficient channel width for each branch. In this way, the block maintains a balance between representation specialization and feature stability, which is important for partially occluded ship targets whose discriminative cues are often fragmented across local structure, contour context, and low-frequency semantics.
More specifically, for the first part of the features, no operations are applied, allowing it to retain the original information. In the second part, a depth-wise separable convolutional operation of 3 × 3 size is adopted on input feature maps, with independent convolution executed for each channel. This approach reduces the computational complexity compared to standard convolution while preserving spatial information [31]. Inspired by GoogLeNet [32], the 11 × 11 large-kernel convolution is decomposed into 1 × 11 and 11 × 1 convolution kernels. The third and fourth parts of the features undergo these convolutions separately. This approach allows the model to achieve a larger receptive field while reducing the computational cost associated with large-kernel convolutions.
The fifth and sixth feature parts are processed by 3 × 3 wavelet convolution [33] after aggregation. We decompose the input feature tensor into four channel-wise frequency elements with halved spatial resolution, process each element via small-kernel depth-wise separable convolution, reconstruct features through inverse discrete wavelet transform, and introduce residual connections to retain input information. This design supports fine-grained multiscale feature extraction and efficient low-frequency feature capture.
For the seventh and eighth features, we aggregate them and apply Receptive-Field Attention Convolution (RFAConv) [34] to introduce spatial attention in the model. By taking into account the importance of features within the receptive field, a dynamic weight adjustment mechanism is used to detect target features at different positions, even under occlusion conditions. The unfold method, which extracts spatial features from the receptive field, further enhances attention to these features, improving network performance. The specific convolutional computation is as follows:
A r f = S o f t m a x ( C o n v g r o u p 1 × 1 ( A v e P o o l ( X i n p u t ) ) )
R r f = R e L U ( N o r m ( C o n v g r o u p 5 × 5 ( X i n p u t ) ) )
X R F A _ o u t = A r f × R r f
A r f represents the attention feature map and R r f represents the receptive field spatial feature map. By highlighting the distinct contributions of different elements in the receiving field and giving greater emphasis to spatial features, RFAConv improves the network’s critical information capture capability.
We aggregate eight processed feature tensors via channel-wise concatenation to reconstruct a feature tensor with dimensionality [ B , C , H , W ] , which is then passed through a GELU activation layer and fused with the original input via residual skip connection. This fusion strategy retains shallow features for fine-grained detail capture in complex scenarios, and simultaneously enhances the model’s feature representation capability and training efficiency. Finally, the feature is passed through the Norm (Normalization Layer) and the MLP (Multilayer Perceptron) to obtain the final OShipBlock output.

3.3. Multiscale Pooling Attention Module (MSPAM)

In ship detection scenarios with frequent occlusion, the correlation between local edge features and global structural information is often weak, making it difficult to infer object presence and boundaries from partially visible observations. In addition, single-scale feature representations extracted by the backbone network lack robustness to scale variations caused by occlusion and perspective changes. To address these limitations, we propose a Multiscale Pooling Attention Module (MSPAM), as shown in Figure 3, which enhances feature representation by jointly leveraging hierarchical context aggregation and adaptive attention refinement. Given an input feature map X, we first obtain a channel-adjusted feature X ′ via a 1 × 1 convolution. Then, multiple pooling operations with different receptive fields are applied to capture contextual information at different scales:
P k ( X ′ ) = M a x P o o l k ( X ′ ) , k ∈ { 1 , 2 , 3 }
The original feature and pooled features are concatenated along the channel dimension to form a multiscale aggregated representation:
X a g g = C o n c a t P 0 ( X ′ ) , P 1 ( X ′ ) , P 2 ( X ′ ) , P 3 ( X ′ ) , P 0 ( X ′ ) = X ′
which effectively enlarges the contextual support region of each spatial location and provides complementary information for occluded regions. Based on this, the overall architecture of MSPAM can be summarized as:
X c t x = A m s ( X a g g )
where A m s ( · ) denotes the subsequent multiscale convolution-attention refinement.
Figure 3. The architecture of multiscale pooling attention module (MSPAM).
Specifically, the aggregated feature X a g g is further processed using a series of depthwise separable convolutions with asymmetric kernels ( 1 × 3 , 3 × 1 ) and expanded kernels ( 1 × 5 , 5 × 1 ), which approximate larger receptive fields while maintaining computational efficiency. In addition, dilated convolutions are introduced to further enlarge the effective receptive field, enabling the model to capture richer global contextual dependencies. After convolutional transformation, the feature is mapped to generate attention weights.
Through this design, MSPAM simultaneously achieves two objectives: alleviating the loss of discriminative information caused by missing information under occlusion, and adaptively recalibrating multiscale feature responses to improve robustness to scale variation and dense spatial overlap. As a result, the proposed module enables the network to better capture both local visible details and global structural cues, thereby improving feature discriminability and detection confidence in complex occlusion scenarios. This design can be further interpreted from a feature propagation perspective: the multiscale pooling paths introduce parallel context flows with different receptive spans, which reduces the dependency on a single-scale feature pathway and improves the continuity of feature propagation under partial occlusion.

3.4. Dual-Path Optimization Loss Function

From an optimization perspective, occluded object detection can be characterized by two major challenges: (1) ambiguous geometric correspondence caused by overlapping bounding boxes, and (2) imbalanced gradient contributions induced by samples of varying difficulty. These issues lead to unstable gradient signals and suboptimal convergence when conventional loss functions are applied.
To address this, the proposed dual-path loss is designed to explicitly regulate both geometric alignment and gradient distribution. Specifically, the localization term focuses on improving the geometric identifiability under overlap, while the classification term dynamically adjusts the gradient contribution across samples of different confidence levels, thereby stabilizing the overall optimization process. In this work, the optimization objective of OShipNet is formulated as:
L d e t o c c = L l o c O I o U + L c l s E M A
where L l o c O I o U denotes the proposed overlap-aware localization loss and L c l s E M A denotes the dynamically weighted classification loss. The localization term is developed to improve bounding-box regression when target geometry becomes ambiguous under heavy overlap, while the classification term enhances supervision for hard and uncertain samples during training.
For bounding-box regression, the baseline model uses CIoU as the regression loss function, which simultaneously considers the center points of bounding boxes and aspect ratio difference between predicted boxes and ground-truth annotations [35]. With the aspect ratio penalty term, CIoU provides effective optimization of both shape consistency and positional alignment. Nevertheless, in occlusion-heavy scenarios, CIoU cannot adequately model the complex geometric relations among partially overlapped targets, which reduces its discriminative capability for highly overlapping bounding boxes. In addition, when the center points of multiple occluded targets are very close, the optimization effect of the center-distance term becomes weakened, thereby limiting localization precision.
To address this issue, we propose a new bounding-box regression loss, termed Occlusion Intersection over Union (OIoU). OIoU consists of three parts, namely the IoU term, a point calculation factor, and a dynamic gradient gain distribution factor, as defined in Equation (11).
L O I o U = 1 − I o U + F p o i n t + F d y n a m i c , I o U = A ∩ B A ∪ B
First, considering the slow convergence speed of the existing IoU loss algorithm, we use the point calculation factor for optimization, as shown in Equation (12), W i m g and H i m g represent the width and height of the image feature, and the equations of d 1 2 and d 2 2 are shown as Equations (13) and (14):
F p o i n t = d 1 2 + d 2 2 W i m g 2 + H i m g 2
d 1 2 = ( x 1 p r e − x 1 g t ) 2 + ( y 1 p r e − y 1 g t ) 2
d 2 2 = ( x 2 p r e − x 2 g t ) 2 + ( y 2 p r e − y 2 g t ) 2
As shown in Figure 4, ( x 1 p r e , y 1 p r e ) , ( x 2 p r e , y 2 p r e ) represent the upper-left and lower-right coordinates of the prediction bounding box, while ( x 1 g t , y 1 g t ) , ( x 2 g t , y 2 g t ) represent those of the ground truth bounding box. The point calculation factor can be interpreted as an explicit coordinate-level constraint that supplements the region-based IoU metric. While IoU provides a coarse measure of overlap, it suffers from gradient sparsity when the predicted and ground-truth boxes have limited intersection. In contrast, the point distance term introduces a dense and continuous gradient signal in the coordinate space, ensuring stable optimization even in low-overlap regimes.
Figure 4. Point calculation factor diagram.
Secondly, to address the ambiguous optimization direction caused by overlapping center points between targets, we introduce a dynamic gradient gain distribution factor. As shown in Equation (15), by using an adaptive penalty coefficient and a nonlinear mapping function, this mechanism balances the gradient contributions of high- and low-quality samples to discriminate occluded targets.
F d y n a m i c = β δ α β − δ · ( 1 − I o U ) · e ρ 2 C w 2 + C h 2
ρ = ( x 2 − x 1 ) 2 + ( y 2 − y 1 ) 2 4
To be specific, β represents the rate of IoU variation, balancing the gradient contributions of high-quality samples and low-quality samples. α controls the fundamental shape of the weight curve, determining the sensitivity of the weight to IoU changes. δ dynamically scales the weight, adaptively adjusting the loss magnitude to prevent numerical instability. Here, C w and C h denote the width and height of the minimum enclosing bounding box, which eliminates convergence-impeding gradient anomalies of the original IoU metric. ρ denotes the squared Euclidean distance between the center point of the predicted bounding box and that of the ground-truth bounding box. The dynamic factor can be viewed as a gradient reweighting mechanism that redistributes optimization emphasis based on the quality of predictions. Specifically, by introducing a nonlinear modulation term dependent on IoU and spatial distance, the proposed formulation amplifies gradients for ambiguous or poorly localized samples while suppressing those for already well-aligned predictions. This mechanism effectively mitigates the gradient domination problem, where easy samples contribute disproportionately to the overall optimization, and ensures that hard occluded instances receive sufficient training signals.
For classification loss, the commonly used binary cross-entropy (BCE) loss measures the discrepancy between the model’s predicted probability and the true label. The model is trained by minimizing this difference, optimizing its classification performance. The formula is given in Equation (17).
L B C E = − [ y ∗ log ( p ) + ( 1 − y ) ∗ log ( 1 − p ) ]
However, the similarity between ships can significantly impact classification accuracy under occlusion. Traditional BCE loss employs a static weight allocation mechanism, treating the prediction error of all samples equally and lacking dynamic attention to hard samples [36,37]. As a result, the model cannot effectively capture fine-grained feature differences between similar targets in dense occlusion scenarios, resulting in a significant decline in classification robustness. In this paper, a new Exponential Moving Average Sliding Sample Weighting Loss Function (EMALoss) is used to distinguish similar targets effectively.
First, based on the object’s IoU values, the image is divided into three regions: low confidence, transition, and high confidence, each of which is assigned a different modulation weight to improve classification adaptability. Next, different factors are applied to different regions. In the low-confidence region, no additional processing is performed. In the transition region, an exponential amplification factor improves the model’s attention to ambiguous boundary targets. In the high-confidence region, an exponential attenuation factor is introduced to mitigate the risk of overfitting. Meanwhile, the mean IoU is updated in real time using the Exponential Moving Average (EMA) algorithm, smoothing training fluctuations and minimizing the impact of local noise on the loss calculation. Finally, the loss function dynamically adjusts the gradient contribution of samples of varying difficulty by incorporating automatically adjusted modulation weights. The specific calculation method is shown in Equations (18) and (20):
M = 1 , score ≤ IoU m − 0.1 e 1 − IoU m , IoU m − 0.1 < score < IoU m e − ( score − 1 ) , score ≥ IoU m
IoU m ( t ) = d · IoU m ( t − 1 ) + ( 1 − d ) · IoU
L E M A L o s s = M e a n ( L B C E ∗ M )
The score denotes the matching value between each predicted bounding box and its paired ground truth annotation, while IoU m represents the exponentially smoothed average IoU, dynamically estimated during training, as defined in Equation (19), d is the exponential smoothing coefficient.
By automatically adjusting the weights, the proposed classification loss dynamically regulates the gradient contributions of samples with different difficulty levels, which can be interpreted as a piecewise gradient scheduling strategy. Specifically, samples are partitioned into low-confidence, transitional, and high-confidence regions according to their IoU scores, and each region is assigned a distinct gradient scaling behavior. When the IoU falls below the threshold, the corresponding samples are treated as hard examples and their weights are increased, thereby reinforcing the learning of ambiguous and poorly localized instances. In contrast, samples in the low-confidence region maintain baseline gradients to preserve training stability, while those in the transitional region receive amplified gradients to enhance discriminability. For high-confidence samples, a progressive weight decay mechanism is applied to attenuate their gradient contributions, preventing them from dominating the optimization process and reducing the risk of convergence to suboptimal local minima with poor generalization performance.

3.5. Datasets

To evaluate OShipNet, we use three public datasets: MVDD13, Seaship7000, and Crowdhuman, for primary evaluation, cross-dataset transfer validation, and dense-occlusion generalization analysis, respectively. Detailed dataset statistics are provided in Appendix A.
MVDD13: MVDD13 is used as the primary benchmark because it explicitly contains occlusion information and is suitable for ship detection in complex maritime scenes. It includes 25,541 training images, 2837 validation images, and 7095 test images, and is used for training, validation, and comparative evaluation in this work.
Seaship7000: Seaship7000 is used to assess the cross-dataset generalization capability of the proposed model. For this purpose, the dataset is re-split into a fine-tuning set and a validation set at a 1:1 ratio, and comparisons between pretrained and non-pretrained settings are conducted.
Crowdhuman: Crowdhuman [38] is further introduced to evaluate the robustness of OShipNet in highly crowded and heavily occluded scenes beyond the maritime domain. It contains 19,370 images, including 15,000 training images and 4370 validation images, and provides a challenging benchmark due to its dense object layout and severe inter-instance occlusion.

3.6. Evaluation Metrics

In this work, the evaluation metrics include Precision (P), Recall (R), mean Average Precision (mAP), model parameters (Params), floating-point operations (FLOPs), and inference time. Following standard practice in object detection, we report both mAP@50 and mAP@50-95. Specifically, mAP@50 is evaluated at an IoU threshold of 0.5, whereas mAP@50-95 is calculated by averaging the mAP values over IoU thresholds from 0.50 to 0.95 with a step size of 0.05. In addition, Params, FLOPs, and inference time are reported to assess model complexity and computational efficiency. Detailed definitions of these metrics are provided in Appendix B.

4. Experiments

4.1. Experimental Settings

The full set of ablation and comparative experiments was carried out on an Ubuntu 20.04 LTS system equipped with an NVIDIA RTX 3090 24 GB GPU, based on the PyTorch 2.2.0 framework and CUDA 11.8. Table 1 summarizes the hyperparameter configurations used in our experiments.
Table 1. Hyperparameter Configuration.
To ensure a fair comparison, all baseline methods and the proposed model were trained and evaluated under the same experimental conditions, including consistent input resolution, training epochs, batch size, optimizer settings, and data augmentation strategies.

4.2. Comparative Experiments

In order to provide a comprehensive demonstration of the efficacy of the proposed method, a comparative analysis is conducted between OShipNet and various advanced detection models. The comparative set includes two-stage detector Faster R-CNN [14], SSD [39], as well as YOLOv5, YOLOv8, YOLOv11 [40], YOLOv12 [41], and the latest Transformer-based detectors, Swin Transformer [24] and RT-DETR [42]. We conduct a comprehensive evaluation of the proposed OShipNet framework across detection accuracy, computational efficiency and robustness, with results summarized in Table 2. Comparative results show that YOLO-series models achieve a better accuracy–efficiency trade-off than the two-stage Faster R-CNN framework. Our OShipNet achieves state-of-the-art performance on all core metrics via occlusion-aware innovations: it reaches 94.98% mAP@50 and 84.37% mAP@50-95, outperforming YOLOv11 by 1.26% and 2.08%, and yields 1.35%, 2.30%, 1.46%, 2.47% gains on Precision, Recall, mAP@50, mAP@50-95 over the YOLOv12 baseline, especially for occluded targets. Meanwhile, OShipNet outperforms Swin Transformer and RT-DETR by a significant margin on all core metrics, demonstrating the effectiveness of our proposed method. In terms of inference time, OShipNet runs at 18.28 ms per image. Although it is slightly slower than several lightweight YOLO baselines, it remains markedly more efficient than Faster R-CNN and Transformer-based detectors, demonstrating a reasonable trade-off between accuracy and inference efficiency. These results indicate that the proposed method does not seek a universally large margin on all samples, but instead provides consistent improvements under the target problem considered in this work, namely occluded ship detection in complex maritime scenes. Notably, the gain is more evident on the stricter metric mAP@50-95, suggesting that the main benefit of OShipNet lies in more reliable localization and box refinement under challenging conditions.
Table 2. Detection performance comparison between OShipNet and other methods.
In addition, we present AP50 metrics for each specific category. As shown in Table 3, OShipNet achieves the best results in most categories, with the highest performance in detecting cargo ships under occlusion. This indicates that OShipNet excels at detecting cargo ships despite occlusion, demonstrating its strong ability to identify objects in various occlusion scenarios. For bulkers and warships, OShipNet did not achieve the highest AP50, but still achieved second-best results with performance close to the best. Bulk carriers exhibit a high degree of visual similarity to cargo ships and oil tankers in terms of shape, texture, and overall structure, which increases inter-class confusion. As shown in the confusion matrix, most misclassified bulk carriers were incorrectly identified as cargo ships or oil tankers. Severe occlusion further reduces the visibility of discriminative cues, thereby making accurate classification more challenging. In addition, compared with some other ship categories, the distinctive characteristics of bulk carriers are relatively subtle, rendering this category more susceptible to feature degradation in complex environments. In summary, the excellent performance of OShipNet provides a new technical path for dense occlusion target detection.
Table 3. Comparison of per-class detection accuracy between OShipNet and other methods.
To further demonstrate the effectiveness of OShipNet, we present the confusion matrix comparing OShipNet and YOLOv12 on the testing set, as shown in Figure 5. The confusion matrix shows that OShipNet achieves high accuracy in classifying many categories, such as cargo (1404), tanker (895), bulker (1006), and cruise (1065). The large diagonal values indicate that OShipNet effectively identifies these target categories with strong classification performance. In addition, there is less confusion between categories such as cargo and tanker, indicating that the model is more stable in distinguishing between these more similar categories. For categories like warship (72), submarine (61), and firefighting (247), despite the smaller sample sizes, OShipNet still maintains a significant number of correct predictions along the diagonal. This indicates that OShipNet demonstrates a notable ability to recognize smaller categories as well. Finally, we also provide the OShipNet and YOLOv12 Precision-Recall curves, as shown in Figure 6.
Figure 5. Confusion Matrix.
Figure 6. Precision–Recall Curve.

4.3. Visualization

In addition, we conducted visualization experiments on the MVDD13 dataset using the aforementioned mainstream detection algorithms to further evaluate the performance of OShipNet in ship detection. The visualization results are presented in Figure 7. From the visualization results, OShipNet demonstrates clear advantages in several aspects. Firstly, in terms of target localization, its detection bounding boxes exhibit a higher degree of overlap with the ground truth labels, and the bounding boxes are more precise, indicating a stronger target regression capability. In the first set of images, compared to the YOLO series and Transformer-based methods, OShipNet more accurately outlines the ship’s contours and effectively identifies the target ship even in occluded scenarios. Secondly, OShipNet maintains strong detection performance even under perspective occlusion. For instance, in the second set of images, when faced with illumination changes and perspective interference, Faster R-CNN, SSD, and other methods exhibited missed detections or bounding box deviations. In contrast, OShipNet accurately detected the object. Finally, in the third set of images, when dealing with a densely packed ship scenario, OShipNet exhibited relatively good robustness. Compared to other methods such as YOLOv5 and YOLOv8, its detection boxes were more complete, and its target classification was more accurate.
Figure 7. Visualization Results.
To provide a more intuitive interpretation of the proposed method, we further compare the feature responses of YOLOv11 and OShipNet at the Backbone, Neck, and Detection Head stages using heatmap visualization. As shown in Figure 8, the baseline YOLOv11 exhibits relatively scattered activations, and some responses are distributed over background regions rather than being concentrated on the occluded ship targets. By contrast, OShipNet produces more compact and target-consistent responses throughout the network.
Figure 8. GradCAM Visualization Results.
At the Backbone stage, OShipNet shows stronger activation on the main ship body and key structural parts, indicating that the proposed feature extractor is more capable of preserving informative local cues under occlusion. At the Neck stage, the highlighted regions become more continuous and semantically coherent, suggesting that the feature fusion strategy improves the aggregation of multiscale contextual information and suppresses irrelevant background interference. At the Detection Head stage, OShipNet exhibits more target-focused responses with less activation dispersion, which reflects a more stable localization tendency in complex maritime scenes.
From a practical perspective, the advantage of OShipNet is more apparent in difficult visual conditions, including partial occlusion, perspective-induced overlap, and densely distributed ship instances. In these scenarios, the proposed model produces more complete detections, fewer missed targets, and bounding boxes that are more consistent with the ground truth. The Grad-CAM visualizations also show that OShipNet yields more compact and target-focused responses than YOLOv11 across the backbone, neck, and detection head, indicating that the proposed design is better able to preserve discriminative information and suppress irrelevant background responses under occlusion.

4.4. Ablation Study

In this section, we verify the contribution and effectiveness of each module in OShipNet through rigorous ablation experiments. We adopt a multidimensional evaluation system including Precision, Recall, mAP@50, mAP@50-95, FLOPs and Parameters, and keep all other configurations strictly consistent during the experiments to accurately quantify the contribution of each module.

4.4.1. Effect of Modules

To verify the effectiveness of the proposed modules, we conducted a systematic ablation study on the OShipNet framework, and the detailed results are reported in Table 4. Each row in the table corresponds to one ablation configuration based on the baseline model, and the checkmarks indicate which modules are enabled, including the OShipNeXt backbone, the multiscale pooling attention module (MSPAM), and the dual-path loss function. Compared with the baseline model, replacing the original backbone with OShipNeXt improves the mAP@50-95 from 81.90% to 83.62%, demonstrating that the proposed backbone is more effective in extracting fine-grained and discriminative features. When MSPAM is introduced individually, the mAP@50-95 increases to 83.85%, indicating that multiscale pooling and attention operations enhance feature representation capability. Adding the dual-path loss alone improves the mAP@50 from 93.52% to 94.05%, showing its effectiveness in optimizing localization quality. When these modules are further combined, the overall performance is consistently improved. Finally, the full model achieves the best detection accuracy, with Precision, Recall, mAP@50, and mAP@50-95 reaching 95.89%, 89.56%, 94.98%, and 84.37%, respectively, which confirms the complementary benefits of the proposed backbone, attention module, and loss design.
Table 4. Ablation study of the proposed modules.

4.4.2. Effect of Different Backbone Networks

To verify the effectiveness of our proposed OShipNeXt backbone, we conducted controlled comparative experiments with different mainstream backbones while keeping all other modules fixed, with results shown in Table 5. OShipNeXt achieves the best performance across all metrics: it outperforms the second-best InceptionNeXt by 0.13% in mAP@50 and 0.21% in mAP@50-95, and delivers 1.75% mAP@50 and 2.97% mAP@50-95 gains over ConvNeXt v1, demonstrating its superior fine-grained localization capability under high IoU thresholds. This performance gain is attributed to the spatial–frequency domain information fusion in OShipNeXt, which enhances the model’s overall feature representation capability. Meanwhile, OShipNeXt shows superior lightweight efficiency in parameter count and computational cost compared with the other three backbone networks. Its resource requirements are significantly lower than those of ConvNeXt v1 (46.9 G FLOPs, 22.55 M Parameters) and InceptionNeXt (38.2 G FLOPs, 18.51 M Parameters).
Table 5. Ablation experiments between different backbone networks.

4.4.3. Effect of Proposed Loss Function

In object detection, the overall optimization objective is generally composed of a classification loss and a localization loss, which can be written in a simplified form as Equation (21).
L d e t = L c l s + L l o c
where L c l s denotes the classification loss used to supervise category prediction, and L l o c denotes the localization loss used to optimize bounding box regression. Therefore, to comprehensively evaluate the effectiveness of the proposed loss design, we conduct ablation experiments from both aspects. Specifically, for the localization loss, we verify the effectiveness of the proposed point calculation factor and dynamic gradient gain distribution factor through different hyperparameter settings. For the classification loss, we compare different classification loss combinations together with different IoU losses.
To evaluate the effectiveness of the proposed point calculation factor and dynamic gradient gain distribution factor in bounding box regression, we introduce the hyperparameters λ and μ into the localization loss, as defined in Equation (22).
L l o c = 1 − I o U + λ F p o i n t + μ F d y n a m i c
where F p o i n t denotes the point calculation factor and F d y n a m i c denotes the dynamic gradient gain distribution factor. The corresponding ablation results are reported in Table 6. Each row in the table corresponds to one specific hyperparameter setting ( λ , μ ) .
Table 6. Ablation results of different hyperparameter settings in the proposed localization loss. Each row corresponds to one ( λ , μ ) configuration.
As shown in Table 6, when only the point calculation factor is introduced, i.e., λ = 1 and μ = 0 , the mAP@50 and mAP@50-95 increase by 1.25 % and 0.29 % , respectively, compared with the conventional IoU-based regression setting ( λ = 0 , μ = 0 ) . In addition, this setting yields the highest recall, indicating that the point calculation factor is beneficial for improving localization stability and reducing missed detections. When only the dynamic gradient gain distribution factor is employed, i.e., λ = 0 and μ = 1 , the model gains 0.74 % in mAP@50 and 0.92 % in mAP@50-95, which demonstrates that this factor can effectively enhance regression quality by adaptively adjusting gradient allocation during optimization.
Furthermore, when the two factors are jointly introduced, the detection performance is further improved, which confirms that they provide complementary benefits in bounding box optimization. Among all tested settings, the best performance is achieved when λ = 1 and μ = 1 , where the model obtains 95.89 % precision, 89.56 % recall, 94.98 % mAP@50, and 84.37 % mAP@50-95. By contrast, when both hyperparameters are increased to 2, the performance drops noticeably. This phenomenon suggests that excessively strong regression penalties may lead to unstable optimization and oscillation around the optimum, thereby hindering effective convergence.
To further verify the effectiveness of the proposed loss design, we also compare different combinations of classification loss and IoU-based localization loss, and the results are listed in Table 7. Each row in the table corresponds to one specific loss function configuration, where the first column denotes the classification loss and the second column denotes the IoU-based regression loss.
Table 7. Comparison of different classification and IoU loss combinations. Each row corresponds to one loss function configuration.
First, the classification loss is fixed as BCE Loss, while different IoU losses are adopted for bounding box regression. The results show that the proposed OIoU loss achieves the best performance among all compared IoU-based losses under the BCE setting, reaching 94.61 % mAP@50 and 84.15 % mAP@50-95. In particular, compared with the second-best PowerIoU [43], OIoU improves mAP@50 by 0.34 % and mAP@50-95 by 0.26 % , which demonstrates its stronger capability in localization optimization.
Next, when the classification loss is replaced by EMALoss, the model performance is further improved. Among all combinations, the EMALoss + OIoU configuration achieves the best overall results, with precision, recall, mAP@50, and mAP@50-95 reaching 95.89 % , 89.56 % , 94.98 % , and 84.37 % , respectively. Compared with the second-best EMALoss + PowerIoU combination, it yields additional gains of 0.27 % in precision, 0.45 % in recall, 0.17 % in mAP@50, and 0.09 % in mAP@50-95. These results indicate that the proposed OIoU regression loss and the adopted classification loss design can work collaboratively to improve both localization accuracy and overall detection robustness.

4.4.4. Random-Seed Stability Analysis

To further verify that the performance gains are not caused by random fluctuations during training, we conducted additional experiments with different random seeds. Specifically, both YOLOv11 and OShipNet were trained and evaluated three times using seeds 0, 42, and 999, while keeping all other experimental settings unchanged. For each metric, we report the mean, standard deviation, and 95% confidence interval. The 95% confidence interval was computed as
C I 95 % = x ¯ ± t 0.975 , n − 1 s n
where x ¯ denotes the sample mean, s denotes the sample standard deviation, and n is the number of repeated runs.
As shown in Table 8, OShipNet consistently outperforms YOLOv11 across all three random seeds. Averaged over the three runs, OShipNet improves Precision, Recall, mAP@50, and mAP@50-95 by 1.00, 1.50, 1.10, and 2.05 percentage points, respectively. More importantly, the confidence intervals of the two models on the main detection metrics are clearly separated. For mAP@50, the 95% confidence interval is [93.66, 93.82] for YOLOv11 and [94.52, 95.16] for OShipNet. For mAP@50-95, the corresponding intervals are [82.09, 82.43] and [84.10, 84.52], respectively. This indicates that the improvement of OShipNet remains consistent under different random initializations.
Table 8. Performance stability under different random seeds.
To further provide an intuitive understanding of performance stability, Figure 9 presents boxplot visualizations of the metric distributions across different random seeds. It can be observed that OShipNet consistently achieves higher median performance than YOLOv11 on all evaluation metrics, while maintaining comparable or slightly larger variance due to its higher performance ceiling. More importantly, the interquartile ranges of the two models exhibit minimal overlap, and the overall distributions are clearly separated, especially for mAP@50 and mAP@50-95.
Figure 9. Performance comparison across different random seeds.

4.5. Fine-Tuning Experiment

To verify the generalization capability of our model, we conducted fine-tuning experiments on the Seaship7000 dataset, using weights trained on the MVDD13 dataset as pre-trained initialization parameters. The Seaship7000 dataset was re-split into a fine-tuning training set and a validation set at a 1:1 ratio, with experimental results detailed in Table 9. Overall, the pretrained models showed performance improvements in most metrics compared to their non-pretrained counterparts. In particular, Figure 10 compares the loss and mAP@50-95 of pretrained and nonpretrained OShipNet on the Seaship7000 dataset.
Table 9. Results of fine-tuning experiments on the Seaship7000 dataset.
Figure 10. Loss and mAP@50-95 curves of pretrained and non-pretrained OShipNet.
As shown in Figure 10, the pretrained OShipNet achieves lower loss and higher accuracy. Next, our proposed OShipNet achieved the best overall performance after fine-tuning, with Precision of 97.53%, Recall of 97.89%, mAP@50 of 98.96%, and mAP@50-95 of 84.07%, outperforming all other models in each evaluation metric. Compared to the best performing model YOLOv11, OShipNet still leads by 0.04% in mAP@50 and 0.87% in mAP@50-95, demonstrating its improvements in localization capability. OShipNet achieves significant performance superiority over Transformer-based models including Swin Transformer and RT-DETR on both mAP@50 and mAP@50-95 metrics, which validates its strong robustness and generalization capability after pre-training. These results demonstrate that the introduction of pretraining significantly improves the detection performance of OShipNet, further highlighting its strong adaptability and effectiveness in real-world scenarios with different ship types and occlusion conditions.
Finally, we give a visualization of the results of each model on Seaship7000, as shown in Figure 11. Compared to other fine-tuned models, the fine-tuned OShipNet shows more reliable detection performance, accurately locating and identifying targets with high completeness and accuracy. Compared to models such as Faster R-CNN, Swin Transformer, and RT-DETR, the fine-tuned OShipNet produces fewer false positives in the visualized examples. In addition, compared to YOLOv12 and YOLOv8, the fine-tuned OShipNet achieves higher confidence scores for each target while maintaining accurate localization. As a result, the fine-tuned OShipNet yields fewer missed and incorrect detections and shows more consistent alignment with ground truth annotations, especially in complex scenarios with dense or overlapping ship instances. This highlights the strong generalization capability and robustness of OShipNet.
Figure 11. Fine-tuned visualization on Seaship7000 dataset.

4.6. Generalization Experiment

To further evaluate cross-domain occlusion robustness beyond maritime scenes, we conducted additional experiments on the public Crowdhuman dataset. Unlike MVDD13, Crowdhuman is a non-maritime benchmark with substantially different object categories and scene characteristics, but it contains dense layouts and severe occlusion, which makes it suitable for assessing the cross-domain robustness of occlusion-oriented detectors.
The comparative results are shown in Table 10. As observed, the proposed method achieves competitive performance across all evaluation metrics, including Precision, Recall, mAP@50, and mAP@50-95. Specifically, the proposed method attains 87.36%, 76.36%, 85.74%, and 57.35%, respectively, demonstrating consistent improvements over most baseline models. Compared with the strongest baseline (YOLOv12), the proposed method achieves a performance gain of 1.18% in mAP@50-95, indicating better localization accuracy and scale adaptability under varying data distributions. In comparison with two-stage detectors and Transformer-based methods, the proposed approach achieves superior performance while maintaining relatively lower computational complexity. These results indicate that the proposed framework maintains strong feature representation capability and stable detection performance even when applied to datasets with different characteristics.
Table 10. Comparison results on the Crowdhuman dataset.
Figure 12 illustrates the qualitative comparison of detection results across different models. It can be observed that existing methods exhibit varying degrees of performance degradation when handling complex object distributions and occlusion patterns, including missed detections, inaccurate localization, and redundant predictions. In contrast, the proposed method demonstrates more consistent detection results, with higher alignment between predicted bounding boxes and ground truth annotations, as well as reduced false positives and false negatives.
Figure 12. Crowdhuman Dataset Visualization Results.
Overall, the experimental results demonstrate that the proposed method generalizes effectively across different datasets and maintains robust performance under diverse visual conditions.

5. Discussion

The experimental results indicate that OShipNet is effective for occluded ship detection in complex maritime scenes. The performance gains suggest that the proposed framework is able to better preserve and exploit discriminative information when targets are partially visible, densely distributed, or subject to scale variation. In particular, the improvements observed across the experiments imply that the combination of enhanced feature representation, contextual interaction, and adaptive optimization contributes to more robust detection under challenging conditions.
From the experimental observations, OShipNet shows clear advantages in scenarios where conventional detectors are more easily affected by occlusion and background interference. This indicates that the model is capable of capturing not only local visual cues from incomplete targets but also useful contextual information from surrounding regions, which is important for maritime scenes involving overlapping vessels and cluttered backgrounds. In addition, the stable performance on the Seaship7000 dataset further suggests that the proposed method has a certain degree of generalization ability beyond the primary training setting. Generalization experiments on the Crowdhuman dataset further show that OShipNet can achieve reliable detection performance in more general occlusion scenarios, which provides additional evidence of the generalization capability of the proposed method.
Nevertheless, several limitations remain. First, categories with high visual similarity, such as bulk carriers, cargo ships, and oil tankers, are still prone to misclassification, especially in crowded or heavily occluded scenes where fine-grained structural differences are difficult to preserve. Second, although the proposed framework improves detection accuracy, the introduction of multiple enhanced modules also increases computational cost compared with standard lightweight detectors, which may restrict its use in real-time or resource-limited deployment environments. These findings suggest that future research should place greater emphasis on fine-grained category discrimination and inference efficiency, so as to further improve the practicality of the model in real maritime applications.

6. Conclusions

In this paper, we present OShipNet, an efficient ship detection framework designed to address the challenges of insufficient feature extraction and degraded detection performance under ship occlusion. Specifically, we develop OShipNeXt, a multidomain feature fusion backbone, to enhance semantic representation by exploiting the complementarity between frequency domain and spatial domain features, thereby improving contextual reasoning in occluded regions. In addition, the proposed MSPAM module strengthens feature representation through multiscale processing and adaptive attention refinement, which helps suppress false detections caused by complex backgrounds. Furthermore, a dual-path optimization loss is introduced to jointly improve classification and bounding-box regression, leading to more accurate predictions. Experimental results on the MVDD13 dataset demonstrate that OShipNet achieves 94.98% mAP@50 and 84.37% mAP@50-95, outperforming competing methods in overall detection performance. Further experiments on the Seaship7000 dataset show that OShipNet benefits effectively from pre-training, while results on the Crowdhuman dataset verify its robustness and generalization capability on public occlusion detection benchmarks. Compared with existing methods, OShipNet provides an occlusion-oriented solution by integrating feature representation, contextual refinement, and loss optimization into a unified framework. In future work, we will further investigate lightweight and edge-oriented deployment strategies to better satisfy the stability and efficiency requirements of marine surveillance applications.

Author Contributions

Conceptualization, S.Y.; methodology, H.L.; validation, H.L.; formal analysis, Z.X.; investigation, J.Y.; resources, Z.X.; writing—original draft preparation, H.L. and S.Y.; writing—review and editing, J.Y., Z.X. and W.Z.; visualization, H.L. and W.Z.; Supervision, W.Z.; project administration, J.Y.; funding acquisition, S.Y. All authors have read and agreed to the published version of the manuscript.

Funding

Research was funded by the “Pioneer” and “Leading Goose” R&D Program of Zhejiang (No. 2024C01109 and No. 2024C01135).

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Datasets

Appendix A.1. MVDD13 Dataset

We selected the open dataset MVDD13 [44], which contains occlusion information, as our experimental dataset. MVDD13 comprises 13 categories: Cargo ship, Tanker, Bulker, Containership, Tug, Fishing boat, Drill ship, Passenger ship, Cruise ship, Warship, Sailing boat, Submarine, and Firefighting ship. The entire dataset includes 25,541 training images, 2837 validation images, and 7095 test images. The statistical distribution of the dataset is summarized in Table A1, with the overall sample distribution visualized in Figure A1. The size distribution across vessel categories and per-class instance counts in the testing set are detailed in Figure A2.
Table A1. Distribution of MVDD13 dataset.
Figure A1. Dataset distribution of MVDD13 dataset.
Figure A2. Labels distribution of MVDD test dataset.

Appendix A.2. Seaship7000 Dataset

The SeaShip7000 dataset consists of approximately 7000 images collected from real maritime environments. It contains six ship categories, namely bulk cargo carrier, container ship, fishing boat, general cargo ship, ore carrier, and passenger ship. Owing to its diverse imaging conditions and complex background interference, the dataset provides a suitable benchmark for evaluating the robustness and generalization capability of detection models. In this study, the dataset is re-divided into a fine-tuning set and a validation set at a ratio of 1:1, and is further used to assess the cross-dataset generalization performance of the proposed method under both pretrained and non-pretrained settings. The distribution of annotated targets in the SeaShip7000 dataset is illustrated in Figure A3.
Figure A3. Dataset distribution of Seaship7000 dataset.

Appendix A.3. Crowdhuman Dataset

The Crowdhuman dataset is further employed to evaluate the robustness of the proposed method in highly crowded and severely occluded scenarios beyond the maritime domain. It contains 19,370 images, comprising 15,000 training images and 4370 validation images. Owing to its dense object distribution and substantial inter-instance occlusion, Crowdhuman serves as a highly challenging benchmark for assessing the model’s capability to perceive and localize targets under complex occlusion patterns. An example image from the Crowdhuman dataset is presented in Figure A4.
Figure A4. Example image from the Crowdhuman dataset.

Appendix B. Metrics

The evaluation metrics adopted in this work include Precision (P), Recall (R), mean Average Precision (mAP), Model Parameters (Params), Floating Point Operations (FLOPs) and Inference Time. Precision measures the ratio of correctly predicted positive samples to all model positive predictions, reflecting the reliability of positive outputs; Recall quantifies the ratio of correctly identified positive samples to all ground-truth positives, characterizing the model’s target retrieval capability. The calculation formulas of Precision and Recall are shown in Equations (A1) and (A2), where TP, FP and FN denote the number of true positives, false positives and false negatives, respectively. Params represents the total number of trainable parameters in the model, reflecting its structural complexity; FLOPs denotes the amount of floating-point computation required for a single forward pass, which is commonly used to measure computational cost; Inference Time refers to the time consumed by the model to process one input sample, indicating its practical efficiency in deployment scenarios.
P r e c i s i o n = T P T P + F P
R e c a l l = T P T P + F N
The mean Average Precision (mAP) metric is subdivided into two variants, mAP@50 and mAP@50-95. mAP@50 denotes the mean Average Precision calculated at a fixed IoU threshold of 0.5, with its mathematical formulation given in Equation (A3).
m A P @ 50 = ∑ i = 1 N A P i @ 0.5 N
where A P i @ 0.5 represents the average precision of class i when IoU = 0.5, and its calculation formula is given in Equation (A4).
A P @ 0.5 = ∫ 0 1 P ( R ) d R , I o U = 0.5
mAP@50-95 is obtained by calculating the mean Average Precision (mAP) across multiple IoU thresholds (0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, and 0.95), and then averaging the results.
m A P @ 50 - 95 = ∑ i = 0 9 m A P @ ( 50 + 5 i ) 10

References

  1. Wang, N.; He, H.; Hou, Y.; Han, B. Model-free visual servo swarming of manned-unmanned surface vehicles with visibility maintenance and collision avoidance. IEEE Trans. Intell. Transp. Syst. 2023, 25, 697–709. [Google Scholar] [CrossRef] [Scilit]
  2. Zhang, B.; Liu, J.; Liu, R.W.; Huang, Y. Deep-learning-empowered visual ship detection and tracking: Literature review and future direction. Eng. Appl. Artif. Intell. 2025, 141, 109754. [Google Scholar] [CrossRef] [Scilit]
  3. Yang, Z.; Yu, X.; Dedman, S.; Rosso, M.; Zhu, J.; Yang, J.; Xia, Y.; Tian, Y.; Zhang, G.; Wang, J. UAV remote sensing applications in marine monitoring: Knowledge visualization and review. Sci. Total Environ. 2022, 838, 155939. [Google Scholar] [CrossRef] [Scilit]
  4. Chen, W.; Han, B.; Yang, Z.; Gao, X. Mssdet: Multi-scale ship-detection framework in optical remote-sensing images and new benchmark. Remote Sens. 2022, 14, 5460. [Google Scholar] [CrossRef] [Scilit]
  5. Wang, S.; Li, Y.; Qiao, S. ALF-YOLO: Enhanced YOLOv8 based on multiscale attention feature fusion for ship detection. Ocean Eng. 2024, 308, 118233. [Google Scholar] [CrossRef] [Scilit]
  6. Liu, Y.; Li, C.; Fu, G. PJ-YOLO: Prior-Knowledge and Joint-Feature-Extraction Based YOLO for Infrared Ship Detection. J. Mar. Sci. Eng. 2025, 13, 226. [Google Scholar] [CrossRef] [Scilit]
  7. Zeng, G.; Yu, W.; Wang, R.; Lin, A. Research on mosaic image data enhancement for overlapping ship targets. arXiv 2021, arXiv:2105.05090. [Google Scholar] [CrossRef] [Scilit]
  8. Luu, V.H.; Luong, N.H.H.; Bui, Q.H.; Nguyen, T.N.T. Robust Anomaly-Based Ship Proposals Detection from Pan-sharpened High-Resolution Satellite Image. arXiv 2018, arXiv:1804.09322. [Google Scholar]
  9. Wang, L.; Zhang, Y.; Lin, Y.; Yan, S.; Xu, Y.; Sun, B. Ship detection algorithm based on YOLOv5 network improved with lightweight convolution and attention mechanism. Algorithms 2023, 16, 534. [Google Scholar] [CrossRef] [Scilit]
  10. Li, Z.; Deng, Z.; Hao, K.; Zhao, X.; Jin, Z. A ship detection model based on dynamic convolution and an adaptive fusion network for complex maritime conditions. Sensors 2024, 24, 859. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  11. Krizhevsky, A.; Sutskever, I.; Hinton, G.E. Imagenet classification with deep convolutional neural networks. Adv. Neural Inf. Process. Syst. 2012, 25, 84–90. [Google Scholar] [CrossRef] [Scilit]
  12. Redmon, J.; Divvala, S.; Girshick, R.; Farhadi, A. You only look once: Unified, real-time object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2016; pp. 779–788. [Google Scholar]
  13. Carion, N.; Massa, F.; Synnaeve, G.; Usunier, N.; Kirillov, A.; Zagoruyko, S. End-to-end object detection with transformers. In Proceedings of the European Conference on Computer Vision; Springer: Berlin/Heidelberg, Germany, 2020; pp. 213–229. [Google Scholar]
  14. Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 39, 1137–1149. [Google Scholar] [CrossRef] [Scilit]
  15. Chen, Z.; Chen, D.; Zhang, Y.; Cheng, X.; Zhang, M.; Wu, C. Deep learning for autonomous ship-oriented small ship detection. Saf. Sci. 2020, 130, 104812. [Google Scholar] [CrossRef] [Scilit]
  16. Han, X.; Zhao, L.; Ning, Y.; Hu, J. ShipYolo: An enhanced model for ship detection. J. Adv. Transp. 2021, 2021, 1060182. [Google Scholar] [CrossRef] [Scilit]
  17. Wu, C.M.; Lei, J.; Li, Z.Q.; Ren, M.L. Ship_YOLO: General ship detection based on mixed distillation and dynamic task-aligned detection head. Ocean Eng. 2025, 323, 120616. [Google Scholar]
  18. Chen, X.; Wu, H.; Han, B.; Liu, W.; Montewka, J.; Liu, R.W. Orientation-aware ship detection via a rotation feature decoupling supported deep learning approach. Eng. Appl. Artif. Intell. 2023, 125, 106686. [Google Scholar] [CrossRef] [Scilit]
  19. Pérez-Hernández, F.; Tabik, S.; Lamas, A.; Olmos, R.; Fujita, H.; Herrera, F. Object detection binary classifiers methodology based on deep learning to identify small objects handled similarly: Application in video surveillance. Knowl.-Based Syst. 2020, 194, 105590. [Google Scholar] [CrossRef] [Scilit]
  20. Gilroy, S.; Jones, E.; Glavin, M. Overcoming occlusion in the automotive environment—A review. IEEE Trans. Intell. Transp. Syst. 2019, 22, 23–35. [Google Scholar] [CrossRef] [Scilit]
  21. Zhou, R.; Gu, M.; Pan, H. YOLO-SWD—An Improved Ship Recognition Algorithm for Feature Occlusion Scenarios. Appl. Sci. 2025, 15, 2749. [Google Scholar]
  22. Wang, Y.; Wang, B.; Fan, Y. PPGS-YOLO: A lightweight algorithms for offshore dense obstruction infrared ship detection. Infrared Phys. Technol. 2025, 145, 105736. [Google Scholar] [CrossRef] [Scilit]
  23. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. In Proceedings of the 31st International Conference on Neural Information Processing Systems (NIPS’17); Curran Associates Inc.: Red Hook, NY, USA, 2017; pp. 6000–6010. [Google Scholar]
  24. Liu, Z.; Lin, Y.; Cao, Y.; Hu, H.; Wei, Y.; Zhang, Z.; Lin, S.; Guo, B. Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision; IEEE: Piscataway, NJ, USA, 2021; pp. 10012–10022. [Google Scholar]
  25. Liang, J.A.; Ding, J.J. Swin Transformer for Pedestrian and Occluded Pedestrian Detection. In Proceedings of the 2024 IEEE International Symposium on Circuits and Systems (ISCAS); IEEE: Piscataway, NJ, USA, 2024; pp. 1–5. [Google Scholar]
  26. Zhang, J.; Xia, K.; Huang, Z.; Wang, S.; Akindele, R.G. OBhunter: An ensemble spectral-angular based transformer network for occlusion detection. Expert Syst. Appl. 2024, 248, 123324. [Google Scholar] [CrossRef] [Scilit]
  27. Wang, N.; Wang, Y.; Feng, Y.; Wei, Y. AodeMar: Attention-aware occlusion detection of vessels for maritime autonomous surface ships. IEEE Trans. Intell. Transp. Syst. 2024, 25, 13584–13597. [Google Scholar] [CrossRef] [Scilit]
  28. Woo, S.; Debnath, S.; Hu, R.; Chen, X.; Liu, Z.; Kweon, I.S.; Xie, S. Convnext v2: Co-designing and scaling convnets with masked autoencoders. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2023; pp. 16133–16142. [Google Scholar]
  29. Yu, W.; Zhou, P.; Yan, S.; Wang, X. Inceptionnext: When inception meets convnext. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2024; pp. 5672–5683. [Google Scholar]
  30. Liu, Z.; Mao, H.; Wu, C.Y.; Feichtenhofer, C.; Darrell, T.; Xie, S. A convnet for the 2020s. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2022; pp. 11976–11986. [Google Scholar]
  31. Yue, L.; Ren, Y.; Zeng, Y.; Zhang, J.; Zeng, K.; Zhou, M.; Wan, J. Two-layer tensor decomposition for temporal kge graph completion. Expert Syst. Appl. 2025, 287, 127953. [Google Scholar] [CrossRef] [Scilit]
  32. Szegedy, C.; Liu, W.; Jia, Y.; Sermanet, P.; Reed, S.; Anguelov, D.; Erhan, D.; Vanhoucke, V.; Rabinovich, A. Going deeper with convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2015; pp. 1–9. [Google Scholar]
  33. Finder, S.E.; Amoyal, R.; Treister, E.; Freifeld, O. Wavelet convolutions for large receptive fields. In Proceedings of the European Conference on Computer Vision; Springer: Berlin/Heidelberg, Germany, 2024; pp. 363–380. [Google Scholar]
  34. Zhang, X.; Liu, C.; Yang, D.; Song, T.; Ye, Y.; Li, K.; Song, Y. RFAConv: Innovating spatial attention and standard convolutional operation. arXiv 2023, arXiv:2304.03198. [Google Scholar]
  35. Zheng, Z.; Wang, P.; Liu, W.; Li, J.; Ye, R.; Ren, D. Distance-IoU loss: Faster and better learning for bounding box regression. In Proceedings of the AAAI Conference on Artificial Intelligence; AAAI: Washington, DC, USA, 2020; Volume 34, pp. 12993–13000. [Google Scholar]
  36. Feng, C.; Tzimiropoulos, G.; Patras, I. NoiseBox: Toward More Efficient and Effective Learning With Noisy Labels. IEEE Trans. Circuits Syst. Video Technol. 2021, 34, 11914–11928. [Google Scholar] [CrossRef] [Scilit]
  37. Feng, C.; Patras, I. Maskcon: Masked contrastive learning for coarse-labelled dataset. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2023; pp. 19913–19922. [Google Scholar]
  38. Shao, S.; Zhao, Z.; Li, B.; Xiao, T.; Yu, G.; Zhang, X.; Sun, J. Crowdhuman: A benchmark for detecting human in a crowd. arXiv 2018, arXiv:1805.00123. [Google Scholar] [CrossRef] [Scilit]
  39. Liu, W.; Anguelov, D.; Erhan, D.; Szegedy, C.; Reed, S.; Fu, C.Y.; Berg, A.C. Ssd: Single shot multibox detector. In Proceedings of the Computer Vision–ECCV 2016: 14th European Conference, Amsterdam, The Netherlands, 11–14 October 2016; Proceedings, Part I 14; Springer: Berlin/Heidelberg, Germany, 2016; pp. 21–37. [Google Scholar]
  40. Khanam, R.; Hussain, M. Yolov11: An overview of the key architectural enhancements. arXiv 2024, arXiv:2410.17725. [Google Scholar] [CrossRef] [Scilit]
  41. Tian, Y.; Ye, Q.; Doermann, D. Yolov12: Attention-centric real-time object detectors. arXiv 2025, arXiv:2502.12524. [Google Scholar]
  42. Zhao, Y.; Lv, W.; Xu, S.; Wei, J.; Wang, G.; Dang, Q.; Liu, Y.; Chen, J. Detrs beat yolos on real-time object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2024; pp. 16965–16974. [Google Scholar]
  43. Liu, C.; Wang, K.; Li, Q.; Zhao, F.; Zhao, K.; Ma, H. Powerful-IoU: More straightforward and faster bounding box regression loss with a nonmonotonic focusing mechanism. Neural Netw. 2024, 170, 276–284. [Google Scholar] [CrossRef] [Scilit]
  44. Wang, N.; Wang, Y.; Wei, Y.; Han, B.; Feng, Y. Marine vessel detection dataset and benchmark for unmanned surface vehicles. Appl. Ocean Res. 2024, 142, 103835. [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

Multiple requests from the same IP address are counted as one view.