Skip to main content
QUICK REVIEW

[Paper Review] S$^2$Mamba: A Spatial-spectral State Space Model for Hyperspectral Image Classification

Guanchun Wang, Xiangrong Zhang|arXiv (Cornell University)|Apr 28, 2024
Remote-Sensing Image ClassificationEngineering15 citations
TL;DR

S2Mamba introduces a spatial-spectral state space model for hyperspectral image classification by using Patch Cross Scanning and Bi-directional Spectral Scanning with a Spatial-spectral Mixture Gate, achieving linear complexity and improved accuracy over several baselines.

ABSTRACT

Land cover analysis using hyperspectral images (HSI) remains an open problem due to their low spatial resolution and complex spectral information. Recent studies are primarily dedicated to designing Transformer-based architectures for spatial-spectral long-range dependencies modeling, which is computationally expensive with quadratic complexity. Selective structured state space model (Mamba), which is efficient for modeling long-range dependencies with linear complexity, has recently shown promising progress. However, its potential in hyperspectral image processing that requires handling numerous spectral bands has not yet been explored. In this paper, we innovatively propose S$^2$Mamba, a spatial-spectral state space model for hyperspectral image classification, to excavate spatial-spectral contextual features, resulting in more efficient and accurate land cover analysis. In S$^2$Mamba, two selective structured state space models through different dimensions are designed for feature extraction, one for spatial, and the other for spectral, along with a spatial-spectral mixture gate for optimal fusion. More specifically, S$^2$Mamba first captures spatial contextual relations by interacting each pixel with its adjacent through a Patch Cross Scanning module and then explores semantic information from continuous spectral bands through a Bi-directional Spectral Scanning module. Considering the distinct expertise of the two attributes in homogenous and complicated texture scenes, we realize the Spatial-spectral Mixture Gate by a group of learnable matrices, allowing for the adaptive incorporation of representations learned across different dimensions. Extensive experiments conducted on HSI classification benchmarks demonstrate the superiority and prospect of S$^2$Mamba. The code will be made available at: https://github.com/PURE-melo/S2Mamba.

Motivation & Objective

  • Motivate improved land-cover classification from hyperspectral images with efficient long-range dependency modeling.
  • Develop a spatial-spectral framework that jointly captures spatial context and continuous spectral information.
  • Propose a learnable fusion gate to adaptively merge spatial and spectral representations per pixel.
  • Demonstrate linear complexity and competitive parameter efficiency compared to Transformer-based methods.

Proposed method

  • Patch Cross Scanning (PCS) applies selective state-space scanning to patch-level spatial routes to capture contextual relationships between adjacent pixels.
  • Bi-directional Spectral Scanning (BSS) analyzes continuous spectral bands via bi-directional interaction to extract semantic spectral features.
  • A Spatial-spectral Mixture Gate (SMG) learns per-pixel fusion weights to adaptively combine spatial and spectral representations.
  • The framework uses selective structured state space models (Mamba) to achieve long-range dependency modeling with linear complexity.
  • Discretization of state-space equations via zero-order hold and first-order Taylor approximation enables efficient sequence processing.
  • Classification is performed on top of fused spatial-spectral features for each pixel.

Experimental results

Research questions

  • RQ1How can selective structured state space models be extended to capture both spatial and spectral dependencies in hyperspectral data?
  • RQ2Can PCS and BSS provide complementary information that, when fused, improve hyperspectral land cover classification?
  • RQ3Does a learnable spatial-spectral fusion gate improve performance over naive feature concatenation or simple weighting?
  • RQ4What are the efficiency benefits (in terms of complexity and parameters) of S2Mamba relative to Transformer-based approaches for HSI classification?

Key findings

  • S2Mamba achieves superior overall accuracy, average accuracy, and kappa on Indian Pines, Pavia University, and Houston 2013 compared to multiple baselines including Transformer-based methods.
  • PCS captures spatial contextual relations by scanning patches from multiple directions using a Mamba-based mechanism.
  • BSS leverages spectral continuity by scanning spectral bands in bi-directional directions to extract spectral semantics.
  • SMG dynamically fuses spatial and spectral features per pixel, with a gating threshold to prune redundant information.
  • S2Mamba demonstrates linear computational complexity and a small parameter footprint, outperforming state-of-the-art Transformer-based models in experiments.
  • Ablation shows that combining PCS, BSS, and SMG yields the best OA/AA/Kappa across datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.