PathTrack: Fast Trajectory Annotation with Path Supervision

Santiago Manen, Michael Gygli, Dengxin Dai, Luc Van Gool

Abstract

Progress in Multiple Object Tracking (MOT) has been historically limited by the size of the available datasets. We present an efficient framework to annotate trajectories and use it to produce a MOT dataset of unprecedented size. In our novel path supervision the annotator loosely follows the object with the cursor while watching the video, providing a path annotation for each object in the sequence. Our approach is able to turn such weak annotations into dense box trajectories. Our experiments on existing datasets prove that our framework produces more accurate annotations than the state of the art, in a fraction of the time. We further validate our approach by crowdsourcing the PathTrack dataset, with more than 15,000 person trajectories in 720 sequences. Tracking approaches can benefit training on such large-scale datasets, as did object recognition. We prove this by re-training an off-the-shelf person matching network, originally trained on the MOT15 dataset, almost halving the misclassification rate. Additionally, training on our data consistently improves tracking results, both on our dataset and on MOT15. On the latter, we improve the top-performing tracker (NOMT) dropping the number of ID Switches by 18% and fragments by 5%.

Introduction

Multiple Object Tracking (MOT) is a cornerstone of computer vision, yet its progress has been bottlenecked by a lack of data. While image recognition has ImageNet, MOT datasets have historically been tiny, often consisting of only a few dozen sequences. The primary obstacle is the "annotation tax": manually drawing bounding boxes around every person in every frame of a crowded video is agonizingly slow and expensive. Existing shortcuts, like linear interpolation between keyframes, often fail in complex scenes. PathTrack aims to turn "watching time" into "annotation time" by leveraging a novel, fluid annotation process.

Path Supervision and Trajectory Generation

The core innovation is Path Supervision. Instead of drawing boxes, an annotator simply follows an object with their mouse cursor while the video plays at or near normal speed. This produces a "path"—a series of $(x, y)$ coordinates that are roughly inside the object's bounding box.

The PathTrack framework: converting loose path supervision into dense trajectory annotations.

To turn these rough paths into precise trajectories, the system uses a two-step optimization framework:

  1. Detection Pre-labeling: The system runs an off-the-shelf object detector (like R-CNN) on the video. It then solves a global energy minimization problem using Graph Cuts to associate these detections with the human-provided paths. It uses "unary potentials" (ensuring the path falls inside the box) and "pairwise potentials" (using optical flow to ensure detections in adjacent frames look like the same object).
  2. Detection Linkage: Once detections are clustered around a path, the system finds the most likely trajectory by treating it as a shortest-path problem in a directed graph. This handles occlusions and missing detections by finding the "cheapest" path through the candidate boxes based on confidence scores.

The PathTrack Dataset

Using this efficient method, the authors released the PathTrack dataset, which contains over 15,000 person trajectories across 720 sequences. This is 30 times more trajectories than the then-standard MOT15 benchmark. The diversity of scenes (sports, street scenes, interviews) helps models learn features that generalize well across different camera angles and environments.

Visualization of the dense trajectories produced by the PathTrack framework.

A major finding of this work is that "quantity is king." Training on 15,000 "noisy" trajectories from PathTrack yielded significantly better results than training on a few hundred "perfect" trajectories from MOT15. Path annotation is only about 33% slower than simply watching the video, allowing for a "quantity-over-quality" strategy that is highly effective for deep learning.

Experimental Results

The impact of large-scale training data was validated through several experiments:

  • Person Matching: By re-training a standard person-matching network on PathTrack instead of MOT15, the misclassification rate was nearly halved, with accuracy jumping from 78% to 88%.
  • Tracking Performance: Integrating PathTrack-trained models into NOMT (a top-performing tracker) reduced ID Switches by 18% and fragments by 5% on the MOT15 benchmark.
  • Crowdsourcing Success: The method was successfully scaled using Amazon Mechanical Turk, proving it is intuitive enough for non-experts to produce high-quality research data.

Conclusion

PathTrack demonstrates that efficient, "weak" supervision can overcome the data bottleneck in MOT. By anchoring human paths to automated object detections, the system recovers precise boundaries while drastically reducing annotation time. While the method relies on the existence of a baseline object detector, it provides a scalable path toward massive datasets for tracking diverse object classes and potentially 3D trajectory reconstruction.

Summary updated

BibTeX
@inproceedings{manen2017pathtrack,
  author = {Santiago Manen and Michael Gygli and Dengxin Dai and Luc Van Gool},
  title = {{PathTrack: Fast Trajectory Annotation with Path Supervision}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  url = {https://openreview.net/forum?id=SybIxbf_-r},
}
Figure