HSIMamba: Hyperpsectral Imaging Efficient Feature Learning with Bidirectional State Space for Classification

Judy X. Yang, Jun Zhou, Jing Wang, Hui Tian, Alan Wee-Chung LiewarXiv 2024 · DOI

Introduction

Hyperspectral imaging (HSI) presents a significant challenge for deep learning due to its high dimensionality, often containing hundreds of narrow spectral bands per pixel. While identifying land cover—such as distinguishing between various types of vegetation or soil—is critical for remote sensing, current architectures face a trade-off between computational efficiency and global context modeling. Convolutional Neural Networks (CNNs) are efficient but lack long-range reasoning, whereas Vision Transformers (ViTs) capture global context at a quadratic computational cost ($O(N^2)$), making them unsuitable for resource-constrained environments like on-satellite processing.

HSIMamba addresses this "Goldilocks" problem by introducing a framework based on Bidirectional State Space Models (SSMs). By leveraging the "Mamba" architecture, HSIMamba achieves state-of-the-art accuracy with linear complexity ($O(N)$), offering a faster and more memory-efficient alternative to existing models.

Methods: The HSIMamba Architecture

The core of the framework is the HSIMamba Block, which treats spectral bands as a sequence. Unlike standard unidirectional SSMs, HSIMamba employs bidirectional pathways to capture complex dependencies across the light signatures from both directions.

Architecture of the HSIMamba framework, featuring the bidirectional HyperspectralBiNetworks block.

Key architectural components include:

  • HyperspectralBiNetworks Block: Processes the spectral sequence forward and backward, ensuring a holistic feature representation.
  • Bidirectional Reversed CNNs: Integrated 1D convolutional layers capture local spectral features before global sequence modeling by the SSM.
  • Spatial Feature Processing Block: A dedicated 2D CNN-based module that handles spatial relationships between neighboring pixels after spectral extraction.
  • Linear Scalability: The model scales gracefully as the number of spectral bands increases, maintaining high efficiency.

Datasets and Experimental Setup

The model was validated on three gold-standard hyperspectral benchmarks:

  1. Houston 2013: 144 spectral bands, focused on urban land cover.
  2. Indian Pines: 200 spectral bands, focused on agriculture and forestry.
  3. Pavia University: 103 spectral bands, focused on urban environments with high spatial resolution.

Key Results and Performance

HSIMamba consistently outperformed state-of-the-art (SOTA) models, including SpectralFormer. On the Houston 2013 dataset, it achieved an Overall Accuracy (OA) of 97.29%, outperforming competitors by nearly 10%. It reached 89.92% OA on Indian Pines and a near-perfect 98.08% on Pavia University.

Beyond accuracy, the model demonstrated a 30% faster inference time than equivalent Transformer models and maintained a low memory footprint (~126 MB during training).

Impact of patch size on Overall Accuracy (OA) for the Pavia University dataset.

The model's performance is sensitive to input patch size, typically peaking at 5x5 or 11x11 depending on the specific dataset. This sensitivity highlights the importance of balancing local spatial detail with broader context.

Discussion and Future Work

The success of HSIMamba stems from its ability to bridge the gap between local CNN strengths and global SSM reasoning without the overhead of patch embedding found in ViTs. Bidirectional processing proved crucial, as light signatures do not have a natural temporal direction.

Future research directions include:

  • Universal Configuration: Developing methods to automatically determine the optimal patch size for different datasets.
  • Hardware Deployment: Testing performance on actual edge devices or on-satellite hardware.
  • Multi-Modal Fusion: Extending the Mamba architecture to integrate HSI data with LiDAR or SAR (Synthetic Aperture Radar) for enhanced classification in complex environments.

Summary updated

BibTeX
@misc{yang2024hsimamba,
  author = {Judy X. Yang and Jun Zhou and Jing Wang and Hui Tian and Alan Wee-Chung Liew},
  title = {{HSIMamba: Hyperpsectral Imaging Efficient Feature Learning with Bidirectional State Space for Classification}},
  year = {2024},
  eprint = {2404.00272},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.00272},
}
Figure