Agentic Traffic Intelligence: Augmented Human-in-the-Loop Scenario Generation for Microscopic Traffic Simulation
Agentic Traffic Intelligence, which combines attention-enhanced large language models (LLMs), the Real-Twin tool, and multi-agent systems to perform realistic microscopic traffic simulation scenario generation.
The proposed framework incorporates human-in-the-loop (HIL) control, retrieval-augmented generation (RAG), and multi-agent control mechanisms. HIL mechanisms are used to guide multiple LLMs focused on attributes for microscopic simulation generation and to improve the interpretability and transparency of LLM execution for users. RAG enhances context extraction by dynamically integrating external knowledge sources for traffic scenario generation foundations. A multi-agent architecture with supervisory control coordinates the interaction of simulation components, including traffic simulators, control logic, and calibration tools. This enables the synthesis of simulation-ready scenarios that reflect dynamic demand profiles and behavior controls.
- Python 3.10 or higher
- pip (Python package manager)
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
-
Windows:
venv\Scripts\activate.bat
-
macOS/Linux:
source venv/bin/activate
-
-
Upgrade pip:
python -m pip install --upgrade pip setuptools wheel
-
Install dependencies:
pip install -r requirements.txt
-
Activate the virtual environment (if not already activated):
-
Windows:
venv\Scripts\activate.bat
-
macOS/Linux:
source venv/bin/activate
-
-
Launch the Human-in-the-Loop (HIL) Chat Interface:
python chat_interface_hil.py
chat_interface_hil.py- Main Human-in-the-Loop chat interface with interactive scenario generation


