Source-linked AI summary

On the Sampling Strategy for Evaluation of Spectral-spatial Methods in Hyperspectral Image Classification

Jie Liang, Jun Zhou, Yuntao Qian, Lian Wen, Xiao Bai, Yongsheng Gao

arXiv:1605.05829v1cs.CV

TL;DR

When training and testing samples come from the same image, spatial processing can increase their dependence and bias evaluation of spectral-spatial classifiers. The paper proposes controlled random sampling to reduce overlap; its analysis finds that increased dependence can partly explain accuracy gains under traditional random sampling.

  • Problem

    Experimental settings for spectral-spatial classification have received less attention, although same-image random sampling can let spatial operations couple training and testing data.

    Source: §I · p. 2
  • Method

    The paper proposes controlled random sampling to alleviate traditional same-image random sampling's effects by reducing overlap between training and testing data.

    Source: §I · p. 4
  • Results

    The analysis finds that spectral-spatial methods can increase train-test dependence under random sampling, partly accounting for improved classification accuracy.

    Source: §VIII · p. 26
  • Takeaways & Limitations

    Pixel-based random sampling is not always suitable for evaluating spectral-spatial methods, and controlled sampling offers a fairer evaluation approach.

    Source: §I · pp. 2, 4

Abstract

from arXiv · show

Spectral-spatial processing has been increasingly explored in remote sensing hyperspectral image classification. While extensive studies have focused on developing methods to improve the classification accuracy, experimental setting and design for method evaluation have drawn little attention. In the scope of supervised classification, we find that traditional experimental designs for spectral processing are often improperly used in the spectral-spatial processing context, leading to unfair or biased performance evaluation. This is especially the case when training and testing samples are randomly drawn from the same image - a practice that has been commonly adopted in the experiments. Under such setting, the dependence caused by overlap between the training and testing samples may be artificially enhanced by some spatial information processing methods such as spatial filtering and morphological operation. Such interaction between training and testing sets has violated data independence assumption that is abided by supervised learning theory and performance evaluation mechanism. Therefore, the widely adopted pixel-based random sampling strategy is not always suitable to evaluate spectral-spatial classification algorithms because it is difficult to determine whether the improvement of classification accuracy is caused by incorporating spatial information into classifier or by increasing the overlap between training and testing samples. To partially solve this problem, we propose a novel controlled random sampling strategy for spectral-spatial methods. It can greatly reduce the overlap between training and testing samples and provides more objective and accurate evaluation.

I. INTRODUCTION

When training and testing samples are randomly drawn from the same hyperspectral image, spatial relationships can undermine independent evaluation of spectral-spatial methods. The paper analyzes this problem and proposes controlled random sampling to reduce train-test overlap and support fairer evaluation.

I. INTRODUCTION

  • Same-image random sampling can place training and testing samples near one another, undermining their independence through spatial correlation.This setting is common partly because benchmark data and ground-truth labels are limited.Source: §I · pp. 2–3
  • Spatial operations can overlap training and testing data, allowing test-set information into training and potentially exaggerating classification accuracy.The authors note that this can bias evaluation of spectral-spatial methods.Source: §I · pp. 3–4
  • The authors find that spectral-spatial methods can increase train-test dependence and classification accuracy under random sampling, and explain this phenomenon using computational learning theory.Source: §I · p. 4
  • The proposed controlled random sampling strategy reduces overlap between training and testing samples to support more objective evaluation of spectral-spatial methods.Source: §I · p. 4

II. SPECTRAL-SPATIAL PROCESSING IN HYPERSPECTRAL IMAGE CLASSIFICATION

Spectral-spatial classification uses spatial structure in preprocessing, feature extraction, and classification. The supplied experiments show that same-image random sampling can make spatial information highly predictive, complicating evaluation of spectral-spatial methods.

II. SPECTRAL-SPATIAL PROCESSING IN HYPERSPECTRAL IMAGE CLASSIFICATION

  • Spatial information supports classification through preprocessing, neighborhood-based feature extraction, and models that use relations among pixels.Examples include denoising and morphology, texture and morphological-profile features, and Markov or conditional random fields.Source: §II · p. 5

