A High-Performance and Lightweight Maritime Target Detection Algorithm

Shidan Sun, Zhiping Xu, Xiaochun Cao, Jiachun Zheng, Jiawen Yang, Ni JinRemote 2025 · DOI

TL;DR

This paper introduces HPMTD, a novel deep learning algorithm for maritime target detection that significantly improves accuracy and efficiency. By combining attention-optimized deformable convolutions for robust feature extraction and a lightweight fusion network, HPMTD achieves state-of-the-art performance with reduced model size and computational cost, making it suitable for edge deployment.

What Problem Does This Paper Address?

Maritime surveillance is crucial for security and economic activities, but detecting targets in videos is challenging. Existing systems struggle with:

  • Varying Target Scales: Ships range from small sailboats to large tankers, making it hard to detect both extremes effectively.
  • Adverse Environmental Conditions: Rain, fog, low light, and dynamic water surfaces (waves, wakes) degrade image quality and obscure targets.
  • Limited Edge Computing Power: Maritime surveillance often relies on low-power, low-computation edge devices, restricting the complexity of detection models.

These factors lead to low detection accuracy, missed targets, and slow processing, hindering real-time maritime monitoring.

Methods

The proposed HPMTD algorithm is built upon three core modules:

  1. Attention-Optimized Deformable Convolution for Feature Extraction:
    • Deformable Convolution (DCNv2): This standard technique allows convolutional kernels to adapt their shape to the target's geometry, improving detection of irregularly shaped objects and handling occlusions.
  2. Global Coordinate Attention (GCA): The authors introduce an enhancement to DCNv2 by integrating GCA. GCA helps the model learn more accurate offsets for deformable convolutions by focusing on spatial relationships and suppressing background noise, thereby improving the ability to handle low visibility and occlusions.
  3. Lightweight Shallow Feature Progressive Fusion (SFPF):
    • Ghost Dynamic Convolution (Ghost-D): This module combines the efficiency of "ghost" convolutions (generating more feature maps from fewer computations) with dynamic convolution (allowing weights to adapt to input). This significantly reduces model parameters and computation while maintaining feature representation.
  4. Adaptive Spatial Feature Fusion (ASFF): ASFF is used to fuse features from different scales. It adaptively learns spatial weights for each feature map, enhancing cross-scale interaction and preventing feature loss, which is crucial for detecting targets of varying sizes.
  5. Small Target Detection Layer: An additional layer is incorporated to specifically address the challenge of detecting very small targets.
  6. Multi-Scale Sensing Head:
    • This module is designed to effectively learn and fuse scale-specific features. It incorporates a scale-aware attention mechanism (MultiSEAM) to help the model focus on relevant target areas and improve localization accuracy. The head uses decoupled branches for classification and regression, employing Varifocal Loss (VFL) for classification and Complete IoU (CIoU) and Distribution Focal Loss (DFL) for bounding box regression.

Datasets

The primary dataset used for training and evaluation is the Singapore Maritime Dataset (SMD).

  • SMD: This dataset comprises coastal surveillance videos with challenges like occlusions, category imbalances, and loosely defined bounding boxes. It contains 6350 maritime images sampled from videos, organized in a COCO dataset structure, with nine categories including ferry, buoy, vessel, speedboat, boat, kayak, sail, and bird.

Key Insights and Ideas

  • Attention for Deformable Convolutions is Key: The integration of Global Coordinate Attention (GCA) with deformable convolutions is a critical innovation. It shows that by guiding the learning of deformable offsets with attention, the model becomes much more robust to challenging visual conditions like fog and partial occlusion.
  • Ghost Dynamic Convolutions for Lightweight Fusion: The use of Ghost-D in the fusion module is a smart way to achieve a lightweight design without sacrificing performance. It demonstrates that efficient convolution operations can be effectively leveraged for feature fusion.
  • Progressive Fusion for Scale Invariance: The SFPF module's progressive structure, starting from shallow features and gradually fusing deeper ones, helps bridge the semantic gap between layers and better handle the wide range of target scales present in maritime scenes.
  • Edge-Friendly Design Pays Off: The emphasis on reducing parameters and computation through techniques like Ghost-D and efficient attention mechanisms directly addresses the constraints of edge devices, making the algorithm practical for real-world deployment.

Key Results

The HPMTD algorithm demonstrates significant improvements:

  • Accuracy: Achieves a nearly 10% improvement in mean average precision (mAP) compared to counterparts on the SMD dataset. It shows a 6.1% higher mAP than YOLOv7 and 1.5% higher mAP than YOLOv8m.
  • Efficiency: The model is nearly half the size of comparable models (e.g., 1/4 the size of YOLOv7).
  • Speed: Runs three times faster than RTDETR models with comparable accuracy.
  • Robustness: Maintains nearly the same accuracy in low-visibility maritime conditions (e.g., foggy weather), showcasing its robustness.
  • Small Target Detection: Exhibits a better detection effect on small targets like boats and kayaks.

Limitations and Future Work

  • Further Exploration of Applicability: The authors suggest that while the model performs well under various weather conditions, further exploration into its applicability in scenarios with extreme weather effects and occlusions could be beneficial.
  • Real-time Deployment on Terminal Equipment: The paper aims to solve the problem of high-precision maritime target detection in real-time deployment on terminal equipment. While HPMTD is designed to be lightweight, further optimization for specific edge hardware might be a future direction.

Summary updated

Abstract

Maritime surveillance video (MSV) target detection systems are important for maritime security and ocean economy. Hindered by many complex factors, the existing MSV target detection systems have low detection accuracy. These factors include target distance, potential occlusion from rain and fog, and limited computing power of edge devices. To overcome these factors, a high performance and lightweight maritime target detection algorithm (HPMTD) is proposed in this paper. HPMTD consists of three modules: feature extraction, shallow feature progressive fusion (SFPF), and multi-scale sensing head. In the feature extraction module, a global coordinate attention-optimized offset regression module is proposed for deformable convolution. Thus, the ability to handle low visibility and target occlusion issues is enhanced. In the SFPF module, the ghost dynamic convolution combined with low-cost adaptive spatial feature fusion is proposed. In this way, lightweight design can be realized, and multi-scale target-detecting capacity can be increased. Furthermore, multi-scale sensing head is incorporated to learn and fuse scale features more effectively, thus improving localization accuracy. To evaluate the performance of the proposed algorithm, the Singapore Maritime Dataset is adopted in our experiments. The experimental results show that the proposed algorithm can achieve a nearly 10 percent mean average precision value improvement with nearly half the model size, compared with counterparts. Furthermore, the proposed algorithm runs three times faster with only half of the computation resources, and maintains nearly same accuracy in the maritime surface with low visibility. These results demonstrate that the HPMTD achieves lightweight and high-precision detection of marine targets.
BibTeX
@inproceedings{sun2025high,
  author = {Shidan Sun and Zhiping Xu and Xiaochun Cao and Jiachun Zheng and Jiawen Yang and Ni Jin},
  title = {{A High-Performance and Lightweight Maritime Target Detection Algorithm}},
  booktitle = {Remote},
  year = {2025},
  doi = {10.3390/rs17061012},
}
Figure