Next Article in Journal
Communication-Efficient Federated Class-Incremental Intrusion Detection for Edge IoT Networks
Previous Article in Journal
Intelligent Urban Traffic Congestion Prediction Through Accident-Aware and Time-Dependent Traffic Analytics
Previous Article in Special Issue
Adaptive Knowledge Tracing with Dynamic Memory and Reinforcement Learning
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Multi-Scale Semantic Selection and Spatial Constraint-Guided Network for Cross-Scene Hyperspectral Image Classification

1
College of Computer Science and Information Engineering, Harbin Normal University, Harbin 150025, China
2
Department of Municipal and Environmental Engineering, Harbin Vocational University of Architectural Technology, Harbin 150025, China
3
School of Communication Engineering, Hangzhou Dianzi University, Hangzhou 310018, China
4
College of Geography Science, Harbin Normal University, Harbin 150025, China
5
Teaching Experiment Equipment Management Center, Harbin Normal University, Harbin 150025, China
*
Authors to whom correspondence should be addressed.
Sensors 2026, 26(14), 4627; https://doi.org/10.3390/s26144627
Submission received: 20 June 2026 / Revised: 19 July 2026 / Accepted: 20 July 2026 / Published: 21 July 2026

Abstract

Cross-scene classification of hyperspectral images attracts extensive research attention due to the prominent distribution discrepancies existing in hyperspectral images across different scenes. Most existing methods mitigate domain shift by expanding source domain samples and aligning feature distributions. However, these approaches fail to fully explore the spatial semantics of samples during the expansion process. Moreover, features are compressed into one-dimensional vectors in the alignment stage, resulting in the loss of critical spatial location information. To address the above issues, this paper proposes a multi-scale semantic selection and spatial constraint-guided network (MSCGnet). Specifically, the multi-scale semantic selection generator adopts a spatial diffusion scanning strategy to optimize the token serialization rule of Mamba. Pixels are arranged from the center to the periphery to maintain spatial continuity. Combined with the multi-scale semantic selection routing, multi-scale spectral–spatial features are extracted and a semantic selection matrix is constructed to guide Mamba to generate diverse augmented samples. The spatial constraint-guided discriminator leverages class activation map projection to impose explicit spatial constraints on feature distributions, further improving the reliability of augmented samples. Comprehensive experiments on multiple cross-scene HSI datasets demonstrate that the proposed method achieves superior classification accuracy and generalization performance with low model complexity.

1. Introduction

Hyperspectral Images (HSIs) collect ground object reflection information across hundreds of continuous spectral bands, which can finely characterize the physical and chemical properties of different ground objects. They have been widely applied in agricultural management [1], resource exploration [2], urban environmental monitoring [3], military reconnaissance [4] and other fields. In recent years, with the rapid development of deep learning, models based on Convolutional Neural Networks (CNNs) [5], Transformers [6], Mamba [7] and their hybrid architectures [8,9,10] have achieved remarkable progress in HSI classification. Nevertheless, these methods generally rely on large-scale labeled samples. Since HSI data labeling is complex and costly, the models suffer from insufficient generalization ability in practical applications [11]. To alleviate the limitations caused by scarce labeled samples, cross-scene HSI classification has become a popular research direction. Its goal is to utilize abundant labeled samples from the source domain to realize accurate classification on the target domain [12,13,14,15]. The main challenge lies in the significant distribution shift between domains. Differences in sensor types, acquisition time, illumination conditions and atmospheric environments across scenes lead to distinct data distributions, which drastically degrade model performance on the target domain [16].
To tackle domain shift, domain adaptation (DA) methods align feature distributions between the source and target domains to reduce cross-domain discrepancies [17,18,19,20]. According to differences in acting objects and feature levels, existing DA methods are divided into four categories: sample weight-based methods, statistical feature transformation-based methods, geometric feature transformation-based methods and adversarial learning-based methods. Sample weight-based methods assign differentiated weights to source domain samples to make the weighted source domain distribution approximate the target domain distribution and eliminate marginal distribution shift. Huang et al. [21] mined valid information using source domain labeled data and high-confidence pseudo-label samples from multiple target domains. They minimized the maximum mean discrepancy and covariance deviation between domains to align source and target domain distributions, and dynamically calculated weight coefficients based on domain distribution differences to fuse classification results, effectively improving cross-domain classification performance under single-source multi-target domain adaptation. Statistical feature transformation-based methods explicitly align statistical metrics such as mean, covariance and high-order moments of the source and target domains to reduce marginal or conditional distribution differences. Sun et al. [22] proposed the CORAL unsupervised domain adaptation algorithm, which reduced domain shift by aligning second-order statistics of two domains, and further extended it to deep CORAL for layer-wise matching in neural networks. Geometric feature transformation-based methods treat two domains as high-dimensional manifolds and realize spatial alignment via mapping, subspace projection and optimal transport. Hu et al. [23] presented a weighted domain adversarial neural network based on Wasserstein distance. A domain classifier was used to evaluate sample quality and assign corresponding weights, and high-quality cross-domain samples were adopted to optimize feature extraction and domain alignment. Zhang et al. [24] proposed discriminative cooperative alignment, which cooperatively aligns subspace geometry and marginal/conditional distributions under a data reconstruction constraint, effectively mitigating both geometric and statistical shift in cross-scene HSI classification. Adversarial learning-based methods adopt a minimax game: the feature extractor confuses the domain discriminator by mixing domain labels to learn domain-invariant features. Huang et al. [25] constructed an adversarial domain adaptation framework combining static convolution and dynamic instance convolution to extract coarse- and fine-grained features. A calibrated discriminator was used to align marginal domain distributions and revise pseudo-labels of the target domain. Combined with calibrated prototype loss, the method realized cross-domain category distribution alignment and boosted feature classification performance while preserving domain-invariant features. All the above DA algorithms require access to target domain data or prior information of the target domain during training, and can only optimize distribution alignment for known target domains [26].
In contrast, domain generalization (DG) methods do not rely on target domain data. They only use source domain information during training to enhance model generalization ability on unseen domains [27,28,29,30]. DG methods are categorized into data manipulation-based methods, representation learning-based methods and learning strategy-based methods according to different working levels. Data manipulation-based methods perform data transformation, augmentation and mixing on raw samples to expand the diversity of source domain data, so that the model can learn universal features from rich datasets. Peng et al. [31] proposed an adversarial domain augmentation algorithm to construct challenging virtual domain samples via adversarial training. Combined with a Wasserstein auto-encoder, the method relaxed worst-case constraints and introduced uncertainty quantification to effectively address the single-source DG problem. Representation learning-based methods impose constraints in the feature extraction stage to align feature distributions of multiple source domains, remove domain-specific interference information, and learn cross-domain universal and domain-invariant features, thereby eliminating inter-domain distribution differences in the feature space. Cheng et al. [32] took advantage of text prompts of vision foundation models and proposed a visual prompt tuning framework guided by text features. Large language models were used to disentangle text prompts and guide the model to extract domain-invariant visual features. Combined with domain-specific prototype learning to fuse unique information, the framework improved the cross-unseen-domain classification performance of DG models. Learning strategy-based methods do not modify data or feature alignment approaches. Instead, they optimize training paradigms and loss functions, and adopt training strategies such as meta-learning, multi-domain splitting, ensemble learning and regularization constraints to optimize parameter searching directions and enhance model generalization on unseen domains. Li et al. [33] designed a DG training paradigm based on meta-learning. Virtual test domains were constructed within mini-batches to simulate domain shift, and meta-optimization constraints were applied to synchronously optimize the training process and improve the accuracy on virtual test domains, so as to strengthen model generalization on unseen domains.
Although the above methods have achieved great success in natural image tasks, they still have limitations when applied to HSIs. HSIs possess complex spectral–spatial coupling characteristics. Existing methods usually ignore the diversity of multi-scale spatial semantic information inside samples during feature transformation, and adopt a unified transformation for features at different spatial positions. As a result, the generated augmented samples lack diversity in spatial semantics and cannot fully cover the feature distribution space of the target domain. In addition, most existing methods compress feature maps into global one-dimensional vectors before imposing statistical constraints in feature distribution alignment. This dimensionality reduction operation discards the spatial location information of features, making it impossible for the alignment process to distinguish whether feature changes occur in semantically significant regions or background regions of HSIs. Consequently, the spatial constraints are coarse-grained and the supervision signals are inaccurate.
To solve the above problems, this paper proposes a multi-scale semantic selection and spatial constraint-guided network (MSCGnet). The proposed method jointly optimizes model generalization from two perspectives: modeling spatial semantic diversity in the sample expansion stage and maintaining spatial structure in the feature constraint stage. On the one hand, a multi-scale semantic selection generator (MSSG) is designed. A spatial diffusion scanning strategy (SDSS) is proposed to optimize the token serialization of Mamba and preserve local spatial neighborhood perception. Meanwhile, the multi-scale semantic selection routing (MSSR) extracts spectral–spatial features at different receptive field scales and generates a semantic selection matrix, which guides Mamba to dynamically learn transformation rules for different spatial semantic regions and produce augmented samples with rich spatial semantic differences. On the other hand, a spatial constraint-guided discriminator (SCGD) is developed. Class activation maps (CAMs) are used to construct spatial saliency constraints, extending feature distribution alignment from the traditional one-dimensional statistical space to the two-dimensional spatial structure space. This enables the model to focus on feature consistency in semantically critical regions and improves the quality of augmented samples and feature representation capability. The main contributions of this work are summarized as follows:
  • Different from existing Mamba-based HSI models, this work for the first time explicitly correlates Mamba’s token serialization rule with the unique center–edge spatial semantic prior of HSI patches. Rather than generic multi-directional scanning augmentation, SDSS acts as a dedicated sequencing mechanism designed for intrinsic HSI characteristics, in which patch central pixels dominate categorical core semantics.
  • Most existing domain generalization methods follow a two-stage pipeline: they first extract multi-scale features and then conduct feature-level alignment. In contrast, our proposed MSSR directly embeds the multi-scale semantic selection matrix into the internal state transition read/write matrices of the state space model (SSM), enabling semantic-aware modulation of SSM read and write operations. Such a design achieves tight intrinsic mechanism coupling, instead of simply attaching an independent multi-scale fusion module after feature extraction.
  • Current domain generalization methods either squeeze features into 1D vectors for global statistic alignment or leverage text priors to realize semantic alignment. By contrast, the proposed SCGD eliminates the demand for text priors entirely. It reuses weights from the classification head to generate class activation maps (CAMs), narrowing the constraint granularity from global statistics to pixel-level spatial activations. This effectively mitigates spatial position information degradation in the alignment process.
  • Extensive experiments on multiple public cross-scene HSI datasets verify that the proposed method outperforms state-of-the-art approaches while maintaining low parameter size and computational complexity, demonstrating its effectiveness and strong generalization ability.

2. Related Works

2.1. DG Methods for Cross-Scene HSI Classification

DG has become a crucial research direction for cross-scene HSI classification, as it can improve model generalization on unseen scenes without accessing target domain data. Different from DA methods, DG methods only utilize source domain data for training and enhance the adaptability to unseen target domains via data manipulation, representation learning and learning strategy optimization.
In data manipulation-based DG research for HSIs, Zhang et al. [34] proposed a Single-source Domain Expansion Network (SDEnet). It adopted dual encoders for semantics and morphology, combined with spatial and spectral randomization operations to generate expanded domain data. A discriminator with supervised contrast learning was used to aggregate features of homogeneous samples from the source and expanded domains, and adversarial training was applied to optimize the generator and enlarge feature distances between different categories. To mitigate inductive bias of styles in expanded data, Zhao et al. [35] put forward a Locally Linear Unbiased Randomization Network (LLURnet). Based on a symmetric encoder–decoder structure, it constructed local joint features via style randomization and realized data expansion using latent variables. The discriminator adopted intra-class and inter-class contrast regularization to build adversarial loss and balance domain-specific and domain-invariant features. Wang et al. [36] designed a Two-Stage Domain Alignment Single-source Domain Generalization Network (TSDAnet). An additional spectral learning branch was added to the generator to reduce the interference of noise on data generation. The discriminator adopted a pyramid feature fusion structure with dual projection heads, and a two-stage domain alignment strategy was used to alleviate domain shift. Gao et al. [37] proposed an Invariant Semantic Domain Generalization Shuffle Network (ISDGS). It expanded data content and styles while preserving domain-invariant semantics via feature style covariance, and a spatial shuffle discriminator was used to weaken the interference of domain-specific spatial structures on category semantics. Meanwhile, a dual-sampling adversarial contrast learning strategy was adopted to prevent the model from falling into local Nash equilibrium and improve model generalization on unseen scenes.
Representation learning-based DG methods focus on mining domain-invariant features and suppressing domain-related interference information. Qin et al. [38] proposed a Frequency Disentanglement and Data Geometry combined Domain Generalization Network (FDGnet). A frequency component separation mechanism was used to decouple domain-related and domain-irrelevant features, and data manifold geometric constraints were applied to maintain category structure consistency for robust cross-domain feature learning. Huang et al. [39] presented a Dynamic Token Augmented Mamba Network (DTAM). A dynamic token augmentation module was designed to perturb context information while preserving ground object semantics, generating diverse feature representations. Combined with random sample labels, a classification compensation loss was constructed to prevent excessive contraction of the feature space and improve model adaptability to unseen scenes. Chu et al. [40] proposed a Diversity-Driven Domain Generalization Network (RCRAnet). A diversity-guided regularization strategy was adopted at the data level to expand training distribution, and a rank-enhanced attention fusion mechanism was used to strengthen fine-grained feature extraction and cross-domain feature representation, alleviating feature homogenization in single-source training and boosting model performance on unseen scenes. In addition, some studies adopted causal inference to enhance domain generalization. Dong et al. [41] proposed a Spectral–Spatial Enhancement and Causal Constraint Network (S2ECnet). It jointly enhanced spectral and spatial feature representation and introduced causal constraints to suppress the interference of spurious correlation features on classification, enabling the model to focus on essential discriminative information for categories.
With the development of vision foundation models and multi-modal learning, linguistic information has been introduced into HSI DG tasks. Zhang et al. [42] proposed a Language-Aware Domain Generalization Network (LDGnet). Text semantic prompts were introduced to assist visual feature learning, and linguistic prior knowledge was used to enhance category semantic representation and guide the model to extract more stable domain-invariant features for better cross-scene classification performance. Wang et al. [43] designed an Explicit High-Level Semantic Network (EHSnet). High-level semantic representation was used to constrain feature distributions of samples from different domains, and category semantic consistency was enhanced to reduce inter-domain discrepancies and learn stable cross-domain discriminative features. Combined with the Mamba architecture, Jin et al. [44] proposed a Language-Guided Dual-Branch Mamba Network (LDBMamba). Local–global spatial scanning and finite-boundary spectral scanning were performed to extract spatial and spectral sequence features respectively, and a spectral–spatial star-shaped fusion module was used to suppress Mamba modules for efficient spectral–spatial feature modeling. Furthermore, a contrast learning strategy guided by label and text prior knowledge was introduced to enhance the learning of domain-invariant semantic representation and improve the generalization of cross-scene HSI classification.
Different from single-source DG methods that only use information from a single source domain, multi-source DG methods can mine richer domain-invariant features using multiple source domains. Qi et al. [45] proposed a Multi-source Domain Generalization Two-branch Network (MDGTnet), which consisted of a classifier, a domain-specific feature extraction branch and a domain-shared feature extraction branch. The former extracted imaging environment features unique to each source domain, while the latter captured cross-source domain universal features. Two-level feature fusion eliminated the interference of imaging environment and obtained highly discriminative category features. To further reduce model complexity and sensitivity to the number of labeled samples, Qi et al. [46] proposed a Shift Reduction Domain Generalization Network (SRDGnet). A spectral–spatial structure reconstruction strategy was adopted to jointly model local spectral features and global spectral–spatial features. A domain shift reduction module was designed to promote multi-scale feature interaction and inter-domain distribution alignment. Meanwhile, a lightweight feature extraction network and batch traversal constraint strategy were applied to improve sample utilization and training diversity, so as to learn more stable domain-invariant features.