III. SPATIAL INFORMATION EMBEDDED IN RANDOM SAMPLING

  • Randomly sampled training pixels can reveal class geography: in some benchmark images, test labels may be inferred from their spatial relation to training samples.The experiment compared spatial coordinates and spectral features using SVMs across five datasets and sampling rates of 5%, 10%, and 25%.Source: §III · pp. 6–7
  • At 5% sampling, spatial-feature SVM exceeds 93.8% overall accuracy on all five datasets, versus 75.5%–93.2% for spectral-feature SVM.At a 25% sampling rate, spatial-feature accuracy almost reaches 100%.Source: §III · pp. 7–8, Table I · p. 8

DATASETS WHEN DIFFERENT FEATURE/CLASSIFIER COMBINATIONS WERE USED: SPECTRAL FEATURE WITH SVM (SPE),

  • Spatial-feature KNN with K=1 performs comparably to spatial-feature SVM, while both outperform spectral-feature SVM; nevertheless, their maps diverge from ground truth.The KNN prediction uses the nearest training pixel in spatial coordinates; maps include unlabeled pixels.Source: DATASETS WHEN DIFFERENT… · pp. 8–9

IV. OVERLAP BETWEEN TRAINING AND TESTING DATA FROM THE SAME IMAGE

Neighborhood-based feature extraction makes training and testing features overlap when samples come from the same image. This shared information can compromise their independence and bias evaluation.

IV. OVERLAP BETWEEN TRAINING AND TESTING DATA FROM THE SAME IMAGE

  • Sliding-window features from the same image share spatial regions between training and testing samples, and larger filters increase the overlap.The passage illustrates the mechanism with 3 × 3 and 5 × 5 windows.Source: §IV · pp. 9–10, Figure 5 · p. 10
  • Even when raw spectral features have no explicit overlap, same-image sampling places training pixels near test pixels, making spatial correlation a concern.This concern is specific to spectral-spatial processing when neighborhood information is used.Source: §IV · p. 9
  • Shared regions let testing data contribute to training features, violating the supervised-learning principle that training and testing data should not interact.The contribution can be explicit, as with concatenated neighborhood spectra, or implicit, as with texture features based on spatial-frequency analysis.Source: §IV · p. 10

A. Experiment with a Mean Filter Based Spectral-spatial Method

A mean filter produces neighborhood-based spectral-spatial features whose overlap with test samples increases with filter size and sampling rate. The experiments report increasing accuracy as neighborhoods grow, followed by a plateau.

A. Experiment with a Mean Filter Based Spectral-spatial Method

  • At 5% sampling, training-feature neighborhoods cover 30.9% of test samples at 3 × 3; at 25% sampling, coverage reaches 86.4%.Overlap also rises rapidly as filter size grows, reaching 100% when all test samples are used in the training process.Source: Figure 7 · p. 11, A. Experiment with a Mean Filter Based… · p. 11
  • As neighborhood size increases, classification accuracy rises and then stabilizes; the authors suggest that unlabeled pixels or other-class samples may neutralize overlap benefits at larger sizes.The accuracy comparison uses the same training and testing samples under each setting.Source: Figure 8 · p. 11, A. Experiment with a Mean Filter Based… · p. 12
  • The experiment applies a neighborhood mean to spectral responses to create spectral-spatial features, varying both neighborhood dimensions from 1 to 27 in steps of 2.The evaluation used a linear SVM and repeated random training/testing splits ten times.Source: A. Experiment with a Mean Filter Based… · pp. 10–12

B. Non-overlap Measurement

Non-overlap testing separates the contribution of spatial neighborhoods from gains associated with training–testing overlap. The section relates spatial dependence to classification bounds and shows how filtering can strengthen that dependence.

B. Non-overlap Measurement

  • Non-overlap testing accuracy improves with the initial 3 × 3 mean filter, then does not rise and can decrease as filter size grows; overlapped-test accuracy rises markedly.The authors suggest neighboring samples from other classes may influence non-overlap test pixels.Source: B. Non-overlap Measurement · p. 12
  • Random-sampling overlap can let testing information enter training through spatial operations, improving reported results while violating supervised-learning assumptions and leaving generalization questionable.The authors extend this concern beyond the analyzed filter-based case to other operations that increase data dependence.Source: B. Non-overlap Measurement · p. 13, §V · p. 16

