Traffic forecasting is crucial for intelligent transportation systems. It has experienced significant advancements thanks to the power of deep learning in capturing latent patterns of traffic data. However, recent deep-learning architectures require intricate model designs and lack an intuitive understanding of the mapping from input data to predicted results. Achieving both accuracy and explainability in traffic prediction models remains a challenge due to the complexity of traffic data and the inherent opacity of deep learning models. To tackle these challenges, we propose a Traffic flow Prediction model based on Large Language Models (LLMs) to generate explainable traffic predictions, named xTP-LLM. By transferring multi-modal traffic data into natural language descriptions, xTP-LLM captures complex time-series patterns and external factors from comprehensive traffic data. The LLM framework is fine-tuned using language-based instructions to align with spatial-temporal traffic flow data. Empirically, xTP-LLM shows competitive accuracy compared with deep learning baselines, while providing an intuitive and reliable explanation for predictions. This paper contributes to advancing explainable traffic prediction models and lays a foundation for future exploration of LLM applications in transportation. To the best of our knowledge, this is the first study to use LLM for explainable prediction of traffic flows.


    Access

    Download


    Export, share and cite



    Title :

    Towards Explainable Traffic Flow Prediction with Large Language Models


    Contributors:
    Guo, Xusen (author) / Zhang, Qiming (author) / Jiang, Junyue (author) / Peng, Mingxing (author) / Zhu, Meixin (author) / Yang (author)

    Publication date :

    2024


    Remarks:

    31pages, 16 figures


    Type of media :

    Preprint


    Type of material :

    Electronic Resource


    Language :

    English




    Towards explainable traffic flow prediction with large language models

    Xusen Guo / Qiming Zhang / Junyue Jiang et al. | DOAJ | 2024

    Free access

    Comparison of traffic accident injury severity prediction models with explainable machine learning

    Cicek, Elif / Akin, Murat / Uysal, Furkan et al. | Taylor & Francis Verlag | 2023



    Explainable product backorder prediction exploiting CNN: Introducing explainable models in businesses

    Shajalal, Md / Boden, Alexander / Stevens, Gunnar | Online Contents | 2022

    Free access

    LC-LLM: Explainable lane-change intention and trajectory predictions with Large Language Models

    Mingxing Peng / Xusen Guo / Xianda Chen et al. | DOAJ | 2025

    Free access