Abstract
Image and video compression has traditionally been tailored to human vision. However, modern applications such as visual analytics and surveillance rely on computers seeing and analyzing the images before (or instead of) humans. For these applications, it is important to adjust compression to computer vision. In this paper we present a bit allocation and rate control strategy that is tailored to object detection. Using the initial convolutional layers of a state-of-the-art object detector, we create an importance map that can guide bit allocation to areas that are important for object detection. The proposed method enables bit rate savings of 7% or more compared to default HEVC, at the equivalent object detection rate.
Introduction
Traditional image and video compression standards, such as JPEG and HEVC (H.265), are fundamentally designed for human consumption. They utilize perceptual models to discard information that the human eye is unlikely to perceive. However, in the burgeoning field of AI-driven surveillance and visual analytics, the primary consumer of visual data is often a computer algorithm rather than a human viewer.
Computers "see" differently than humans, relying on specific features like gradients and textures to identify objects. When images are compressed using human-centric models, critical data required by neural networks for tasks like object detection may be inadvertently lost. This paper addresses this gap by proposing a compression strategy specifically optimized for machine vision.
Methodology
The authors introduce an "object detection-friendly" compression framework that integrates a Deep Neural Network (DNN) directly into the encoding process. The architecture leverages the internal features of a pre-trained detector to inform the compression parameters.
The process involves four primary stages:
- Feature Extraction: The system utilizes the initial convolutional layers of YOLO9000. These early layers serve as a pre-processor to identify regions of interest.
- Importance Mapping: Feature maps are extracted from these layers. An "informativeness" weight is calculated for each filter; filters that respond specifically to certain areas are weighted more heavily than those with broad, uniform responses.
- Bit Allocation: This pixel-wise importance map is converted into a block-wise map compatible with HEVC’s coding units, guiding the R-λ rate control model.
- Quantization Adjustment: The Quantization Parameter (QP) is dynamically adjusted. Bits are saved by increasing QP in "unimportant" regions, even if this results in visual artifacts that would be distracting to a human.
Key Insights and Results
A central finding of this research is that the detector's own internal logic can serve as an effective guide for compression. By using the early layers of the DNN, the encoder gains a "sneak peek" at the features the detector will eventually prioritize.
The researchers evaluated their method using the PASCAL VOC 2007 dataset. Key results include:
- Bitrate Efficiency: The proposed method achieved a 7.32% bit reduction compared to the default HEVC (HM) encoder while maintaining the same mean Average Precision (mAP). Compared to standard HEVC rate control (HM-RC), savings reached 8.23%.
- Optimal Layer Selection: Testing across various layers revealed that the 3rd convolutional layer provided the optimal balance between bit savings and computational efficiency.
- Machine-Centric Trade-offs: Interestingly, the method performs worse on standard human-centric metrics like PSNR. This highlights the divergence between human and machine visual requirements; the system intentionally degrades the background to preserve object-specific features.
Conclusion
This work demonstrates the potential of machine-centric compression. While the current implementation adds computational overhead and is specific to the YOLO9000 architecture, it paves the way for future end-to-end optimized systems. Future research will focus on extending these principles to video sequences, accounting for temporal dynamics and motion-based importance.
Summary updated