Unsupervised Hard Example Mining from Videos for Improved Object Detection

SouYoung Jin, Aruni RoyChowdhury, Huaizu Jiang, Ashish Singh, Aditya Prasad, Deep Chakraborty, Erik G. Learned-Miller

Abstract

Important gains have recently been obtained in object detection by using training objectives that focus on hard negative examples, i.e., negative examples that are currently rated as positive or ambiguous by the detector. These examples can strongly influence parameters when the network is trained to correct them. Unfortunately, they are often sparse in the training data, and are expensive to obtain. In this work, we show how large numbers of hard negatives can be obtained automatically by analyzing the output of a trained detector on video sequences. In particular, detections that are isolated in time, i.e., that have no associated preceding or following detections, are likely to be hard negatives. We describe simple procedures for mining large numbers of such hard negatives (and also hard positives) from unlabeled video data. Our experiments show that retraining detectors on these automatically obtained examples often significantly improves performance. We present experiments on multiple architectures and multiple data sets, including face detection, pedestrian detection and other object categories.

Introduction

Training a robust object detector requires more than just a large dataset; it requires "hard examples." These are edge cases: background patches that look suspiciously like objects (hard negatives) or actual objects that are partially obscured or in unusual poses (hard positives). Standard datasets are often "easy," and manually searching for these rare hard examples in the wild is extremely labor-intensive. Statistically, one might have to inspect 1,000 images to find a single false positive. This paper addresses this challenge by leveraging the temporal consistency of video to automatically identify and mine these challenging cases.

Methodology: Mining Detector Flickers

The core innovation is the concept of detector flicker. In video, physical objects move continuously across frames. Therefore, a true detection should persist over time. By analyzing the temporal behavior of a pre-trained detector, we can identify errors without human supervision.

Hard Negative Mining

The system runs a pre-trained detector on unlabeled video. If the detector fires on a specific region in frame $f$, but a tracking algorithm (using template matching) finds no corresponding detection in frames $f-1$ or $f+1$, that detection is labeled a "flicker." These flickers are highly likely to be false positives—hard negatives that fooled the initial detector.

Illustration of detector flickers in face and pedestrian detection. Yellow boxes show consistent detections, while red boxes highlight temporal flickers used as hard negatives.

Hard Positive and Pseudo-Positive Mining

Conversely, if a detector consistently finds an object in a sequence of frames but "blinks" and misses it in a single middle frame, that missing detection is an "off-flicker," representing a hard positive. Additionally, detections that are temporally consistent (appearing in consecutive frames) are treated as "pseudo-positives," providing extra training data.

Retraining Strategy

The detector is fine-tuned using these automatically mined examples. Experiments showed that simply adding pseudo-positives and hard negatives to the training set was the most effective approach. This leverages the "free lunch" of unlabeled video: running a detector on hours of footage is computationally cheap compared to human annotation.

Experimental Evaluation

The method was evaluated across several diverse benchmarks, including WIDER Face, Caltech Pedestrian, FDDB, and specific categories in MS-COCO (dog and train). Unlabeled video sources included sitcoms, movies, and YouTube "driving cam" or "walking" videos.

Key Results

  • Pedestrian Detection: On the Caltech dataset, the log average miss rate was reduced from 23.83% to 18.72%.
  • Face Detection: On the WIDER Face "Easy" split, Average Precision (AP) improved from 0.907 to 0.921.
  • Generalization: The method improved "dog" detection on MS-COCO from 25.3 to 26.4 AP and "train" detection from 33.2 to 33.7 AP.
  • Mining Precision: Manual inspection confirmed that mined hard negatives for faces had a precision of 88.65%, validating that "flickers" are indeed mostly errors.

Discussion and Conclusion

The results demonstrate that temporal continuity can serve as an effective supervisor. Hard negatives are often not random; for faces, they frequently consist of body parts like hands or ears. By mining these specifically, the model learns to distinguish objects from their most confusing distractors.

However, limitations remain. The method showed less improvement on the FDDB dataset, likely due to a domain shift between the YouTube mining source and the test images. Additionally, unsupervised mining introduces some label noise (e.g., a face visible for only one frame being labeled a negative). Future work will focus on tuning loss functions, such as Focal Loss, to be more robust to this inherent noise and applying the method to more complex object categories.

Summary updated

BibTeX
@inproceedings{jin2018unsupervised,
  author = {SouYoung Jin and Aruni RoyChowdhury and Huaizu Jiang and Ashish Singh and Aditya Prasad and Deep Chakraborty and Erik G. Learned-Miller},
  title = {{Unsupervised Hard Example Mining from Videos for Improved Object Detection}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  url = {https://openreview.net/forum?id=S1ZK3K-uWr},
}
Figure