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:
- Data Scarcity: Real-world datasets like CityFlow-V2 are often insufficient for training high-capacity models.
- Domain Gap: Significant visual discrepancies exist between training and test environments, particularly when incorporating synthetic data.
- Noisy Inputs: Inaccurate bounding boxes in real-world data introduce noise that degrades model performance.
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.
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