2.2. State Space Models

In recent years, state space models (SSMs) derived from modern control theory have shown great potential in long-range sequence modeling. They combine the linear computational complexity O ( L ) of Recurrent Neural Networks (RNNs) and the parallel training advantage of Transformers, thus attracting widespread attention [47,48,49,50]. In particular, after the emergence of Mamba with the selective scan (S6) mechanism, vision-oriented SSM architectures have been rapidly applied to HSI processing tasks [51,52,53,54].
Mathematically, the traditional continuous-time SSM is a linear time-varying system [55]. It maps a one-dimensional input sequence x ( t ) R to an output sequence y ( t ) R via a latent state h ( t ) R N . The control equations are formulated as follows:
h ( t ) = A h ( t ) + B x ( t ) ,
y ( t ) = C h ( t ) + D x ( t ) ,
where A R N × N denotes the state transition matrix, B R N × 1 is the input control matrix, C R 1 × N represents the output projection matrix, D R is the direct transmission coefficient, and N stands for the state dimension.
Since the classic continuous SSM cannot be directly applied to discrete token processing in deep learning, Mamba adopts a Zero-Order Hold (ZOH) to discretize the continuous equations [56]. A data-adaptive time step parameter Δ R is used as the sampling interval. The discrete forms of the state transition matrix A and input control matrix B are given by the following:
A ¯ = e x p ( Δ A ) ,
B ¯ = ( Δ A ) 1 ( e x p ( Δ A ) I ) Δ B ,
where I is the identity matrix and denotes the Hadamard product. After discretization, the standard recursive form is written as follows:
h t = A ¯ h t 1 + B ¯ x t ,
y t = C h t + D x t .
On this basis, the selective scan (S6) mechanism of Mamba converts static discretization parameters into dynamic functions dependent on the input x [57], which greatly enhances the model’s ability to filter irrelevant information according to context. The adaptive parameterization is defined as follows:
B = L i n e a r B ( x ) ,
C = L i n e a r C ( x ) ,
Δ = S o f t p l u s ( P a r a m e t e r + L i n e a r Δ ( x ) ) .
At present, many studies have explored the potential of Mamba in HSI classification. Li et al. [58] constructed a dual-branch structure with spatial Mamba and spectral Mamba to capture spatial structural dependencies and spectral correlations respectively, realizing collaborative modeling of global and local features and achieving a better trade-off between classification accuracy and efficiency. Zheng et al. [59] designed four complementary scanning paths including row-wise, column-wise, zig-zag and serpentine paths to realize multi-directional serialization modeling of 2D spatial structures. A multi-scale feature alternating mechanism was adopted to fuse fine-grained spectral information and hierarchical spatial semantics, enhancing the ability to model complex spectral–spatial dependencies. He et al. [7] transformed HSI data into 3D token sequences via a spectral–spatial token generation module, and designed a 3D spectral–spatial selective scan mechanism to perform selective state updates in both spectral and spatial dimensions for global spectral–spatial dependency modeling. Xu et al. [60] firstly introduced the mixture-of-experts mechanism into HSI classification. A Mamba mixture-of-experts module was constructed, and a sparse expert activation strategy was used to adaptively model different spectral–spatial patterns. Combined with an uncertainty-guided correction learning strategy, the model was guided to focus on regions with uncertain predictions and optimize feature representation, improving classification accuracy and robustness for complex scenes. Beyond HSI classification, direction-aware state space designs have also demonstrated strong potential in other remote-sensing restoration tasks. Sultan et al. [61] proposed a physics-guided four-directional state space network for remote-sensing image dehazing, combining linear-complexity axial scanning with partial differential equation-driven diffusion priors to achieve robust performance under nonuniform degradation with low model complexity.
Although existing Mamba-based methods have made progress in mining global spectral–spatial features of HSIs, they still have limitations when applied to cross-scene classification tasks. In standard Mamba architectures, the mapping matrices ( B and C ) responsible for writing and reading long short-term memory are completely derived adaptively based on local context within the source domain. They lack the ability to actively modulate and adapt to external unknown style perturbations such as macroscopic environmental changes and spectral shift across scenes. Consequently, the model tends to overfit the data manifold of the source domain, restricting its generalization performance on unseen scenes. Therefore, introducing explicit guidance of high-level semantics into SSMs to reconstruct robust domain-invariant features has become a critical problem to be solved.

3. Proposed Method

The proposed MSCGnet consists of two core sub-modules: MSSG and SCGD. The overall framework is illustrated in Figure 1. Taking source domain HSI samples as input, MSSG generates reliable augmented samples with differentiated feature distributions relying on SDSS and MSSR. On the other hand, SCGD outputs classification predictions via the classification head and optimizes classification accuracy using cross-entropy loss. Meanwhile, class activation maps are derived inversely from classification weights. CAM alignment loss is adopted to ensure consistent spatial activation regions for the same category between source and extended domains, and CAM contrastive loss is used to enforce compact intra-class distribution and separated inter-class activation of CAMs. Explicit spatial constraints are imposed to suppress distortion of augmented samples and improve their effectiveness.

3.1. Multi-Scale Semantic Selection Generator

MSSG aims to adaptively mine multi-scale spatial semantic information of samples and guide the Mamba backbone to generate diverse extended domain samples. MSSG is composed of Position Encoding (PE), optimized selective scan module (SSM), Layer Normalization (LN) and Multi-Layer Perceptron (MLP) which contains two linear layers and one GELU layer. For input data, each sample is denoted as X = { x i } i = 1 B R B × C × H × W , where B is the batch size, C is the spectral dimension, and H × W represents the spatial size. The overall forward propagation of MSSG is formulated as follows:
x S S M = S S M ( P E ( x ) ) + P E ( x ) ,
x o u t = M L P ( L N ( x S S M ) ) + x S S M .
The SSM integrates SDSS and MSSR: SDSS rearranges tokens in a center-to-periphery diffusion order to guarantee spatial continuity, while MSSR adaptively constructs a semantic selection matrix and generates semantic prompt vectors for each token. It adjusts state transition parameters in selective scans to guide the diverse generation of augmented samples. MLP further performs non-linear modeling and enhancement on features inside each token. With the collaboration of the above modules, MSSG can generate extended domain samples with more diverse feature distributions while maintaining the integrity of sample spatial semantics.

3.1.1. Spatial Diffusion Scanning Strategy

Standard Mamba unfolds 2D feature maps into 1D sequences via sequential scanning. This scanning manner works well for natural language processing tasks, but it has obvious drawbacks when processing HSIs with distinct spatial structures. In patch-based cross-scene HSI classification, input patches are cropped around a central pixel to be classified. HSI ground objects present typical local spatial correlation: pixels closer to the geometric center share higher semantic consistency and spectral correlation with the central pixel, while peripheral pixels are more susceptible to mixed pixels, foreign object interference and boundary mutation. Traditional sequential scanning artificially enlarges the sequence distance between spatially adjacent pixels located in different rows after flattening 2D grids into 1D sequences, which completely destroys the original spatial continuity and fails to distinguish the contribution priority between central and peripheral pixels.
To adapt to this characteristic of HSIs, we propose SDSS, as shown in Figure 2. The core idea of SDSS is to take the geometric center pixel of each patch as the origin and rearrange spatial tokens in an inward-to-outward annular diffusion order. For each spatial position ( i , j ) in an H × W feature map, the Euclidean distance from the patch center is calculated as follows:
d ( i , j ) = ( i H 1 2 ) 2 + ( j W 1 2 ) 2 .
The definition of the central coordinate in Equation (6) is only valid for square image patches where H = W . For rectangular patches with H W , the original Euclidean distance introduces anisotropic bias, such that edge pixels along the longer side are misjudged as closer to the center. We therefore propose the anisotropic distance formula as follows:
d ( i , j ) = ( i H 1 2 H ) 2 + ( j W 1 2 W ) 2 ,
Equation (7) performs dimensional normalization on the horizontal and vertical coordinate offsets separately to eliminate anisotropic bias induced by non-square image patches. It preserves the semantic sorting principle of center priority, periphery deferral under arbitrary aspect ratios. For irregular non-rectangular regions such as superpixel segments, the Euclidean distance adopted in SDSS can be replaced with the shortest geodesic distance to the central pixel calculated on the regional adjacency graph, which further extends the applicable scope of the proposed strategy.
The sorting strategy based solely on Euclidean distance implies the assumption that pixels closer to the central pixel possess higher semantic relevance. To address this issue, we extend the geometric distance to a spatial semantic distance formulated as follows:
d s e m ( i , j ) = d ( i , j ) e x p ( 1 c o s ( x c , x i , j ) ) ,
where d ( i , j ) denotes the original Euclidean distance, and c o s ( x c , x i , j ) represents the cosine similarity between the spectral vectors of the central pixel and the target pixel. For pixels with low spectral similarity to the central pixel, the exponential term rises, pushing such pixels backward in the sorting order. This allows the Mamba model to first model core regions with strong semantic consistency and then gradually incorporate ambiguous boundary areas, overcoming the drawback that simple geometric distance fails to distinguish land cover boundaries.
All N = H × W spatial positions are sorted in ascending order of distance to obtain a spatial diffusion sorting index sequence:
I = a r g s o r t ( { d ( i , j ) } i , j ) ,
the input feature x R B × N × C is reordered using I to generate a feature sequence arranged in center-to-periphery diffusion order:
x s o r t = u n f o l d ( x , I ) ,
the reordered sequence x s o r t is fed into the Mamba selective scan module for semantics-guided sequence modeling to produce y s o r t . After sequence processing, the inverse sorting index I 1 is used to restore the output features to the original spatial layout:
y = f o l d ( y s o r t , I 1 ) .
Figure 2. Flow chart of spatial diffusion scanning strategy.
Figure 2. Flow chart of spatial diffusion scanning strategy.
Sensors 26 04627 g002

3.1.2. Multi-Scale Semantic Selection Routing

