HyperNet: Self-Supervised Hyperspectral Spatial-Spectral Feature Understanding Network for Hyperspectral Change Detection

Meiqi Hu, Chen Wu, Liangpei ZhangIEEE TGRS 2022

Abstract

Hyperspectral change detection (HSCD) is a critical task in remote sensing, yet it is often hampered by the scarcity of labeled data and the limitations of patch-based feature extraction. This paper presents HyperNet, a novel self-supervised framework that achieves pixel-level change detection without manual labels. By decoupling spatial and spectral feature extraction and introducing a focal cosine loss to address environmental noise, HyperNet establishes a new state-of-the-art performance across multiple benchmark datasets.

1. Introduction

Hyperspectral images (HSIs) provide rich spectral information across hundreds of narrow bands, enabling the identification of subtle ground changes through unique "spectral fingerprints." Despite this potential, deep learning applications in HSCD face three primary challenges. First, high-performing supervised models require extensive pixel-perfect labels, which are costly and difficult to acquire. Second, existing self-supervised methods often rely on image patches, resulting in coarse, blurry detection maps that lack pixel-level precision. Finally, standard convolutional architectures frequently fail to balance the complex relationships between spatial structures and spectral correlations.

To address these issues, we introduce HyperNet, a fully convolutional Siamese network designed for pixel-wise self-supervised learning (SSL). HyperNet eliminates the need for manual labels while maintaining the high resolution required for precise change detection.

2. Proposed Methodology

2.1 Decoupled Spatial-Spectral Attention

HyperNet utilizes a dual-branch architecture to process spatial and spectral information independently. The Residual Spatial Attention Block (RSAB) is designed to capture local and global spatial structures, while the Residual Channel Attention Block (RCAB) focuses on mining discriminative relationships between spectral bands. By decoupling these features before adaptive fusion, the model more effectively captures the complex "spectral fingerprint" of ground objects compared to traditional 3D or hybrid convolutions.

2.2 Pixel-level Self-Supervised Learning

Unlike traditional SSL methods that operate on image patches, HyperNet processes whole images to perform pixel-by-pixel embedding comparisons. To prevent the model from collapsing into a state where it outputs identical, meaningless vectors for every pixel, the framework incorporates a "stop-gradient" strategy inspired by SimSiam architectures. This ensures the network learns meaningful, discriminative representations.

2.3 Focal Cosine Loss

A significant challenge in change detection is the presence of "hard positives"—unchanged pixels that appear different due to lighting variations or sensor noise. Standard loss functions often fail to distinguish these from actual changes. HyperNet introduces a Focal Cosine Loss, which applies a weighting factor to focus training on these difficult samples. This forces the network to become invariant to environmental noise, significantly reducing false alarm rates.

2.4 Pre-detection Strategy

To guide the initial stages of self-supervised training, HyperNet employs a pre-detection strategy. A classic, non-learning algorithm (such as Diff-RX) is used to generate a coarse "pseudo-mask." This mask identifies pixels with a high probability of being unchanged, providing a reliable starting point for the SSL process.

3. Experimental Results

3.1 Datasets

The model was evaluated on six diverse hyperspectral datasets across two primary tasks:

  • Anomalous Change Detection (HACD): Tested on Viareggio 2013 (EX-1 and EX-2) and Simulated Hymap datasets.
  • Binary Change Detection (HBCD): Tested on the Hermiston, Bay, and Santa Barbara benchmarks.

3.2 Performance Metrics

HyperNet consistently outperformed both traditional algorithms and contemporary deep learning models. In HACD tasks, HyperNet achieved Area Under the Curve (AUC) scores of 0.9147 (EX-1) and 0.9126 (EX-2), surpassing competitors like HACD and MTC-NET. In HBCD tasks, the model achieved superior F1-scores, notably 0.9129 on the Bay dataset and 0.8880 on the Santa Barbara dataset.

3.3 Ablation Study

Ablation experiments confirmed the necessity of each component. Removing the Spatial-Spectral Attention module or the Focal Cosine Loss resulted in a measurable decline in both AUC and F1-scores, validating the synergy between the decoupled feature extraction and the specialized loss function.

4. Discussion and Conclusion

HyperNet demonstrates that self-supervised models can achieve dense, pixel-wise prediction accuracy comparable to or exceeding supervised methods. The decoupling of spatial and spectral features proves essential for handling the high dimensionality of HSI data.

However, the model's reliance on a pre-detection strategy suggests that its performance is partially dependent on the quality of the initial pseudo-mask. Future research will focus on developing fully end-to-end architectures to remove this dependency and exploring the application of HyperNet to multi-sensor data fusion, such as HSI and Synthetic Aperture Radar (SAR) integration.

Summary updated

BibTeX
@article{hu2022hypernet,
  author = {Meiqi Hu and Chen Wu and Liangpei Zhang},
  title = {{HyperNet: Self-Supervised Hyperspectral Spatial-Spectral Feature Understanding Network for Hyperspectral Change Detection}},
  journal = {IEEE Trans. Geosci. Remote. Sens.},
  year = {2022},
}
Figure