Abstract
This paper introduces our solution for Track 2 in AI City Challenge 2023. The task is tracked-vehicle retrieval by natural language descriptions with a real-world dataset of various scenarios and cameras. Our solution mainly focuses on four points: (1) To address the linguistic ambiguity in the language query, we leverage our proposed standardized version for text descriptions for the domain-adaptive training and post-processing stage. (2) Our baseline vehicle retrieval model utilizes CLIP to extract robust visual and textual feature representations to learn the unified cross-modal representations between textual and visual features. (3) Our proposed semi-supervised domain adaptive (SSDA) training method is leveraged to address the domain gap between the train and test set. (4) Finally, we propose a multi-contextual post-processing technique that prunes out the wrong results based on multi-contextual attributes information that effectively boosts the final retrieval results. Our proposed framework has yielded a competitive performance of 82.63% MRR accuracy on the test set, achieving 1st place in the competition.
Introduction
The retrieval of specific vehicle tracks from large-scale surveillance footage using natural language queries is a critical task for modern smart city infrastructure. However, this task presents significant challenges, including linguistic ambiguity in human descriptions, the domain gap between training and real-world test environments, and the semantic gap between visual features and high-level textual attributes. This work presents a comprehensive framework designed for the AI City Challenge 2023 (Track 2), utilizing the CityFlow-NL benchmark dataset which consists of 3.25 hours of footage across 10 junctions.
Methodology
Our proposed framework integrates several key components to bridge the gap between natural language and video tracks.
Text Standardization
To mitigate linguistic ambiguity, we employ a standardization process. Using Semantic Role Labeling and NLP tools for stemming and lemmatization, we map diverse natural language queries into a fixed template: $color + type + motion$. This reduces noise and ensures a consistent semantic representation for the model.
CLIP-based Retrieval Model
We utilize CLIP (Contrastive Language-Image Pre-training) as our backbone to extract robust cross-modal features. To enhance the embedding space, we combine the standard InfoNCE loss with Circle Loss, which provides more flexible optimization for pairwise similarities, helping the model distinguish between visually similar vehicles.
Semi-Supervised Domain Adaptation (SSDA)
To address the domain gap, we implement a semi-supervised domain adaptation strategy. We train attribute classifiers (for color and type) on the labeled training set and apply them to the test set to generate pseudo-labels. The retrieval model is then fine-tuned on this combined dataset, improving its generalization to the target domain.
Multi-Contextual Post-Processing
We introduce a two-stage pruning technique to refine retrieval results:
- Attribute Pruning: Results that do not match the predicted color or vehicle type are filtered out.
- Motion Analysis: We use geometric heuristics, such as the cross-product of motion vectors, to verify if the vehicle's trajectory matches the query's motion description (e.g., turning left vs. right).
Experiments and Results
The framework was evaluated on the CityFlow-NL dataset. Our baseline model achieved an initial MRR of 30.28%. The inclusion of SSDA and the multi-contextual pruning stages led to dramatic performance improvements.
As shown in the ablation study, the combination of all proposed modules resulted in a final MRR of 82.63% on the test set, securing 1st place in the AI City Challenge 2023 competition.
Conclusion
By combining robust cross-modal feature extraction with targeted domain adaptation and heuristic-based post-processing, we developed a state-of-the-art system for tracked-vehicle retrieval. Our results demonstrate that structured text representations and multi-contextual pruning are highly effective strategies for overcoming the inherent challenges of natural language-based video search.
Summary updated