OSDMamba: Enhancing Oil Spill Detection From Remote Sensing Images Using Selective State-Space Model

Shuaiyu Chen, Fu Wang, Peng Ren, Chunbo Luo, Zeyu Fu

TL;DR

This paper introduces OSDMamba, a novel deep learning architecture for oil spill detection in remote sensing images. By leveraging the Mamba state-space model, OSDMamba effectively addresses the challenges of limited data and class imbalance, achieving state-of-the-art performance.

What Problem Does This Paper Address?

Detecting oil spills from remote sensing imagery is crucial for environmental protection, but it's a challenging task. Existing methods, primarily based on Convolutional Neural Networks (CNNs), struggle with two main issues:

  1. Limited Labeled Data and Class Imbalance: Oil spills are relatively rare events, meaning there's a scarcity of labeled training data. In the images, oil spills often occupy a small fraction of the scene, leading to a significant imbalance between the "sea surface" class and the "oil spill" class. This imbalance can cause models to favor the majority class, leading to poor detection of oil spills.
  2. Limited Receptive Fields of CNNs: CNNs use convolutional filters with fixed receptive fields. For detecting small oil spill areas, these limited fields struggle to capture the broader contextual information needed to distinguish them from look-alike phenomena or to understand their spatial extent.

Methods

The authors propose OSDMamba, a new architecture built upon the Mamba state-space model, specifically tailored for oil spill detection.

  • Mamba-Inspired Encoder: The core of OSDMamba uses a Vision State Space (VSS) Block, a key component of Mamba. This block employs a 2D Selective Scan (SS2D) mechanism. Unlike CNNs, SS2D allows for a much larger effective receptive field by scanning image patches in multiple directions, enabling the model to capture long-range dependencies and global context while still preserving local details. The encoder is structured similarly to Swin-UMamba and VMamba-Tiny, with staged downsampling and a configuration of VSS blocks designed for efficiency and depth.
  • Asymmetric Decoder with ConvSSM: To further enhance feature fusion and sensitivity to minority classes, OSDMamba features an asymmetric decoder.
  • The early stages of the decoder incorporate ConvSSM (Convolutional State Space Model) modules. ConvSSM combines convolutional operations with state-space dynamics, bridging local convolutional priors with global sequence modeling. This helps in preserving spatial boundaries and extracting global context.
  • The later stages use a lighter design with patch expansion and dual VSS blocks.
  • Deep Supervision: To improve multi-level feature fusion and guide the learning process, deep supervision is applied at different scales (1/4, 1/8, and 1/16 of the output resolution). This helps the model learn more effectively from imbalanced datasets.

Datasets

The proposed OSDMamba model was evaluated on two publicly available datasets:

  • M4D Dataset: This dataset contains 1,002 training and 110 testing SAR images with a resolution of 1250 x 650 pixels. It includes five semantic categories: sea surface, oil spill, oil spill look-alike, ship, and land.
  • MADOS Dataset: This dataset comprises 174 high-resolution multispectral Sentinel-2 satellite images collected between 2015 and 2022. It features approximately 1.5 million labeled pixels across 15 thematic categories. The authors note that for presentation purposes, they merged some categories in MADOS into "Oil Spill," "Water," and "Other."

Key Insights and Ideas

  • Mamba's Advantage for Sparse, Imbalanced Data: The core insight is that Mamba's selective scanning mechanism is inherently better suited for capturing long-range dependencies and global context, which is crucial for identifying small, sparse oil spills amidst vast sea surfaces.
  • Bridging Local and Global Information: The combination of CNN-like convolutional operations (in ConvSSM) with Mamba's state-space modeling effectively bridges the gap between local feature extraction and global contextual understanding.
  • Asymmetric Decoder for Targeted Improvement: Designing an asymmetric decoder that uses more complex modules (ConvSSM) in early stages where fine details are critical, and a lighter structure later, is a smart way to optimize performance for imbalanced and small-target detection.
  • Deep Supervision as a Crucial Aid: The significant performance drop when deep supervision is removed highlights its importance in guiding the model to learn from minority classes and improve multi-scale feature fusion.

Key Results

  • State-of-the-Art Performance: OSDMamba achieved state-of-the-art results on both the M4D and MADOS datasets.
  • On the M4D dataset, it achieved a mean Intersection over Union (mIoU) of 70.25%, outperforming all other models. It showed a 12.18% improvement in the oil spill category compared to the second-best model.
  • On the MADOS dataset, it achieved an F1-score of 71.2% and an mIoU of 68.1%, also surpassing competing methods.
  • Improved Detection of Minority Classes: The model demonstrated a strong ability to detect minority classes, particularly oil spills and look-alike regions, which are often missed by traditional methods.
  • Reduced False Positives: The paper highlights that OSDMamba significantly reduces false positives, especially in minority classes, contributing to more reliable detection.
  • Efficiency: Despite its advanced capabilities, OSDMamba is noted to be more efficient in terms of parameter count and computational cost compared to transformer-based counterparts of similar scale.

Limitations and Future Work

  • Limitations: While the paper doesn't explicitly detail limitations, the reliance on pre-trained weights (ImageNet) and the complexity of Mamba's internal mechanisms might be areas for further investigation regarding computational resources and interpretability. The performance gains are significant, but the absolute detection rates for oil spills are still below 70% mIoU, indicating room for improvement.
  • Future Work: The authors suggest that their Mamba-based architecture offers a new perspective for marine oil spill detection. Future work could explore further optimizations of the Mamba architecture for remote sensing tasks, investigate different pre-training strategies, or extend the approach to other environmental monitoring applications. The availability of source code is a positive step for future research.

Summary updated

Abstract

Semantic segmentation is commonly used for oil spill detection (OSD) in remote sensing images. However, the limited availability of labeled oil spill samples and class imbalance present significant challenges that can reduce detection accuracy. Furthermore, most existing methods, which rely on convolutional neural networks (CNNs), struggle to detect small oil spill areas due to their limited receptive fields and inability to effectively capture global contextual information. This study explores the potential of state-space models (SSMs), particularly Mamba, to overcome these limitations, building on their recent success in vision applications. We propose OSDMamba, the first Mamba-based architecture specifically designed for OSD. OSDMamba leverages Mamba’s selective scanning mechanism to effectively expand the model’s receptive field while preserving critical details. Moreover, we designed an asymmetric decoder incorporating ConvSSM and deep supervision to strengthen multiscale feature fusion, thereby enhancing the model’s sensitivity to minority class samples. Experimental results show that the proposed OSDMamba achieves state-of-the-art performance, yielding improvements of 8.9% and 11.8% in OSD across two publicly available datasets. The source codes will be made publicly available at https://github.com/Chenshuaiyu1120/Oil-Spill-detection
BibTeX
@article{chen2025osdmamba,
  author = {Shuaiyu Chen and Fu Wang and Peng Ren and Chunbo Luo and Zeyu Fu},
  title = {{OSDMamba: Enhancing Oil Spill Detection From Remote Sensing Images Using Selective State-Space Model}},
  journal = {IEEE Geosci. Remote. Sens. Lett.},
  year = {2025},
  url = {https://openreview.net/forum?id=WeXAvLkOoD},
}
Figure