Dual-Stage Hyperspectral Image Classification Model with Spectral Supertoken

Peifu Liu, Tingfa Xu, Jie Wang, Huan Chen, Huiyan Bai, Jianan Li

Introduction

Hyperspectral Image Classification (HSIC) is a critical task in remote sensing, enabling applications in urban planning and precision agriculture by capturing hundreds of spectral bands per pixel. However, traditional deep learning models typically rely on pixel-wise classification, which often results in blurred boundaries and inconsistent "salt-and-pepper" noise in uniform regions.

To address these challenges, the Dual-stage Spectral Supertoken Classifier (DSTC) introduces a paradigm shift. Instead of error-prone pixel-wise labeling, DSTC clusters spectrally similar pixels into "Spectral Supertokens" (SSTs) and classifies them using a Transformer. This approach achieves state-of-the-art accuracy while reducing computational costs by up to 96% compared to competing methods.

Comparison between single-stage pixel-wise models and the proposed dual-stage spectral supertoken classifier.

Methodology: The DSTC Architecture

The DSTC model operates in two primary stages: supertoken generation and token-wise classification.

Stage 1: Spectral Supertoken Generation

The process begins with a Spatial-preserved Feature Encoder, a UNet-based architecture that extracts deep semantic features while maintaining the original image resolution. The core innovation lies in Spectrum-derivative-based Clustering. By calculating first-order spectral derivatives (slopes), the model can better separate overlapping spectral peaks. Similar pixels are then grouped into irregularly shaped image primitives called Spectral Supertokens (SSTs).

Stage 2: Token-to-Pixel Prediction

The generated SSTs are fed into a Transformer Classifier. By processing a significantly smaller number of tokens rather than thousands of pixels, the Vision Transformer (ViT) efficiently captures long-range spatial relationships. To handle boundary overlaps where a supertoken might contain multiple classes, the authors employ Class-proportion-based Soft Labels (CPSL). This soft supervision prevents the model from being unfairly penalized for natural boundary overlaps and helps mitigate data imbalance issues.

The full architecture of the Dual-stage Spectral Supertoken Classifier (DSTC), showing feature encoding, clustering, and transformer-based classification.

Experimental Results

The DSTC model was evaluated on four major benchmarks: WHU-OHS, Indian Pines (IP), Kennedy Space Center (KSC), and Pavia University (UP).

Performance and Efficiency

On the large-scale WHU-OHS dataset, DSTC achieved a Class Average F1-score (CF1) of 0.723, outperforming established models like 3D-FCN and FreeNet. More impressively, the DSTC-P variant required only 16.15G FLOPs, a reduction of over 96% compared to the 412.20G required by CLSJE, without sacrificing accuracy.

Key Insights

  • Efficiency via Sparsity: Converting images into a few hundred supertokens drastically reduces the Transformer's workload, making the model suitable for real-time applications.
  • Spectral Derivatives: Including first-order derivatives significantly improves the discrimination of materials with similar raw spectral data but distinct spectral curve shapes.
  • Soft Supervision: CPSL outperformed hard labeling by acknowledging the reality of imperfect superpixel boundaries and preventing minority class neglect.

Conclusion and Future Work

The DSTC model demonstrates that moving beyond pixel-wise classification to a supertoken-based approach can yield cleaner classification maps with sharper boundaries and significantly lower computational overhead. While highly effective on large-scale images, future work will focus on refining clustering for small, overlapping patches and improving sensitivity to subtle spectral shifts in heterogeneous urban environments.

Summary updated

BibTeX
@inproceedings{liu2024dual,
  author = {Peifu Liu and Tingfa Xu and Jie Wang and Huan Chen and Huiyan Bai and Jianan Li},
  title = {{Dual-Stage Hyperspectral Image Classification Model with Spectral Supertoken}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72754-2\_21},
}
Figure