A Universal Knowledge Embedded Contrastive Learning Framework for Hyperspectral Image Classification
Quanwei Liu, Yanni Dong, Tao Huang, Lefei Zhang, Bo Du
TL;DR
The paper tackles the gap between laboratory-style HSI models and real-world deployment by addressing unrealistic data splits and label scarcity. It introduces KnowCL, a universal knowledge-embedded contrastive learning framework that unifies supervised, unsupervised, and semi-supervised HSI classification through a flexible data-processing pipeline and an adaptive loss fusion strategy. The approach supports diverse backbones, including ViT-based and ResNet-based networks, and demonstrates strong performance across four benchmark datasets with disjoint sampling, often outperforming state-of-the-art baselines. The contributions offer a scalable path toward robust, data-efficient HSI classification applicable to practical remote sensing tasks, with code available online.
Abstract
Hyperspectral image (HSI) classification techniques have been intensively studied and a variety of models have been developed. However, these HSI classification models are confined to pocket models and unrealistic ways of dataset partitioning. The former limits the generalization performance of the model and the latter is partitioned leading to inflated model evaluation metrics, which results in plummeting model performance in the real world. Therefore, we propose a universal knowledge embedded contrastive learning framework (KnowCL) for supervised, unsupervised, and semisupervised HSI classification, which largely closes the gap between HSI classification models between pocket models and standard vision backbones. We present a new HSI processing pipeline in conjunction with a range of data transformation and augmentation techniques that provide diverse data representations and realistic data partitioning. The proposed framework based on this pipeline is compatible with all kinds of backbones and can fully exploit labeled and unlabeled samples with the expected training time. Furthermore, we design a new loss function, which can adaptively fuse the supervised loss and unsupervised loss, enhancing the learning performance. This proposed new classification paradigm shows great potential in exploring for HSI classification technology. The code can be accessed at \url{https://github.com/quanweiliu/KnowCL}.
