Image Distortion Detection using Convolutional Neural Network

Namhyuk Ahn, Byungkon Kang, Kyung-Ah SohnarXiv 2018 · arXiv

TL;DR

This paper introduces a deep learning framework capable of simultaneously classifying and localizing image distortions without needing a pristine reference image. By introducing the new Flickr-Distortion dataset and leveraging a "Y"-shaped CNN architecture paired with a Single Shot MultiBox Detector (SSD), the authors achieve state-of-the-art classification accuracy and present the first highly accurate localized distortion detection results.

What Problem Does This Paper Address?

When images are transmitted or stored, they often undergo lossy compression or encounter noise, leading to visual artifacts. Traditional Image Quality Assessment (IQA) methods typically focus on predicting a single, global perceptual quality score (like a Mean Opinion Score) for the entire image.

However, real-world scenarios—such as stitched panoramic photos or localized network errors—often introduce heterogeneous and localized distortions. Existing methods fail to pinpoint where these distortions occur. If a system can automatically detect the exact region and type of distortion, it can dynamically adjust local compression levels or apply targeted restoration techniques. The challenge has been twofold: a lack of localized distortion datasets and the inherent difficulty of detecting multiple, overlapping distortion types.

Methods

The authors propose a "Y"-shaped Convolutional Neural Network (CNN) architecture designed to perform distortion classification and localized detection simultaneously.

  1. Shared Backbone: The network uses a standard deep architecture (such as VGG-16, Atrous VGG-16, or ResNet-101) pre-trained on ImageNet to extract rich feature maps.
  2. Classification Branch: This branch uses fully connected layers to predict the overall type of distortion present in the image.
  3. Detection Branch: To localize the distortions, the authors stack a Single Shot MultiBox Detector (SSD) on top of the base network. SSD utilizes multi-scale feature maps from different layers to detect bounding boxes around distorted regions.

Crucially, the authors modify standard training practices by restricting data augmentation to horizontal flips only. They note that standard affine transformations like scaling or shearing can corrupt or fundamentally alter the fine-grained details of the image distortions themselves.

Datasets

Because existing benchmarks like LIVE or TID2013 only contain global, homogeneous distortions, the authors introduced the Flickr-Distortion Dataset, split into two subsets:

  • Flickr-Distortion-Classification: Contains 19,296 images generated from 804 pristine Flickr reference images. Eight distortion types (including Gaussian blur, JPEG compression, salt-and-pepper noise, and denoising artifacts) are applied globally at three severity levels.
  • Flickr-Distortion-Detection: Contains 16,080 images where multiple, heterogeneous distortions are applied to random local bounding boxes. It is divided into Detection-basic (1–4 large distorted regions per image) and Detection-difficult (5–9 smaller, tightly packed distorted regions per image).
Figure 1: Example of Flickr-Distortion dataset. (a) is the reference image, (b) is the distorted image with salt and pepper noise for classification task. (c) and (d) are both for detection task, with different levels of detection difficulty described in Section 3.2.

Key Insights and Ideas

  • Capacity Over Specialization: Shallow, IQA-specific networks (like IQA-CNN+) are easily outperformed by deeper, general-purpose architectures (VGG, ResNet) fine-tuned for this task. The higher capacity of deeper networks is essential for handling complex, mixed distortions.
  • The "Worst-Case" Training Strategy: A critical finding was the asymmetry in dataset transferability. Models trained only on large, simple distortion regions completely fail when encountering small, localized distortions. Conversely, models trained on the difficult dataset (small, numerous regions) generalize remarkably well to simpler scenarios.
  • VGG Outperforms ResNet in Detection: Surprisingly, ResNet-101 provided no accuracy advantage over Atrous VGG-16 for the detection task, while being significantly slower. The authors attribute this to VGG-16 already possessing sufficient capacity to fit the distortion data.

Key Results

  • Classification Accuracy: Fine-tuned VGG-16, Atrous VGG-16, and ResNet-101 all achieved near-perfect classification accuracy (~98.4% to 98.8%), substantially outperforming the baseline IQA-CNN+ (82.0%). Atrous VGG-16 achieved this while running at a swift 90 Frames Per Second (FPS).
  • Detection Performance: For the localization task, Atrous VGG-16 combined with SSD achieved a Mean Average Precision (mAP) of 0.919 at [email protected] and 0.873 at [email protected], running at 63 FPS. This significantly outperformed the ResNet-101 variant in both accuracy and inference speed (16 FPS).
  • Dataset Transfer: When a model trained on the basic dataset was evaluated on the difficult dataset, performance at a strict [email protected] threshold plummeted to 0.109 mAP. However, training on the difficult dataset and testing on the basic dataset maintained a strong 0.728 mAP.

Limitations and Future Work

While the system is highly effective, it occasionally misclassifies visually similar distortions. For instance, the model struggles to differentiate between salt-and-pepper noise and Gaussian white noise, or between quantization noise and frequency noise (fnoise), particularly in smooth image regions lacking abrupt color changes.

As a next step, the authors plan to evolve the architecture into an ensemble-like system. Rather than forcing a single set of network weights to resolve all distortion types—which risks overfitting—specialized sub-structures dedicated to individual distortion categories could improve quality-neutral generalization.

Summary updated

Abstract

Image distortion classification and detection is an important task in many applications. For example when compressing images, if we know the exact location of the distortion, then it is possible to re-compress images by adjusting the local compression level dynamically. In this paper, we address the problem of detecting the distortion region and classifying the distortion type of a given image. We show that our model significantly outperforms the state-of-the-art distortion classifier, and report accurate detection results for the first time. We expect that such results prove the usefulness of our approach in many potential applications such as image compression or distortion restoration.
BibTeX
@misc{ahn2018image,
  author = {Namhyuk Ahn and Byungkon Kang and Kyung-Ah Sohn},
  title = {{Image Distortion Detection using Convolutional Neural Network}},
  year = {2018},
  eprint = {1805.10881},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.10881},
}

Loading related content...

Figure