1. Introduction
Hyperspectral images, captured by satellites or onboard devices, can capture the data of a wide range of wavelengths [
1]. Unlike the other sensors that have been used for Earth observation, like infrared and synthetic aperture radar (SAR) [
2,
3,
4], hyperspectral images can capture data in hundreds of narrow spectral bands. In addition, compared to other forms of remote sensing image data, HSI data have different materials that can reflect different light on the electromagnetic spectrum. So, with HSI data, the Earth’s surface can be analyzed more accurately. For this reason, the technology of HSI image processing has been used in various areas, such as land cover analysis, precision agriculture [
5], mineral exploration [
6,
7], and deep space exploration [
8].
Particularly, HSI classification (HSIc) has emerged as a highly active area of research within the field of hyperspectral research. For the HSIc system models, the workflow mainly includes three steps: image restoration, feature extraction, and species classification [
9]. In the pre-processing stage of HSIc, especially when dividing the training and test sets, the models in the form of input data can be roughly classified into three categories: single-pixel-based HSIc models, patch data-based HSIc models, and whole image-based HSIc models. The single-pixel-based models are the Support Vector Machines (SVMs) [
10] and the Random Forest Algorithms (RFs) [
11]. With the advent of Deep Learning (DL), the convolutional neural network (CNN) architecture has been widely used in image classification algorithms. In conjunction with the theory that HSI consists of multiple continuous and interconnected spectral channels, Hu [
12] proposed a one-dimensional convolutional neural network (1DCNN) classifier to capture local feature relationships between adjacent spectral channels to explain the correlation of local spectral channels in HSI.
The patch-based model is more frequently utilized for HSIc, due to the fact that hyperspectral images comprise not only spectral feature information, but also rich spatial feature information. Du [
13] proposed a 2DCNN because of its robust feature extraction ability and effective extraction of spatial feature information by using the convolution operation and weight sharing. The 3DCNN architecture is able to extract both local spatial and spectral feature information, simultaneously [
14,
15]. Chen et al. [
16] developed an indeterminate element model based on a 3DCNN architecture, which enhances the classification accuracy by incorporating local context information of high-spatial resolution images and semantic extraction of spatial-spectral features. Li et al. [
14] proposed an HSI classification method based on 3DCNN that did not require pre- and post-processing, which effectively extracted the spatial combination features of the depth spectrum. He et al. [
17] developed the M3D-DCNN model for HSIc, which enabled the joint modeling of multiple spectral bands and facilitated the integration and fusion of multiple features at different scales. In addition, hybrid architectures, such as HybridSN [
18], combine 3D convolutional neural networks (CNNs) for local feature extraction with 2D CNNs for broader spatial modeling, demonstrating promising performance in hyperspectral image (HSI) classification. Building on this concept, several studies have further investigated 2D-3D fusion strategies. For example, Ran et al. [
19] developed the Spectral–Spatial Residual Network (SSRN), which employs a hierarchical design that utilizes 3D convolutions for initial feature extraction, followed by 2D residual blocks to capture multi-level representations. Feng et al. [
20] created a hybrid convolutional neural network known as OCT-MCNN, which integrates 3D octave convolutions with 2D vanilla convolutions specifically for HSI classification. Additionally, the MDGCN framework [
21] effectively combines 3D CNNs with graph-based contextual modeling.
The visual transformer (ViT) [
22] has achieved advanced results in a range of visual tasks in the field of vision, providing new solutions and creative ideas for vision-related tasks. However, recent state-space models like Mamba [
23] have shown potential in modeling long-range dependencies with linear complexity, offering a new perspective beyond Transformers. By introducing the transformer [
24], spatial and spectral information are effectively integrated through the self-attention mechanism, which improves the understanding of the comprehensive feature classification model and the correlation of global information. For example, Sun et al. [
25] devised a Transformer-based integration of 2D and 3D CNN for HSIc. In addition, the mechanism of self-attention enables the interaction between the channels and other positions of each spectrum, which facilitates the adaptive learning of feature relationships. In addition to standard self-attention, specialized mechanisms tailored for HSI have recently been proposed to better exploit local spatial contexts within patches. For instance, the multiarea target attention (MATA) [
26] extracts multiscale spatial information from different neighborhood regions to accommodate varying target sizes, while the central attention network (CAN) [
27] emphasizes the primary role of the central pixel by calculating its similarity weights with surrounding neighbors. Also, it is notable that there is a paucity of models based on whole graph inputs, in comparison with the two aforementioned methods. In addition, Zhang et al. [
28] put forward a comprehensive, end-to-end HSIc framework. This framework aims to optimise the utilization of global spatial information and enhance the performance through the integration of a spectral-attention-based encoder and a lightweight decoder. More recently, patch-free encoder–decoder frameworks have also been developed for large-scale airborne HSI classification [
29]. To fundamentally bypass the overlapping and computational redundancy issues inherent in patch extraction, recent studies have also explored treating HSI classification directly as a full-image semantic segmentation task [
30], which efficiently harnesses both labeled and unlabeled pixels in an end-to-end manner.
Despite these advances, most existing deep HSIC methods still adopt a patch-based input strategy. In this setting, each labeled pixel is taken as the patch center, and its surrounding neighborhood is extracted as the model input, as illustrated in
Figure 1. This strategy is attractive because it enables the network to jointly exploit spectral and local spatial context. However, when training and test centers are randomly sampled from the same image, neighboring patches often overlap spatially. As a result, non-central pixels from test samples may appear inside training patches, and vice versa, as illustrated in
Figure 2 and
Figure 3. This overlap introduces train–test leakage and can lead to overly optimistic evaluation results [
31].
Recent studies have highlighted this problem in hyperspectral classification and suggested spatially disjoint or controlled sampling as a way to avoid overlap between training and test regions [
32,
33,
34,
35]. These strategies provide more reliable evaluation, but they may substantially reduce the number of available training samples, especially in small-sample settings. This limitation is particularly restrictive for HSIC, where labeled data are already scarce. Therefore, in addition to spatial separation, it is worthwhile to explore a complementary strategy that reduces overlap-induced leakage while preserving the conventional patch-based input format and retaining more training samples.
To this end, we propose a replacing overlapping pixels (ROP) strategy for patch-based HSIC. Instead of discarding spatial regions, ROP reconstructs patches by replacing overlapping pixels with same-class training pixels, thereby reducing direct train–test overlap at the pixel level. Since the reconstructed patches exhibit altered local spatial context, we further design a resolving data leakage network (RDLNet) equipped with a multiple feature extraction and fusion (MFEF) module. The proposed network combines multi-scale 3D and 1D convolutions to better capture complementary spectral–spatial information from ROP-reconstructed patches. The main contributions of this work are summarized as follows:
- 1.
We revisit the patch overlap problem in patch-based HSI classification and show that conventional random patch splitting may introduce train–test leakage, leading to overly optimistic performance estimates;
- 2.
We propose a replacement of overlapping pixels (ROP) strategy to construct a leakage-controlled patch evaluation strategy. ROP reduces direct overlap leakage while preserving the patch-based input format and retaining more samples than spatial buffer-based separation in small-sample settings;
- 3.
We design an RDLNet architecture with a multiple feature extraction and fusion (MFEF) module to model ROP-reconstructed patches more effectively. Experiments on five public datasets show that RDLNet achieves consistently strong performance under the proposed leakage-controlled strategy.
For ease of reference, a comprehensive list of abbreviations used throughout this manuscript is provided in
Table 1.
2. Materials and Methods
The proposed RDLNet, which mainly includes the ROP module and the MFEF module, is shown in
Figure 4.
2.1. Resolving Data Leakage
In this paper, we mainly conduct a series of studies on the HSIc method based on patch data. Patch-based HSI classification usually takes each labeled pixel as the patch center and extracts its surrounding neighborhood as the model input. Under conventional random splitting, however, training and test centers are sampled from the same image, so their corresponding patches often overlap spatially. As a result, non-central pixels from the test set may appear inside training patches, and vice versa. This train–test overlap introduces data leakage and may lead to overly optimistic evaluation results.
Figure 5a illustrates this issue with a simplified
example. Pixel 5 in the patch data is the pixel to be classified, pixels 2 and 9 belong to the pixels to be classified in the training set, and pixels 3 and 6 belong to the pixels to be classified in the test set. The remaining pixels 1, 4, 7, and 8 are all background pixels. This type of data partitioning leads to data leakage in the training process of the model, and the classification accuracy of the model increases as the patch size increases. This section explains how to solve the problem of data leakage as well as achieve good classification accuracy with less training data.
To solve the problem of the data leakage caused by pixel overlap between training and test data during the training process, we propose a method to replace overlapping pixels (ROP) in patch data and test pixels in the overlapping region of training patch data with training pixels of the same category. As shown in
Figure 5b, pixel points 3 and 6 in the test set are to be classified, and these points are replaced by other pixels of the same category in the training set. Similarly, when constructing patches for test set pixels, if any position within a test patch contains a training pixel (i.e., a pixel that appears in the training set), that position is replaced by a randomly selected training pixel of the same class. Specifically, for each test patch centered at a test pixel, we scan all spatial positions within the patch window; if a position
corresponds to a training pixel in the original image, we replace the spectral vector at that position with a randomly drawn spectral vector from the training set belonging to the same class label.
| Algorithm 1 Replacing Overlapping Pixels Method |
Input: , , Output: (with overlapping pixels replaced)
- 1:
Initialize as an empty dictionary: - 2:
, - 3:
for to do - 4:
- 5:
if then - 6:
- 7:
end if - 8:
end for - 9:
for to do - 10:
for to do - 11:
for to do - 12:
if and then - 13:
- 14:
- 15:
- 16:
end if - 17:
end for - 18:
end for - 19:
end for - 20:
return
|
Therefore, the reconstructed patch should be understood as a leakage-controlled evaluation input rather than a natural spatial neighborhood sampled from the original scene.
The price of this strategy is that the natural spatial continuity of the patch is partially weakened, because some neighboring pixels are replaced by same-class pixels drawn from other spatial locations. Nevertheless, the patch-based input format is preserved, and the evaluation becomes less dependent on overlap-induced leakage. This produces a leakage-controlled setting for patch-based HSI classification.
The detailed mathematical formulations are given in Equations (
1) and (
2).
where
represents the collection of all patch data, with
N being the total number of patches,
the spatial dimensions of each patch, and
C the number of spectral bands. The indices
i,
j, and
k denote the patch index, row position within the patch, and column position within the patch, respectively.
is the label map indicating which pixels belong to the training set (non-zero values correspond to training pixels, zero values indicate test or background pixels).
is the original ground-truth label map for all pixels in the image.
is a class-wise dictionary structure where
is a list storing all training pixel spectral vectors belonging to class
c. Specifically,
, where
is the number of training samples in class
c and each
is a spectral vector. The variable
is a random integer uniformly sampled from
, ensuring that each replacement draws a different training sample from the same class.
Algorithm 1 summarizes the implementation of ROP. First, a class-wise candidate pool is built from the center pixels of the training patches. Then, each patch is scanned position by position, and every overlapping non-central pixel is replaced according to Equations (
1) and (
2). Since only overlapping positions are modified, the total number of training and test patches remains unchanged.
In ROP, the replacement pixel at each overlapping position is randomly sampled from the class-wise candidate pool. Therefore, the reconstructed patch is not unique, and different random seeds may lead to slightly different local spectral–spatial configurations and, consequently, slightly different classification results. This stochastic effect is expected to be more noticeable when the candidate pool of a class is small or when the class exhibits strong intra-class variability.
2.2. Multiple Feature Extraction and Fusion Module
After applying the ROP strategy, the reconstructed patches retain class-relevant spectral information but exhibit partially modified local spatial context. To better model such inputs, we design a multiple feature extraction and fusion (MFEF) module. The purpose of MFEF is to extract complementary spectral–spatial representations at different scales and then fuse them for final classification.
As shown in
Figure 6, the MFEF module consists of two parallel 3D convolution branches and one parallel 1D convolution branch. The two 3D branches are used to capture joint spectral–spatial features under different spectral receptive fields, while the 1D branch focuses on fine-grained spectral dependency modeling. In this way, the module combines local spectral–spatial context with detailed spectral discrimination, which is particularly useful for ROP-reconstructed patches whose spatial continuity is partially weakened.
More specifically, the 3D branches operate on the input patch cube and learn spatial–spectral representations from different kernel depths, enabling the network to capture multi-scale contextual information. The 1D branch models spectral correlations along the band dimension and provides complementary spectral cues that are less sensitive to spatial perturbation. The outputs of the three branches are then fused and fed into the classifier to obtain the final category prediction.
The 3D and 1D convolution operations used in the network are defined as follows:
Here,
denotes the output at spatial–spectral position
in the
jth feature map of the
ith 3D convolution layer, and
denotes the output at position
x in the
jth feature map of the
ith 1D convolution layer.
is the activation function,
represents the convolution kernel weights, and
is the bias term.
By combining multi-scale 3D feature extraction with 1D spectral modeling, MFEF provides a compact and effective representation for HSI classification under the proposed leakage-controlled setting.
3. Experiments and Results
3.1. Datasets and Experimental Setup
In order to ascertain the viability of the proposed model, five datasets were selected for experimental analysis: Pavia University (PU), Salinas (SA), Xuzhou [
36,
37], Honghu [
38], and Longkou [
39]. The image specifications of the PU dataset are 610*340*102, and the ROSIS sensor is used to shoot over Pavia, northern Italy, with a ground truth of nine classes. The image specifications of the SA dataset are 512*217*204, obtained by the AVIRIS sensor, and the image ground truth is 16 classes. The image size of the Xuzhou dataset is 500*260*436, and the HYSPEX hyperspectral airborne camera (Norsk Elektro Optikk AS, Skedsmokorset, Norway) is used to shoot over the suburban sites of Xuzhou. Its ground truth is nine classes. The image specifications of the Honghu dataset are 940*475*270, obtained by the Headwall Nano-Hyperspec sensor, including 22 classes. The image specifications of the Longkou dataset with the Headwall Nano-Hyperspec sensor are 550*400*270, wherein 9 classes are present.
Table 2 and
Table 3 show the number of training samples of each class for these five datasets.
Figure 7 shows their corresponding false color images and ground truth maps.
It should be stressed that, as the operation PCA (principal component analysis) has been demonstrated to be useful for HSIc [
40], we here also adopt it in RDLNet. For the principal component values of PCA, the starting point is [20; 30; 40; 50]. The number of training individuals for each category of these datasets was set to 30.
Table 4 illustrates the OA values for varying principal component values. It can be observed that the Xuzhou dataset exhibits the best results when the value of the principal component is set to 20. Similarly, the PU and Longkou datasets demonstrate the best results when the value of the principal component is set to 30. When the value is set to 40, the SA and Honghu datasets yield the best results. Therefore, the value of PCA for these five datasets was set to [30; 40; 20; 40; 30].To ensure a fair comparison, the same PCA configuration was applied uniformly to all comparative methods. This controlled setting avoids method-specific PCA tuning and makes the comparison focus on architectural differences.
In addition to reducing the dimensionality of these datasets, other parameter values are also set. During the training process, the patch size, learning rate, and training period were set to 11, 0.0001, and 100, respectively. Due to the high cost of labelling hyperspectral images, a total of 30 randomly selected center pixels were chosen for each category as the training set in these datasets. Each center pixel was then expanded into an patch, where C denotes the number of spectral bands after PCA. Therefore, the total number of training patches equals , and applying ROP changes only the spectral content of overlapping positions without changing the number of training or test patches.
To demonstrate the effectiveness of this network, nine methods are selected for a fair comparison. They are 1DCNN [
12], 2DCNN [
13], 3DCNN [
16], ViT [
22], MCVT [
41], DBDA [
42], SSFTT [
25], CMRCNN [
43], and MIEPN [
44]. Note that the aforementioned methods are compared with the method used in this work, both without and with the ROP strategy. To ensure statistical reliability and account for the variability introduced by random sampling in the ROP procedure, all experiments are repeated five times with different random seeds (seeds = 0, 1, 2, 3, 4). Each run involves independent data splitting, ROP reconstruction, and model training. The reported results in
Table 5 and
Table 6 are presented as “mean ± standard” deviation across these five runs. To evaluate the performance of various methods, the following metrics were employed: Overall Accuracy (OA), Average Accuracy (AA), and Kappa Coefficient (Kappa), that is,
where
denotes the number of classes,
is the number of correctly classified samples in class
i,
is the total number of test samples, and
is the number of test samples in class
i. In Equation (
6),
and
denote the sums of the
ith row and the
ith column of the confusion matrix, respectively.
3.2. Results and Analyses
Figure 8,
Figure 9 and
Figure 10 summarize the performance of all methods across the five datasets. In each bar chart, the darker bottom portion represents the robust classification performance obtained under the proposed leakage-controlled ROP strategy. The lighter, transparent portion on top explicitly highlights the performance gap—specifically, the inflated accuracy caused by overlap-induced data leakage under the conventional patch strategy. This visual comparison provides a direct and stark view of how severely train–test overlap can overestimate a model’s true generalization capability. As shown in these figures, while baseline methods experience a dramatic collapse in accuracy once the leaked information is removed, RDLNet (indicated by the red dashed line) effectively defends against this degradation.
Table 5 reports the results obtained under the conventional random patch strategy. Since this strategy suffers from overlap-induced train–test leakage, these results are presented only for reference. As shown in the table, many methods achieve very high accuracies under this setting, such as CMRCNN on PU and DBDA on LongKou. However, these results may be inflated because overlapping pixels allow the model to benefit from leaked information. The classification maps in
Figure 11 further illustrate this phenomenon.
Table 6 and
Figure 12,
Figure 13,
Figure 14,
Figure 15 and
Figure 16 present the main results under the proposed leakage-controlled strategy. After applying ROP, the performance of most comparative methods drops substantially, indicating that part of their apparent gains under the conventional strategy comes from overlap-induced leakage rather than true generalization. For example, the OA of CMRCNN on PU decreases from 93.36 (±1.56)% to 74.15 (±2.68)%, and SSFTT on Longkou decreases from 95.02 (±2.10)% to 73.04 (±4.18)%.
In contrast, RDLNet consistently achieves the best performance on all five datasets under the ROP-based setting. Specifically, it obtains OA values of 82.29 (±2.35)% on PU, 92.80 (±2.22)% on SA, 91.54 (±1.06)% on Xuzhou, 67.99 (±1.57)% on Honghu, and 89.90 (±3.33)% on Longkou. Compared with the second-best method, RDLNet improves mean OA by 6.44% on PU, 0.95% on SA, 2.27% on Xuzhou, 2.53% on Honghu, and 3.92% on Longkou. These results indicate that the proposed MFEF design is more effective for modeling ROP-reconstructed patches.
Beyond the average results, the standard deviations in
Table 5 and
Table 6 quantify the run-to-run variability caused by random data splitting, stochastic ROP reconstruction, and network optimization. In general, a smaller standard deviation indicates that a method is less sensitive to random factors and yields more repeatable performance, whereas a larger deviation suggests that the reported accuracy depends more strongly on specific random realizations. Under the proposed ROP setting, several baseline methods exhibit relatively large fluctuations on some datasets, such as ViT on PU (OA: 69.41 ± 10.60), SSFTT on Xuzhou (OA: 78.28 ± 10.39), and CMRCNN on Honghu (OA: 50.01 ± 14.07), indicating limited stability once overlap-induced leakage is removed. In contrast, RDLNet maintains moderate deviations across the five datasets (OA std: ±2.35 on PU, ±2.22 on SA, ±1.06 on Xuzhou, ±1.57 on Honghu, and ±3.33 on Longkou), which suggests that its performance advantage is not due to a favorable single run but can be reproduced under different random seeds.
The advantage of RDLNet is also reflected in AA and Kappa. On PU, for example, RDLNet achieves 90.48% AA and 80.00% Kappa, both clearly higher than those of the compared methods. Similar trends can be observed on the other four datasets. This suggests that the proposed model not only improves overall classification accuracy but also maintains more balanced class-wise performance under the leakage-controlled setting.
Overall, the results support two conclusions. First, conventional random patch splitting may considerably overestimate the performance of HSI classifiers because of train–test overlap. Second, once this overlap is controlled, RDLNet remains consistently strong across datasets, showing that the proposed architecture is better suited to fair patch-based HSI evaluation.
3.3. Ablation Study
To better understand the contribution of each component in the proposed model, we conduct ablation experiments on the PU dataset under the ROP-based setting.
Table 7 reports the results of different branch combinations in the MFEF module.
Using a single branch already yields competitive performance, with the 1D branch achieving the best OA among the three single-branch variants. However, combining two branches consistently improves the results, which indicates that feature representations from different dimensions are complementary. Among all combinations, the 3D + 1D setting achieves the best performance, reaching 84.56% OA, 90.48% AA, and 80.00% Kappa. This confirms that the proposed MFEF design effectively combines joint spectral–spatial modeling with fine-grained spectral discrimination.
In contrast, the simultaneous use of 3D, 2D, and 1D branches leads to a noticeable performance drop. A likely reason is that the additional 2D branch introduces redundant or less compatible spatial features after ROP modifies the local neighborhood structure. At the same time, the three-branch configuration increases optimization difficulty in the small-sample setting, which may further weaken the effectiveness of feature fusion. Therefore, the best performance is obtained not by using all possible branches, but by combining the most complementary ones.
To further illustrate the behavior of MFEF,
Figure 17,
Figure 18,
Figure 19 and
Figure 20 visualize representative feature maps and activation distributions on the PU dataset. The three branches exhibit different response patterns, suggesting that they capture complementary information at different scales. After fusion, the resulting representation preserves discriminative responses while suppressing part of the noise, which is consistent with the quantitative results in
Table 7. To further validate the stability of RDLNet beyond the fixed 30-samples-per-class protocol, we analyze performance under varying training sample sizes and examine whether the advantage of the MFEF module remains consistent across different sample regimes.
To further illustrate the internal mechanism of MFEF and verify that it effectively avoids over-smoothing,
Figure 17,
Figure 18 and
Figure 19 visualize representative feature maps from the individual 3D and 1D branches on the PU dataset. The visualizations reveal distinct and complementary response patterns: the 3D convolutional branches effectively capture multi-scale spatial–spectral context, while the 1D branch preserves fine-grained spectral discriminability independent of local spatial perturbations. Furthermore, as shown in
Figure 20, after fusing these multi-dimensional features, the network successfully retains highly discriminative target activations while strongly suppressing background noise. This confirms that the proposed parallel multi-branch design extracts rich local details without suffering from the over-smoothing degradation typically seen in excessively redundant spatial architectures.
Table 8 further compares RDLNet with and without the ROP strategy on all five datasets. After applying ROP, the OA reduction remains moderate, ranging from 1.30% to 2.66% across datasets. This trend is much smaller than the performance drops observed for most comparative methods in
Table 5 and
Table 6. These results suggest that RDLNet is relatively stable under the proposed leakage-controlled setting and is better suited to ROP-reconstructed patches.
4. Discussion
The experimental results demonstrate that most comparative methods experience substantial performance degradation after applying the ROP strategy, whereas RDLNet remains consistently strong across all five datasets. This suggests that the proposed model is less dependent on overlap-induced leakage and is better able to learn discriminative representations from leakage-controlled patches. A possible reason lies in the design of the MFEF module. After ROP is applied, the reconstructed patches still preserve class-related spectral signatures, but their natural local spatial continuity is partially weakened. Under this condition, feature extractors that rely too heavily on intact local spatial patterns may become less effective. However, as highlighted by recent central attention mechanisms [
27], the central pixel provides the primary and most decisive spectral information, while neighboring pixels serve mainly as auxiliary context. Because our ROP strategy strictly preserves the target central pixel while only modifying the overlapping surroundings, architectures with robust spectral–spatial fusion capabilities—like our proposed MFEF module combining 3D and 1D branches—can still effectively classify the target. In contrast, the proposed MFEF module combines two 3D branches and one 1D branch, which allows the network to jointly model spectral–spatial context while preserving fine-grained spectral discrimination.
The ablation results in
Table 7 support this interpretation: the 3D + 1D combination achieves the best performance, whereas adding the 2D branch leads to a decline, likely because it introduces redundant or less compatible spatial features after ROP modifies the local neighborhood structure. The visualization results in
Figure 17,
Figure 18,
Figure 19 and
Figure 20 provide further evidence that different branches of MFEF capture complementary response patterns. After fusion, the resulting representation preserves discriminative activations while suppressing part of the noise, which is consistent with the quantitative improvements observed. In addition,
Table 8 shows that the performance reduction of RDLNet after applying ROP remains moderate across datasets, further indicating that the proposed architecture is relatively stable under the leakage-controlled setting.
The reported standard deviations also help interpret the robustness of the proposed leakage-controlled evaluation. Since the variability aggregates the effects of random train/test sampling, replacement-pixel sampling in ROP, and model training dynamics, the relatively constrained deviations of RDLNet indicate that the proposed MFEF design adapts well to the stochastic perturbations introduced by patch reconstruction. By contrast, the larger deviations observed for some comparative methods imply that their predictions are more sensitive to specific reconstructed neighborhood configurations, suggesting a stronger dependence on fragile local spatial patterns. Therefore, the standard deviation should be interpreted together with the mean result: methods with strong average performance and relatively small deviations are more convincing under the proposed leakage-controlled strategy.
Despite the effectiveness of the MFEF module in mitigating overlap-induced leakage, the proposed ROP strategy and the RDLNet architecture still present certain limitations. First, ROP replaces overlapping neighbors with the same-class training pixels from other spatial locations, which inevitably weakens the natural spatial continuity of the patch. Therefore, ROP is better viewed as a leakage-controlled patch reconstruction strategy rather than a perfect surrogate for natural scene structure. In practice, ROP is particularly suitable for small-sample settings where preserving training samples is more critical than preserving exact local spatial continuity. Second, ROP assumes that pixels from the same class are sufficiently similar to serve as replacements, which may be less suitable for classes with strong intra-class variability.
Furthermore, limitations also exist within the architectural configurations. In this work, all experiments are conducted under a fixed patch size of
, and PCA is used as a preprocessing step for dimensionality reduction. As shown in
Table 4, the optimal PCA dimension still needs to be selected manually for different datasets. Additionally, to further examine the trade-off between recognition performance and model complexity,
Table 9 reports a representative comparison with 1D-CNN, 2D-CNN, and 3D-CNN on the PU dataset under the setting of PCA = 30 and patch size
. As expected, RDLNet is more complex than simple 1D and 2D CNN baselines, but it requires fewer parameters and fewer FLOPs than the 3D-CNN baseline while achieving substantially better recognition performance under the ROP-based setting. These results indicate that RDLNet does not pursue minimal complexity, but achieves a favorable accuracy–efficiency trade-off among representative CNN-based models.
To further validate the stability of RDLNet and ensure its advantages are not restricted to the fixed few-shot protocol (i.e., 30 samples per class), we evaluated the model’s performance under varying training sample sizes, ranging from 10 to 100 samples per class. As illustrated by the performance curves in
Figure 21 and
Figure 22 for the SA and PU datasets, respectively, RDLNet consistently maintains a clear competitive margin over the baseline methods across all tested sample regimes. This stable upward trajectory indicates that the multi-dimensional convolution design of the MFEF module is universally effective for feature extraction on leakage-controlled patches, rather than being a hyperparameter artifact optimized solely for extremely low-sample constraints.
Looking ahead, future work may proceed in several directions. A more systematic comparison between ROP and spatially disjoint sampling would help clarify their relative advantages in terms of sample efficiency and spatial realism. It would also be highly beneficial to explore adaptive dimensionality selection instead of manually choosing PCA dimensions for each dataset. Finally, extending the proposed framework to accommodate variable patch sizes, broader remote sensing tasks, or more lightweight backbone architectures will further enhance its practical applicability.
5. Conclusions
This paper revisits the train–test overlap problem in patch-based hyperspectral image classification, demonstrating that conventional random patch splitting can lead to overly optimistic performance evaluations due to data leakage. To address this critical issue, we propose the replacing overlapping pixels (ROP) strategy, which reconstructs patch data in a leakage-controlled manner while preserving the standard patch-based input format. Furthermore, to effectively model these reconstructed patches, we designed the Resolving Data Leakage Network (RDLNet), featuring a Multiple Feature Extraction and Fusion (MFEF) module that seamlessly integrates multi-scale 3D and 1D convolutions.
Extensive experiments across five public hyperspectral datasets reveal a stark reality: while existing state-of-the-art methods suffer significant performance degradation once overlap-induced leakage is eliminated, RDLNet maintains consistently high and robust accuracy. The multi-branch design successfully captures complementary spectral–spatial features without over-smoothing, and its superiority persists across varying training sample sizes, proving its stability beyond extreme few-shot conditions.
Ultimately, this study not only provides a highly effective classification architecture but also highlights the pressing need for fair, leakage-free benchmarking protocols in the HSI community. Future research will build upon this foundation by exploring adaptive dimensionality reduction techniques and extending the proposed leakage-controlled framework to broader remote sensing tasks and variable spatial scales.