Abstract
Underwater camouflaged instance segmentation (UCIS) presents a unique "double whammy" challenge: the optical distortions of aquatic environments combined with the intentional ambiguity of camouflaged organisms. This paper introduces UCIS4K, the first large-scale dataset specifically designed for this task, containing 3,953 high-quality annotated images. To address the limitations of existing models, we propose UCIS-SAM, which integrates frequency-domain analysis and channel balancing into the Segment Anything Model (SAM) framework. UCIS-SAM achieves a state-of-the-art Average Precision (AP) of 54.0 on the UCIS4K benchmark, significantly outperforming both terrestrial-focused models and general-purpose foundation models.
Introduction
Detecting and segmenting objects underwater is notoriously difficult due to light scattering, low contrast, and the characteristic "blue-green" color shift. These difficulties are compounded when the target is a camouflaged organism, such as a flatfish mimicking the seabed or a pygmy seahorse blending into coral. Existing Camouflaged Instance Segmentation (CIS) datasets, like COD10K and NC4K, are dominated by terrestrial species and fail to account for the unique optical properties of the ocean. Furthermore, even powerful foundation models like SAM struggle with camouflage because the boundaries between the object and the background are intentionally obscured.
The UCIS4K Dataset
To bridge the data gap, we present UCIS4K, a comprehensive dataset featuring 3,953 images of camouflaged marine organisms.
- Diversity and Quality: The dataset includes a wide variety of species (fish, shrimp, crabs, seahorses) across complex scenarios involving occlusion, transparency, and intricate contours. It offers higher-resolution images compared to previous benchmarks.
- The Small Object Challenge: Analysis reveals that over 50% of instances in UCIS4K are "small" (occupying less than 10% of the image area), a factor that contributes to the failure of general-purpose models in this domain.
Methodology: UCIS-SAM
We propose UCIS-SAM, which enhances the SAM architecture with three specialized modules designed to handle underwater camouflage:
- Channel Balance Optimization Module (CBOM): Acts as a learnable white balance to mitigate the blue-green tint typical of deep-water photography by correcting color bias in the encoder’s features.
- Frequency Domain True Integration Module (FDTIM): Since camouflage relies on spatial patterns, we utilize Fourier Transforms to identify and filter out deceptive high-amplitude frequency components, unmasking the underlying physical features of the object.
- Multi-scale Feature Frequency Aggregation Module (MFFAM): Employs Discrete Wavelet Transforms (DWT) to separate features into low-frequency (global structure) and high-frequency (fine details) components. This allows for better prompt generation and sharper boundary detection.
Experimental Evaluation
UCIS-SAM sets a new state-of-the-art across multiple benchmarks. On the UCIS4K dataset, it achieved an AP of 54.0, outperforming the previous best model, DCNet, by 3.3 points. Notably, standard SAM2 achieved only 11.6 AP in a zero-shot context, highlighting the necessity of domain-specific adaptation.
Qualitative results demonstrate that UCIS-SAM successfully segments complex instances, such as partially occluded fish, where competing models like OSFormer or Mask2Former often fail or suffer from background "leakage." Furthermore, UCIS-SAM shows strong generalization, outperforming existing SOTA models even on terrestrial datasets like COD10K.
Conclusion
By combining a novel, large-scale underwater dataset with a frequency-aware adaptation of SAM, this work provides a robust framework for unmasking camouflage in the water. Future research will focus on expanding the UCIS4K dataset and optimizing the computational complexity of the frequency-domain modules to enable real-time deployment on autonomous underwater vehicles (AUVs).
Summary updated