SPECIAL: Zero-shot Hyperspectral Image Classification With CLIP

Deyu Meng, Li Pang, Jing Yao, Kaiyu Li, Xiangyong CaoarXiv 2025 · DOI

Introduction

Hyperspectral imaging (HSI) provides a rich "spectral fingerprint" for every pixel, enabling precise material identification across hundreds of narrow spectral bands. However, the supervised training of deep learning models for HSI classification is severely hindered by the high cost and expert knowledge required for manual labeling. While zero-shot learning has revolutionized natural image processing through models like CLIP, its application to HSI is non-trivial due to the fundamental domain gap between 3-band RGB images and high-dimensional spectral cubes.

The SPECIAL Framework

To bridge this gap, we introduce SPECIAL (zero-Shot hypersPECtral Image clAssification framework based on CLIP). This framework leverages the semantic priors of CLIP while refining them using the inherent spectral consistency of HSI data through a two-stage process.

Overview of the SPECIAL framework, illustrating the Pseudo-label Generation (PLG) and Noisy Label Learning (NLL) stages.

1. CLIP-based Pseudo-label Generation (PLG)

The first stage generates initial labels without human intervention:

  • Spectral Interpolation: HSI data is interpolated into RGB proxies compatible with CLIP's pre-trained weights.
  • Resolution Scaling (RS): To account for varying object sizes in remote sensing (e.g., a small car vs. a large building), CLIP is applied at multiple scales. This ensures both fine-grained and large-scale features are captured accurately.
  • Initial Segmentation: An off-the-shelf segmenter (SegEarth-OV) produces initial pseudo-labels and confidence scores for every pixel.

2. Noisy Label Learning (NLL)

Recognizing that RGB-based CLIP predictions are inherently noisy, the second stage performs spectral refinement:

  • Spectral Classifier Training: A native spectral model, MambaHSI, is trained on the pseudo-labels to learn the full spectral signature rather than just RGB approximations.
  • GMM-based Denoising: Gaussian Mixture Models (GMM) analyze "Best vs. Second Best" (BvSB) probability scores to partition pixels into "confident" and "hard" sets. This allows the system to apply different learning strategies, preventing the model from overlearning CLIP's initial errors.

Experimental Results

The framework was evaluated on three benchmark datasets: Pavia Centre, AeroRIT, and Chikusei. SPECIAL consistently outperformed existing state-of-the-art (SOTA) CLIP-based methods across all metrics.

Quantitative comparison of SPECIAL against SOTA methods on the Pavia Centre dataset, showing superior performance in Overall Accuracy (OA) and Average Accuracy (AA).

On the Pavia Centre dataset, SPECIAL achieved an Overall Accuracy (OA) of 90.62%, a significant improvement over the previous best, ClearCLIP (87.02%). Similar gains were observed on AeroRIT (82.18% OA vs. 25.97% for standard CLIP) and Chikusei (88.33% OA).

Key Insights

  • The RGB Proxy as a Bridge: CLIP provides strong semantic "priors," while HSI provides spectral precision. SPECIAL effectively combines these strengths by using CLIP as a labeler and a spectral model as the final classifier.
  • Scale Sensitivity: Resolution scaling is critical in remote sensing to handle the diverse spatial footprints of different classes that standard CLIP receptive fields might miss.
  • Spectral Denoising: The spectral consistency of materials allows the model to "correct" mislabeled pixels by identifying that they share the same spectral signature as correctly labeled neighbors.

Conclusion and Future Work

SPECIAL demonstrates that high-quality HSI classification is possible without manual labels by intelligently adapting vision-language models. While the framework struggles with extremely rare classes and semantic ambiguity between similar materials (e.g., different roof tiles), it sets a new benchmark for zero-shot remote sensing. Future work will explore more sophisticated prompt engineering to further refine these results.

Summary updated

BibTeX
@misc{meng2025special,
  author = {Deyu Meng and Li Pang and Jing Yao and Kaiyu Li and Xiangyong Cao},
  title = {{SPECIAL: Zero-shot Hyperspectral Image Classification With CLIP}},
  year = {2025},
  eprint = {2501.16222},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.16222},
}
Figure