Large Language Models (LLMs) as Traffic Control Systems at Urban Intersections: A New Paradigm

dc.contributor.authorMasri, Sari
dc.contributor.authorAshqar, Huthaifa
dc.contributor.authorElhenawy, Mohammed
dc.date.accessioned2025-10-16T15:27:13Z
dc.date.issued2025-01-27
dc.description.abstractThis study introduces a novel approach for traffic control systems by using Large Language Models (LLMs) as traffic controllers. The study utilizes their logical reasoning, scene understanding, and decision-making capabilities to optimize throughput and provide feedback based on traffic conditions in real time. LLMs centralize traditionally disconnected traffic control processes and can integrate traffic data from diverse sources to provide context-aware decisions. LLMs can also deliver tailored outputs using various means such as wireless signals and visuals to drivers, infrastructures, and autonomous vehicles. To evaluate LLMs’ ability as traffic controllers, this study proposed a four-stage methodology. The methodology includes data creation and environment initialization, prompt engineering, conflict identification, and fine-tuning. We simulated multi-lane four-leg intersection scenarios and generated detailed datasets to enable conflict detection using LLMs and Python simulation as a ground truth. We used chain-of-thought prompts to lead LLMs in understanding the context, detecting conflicts, resolving them using traffic rules, and delivering context-sensitive traffic management solutions. We evaluated the performance of GPT-4o-mini, Gemini, and Llama as traffic controllers. Results showed that the fine-tuned GPT-mini achieved 83% accuracy and an F1-score of 0.84. The GPT-4o-mini model exhibited a promising performance in generating actionable traffic management insights, with high ROUGE-L scores across conflict identification of 0.95, decision making of 0.91, priority assignment of 0.94, and waiting time optimization of 0.92. This methodology confirmed LLMs’ benefits as a traffic controller in real-world applications. We demonstrated that LLMs can offer precise recommendations to drivers in real time including yielding, slowing, or stopping based on vehicle dynamics. This study demonstrates LLMs’ transformative potential for traffic control, enhancing efficiency and safety at intersections.
dc.description.urihttps://www.mdpi.com/2624-8921/7/1/11
dc.format.extent21 pages
dc.genrejournal articles
dc.identifierdoi:10.13016/m2oz6t-qhoz
dc.identifier.citationMasri, Sari, Huthaifa I. Ashqar, and Mohammed Elhenawy. “Large Language Models (LLMs) as Traffic Control Systems at Urban Intersections: A New Paradigm.” Vehicles 7, no. 1 (2025): 11. https://doi.org/10.3390/vehicles7010011.
dc.identifier.urihttps://doi.org/10.3390/vehicles7010011
dc.identifier.urihttp://hdl.handle.net/11603/40458
dc.language.isoen
dc.publisherMDPI
dc.relation.isAvailableAtThe University of Maryland, Baltimore County (UMBC)
dc.relation.ispartofUMBC Data Science
dc.relation.ispartofUMBC Faculty Collection
dc.rightsAttribution 4.0 International
dc.rights.urihttps://creativecommons.org/licenses/by/4.0/
dc.subjecturban intersection
dc.subjectLarge Language Models (LLMs)
dc.subjectlogical reasoning
dc.subjecttraffic control systems
dc.titleLarge Language Models (LLMs) as Traffic Control Systems at Urban Intersections: A New Paradigm
dc.typeText
dcterms.creatorhttps://orcid.org/0000-0002-6835-8338

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Large.pdf
Size:
5.69 MB
Format:
Adobe Portable Document Format