TrafficLens: Multi-Camera Traffic Video Analysis Using LLMs
Md Adnan Arefeen, Biplob Debnath, Srimat Chakradhar
TL;DR
TrafficLens tackles the high cost of converting multi-camera traffic video into text for downstream LLM queries. It employs a two-stage, overlap-aware ingestion: a base camera is processed first with a high token limit to produce rich base descriptions, followed by other cameras using lower token limits to add undetected details, with an IoU-based similarity detector to skip redundant clips. The method couples this accelerated video-to-text pipeline with a retrieval-augmented generation framework to answer user queries, and ablation shows a practical similarity threshold balances efficiency and information gain. Experimental results on StreetAware demonstrate substantial ingestion-time reductions while preserving answer quality, indicating practical impact for real-time traffic analytics and incident investigation.
Abstract
Traffic cameras are essential in urban areas, playing a crucial role in intelligent transportation systems. Multiple cameras at intersections enhance law enforcement capabilities, traffic management, and pedestrian safety. However, efficiently managing and analyzing multi-camera feeds poses challenges due to the vast amount of data. Analyzing such huge video data requires advanced analytical tools. While Large Language Models (LLMs) like ChatGPT, equipped with retrieval-augmented generation (RAG) systems, excel in text-based tasks, integrating them into traffic video analysis demands converting video data into text using a Vision-Language Model (VLM), which is time-consuming and delays the timely utilization of traffic videos for generating insights and investigating incidents. To address these challenges, we propose TrafficLens, a tailored algorithm for multi-camera traffic intersections. TrafficLens employs a sequential approach, utilizing overlapping coverage areas of cameras. It iteratively applies VLMs with varying token limits, using previous outputs as prompts for subsequent cameras, enabling rapid generation of detailed textual descriptions while reducing processing time. Additionally, TrafficLens intelligently bypasses redundant VLM invocations through an object-level similarity detector. Experimental results with real-world datasets demonstrate that TrafficLens reduces video-to-text conversion time by up to $4\times$ while maintaining information accuracy.
