Deep Structured-Output Regression Learning for Computational Color Constancy

Yanlin Qian, Ke Chen, Joni-Kristian Kamarainen, Jarno Nikkanen, Jiri Matas

TL;DR

This paper presents a novel approach to computational color constancy by combining the feature-extraction power of deep Convolutional Neural Networks (CNNs) with structured-output regression. By explicitly modeling the correlations between RGB color channels rather than treating them as independent variables, the authors achieve state-of-the-art performance on standard white-balancing benchmarks.

What Problem Does This Paper Address?

A visual system possesses "color constancy" if it can perceive the true colors of objects regardless of the prevailing illumination. For digital cameras, this is the "automatic white balance" problem.

Mathematically, this is an under-determined problem. The light hitting a camera sensor is a product of the scene's illumination and the surface reflectance of the objects within it. Without knowing one, you cannot perfectly calculate the other. Traditional methods rely on "gray-world" assumptions (averaging pixels) or "white-patch" heuristics, but these often fail in complex lighting. The authors aim to move beyond these heuristics by using deep learning to map image features directly to illumination parameters.

Methods

The proposed framework consists of a three-step pipeline:

  1. Feature Extraction: The authors use a pre-trained VGG-19 network. Instead of using the final classification layer, they extract features from the first fully-connected layer (fc6). They found that these features, originally learned for object recognition, contain rich information useful for identifying light sources.
  2. Structured-Output Regression: This is the core contribution. Most previous regression-based methods predicted the Red, Green, and Blue components of the illuminant independently. This paper uses Multi-output Support Vector Regression (MSVR) and Multi-output Ridge Regression (MRR). These techniques learn the interdependence between the color channels, capturing the "cross-channel correlations" that independent regressors miss.
  3. Image Correction: Once the illuminant is estimated, the image is corrected using the classic von Kries model (chromatic adaptation), which scales each color channel to neutralize the bias of the light source.
The proposed pipeline: CNN feature extraction followed by multi-output regression to estimate the illuminant for final correction.

Datasets

The model was evaluated on two primary benchmarks:

  • SFU Color Checker Dataset: 568 high-dynamic-range images containing a Macbeth Color Checker chart (used to establish ground truth).
  • SFU Indoor Dataset: 321 images of indoor scenes captured under 11 different controlled lighting conditions.
Sample images from the SFU Color Checker (top) and SFU Indoor (bottom) datasets.

Key Insights and Ideas

  • Deeper isn't always better: In a surprising finding, the authors noted that features from the fc6 layer outperformed those from fc7 and fc8. They hypothesize that color constancy relies more on low-level information (edges, textures, raw color distributions) than the highly abstract semantic information found in the deepest layers of a classification network.
  • Correlations Matter: By switching from single-output to multi-output regression, the model significantly reduced angular error. This confirms that the relationship between R, G, and B channels is not arbitrary; there is latent structure in how light sources behave across the spectrum.
  • Transfer Learning Limits: The authors tried fine-tuning the VGG network on the color constancy datasets, but performance actually dropped. This is likely due to the small size of available datasets (only ~1000 images), which leads to rapid overfitting when training millions of parameters.

Key Results

The proposed CNN+MSVR method achieved a median angular error of 1.64° on the SFU Indoor benchmark, outperforming the previous state-of-the-art. On the SFU Color Checker dataset, it achieved a median error of 2.68°, which is highly competitive with complex, camera-specific learning frameworks.

Qualitatively, the method shows a marked improvement over traditional "Grey Pixel" baselines, particularly in scenes with strong color biases (like heavy green or blue casts).

Visual comparison of results. The "Our Method" column shows significantly lower angular errors compared to the "Grey Pixel" baseline.

Limitations and Future Work

The primary limitation identified is data scarcity. With only about 1,000 labeled samples across two major datasets, the authors were unable to fully exploit the potential of end-to-end deep learning (fine-tuning). They also noted that simple data augmentation strategies like random cropping actually led to overfitting in their regression setup.

Future work could involve exploring larger-scale synthetic datasets to enable deeper fine-tuning or investigating how these structured-output regressors handle scenes with multiple light sources, a significantly more difficult version of the color constancy problem.

Summary updated

BibTeX
@inproceedings{qian2016deep,
  author = {Yanlin Qian and Ke Chen and Joni-Kristian Kamarainen and Jarno Nikkanen and Jiri Matas},
  title = {{Deep Structured-Output Regression Learning for Computational Color Constancy}},
  booktitle = {ICPR},
  year = {2016},
  doi = {10.1109/icpr.2016.7899914},
}
Figure