Automatic Illumination Spectrum Recovery

Nariman Habili, Jeremy Oorloff, Lars PeterssonarXiv 2022

TL;DR

This paper introduces a deep learning approach to automatically recover the illumination spectrum of hyperspectral images, a crucial step for deriving reflectance information. By developing a new dataset and modifying a ResNet architecture with 3D kernels, the authors demonstrate a robust method for illumination estimation, even under challenging lighting conditions.

What Problem Does This Paper Address?

Accurately analyzing hyperspectral images requires converting raw radiance data into reflectance images. This conversion hinges on knowing the illumination spectrum of the scene. Traditionally, this is done by placing a white reference panel, which is time-consuming and impractical for dynamic scenarios like images captured from moving platforms. This paper tackles the challenge of automating this illumination spectrum recovery process, moving away from manual calibration towards a data-driven, deep learning solution.

Methods

The core of this research lies in a deep learning approach. The authors experimented with several Convolutional Neural Networks (CNNs), ultimately selecting ResNet18 due to its performance and manageable model size. A key innovation is the modification of ResNet18 to utilize 3D convolutional kernels instead of the standard 2D kernels. This adaptation is crucial for effectively processing the spectral dimension of hyperspectral data, treating it as a third dimension alongside spatial width and height.

To address the need for a smooth illumination spectrum, which is important for accurate reflectance reconstruction, the researchers adopted a cubic smoothing spline error function as their loss function. This loss function balances fitting the ground truth spectrum with penalizing roughness, allowing for control over the smoothness of the predicted spectrum. The parameter $\alpha$ in the loss function controls this trade-off, with $\alpha=0$ prioritizing smoothness and $\alpha=1$ prioritizing fitting the data (akin to Mean Squared Error).

Datasets

The paper introduces a new dataset called IllumNet, specifically created for illumination spectrum recovery. This dataset comprises 1004 hyperspectral images captured using a Specim IQ camera under a variety of indoor and outdoor lighting conditions. Outdoor images were taken in sunny, overcast, and shady conditions at different times of day, while indoor images utilized halogen, LED, and mixed light sources. To avoid bias, white reference panels were cropped out of the training images. The dataset was split into 80% for training and validation (70% training, 10% validation) and 20% for testing. Data augmentation, including rotations and sub-image extraction, resulted in a training dataset of approximately 40,000 images.

Key Insights and Ideas

  • 3D Kernels for Spectral Data: The adaptation of ResNet18 with 3D kernels is a significant insight, highlighting the importance of treating spectral data as a volumetric entity for effective feature extraction in hyperspectral imaging.
  • Smoothness as a Constraint: The use of a cubic smoothing spline error function is a clever way to enforce a desirable property (smoothness) onto the predicted illumination spectrum, which is often overlooked by standard regression losses like MSE or MAE. This directly addresses the practical need for well-behaved reflectance images.
  • Trade-off in Smoothing: The parameter $\alpha$ in the CSSE loss function elegantly captures the trade-off between fitting the data and ensuring smoothness. The paper demonstrates that choosing an optimal $\alpha$ is critical to avoid over-smoothing, which could attenuate important spectral features like absorption bands.
  • IllumNet's Value: The creation of the IllumNet dataset is a valuable contribution, providing a benchmark for future research in automatic illumination spectrum recovery. Its diverse conditions and comprehensive nature make it a strong foundation for training and evaluating models.

Key Results

The paper reports that the modified ResNet18 (ResNet3D18) with the cubic smoothing spline error function achieved promising results. While specific accuracy metrics like peak signal-to-noise ratio are not explicitly detailed for the final chosen model, Table 2 provides quantitative results for different $\alpha$ values on the test dataset. For $\alpha=0.8$, the Mean Squared Error (MSE) was 0.0039423, and the roughness was 0.0000545. The authors note that $\alpha=0.8$ was chosen for further analysis as it provided a good balance between fitting the actual average roughness of the test dataset and avoiding over-smoothing. Qualitative results, shown in Figures 4-9, demonstrate that the predicted illumination spectra closely match the actual spectra in shape, even under challenging mixed lighting conditions, though magnitude differences were sometimes observed.

Limitations and Future Work

The authors acknowledge that the IllumNet training set is not exhaustive, as it does not include images from all geographic locations or from all light manufacturers. This suggests that the network might benefit from retraining with more diverse data to suit specific user needs. While the developed method shows promise in recovering illumination spectra, the paper implies that further fine-tuning of the smoothing parameter $\alpha$ could be explored, particularly in the range of $0.6 < \alpha < 1.0$. Future work could also focus on improving the accuracy of the predicted spectrum's magnitude, especially in cases where lighting non-uniformity is a significant factor.

Summary updated

BibTeX
@misc{habili2022automatic,
  author = {Nariman Habili and Jeremy Oorloff and Lars Petersson},
  title = {{Automatic Illumination Spectrum Recovery}},
  year = {2022},
  eprint = {2305.19538},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.19538},
}
Figure