A Scale-Invariant Trajectory Simplification Method for Efficient Data Collection in Videos

Yang Liu, Luiz G. HafemannWorkshops @ CVPR 2023

Abstract

Annotating video data for object tracking is a significant bottleneck in computer vision. This paper introduces a scale-invariant trajectory simplification method that automatically identifies the most critical frames (keyframes) for human correction, then reconstructs the full trajectory via interpolation. By focusing manual effort where it is most needed, the proposed method achieves up to a 30x reduction in the number of frames requiring human intervention while maintaining high tracking accuracy across diverse multi-object tracking benchmarks.

Introduction

To train machine learning models for object tracking, high-quality "ground truth" data is essential. Traditionally, this involves a semi-automated pipeline where a human annotator reviews every frame to correct tracker errors, such as bounding box misalignments or identity switches. This process is prohibitively expensive and time-consuming. While uniform sampling (e.g., correcting every 10th frame) can reduce workload, it fails to account for unpredictable motion or rapid changes in object scale. Existing path simplification algorithms, often designed for GPS data, use Euclidean distance metrics that do not reflect the visual impact of errors on bounding boxes of varying sizes. A 10-pixel error matters much more for a tiny, distant object than for a large one close to the camera.

Proposed Method

The proposed data correction pipeline treats a tracking trajectory as a path to be simplified. The approach consists of three main stages:

  1. Search Space Initialization: The system identifies high-quality boxes based on tracker confidence and uses a variation of the Douglas-Peucker algorithm to find outliers—frames where the tracker likely failed—ensuring these are prioritized for manual review.
  2. Scale-Invariant Error Metric (Erf_IoU): Instead of standard Euclidean distance, the method utilizes Intersection over Union (IoU). As a ratio, IoU is naturally scale-invariant, making it equally effective for objects of all sizes.
  3. DAG-based Optimization: The problem is framed as finding the shortest path through a Directed Acyclic Graph (DAG). Each node represents a frame, and edge weights represent the total error incurred by interpolation. Solving for the minimum integral error selects the optimal set of keyframes for human correction.
Overview of the proposed trajectory correction pipeline: from raw trajectories to keyframe selection and full trajectory recovery.

Experiments and Results

The method was evaluated on three prominent multi-object tracking benchmarks: MOT20 (crowded pedestrians), SoccerNet (fast-moving athletes), and DanceTrack (complex non-linear motion).

Efficiency and Accuracy

The proposed method demonstrated significant efficiency gains over uniform sampling and state-of-the-art point-based simplification algorithms (TD-TR and MRPA):

  • MOT20: Reduced manual workload by 30x while maintaining a HOTA (Higher Order Tracking Accuracy) score of 89.61%.
  • DanceTrack & SoccerNet: Achieved a 10x reduction in frames while maintaining HOTA scores of 85.79% and 79.24%, respectively.

Outlier Handling

A key advantage of the IoU-based metric is its sensitivity to worst-case tracking failures. The method showed significant improvement in "minimum IoU" scores, ensuring that the most egregious errors are corrected. As shown in the performance analysis, the corrected trajectory maintains a much higher and more stable IoU across frames compared to the raw tracker output.

Comparison of IoU across frames for raw vs. corrected trajectories, highlighting the effectiveness of keyframe selection in maintaining high overlap.

Conclusion

This work demonstrates that for bounding box trajectories, scale-invariance is a critical property for efficient simplification. By switching to an IoU-based metric and optimizing keyframe selection via a DAG, the proposed method drastically reduces the human effort required for high-quality video annotation. Future research will explore extending this logic to human pose estimation and mask-based segmentation, as well as incorporating non-linear interpolation techniques to further improve compression in complex motion scenarios.

Summary updated

BibTeX
@inproceedings{liu2023scale,
  author = {Yang Liu and Luiz G. Hafemann},
  title = {{A Scale-Invariant Trajectory Simplification Method for Efficient Data Collection in Videos}},
  booktitle = {Workshops @ CVPR},
  year = {2023},
}
Figure