Quality Enhancement of Compressed Video via CNNs

Jingxuan Hou, Yao Zhao, Chunyu Lin, Huihui Bai, Meiqin Liu

Abstract

Digital video compression often introduces undesirable artifacts such as blocking and ringing, particularly at low bitrates. This paper proposes a lightweight, two-layer Convolutional Neural Network (CNN) architecture designed to restore the quality of H.264/AVC compressed video. By learning an end-to-end mapping from distorted frames to their original counterparts, the model achieves superior objective quality (PSNR) and visual clarity compared to traditional deblocking filters. The architecture is optimized for speed, making it a viable candidate for real-time video enhancement.

Introduction

Video compression standards like H.264/AVC utilize lossy techniques, primarily the quantization of transform coefficients, to achieve high compression ratios. While effective for reducing file size, this process discards visual information, leading to distracting artifacts. Blocking artifacts appear as visible grid boundaries between processing blocks, while ringing artifacts manifest as "ghost" edges or ripples near sharp transitions.

Traditional solutions typically fall into two categories: image enhancement (e.g., simple smoothing filters) or image restoration (e.g., complex Sparse Representation methods). This research bridges the gap by leveraging deep learning to provide an efficient and effective restoration framework.

Methodology

The proposed solution utilizes a streamlined two-layer CNN architecture designed for computational efficiency and restoration accuracy.

Architecture Overview

The network consists of two primary stages:

  1. Feature Extraction Layer: This layer employs 64 filters of size $9 \times 9$, followed by a Rectified Linear Unit (ReLU) activation function. It extracts local patches and represents the distorted image as a high-dimensional feature map.
  2. Reconstruction Layer: A single $5 \times 5$ filter aggregates these features back into a single luminance (Y) channel to produce the enhanced frame.
Overview of the proposed two-layer CNN architecture for video quality enhancement.

Technical Implementation

  • Luminance Focus: The model processes only the Y channel, as human vision is more sensitive to brightness than color details.
  • Per-Video Optimization: To account for varying artifact structures across different content, the authors propose training video-specific parameters. These small parameter sets can be transmitted alongside the compressed bitstream.
  • Training Efficiency: Training is accelerated by sampling every third frame and excluding "smooth" patches (e.g., flat skies) that offer limited learning signals.

Key Insights: CNNs and Sparse Representation

A significant theoretical contribution of this work is the link between CNNs and Sparse Representation (SR). The authors argue that the first layer of the CNN acts as a dictionary of filters, while the second layer serves as the reconstruction operator.

Visualization of feature maps extracted by the first layer of the CNN, highlighting edge and texture detection.

Furthermore, the study explored the "sweet spot" for network depth. While a three-layer model eventually achieves slightly higher PSNR, the two-layer model converges faster and is significantly more efficient. For instance, processing a frame of the Foreman sequence took 0.37s with the two-layer model compared to 3.74s with the three-layer version.

Experimental Results

The model was evaluated on standard benchmarks (CIF, 480p, 720p) compressed via H.264/AVC at various bitrates.

  • Objective Gains: The CNN achieved an average PSNR gain of 0.84 dB. In high-detail sequences like SlideEditing, gains reached up to 1.57 dB.
  • Comparative Performance: The method consistently outperformed traditional deblocking filters and the standard H.264 in-loop filter. For the Foreman sequence at 64 Kbit/s, the CNN provided a 0.69 dB gain, more than double the 0.29 dB gain of the standard loop filter.
  • Visual Quality: Qualitative analysis showed a marked reduction in ringing artifacts around text and sharp edges, bringing the compressed video closer to the original source.

Conclusion

This paper demonstrates that a lightweight CNN can effectively mitigate compression artifacts in H.264/AVC video. By balancing depth and speed, the proposed two-layer model offers a practical solution for real-time quality enhancement. Future work will focus on improving generalization to avoid per-video training and extending the model to handle chrominance channels.

Summary updated

BibTeX
@article{hou2017quality,
  author = {Jingxuan Hou and Yao Zhao and Chunyu Lin and Huihui Bai and Meiqin Liu},
  title = {{Quality Enhancement of Compressed Video via CNNs}},
  journal = {J. Inf. Hiding Multim. Signal Process.},
  year = {2017},
}
Figure