Traffic Assignment of Urban Road Based on Heterogeneous Graph Neural Networks

Traffic assignment is crucial for urban traffic regulation and management. Based on this background, this study proposes a heterogeneous graph neural network that integrates Transformer-based multi-head self-attention for traffic assignment in urban road networks. The model builds a heterogeneous graph with both physical road links and virtual origin–destination links. It features a dual-encoder structure: the V-Encoder and the R-Encoder. The V-Encoder employs Transformer multi-head self-attention to capture long-range spatial relationships between origin and destination nodes. In contrast, the R-Encoder aggregates local topological features to characterize the transmission of flow across road segments. A combined loss function that includes flow conservation constraints is designed to ensure predictions are both accurate and physically realistic. Experiments on the Sioux Falls and EMA networks demonstrate that the method outperforms baseline models under various congestion conditions, exhibiting high accuracy and efficiency. Ablation tests show that Transformer multi-head self-attention is vital for performance enhancement. The approach also remains robust under abnormal conditions, such as in the case of incomplete OD demands, making it a practical solution for efficient, low-carbon, and sustainable traffic management.

Institutions

Publication Details

Journal
Sustainability
Published
2026-05-17
DOI
https://doi.org/10.3390/su18105044
Primary Topic
Traffic Prediction and Management Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Traffic Assignment of Urban Road Based on Heterogeneous Graph Neural Networks

Sustainability
Traffic Prediction and Management Techniques
article

Traffic Assignment of Urban Road Based on Heterogeneous Graph Neural Networks

article en

Abstract

Traffic assignment is crucial for urban traffic regulation and management. Based on this background, this study proposes a heterogeneous graph neural network that integrates Transformer-based multi-head self-attention for traffic assignment in urban road networks. The model builds a heterogeneous graph with both physical road links and virtual origin–destination links. It features a dual-encoder structure: the V-Encoder and the R-Encoder. The V-Encoder employs Transformer multi-head self-attention to capture long-range spatial relationships between origin and destination nodes. In contrast, the R-Encoder aggregates local topological features to characterize the transmission of flow across road segments. A combined loss function that includes flow conservation constraints is designed to ensure predictions are both accurate and physically realistic. Experiments on the Sioux Falls and EMA networks demonstrate that the method outperforms baseline models under various congestion conditions, exhibiting high accuracy and efficiency. Ablation tests show that Transformer multi-head self-attention is vital for performance enhancement. The approach also remains robust under abnormal conditions, such as in the case of incomplete OD demands, making it a practical solution for efficient, low-carbon, and sustainable traffic management.

SustainabilityVol. 18(10)
Shanghai Jiao Tong University (CN), Shanghai Maritime University (CN)
Openalex Percentile: Top 7%
Traffic Prediction and Management Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.