Semantic-embedded Unsupervised Spectral Reconstruction from Single RGB Images in the Wild

Zhiyu Zhu, Hui Liu, Junhui Hou, Huanqiang Zeng, Qingfu Zhang

Introduction

Hyperspectral (HS) imaging provides rich spectral information for every pixel, which is critical for applications ranging from medical diagnostics to remote sensing. However, the high cost and physical bulk of HS cameras limit their widespread use. While deep learning has enabled spectral reconstruction from standard RGB images, most existing methods are supervised, requiring large, perfectly aligned datasets of RGB-HS pairs. Capturing such data "in the wild" is often impractical due to hardware constraints and environmental variability. This paper introduces a lightweight, unsupervised framework that learns to map RGB to HS data using unpaired images, significantly improving real-world applicability.

Proposed Methodology

The proposed framework addresses the unsupervised challenge by integrating physics-based constraints with semantic scene understanding. The architecture consists of four primary components:

  1. Degradation Model-Aware Generation: The network generates HS images through a coarse-to-fine refinement process. It minimizes the discrepancy between the input RGB and a "re-projected" RGB version derived from the reconstructed HS image, ensuring physical consistency.
  2. Prior-Driven Camera SRF Estimation: Since the Spectral Response Function (SRF) of the input camera is typically unknown, a sub-network estimates it as a convex combination of a dictionary containing 28 common commercial camera SRFs.
  3. Semantic-Embedded Regularization: Leveraging the intuition that pixels of the same semantic class (e.g., vegetation, sky) share similar spectral signatures, the model uses a pre-trained segmentation network to enforce local spectral consistency within object boundaries.
  4. $L_1$ Gradient Clipping for GANs: To stabilize the Generative Adversarial Network (GAN) training required for realistic HS generation, the authors implement an adaptive $L_1$ gradient clipping scheme to prevent gradient explosion.
The overall framework of the proposed unsupervised spectral reconstruction method, highlighting the SRF estimation module, HS generation networks, and semantic embedding.

Experimental Results

Quantitative Performance

The model demonstrates state-of-the-art performance for unsupervised methods. On the ICVL dataset, it achieved a PSNR of 37.83 dB, significantly outperforming previous unsupervised benchmarks like DBF (30.75 dB) and approaching the performance of supervised models like HSCNN-D (38.15 dB).

Crucially, the model excels in generalization. On the NTIRE’20 dataset, it achieved a PSNR of 37.53 dB, surpassing the supervised FM-Net (34.25 dB). This suggests that the unsupervised approach avoids the overfitting common in supervised models trained on synthetic or limited paired data.

Qualitative and Downstream Analysis

Visual comparisons show that the proposed method produces heatmaps and spectral curves that closely match ground truth data across diverse scenes. Furthermore, in practical computer vision tasks like visual tracking on the HOTAC dataset, the reconstructed HS images yielded a precision of 80.23%, outperforming standard supervised reconstruction techniques.

Qualitative comparison of spectral reconstruction results. The proposed method (Ours) shows superior visual fidelity and spectral curve accuracy compared to other state-of-the-art methods.

Conclusion

By combining the "hard" constraints of physics-based imaging models with the "soft" constraints of semantic scene parsing, this framework achieves high-fidelity spectral reconstruction without paired training data. Its lightweight nature (0.58M parameters) and robust generalization make it a highly practical solution for deploying hyperspectral capabilities to standard RGB camera systems in real-world environments.

Summary updated

BibTeX
@inproceedings{zhu2021semantic,
  author = {Zhiyu Zhu and Hui Liu and Junhui Hou and Huanqiang Zeng and Qingfu Zhang},
  title = {{Semantic-embedded Unsupervised Spectral Reconstruction from Single RGB Images in the Wild}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.00228},
}
Figure