Automatic adaptation of object detectors to new domains using self-training

Aruni RoyChowdhury, Prithvijit Chakrabarty, Ashish Singh, SouYoung Jin, Huaizu Jiang, Liangliang Cao, Erik G. Learned-Miller

Abstract

This work addresses the unsupervised adaptation of an existing object detector to a new target domain. We assume that a large number of unlabeled videos from this domain are readily available. We automatically obtain labels on the target data by using high-confidence detections from the existing detector, augmented with hard (misclassified) examples acquired by exploiting temporal cues using a tracker. These automatically-obtained labels are then used for re-training the original model. A modified knowledge distillation loss is proposed, and we investigate several ways of assigning soft-labels to the training examples from the target domain. Our approach is empirically evaluated on challenging face and pedestrian detection tasks: a face detector trained on WIDER-Face is adapted to surveillance data; a pedestrian detector trained on clear, daytime images is adapted to scenarios such as rainy, foggy, and night-time. Our results demonstrate the usefulness of incorporating hard examples obtained from tracking and the advantage of using soft-labels via distillation loss.

Introduction: The Challenge of Domain Shift

Deep learning has significantly advanced object detection accuracy, yet these models remain notoriously "brittle." A pedestrian detector trained on sunny California streets often fails when deployed in a rainy night in London. Traditionally, overcoming this "domain shift" required thousands of hours of manual labeling for every new environment. This paper proposes an Unsupervised Domain Adaptation (UDA) method that allows detectors to "teach themselves" by simply watching unlabeled video of a new domain.

Figure 1: Overview of the domain adaptation tasks for face detection (top) and pedestrian detection (bottom), showing the shift from high-quality source domains to challenging target domains.

Proposed Method: Self-Training with Temporal Cues

The core of the approach is a self-training pipeline that leverages the temporal consistency of video to generate pseudo-labels without human intervention. The method consists of three primary components:

1. Mining "Hard Positives" with Trackers

If a detector identifies an object in Frame 1 and Frame 10 but misses it in the intervening frames due to blur or lighting, a temporal tracker can "fill in the gaps." These missed frames provide "hard examples"—instances the model originally failed to catch—which are crucial for improving performance in the target domain.

2. Distillation Loss with Soft Labels

Automated labels are inherently noisy. To prevent the model from being corrupted by incorrect pseudo-labels, the authors employ Knowledge Distillation. Instead of "hard" binary labels (0 or 1), they assign "soft" scores to training examples. This allows the model to learn from new data while maintaining a degree of skepticism toward potentially incorrect detections.

Figure 3: Illustration of detection scores (d) and the resulting soft labels (s) used for knowledge distillation during the self-training process.

3. Cross-Domain Score Mapping

Detector confidence scores typically drop when entering a difficult new domain. To normalize these, the authors use histogram specification to "stretch" the target domain's score distribution to match the source domain. This makes thresholding robust and removes the need for manual hyperparameter tuning.

Experimental Results

The researchers evaluated their method on two high-stakes tasks:

  • Face Detection: Adapting from WIDER-Face (web images) to CS6/IJB-S (grainy surveillance video). The baseline model's Average Precision (AP) improved from 15.66 to 20.65.
  • Pedestrian Detection: Adapting from BDD-100K "clear daytime" to the "rest" split (rain, fog, night). The baseline AP nearly doubled, jumping from 15.21 to 28.59.

Ablation studies confirmed that the inclusion of tracker-based "hard positives" was vital; retraining only on high-confidence detections yielded significantly lower gains.

Conclusion

This self-training approach offers a practical, label-efficient blueprint for deploying computer vision models in unpredictable real-world environments. By using video as a "free" supervisor and employing soft-label distillation, the method achieves competitive results with minimal hyperparameter dependence and no manual annotation.

Summary updated

BibTeX
@inproceedings{roychowdhury2019automatic,
  author = {Aruni RoyChowdhury and Prithvijit Chakrabarty and Ashish Singh and SouYoung Jin and Huaizu Jiang and Liangliang Cao and Erik G. Learned-Miller},
  title = {{Automatic adaptation of object detectors to new domains using self-training}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  url = {https://openreview.net/forum?id=cP0J4ZWBbA},
}
Figure