In cross-scene HSI classification, spatial contexts at different scales complement each other in describing sample semantics. Small receptive fields capture fine-grained spatial details such as local edges and textures, while large receptive fields model global regional structures and ground object distribution patterns. Feature extraction based on a single scale leads to one-sided semantic representation and limits the diversity of generated augmented samples. To enable the Mamba backbone to fully utilize multi-scale spatial semantics when generating augmented samples, we design MSSR, as illustrated in Figure 3. It adaptively fuses multi-scale features to construct a sparse semantic selection matrix, generates personalized semantic prompt vectors for each spatial token, and dynamically modulates SSM parameters of Mamba.
Given a spatial feature x R B × C × H × W , MSSR first extracts multi-scale spatial features via three parallel dilated depthwise separable convolution branches with dilation rates of 1, 2 and 4, corresponding to equivalent receptive fields of 3 × 3, 5 × 5 and 9 × 9 respectively, covering spatial scales from local to global:
f r = R e L U ( B N ( D W C o n v 3 × 3 , r ( x ) ) ) ,
where dilation rate r { 1,2 , 4 } . Features from three branches are summed element-wise to obtain the initial multi-scale fused feature, and global average pooling is applied to compress spatial dimensions to generate channel-wise descriptors:
S = A v g P o o l ( r { 1,2 , 4 } f r ) .
Inspired by SKNet [62], a channel attention mechanism is adopted to adaptively estimate the contribution weight of each scale branch for different channels:
[ α , β , γ ] = S o f t m a x ( [ F C 1 ( S ) , F C 2 ( S ) , F C 3 ( S ) ] ) ,
where α , β and γ are adaptive channel weights corresponding to dilation rates 1, 2 and 4. Three branches are weighted and fused to obtain the adaptive multi-scale aggregated feature:
F = α f 1 + β f 2 + γ f 4 ,
where denotes element-wise multiplication. With this adaptive weighting mechanism, MSSR dynamically adjusts the contribution of each scale branch according to the feature distribution of different samples and channels, realizing content-adaptive scale selection instead of simple equal-weight superposition in multi-scale feature fusion.
After obtaining the multi-scale aggregated feature F , a lightweight selection score projection head is used to map F into a semantic selection score matrix P . The number of channels is gradually compressed from C to a preset number of semantic prototypes T . Then spatial dimensions are flattened and transposed to obtain M R B × N × T , where N = H × W is the total length of spatial token sequences. Each row of M represents the matching score of the multi-scale semantic feature of each spatial token with T semantic prototypes.
Next, top- k selection is performed on each token of M to retain only the indices of the top- k semantic prototypes with the highest scores. Softmax is applied to the corresponding top- k scores to generate sparse non-zero weights, while weights of unselected prototypes are set to zero. The final spatial semantic selection matrix is derived via sparse scattering:
P = Scatter ( Softmax ( Topk ( M , k ) ) ) .
The top- k sparse selection mechanism has two main functions. First, sparsity constraints enable tokens at different spatial positions to activate different combinations of semantic prototypes, providing spatially differentiated semantic guidance for SSM modulation of Mamba. Second, sparse selection avoids over-smoothing caused by full activation of all prototypes in fully connected paths, leading to clearer and more deterministic semantic selection and facilitating the generation of augmented samples with distinct semantic distributions.
To theoretically verify that this top- k strategy inherently restrains redundant correlations between semantic prototypes, we supplement the rigorous mathematical derivation of the matrix construction as follows. Let M R N × T denote the original matching score matrix. For the row vector m i corresponding to the i -th token, the top- k sparse filtering operator is defined as follows:
P i , j = { exp ( m i , j ) j i d k ( m i )   exp ( m i , j ) , j i d k ( m i ) 0 , otherwise ,
it can be observed from this definition that each row of P contains at most k non-zero entries and satisfies j P i , j = 1 . Based on this, we derive that the joint activation probability of any two distinct semantic prototypes e p , e q ( p q ) across all tokens satisfies the following:
P r ( p , q i d x k ( m i ) ) k ( k 1 ) T ( T 1 ) ,
when k T , the probability that two arbitrary prototypes are simultaneously selected by the same token is explicitly suppressed to the order of O ( k 2 / T 2 ) , which demonstrates that the top- k mechanism itself imposes implicit constraints on excessive correlation among semantic prototypes.
A low-rank decomposition strategy is adopted to construct interpretable and learnable semantic pools, which consist of a low-rank semantic embedding dictionary E R T × r and a state space projection matrix T R r × d , where r is the low-rank dimension and d is the state dimension of Mamba. The low-rank decomposition maintains the representation capability of semantic embeddings while controlling the parameter scale. The semantic selection matrix P is used to weight and aggregate semantic prototype embeddings to generate dynamic semantics for each spatial token:
S = P ( E T ) .
Since each row of P only contains k non-zero elements, the semantic prompt vector of each position in S is actually a sparse weighted combination of k semantic prototype embeddings. Tokens at different spatial positions obtain differentiated semantic prompts by activating different prototype combinations. Such spatial differentiation is the fundamental mechanism driving Mamba to generate augmented features with diverse distributions.
Furthermore, to quantify the amount of original multi-scale semantic information lost during low-rank approximation, we derive the error bound for low-rank semantic pooling decomposition in the following part. Let W * R T × d denote the full-rank semantic prototype embedding matrix. Ideally, each semantic prototype holds an independent d -dimensional semantic representation. Instead of directly optimizing the full-rank matrix, we practically learn its low-rank approximation W ^ = E T subject to the rank constraint rank ( W ^ ) r . According to the Eckart–Young–Mirsky theorem, the lower bound of the optimal rank- r approximation error measured by the Frobenius norm is formulated as follows:
W * W ^ F i = r + 1 m i n ( T , d ) σ i 2 ( W * ) ,
where σ i ( W * ) refers to the i -th largest singular value of W * . This inequality quantitatively describes the minimal inevitable semantic information loss caused by compressing full-rank semantic embeddings into a low-rank space of dimension r .

3.1.3. Mamba State Space Modulation Based on Dynamic Semantics S

Inspired by [63], SSMs can be mathematically analogous to linear attention mechanisms. Given query matrix Q , key matrix K and value matrix V , the formula of linear attention is written as follows:
y i = Q i ( j = 1 i K j V j ) Q i ( l = 1 i K l ) ,
let S i = j = 1 i K j V j and Z i = l = 1 i K l ; then Equation (21) is rewritten as follows:
S i = I S i 1 + K i V i ,
y i = Q i S i / Q i Z i + O x i ,
where I and O denote the identity matrix and zero matrix respectively, and x i is the input token at step i . According to the state space equation in Equation (3) and the approximation B ¯ x i Δ B x i = B ( Δ x i ) , Equation (3) is transformed into the following general form:
h i = A ¯ h i 1 + B ( Δ x i ) ,
y i = C h i / I + D x i .
By comparing Equations (22) and (23), we obtain the corresponding relationships between SSMs and linear attention: h i S i , B K , C Q . In attention mechanisms, the key matrix K determines how input information is written into the memory state S i , and the query matrix Q controls how information is read from the memory state. Correspondingly, in SSMs, B regulates the updating intensity of the hidden state h i by current input x i , and C governs the projection from hidden state to output. Therefore, jointly modulating B and C is semantically equivalent to modulating keys and queries in attention mechanisms simultaneously, i.e., intervening both memory writing and reading processes. This enables SSMs to accumulate and output information adaptively according to semantic characteristics of current positions during sequence propagation.
Based on the above analogy, the dynamic semantic term S is added as an additive modulation term to both the input control matrix B and output projection matrix C . The derivation of modulated discrete state space is as follows:
h t = A ¯ h t 1 + ( B + S ) ¯ x t ,
y t = ( C + S ) h t + D x t ,
where ( B + S ) ¯ = ( Δ A ) 1 ( e x p ( Δ A ) I ) Δ ( B + S ) . The dynamic semantics S carry multi-scale semantic prototype information adaptively selected by each token via MSSR. Injecting S into B introduces semantic priors into the key matrix, so that the way input information updates the hidden state is explicitly guided by semantic characteristics of current positions. Channels with strong activation of semantic prototypes enable input information to update hidden states more effectively and accumulate richer semantically relevant information. Injecting S into C guides the model to selectively extract information related to current position semantics from hidden states, so that output features can accurately reflect the semantic attribution of current tokens rather than relying on a general projection manner.
To theoretically verify the reliability of the model recursion after introducing the semantic modulation term, we further analyze the impact of the semantic modulation term on the stability of state recursion and provide a complete theoretical proof of convergence, with derivations presented as follows.
For Equation (24), the stability of the system is determined by the spectral radius of the state transition matrix A ¯ = e x p ( Δ A ) . The additive semantic modulation matrix S at the input side is integrated into the input coefficient ( B + S ) ¯ , acting only on the input x t without altering the homogeneous state transition term A ¯ h t 1 . The original Mamba adopts HiPPO initialization via diagonalization with negative real parts to guarantee A ¯ = ρ < 1 . Unfolding the recursive relation term by term yields the following:
h t = A ¯ t h 0 + k = 1 t A ¯ t k ( B + S ) ¯ x k ,
taking the norm of both sides and applying the triangle inequality U + V U + V as well as the submultiplicativity of operator norms M N M N for bounding:
h t ρ t h 0 + ( B ¯ + S ¯ ) x i = 0 t 1 ρ i ,
evaluating the finite geometric series sum i = 0 t 1 ρ i = 1 ρ t 1 ρ and substituting ρ = A ¯ , we obtain the upper bound of the hidden state:
h t A ¯ t h 0 + 1 A ¯ t 1 A ¯ ( B ¯ + S m a x ) x ,
after Softmax normalization in MSSR, Equation (19) inherently satisfies S ¯ 2 E T 2 = S m a x , which ensures the norm of the modulation matrix is bounded. As t , A ¯ t 0 , and the hidden state converges to the steady-state upper bound ( B ¯ + S m a x ) x 1 A ¯ . No state divergence will be induced by the introduction of the semantic modulation term.

3.2. Spatial Constraint-Guided Discriminator

Existing feature distribution alignment methods usually compress feature maps into global one-dimensional vectors before minimizing statistical distances. This operation discards spatial location information of features, making it impossible for the alignment process to distinguish whether feature changes occur in target object regions or background regions, which may lead to invalid or even harmful feature alignment.
Inspired by [64], we introduce CAM projection into the discriminator to refine feature distribution constraints from the global statistical level to the spatial activation location level, realizing fine-grained supervision for the semantic reliability of augmented samples. The structure of SCGD is shown in Figure 4. It consists of a feature extraction (FE) backbone stacked by three cascaded 3 × 3 convolution and ReLU activation blocks, a classification head composed of global average pooling, flattening layer and linear layer, and a CAM head which reuses weights of the linear layer in the classification head for spatial activation projection via weight sharing. The overall forward propagation of SCGD is formulated as follows:
F = F E ( x ) ,
p = L i n e a r ( F l a t t e n ( A v g P o o l ( F ) ) ) ,
C A M c ( x , y ) = k = 1 K w c , k F k ( x , y ) + b c ,
where F denotes the feature map output by the feature extraction backbone, p is the category prediction probability, C A M c ( x , y ) represents the activation value of the c -th category at spatial position ( x , y ) , F k ( x , y ) is the response value of the k -th feature channel at position ( x , y ) , w c , k is the weight corresponding to the k -th feature channel for the c -th category in the linear layer of the classification head, and b c is the bias term of the c -th category.
During training, SCGD processes both source domain samples and extended domain samples and imposes supervision constraints from three aspects: cross-entropy classification loss ensures basic discriminative capability, CAM alignment loss constrains the consistency of spatial activation locations, and CAM contrastive loss enhances the discriminability of category activation. The three components jointly form the complete training objective of SCGD.
Cross-entropy loss is adopted as the classification loss. SCGD performs classification prediction on source domain samples { x i , y i } i = 1 B and extended domain samples { x i ¯ } i = 1 B generated by the generator, and the joint cross-entropy classification loss is calculated as follows:
L c e = 1 B i = 1 B c = 1 C y i c ( l o g p i c + l o g p ¯ i c ) ,
where y i c is the true label of the i -th sample for the c -th category, p i c and p ¯ i c denote the predicted probability of the c -th category for source domain samples and extended domain samples respectively, and C is the total number of categories. Since extended domain samples are transformed from source domain samples and inherit the same category labels, they can be supervised uniformly in one loss term. L c e guarantees that the model maintains stable category discriminability in the expanded feature space and lays a foundation for subsequent spatial constraints.
On the basis of classification supervision, further spatial constraints are introduced. Let C A M c ( x , y ) be the class activation map of source domain sample x processed by SCGD, and C A M ¯ c ( x , y ) be the corresponding class activation map of extended domain sample x ¯ . The CAM alignment loss is defined as the mean square error between the two CAMs across all categories and spatial positions:
L a l i g n = 1 C H W c = 1 C x = 1 H y = 1 W ( C A M ¯ c ( x , y ) C A M c ( x , y ) ) 2 ,
Equation (30) assigns an identical weight to every spatial position, without distinguishing whether the pixel belongs to a semantically critical foreground region or an irrelevant background region. A foreground-aware weight ω c ( x , y ) can be introduced to adaptively strengthen the constraint on highly activated regions while retaining a baseline weight for background regions. The refined CAM alignment loss is thus reformulated as follows:
L a l i g n = 1 C H W c = 1 C h = 1 H w = 1 W ω c ( x , y ) ( C A M c ( x , y ) C A M ¯ c ( x , y ) ) 2 ,
where the foreground weight ω c ( x , y ) = 1 + 1 [ C A M c ( x , y ) > θ c ] , θ c refers to the adaptive threshold of source domain CAM for class c which equals the mean CAM response of this class plus one standard deviation, and 1 [ ] is the indicator function. With this design, highly activated foreground regions are assigned larger weights in the alignment loss, whereas the weights of background regions remain 1. Therefore, the spatial weight distribution of the loss function conforms to the distribution property of land features that targets are concentrated while backgrounds are sparse.
CAM contrastive loss L c o n is designed to strengthen spatial constraints from the perspective of statistical characteristics of category activation. It consists of intra-class compactness loss L i n t r a and inter-class separation loss L i n t e r . For category c , the spatial mean μ c and spatial variance σ c 2 of its CAM are calculated first:
μ c = 1 H W x = 1 H y = 1 W C A M c ( x , y ) ,
σ c 2 = 1 H W x = 1 H y = 1 W ( C A M c ( x , y ) μ c ) 2 ,
the intra-class compactness loss is defined as the average spatial variance of CAMs of source domain samples and extended domain samples for the true category y :
L i n t r a = 1 2 ( σ y 2 + σ y 2 ) ,
where σ y 2 and σ y 2 are the CAM spatial variances of source domain samples and extended domain samples for the true category y respectively. Minimizing L i n t r a encourages the model to concentrate attention for the target category on spatially consistent regions and avoid unstable localization caused by scattered activation. To enlarge the gap of CAM mean values between the true category and the most confusing category, the most confusing category c * with the maximum CAM spatial mean among categories excluding the true category is identified first:
c * = a r g m a x c y μ c ,
then a hinge loss is adopted to construct the inter-class separation loss with a margin parameter γ :
L i n t e r = m a x ( 0 , γ | μ y μ c * | ) ,
when the difference in CAM spatial means between the true category y and the most confusing category c * is smaller than γ , the loss is positive and prompts the optimization process to further enlarge the activation gap. When the gap exceeds γ , the loss equals zero and no additional constraints are applied, so that computing resources are focused on challenging category boundaries. The final contrastive loss is the sum of intra-class loss and inter-class loss:
L c o n = L i n t r a + L i n t e r .
Combining the above three loss terms, the overall training objective of MSCGnet is defined as follows:
L t o t a l = L c e + λ 1 L c o n + λ 2 L a l i g n ,
where λ 1 and λ 2 are hyperparameters to balance the contribution of each loss term. The three loss terms form a progressive constraint system from coarse to fine: L c e guarantees basic discriminability at the category level, L a l i g n constrains the consistency of augmented samples and source domain samples at the spatial location level, and L c o n further strengthens intra-class compactness and inter-class separation at the statistical characteristic level. The three components work together to ensure the semantic reliability and feature diversity of augmented samples.
The training and testing process of MSCGnet is shown in Algorithm 1.
Algorithm 1. Pseudocode of MSCGnet
1Training stage:
2Input: Source domain samples S = { X i s , Y i } i = 1 N s , total epoch number T.
3Output: The parameters θ M S S G ,   θ S C G D
4Initialize:  θ M S S G ,   θ S C G D
5For epoch = 1: T do:
6     x s o r t = S D S S ( X ) through Equations (6) and (9)–(11)
7     S = M S S R ( X ) through Equations (12)–(16) and (19)
8 X ¯ = M S S G ( x s o r t , S ) through Equations (5) and (24)
9  For all  X ,   X ¯ :
10 p , C A M = S C G D ( X ) ;   p ¯ , C A M ¯ = S C G D ( X ¯ ) through Equation (28)
11  Calculate the loss L c e through Equation (29)
12  Calculate the loss L a l i g n through Equation (30)
13  Calculate the loss L c o n through Equations (32)–(36)
14  Calculate the total loss L t o t a l through Equation (37)
15  End For
16  Update θ M S S G ,   θ S C G D by gradient descent
17End For
18Testing stage:
19Input: Target domain samples T = { X i t , Y i } i = 1 N t
20Load: The parameters θ F E ,   θ C l a s s i f i e r
21     F = F E ( x ) ;   p = Classifier ( F )
22Output:  p   (Classification prediction)

4. Experiment and Discussion

To comprehensively verify the effectiveness and generalization ability of the proposed MSCGnet in cross-scene HSI classification, experiments are conducted on three public cross-scene HSI datasets: Houston, Pavia and YC. The Houston dataset reflects domain shift caused by different acquisition times, the Pavia dataset presents distribution discrepancies across different spatial scenes, and the YC dataset is used to evaluate cross-domain generalization under different sensor imaging conditions. Comprehensive evaluations on the three typical cross-scene tasks analyze the classification performance of MSCGnet and its capability to handle complex domain shift.

4.1. Experimental Datasets

The Houston dataset contains two scenes: Houston 2013 [65] and Houston 2018 [66]. The two scenes are acquired by different sensors at different times over the campus and surrounding areas of the University of Houston. The Houston 2013 scene covers a spectral range of 380–1050 nm with 144 spectral bands, a spatial size of 349 × 1905 pixels and a spatial resolution of 2.5 m. The Houston 2018 scene shares the same wavelength range but only has 48 spectral bands with a spatial resolution of 1 m. The two scenes contain seven identical ground object categories. To meet experimental settings, 48 spectral bands matching Houston 2018 are selected from Houston 2013, and spatially overlapping regions of the two scenes are retained. Detailed category information and sample numbers are listed in Table 1. Pseudo-color images and ground-truth maps are shown in Figure 5. In this experiment, Houston 2013 is set as the source domain and Houston 2018 as the target domain.
The Pavia dataset includes two scenes: University of Pavia (UP) and Pavia Center (PC). Both scenes are collected by the ROSIS sensor in Pavia at different times [67]. The UP scene has 103 spectral bands ranging from 430 to 860 nm and a spatial size of 610 × 340 pixels. The PC scene contains 102 spectral bands covering the same wavelength range and a spatial size of 1096 × 715 pixels. The last band of the PC scene is removed to unify the spectral dimension with the UP scene. The two scenes share seven identical ground object categories. Detailed category information and sample numbers are presented in Table 2. Pseudo-color images and ground-truth maps are illustrated in Figure 6. In this experiment, University of Pavia is taken as the source domain and Pavia Center as the target domain.
The YC dataset consists of two scenes GF-YC and ZY-YC, acquired by AHSI sensors mounted on GF-5 and ZY1-02D satellites respectively. The datasets cover coastal wetland areas in Yancheng, Jiangsu Province, China, with spatial sizes of 1175 × 585 pixels and 1398 × 942 pixels respectively [68]. A total of 147 common spectral bands and seven shared ground object categories are selected for experiments. Detailed category information and sample numbers are shown in Table 3. Pseudo-color images and ground-truth maps are given in Figure 7. In this experiment, GF-YC is regarded as the source domain and ZY-YC as the target domain.

4.2. Experimental Setting

Three cross-scene HSI classification tasks are constructed, namely the Houston task, Pavia task and YC task. For all tasks, we partition labeled source domain samples into an 80% training subset and a 20% validation subset, where the validation set is exclusively derived from source domain data and utilized for hyperparameter tuning, model selection and early stopping. All hyperparameters are finalized according to performance on the source domain validation set without any access to target domain information. Target domain data are kept unseen throughout training and tuning; they are only used for one-shot final testing after the model architecture and all hyperparameters are fully fixed, and are never fed back into training, validation or parameter adjustment processes.
State-of-the-art DG algorithms are selected as comparison methods, including LDGnet [42], LLURnet [35], FDGnet [38], ISDGS [37], ADnet [69] and RCRAnet [40]. We also introduce two transfer learning methods originally developed for natural images, VREx [70] and GroupDRO [71], to conduct horizontal comparisons across different theoretical frameworks.
To ensure fair comparisons among different methods, all nine comparison methods (including the proposed MSCGnet) in this paper are trained and evaluated under unified experimental conditions. All models are trained from scratch based on the PyTorch 2.5.1 framework on an NVIDIA GeForce RTX 4060Ti GPU with 16 GB video memory. All methods share identical source training samples, and the source data are split into training and validation sets at a fixed ratio of 80%/20%. The unified preprocessing pipeline first applies global maximum normalization followed by pixel-wise L2 normalization. The Adam optimizer is uniformly adopted with a momentum of 0.9, an initial learning rate of 0.001, and an L2 weight decay of 0.0001. Fixed hyperparameters are set as a batch size of 256 and 200 training epochs. Overall Accuracy (OA) and Kappa Coefficient (KC) are used as uniform evaluation metrics. Ten repeated experiments with distinct random seeds are conducted consistently, and results are reported in the form of mean ± standard deviation. Only the patch size is not unified; each method adopts the optimal patch size recommended in its original paper to guarantee that every baseline operates under its optimal working condition.
For the Houston 2013 dataset with limited samples, two augmentation strategies, random flipping and random radiation noise, are uniformly utilized to expand the sample size to four times the original volume. Since LDGnet requires text prior information, coarse-grained and fine-grained text descriptions for the Houston and Pavia tasks follow the settings in the original literature. For the YC task which is not involved in existing works, coarse-grained and fine-grained semantic descriptions are designed for each category following the text construction principle of LDGnet and adopted uniformly in all related experiments to ensure fairness. Table 4 lists the fine-grained text descriptions for the YC task used in LDGnet.

4.3. Parameter Tuning

Sensitivity analysis is conducted on key hyperparameters of MSCGnet to explore their impacts on classification performance across three cross-scene tasks. The analyzed hyperparameters include patch size, semantic prototype count T , top- k sparsity coefficient k , loss weight coefficients λ 1 and λ 2 . Candidate patch sizes are {9 × 9, 11 × 11, 13 × 13, 15 × 15, 17 × 17}, candidate values of T are {8, 16, 32, 64, 128}, candidate values of k are {1, 2, 3, 4, 5}, candidate values of λ 1 are {0.1, 0.25, 0.5, 0.75, 1}, and candidate values of λ 2 are {0.1, 0.5, 1, 5, 10}.
Table 5 presents OA values of MSCGnet with different patch sizes on three tasks. For the Houston and Pavia tasks dominated by artificial buildings, roads and trees in complex urban scenes, the patch size of 13 × 13 provides the most appropriate spatial context and achieves the highest OA (81.62% and 86.81% respectively). For the YC dataset with large-area contiguous natural ground objects such as reeds and offshore water, which have simple local textures and drastic boundary transitions, the optimal performance (86.47%) is obtained with a smaller patch size of 11 × 11. Larger patch sizes lead to decreased accuracy due to increased mixed pixels.
Table 6 reports the influence of the semantic prototype count T . When T increases from 8 to 32, the classification accuracy consistently improves on all three datasets because a larger prototype pool provides richer semantic representations for multi-scale semantic routing. However, further increasing T to 64 or 128 degrades performance. An excessively large prototype dictionary introduces redundant semantic prototypes that are rarely activated under the top- k routing mechanism, making semantic selection less discriminative and increasing optimization difficulty. Therefore, T = 32 achieves the best trade-off between semantic diversity and prototype redundancy. Table 7 reports the classification results under three tasks with different top- k sparsity coefficient k . The highest cross-scene classification accuracy is achieved at k = 3 for all tasks.
Figure 8, Figure 9 and Figure 10 show the joint parameter tuning results of λ 1 and λ 2 on three tasks. λ 1 controls the contribution of CAM contrastive loss L c o n to the total loss, and λ 2 controls the contribution of CAM alignment loss L a l i g n . Both hyperparameters affect model performance, and the overall trends are stable, demonstrating good parameter robustness of MSCGnet. For the Houston task, the optimal performance is achieved when λ 1 = λ 2 = 1 , indicating that strong CAM alignment and contrast constraints help mitigate large cross-scene distribution discrepancies. For the Pavia and YC tasks, the optimal combination is λ 1 = 0.25 and λ 2 = 0.5 . Moderate spatial constraints can effectively guarantee semantic consistency of augmented samples, while excessive constraints limit the diversity gain brought by expanded feature distributions. In general, reasonably balancing classification supervision and spatial constraint supervision can fully exploit the advantages of the proposed method and improve cross-scene generalization ability while ensuring semantic reliability of augmented samples.
We further conduct analytical derivation and quantitative verification for the optimal weights obtained via grid search from the theoretical perspective of gradient magnitude balancing. Let θ L α e , θ L α o n and θ L a l i g n denote the L2 gradient norms of the classification loss, contrastive loss and alignment loss with respect to the shared backbone parameters θ of the feature extractor, respectively. To ensure each loss term contributes at the same order of magnitude to parameter updates, the theoretically optimal weights satisfy the following equations:
λ 1 E [ θ L c e ] E [ θ L c o n ] ,
λ 2 E [ θ L c e ] E [ θ L a l i g n ] .
We statistically sample the gradient norms of the three loss terms over the first 10 training epochs. A comparison between the theoretically calculated weight ratios and the empirical optimal values from grid search is presented in Table 8. As observed from the table, the theoretically derived weights and grid search optimal weights are of the same order of magnitude across all three datasets, with all relative deviations below 15%. This result fully verifies the validity of the proposed gradient magnitude balancing weighting strategy and provides a rigorous theoretical explanation for the optimal hyperparameters determined by grid search.
Analysis based on the sample distribution characteristics of each dataset reveals that the Houston dataset contains only 2530 labeled source domain samples. The scarcity of supervised samples inherently weakens the gradient magnitude of the classification loss. Accordingly, the optimal empirical weights are set to λ 1 = λ 2 = 1 to compensate for insufficient classification supervision signals by increasing the weights of constraint losses. In contrast, the Pavia and Yicheng datasets possess abundant labeled source domain samples, and their classification loss gradients inherently contain sufficient discriminative information for category separation. Excessively large constraint weights would overcompress the feature space and suppress sample diversity. Thus, smaller weights λ 1 = 0.25 and λ 2 = 0.50 are adopted to impose regularization while retaining discriminative feature capacity.

4.4. Ablation Study

SDSS, MSSR, L a l i g n and L c o n are four key components of MSCGnet. Ablation experiments are carried out by removing each component one by one to evaluate their contributions to model performance. Quantitative results on three tasks are reported in Table 9.
The complete MSCGnet achieves the best performance on all three tasks, verifying the positive contribution of each component. Removing any component leads to performance degradation. Specifically, removing SDSS results in OA drops of 1.61%, 4.70% and 5.73% on three tasks respectively, which proves that SDSS plays a vital role in maintaining the model’s ability to perceive spatial continuity, and its removal directly degrades the overall understanding of HSI spatial semantics. Removing MSSR leads to OA reductions of 6.73%, 4.34% and 4.35%, which verifies the effectiveness of multi-scale semantic selection in guiding the generation of diverse samples. Removing L c o n causes OA decreases of 4.10%, 2.13% and 0.33%, indicating that CAM contrastive loss enhances the discriminability of category activation regions, promotes intra-class compactness and inter-class separation, and further improves the semantic distinguishability of augmented samples and cross-domain generalization of the model. Removing L a l i g n leads to the most significant performance drops, with OA decreasing by 7.94%, 10.88% and 4.51% respectively.
This demonstrates that CAM alignment loss is the core factor ensuring spatial semantic consistency of augmented samples. It constrains the spatial activation locations of augmented samples to be consistent with source domain samples, suppresses spatial structure shift and semantic distortion during generation, and provides reliable augmented samples for subsequent discriminative learning. In summary, L a l i g n and L c o n cooperate to guarantee the semantic reliability of augmented samples, while SDSS and MSSR improve the quality of augmented samples from the perspectives of spatial continuity modeling and semantic diversity generation respectively. All components jointly boost the cross-scene classification performance of MSCGnet.
Furthermore, Table 10, Table 11 and Table 12 compare the performance of different scanning strategies including the proposed SDSS, sequential scanning, snake scanning, diagonal scanning and random scanning. SDSS achieves the highest OA values of 81.62%, 86.81% and 86.47% on three tasks and outperforms all other strategies.
For the small-size water class with only 285 source domain samples in the Houston dataset, SDSS improves the classification accuracy from 83.42% under sequential scanning to 100.00%. For the elongated linear road class in the Houston dataset, SDSS achieves a classification accuracy of 57.38%, ranking first among all scanning strategies. On the YC dataset, the classification accuracy of the river and sea water classes improves by 41.58 and 22.74 percentage points respectively relative to sequential scanning. The three boundary land cover classes of asphalt, bitumen and shadow in the Pavia dataset are easily spectrally confused with adjacent land covers, and SDSS still achieves the optimal classification accuracy for all of them.
However, SDSS delivers a classification accuracy 1 to 4 percentage points lower than several scanning strategies for large-area, spatially continuous and texturally homogeneous land covers, including stressed grass, meadow, bare soil, residential buildings and non-residential buildings. The tokens within patches of these land covers carry highly consistent semantic information, so the performance gain brought by scanning order becomes saturated. For the reed class in the YC dataset, SDSS only achieves a classification accuracy of 20.09%, which is far lower than the 70.90% of sequential scanning and the 72.54% of snake scanning. The reed class contains the fewest source domain samples among all land cover categories, with just 132 samples, and exhibits fragmented and intermingled spatial distribution. This finding demonstrates that the central pixel prior assumption underlying SDSS will be compromised when the central pixel of an image patch corresponds to a mixed impure pixel.

4.5. Comparison Experiment

Table 13, Table 14 and Table 15 report the per-category classification accuracy, overall OA and KC of MSCGnet and eight comparison methods on the Houston, Pavia and YC tasks respectively. The best results are marked in bold.
MSCGnet achieves the optimal Overall Accuracy (OA) and Kappa Coefficient (KC) across all three cross-scene classification tasks. Specifically, it obtains an OA of 81.62% and a KC of 67.83% on the Houston task, an OA of 86.81% and a KC of 84.16% on the Pavia task, and an OA of 86.47% and a KC of 82.10% on the YC task. Compared with the second-ranked baseline model on each task, MSCGnet improves OA by 1.92%, 1.36% and 1.64%, respectively.
In terms of per-category classification accuracy, MSCGnet reaches the highest accuracy of 81.45% for the residential building category in the Houston task. This advantage mainly stems from the CAM-based spatial constraint mechanism in the SCGD module, which strengthens the discriminability between man-made ground objects with spatial structural features under cross-scene spectral distribution shifts. Nevertheless, for the categories of healthy grass and stressed grass, MSCGnet only achieves classification accuracies of 62.23% and 73.40%, which are lower than ADnet’s 77.38% and RCRAnet’s 93.72%. This is because these two vegetation categories feature large coverage and uniform textures; algorithms that place more emphasis on adversarial optimization or rank-based feature refinement can achieve better classification performance on such ground objects.
For the Pavia task, MSCGnet attains the highest classification accuracies of 92.81% and 88.61% for the asphalt and meadow categories, respectively. These two ground object types share similar spectral signatures but exhibit distinctly different spatial distribution patterns. The outstanding performance of MSCGnet mainly benefits from the MSSR module, which leverages multi-scale receptive fields to provide differentiated spatial semantic guidance and effectively boost the discriminative capacity for categories with analogous spectra.
On the YC task, MSCGnet achieves a classification accuracy of 68.22% for the river category, showing a noticeable improvement over most comparison methods. This indicates that the SDSS module can effectively maintain the model’s perception of internal spatial continuity within image patches, enabling the model to precisely capture the spatial extension characteristics of linear ground objects such as rivers. However, MSCGnet only yields an accuracy of 20.09% for the reed category, markedly inferior to FDGnet’s 98.77% and most other competing methods. The reed category contains the smallest number of source domain samples among all ground object classes investigated in this paper, with merely 132 samples. Its spectral characteristics are highly similar to those of paddy fields and fallow land, while its spatial distribution consists of scattered patches without continuous extended spatial structures. Under such conditions, the center–periphery spatial prior relied upon by SDSS cannot function adequately, and its advantages are therefore weakened to a certain extent.
Visualization results of classification maps for all methods on three datasets are shown in Figure 11, Figure 12 and Figure 13. Overall, classification maps of MSCGnet are most consistent with ground-truth maps across three tasks, with less pixel confusion at ground object boundaries and stronger spatial coherence of classification regions. In the Houston task, MSCGnet obtains clearer and more accurate classification boundaries for residential buildings in the upper-left area and reduces misclassification of residential buildings as non-residential buildings. In the Pavia task, MSCGnet outperforms other methods in identifying asphalt and meadow. In the YC task, MSCGnet recognizes the slender strip structure of rivers more completely with fewer missed detections and misclassifications, further demonstrating the generalization advantages of MSCGnet for small-sample and fine-grained ground object categories.
Table 16 compares the training time, test time, and model parameters of all methods on the three datasets. The parameter sizes of MSCGnet are only 0.41 MB, 0.50 MB and 0.59 MB on three tasks respectively, which are far smaller than all comparison methods. Meanwhile, MSCGnet achieves the shortest training time and test time. In terms of test efficiency, this superiority comes from the fact that only the lightweight feature extraction backbone and classification head of SCGD are retained for computation during the test phase. The outstanding training efficiency benefits mainly from three factors:
  • MSSG is built on Mamba SSMs with linear computational complexity for sequence modeling, which is more efficient than Transformers with quadratic complexity. It maintains the capability of modeling long-range dependencies while greatly reducing computational overhead.
  • MSSR adopts lightweight multi-scale depthwise separable convolutions, top- k sparse semantic selection and low-rank decomposition of semantic pools. Only a small number of semantic prototypes are activated sparsely, avoiding complex attention calculations and large-scale parameters while enhancing feature representation capability.
3.
SCGD generates CAMs by reusing classification head weights without constructing complex domain discriminators or adversarial learning modules, which further reduces model complexity and training cost.
In conclusion, MSCGnet can fully mine spatial semantic information of cross-scene HSI data with few parameters and low computational overhead, achieving an excellent balance between classification accuracy and model efficiency and possessing high practical application value and deployment potential.
Table 16. Computational cost on three datasets with different methods.
Table 16. Computational cost on three datasets with different methods.
ModelVRExGroupDROLDGnetLLURnetFDGnetISDGSADnetRCRAnetOurs
DatasetHouston 2018 (Target)
Train (s)6.535.9332.8510.936.393.8610.1430.722.29
Test (s)6.275.4511.235.643.243.514.3218.381.49
Params (MB)10.8010.8034.220.553.140.621.480.900.41
DatasetPavia Center (Target)
Train (s)8.467.62111.9234.7519.567.0823.8966.126.01
Test (s)8.017.1450.4218.6410.476.4711.5435.421.80
Params (MB)10.9610.9635.100.584.040.652.181.880.50
DatasetZY-YC (Target)
Train (s)5.484.9517.945.694.721.864.1410.381.25
Test (s)5.134.288.562.582.351.432.216.490.66
Params (MB)11.3311.3335.800.604.930.682.783.010.59

4.6. T-SNE Visualization Analysis

To conduct a more direct analysis of whether the augmented samples generated by MSSG for domain expansion are semantically valid instead of arbitrary random perturbations, we adopt t-SNE to visualize the deep feature distributions corresponding to source domain samples, MSSG-generated augmented samples for domain expansion, and the discriminator output features of SCGD derived from both groups of samples across three cross-scene tasks.
As shown in Figure 14, Figure 15 and Figure 16, the extended domain samples in subplot (b) neither collapse onto the source domain distribution in subplot (a) nor scatter randomly across the feature space. Instead, they form a much broader distribution coverage around each class cluster while preserving the inherent class structure of the source domain. This observation indicates that MSSG expands the local feature coverage of each category without destroying intra-class semantic consistency, which is consistent with the design goal of MSSR: generating diverse augmented samples via spatially differentiated semantic prompts. Meanwhile, the CAM alignment loss L a l i g n and CAM contrastive loss L c o n collaboratively confine this expansion within semantically valid boundaries.
Subplot (c) further visualizes features extracted by the SCGD after jointly processing source domain samples and MSSG-generated extended domain samples. For all three tasks, the class clusters in subplot (c) are more compact and exhibit better inter-class separability compared with the raw feature distributions in (a) and (b). This verifies that the discriminative information brought by augmented samples is retained and further enhanced after SCGD processing. The results demonstrate that MSSG-generated augmented samples strike a balance between diversity and semantic validity, and such diversity ultimately evolves into a more discriminative feature space structure.
We also notice varying degrees of cluster expansion across different tasks. The Houston task presents a relatively wider expansion range, which matches its limited source domain sample size—this task benefits the most from the expanded feature coverage brought by sample augmentation. In contrast, the Pavia and YC tasks with abundant source domain samples show milder expansion of augmented sample clusters around their already fully covered class regions.

4.7. Failure Case Analysis

CAMs inherently deliver coarse-grained spatial responses back-projected from the weights of the classification head. To thoroughly investigate the limitations imposed by CAM supervision, we select two representative failure cases for analysis, corresponding to two scenarios: incorrect category prediction, and correct prediction with spatially inconsistent CAM responses relative to the predicted category, as illustrated in Figure 17 and Figure 18.
The sample visualized in Figure 17 has a ground-truth label of asphalt (Class 2), yet the model misclassifies it as tree (Class 1). The input false-color image depicts a narrow strip-shaped land cover running through the scene center, which matches the typical spatial morphology of asphalt pavement. The CAM corresponding to the ground-truth asphalt exhibits distinct responses along this strip structure, albeit with the third-highest intensity (intensity = 0.659). By contrast, the CAM for the mispredicted tree not only covers the target strip itself but also spreads extensively across the vegetated background flanking the strip, attaining the maximum intensity (intensity = 1.518). The second-ranked meadow (Class 6) CAM responses are entirely confined to diagonal regions irrelevant to the target strip, representing typical background activations. This misclassification therefore does not stem from the model’s inability to perceive road semantics; instead, the strong background vegetation responses of the tree class suppress the genuine asphalt activations over the target region, revealing that the classifier over-relies on co-occurring background cues.
The sample in Figure 18 is also labeled asphalt and receives a correct final prediction, yet the ranking of CAM intensities contradicts the prediction result: the asphalt CAM only ranks second (intensity = 0.966), while the top-ranked meadow CAM (intensity = 1.485) concentrates its high-intensity activations on structures in the upper-right corner of the image that bear no relation to the target road. This demonstrates that, after the classification head aggregates spatial responses globally via global average pooling, the model can still render correct predictions by accumulating discriminative evidence of asphalt across remaining regions, even when a non-target class exhibits substantially stronger local responses. Accordingly, accurate predictions do not guarantee CAM activations that spatially match the semantic scope of target objects, pointing out an easily underappreciated limitation when employing CAMs for spatial supervision.
Collectively, the two aforementioned phenomena reveal that the CAM alignment loss L a l i g n embedded within SCGD enforces consistency constraints solely on the CAM channel corresponding to the given ground-truth label, without validating the spatial localization quality of this channel itself. If the source domain classifier learns inaccurate discriminative regions due to spectral–spatial similarities across classes or inherent co-occurrence biases from background elements, L a l i g n will further force alignment of these erroneous yet uniform spatial activation patterns between source domain and extended domain samples. This constitutes a potential limitation of the proposed method. For future work, we plan to design an explicit background suppression term to constrain the activations of non-target classes within the spatial scope of target objects, mitigating the adverse impacts of spatial attribution bias from the source domain classifier on cross-domain generalization performance.

5. Conclusions

This paper proposes a novel DG method named multi-scale semantic selection and spatial constraint-guided network (MSCGnet) for cross-scene HSI classification. MSCGnet is mainly composed of MSSG and SCGD. With the collaboration of SDSS and MSSR, MSSG maintains the integrity of sample spatial structure, adaptively mines spatial semantic information at different scales, and modulates Mamba SSMs via dynamic semantic prompts to generate extended domain samples with rich semantic diversity. Specifically, SDSS reorganizes tokens in a center-to-periphery diffusion order to enhance the capability of Mamba to model spatial continuity of HSI samples. MSSR constructs dynamic semantic prompts for each token via sparse semantic prototype selection mechanisms and guides the model to generate augmented features with differentiated distributions. On the other hand, SCGD establishes spatial constraint mechanisms using CAMs. Joint optimization of classification loss, CAM alignment loss and CAM contrastive loss constrains the spatial activation distribution of augmented samples, ensuring consistent category semantics and stronger category discriminability. This effectively improves the cross-scene generalization performance of the model. Extensive experiments on three public cross-scene HSI datasets verify that MSCGnet achieves state-of-the-art classification performance with low parameter size and high training efficiency, presenting a superior trade-off between accuracy and efficiency. Future work will be carried out in two directions: first, exploring more refined spatial perception methods to further enhance the diversity and controllability of augmented samples; second, introducing frequency domain disentanglement into the cross-scene HSI classification framework to further improve model robustness and generalization capability for complex unseen target domains.

Author Contributions

Conceptualization, X.G. and X.Y.; methodology, Y.T.; software, Y.S.; validation, X.Y. and Y.T.; formal analysis, Y.T.; investigation, X.T.; resources, C.Y.; data curation, R.X.; writing—original draft preparation, Y.T. and Y.S.; writing—review and editing, X.G.; visualization, Y.T.; supervision, X.G. and X.Y.; project administration, X.Y.; funding acquisition, X.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by Heilongjiang Provincial Natural Science Foundation of China (Grant No. PL2025F014) and Basic Research Projects of Universities in Heilongjiang Province (No. 2025-KYYWF-ZR0109).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Acknowledgments

The authors would like to express their gratitude to colleagues who provided valuable insights and technical assistance during the course of this research.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Tang, Y.; Li, F.; Yang, H.; Hu, Y.; Yu, K. A transferable MMD-CWT framework for accurate cross-regional prediction of maize leaf nitrogen using hyperspectral sensing. Eur. J. Agron. 2026, 177, 128092. [Google Scholar] [CrossRef]
  2. Zhang, Z.; Huang, L.; Wang, Q.; Jiang, L.; Qi, Y.; Wang, S.; Gu, Y. UAV hyperspectral remote sensing image classification: A systematic review. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2024, 18, 3099–3124. [Google Scholar] [CrossRef]
  3. Lu, J.; Wu, Z.; Lan, Y.; Deng, X.; Huang, J. Study on the prediction model of litchi downy blight damage based on IoT and hyperspectral data fusion. IEEE Internet Things J. 2024, 11, 27184–27200. [Google Scholar] [CrossRef]
  4. Huang, S.; Liu, Z.; Jin, W.; Mu, Y. Superpixel-based multi-scale multi-instance learning for hyperspectral image classification. Pattern Recognit. 2024, 149, 110257. [Google Scholar] [CrossRef]
  5. Ashraf, M.; Chen, L.; Innab, N.; Umer, M.; Baili, J.; Kim, T.H.; Ashraf, I. Novel 3-D deep neural network architecture for crop classification using remote sensing-based hyperspectral images. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2024, 17, 12649–12665. [Google Scholar] [CrossRef]
  6. Hong, D.; Han, Z.; Yao, J.; Gao, L.; Zhang, B.; Plaza, A.; Chanussot, J. SpectralFormer: Rethinking hyperspectral image classification with transformers. IEEE Trans. Geosci. Remote Sens. 2021, 60, 5518615. [Google Scholar] [CrossRef]
  7. He, Y.; Tu, B.; Liu, B.; Li, J.; Plaza, A. 3DSS-Mamba: 3D-spectral-spatial mamba for hyperspectral image classification. IEEE Trans. Geosci. Remote Sens. 2024, 62, 5534216. [Google Scholar] [CrossRef]
  8. Liu, M.; Dan, J.; Lu, Z.; Yu, Y.; Li, Y.; Li, X. CM-UNet: Hybrid CNN-Mamba UNet for remote sensing image semantic segmentation. arXiv 2024, arXiv:2405.10530. [Google Scholar]
  9. Xu, F.; Mei, S.; Zhang, G.; Wang, N.; Du, Q. Bridging CNN and transformer with cross-attention fusion network for hyperspectral image classification. IEEE Trans. Geosci. Remote Sens. 2024, 62, 5522214. [Google Scholar] [CrossRef]
  10. He, Y.; Tu, B.; Liu, B.; Li, J.; Plaza, A. HSI-MFormer: Integrating mamba and transformer experts for hyperspectral image classification. IEEE Trans. Geosci. Remote Sens. 2025, 63, 5621916. [Google Scholar] [CrossRef]
  11. Song, Y.; Zhang, J.; Liu, Z.; Xu, Y.; Quan, S.; Sun, L.; Wang, X. Deep learning for hyperspectral image classification: A comprehensive review and future predictions. Inf. Fusion 2025, 123, 103285. [Google Scholar] [CrossRef]
  12. Yang, J.; Zhao, Y.Q.; Chan, J.C.W. Learning and transferring deep joint spectral–spatial features for hyperspectral classification. IEEE Trans. Geosci. Remote Sens. 2017, 55, 4729–4742. [Google Scholar] [CrossRef]
  13. Zhang, H.; Li, Y.; Jiang, Y.; Wang, P.; Shen, Q.; Shen, C. Hyperspectral classification based on lightweight 3-D-CNN with transfer learning. IEEE Trans. Geosci. Remote Sens. 2019, 57, 5813–5828. [Google Scholar] [CrossRef]
  14. He, X.; Chen, Y. Transferring CNN ensemble for hyperspectral image classification. IEEE Geosci. Remote Sens. Lett. 2020, 18, 876–880. [Google Scholar]
  15. Jiang, Z.; Li, J.; Xu, S.; Liu, Z.; Ma, D.; Wang, Q.; Yuan, Y. Cross-domain hyperspectral image classification. Pattern Recognit. 2025, 168, 111836. [Google Scholar] [CrossRef]
  16. Zhang, Y.; Li, W.; Zhang, M.; Qu, Y.; Tao, R.; Qi, H. Topological structure and semantic information transfer network for cross-scene hyperspectral image classification. IEEE Trans. Neural Netw. Learn. Syst. 2023, 34, 2817–2830. [Google Scholar] [CrossRef] [PubMed]
  17. Tang, S.; Su, W.; Ye, M.; Zhu, X. Source-free domain adaptation with frozen multimodal foundation model. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: Seattle, WA, USA, 2024; pp. 23711–23720. [Google Scholar]
  18. Huang, Y.; Peng, J.; Sun, W.; Chen, N.; Du, Q.; Ning, Y.; Su, H. Two-branch attention adversarial domain adaptation network for hyperspectral image classification. IEEE Trans. Geosci. Remote Sens. 2022, 60, 5540813. [Google Scholar] [CrossRef]
  19. Wang, H.; Cheng, Y.; Liu, X.; Kong, Y. Bi-classifier adversarial network for cross-scene hyperspectral image classification. IEEE Geosci. Remote Sens. Lett. 2023, 20, 5504005. [Google Scholar] [CrossRef]
  20. Luo, H.; Zhong, S.; Gong, C. Prototype-guided class-balanced active domain adaptation for hyperspectral image classification. IEEE Trans. Geosci. Remote Sens. 2025, 63, 5516016. [Google Scholar] [CrossRef]
  21. Huang, L.; Zhao, W.; Liu, Y.; Yang, D.; Liew, A.W.C.; You, Y. An evidential multi-target domain adaptation method based on weighted fusion for cross-domain pattern classification. IEEE Trans. Neural Netw. Learn. Syst. 2024, 35, 14218–14232. [Google Scholar] [CrossRef] [PubMed]
  22. Sun, B.; Feng, J.; Saenko, K. Correlation alignment for unsupervised domain adaptation. In Domain Adaptation in Computer Vision Applications; Springer International Publishing: Cham, Switzerland, 2017; pp. 153–171. [Google Scholar]
  23. Hu, T.; Guo, Y.; Gu, L.; Zhou, Y.; Zhang, Z.; Zhou, Z. Remaining useful life estimation of bearings under different working conditions via Wasserstein distance-based weighted domain adaptation. Reliab. Eng. Syst. Saf. 2022, 224, 108526. [Google Scholar] [CrossRef]
  24. Zhang, Y.; Li, W.; Tao, R.; Peng, J.; Du, Q.; Cai, Z. Cross-Scene Hyperspectral Image Classification with Discriminative Cooperative Alignment. IEEE Trans. Geosci. Remote Sens. 2021, 59, 9646–9660. [Google Scholar] [CrossRef]
  25. Huang, Y.; Peng, J.; Zhang, G.; Sun, W.; Chen, N.; Du, Q. Adversarial domain adaptation network with calibrated prototype and dynamic instance convolution for hyperspectral image classification. IEEE Trans. Geosci. Remote Sens. 2024, 62, 5514613. [Google Scholar] [CrossRef]
  26. Jiang, J.; Shu, Y.; Wang, J.; Long, M. Transferability in deep learning: A survey. arXiv 2022, arXiv:2201.05867. [Google Scholar]
  27. Wei, W.; Li, Z.; Yan, J.; Shao, M.; Li, L. Indirect alignment and relationships preservation for domain generalization. In Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence; IJCAI: Jeju, Republic of Korea, 2025; pp. 2054–2062. [Google Scholar]
  28. Shao, Y.; Wang, C.; Jia, Q.; Zhao, W. Comprehensive disentanglement with fine-grained feature mitigation for domain generalization. Neural Netw. 2025, 191, 107757. [Google Scholar] [CrossRef] [PubMed]
  29. Yao, H.; Yang, X.; Pan, X.; Liu, S.; Koh, P.W.; Finn, C. Improving domain generalization with domain relations. In International Conference on Learning Representations; ICLR: Vienna, Austria, 2024; pp. 42624–42646. [Google Scholar]
  30. Wang, S.; Alusi; Yang, X.; Xu, K.; Tan, H.; Zhang, X. Dual-stream feature augmentation for domain generalization. In Proceedings of the 32nd ACM International Conference on Multimedia; ACM: Melbourne, Australia, 2024; pp. 1111–1119. [Google Scholar]
  31. Peng, X.; Qiao, F.; Zhao, L. Out-of-domain generalization from a single source: An uncertainty quantification approach. IEEE Trans. Pattern Anal. Mach. Intell. 2024, 46, 1775–1787. [Google Scholar] [CrossRef] [PubMed]
  32. Cheng, D.; Xu, Z.; Jiang, X.; Wang, N.; Li, D.; Gao, X. Disentangled prompt representation for domain generalization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: Seattle, WA, USA, 2024; pp. 23595–23604. [Google Scholar]
  33. Li, D.; Yang, Y.; Song, Y.Z.; Hospedales, T. Learning to generalize: Meta-learning for domain generalization. In Proceedings of the AAAI Conference on Artificial Intelligence; AAAI: New York, NY, USA, 2018; Volume 32. [Google Scholar]
  34. Zhang, Y.; Li, W.; Sun, W.; Tao, R.; Du, Q. Single-source domain expansion network for cross-scene hyperspectral image classification. IEEE Trans. Image Process. 2023, 32, 1498–1512. [Google Scholar] [CrossRef] [PubMed]
  35. Zhao, H.; Zhang, J.; Lin, L.; Wang, J.; Gao, S.; Zhang, Z. Locally linear unbiased randomization network for cross-scene hyperspectral image classification. IEEE Trans. Geosci. Remote Sens. 2023, 61, 5526512. [Google Scholar] [CrossRef]
  36. Wang, X.; Liu, J.; Ni, Y.; Chi, W.; Fu, Y. Two-stage domain alignment single-source domain generalization network for cross-scene hyperspectral images classification. IEEE Trans. Geosci. Remote Sens. 2024, 62, 5527314. [Google Scholar] [CrossRef]
  37. Gao, J.; Ji, X.; Ye, F.; Chen, G. Invariant semantic domain generalization shuffle network for cross-scene hyperspectral image classification. Expert Syst. Appl. 2025, 273, 126818. [Google Scholar] [CrossRef]
  38. Qin, B.; Feng, S.; Zhao, C.; Xi, B.; Li, W.; Tao, R. FDGNet: Frequency disentanglement and data geometry for domain generalization in cross-scene hyperspectral image classification. IEEE Trans. Neural Netw. Learn. Syst. 2025, 36, 10297–10310. [Google Scholar] [CrossRef] [PubMed]
  39. Huang, X.; Zhang, Y.; Luo, F.; Dong, Y. Dynamic token augmentation mamba for cross-scene classification of hyperspectral image. IEEE Trans. Geosci. Remote Sens. 2024, 62, 5539713. [Google Scholar] [CrossRef]
  40. Chu, M.; Hu, J.; Teng, X.; Xie, R.; Li, X.; Dong, H.; Yu, X. Diversity-Driven Domain Generalization for Hyperspectral Image via Rank-Increased Attention Fusion. Knowl.-Based Syst. 2026, 339, 115657. [Google Scholar] [CrossRef]
  41. Dong, L.; Geng, J.; Jiang, W. Spectral–spatial enhancement and causal constraint for hyperspectral image cross-scene classification. IEEE Trans. Geosci. Remote Sens. 2024, 62, 5507013. [Google Scholar] [CrossRef]
  42. Zhang, Y.; Zhang, M.; Li, W.; Wang, S.; Tao, R. Language-aware domain generalization network for cross-scene hyperspectral image classification. IEEE Trans. Geosci. Remote Sens. 2023, 61, 5501312. [Google Scholar] [CrossRef]
  43. Wang, X.; Dong, S.; Zheng, X.; Lu, R.; Jia, J. Explicit high-level semantic network for domain generalization in hyperspectral image classification. IEEE Trans. Geosci. Remote Sens. 2024, 62, 5538314. [Google Scholar] [CrossRef]
  44. Jin, C.; Teng, X.; Chu, M.; Hao, Y.; Qin, S.; Li, X.; Yu, X. LDBMamba: Language-guided Dual-Branch Mamba for hyperspectral image domain generalization. Expert Syst. Appl. 2025, 280, 127620. [Google Scholar] [CrossRef]
  45. Qi, Y.; Zhang, J.; Liu, D.; Zhang, Y. Multisource domain generalization two-branch network for hyperspectral image cross-domain classification. IEEE Geosci. Remote Sens. Lett. 2024, 21, 5502205. [Google Scholar] [CrossRef]
  46. Qi, Y.; Liu, D.; Zhang, J.; Zhang, Y. A Shift Reduction Domain Generalization Network for Hyperspectral Image Cross-Domain Classification. IEEE Trans. Geosci. Remote Sens. 2025, 63, 5521416. [Google Scholar] [CrossRef]
  47. Zeng, F.; Tang, H.; Shao, Y.; Chen, S.; Shao, L.; Wang, Y. Mambaic: State space models for high-performance learned image compression. In Proceedings of the Computer Vision and Pattern Recognition Conference; IEEE: Seattle, WA, USA, 2025; pp. 18041–18050. [Google Scholar]
  48. Liu, H.; Wang, L.; Zhang, Y.; Yu, Z.; Guo, Y. Samam: Style-aware state space model for arbitrary image style transfer. In Proceedings of the Computer Vision and Pattern Recognition Conference; IEEE: Seattle, WA, USA, 2025; pp. 28468–28478. [Google Scholar]
  49. Li, Z.; Ai, Y.; Lu, J.; Wang, C.; Deng, J.; Chang, H.; Zhang, T. Pamba: Enhancing global interaction in point clouds via state space model. In Proceedings of the AAAI Conference on Artificial Intelligence; AAAI: Philadelphia, PA, USA, 2025; Volume 39, pp. 5092–5100. [Google Scholar]
  50. Shi, Y.; Dong, M.; Xu, C. Multi-scale vmamba: Hierarchy in hierarchy visual state space model. Adv. Neural Inf. Process. Syst. 2024, 37, 25687–25708. [Google Scholar] [CrossRef]
  51. Shen, D.; Zhu, X.; Tian, J.; Liu, J.; Du, Z.; Wang, H.; Ma, X. HTD-Mamba: Efficient hyperspectral target detection with pyramid state space model. IEEE Trans. Geosci. Remote Sens. 2025, 63, 5507315. [Google Scholar] [CrossRef]
  52. Wang, G.; Zhang, X.; Peng, Z.; Zhang, T.; Jiao, L. S2Mamba: A spatial–spectral state space model for hyperspectral image classification. IEEE Trans. Geosci. Remote Sens. 2025, 63, 5511413. [Google Scholar] [CrossRef]
  53. Liao, J.; Wang, L. HierarchicalMamba: A Multi-Scale State Space Model with Dual Transitions for Hyperspectral Image Classification. IEEE Trans. Geosci. Remote Sens. 2026, 64, 5402025. [Google Scholar] [CrossRef]
  54. Li, C.; Hong, D.; Zhang, B.; Chanussot, J. Im2State: Image-to-State Mamba for Hyperspectral and Multispectral Image Fusion. Inf. Fusion 2026, 134, 104385. [Google Scholar] [CrossRef]
  55. Gu, A.; Goel, K.; Ré, C. Efficiently modeling long sequences with structured state spaces. arXiv 2021, arXiv:2111.00396. [Google Scholar]
  56. Pechlivanidou, G.; Karampetakis, N. Zero-order hold discretization of general state space systems with input delay. IMA J. Math. Control Inf. 2022, 39, 708–730. [Google Scholar] [CrossRef]
  57. Gu, A.; Dao, T. Mamba: Linear-time sequence modeling with selective state spaces. arXiv 2023, arXiv:2312.00752. [Google Scholar]
  58. Li, D.; Bhatti, U.A.; Huang, M.; Bruzzone, L.; Li, J. HyPyraMamba: A Pyramid Spectral Attention and Mamba-Based Architecture for Robust Hyperspectral Image Classification. IEEE Trans. Geosci. Remote Sens. 2026, 64, 5501016. [Google Scholar] [CrossRef]
  59. Zheng, Q.; Xu, T.; Zhang, C.; Li, P.; Min, W.; Wang, C. OmniMamba: Omnidirectional Scanning Meets State Space Models for Efficient Hyperspectral Image Classification. IEEE J. Sel. Top. Signal Process. 2026, 20, 142–152. [Google Scholar] [CrossRef]
  60. Xu, Y.; Wang, D.; Jiao, H.; Zhang, L.; Zhang, L. MambaMoE: Mixture-of-spectral-spatial-experts state space model for hyperspectral image classification. Inf. Fusion 2025, 127, 103811. [Google Scholar]
  61. Sultan, N.; Hayat, M.; Prom-on, S. DSCH-Net: Diffusion-State-Contextual Hybrid Network for Physics-Inspired and Direction-Aware Dehazing of Remote Sensing Imagery. IEEE Trans. Geosci. Remote Sens. 2026, 64, 4106218. [Google Scholar] [CrossRef]
  62. Li, X.; Wang, W.; Hu, X.; Yang, J. Selective kernel networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: Long Beach, CA, USA, 2019; pp. 510–519. [Google Scholar]
  63. Guo, H.; Guo, Y.; Zha, Y.; Zhang, Y.; Li, W.; Dai, T.; Li, Y. Mambairv2: Attentive state space restoration. In Proceedings of the Computer Vision and Pattern Recognition Conference; IEEE: Seattle, WA, USA, 2025; pp. 28124–28133. [Google Scholar]
  64. Wang, C.; Xiao, J.; Han, Y.; Yang, Q.; Song, S.; Huang, G. CAM-loss: Towards Learning Spatially Discriminative Feature Representations. arXiv 2021, arXiv:2109.01359. [Google Scholar]
  65. Debes, C.; Merentitis, A.; Heremans, R.; Hahn, J.; Frangiadakis, N.; Van Kasteren, T.; Pacifici, F. Hyperspectral and LiDAR data fusion: Outcome of the 2013 GRSS data fusion contest. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2014, 7, 2405–2418. [Google Scholar] [CrossRef]
  66. Le Saux, B.; Yokoya, N.; Hänsch, R.; Prasad, S. 2018 IEEE GRSS data fusion contest: Multimodal land use classification [technical committees]. IEEE Geosci. Remote Sens. Mag. 2018, 6, 52–54. [Google Scholar] [CrossRef]
  67. Licciardi, G.; Pacifici, F.; Tuia, D.; Prasad, S.; West, T.; Giacco, F.; Gamba, P. Decision fusion for the classification of hyperspectral data: Outcome of the 2008 GRS-S data fusion contest. IEEE Trans. Geosci. Remote Sens. 2009, 47, 3857–3865. [Google Scholar] [CrossRef]
  68. Huang, Y.; Peng, J.; Chen, N.; Sun, W.; Du, Q.; Ren, K.; Huang, K. Cross-scene wetland mapping on hyperspectral remote sensing images using adversarial domain adaptation network. ISPRS J. Photogramm. Remote Sens. 2023, 203, 37–54. [Google Scholar] [CrossRef]
  69. Zhao, H.; Lin, L.; Wang, J.; Gao, S.; Zhang, Z. Adversarial decoupling domain generalization network for cross-scene hyperspectral image classification. Knowl.-Based Syst. 2025, 318, 113432. [Google Scholar] [CrossRef]
  70. Ortac, G.; Ozcan, G. Comparative study of hyperspectral image classification by multidimensional Convolutional Neural Network approaches to improve accuracy. Expert Syst. Appl. 2021, 182, 115280. [Google Scholar] [CrossRef]
  71. Sagawa, S.; Koh, P.W.; Hashimoto, T.B.; Liang, P. Distributionally robust neural networks for group shifts: On the importance of regularization for worst-case generalization. arXiv 2019, arXiv:1911.08731. [Google Scholar]
Figure 1. The workflow of the proposed MSCGnet. In the training phase, data augmentation is performed on source domain samples via a multi-scale semantic selection generator to generate extended domain samples with diverse feature distributions. Afterwards, both the source domain samples and extended domain samples are fed into the spatial constraint-guided discriminator, and the network is jointly optimized using classification loss, CAM alignment loss and CAM contrastive loss. In the testing phase, only the feature extraction backbone (FE) and classification head are retained to directly complete classification prediction on unseen target domain data.
Figure 1. The workflow of the proposed MSCGnet. In the training phase, data augmentation is performed on source domain samples via a multi-scale semantic selection generator to generate extended domain samples with diverse feature distributions. Afterwards, both the source domain samples and extended domain samples are fed into the spatial constraint-guided discriminator, and the network is jointly optimized using classification loss, CAM alignment loss and CAM contrastive loss. In the testing phase, only the feature extraction backbone (FE) and classification head are retained to directly complete classification prediction on unseen target domain data.
Sensors 26 04627 g001
Figure 3. Flow chart of multi-scale semantic selection routing.
Figure 3. Flow chart of multi-scale semantic selection routing.
Sensors 26 04627 g003
Figure 4. Flow chart of spatial constraint-guided discriminator.
Figure 4. Flow chart of spatial constraint-guided discriminator.
Sensors 26 04627 g004
Figure 5. Pseudo-color image and ground-truth map of Houston dataset: (a) pseudo-color image of Houston 2013; (b) pseudo-color image of Houston 2018; (c) ground-truth map of Houston 2013; (d) ground-truth map of Houston 2018.
Figure 5. Pseudo-color image and ground-truth map of Houston dataset: (a) pseudo-color image of Houston 2013; (b) pseudo-color image of Houston 2018; (c) ground-truth map of Houston 2013; (d) ground-truth map of Houston 2018.
Sensors 26 04627 g005
Figure 6. Pseudo-color image and ground-truth map of Pavia dataset: (a) pseudo-color image of University of Pavia; (b) ground-truth map of University of Pavia; (c) pseudo-color image of Pavia Center; (d) ground-truth map of Pavia Center.
Figure 6. Pseudo-color image and ground-truth map of Pavia dataset: (a) pseudo-color image of University of Pavia; (b) ground-truth map of University of Pavia; (c) pseudo-color image of Pavia Center; (d) ground-truth map of Pavia Center.
Sensors 26 04627 g006
Figure 7. Pseudo-color image and ground-truth map of YC dataset: (a) pseudo-color image of GF-YC; (b) ground-truth map of GF-YC; (c) pseudo-color image of ZY-YC; (d) ground-truth map of ZY-YC.
Figure 7. Pseudo-color image and ground-truth map of YC dataset: (a) pseudo-color image of GF-YC; (b) ground-truth map of GF-YC; (c) pseudo-color image of ZY-YC; (d) ground-truth map of ZY-YC.
Sensors 26 04627 g007
Figure 8. Parameter tuning of λ 1 and λ 2 on the Houston task.
Figure 8. Parameter tuning of λ 1 and λ 2 on the Houston task.
Sensors 26 04627 g008
Figure 9. Parameter tuning of λ 1 and λ 2 on the Pavia task.
Figure 9. Parameter tuning of λ 1 and λ 2 on the Pavia task.
Sensors 26 04627 g009
Figure 10. Parameter tuning of λ 1 and λ 2 on the YC task.
Figure 10. Parameter tuning of λ 1 and λ 2 on the YC task.
Sensors 26 04627 g010
Figure 11. Visual representation of classification results on the Houston task obtained with different methods including: (a) ground-truth; (b) VREx (70.97%); (c) GroupDRO (72.73%); (d) LDGnet (79.31%); (e) LLURnet (77.58%); (f) FDGnet (77.36%); (g) ISDGS (76.83%); (h) ADnet (79.23%); (i) RCRAnet (79.93%); (j) ours (82.12%).
Figure 11. Visual representation of classification results on the Houston task obtained with different methods including: (a) ground-truth; (b) VREx (70.97%); (c) GroupDRO (72.73%); (d) LDGnet (79.31%); (e) LLURnet (77.58%); (f) FDGnet (77.36%); (g) ISDGS (76.83%); (h) ADnet (79.23%); (i) RCRAnet (79.93%); (j) ours (82.12%).
Sensors 26 04627 g011
Figure 12. Visual representation of classification results on the Pavia task obtained with different methods including: (a) ground-truth; (b) VREx (75.29%); (c) GroupDRO (75.69%); (d) LDGnet (80.24%); (e) LLURnet (81.16%); (f) FDGnet (83.79%); (g) TSDAnet (82.87%); (h) ADnet (83.31%); (i) RCRAnet (85.79%); (j) ours (87.92%).
Figure 12. Visual representation of classification results on the Pavia task obtained with different methods including: (a) ground-truth; (b) VREx (75.29%); (c) GroupDRO (75.69%); (d) LDGnet (80.24%); (e) LLURnet (81.16%); (f) FDGnet (83.79%); (g) TSDAnet (82.87%); (h) ADnet (83.31%); (i) RCRAnet (85.79%); (j) ours (87.92%).
Sensors 26 04627 g012
Figure 13. Visual representation of classification results on the YC task obtained with different methods including: (a) ground-truth; (b) VREx (69.69%); (c) GroupDRO (70.36%); (d) LDGnet (65.79%); (e) LLURnet (83.91%); (f) FDGnet (80.37%); (g) TSDAnet (79.92%); (h) ADnet (84.93%); (i) RCRAnet (85.02%); (j) ours (87.40%).
Figure 13. Visual representation of classification results on the YC task obtained with different methods including: (a) ground-truth; (b) VREx (69.69%); (c) GroupDRO (70.36%); (d) LDGnet (65.79%); (e) LLURnet (83.91%); (f) FDGnet (80.37%); (g) TSDAnet (79.92%); (h) ADnet (84.93%); (i) RCRAnet (85.02%); (j) ours (87.40%).
Sensors 26 04627 g013
Figure 14. Visualization of source domain and extended domain sample using t-SNE on the Houston task: (a) source domain samples; (b) extended domain samples; (c) features output by the discriminator.
Figure 14. Visualization of source domain and extended domain sample using t-SNE on the Houston task: (a) source domain samples; (b) extended domain samples; (c) features output by the discriminator.
Sensors 26 04627 g014
Figure 15. Visualization of source domain and extended domain sample using t-SNE on the Pavia task: (a) source domain samples; (b) extended domain samples; (c) features output by the discriminator.
Figure 15. Visualization of source domain and extended domain sample using t-SNE on the Pavia task: (a) source domain samples; (b) extended domain samples; (c) features output by the discriminator.
Sensors 26 04627 g015
Figure 16. Visualization of source domain and extended domain sample using t-SNE on the YC task: (a) source domain samples; (b) extended domain samples; (c) features output by the discriminator.
Figure 16. Visualization of source domain and extended domain sample using t-SNE on the YC task: (a) source domain samples; (b) extended domain samples; (c) features output by the discriminator.
Sensors 26 04627 g016
Figure 17. Misclassification case (True: Class 2, Pred: Class 1).
Figure 17. Misclassification case (True: Class 2, Pred: Class 1).
Sensors 26 04627 g017
Figure 18. Correct-classification but CAM-misaligned case (True: Class 2, Pred: Class 2).
Figure 18. Correct-classification but CAM-misaligned case (True: Class 2, Pred: Class 2).
Sensors 26 04627 g018
Table 1. Quantity of source and target samples in the Houston dataset.
Table 1. Quantity of source and target samples in the Houston dataset.
ClassNumber of Samples
No.NameHouston 2013
(Source)
Houston 2018
(Target)
1Grass Healthy3451353
2Grass Stressed3654888
3Trees3652766
4Water28522
5Residential Buildings3195347
6Non-residential Buildings40832,459
7Road4436365
Total253053,200
Table 2. Quantity of source and target samples in the Pavia dataset.
Table 2. Quantity of source and target samples in the Pavia dataset.
ClassNumber of Samples
No.NameUniversity of Pavia
(Source)
Pavia Center
(Target)
1Tree30647598
2Asphalt66319248
3Brick36822685
4Bitumen13307287
5Shadow9472863
6Meadow18,6493090
7Bare Soil50296584
Total39,33239,335
Table 3. Quantity of source and target samples in the YC dataset.
Table 3. Quantity of source and target samples in the YC dataset.
ClassNumber of Samples
No.NameGF-YC
(Source)
ZY-YC
(Target)
1Architecture360451
2River217214
3Reed132244
4Paddy8323026
5Fallow Land234650
6Sea23952076
7Offshore Water13051558
Total54758219
Table 4. Fine-grained text descriptions of LDGnet on the YC task.
Table 4. Fine-grained text descriptions of LDGnet on the YC task.
Class NameFine-Grained Text
ArchitectureBuildings are concentrated in developed regions.
Architecture features sharp edges and geometric shapes.
RiverRivers wind through the terrain with clear boundaries.
Rivers reflect surrounding vegetation and sky.
ReedReeds form thickets along riverbanks.
Reeds sway gently in the wind.
PaddyPaddy fields are neatly divided into plots.
Paddy fields shimmer under sunlight when flooded.
Fallow LandFallow land lacks vegetation and appears barren.
Fallow land may show cracks due to dryness.
SeaSea extends beyond visible horizons with vast openness.
Sea waves create dynamic patterns on the surface.
Offshore WaterOffshore water merges seamlessly with the horizon.
Offshore water appears deeper and more mysterious.
Table 5. Parameter tuning of patch size on three tasks.
Table 5. Parameter tuning of patch size on three tasks.
TaskPatch Size
9 × 911 × 1113 × 1315 × 1517 × 17
Houston80.4181.0381.6280.3878.70
Pavia83.1983.9486.8183.6282.93
YC86.3886.4785.7885.0883.99
Table 6. Parameter tuning of semantic prototype count T on three tasks.
Table 6. Parameter tuning of semantic prototype count T on three tasks.
TaskSemantic Prototype Count T
8163264128
Houston78.6180.2481.6280.1079.85
Pavia82.7284.4086.8185.2284.97
YC83.1584.6386.4784.9884.30
Table 7. Parameter tuning of top-k sparsity k on three tasks.
Table 7. Parameter tuning of top-k sparsity k on three tasks.
TaskTop-k Sparsity Coefficient k
12345
Houston74.3478.8781.6279.3578.92
Pavia80.5885.1286.8183.4082.71
YC81.0283.1086.4782.0581.44
Table 8. Comparison between theoretically derived weights and grid search optimal weights on three tasks.
Table 8. Comparison between theoretically derived weights and grid search optimal weights on three tasks.
TaskGrid Search
Optimal (λ1, λ2)
Theoretically
Derived (λ1, λ2)
Relative Deviation
of (λ1, λ2)
Houston(1.00, 1.00)(0.92, 0.88)(8.00%, 12.00%)
Pavia(0.25, 0.50)(0.22, 0.56)(12.00%, 12.00%)
YC(0.25, 0.50)(0.27, 0.43)(8.00%, 14.00%)
Table 9. Accuracy of ablation experiments on three tasks.
Table 9. Accuracy of ablation experiments on three tasks.
SDSSMSSR L a l i g n L c o n HoustonPaviaYC
OAKCOAKCOAKC
74.89 ± 1.3258.13 ± 1.4882.47 ± 1.8979.03 ± 1.4782.12 ± 1.8876.59 ± 1.75
80.01 ± 1.5464.78 ± 1.7382.11 ± 1.4678.54 ± 1.3480.74 ± 1.2874.42 ± 1.03
77.52 ± 0.9362.86 ± 1.1284.68 ± 1.7780.51 ± 1.8786.14 ± 1.1481.57 ± 1.25
73.68 ± 1.2458.12 ± 1.5475.93 ± 1.8570.59 ± 1.4681.96 ± 1.3375.69 ± 1.41
81.62 ± 0.8367.83 ± 1.7886.81 ± 1.4384.16 ± 1.6386.47 ± 0.8482.10 ± 1.39
Table 10. Performance of MSCGnet on the Houston task under different scan strategies.
Table 10. Performance of MSCGnet on the Houston task under different scan strategies.
ClassSequentialSnakeDiagonalRandomSDSS
145.3750.0352.2646.5562.23
281.6973.5371.3871.5473.40
353.4055.4655.7155.2459.94
483.4285.5286.3489.42100.00
577.5884.1083.7984.2281.45
687.3288.6392.9793.1191.52
751.5752.7646.7446.8357.38
OA (%)79.15 ± 1.4580.11 ± 1.6380.69 ± 1.8480.83 ± 1.5381.62 ± 0.83
Kappa (%)65.45 ± 1.8266.84 ± 1.2566.28 ± 1.0566.50 ± 1.1267.83 ± 1.78
Table 11. Performance of MSCGnet on the Pavia task under different scan strategies.
Table 11. Performance of MSCGnet on the Pavia task under different scan strategies.
ClassSequentialSnakeDiagonalRandomSDSS
179.0788.6488.6881.4486.19
289.6783.9489.9088.4592.81
384.4378.7777.4378.9983.80
479.6870.4575.3180.2984.81
583.7680.2384.4483.5984.74
689.2987.6185.6390.0088.61
769.2387.9776.0377.7582.61
OA (%)81.75 ± 1.2882.69 ± 1.6383.35 ± 1.1483.13 ± 1.8986.81 ± 1.43
Kappa (%)78.23 ± 1.7979.32 ± 1.7880.03 ± 1.2379.86 ± 1.4584.16 ± 1.63
Table 12. Performance of MSCGnet on the YC task under different scan strategies.
Table 12. Performance of MSCGnet on the YC task under different scan strategies.
ClassSequentialSnakeDiagonalRandomSDSS
190.9197.7879.6095.1299.11
226.6417.7678.5035.0568.22
370.9072.540.0048.3620.09
4100.00100.00100.00100.00100.00
579.2379.2382.4685.2379.54
642.8743.6955.8352.2665.61
7100.00100.00100.00100.00100.00
OA (%)80.65 ± 1.6381.05 ± 1.5382.80 ± 1.2483.28 ± 1.5886.47 ± 0.84
Kappa (%)74.54 ± 1.2275.04 ± 1.6877.12 ± 1.3977.93 ± 1.9682.10 ± 1.39
Table 13. Comparison of quantitative classification results of different methods on the Houston task (target: Houston 2018).
Table 13. Comparison of quantitative classification results of different methods on the Houston task (target: Houston 2018).
ClassVRExGroupDROLDGnetLLURnetFDGnetISDGSADnetRCRAnetOurs
120.7715.4554.9924.8355.851.5977.3857.7362.23
276.9080.2672.2075.1680.3869.2177.1993.7273.40
353.2929.0757.0158.8262.1557.4158.7542.9159.94
490.91100.0081.82100.00100.00100. 0090.91100.00100.00
572.6975.9676.7758.8976.1966.4167.7879.7181.45
672.4278.9689.9188.4383.5589.6094.4389.0891.52
759.1246.7445.2558.5154.8337.9120.4741.8257.38
OA (%)70.82 ± 1.2972.14 ± 1.6579.02 ± 1.5877.51 ± 1.5377.27 ± 0.9676.58 ± 1.2979.03 ± 1.3879.70 ± 1.3881.62 ± 0.83
Kappa (%)55.94 ± 1.8356.79 ± 1.4863.92 ± 1.9761.07 ± 1.7562.47 ± 1.3058.72 ± 1.6861.62 ± 1.7265.20 ± 1.7267.83 ± 1.78
Table 14. Comparison of quantitative classification results of different methods on the Pavia task (target: Pavia Center).
Table 14. Comparison of quantitative classification results of different methods on the Pavia task (target: Pavia Center).
ClassVRExGroupDROLDGnetLLURnetFDGnetISDGSADnetRCRAnetOurs
176.3676.0198.2687.2283.6487.8092.1695.0586.19
286.6383.2386.6585.2679.9085.9385.6882.4092.81
315.4997.4348.2353.3389.7267.3082.1660.7183.80
473.2458.1473.8287.3685.1083.4487.2684.4184.81
567.8373.6693.9685.3091.7690.9295.3298.9584.74
683.0674.5353.6278.9073.3072.6566.3175.0888.61
763.7966.2576.5571.5585.8486.3267.9488.9082.61
OA (%)74.23 ± 1.3375.18 ± 1.2780.14 ± 1.5281.06 ± 1.6883.59 ± 1.4283.94 ± 1.3983.20 ± 1.3585.45 ± 1.6586.81 ± 1.43
Kappa (%)70.11 ± 1.5971.08 ± 1.3676.00 ± 1.7277.21 ± 1.9280.41 ± 1.5380.68 ± 1.4679.83 ± 1.5182.47 ± 2.0484.16 ± 1.63
Table 15. Comparison of quantitative classification results of different methods on the YC task (target: ZY-YC).
Table 15. Comparison of quantitative classification results of different methods on the YC task (target: ZY-YC).
ClassVRExGroupDROLDGnetLLURnetFDGnetISDGSADnetRCRAnetOurs
190.0295.3455.4367.1893.7991.5798. 0099.7899.11
227.5745.330.0036.9236.9225.708.4132.2468.22
360.2571.310.0054.1098.7793.8577.4669.2620.09
4100.00100.00100.00100.0098.28100. 00100.00100.00100.00
581.8576.6285.6992.9260.9246.3162.4651.6979.54
60.000.000.0056.7043.8364.6964.2165.6165.61
7100.00100.00100.00100.00100.00100.00100.00100.00100.00
OA (%)69.40 ± 1.7870.18 ± 1.3765.59 ± 1.3283.70 ± 1.1880.07 ± 1.3084.26 ± 1.3584.83 ± 1.2184.80 ± 0.7986.47 ± 0.84
Kappa (%)54.71 ± 1.7961.36 ± 1.5454.71 ± 1.6278.47 ± 1.3273.96 ± 1.6779.30 ± 1.7979.95 ± 1.3979.85 ± 1.0382.10 ± 1.39
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Tang, Y.; Sun, Y.; Teng, X.; Yang, C.; Xie, R.; Guan, X.; Yu, X. Multi-Scale Semantic Selection and Spatial Constraint-Guided Network for Cross-Scene Hyperspectral Image Classification. Sensors 2026, 26, 4627. https://doi.org/10.3390/s26144627

AMA Style

Tang Y, Sun Y, Teng X, Yang C, Xie R, Guan X, Yu X. Multi-Scale Semantic Selection and Spatial Constraint-Guided Network for Cross-Scene Hyperspectral Image Classification. Sensors. 2026; 26(14):4627. https://doi.org/10.3390/s26144627

Chicago/Turabian Style

Tang, Yuntao, Yu Sun, Xuyang Teng, Cuiping Yang, Ruifeng Xie, Xiaojun Guan, and Xiaodong Yu. 2026. "Multi-Scale Semantic Selection and Spatial Constraint-Guided Network for Cross-Scene Hyperspectral Image Classification" Sensors 26, no. 14: 4627. https://doi.org/10.3390/s26144627

APA Style

Tang, Y., Sun, Y., Teng, X., Yang, C., Xie, R., Guan, X., & Yu, X. (2026). Multi-Scale Semantic Selection and Spatial Constraint-Guided Network for Cross-Scene Hyperspectral Image Classification. Sensors, 26(14), 4627. https://doi.org/10.3390/s26144627

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop