Classification Driven Dynamic Image Enhancement

Vivek Sharma, Ali Diba, Davy Neven, Michael S. Brown, Luc Van Gool, Rainer Stiefelhagen · DOI

Abstract

Convolutional neural networks rely on image texture and structure to serve as discriminative features to classify the image content. Image enhancement techniques can be used as preprocessing steps to help improve the overall image quality and in turn improve the overall effectiveness of a CNN. Existing image enhancement methods, however, are designed to improve the perceptual quality of an image for a human observer. In this paper, we are interested in learning CNNs that can emulate image enhancement and restoration, but with the overall goal to improve image classification and not necessarily human perception. To this end, we present a unified CNN architecture that uses a range of enhancement filters that can enhance image-specific details via end-to-end dynamic filter learning. We demonstrate the effectiveness of this strategy on four challenging benchmark datasets for fine-grained, object, scene, and texture classification: CUB-200-2011, PASCAL-VOC2007, MIT-Indoor, and DTD. Experiments using our proposed enhancement show promising results on all the datasets. In addition, our approach is capable of improving the performance of all generic CNN architectures.

Introduction

Convolutional Neural Networks (CNNs) rely heavily on image texture and structure to serve as discriminative features for classification. However, when images suffer from poor lighting, blur, or noise, classification performance degrades significantly. Traditional image enhancement techniques, such as Bilateral filtering or Weighted Least Squares, are often used as pre-processing steps. Yet, these methods are primarily designed to improve perceptual quality for human observers, which may not align with the features a CNN needs for optimal classification. Furthermore, traditional algorithms are computationally expensive, often requiring seconds or minutes to process high-resolution images.

Motivation for classification-driven enhancement: traditional RGB inputs can lead to low-confidence predictions, whereas enhanced images can significantly boost classifier confidence.

This paper introduces a unified CNN architecture that dynamically generates image-specific enhancement filters. Unlike traditional static methods, these filters are optimized end-to-end to improve downstream image classification accuracy rather than just human perception.

Methods: Dynamic Filter Learning

The proposed architecture, Dyn-CNN, utilizes Dynamic Filter Networks. Instead of using fixed weights for the entire dataset, an "EnhanceNet" analyzes the input image to generate custom filter parameters on the fly. To preserve color integrity, the network operates strictly on the luminance (Y) channel of the YCbCr color space.

The two-stage architecture of the proposed system, featuring an enhancement stage (Stage 1) followed by a classification stage (Stage 2).

The system operates in two main stages:

  1. Stage 1 (Enhancement): The network generates multiple dynamic filters designed to emulate five traditional enhancement methods: Weighted Least Squares (WLS), Bilateral Filter (BF), Image Sharpening (Imsharp), Guided Filter (GF), and Histogram Equalization (HistEq). This stage is initially trained using Mean Squared Error (MSE) against target images produced by these traditional algorithms.
  2. Stage 2 (Classification): The enhanced luminance images are recombined with the original chrominance channels and fed into a standard classification network (e.g., AlexNet, VGG, or BN-Inception).

The entire pipeline is trained jointly. The loss function combines the enhancement loss (MSE) and the classification loss (Softmax). This allows gradients from the classifier to flow back into the EnhanceNet, forcing it to prioritize features—such as specific textures or sharp edges—that are most discriminative for the specific classification task.

Experimental Results

The effectiveness of the approach was evaluated across four benchmark datasets: CUB-200-2011 (fine-grained birds), PASCAL-VOC2007 (objects), MIT-Indoor (scenes), and DTD (textures).

The results demonstrate that the Dyn-CNN consistently outperforms baseline architectures across all tested domains:

  • Fine-grained (CUB): BN-Inception accuracy improved from 82.3% to 86.12% (+3.82%).
  • Objects (PASCAL VOC): VGG-16 mAP increased from 89.3% to 92.8% (+3.5%).
  • Scenes (MIT-Indoor): VGG-16 accuracy rose from 64.87% to 68.67% (+3.8%).
  • Textures (DTD): VGG-VD mAP improved from 67.0% to 71.34% (+4.34%).

Beyond accuracy, the system is highly efficient. While traditional enhancement algorithms can take seconds per image, the EnhanceNet generates all five enhanced versions in approximately 8 milliseconds on a GPU, making it suitable for real-time applications.

Discussion and Conclusion

The research highlights that machine perception requirements differ from human perception. By allowing classification loss to guide enhancement, the network learns to exaggerate discriminative textures and edges that might look unnatural to humans but are vital for the classifier. The dynamic nature of the filters allows for image-specific adjustments that static filters cannot achieve.

While the system shows great promise as a universal "plug-and-play" front-end for existing CNNs, the authors noted that training requires careful regularization (such as MSE-based weighting) to maintain stability. Future work could explore more complex loss functions beyond pixel-wise MSE and a broader variety of enhancement methods to further improve performance.

Summary updated

BibTeX
@inproceedings{sharma2017classification,
  author = {Vivek Sharma and Ali Diba and Davy Neven and Michael S. Brown and Luc Van Gool and Rainer Stiefelhagen},
  title = {{Classification Driven Dynamic Image Enhancement}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  doi = {10.1109/cvpr.2018.00424},
}
Figure