Advancing Marine Research: UWSAM Framework and UIIS10K Dataset for Precise Underwater Instance Segmentation

Hua Li, Shijie Lian, Zhiyuan Li, Runmin Cong, Yu Li, Laurence T. Yang, Weidong Zhang, Sam Kwong · DOI

Abstract

With recent breakthroughs in large-scale modeling, the Segment Anything Model (SAM) has demonstrated significant potential in a variety of visual applications. However, due to the lack of underwater domain expertise, SAM and its variants face performance limitations in end-to-end underwater instance segmentation tasks, while their higher computational requirements further hinder their application in underwater scenarios. To address this challenge, we propose a large-scale underwater instance segmentation dataset, UIIS10K, which includes 10,048 images with pixel-level annotations for 10 categories. Then, we introduce UWSAM, an efficient model designed for automatic and accurate segmentation of underwater instances. UWSAM efficiently distills knowledge from the SAM ViT-Huge image encoder into the smaller ViT-Small image encoder via the Mask GAT-based Underwater Knowledge Distillation (MG-UKD) method for effective visual representation learning. Furthermore, we design an End-to-end Underwater Prompt Generator (EUPG) for UWSAM, which automatically generates underwater prompts instead of explicitly providing foreground points or boxes as prompts, thus enabling the network to locate underwater instances accurately for efficient segmentation. Comprehensive experimental results show that our model is effective, achieving significant performance improvements over state-of-the-art methods on multiple underwater instance datasets.

Introduction

Underwater instance segmentation—the task of identifying and outlining every individual object in a sub-sea image—is a cornerstone of modern marine research. Whether it’s counting fish populations, mapping coral reefs, or identifying marine debris, accurate and efficient models are essential. While the Segment Anything Model (SAM) revolutionized computer vision, it faces two major challenges in marine environments: a lack of underwater domain expertise and a massive computational footprint that is unsuitable for low-power hardware found in Autonomous Underwater Vehicles (AUVs).

Underwater environments are optical nightmares; light attenuates rapidly, colors distort, and turbidity creates a "hazy" effect. This research addresses these issues by introducing UIIS10K, a massive new dataset, and UWSAM, a streamlined, end-to-end framework that adapts SAM for the unique challenges of the deep blue.

The UIIS10K Dataset

The paper introduces UIIS10K, which significantly advances underwater benchmarks. It comprises 10,048 images with 41,862 pixel-level instance masks, making it roughly twice the size of the previous UIIS dataset.

Figure 3: Category distribution and instance counts in the UIIS10K dataset, highlighting its taxonomic diversity.

The dataset features 10 distinct categories, including fish, reptiles, corals, mollusks, and even human divers and robots. This diversity allows for robust training and evaluation across a wide range of marine scenarios, moving beyond simple terrestrial datasets like COCO or SA-1B.

The UWSAM Framework

The UWSAM framework bridges the gap between terrestrial foundation models and practical underwater deployment through two primary innovations:

1. Mask GAT-based Underwater Knowledge Distillation (MG-UKD)

To reduce model size without sacrificing accuracy, the authors employ knowledge distillation. A "Teacher" model (SAM ViT-Huge) guides a "Student" model (ViT-Small). Recognizing that underwater objects often appear in clusters (e.g., schools of fish), a Graph Attention Network (GAT) is used to model spatial relationships. By masking patches of the student's features and forcing reconstruction via GAT guidance, the student learns a richer representation of the underwater domain.

2. End-to-end Underwater Prompt Generator (EUPG)

To enable autonomous operation, the EUPG automatically generates prompt embeddings from image features, eliminating the need for manual input. It includes a Channel Attention (CA) layer to mitigate light attenuation by re-weighting color channels—a computationally cheaper alternative to separate dehazing steps—and uses a Region Proposal Network (RPN) to transform object locations into the prompt format required by the SAM mask decoder.

Key Results and Discussion

Experimental results demonstrate that UWSAM achieves state-of-the-art (SOTA) performance while maintaining high efficiency. The UWSAM-Teacher achieved 44.6 mAP on UIIS10K, while the lightweight UWSAM-Student achieved 38.7 mAP, outperforming previous specialized models like WaterMask.

Figure 1: (a) Scale comparison between UIIS and the new UIIS10K dataset. (b) Performance (mAP) vs. Parameters, showing UWSAM's efficiency compared to other models.

Crucially, UWSAM-Student achieves results comparable to much larger SAM variants while using only about 7% of the parameters of USIS-SAM. This efficiency is achieved by integrating prompt generation directly into the model and utilizing domain-specific priors during distillation.

Limitations and Future Work

While UWSAM is a major step forward, several areas for growth remain. The current framework treats frames independently; extending this to Video Instance Segmentation (VIS) would enhance real-world AUV tracking. Additionally, performance in extremely turbid "black water" environments remains a challenge. Future research will also involve benchmarking actual latency on specific edge hardware platforms.

Datasets and codes are available at https://github.com/LiamLian0727/UIIS10K.

Summary updated

BibTeX
@misc{li2025advancing,
  author = {Hua Li and Shijie Lian and Zhiyuan Li and Runmin Cong and Yu Li and Laurence T. Yang and Weidong Zhang and Sam Kwong},
  title = {{Advancing Marine Research: UWSAM Framework and UIIS10K Dataset for Precise Underwater Instance Segmentation}},
  year = {2025},
  eprint = {2505.15581},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.15581},
}
Figure