IDEAS home Printed from https://ideas.repec.org/a/eee/phsmap/v675y2025ics0378437125004753.html

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.

    References listed on IDEAS

    as
    1. Dubé, Jean & Le Gallo, Julie & Des Rosiers, François & Legros, Diègo & Champagne, Marie-Pier, 2024. "An integrated causal framework to evaluate uplift value with an example on change in public transport supply," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 185(C).
    2. Hu, Yuntong & Xiao, Fuyuan, 2022. "A novel method for forecasting time series based on directed visibility graph and improved random walk," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 594(C).
    3. Ma, Changxi & Zhao, Mingxi & Huang, Xiaoting & Zhao, Yongpeng, 2024. "Optimized deep extreme learning machine for traffic prediction and autonomous vehicle lane change decision-making," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 633(C).
    4. Jing Liu & Qingling He & Zhikun Yue & Yulong Pei, 2024. "A Hybrid Strategy-Improved SSA-CNN-LSTM Model for Metro Passenger Flow Forecasting," Mathematics, MDPI, vol. 12(24), pages 1-19, December.
    5. Liao, Wenlong & Wang, Shouxiang & Yang, Dechang & Yang, Zhe & Fang, Jiannong & Rehtanz, Christian & Porté-Agel, Fernando, 2025. "TimeGPT in load forecasting: A large time series model perspective," Applied Energy, Elsevier, vol. 379(C).
    6. Yu Zhang & Xiaodan Wang & Jingjing Xie & Yun Bai, 2024. "Comparative analysis of deep-learning-based models for hourly bus passenger flow forecasting," Transportation, Springer, vol. 51(5), pages 1759-1784, October.
    7. Ma, Changxi & Zhao, Mingxi, 2023. "Spatio-temporal multi-graph convolutional network based on wavelet analysis for vehicle speed prediction," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 630(C).
    8. Zou, Yajie & Chen, Yubin & Xu, Yajiao & Zhang, Hao & Zhang, Siyang, 2024. "Short-term freeway traffic speed multistep prediction using an iTransformer model," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 655(C).
    9. Feng, Huifang & Jiang, Xintong, 2022. "Multi-step ahead traffic speed prediction based on gated temporal graph convolution network," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 606(C).
    10. Zhu, Kangli & Yin, Haodong & Qu, YunChao & Wu, Jianjun, 2021. "Group travel behavior in metro system and its relationship with house price," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 573(C).
    11. Xing, Jiping & Wu, Wei & Cheng, Qixiu & Liu, Ronghui, 2022. "Traffic state estimation of urban road networks by multi-source data fusion: Review and new insights," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 595(C).
    12. Xie, Xuewen & Wang, Yonggang & Jiang, Yanlin & Cheng, Yanqiu & Peng, Hui, 2025. "Metro short-term section passenger flow inherent patterns extraction and prediction: A novel denoising-based method," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 657(C).
    13. Qingliang Zhao & Xiaobin Feng & Liwen Zhang & Yiduo Wang, 2023. "Research on Short-Term Passenger Flow Prediction of LSTM Rail Transit Based on Wavelet Denoising," Mathematics, MDPI, vol. 11(19), pages 1-16, October.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Zou, Yajie & Chen, Yubin & Xu, Yajiao & Zhang, Hao & Zhang, Siyang, 2024. "Short-term freeway traffic speed multistep prediction using an iTransformer model," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 655(C).
    2. Li, Xueyan & Qiu, Heting & Yang, Yanni & Zhang, Hankun, 2022. "Differentiated fares depend on bus line and time for urban public transport network based on travelers’ day-to-day group behavior," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 593(C).
    3. Antonesi, Gabriel & Cioara, Tudor & Anghel, Ionut & Michalakopoulos, Vasilis & Sarmas, Elissaios & Toderean, Liana, 2025. "A systematic review of transformers and large language models in the energy sector: towards agentic digital twins," Applied Energy, Elsevier, vol. 401(PA).
    4. Schmidt, Jonas & Köhne, Daniel, 2023. "A simple scalable linear time algorithm for horizontal visibility graphs," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 616(C).
    5. Qingliang Zhao & Junji Chen & Xiaobin Feng & Yiduo Wang, 2024. "A Novel Bézier LSTM Model: A Case Study in Corn Analysis," Mathematics, MDPI, vol. 12(15), pages 1-21, July.
    6. Jin, Ziyang & Wang, Yifan & Meng, Xueyu & Duan, Dongli & Wang, Ning, 2025. "Identifying critical roads in urban road networks considering congestion propagation," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 675(C).
    7. Shi, Shuyang & Wang, Lin & Wang, Xiaofan, 2022. "Uncovering the spatiotemporal motif patterns in urban mobility networks by non-negative tensor decomposition," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 606(C).
    8. Xing, Jiping & Jia, Zhou & Wu, Tong & Tang, Tianli & Liu, Zhiyuan, 2026. "Bayesian optimization for traffic sensor deployment: Integrating network flow estimation into location planning," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 207(C).
    9. Yin, Ruyang & Zheng, Nan & Liu, Zhiyuan, 2022. "Estimating fundamental diagram for multi-modal signalized urban links with limited probe data," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 606(C).
    10. Zhou, Mingzhi & Zhou, Jiali & Zhou, Jiangping & Lei, Shuyu & Zhao, Zhan, 2023. "Introducing social contacts into the node-place model: A case study of Hong Kong," Journal of Transport Geography, Elsevier, vol. 107(C).
    11. Zhang, Chaobo & Zhang, Jian & Lu, Jie & Zhao, Yang, 2026. "Large Language Models Meet Energy Systems: Opportunities, Challenges, and Future Perspectives," Applied Energy, Elsevier, vol. 403(PA).
    12. Ma, Changxi & Zhao, Mingxi & Liu, Yang, 2025. "Vehicle navigation path optimization based on complex networks," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 665(C).
    13. Sun, Xiaoyong & Chen, Fenghao & Wang, Yuchen & Lin, Xuefen & Ma, Weifeng, 2023. "Short-term traffic flow prediction model based on a shared weight gate recurrent unit neural network," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 618(C).
    14. Sung-Neng Peng & Chien-Yi Huang & Hwa-Dong Liu & Ping-Jui Lin, 2025. "An Analysis of Hybrid Management Strategies for Addressing Passenger Injuries and Equipment Failures in the Taipei Metro System: Enhancing Operational Quality and Resilience," Mathematics, MDPI, vol. 13(15), pages 1-29, July.
    15. Fan, Yuwei & Song, Tao & Feng, Chenlong & Liu, Chao & Jiang, Dongxiang, 2025. "Wind power prediction using foundation large time series models enhanced by time series prompt in exogenous and tuning forms," Applied Energy, Elsevier, vol. 400(C).
    16. Xu, Yuhong & Zhao, Xinyao, 2024. "How does node centrality in a financial network affect asset price prediction?," The North American Journal of Economics and Finance, Elsevier, vol. 73(C).
    17. Dubé, Jean & Le Gallo, Julie & Champagne, Marie-Pier & Hilal, Mohamed & Legros, Diègo, 2026. "Can public investment in transport influence densification and land use? Evidence from the tramway of Dijon (France)," Transport Policy, Elsevier, vol. 176(C).
    18. Tan, Yiru & Zhao, Pengjun & Li, Ling, 2025. "Subway expansion, residential relocation, and travel behavior: Causal evidence from China," Journal of Transport Geography, Elsevier, vol. 124(C).
    19. Li, Yong & Wang, Jiajun & Kang, Liujiang, 2025. "Light attention-based neural networks for traffic flow prediction," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 673(C).
    20. Guo, Wenfeng & Song, Xiaolin & Cao, Haotian & Zhao, Song & Yi, Binlin & Wang, Jianqiang, 2023. "Human-centered driving authority allocation for driver-automation shared control: A two-layer game-theoretic approach," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 626(C).

    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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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.