Cross-View-Prediction: Exploring Contrastive Feature for Hyperspectral Image Classification

Haotian Wu, Anyu Zhang, Zeyu CaoarXiv 2022 · DOI

Introduction

Hyperspectral Imaging (HSI) provides a wealth of spectral information by capturing hundreds of narrow bands for each spatial pixel. This high-dimensional data is critical for applications in environmental monitoring, agriculture, and urban planning. However, the effectiveness of deep learning in this domain is often hampered by the "curse of dimensionality" and the extreme scarcity of high-quality labeled data. Supervised models, while powerful, frequently suffer from poor generalization when faced with sensor variations or distribution shifts.

To address these challenges, this paper proposes a self-supervised framework termed Cross-View-Prediction. By leveraging the inherent redundancy in spectral channels, the model learns robust, discriminative features without requiring any manual annotations.

Methodology: The Cross-View-Prediction Framework

The core innovation lies in a two-stage process that transforms a single HSI cube into a multi-view learning problem.

1. Cross-Representation Learning

Unlike standard computer vision tasks where data augmentation involves spatial transformations (e.g., rotation, cropping), HSI benefits from spectral-domain manipulation. The authors propose splitting the spectral channels into two distinct subsets, $X_1$ and $X_2$. Several splitting strategies are explored, including Parity (odd/even), Sequential (first/second half), Random, and Overlapping splits.

Overview of the Cross-View-Prediction framework, showing the spectral channel splitting and the Siamese VAE/AAE architecture.

As shown in the figure above, these subsets are processed by a Siamese-like architecture consisting of a Variational Autoencoder (VAE) and an Adversarial Autoencoder (AAE). Crucially, the VAE is tasked with predicting $X_2$ from $X_1$, while the AAE predicts $X_1$ from $X_2$. This cross-prediction forces the encoders to capture high-level contextual semantics and long-range spectral dependencies that simple reconstruction-based autoencoders often miss.

2. Contrastive Feature Refinement

The latent representations generated by the VAE and AAE are further refined through a contrastive learning objective. The goal is to maximize the Mutual Information (MI) between the two views while minimizing their conditional entropy. This ensures that the learned features are not only consistent across the spectral range but also highly representative of the underlying scene structure. To stabilize training and avoid collapsed solutions, the framework employs an Exponential Moving Average (EMA) update strategy and stop-gradient operations.

Experimental Evaluation

The model was rigorously tested on three standard HSI benchmarks: Indian Pines (IP), University of Pavia (PU), and Salinas Scene (SA). These datasets represent a range of challenges, from imbalanced classes to complex urban backgrounds.

Results and Visualization

The proposed method achieved state-of-the-art (SOTA) results in an unsupervised setting. When the learned features were fed into a simple linear SVM, the model outperformed several supervised 1D and 3D convolutional neural networks. For instance, on the Indian Pines dataset, the framework reached 98.20% Overall Accuracy (OA), a significant margin over traditional unsupervised baselines.

t-SNE visualizations of (a) VAE features, (b) AAE features, and (c) the final contrastive features, demonstrating improved class separability.

The effectiveness of the contrastive refinement is best illustrated through t-SNE visualizations. As seen in the figure above, the final contrastive features (c) form much tighter and more distinct clusters compared to the individual VAE (a) or AAE (b) features. This visual evidence confirms that the cross-view prediction strategy successfully extracts discriminative information that aligns with the actual ground-truth classes.

Conclusion

The Cross-View-Prediction framework demonstrates that self-supervised learning can effectively bridge the label scarcity gap in HSI classification. By treating spectral channels as multiple views of the same scene, the model learns deep semantic features that rival or exceed supervised counterparts. Future work will focus on addressing classification challenges in shadowed regions and integrating transformer architectures to further exploit spatial-spectral relationships.

Summary updated

BibTeX
@misc{wu2022cross,
  author = {Haotian Wu and Anyu Zhang and Zeyu Cao},
  title = {{Cross-View-Prediction: Exploring Contrastive Feature for Hyperspectral Image Classification}},
  year = {2022},
  eprint = {2203.07000},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.07000},
}
Figure