Abstract Object detection and semantic segmentation have achieved remarkable performance propelled by deep convolutional neural networks. However, neither of them can well parse and deal with swarms of rotating ships in remote sensing images. In this article, we pay more attention to the instance-level segmentation task, which recognizes objects more effectively and straightly. We propose a new network architecture, called orientated silhouette matching network (OSM-Net), employing multiscale features and instance-level masks to enable single-shot and anchor-box-free instance segmentation. To be specific, we propose a novel-orientated polar template mask with orientated mask IoU to better match the ship silhouette. We also design a multiscale feature propagation and fusion module to improve the precision of detection. To further improve the performance, our network adopts Res2Net and Soft-NMS. Extensive experiments on the open datasets, namely Airbus Ship, demonstrate that our method improves the average precision by 14.2 and 10.0 percentage points on Res2Net101, compared with PolarMask and YOLACT.
Introduction
Segmenting ships in remote sensing (satellite) imagery presents unique challenges compared to standard natural image datasets. Traditional object detection relies on horizontal bounding boxes, which often include excessive background noise and overlap significantly when ships are docked in close proximity. While semantic segmentation can identify ship pixels, it frequently fails to separate individual instances within a dense "swarm."
Existing instance segmentation models like PolarMask attempt to model contours using rays emitted from a center point. However, these models typically use uniform angles. Because ships are characterized by high aspect ratios (long and thin), uniform ray sampling often misses the bow and stern, resulting in inaccurate, "stubby" silhouettes. Furthermore, the massive scale variance in satellite imagery—ranging from small fishing boats to massive tankers—requires a more robust approach to feature fusion.
Methodology
OSM-Net is a single-shot, anchor-free framework built upon the FCOS architecture. It introduces several key innovations to address the geometric constraints of maritime targets:
Orientated Polar Template Mask (OPTM)
Unlike previous methods that emit rays at fixed, uniform intervals (e.g., every 10°), OSM-Net first predicts the ship's orientation. It then employs an "angular template" that concentrates ray sampling near the long axis (the bow and stern) while using fewer rays along the sides. This non-uniform sampling captures the sharp features of a ship's silhouette more effectively than uniform methods.
Oriented Mask IoU Loss
To train the model, we introduced a modified Intersection over Union (IoU) loss. This function aligns predicted rays with ground truth rays based on the predicted orientation, ensuring the network learns the correct "pose" of the ship rather than just its general area.
Hierarchical Feature Fusion and Backbone
The network utilizes a custom "Neck" inspired by BiFPN for multiscale feature propagation. This ensures that small ships are not lost in high-resolution noise while large ships are captured in their entirety. The architecture is supported by a Res2Net backbone for superior multiscale representation and Soft-NMS to handle overlapping detections without discarding valid instances.
Experimental Results
The model was evaluated on the Airbus Ship Detection dataset (208,172 images) and the iSAID (Ship Category) dataset.
Quantitative Performance
OSM-Net demonstrates a significant performance leap over existing single-stage methods:
- Accuracy: On the Airbus Ship dataset, OSM-Net (Res2Net101) achieved an Average Precision (AP) of 60.5, outperforming PolarMask by 14.2 points and YOLACT by 10.0 points.
- Efficiency: The model maintains a speed of 14.4 FPS on a GTX 2080 Ti, making it approximately 25% faster than two-stage models like Mask R-CNN while delivering competitive accuracy.
- Qualitative Detail: As shown in the visual results, OSM-Net produces significantly sharper ship shapes, particularly for vessels at diagonal angles where standard polar methods typically fail.
Conclusion
OSM-Net successfully leverages orientation as a geometric prior to improve the accuracy of ship instance segmentation. By aligning the coordinate system to the ship's spine, the polar representation becomes significantly more robust. While the model excels at medium and large ships, future work will focus on refining detection for extremely small, dense targets and addressing the scale imbalance inherent in remote sensing data.
Summary updated