An Empirical Study of Vehicle Re-Identification on the AI City Challenge

Hao Luo, Weihua Chen, Xianzhe Xu, Jianyang Gu, Yuqi Zhang, Chong Liu, Yiqi Jiang, Shuting He, Fan Wang, Hao Li

Abstract

This paper details the winning strategy for Track 2 of the 2021 AI City Challenge. The approach leverages a combination of robust baseline models, unsupervised domain adaptation (UDA), and advanced post-processing techniques to achieve a first-place score of 0.7445 mAP in vehicle re-identification (ReID). By bridging the gap between synthetic and real-world data, the authors effectively addressed challenges related to data scarcity and domain bias.

Introduction

Vehicle Re-Identification (ReID) is a critical component of "Smart City" infrastructure, enabling the tracking of specific vehicles across non-overlapping camera networks without relying on license plate information. This task is essential for traffic flow analysis and anomaly detection. However, several hurdles persist:

  1. Data Scarcity: Real-world datasets like CityFlow-V2 are often insufficient for training high-capacity models.
  2. Domain Gap: Significant visual discrepancies exist between training and test environments, particularly when incorporating synthetic data.
  3. Noisy Inputs: Inaccurate bounding boxes in real-world data introduce noise that degrades model performance.
Rear view of a vehicle from the CityFlow-V2 dataset, illustrating the typical perspective and bounding box quality.

Methodology

The proposed pipeline consists of two primary training stages followed by comprehensive post-processing.

Stage 1: Baseline Training and Data Augmentation

To ensure representation diversity, the authors ensembled two distinct architectures:

  • CNN-based: A "Bag of Tricks" (BoT) approach utilizing ResNet-IBN backbones.
  • Transformer-based: The TransReID model, representing one of the first successful applications of pure vision transformers to vehicle ReID.

To mitigate data scarcity, the authors employed Weakly Supervised Detection to generate heatmaps and "re-crop" images, creating a cleaner, expanded dataset (CityFlow-V2-CROP). Additionally, SPGAN was used to transfer the style of real-world images onto synthetic data from the VehicleX dataset, reducing the domain gap.

Stage 2: Unsupervised Domain Adaptation (UDA)

To adapt to the specific characteristics of the test set, the authors implemented UDA. Stage 1 models were run on test data, followed by DBSCAN clustering to group similar images. These clusters were assigned "pseudo-labels," allowing for fine-tuning on the test environment. This stage was pivotal, increasing performance from 46.2% to 66.0% mAP.

Front-side view of a vehicle illustrating the variety of viewpoints and orientations the model must handle.

Post-Processing and Results

The final results were refined using several techniques:

  • Re-ranking: Adjusting rankings based on reciprocal neighbors.
  • Camera & Orientation Bias Correction: Subtracting the mean feature vector of a specific camera to isolate vehicle-specific features.
  • Inter-camera Fusion: Refining matches based on spatio-temporal likelihoods between camera pairs.

The ensemble of 16 model configurations achieved a final score of 0.7445 mAP, securing first place in the competition. Ablation studies showed that post-processing alone contributed nearly a 30% improvement over the baseline.

Conclusion

The success of this approach highlights the importance of domain adaptation and ensemble diversity in vehicle ReID. While vision transformers provided a valuable alternative perspective to traditional CNNs, the massive gains from UDA underscore the necessity of environment-specific tuning. Future work remains in optimizing synthetic-to-real translation, as tools like SPGAN showed limited impact without extensive parameter tuning.

Summary updated

BibTeX
@inproceedings{luo2021empirical,
  author = {Hao Luo and Weihua Chen and Xianzhe Xu and Jianyang Gu and Yuqi Zhang and Chong Liu and Yiqi Jiang and Shuting He and Fan Wang and Hao Li},
  title = {{An Empirical Study of Vehicle Re-Identification on the AI City Challenge}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  doi = {10.1109/cvprw53098.2021.00462},
}
Figure