Active Learning for Deep Detection Neural Networks

Hamed H. Aghdam, Abel Gonzalez-Garcia, Antonio M. López, Joost van de Weijer

Introduction

Labeling millions of images for object detection is a massive bottleneck in AI development. In urban road scenes, a human annotator might spend 35 seconds or more drawing precise bounding boxes for pedestrians in a single frame. This high cost necessitates Active Learning (AL): algorithms that can identify the most informative samples from a massive pool of unlabeled data to maximize model performance within a limited annotation budget. While AL is well-established for image classification, its application to object detection is more complex due to the spatial nature of the task and the high redundancy in video data.

The Active Learning Framework

This paper introduces a novel active learning framework designed specifically for deep detection networks. The core idea is to move beyond simple uncertainty metrics and leverage the spatial consistency of the network's predictions.

Overview of the proposed active learning framework for object detection.

The framework operates in a loop as shown in Figure 1:

  1. Initial Training: The detection network is seeded with a small labeled dataset ($\mathcal{X}_l$).
  2. Inference and Scoring: For each image in the unlabeled pool ($\mathcal{X}_u$), the network generates predictions. A "white-box" scoring method calculates the informativeness of each pixel.
  3. Aggregation: Pixel-level scores are aggregated into a single scalar value per image.
  4. Selection: A batch of $b$ frames with the highest scores is selected for human annotation. For video data, temporal selection rules (like exclusion zones) are applied to ensure the selected frames are visually diverse.
  5. Dataset Update: The newly labeled frames are added to the training set, and the process repeats.

Scoring and Aggregation

The authors propose a scoring method based on spatial prediction divergence. The hypothesis is that a well-trained network should be spatially consistent; if a small translation of the input patch causes the predicted probability to change significantly, the network has not yet mastered that visual pattern.

To convert these thousands of pixel-level scores into a single image-level score, the authors avoid simple averaging, which often "washes out" informative objects against a sea of easy-to-classify background pixels. Instead, they employ a region-based max-pooling strategy.

Aggregation of pixel-level informativeness scores using max-pooling over spatial regions.

As illustrated in Figure 3, the image is divided into a grid of regions. The algorithm identifies the maximum informativeness score within each region—capturing the most "confusing" part of that area—and then averages these maximums. This ensures that even a single highly informative object in a complex scene is properly weighted.

Experimental Setup and Results

The method was evaluated on three major benchmarks: CityPersons (initial seed), Caltech Pedestrian (video-based unlabeled pool), and BDD100K (large-scale still images).

Key Insights

  • Stability over Uncertainty: Spatial instability proved to be a more reliable proxy for informativeness than standard metrics like entropy. If a network's opinion of a pixel changes because the camera moved slightly, the network is guessing.
  • Efficiency: Unlike Monte Carlo (MC) Dropout, which requires multiple forward passes to estimate uncertainty, this method is computationally efficient and suitable for industrial-scale datasets.
  • Instance Density: The proposed method effectively "hunts" for objects. In a budget of 7,000 frames from the Caltech dataset, it selected images containing 5,706 pedestrian instances, more than double the 2,741 instances found via random selection.

Performance

On the Caltech Pedestrian dataset, the proposed method consistently achieved a lower miss rate across training cycles compared to random selection, MC-Dropout, and binary entropy. However, on the BDD100K dataset, the improvements were more modest. The authors suggest this is due to "high bias" in the lightweight network architecture used, which limited its ability to learn from even the most informative samples in a complex domain.

Conclusion

This research demonstrates that accounting for spatial consistency and using intelligent aggregation strategies can significantly improve the efficiency of active learning for object detection. By focusing on "spatially unstable" regions, the framework reduces the human effort required to train high-performing detectors. Future work will explore applying these principles to more complex architectures and multi-class detection tasks.

Summary updated

BibTeX
@inproceedings{aghdam2019active,
  author = {Hamed H. Aghdam and Abel Gonzalez-Garcia and Antonio M. López and Joost van de Weijer},
  title = {{Active Learning for Deep Detection Neural Networks}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  url = {https://openreview.net/forum?id=5n7K0IjSRt},
}
Figure