NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hyperspectral Recovery from RGB Images using Gaussian Processes

Naveed Akhtar, Ajmal MianIEEE TPAMI 2018 · DOI

Abstract: We propose to recover spectral details from RGB images of known spectral quantization by modeling natural spectra under Gaussian Processes and combining them with the RGB images. Our technique exploits Process Kernels to model the relative smoothness of reflectance spectra, and encourages non-negativity in the resulting signals for better estimation of the reflectance values. The Gaussian Processes are inferred in sets using clusters of spatio-spectrally correlated hyperspectral training patches. Each set is transformed to match the spectral quantization of the test RGB image. We extract overlapping patches from the RGB image and match them to the hyperspectral training patches by spectrally transforming the latter. The RGB patches are encoded over the transformed Gaussian Processes related to those hyperspectral patches and the resulting image is constructed by combining the codes with the original Processes. Our approach infers the desired Gaussian Processes under a fully Bayesian model inspired by Beta-Bernoulli Process, for which we also present the inference procedure. A thorough evaluation using three hyperspectral datasets demonstrates the effective extraction of spectral details from RGB images by the proposed technique.

Introduction

Hyperspectral (HS) imaging captures dozens or hundreds of narrow spectral bands, providing a "fingerprint" of materials that is invaluable for medical imaging, forensics, and remote sensing. However, HS cameras are often prohibitively expensive, slow, and suffer from low spatial resolution. In contrast, standard RGB cameras are ubiquitous but quantize the rich spectral signal into just three broad channels (Red, Green, Blue), losing immense detail.

The challenge in recovering HS data from RGB is metamerism: the phenomenon where different spectral signatures result in the identical RGB color. To solve this under-constrained problem, researchers must rely on strong priors—assumptions about the physical properties of natural light spectra. This paper presents a sophisticated Bayesian framework for "hallucinating" high-resolution hyperspectral data from standard 3-channel RGB images by leveraging Gaussian Processes (GPs) to model the physical smoothness of natural light spectra.

Methodology

The proposed method utilizes a fully Bayesian model inspired by the Beta-Bernoulli Process. The core innovation lies in using Gaussian Processes to represent the underlying spectral basis, ensuring that the recovered signals adhere to physical realities like spectral smoothness and non-negativity.

Overview of the proposed hyperspectral recovery framework, illustrating the training and testing phases.
  1. Clustering: Spatio-spectral patches are extracted from hyperspectral training data and grouped into clusters (e.g., "vegetation," "textiles"). This ensures the model learns the spectral manifold relevant to specific material types.
  2. Gaussian Process Kernels: Unlike previous methods that treat spectral bands as independent dimensions, this approach uses GP Kernels to explicitly model the smoothness of reflectance spectra across wavelengths.
  3. Bayesian Inference: Gibbs sampling is employed to infer model parameters. The model incorporates non-negativity constraints and Gamma hyper-priors for automatic parameter tuning.
  4. Spectral Transformation: To bridge the gap between training (HS) and testing (RGB), the learned GP means are transformed using the known spectral response of the target RGB camera. During testing, an RGB patch is matched to the most similar cluster, and its HS version is reconstructed using the corresponding Gaussian Processes.

Experimental Evaluation

The model was rigorously evaluated on three widely recognized hyperspectral benchmarks: the CAVE Database (32 scenes of everyday objects), the iCVL Dataset (100 high-resolution scenes), and the Harvard Dataset (77 indoor/outdoor scenes). Additionally, a real-world test was conducted using a standard Canon 750D DSLR to recover the spectra of a Macbeth color chart, validated against a professional spectrometer.

Key Results

The proposed method achieved a significant leap in accuracy over previous sparse-coding techniques. Quantitatively, the method achieved a 30.75% reduction in Root Mean Square Error (RMSE) compared to previous benchmarks. It also improved Spectral Angle Mapper (SAM) scores by approximately 20%, indicating that the shape of the recovered spectra is much closer to the ground truth.

Quantitative comparison of the proposed method (Prop.) against state-of-the-art techniques across various datasets using RMSE and SAM metrics.

Qualitatively, the model demonstrated high fidelity in the "Fake Lemon" test, where it successfully distinguished between a real lemon and a plastic replica. While they appeared identical in RGB, the model correctly recovered their differing spectral signatures. Furthermore, the model showed cross-domain robustness, performing well even when trained on one scene type (e.g., "Outdoor") and tested on another (e.g., "Floral").

Discussion and Limitations

A key insight of this work is that naturally occurring reflectance spectra are generally smooth functions of wavelength. By baking this physical reality into the mathematical model via GP Kernels, the authors effectively resolve ambiguities caused by metamerism. While metamerism is a theoretical hurdle, the frequency of metameric pairs in natural scenes is extremely low ($10^{-4}$ to $10^{-6}$), making the "true" spectrum recoverable with a sufficiently strong prior.

However, the method does have limitations. The testing phase involves solving a sparse optimization problem for every overlapping patch, which is computationally more intensive than simpler linear methods. Additionally, the method requires a priori knowledge of the camera's spectral response matrix ($T$). Future work may focus on accelerating the process through parallelization to move toward real-time spectral recovery.

Summary updated

BibTeX
@article{akhtar2018hyperspectral,
  author = {Naveed Akhtar and Ajmal Mian},
  title = {{Hyperspectral Recovery from RGB Images using Gaussian Processes}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2018},
  doi = {10.1109/tpami.2018.2873729},
}
Figure