Color Constancy Convolutional Autoencoder

Firas Laakom, Jenni Raitoharju, Alexandros Iosifidis, Jarno Nikkanen, Moncef Gabbouj

Introduction

Color constancy is the human visual system's ability to perceive the true color of objects regardless of the light source's color. For digital sensors, however, a white surface can appear orange under a sunset or blue under a fluorescent light. Computational color constancy aims to estimate the illuminant's color to "undo" this effect, a process commonly known as white-balancing.

The Challenges of Deep Learning in Color Constancy

While deep learning has revolutionized computer vision, it faces two significant hurdles in color constancy:

  1. Data Scarcity: Obtaining ground-truth illuminant data is labor-intensive and difficult to scale.
  2. Overfitting: Models often memorize specific camera sensor characteristics, leading to poor performance when applied to different hardware or unseen environments.

Methodology: The C3AE Approach

Researchers have introduced the Color Constancy Convolutional Autoencoder (C3AE) to address these issues. Unlike standard CNNs pre-trained for object classification (which are designed to ignore lighting to identify shapes), autoencoders must preserve chromatic information to reconstruct images, making them a more natural fit for illuminant estimation.

The authors propose two variants:

  • C3AE fine-tuned: An autoencoder is first trained in an unsupervised manner to reconstruct images. The decoder is then discarded, and the encoder is fine-tuned with a small labeled dataset to regress RGB light source values.
  • C3AE composite-loss: A semi-supervised model that simultaneously learns to reconstruct images and estimate the light source using a novel composite-loss function that balances reconstruction accuracy with Recovery Angular Error (RAE).

Efficiency and Generalization

A standout feature of C3AE is its efficiency. With only 146,000 parameters, it is over 100 times smaller than models like DS-Net (17.3 million parameters). This compact architecture, combined with unsupervised pre-training on diverse datasets like Tiny ImageNet, allows the model to learn a "strong image dictionary" that generalizes across different camera brands and scene types.

Key Results

The C3AE models demonstrate remarkable stability. In "stress tests" using the INTEL-TUT2 dataset—where models are tested on cameras different from those used in training—C3AE outperformed much larger supervised models. For example, on the INTEL-TUT2 "field" set, C3AE fine-tuned achieved a mean error of 4.4°, outperforming several larger architectures.

Visual results of the C3AE model across different scene types, showing the original biased image (left), the ground truth (middle), and the model's corrected output (right).

On the standard ColorChecker benchmark, C3AE achieved a median error of 1.9°, proving that massive parameter counts are not necessary for state-of-the-art performance. Furthermore, the model showed significantly lower error in the "Worst 25%" metric, indicating higher reliability and robustness across diverse conditions.

Conclusion

The C3AE framework proves that unsupervised pre-training and efficient architecture can overcome the traditional pitfalls of data scarcity and sensor-specific overfitting in color constancy. Future work may explore more advanced unsupervised architectures, such as Variational Autoencoders (VAEs), to further refine feature extraction from unlabeled data.

Summary updated

BibTeX
@inproceedings{laakom2019color,
  author = {Firas Laakom and Jenni Raitoharju and Alexandros Iosifidis and Jarno Nikkanen and Moncef Gabbouj},
  title = {{Color Constancy Convolutional Autoencoder}},
  booktitle = {SSCI},
  year = {2019},
  doi = {10.1109/ssci44817.2019.9002684},
}
Figure