A multiscale transformer with spatial attention for hyperspectral image classification
Irfan Ahmad, Ghulam Farooque, Fazal Hadi, Abdolraheem Khader, Sara Ghorashi, A S Faraz Ahmed, Eatedal Alabdulkreem
Nanjing University of Science and Technology · University of Lahore
Key points
From the paper's conclusion- Initially, the proposed framework utilizes 3-D and 2-D convolution layers, followed by spatial attention to prioritize and focus on the most critical spatial features.
Abstract
Hyperspectral images (HSIs) are renowned for their rich spatial and spectral information, which is crucial for accurate classification. The acquisition of discriminative spectral-spatial features plays a pivotal role in determining classification results. While convolutional neural networks (CNNs) have demonstrated remarkable performance in HSI classification, increasing network depth can lead to performance degradation. Furthermore, their fixed scale and limited receptive field restrict the ability to capture long-range dependencies, hindering effective feature learning and, consequently, affecting the generalization capability of the framework. This paper presents a novel HSIs classification framework, MTSA-Net, which integrates a multiscale transformer with a spatial attention mechanism, resulting in a more robust, flexible, and high-performing approach. Initially, the proposed framework utilizes 3-D and 2-D convolution layers, followed by spatial attention to prioritize and focus on the most critical spatial features. These enhanced features are then passed through multiscale transformer encoders to capture local and global representations, effectively modeling long-range dependencies. Finally, a feature fusion module combines features extracted at varying scales, leading to a more robust and comprehensive feature representation for final classification. Extensive experiments on five widely used benchmark HSIs datasets demonstrate that the proposed MTSA-Net method outperforms state-of-the-art approaches, particularly with limited training samples. The overall accuracies of 98.84%, 98.77%, 99.80%, 97.84%, and 95.87% are achieved on the Indian Pines, Pavia University, Salinas Valley, Houston-13, and Houston-18 datasets, respectively. The source code for this work will be accessible at https://github.com/irfan01000 for reproducibility.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Spatial contextual learning for hyperspectral imagery classification using transformer encoder framework based ensemble modelDiscover Applied Sciences · 2026
- Hyperspectral Image Classification with Multi-Path 3D-CNN and Coordinated Hierarchical AttentionRemote Sensing · 2025
- MGWT: Hyperspectral Image Classification Based on a Multi-Granularity Weight Transformer NetworkRemote Sensing · 2026
- Transformers meet hyperspectral imaging: A comprehensive study of models, challenges and open problemsEngineering Applications of Artificial Intelligence · 2026
- Dual-Branch Spatial–Spectral Transformer with Spatial Feature Enhancement for Hyperspectral Image ClassificationRemote Sensing · 2026
- Multi‐Scale graph wavelet convolutional network for hyperspectral image classificationFrontiers in Remote Sensing · 2025