Human mobility is intricately influenced by urban contexts spatially and temporally, constituting essential domain knowledge in understanding traffic systems. While existing traffic forecasting models primarily rely on raw traffic data and advanced deep learning techniques, incorporating contextual information remains underexplored due to insufficient integration frameworks and the complexity of urban contexts. This study proposes a novel context-aware knowledge graph (CKG) framework to enhance traffic speed forecasting by effectively modeling spatial and temporal contexts. Employing a relation-dependent integration strategy, the framework generates context-aware representations from the spatial and temporal units of CKG to capture spatio-temporal dependencies of urban contexts. A CKG-GNN model, combining the CKG, dual-view multi-head self-attention (MHSA), and graph neural network (GNN), is then designed to predict traffic speed utilizing these context-aware representations. Our experiments demonstrate that CKG’s configuration significantly influences embedding performance, with ComplEx and KG2E emerging as optimal for embedding spatial and temporal units, respectively. The CKG-GNN model establishes a benchmark for 10-120 min predictions, achieving average MAE, MAPE, and RMSE of 3.46±0.01, 14.76±0.09%, and 5.08±0.01, respectively. Compared to the baseline DCRNN model, integrating the spatial unit improves the MAE by 0.04 and the temporal unit by 0.13, while integrating both units further reduces it by 0.18. The dual-view MHSA analysis reveals the crucial role of relation-dependent features from the context-based view and the model’s ability to prioritize recent time slots in prediction from the sequence-based view. Overall, this study underscores the importance of merging context-aware knowledge graphs with graph neural networks to improve traffic forecasting.


    Access

    Check access

    Check availability in my library

    Order at Subito €


    Export, share and cite



    Title :

    Context-Aware Knowledge Graph Framework for Traffic Speed Forecasting Using Graph Neural Network


    Contributors:
    Zhang, Yatao (author) / Wang, Yi (author) / Gao, Song (author) / Raubal, Martin (author)


    Publication date :

    2025-03-01


    Size :

    3910096 byte




    Type of media :

    Article (Journal)


    Type of material :

    Electronic Resource


    Language :

    English



    Uncertainty-Aware Temporal Graph Convolutional Network for Traffic Speed Forecasting

    Qian, Weizhu / Nielsen, Thomas Dyhre / Zhao, Yan et al. | IEEE | 2024


    Multiadaptive Spatiotemporal Flow Graph Neural Network for Traffic Speed Forecasting

    Xu, Yaobin / Liu, Weitang / Mao, Tingyun et al. | Transportation Research Record | 2022


    Metro Traffic Flow Prediction via Knowledge Graph and Spatiotemporal Graph Neural Network

    Shun Wang / Yimei Lv / Yuan Peng et al. | DOAJ | 2022

    Free access