NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Multi-Camera Vehicle Tracking System Based on City-Scale Vehicle Re-ID and Spatial-Temporal Information

Minghu Wu, Yeqiang Qian, Chunxiang Wang, Ming YangWorkshops @ CVPR 2021

Abstract

City-scale Multi-Camera Vehicle Tracking (MCVT) is a critical component for intelligent traffic management systems. This paper presents a robust pipeline developed by researchers at Shanghai Jiao Tong University that combines improved single-camera tracking, spatial-attention-driven re-identification (Re-ID), and spatial-temporal reasoning. The system effectively addresses common challenges such as frequent occlusions, visual ambiguity between similar vehicles, and perspective shifts across non-overlapping camera views. The proposed method achieved 3rd place in the 2021 AI City Challenge, demonstrating state-of-the-art performance in tracking accuracy and re-identification.

Introduction

Tracking vehicles across an entire city's camera network is a complex task. Unlike single-room person tracking, city-scale MCVT must contend with frequent occlusions by urban infrastructure, visual ambiguity where many cars appear identical, and significant perspective shifts between cameras. Furthermore, large "blind spots" between non-overlapping views often lead to lost trajectories. To bridge these gaps, this work proposes a pipeline that integrates visual features with spatial-temporal context to understand the "where and when" of city traffic.

Methods

The proposed system architecture is built upon three primary pillars: Single-Camera Tracking (SCT), Vehicle Re-identification (Re-ID), and Multi-Camera Tracks Matching (MCTM).

System architecture overview of the multi-camera vehicle tracking pipeline.

1. Enhanced Single-Camera Tracking (SCT)

Using DeepSort as a baseline, the authors introduced two key improvements:

  • Tracker Update Strategy: Standard trackers often rely on Kalman filters for motion prediction. However, when vehicles are close to the camera, their pixel coordinates change too rapidly for accurate filtering. The system was modified to prioritize actual detection values over predictions when a successful match is found.
  • Template Matching: High-speed maneuvers and sharp turns often cause standard trackers to fail. A template matching strategy was implemented to search for lost vehicles within a local radius, maintaining ID continuity during complex movements.

2. Robust Vehicle Re-ID

To identify vehicles across different cameras, a ResNet-based model was enhanced with:

  • Spatial Attention: Background modeling using Gaussian Mixture Models (GMM) creates binary masks, forcing the model to focus on the vehicle and ignore distracting background elements like road signs or parked cars.
  • Attribute Learning: Synthetic data was leveraged to train the model on specific attributes such as color, vehicle type, and orientation, helping it learn view-invariant features.

3. Multi-Camera Tracks Matching (MCTM)

This final stage connects trajectories across the camera network by leveraging the city's topology.

Visualization of vehicle tracking across multiple non-overlapping camera views using spatial-temporal constraints.
  • Spatial-Temporal Reasoning: By utilizing the known geometry of the city (e.g., travel times between specific cameras), the system significantly narrows the search space for matching vehicles.
  • Uncertainty-based Matching: Recognizing that visual features vary across cameras, the matching strategy accounts for uncertainty rather than relying on rigid distance thresholds.

Datasets and Evaluation

The system was evaluated on the AI City Challenge 2021 (Track 2 for Re-ID and Track 3 for Tracking) and the VeRi776 benchmark dataset, which contains 50,000 images of 776 vehicles.

Key Insights

  • Addressing the "Turn" Problem: The failure of Kalman filters during sharp turns was a major bottleneck. Fallback to template matching provided a significant boost in tracking continuity.
  • Synthetic Data Utility: Synthetic data proved invaluable for providing perfect labels for attributes like orientation, which is difficult to obtain in real-world datasets but crucial for learning robust features.
  • Contextual Constraints: The integration of spatial-temporal constraints is perhaps the most powerful aspect of the system, eliminating impossible matches based on traffic rules and camera distances before visual Re-ID is even applied.

Results

The system demonstrated world-class performance in competitive benchmarks:

  • AI City Challenge 2021: 3rd place in both Track 2 (Re-ID) and Track 3 (Tracking).
  • Tracking Accuracy: Achieved an IDF1 score of 76.51% on Track 3.
  • Re-ID Performance: Achieved a mean Average Precision (mAP) of 66.50% on Track 2 and 83.4% on VeRi776, outperforming several state-of-the-art baselines.

Limitations and Future Work

The system's reliance on prior knowledge of camera topology means it may struggle in dynamic environments with accidents or road closures. Additionally, it is heavily dependent on the quality of initial detections. Future work will focus on making spatial-temporal models more dynamic to account for real-time traffic variations.

Summary updated

BibTeX
@inproceedings{wu2021multi,
  author = {Minghu Wu and Yeqiang Qian and Chunxiang Wang and Ming Yang},
  title = {{A Multi-Camera Vehicle Tracking System Based on City-Scale Vehicle Re-ID and Spatial-Temporal Information}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  doi = {10.1109/cvprw53098.2021.00460},
}
Figure