IDEAS home Printed from https://ideas.repec.org/a/eee/phsmap/v675y2025ics0378437125004753.html
   My bibliography  Save this article

Urban rail transit passenger flow prediction using large language model under multi-source spatiotemporal data fusion

Author

Listed:
  • Ma, Changxi
  • Zhao, Mingxi

Abstract

With the continuous development of urban rail transit systems, passenger flow prediction has become a crucial component for optimizing operational scheduling. This paper proposes a metro passenger flow prediction method based on Large Language Model (LLM), incorporating hyperparameter tuning, pre-training, and multi-source spatiotemporal data fusion to enhance prediction accuracy. Firstly, the generative pre-trained transformer 2 (GPT-2) model is employed for passenger flow prediction, with fine-tuning strategies applied to adjust the pre-trained model to meet the specific requirements of the prediction task. During the fine-tuning process, some pre-trained parameters are frozen, and the Cosine Annealing Learning Rate strategy is used to gradually adjust the learning rate, effectively preventing overfitting and achieving efficient optimization. Secondly, the self-attention mechanism is utilized to fuse multi-source data, including air quality, weather conditions, and spatiotemporal passenger flow data, enhancing the model’s ability to capture complex fluctuations in passenger flow. The experimental results indicate that the proposed prediction model outperforms other models by achieving the lowest prediction error and demonstrating better capability in capturing complex passenger flow fluctuations. Ablation studies further validate the importance of multi-source data fusion in metro passenger flow prediction, as well as the effectiveness of fine-tuning in enhancing model performance. In addition, short-term prediction experiments investigate the model’s ability to handle immediate, near-future passenger flow forecasts. Furthermore, few-shot learning experiments analyze the impact of the training data sample ratio on prediction error and training efficiency. This paper offers a new perspective on applying LLM to metro passenger flow prediction.

Suggested Citation

  • Ma, Changxi & Zhao, Mingxi, 2025. "Urban rail transit passenger flow prediction using large language model under multi-source spatiotemporal data fusion," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 675(C).
  • Handle: RePEc:eee:phsmap:v:675:y:2025:i:c:s0378437125004753
    DOI: 10.1016/j.physa.2025.130823
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0378437125004753
    Download Restriction: Full text for ScienceDirect subscribers only. Journal offers the option of making the article available online on Science direct for a fee of $3,000

    File URL: https://libkey.io/10.1016/j.physa.2025.130823?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    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:eee:phsmap:v:675:y:2025:i:c:s0378437125004753. 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: Catherine Liu (email available below). General contact details of provider: http://www.journals.elsevier.com/physica-a-statistical-mechpplications/ .

    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.