SXSFormer: Spectral Squeeze and Expansion Swin Transformer Network for Hyperspectral Image Classification
Hyperspectral images (HSIs) are highly complex, containing an enhanced spectral dimension compared to conventional images. Deep learning methods are increasingly being applied to process this three-dimensional data for hyperspectral image classification (HSIC). Existing convolutional and transformer-based methods often struggle with capturing fine-grained spectral-spatial dependencies, achieving high accuracy while balancing computational complexity. In order to solve these problems, we propose a novel SXSFormer network for HSIC. This novel approach integrates Squeeze and Expansion (SX) blocks into the Swin Transformer architecture to enhance feature extraction and attention mechanisms in the model. At its core, the novel SX Block recalibrates channel-wise features by temporarily expanding and then compressing channel dimensionality, allowing the model to focus on informative spectral bands and capture complex interdependencies. The SXSFormer, equipped with window-based multi-head self-attention, efficiently captures long-range dependencies with reduced computational complexity by partitioning input data into non-overlapping windows. Additionally, the SX block’s integration within the Swin Transformer enables improved global contextual understanding by selectively weighting the feature maps. We further refine the architecture using various components, such as patch extraction and embedding layers, and a patch merging strategy, ensuring efficient multi-scale feature extraction. Extensive experiments on four benchmark HSI datasets (SA, IP, PU, and KSC) demonstrate that the proposed model achieves remarkable test accuracies of 99.97%, 98.15%, 99.63%, and 98.14%, respectively, outperforming existing state-of-the-art methods. Our proposed approach also shows good generalization ability when applied to new datasets. Overall, our proposed approach represents a promising direction for HSIC.
Authors
- Shabbab Ali Algamdi (ORCID: https://orcid.org/0000-0003-3435-6681)
- Khalil Khan (ORCID: https://orcid.org/0000-0002-0864-5255)
- Giovanni Pau (ORCID: https://orcid.org/0000-0002-5798-398X)
- Farhan Ullah (ORCID: https://orcid.org/0000-0001-7971-7992)
- Haya Aldossary (ORCID: https://orcid.org/0009-0003-4076-1541)
- Irfan Ullah (ORCID: https://orcid.org/0000-0003-4664-4840)
- Quan Wang (ORCID: https://orcid.org/0000-0001-5483-0243)
Institutions
- Prince Sattam Bin Abdulaziz University (SA)
- Università degli Studi di Enna Kore (IT)
- Chengdu University of Technology (CN)
- Imam Abdulrahman Al Faisal Hospital (SA)
- Nazarbayev University (KZ)
- Imam Abdulrahman Bin Faisal University (SA)
- Wuxi Institute of Technology (CN)
Publication Details
- Journal
- IEEE Transactions on Consumer Electronics
- Published
- 2025-06-06
- DOI
- https://doi.org/10.1109/tce.2025.3577484
- Citations
- 2
- Primary Topic
- Remote-Sensing Image Classification
- Type
- article
- Field-Weighted Citation Impact
- 2.27