IDEAS home Printed from https://ideas.repec.org/a/gam/jsusta/v18y2026i10p5044-d1944843.html

Traffic Assignment of Urban Road Based on Heterogeneous Graph Neural Networks

Author

Listed:
  • Guangnian Xiao

    (School of Economics and Management, Shanghai Maritime University, Shanghai 201306, China)

  • Tong Xia

    (School of Economics and Management, Shanghai Maritime University, Shanghai 201306, China)

  • Xinqiang Chen

    (Institute of Logistics Science and Engineering, Shanghai Maritime University, Shanghai 201306, China)

  • Anning Ni

    (School of Ocean and Civil Engineering, Shanghai Jiao Tong University, Shanghai 200240, China)

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.

Suggested Citation

  • Guangnian Xiao & Tong Xia & Xinqiang Chen & Anning Ni, 2026. "Traffic Assignment of Urban Road Based on Heterogeneous Graph Neural Networks," Sustainability, MDPI, vol. 18(10), pages 1-24, May.
  • Handle: RePEc:gam:jsusta:v:18:y:2026:i:10:p:5044-:d:1944843
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2071-1050/18/10/5044/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2071-1050/18/10/5044/
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jsusta:v:18:y:2026:i:10:p:5044-:d:1944843. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.