Hyperspectral image (HSI) classification is an important task in the field of remote sensing, with far-reaching practical significance. Most Convolutional Neural Networks (CNNs) only focus on local spatial features and ignore global spectral dependencies, making it difficult to completely extract spectral information in HSI. In contrast, Vision Transformers (ViTs) are widely used in HSI due to their superior feature extraction capabilities. However, existing Transformer models have challenges in achieving spectral–spatial feature fusion and maintaining local structural consistency, making it difficult to strike a balance between global modeling capabilities and local representation. To this end, we propose a Prompt-Gated Transformer with a Spatial–Spectral Enhancement (PGTSEFormer) network, which includes a Channel Hybrid Positional Attention Module (CHPA) and Prompt Cross-Former (PCFormer). The CHPA module adopts a dual-branch architecture to concurrently capture spectral and spatial positional attention, thereby enhancing the model’s discriminative capacity for complex feature categories through adaptive weight fusion. PCFormer introduces a Prompt-Gated mechanism and grouping strategy to effectively model cross-regional contextual information, while maintaining local consistency, which significantly enhances the ability for long-distance dependent modeling. Experiments were conducted on five HSI datasets and the results showed that overall accuracies of 97.91%, 98.74%, 99.48%, 99.18%, and 92.57% were obtained on the Indian pines, Salians, Botswana, WHU-Hi-LongKou, and WHU-Hi-HongHu datasets. The experimental results show the effectiveness of our proposed approach.
Hyperspectral image classification (HSIC) serves as a fundamental task in remote sensing, enabling fine-grained and detailed interpretation of land-cover characteristics. However, substantial spectral redundancy and spatial heterogeneity make it difficult to learn discriminative spectral--spatial representations. Most existing methods exploit first-order spectral information and isotropic spatial interactions, which are insufficient for characterizing high-order inter-channel dependencies and direction-sensitive spatial structures. To overcome these issues, we propose a Manifold-Aware Spectral Covariance and Directional Anchor Network (MSCANet), which integrates second-order Riemannian-aware spectral modeling with anisotropic global dependency learning. Specifically, we first propose the Cascaded Riemannian Covariance Enhancement (CRCE) module to construct compact symmetric positive definite (SPD) descriptors from grouped spectral features. Through low-rank modeling and geometry-consistent refinement on the SPD manifold, CRCE effectively exploits intrinsic second-order correlations to amplify spectral separability, while mitigating the cubic channel-wise complexity. Second, we introduce a Spatial-Spectral Anisotropic Gaussian Anchor Attention (S2AGA), which extracts content-adaptive anchors via spatial elliptical kernels and channel-wise anisotropy to reconstruct global dependencies through degree-calibrated Markov restoration, scaling efficiently with O(NK) complexity. Experimental results on four benchmark datasets (IP, SA, WHU-HC, and WHU-HH) reveal that MSCANet achieves state-of-the-art performance, yielding overall accuracies of 97.81%, 98.50%, 98.12%, and 98.71%, respectively, while maintaining fewer parameters and lower computational cost.