Abstract
Traffic Scene Understanding (TSU) is critical for autonomous driving and intelligent transportation systems, yet traditional vision-only models often struggle with the complex semantic relationships and invisible context of driving environments. This paper introduces ST-CLIP, a novel vision-language model that integrates spatio-temporal (ST) context—such as GPS trajectories and road network properties—into the CLIP framework. By employing a Spatio-temporal Context Aware Multi-aspect Prompt (SCAMP) learning module, ST-CLIP effectively bridges the gap between low-level visual features and high-level semantic descriptions. Evaluated on two large-scale real-world datasets, ST-CLIP demonstrates superior performance in few-shot scenarios, significantly outperforming state-of-the-art baselines in describing road scenes, surfaces, width, and accessibility.
Introduction
Traffic Scene Understanding (TSU) aims to translate visual driving environments into intuitive, text-based descriptions. For instance, identifying a "narrow soil road that is hard to pass" provides more actionable information than simple object detection. While large-scale Vision-Language Models (VLMs) like CLIP have revolutionized general image tasks, they face significant hurdles in the specialized domain of traffic.
The primary challenges are twofold. First, traditional models often ignore Spatio-Temporal (ST) cues. A single image is a static snapshot that lacks context regarding vehicle speed, road functional class, or historical trajectories—all of which are vital for understanding the current traffic state. Second, existing models tend to focus on superficial feature extraction, such as counting vehicles, while neglecting the high-level semantic interrelations between features like road width and accessibility.
The ST-CLIP Framework
To address these limitations, researchers developed ST-CLIP. This model leverages a frozen CLIP backbone enhanced by a novel Spatio-temporal Context Aware Multi-aspect Prompt (SCAMP) learning module.
The SCAMP module introduces several key technical innovations:
- Dynamic ST-Context Representation: It extracts features from "tracklets"—short segments of a vehicle's GPS trajectory. It fuses static road properties (e.g., lane count, road length) with time-varying data (e.g., average speed, trajectory count) to build a comprehensive environmental representation.
- Bi-level ST-aware Multi-aspect Prompt Learning: Rather than using a single generic prompt, the model generates specific prompts for four key aspects: Scene, Surface, Width, and Accessibility.
- Bi-level Attention Mechanism:
- Patch-wise Cross-modal Attention: This correlates specific image patches (like the road surface) with relevant prompt tokens.
- Image-wise Cross-aspect Attention: This models the dependencies between different aspects, learning, for example, that a "broken" surface is highly correlated with "hard" accessibility.
Datasets and Evaluation
The model's efficacy was tested on two new real-world datasets collected from the DiDi-Rider app platform:
- Beijing Dataset: 7,464 image-trajectory pairs.
- Chengdu Dataset: 8,323 image-trajectory pairs.
Each sample consists of a street-view image, a corresponding GPS trajectory, and manually labeled descriptors for the four target aspects. This represents a significant shift from standard benchmarks that rely solely on static images.
Key Results and Insights
ST-CLIP consistently outperformed established baselines, including ResNet-50, ViT, and CLIP-based adapters like CoOp and Tip-Adapter.
- Accuracy Gains: On the Beijing dataset, ST-CLIP improved the F1 score for "Scene" classification by 20.6% and "Accessibility" by 11.1% over the second-best baseline.
- ST Data as a Powerful Prior: A major insight is that GPS data acts as a "cheat sheet." If the data shows a vehicle slowing down on a specific segment, the model can more accurately infer a "congested" or "hard to pass" state even if the visual input is degraded by poor lighting or weather.
- Aspect Correlation: By using cross-aspect attention, the model ensures logical consistency (e.g., not labeling a highway as "extremely hard to pass"), which prevents the "hallucinations" common in less context-aware models.
- Few-Shot Robustness: ST-CLIP showed remarkable robustness in few-shot settings. Training on just 2 or 4 samples frequently outperformed baseline models trained on 16 samples.
- Efficiency: Despite the added complexity, ST-CLIP predicts all four aspects in a single forward pass (~36.7 ms), maintaining a viable balance for real-time applications.
Conclusion and Future Directions
While ST-CLIP marks a significant advancement in bridging pixels and paths, it currently operates as a discriminative model, selecting words from a predefined list. Future work aims to transition toward generative frameworks, such as Large Language Models (LLMs), to produce more natural and nuanced narratives. Additionally, incorporating video sequences instead of single frames could further enhance the model's ability to capture the dynamic "flow" of traffic environments.
Summary updated