A Modular Zero-Shot Pipeline for Accident Detection, Localization, and Classification in Traffic Surveillance Video
Organizations: Independent Researcher, Toronto, Canada · Independent Researcher, Mumbai, India
Abstract
We describe a zero-shot pipeline developed for the ACCIDENT @ CVPR 2026 challenge. The challenge requires predicting when, where, and what type of traffic accident occurs in surveillance video, without labeled real-world training data. Our method separates the problem into three independent modules. The first module localizes the collision in time by running peak detection on z-score normalized frame-difference signals. The second module finds the impact location by computing the weighted centroid of cumulative dense optical flow magnitude maps using the Farneback algorithm. The third module classifies collision type by measuring cosine similarity between CLIP image embeddings of frames near the detected peak and text embeddings built from multi-prompt natural language descriptions of each collision category. No domain-specific fine-tuning is involved; the pipeline processes each video using only pre-trained model weights. Our implementation is publicly available as a Kaggle notebook.
Figures & tables
| Type | Example prompt |
|---|---|
| head-on | “two cars colliding head-on from opposite directions” |
| rear-end | “a car colliding into the back of another car” |
| sideswipe | “two vehicles scraping alongside each other” |
| single | “a single car crashing into a wall or obstacle” |
| t-bone | “a car hitting the side of another car at an intersection” |
| Component | Parameter | Value |
| Temporal | Smoothing window | 5 |
| Z-score threshold | 1.5 | |
| Spatial | Start frame | centered on |
| Context window | 30 frames | |
| Pyramid scale | 0.5 | |
| Pyramid levels | 3 |