Towards Coding For Human And Machine Vision: A Scalable Image Coding Approach

Yueyu Hu, Shuai Yang, Wenhan Yang, Ling-Yu Duan, Jiaying Liu · DOI

Introduction

In the era of big data, a significant "vision gap" has emerged between human perception and machine vision requirements. Traditional image compression standards, such as JPEG or JPEG 2000, are optimized to preserve signal fidelity for the human eye. However, at high compression ratios, these methods introduce "blocking" artifacts that severely degrade the performance of machine vision algorithms like object detection or facial recognition. Conversely, existing "coding for machine" techniques often produce abstract feature descriptors that are unintelligible to humans.

This paper proposes a scalable image coding framework designed to bridge this gap. By representing images as vectorized edge maps for machine tasks and sparse color samples for human viewing, the system provides a dual-layer bitstream that satisfies both audiences simultaneously.

Methodology: A Dual-Layer Generative Framework

The core of the proposed approach is a dual-layer Encoder-Decoder architecture that leverages generative models to reconstruct high-quality images from extremely sparse data.

The proposed scalable image coding framework, illustrating the encoder's extraction of structure and color codes and the GAN-based decoder serving both machine and human vision tasks.

1. The Base Layer (Machine Vision)

The encoder first extracts sparse edges using a fast edge detection forest. To achieve extreme compression, these edges are converted into vector graphics—specifically straight lines and Bézier curves. This representation is highly efficient, as vectors require significantly less storage than traditional bitmaps while preserving the essential structural information needed for tasks like facial landmark detection.

Detailed representation of vectorized edges using straight lines and Bézier curves to represent image structure efficiently.

2. The Enhancement Layer (Human Vision)

To facilitate human viewing, the encoder samples sparse color pixels near the midpoints of the detected edges. These "color dots" provide the necessary palette for the reconstruction process.

3. Generative Decoding

The decoder utilizes a Generative Adversarial Network (GAN), specifically a pix2pix-based architecture, to perform what is essentially an "inpainting" task. By taking the sparse edges and color dots as input, the GAN "imagines" the missing pixels based on the data distribution learned during training. The model is optimized using a combination of reconstruction loss (L1 and SSIM), perceptual loss, and adversarial hinge loss to ensure sharp, realistic outputs.

Evaluation and Results

The framework was evaluated using the VGGFace2 dataset, with a focus on facial images to allow the GAN to learn a strong structural prior.

Machine Vision Performance

In facial landmark detection tasks, the proposed method significantly outperformed traditional JPEG compression. At a bit-rate of approximately 0.13 bpp, the method reduced the Normalized Point-to-Point Error (NME) by 44.75% compared to JPEG. Notably, even the edge-only base layer provided superior performance for machine algorithms compared to heavily compressed JPEG files.

Human Vision Performance

A user study involving 10 subjects revealed a strong preference for the proposed "Structure-Color-Hybrid" method. Participants preferred the GAN-reconstructed images 90% of the time for fidelity and 73% of the time for aesthetics over JPEG at equivalent bit-rates. While JPEG suffers from blocky artifacts at low bit-rates, the generative approach produces smooth, natural-looking faces.

Conclusion and Future Work

The authors demonstrate that edges serve as an effective "universal language" for scalable coding, providing a skeleton that generative models can successfully flesh out. By separating structure from appearance, the system allows for flexible bit-rate allocation depending on the end-user (machine or human).

Future research directions include expanding the model's domain beyond facial images to more general datasets like ImageNet or COCO. Additionally, the authors aim to address the computational complexity of deep generative decoders and explore temporal feature modeling to extend this framework to video coding.

Summary updated

BibTeX
@inproceedings{hu2020towards,
  author = {Yueyu Hu and Shuai Yang and Wenhan Yang and Ling-Yu Duan and Jiaying Liu},
  title = {{Towards Coding For Human And Machine Vision: A Scalable Image Coding Approach}},
  booktitle = {ICME},
  year = {2020},
  doi = {10.1109/icme46284.2020.9102750},
}
Figure