Abstract
With the increasing popularity of ChatGPT, large language models (LLMs) have demonstrated their capabilities in communication and reasoning, promising for transportation sector intelligentization. However, they still face challenges in domain-specific knowledge. This paper aims to leverage LLMs' reasoning and recognition abilities to replace traditional user interfaces and create an "intelligent operating system" for transportation simulation software, exploring their potential with transportation modeling and simulation. We introduce Network Generation AI (NGAI), integrating LLMs with road network modeling plugins, validated through experiments for accuracy and robustness. NGAI's effective use has reduced modeling costs, revolutionized transportation simulations, optimized user steps, and proposed a novel approach for LLM integration in the transportation field.
Introduction
Traffic simulation is a cornerstone of urban planning and Intelligent Transportation Systems (ITS). However, building the underlying road networks in software like SUMO, Vissim, or TransCAD is notoriously labor-intensive. It requires significant temporal and cognitive investment to manually define nodes, links, and geometries. While LLMs like ChatGPT are excellent at reasoning, they lack the domain-specific precision to generate accurate spatial data on their own, often hallucinating coordinates or failing to understand intricate topological relationships. This paper introduces Network Generation AI (NGAI), which bridges this gap by using the LLM as an "intelligent operating system" that orchestrates specialized tools to handle spatial data processing.
Methodology: The NGAI Framework
NGAI is built using the LangChain framework, allowing an LLM to act as a controller that selects and invokes specific "plugins" based on user intent. The system outputs data in the General Modeling Network Specification (GMNS) format, a universal standard for road network files.
The core insight of NGAI is that the LLM serves as an orchestrator rather than a direct engine for data generation. By providing the LLM with clear plugin descriptors, it can autonomously decide which tool to use and in what sequence, ensuring domain-specific accuracy while maintaining the flexibility of natural language interaction.
Implementation and Tools
NGAI incorporates four primary modeling methodologies to handle multimodal inputs:
- Regular Road Network Tool: Generates grid-based networks from simple text commands (e.g., "Create a 5x4 grid").
- Location-specified Tool: Uses geocoding (via Amap API) and OpenStreetMap (OSM) data to pull real-world road networks based on a place name and search radius.
- Satellite Image Tool: Employs a U-Net convolutional neural network to segment road pixels from satellite photos, followed by Shi-Tomasi corner detection to convert pixels into a node-and-link graph.
- Hand-drawn Image Tool: Uses OpenCV for denoising and edge detection to turn conceptual sketches into structured network files.
Evaluation and Results
The system was validated through over 10 experiments per plugin across different languages and prompt styles. Key results include:
- High Accuracy: An overall tool selection accuracy of 95%.
- Prompt Sensitivity: Accuracy reached 100% when users provided detailed prompts in English.
- Efficiency: For Chinese prompts, the "repeated call probability" (indicating the LLM getting stuck in a loop) was nearly 0% for both detailed and concise inputs.
- Robustness: The system successfully converted low-complexity satellite and hand-drawn images into GMNS files ready for immediate traffic simulation in SUMO.
Conclusion and Future Work
NGAI demonstrates the potential of LLMs to revolutionize transportation modeling by lowering the barrier to entry for non-experts. However, limitations remain, such as dependency on image quality for satellite and hand-drawn tools. Future work will focus on increasing the training volume for the U-Net model to handle complex urban environments and exploring more powerful LLMs to further reduce errors and improve performance across diverse linguistic inputs.
Summary updated