TrackNet: A Triplet metric-based method for Multi-Target Multi-Camera Vehicle Tracking

David P. Serrano, Francesc Net, Juan A. Rodríguez-Aguilar, Igor UgartearXiv 2022 · DOI

Abstract

We present TrackNet, a method for Multi-Target Multi-Camera (MTMC) vehicle tracking from traffic video sequences. Cross-camera vehicle tracking has proved to be a challenging task due to perspective, scale and speed variance, as well occlusions and noise conditions. Our method is based on a modular approach that first detects vehicles frame-by-frame using Faster R-CNN, then tracks detections through single camera using Kalman filter, and finally matches tracks by a triplet metric learning strategy. We conduct experiments on TrackNet within the AI City Challenge framework, and present competitive IDF1 results of 0.4733.

Introduction

As urban environments grow increasingly complex, managing traffic flow requires sophisticated Multi-Target Multi-Camera (MTMC) tracking systems. The primary objective is to maintain a consistent identity for a vehicle as it traverses a network of non-overlapping surveillance cameras. This task is significantly more difficult than single-camera tracking due to drastic changes in perspective, scale, and lighting, as well as frequent occlusions by urban infrastructure. Furthermore, the high visual similarity between vehicles of the same make and model makes re-identification (Re-ID) a "needle in a haystack" problem.

Multi-camera vehicle tracking across three different views, illustrating the challenge of maintaining consistent IDs across non-overlapping fields of view.

Methodology

The TrackNet framework employs a three-stage modular pipeline designed for robustness and flexibility.

Vehicle Detection

The first stage utilizes Faster R-CNN with a ResNet50 backbone and Feature Pyramid Networks (FPN). The authors evaluated several architectures, including RetinaNet, but found that Faster R-CNN provided the optimal precision required for subsequent tracking stages. This stage achieved a high detection accuracy with an $AP_{0.5}$ of 0.9852.

Single-Camera Tracking (MTSC)

To link detections within a single video stream, the system employs DeepSORT. This algorithm uses a Kalman filter to predict vehicle motion and the Hungarian algorithm for matching detections. Crucially, DeepSORT incorporates appearance features, which allows it to maintain track continuity during short-term occlusions where motion-only filters might fail.

Cross-Camera Tracking (Re-ID)

The core of the system is the Triplet Metric Learning strategy used for vehicle re-identification. The model is trained to project vehicle images into a low-dimensional feature space where images of the same vehicle are clustered together, while images of different vehicles are pushed apart.

A vehicle captured from a high-angle perspective, demonstrating the scale and orientation challenges inherent in cross-camera tracking.

To improve the quality of the Re-ID features, the authors implemented "Smart Sampling": instead of using every frame, they only perform Re-ID using the five largest and clearest bounding boxes from the first 30% of a vehicle's track. This ensures that the model focuses on the richest visual information.

Experimental Results

The system was evaluated on the CityFlowV2 dataset from the AI City Challenge, which includes 46 cameras across 16 intersections and over 313,000 annotated bounding boxes. The complete MTMC system reached a competitive IDF1 score of 0.4733.

Key Insights

Ablation studies revealed that "common sense" post-processing filters—specifically Region of Interest (ROI) filtering and Variance filtering (to remove parked cars)—nearly doubled performance in some scenarios. Additionally, the modular nature of TrackNet allows for individual components, such as the detector, to be swapped out for faster alternatives in real-time applications without requiring a full system redesign.

Conclusion and Future Work

While TrackNet demonstrates competitive performance, it remains susceptible to error propagation across its sequential stages. Future work will focus on mitigating Kalman filter jitter and incorporating temporal constraints—such as travel time between specific camera pairs—to further refine the Re-ID matching process and handle scenarios involving highly similar vehicles.

Summary updated

BibTeX
@misc{serrano2022tracknet,
  author = {David P. Serrano and Francesc Net and Juan A. Rodríguez-Aguilar and Igor Ugarte},
  title = {{TrackNet: A Triplet metric-based method for Multi-Target Multi-Camera Vehicle Tracking}},
  year = {2022},
  eprint = {2205.13857},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.13857},
}
Figure