Introduction
High-fidelity traffic simulations are critical for urban planning, infrastructure development, and the training of autonomous vehicle systems. However, creating simulations that accurately reflect real-world conditions remains a significant challenge, primarily due to the "realism gap." Traditional simulation generation typically relies on activity modeling (using coarse census or survey data) or direct detector data (from induction loops or cameras). Both methods have inherent flaws: activity modeling often lacks granularity, while physical sensors are notoriously noisy. Cameras frequently undercount in dense traffic, and loop detectors can suffer from over-sensitivity or hardware malfunctions.
Furthermore, existing pipelines often treat sensor data as absolute ground truth, failing to account for measurement error. There is also a lack of intuitive mechanisms for human experts, such as city traffic engineers, to incorporate their domain knowledge into the simulation without manually modifying complex optimization constraints or simulation code.
Methodology
To address these challenges, we propose an end-to-end AI-enabled pipeline that transforms noisy, multimodal sensor data into robust traffic simulations while allowing for human-in-the-loop refinement.
The framework consists of three primary stages:
- Computer Vision-Based Vehicle Tracking: To overcome the limitations of standard hardware-based counting (e.g., AutoScope), we utilize YOLOv11 for vehicle detection and BoT-SORT for tracking. This approach is more resilient to unstable video streams and dense traffic conditions, providing more accurate local vehicle counts ($f^{CV}$).
- Multimodal Route Optimization: Local counts are translated into network-wide routes using a Quadratic Integer Program (QIP). Rather than strictly matching noisy counts, the model uses data from both cameras and loop detectors ($f^{LD}$) to establish lower and upper bounds ($\alpha_{LB}, \alpha_{UB}$), effectively treating sensors as providers of ranges rather than exact points. A temporal continuity constraint is also applied to ensure realistic traffic evolution.
- LLM-Agent Refinement: A novel component of this pipeline is the use of a Large Language Model (Claude 3.7 Sonnet) as an agent to bridge qualitative human feedback and quantitative mathematical constraints. Stakeholders can provide natural-language feedback (e.g., "increase eastbound flow at 5:00 PM"), which the LLM translates into executable Python code (using the
cvxpylibrary) to modify the optimization model.
Experimental Setup
The pipeline was evaluated using real-world data from Strongsville, Ohio. The study area focused on 36 intersections along major arterials, specifically SR 82 and US 42.
The dataset included 24 hours of recorded footage and loop detector data. To validate the computer vision component, a "gold standard" ground truth was established by manually counting vehicles in 16 one-hour excerpts. The LLM refinement step was tested using 20 synthetic and 20 real-world feedback tuples from stakeholders familiar with the local traffic patterns.
Key Results and Insights
The proposed framework demonstrated significant improvements over traditional methods:
- Tracking Accuracy: The CV-based tracking method reduced errors to less than 2 vehicles per minute, significantly outperforming industry-standard sensors which were found to undercount by over 180 vehicles per hour in high-traffic scenarios.
- Optimization Performance: Despite the large scale of the QIP (over 18,000 variables), the system achieved feasible solutions in under 0.5 seconds, indicating strong potential for scaling to larger networks.
- LLM Reliability: By implementing a three-tier verification process (Syntactic, Feasibility, and Semantic), the LLM agent achieved 100% correctness in translating real stakeholder feedback into valid optimization constraints.
- Simulation Scale: The final pipeline successfully modeled a 24-hour period involving 182,230 vehicles across the Strongsville network.
Conclusion and Future Work
This research presents a robust method for bridging the gap between noisy real-world data and high-fidelity traffic simulations. By treating sensors as noisy indicators and incorporating human expertise via LLMs, the framework creates simulations that are both data-driven and grounded in expert intuition.
Future work will focus on computational scaling for larger metropolitan areas through regional clustering, moving toward real-time "streaming" simulation updates, and integrating additional data sources such as Waze reports and weather data to further enhance simulation realism.
Summary updated