Dual Classification Head Self-training Network for Cross-scene Hyperspectral Image Classification

Rong Liu, Junye Liang, Jiaqi Yang, Jiang He, Peng Zhu · DOI

Abstract

Due to the difficulty of obtaining labeled data for hyperspectral images (HSIs), cross-scene classification has emerged as a widely adopted approach in the remote sensing community. It involves training a model using labeled data from a source domain (SD) and unlabeled data from a target domain (TD), followed by inferencing on the TD. However, variations in the reflectance spectrum of the same object between the SD and the TD, as well as differences in the feature distribution of the same land cover class, pose significant challenges to the performance of cross-scene classification. To address this issue, we propose a dual classification head self-training network (DHSNet). This method aligns class-wise features across domains, ensuring that the trained classifier can accurately classify TD data of different classes. We introduce a dual classification head self-training strategy for the first time in the cross-scene HSI classification field. The proposed approach mitigates domain gap while preventing the accumulation of incorrect pseudo-labels in the model. Additionally, we incorporate a novel central feature attention mechanism to enhance the model's capacity to learn scene-invariant features across domains. Experimental results on three cross-scene HSI datasets demonstrate that the proposed DHSNET significantly outperforms other state-of-the-art approaches.

Introduction

Hyperspectral image (HSI) classification is a critical task in remote sensing, enabling precise land-cover identification by analyzing rich spectral information. However, the high cost of manual labeling has led researchers toward cross-scene classification, where a model trained on a labeled "Source Domain" (SD) is applied to an unlabeled "Target Domain" (TD). The primary obstacle in this transfer is domain shift: spectral signatures of the same material can vary significantly across different geographic locations due to atmospheric conditions, sensor differences, and seasonal changes.

Existing methods often rely on Domain Adaptation (DA) and self-training. While self-training uses the model's own predictions as "pseudo-labels" to bridge the domain gap, it frequently suffers from confirmation bias. If the model initially misclassifies target data, these errors are reinforced during training, leading to performance degradation. Furthermore, standard feature extractors struggle to distinguish between domain-invariant spectral features and scene-specific spatial noise.

Proposed Method: DHSNet

To overcome these challenges, we introduce the Dual Classification Head Self-training Network (DHSNet). The architecture integrates three core innovations designed to extract robust features and stabilize the self-training process.

Overview of the DHSNet architecture, highlighting the Feature Extractor, CFAAC Block, Domain Adaptation via LMMD, and the Dual Classification Head strategy.

Central Feature Attention Aware Convolution (CFAAC)

In patch-based HSI classification, the central pixel represents the target class, while surrounding pixels provide context. Standard attention mechanisms treat all pixels equally, which can introduce domain-sensitive noise. Our CFAAC block employs a novel attention mechanism where only the central pixel acts as the "query" to calculate similarity with the rest of the patch. This forces the network to focus on the most relevant spectral information, effectively filtering out spatial background noise that varies between scenes.

Class-wise Domain Adaptation

We utilize Local Maximum Mean Discrepancy (LMMD) to minimize the distance between feature distributions of the source and target domains. Unlike global alignment, LMMD ensures that features are aligned on a per-class basis, which is essential for maintaining discriminative power after adaptation.

Dual Classification Head Self-training

The standout novelty of DHSNet is its dual-head strategy. The network employs two identical heads: a main classification head ($h_{cls}$) and a pseudo head ($h_{psd}$). The main head generates high-confidence pseudo-labels for the target domain, while the pseudo head is trained exclusively on these labels. This decoupling ensures that errors in pseudo-labels do not directly corrupt the main classifier's parameters, breaking the cycle of confirmation bias and allowing for safer exploitation of unlabeled data.

Experimental Results

DHSNet was evaluated on three major cross-scene HSI benchmarks: Houston (2013/2018), HyRANK (Dioni/Loukia), and Pavia (University/Center).

Visualization of the HyRANK dataset (Dioni and Loukia scenes), which presents a highly complex natural environment for cross-scene classification.

The model achieved state-of-the-art performance across all datasets:

  • Houston: Reached 80.23% Overall Accuracy (OA), outperforming the next best method, TSTnet (78.84%).
  • HyRANK: Achieved a significant leap to 73.28% OA, a >10% improvement over average baselines. It performed exceptionally well on difficult classes like "Olive Groves," where competitors often failed.
  • Pavia: Attained 92.05% OA, surpassing the strong CLDA baseline.

Ablation studies confirmed that removing the pseudo classification head leads to a notable drop in accuracy, validating the effectiveness of the dual-head strategy in preventing error accumulation.

Conclusion

DHSNet addresses the fundamental issues of domain shift and confirmation bias in cross-scene HSI classification. By combining a central-pixel-focused attention mechanism with a decoupled dual-head self-training strategy, the model achieves superior accuracy and robustness. Future work will focus on improving stability for the most challenging land-cover categories and exploring more granular domain adaptation techniques.

Summary updated

BibTeX
@misc{liu2025dual,
  author = {Rong Liu and Junye Liang and Jiaqi Yang and Jiang He and Peng Zhu},
  title = {{Dual Classification Head Self-training Network for Cross-scene Hyperspectral Image Classification}},
  year = {2025},
  eprint = {2502.17879},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.17879},
}
Figure