Xiaofei Yang, Yao Wei, Jiarong Tan, Shuqi Li, Haojin Tang, Waixi Liu
Deep learning methods have significantly improved hyperspectral image (HSI) classification by exploiting hierarchical feature learning to integrate spatial and spectral information, thus significantly improving classification accuracy. Nevertheless, current deep learning approaches (such as CNNs, Transformers and Mamba) still face three major challenges: inadequate mitigation of spectral redundancy, high computational costs associated with global modeling, and the loss of two-dimensional spatial structure during sequential processing. To address these issues, we propose LMamba, a task-oriented hybrid framework that combines multi-scale convolutional filtering with local-context-conditioned state space modeling for hyperspectral image classification. Rather than introducing a fundamentally new SSM formulation, LMamba focuses on adapting the input-dependent parameter projection of Mamba to HSI data by injecting local 2D neighborhood context into the generation of selective SSM parameters. This design enables the state space module to better preserve spatial continuity while maintaining linear-complexity sequence modeling. The framework consists of two core components. First, the Multi-scale Aggregation and Compression Block (MACB) employs parallel grouped convolutions with varying kernel sizes to capture spatial features at multiple scales while simultaneously reducing spectral redundancy through channel compression. Second, the Locally Guided 2D Scanning Mechanism replaces conventional unidirectional 1D scanning with a context-aware 2D scanning strategy, thereby preserving structural continuity and enhancing feature representation by integrating local neighborhood spatial information into state transitions. Validation on three prominent HSI datasets demonstrates that LMamba consistently outperforms state-of-the-art methods based on CNNs, Transformers, and SSMs as measured by overall accuracy (OA), average accuracy (AA), and the Kappa coefficient. In summary, LMamba provides an efficient and accurate HSI classification framework under the considered benchmark settings, and its compact complexity and low-sample robustness suggest potential usefulness for practical HSI analysis.