V. DATA DEPENDENCE AND CLASSIFICATION ACCURACY

  • For β-mixing data, the generalization bound depends on the β-mixing coefficient, and the bound tightens as dependence increases.The paper uses a Rademacher-complexity bound extended to β-mixing data.Source: §V · pp. 14–15
  • On Indian Pines, mean spectral-response correlation across image locations decreases with pixel distance in all directions, consistent with β-mixing.The analysis approximates dependence with a linear correlation coefficient and averages patches centered at all image locations.Source: §V · p. 15, Figure 9 · p. 16
  • With larger mean filters, pixels at the same distance become more dependent; the authors connect this increase and training–testing overlap to a tighter classification error bound.The plotted correlations decrease with distance for all filter sizes.Source: §V · pp. 15–16, Figure 10 · p. 16

VI. A CONTROLLED RANDOM SAMPLING STRATEGY

Controlled random sampling seeks to reduce spatial overlap while retaining class coverage, spectral representativeness, and randomness. It uses region growing from randomly selected seeds, reducing testing-data influence to training-region boundaries in the described examples.

VI. A CONTROLLED RANDOM SAMPLING STRATEGY

  • The strategy balances reduced overlap with representative spectral coverage and randomness, despite the tension between clustered training samples and spatially distributed samples.The motivation also notes that separate-image training and testing are often infeasible because benchmark data and ground truth are limited.Source: §VI · pp. 16–17
  • After Gaussian filtering, controlled random sampling limits testing-data influence to training-region edges, unlike random sampling, where all training samples are affected.The comparison is shown for the two sampling strategies after filtering.Source: Figure 11 · p. 18, §VI · p. 19
  • Random seed points are grown into locally concentrated, globally dispersed training regions, expanding through 8-connected same-class neighbors until each partition reaches its allocated sample count.Training samples are selected in proportion to each partition’s size; remaining pixels form the test set.Source: §VI · pp. 17–19
  • On Indian Pines and Pavia University examples at 5%, 10%, and 25% sampling rates, training samples remain distributed across each image while covering broad spectral variation.The examples show reduced ability to infer class spatial structure from training samples compared with random sampling.Source: Figure 12 · p. 19, §VI · p. 19
  • Overlap is not eliminated, but its influence is greatly reduced to limited pixels at training-region boundaries, supporting more objective evaluation of spectral-spatial methods.The authors describe this as a reduction, not complete separation of training and testing data.Source: §VI · pp. 19–20

VII. EXPERIMENTS

The experiments compare sampling strategies across preprocessing, raw spectral responses, and spectral-spatial feature extraction. They use two classifiers and five benchmark datasets.

VII. EXPERIMENTS

  • Experiments compare random and controlled random sampling for mean and Gaussian preprocessing, raw spectral features, and 3D discrete wavelet and morphological-profile feature extraction.The preprocessing examples are smoothing and denoising operations.Source: §VII · p. 20
  • Support vector machine and random forest classifiers are used to validate the experiments.The paper identifies LIBSVM and Weka 3 as the respective implementations.Source: §VII · p. 20
  • The experiments use Botswana, Indian Pines, Kennedy Space Center, Pavia University, and Salinas benchmark datasets.Source: §VII · p. 20

A. Evaluation of Spectral-spatial Preprocessing Method

The preprocessing experiments show that filter-related accuracy gains differ between random and controlled sampling. With controlled sampling, improvements are marginal or unstable rather than continuously increasing with filter size or strength.

