STD-PD: Generating Synthetic Training Data for Pedestrian Detection in Unannotated Videos

Ernest Cheung, Tsan Kwong Wong, Aniket Bera, Dinesh ManochaarXiv 2017

Introduction

Pedestrian detection using Convolutional Neural Networks (CNNs) has reached high levels of performance, yet it remains heavily dependent on large, manually annotated datasets. A significant challenge in this field is the "domain gap": a detector trained on one specific environment (e.g., sunny California) often fails when deployed in another (e.g., rainy London) due to differences in camera perspective, lighting, and background. Manually labeling thousands of frames for every new deployment is economically unfeasible.

This paper presents MixedPeds, a framework designed to bridge this gap by automatically generating scene-specific training data. By inserting synthetic 3D human models into unannotated video frames from the target environment, the system creates a high-quality "mixed reality" dataset with perfect ground-truth labels, requiring zero manual intervention.

The MixedPeds Pipeline

The core of the MixedPeds approach is a "bootstrap and augment" strategy that leverages existing, albeit imperfect, detectors to understand the geometry of a new scene.

As shown in Figure 1, the process involves six primary stages:

  1. Unannotated Image Set: Raw video from the target environment is collected.
  2. Feature Extraction: The system extracts scene-specific features like vanishing points and camera parameters.
  3. Synthetic Rendering: 3D human agents are rendered onto the original frames.
  4. Annotated Dataset Generation: A new dataset is formed with simulated pedestrians and automatic bounding box annotations.
  5. Training: A pedestrian detector is trained on this mixed-reality data.
  6. Detection: The final detector is deployed on the original unannotated video.

Technical Methodology

Camera Estimation and the "Top 10%" Trick

To ensure synthetic humans appear at the correct scale and perspective, the system must estimate the virtual camera's parameters (height, tilt, and focal length). MixedPeds achieves this by running a pre-trained detector on the unannotated video. While the detector's overall accuracy might be low, its most confident results (the top 10%) are typically reliable.

Scale of pedestrians against foot coordinates, showing the linear relationship used for camera parameter estimation.

By analyzing these high-confidence detections, the system calculates the Scale Ratio—how a pedestrian's height changes relative to their vertical position in the frame. As illustrated in Figure 2, there is a strong linear correlation between the foot coordinate and the scale of pedestrians. Using this data and the estimated vanishing point, the system employs gradient descent to solve for the camera geometry.

Spawn Probability Maps (SPM)

To avoid unrealistic placements (e.g., humans floating in the air or standing on cars), the framework generates Spawn Probability Maps. These are 2D heatmaps derived from the spatial distribution of initial detections. K-means clustering is used to handle dynamic scenes, such as a vehicle moving from a residential street to a busy intersection, ensuring pedestrians are only "spawned" in plausible locations like sidewalks or crosswalks.

Realistic Rendering and Styling

Using Unreal Engine, 3D models are overlaid onto the video. To minimize the domain gap further, the system performs lighting adjustment and color matching. By sampling the HSV (Hue, Saturation, Value) distribution of the real environment, the synthetic agents are styled to match the local "look"—for instance, using muted clothing colors if the real scene contains them.

Experimental Results

The MixedPeds framework was evaluated on three major benchmarks: CALTECH, KITTI, and ETHZ. The results demonstrate that scene-specific synthetic training significantly outperforms "out-of-domain" manual datasets:

  • ETHZ: Improved Average Precision (AP) by 13.7%.
  • CALTECH: Improved AP by 7.8%.
  • KITTI: Improved AP by 5.0%.

Ablation studies confirmed that both realistic placement (via SPM) and realistic styling (via HSV matching) are critical to performance; removing either component led to a significant drop in detection accuracy.

Conclusion

MixedPeds offers a scalable solution for deploying pedestrian detectors in new environments without the burden of manual labeling. While the current implementation assumes a relatively flat ground plane and requires an initial detector to find at least some pedestrians, it represents a major step toward fully automated, scene-aware computer vision systems. Future work will focus on handling non-flat terrains and incorporating semantic segmentation for even more precise agent placement.

Summary updated

BibTeX
@misc{cheung2017std,
  author = {Ernest Cheung and Tsan Kwong Wong and Aniket Bera and Dinesh Manocha},
  title = {{STD-PD: Generating Synthetic Training Data for Pedestrian Detection in Unannotated Videos}},
  year = {2017},
  eprint = {1707.09100},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1707.09100},
}
Figure