Spatial and Spatial-Spectral Morphological Mamba for Hyperspectral Image Classification

Muhammad Ahmad, Muhammad Hassaan Farooq Butt, Adil Mehmood Khan, Manuel Mazzara, Salvatore Distefano +4 more
8/2/2024
cs.CVeess.IV

Official code: mahmad000/MorpMamba (10 stars, last commit 2025-04-14). 1 more implementation below.

Abstract

Recent advancements in transformers, specifically self-attention mechanisms, have significantly improved hyperspectral image (HSI) classification. However, these models often suffer from inefficiencies, as their computational complexity scales quadratically with sequence length. To address these challenges, we propose the morphological spatial mamba (SMM) and morphological spatial-spectral Mamba (SSMM) model (MorpMamba), which combines the strengths of morphological operations and the state space model framework, offering a more computationally efficient alternative to transformers. In MorpMamba, a novel token generation module first converts HSI patches into spatial-spectral tokens. These tokens are then processed through morphological operations such as erosion and dilation, utilizing depthwise separable convolutions to capture structural and shape information. A token enhancement module refines these features by dynamically adjusting the spatial and spectral tokens based on central HSI regions, ensuring effective feature fusion within each block. Subsequently, multi-head self-attention is applied to further enrich the feature representations, allowing the model to capture complex relationships and dependencies within the data. Finally, the enhanced tokens are fed into a state space module, which efficiently models the temporal evolution of the features for classification. Experimental results on widely used HSI datasets demonstrate that MorpMamba achieves superior parametric efficiency compared to traditional CNN and transformer models while maintaining high accuracy. The code will be made publicly available at \url{https://github.com/mahmad000/MorpMamba}.

View on arXivView PDF

Code Implementations(2)

Spatial-Spectral Morphological Mamba for Hyperspectral Image Classification

102Jupyter NotebookNov 25, 20241 years ago
mahmad00/MorpMambaCommunity100%

MorpMamba: Spatial-Spectral Morphological Mamba for Hyperspectral Image Classification

20Sep 28, 20242 years ago

Similar Papers

Cite this paper

@article{ahmad2024spatial,
  title  = {Spatial and Spatial-Spectral Morphological Mamba for Hyperspectral Image Classification},
  author = {Muhammad Ahmad and Muhammad Hassaan Farooq Butt and Adil Mehmood Khan and Manuel Mazzara and Salvatore Distefano and Muhammad Usama and Swalpa Kumar Roy and Jocelyn Chanussot and Danfeng Hong},
  year   = {2024},
  eprint = {2408.01372},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.01372v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.01372.svg)](https://codeofpaper.com/paper/2408.01372)

Discussion