A. Evaluation of Spectral-spatial Preprocessing Method

  • 92.4% on Indian Pines and 98.0% on Pavia University are reached with larger mean filters under random sampling, while controlled-sampling accuracy improves marginally then drops as filter size grows.The authors attribute the random-sampling increase mainly to greater training–testing overlap.Source: A. Evaluation of Spectral-spatial… · p. 20, Figure 13 · p. 21
  • The Gaussian-filter experiment smooths each image band, varies standard deviation, and evaluates mean overall accuracy across 10 repetitions.Filter size varies with standard deviation so smoothing decays nearly to zero at mask boundaries.Source: A. Evaluation of Spectral-spatial… · p. 21
  • With Gaussian filtering, random-sampling accuracy rises as standard deviation increases to a point, whereas controlled-sampling accuracy improves marginally before stabilizing or dropping.The authors report that appropriate smoothing can remove noise, but very strong smoothing may mix training data with unlabeled data at image-region boundaries and impair class discrimination.Source: A. Evaluation of Spectral-spatial… · pp. 21–22, Figure 14 · p. 22

B. Raw Spectral Feature

The raw-spectral experiment finds lower accuracy under controlled random sampling, while concluding that the strategy still supports fair evaluation of classifiers. It also identifies SVM as preferable to RF in this experiment.

B. Raw Spectral Feature

  • Controlled random sampling reduces accuracy, and test samples far from training regions are more easily misclassified than under random sampling.The accuracy reduction is attributed to less complete capture of within-class variation across regions.Source: B. Raw Spectral Feature · p. 23, Figure 15 · p. 23
  • Controlled random sampling produces higher accuracy standard deviations, attributed to differences in training data generated by each random seed.Source: B. Raw Spectral Feature · p. 23
  • Higher sampling rates increase classification accuracy under both sampling strategies.Source: B. Raw Spectral Feature · p. 23
  • The authors conclude the strategy remains qualified for algorithm evaluation, and SVM is preferred over RF in this experiment.Source: B. Raw Spectral Feature · pp. 23–24

C. Spectral-spatial Features

The section tests 3D-DWT and morphological profiles as spectral-spatial features; 3D-DWT improves on raw spectral features, but its advantage is less pronounced with controlled sampling.

C. Spectral-spatial Features

1) 3D discrete wavelet transform:

  • 3D-DWT decomposes image data into 15 scale-specific sub-cubes, applies mean filtering, and concatenates features across spatial and spectral dimensions.The filtered signals are not downsampled, preserving the original data-cube size.Source: 1) 3D discrete wavelet transform · p. 24
  • 3D-DWT performs better than raw spectral features under both sampling strategies, but its improvement is less significant with controlled sampling, especially on Indian Pines, Pavia University, and Salinas.Source: 1) 3D discrete wavelet transform · p. 25

2) Morphological profile:

Morphological profiles improve on raw spectral features under random sampling, but their improvement is less significant under controlled sampling. The comparison also shows dataset-dependent differences between EMP and 3D-DWT.

2) Morphological profile:

  • EMP uses opening and closing operations at different structuring-element sizes to integrate multi-scale object structure; PCA precedes profile extraction, and the profiles are stacked with spectral responses.Source: 2) Morphological profile · p. 25
  • Morphological profiles improve on raw spectral features under random sampling, but the improvement is less significant under controlled sampling, which limits reliance on overlapped training and testing information.Source: 2) Morphological profile · pp. 25–26
  • With controlled sampling, 3D-DWT performs slightly better than EMP on Indian Pines, while EMP performs significantly better on Pavia University.The authors caution that direct comparisons can be uninformative because features may suit particular datasets or classifiers.Source: 2) Morphological profile · p. 26

VIII. CONCLUSION

The paper argues that same-image random sampling can overlook overlap and spatial dependence between training and testing samples. It proposes controlled random sampling to alleviate these problems, while noting that scarce labeled data motivates building more benchmarks.

VIII. CONCLUSION

  • The conclusion identifies overlap and spatial dependence in same-image random sampling as problems for evaluating spectral-spatial methods, and proposes controlled random sampling to alleviate them.Source: §VIII · p. 26
  • The evaluation concern is specifically the experimental setting, especially when training and testing use the same image; the paper does not criticize spectral-spatial methods themselves.Source: §VIII · p. 26
  • The authors identify scarce labeled hyperspectral data as the underlying constraint and call for more benchmark datasets for future research.Source: §VIII · p. 26
Loading 1605.05829v1…