Transformer-Driven Dynamic Forecasting and Scheduling Optimization of Tourist Flow
Main Article Content
Abstract
Tourist flow modeling and prediction in scenic areas is highly complex, exhibiting significant spatiotemporal dependence and being influenced by various external factors. Traditional models struggle to simultaneously characterize complex spatiotemporal relationships and integrate diverse external information, posing challenges for intelligent resource management and dynamic information scheduling in large-scale networked systems. To address this, this paper proposes a closed-loop integration framework that combines a particle swarm optimization (PSO)-based Temporal Fusion Transformer-Graph Attention Network (TFT-GAT) prediction model with Deep Double-Q Network (D3QN) scheduling optimization. The framework integrates heterogeneous data such as historical traffic, weather, and social media, achieving adaptive time-varying spatial embedding through a graph attention network (GAT) while capturing long- and short-term dependencies using a Temporal Fusion Transformer (TFT) for both point and quantile prediction. The PSO algorithm performs global optimization of the TFT-GAT hyperparameters, and the resulting prediction outputs together with uncertainty estimates are incorporated into the D3QN to realize closed-loop online capacity allocation based on reinforcement learning. Such a data-driven spatiotemporal modeling strategy also provides methodological insights for dynamic information fusion and adaptive resource scheduling in intelligent electromagnetic sensing and communication environments. Experiments conducted at the Forbidden City in Beijing demonstrate high prediction accuracy with a mean absolute error of 1.5–2.6 people/hour, an average quantile coverage exceeding 82%, and a response time of 140.6 ms. The incorporation of exogenous factors, particularly holidays, improves prediction performance by 18.4%, validating the proposed framework’s robustness in spatiotemporal coupling, uncertainty representation, and real-time scheduling.
Downloads
Article Details

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).
References
Y. Liu, G. Feng, K. S. Chin, S. Sun, and S. Wang, “Daily tourism demand forecasting: T he impact of complex seasonal patterns and holiday effects,” Current Issues in Tourism, vol. 26, no. 10, pp. 1573-1592, 2023, doi: 10.1080/13683500.2022.2060067.
A. Zvaigzne, L. Litavniece, and I. Dembovska, “Tourism seasonality: The causes and effects,” Worldwide Hospitality and Tourism Themes, vol. 14, no. 5, pp. 421-430, 2022, doi: 10.1108/WHATT-07-2022-0080.
S. Wang and X. Yang, “Twice clustering based hybrid model for short-term passenger flow forecasting,” Transport, vol. 39, no. 3, pp. 209–228, 2024, doi: 10.3846/transport.2024.20538.
S. He, “Tourist flow analysis and regulation strategy in tourist attractions based on spatiotemporal evolution and internet of things big data,” Journal of Biotech Research, vol. 20, no. 1, pp. 89-97, 2025.
C. Munoz, A. Alvarez, and J. F. Banos, “Modelling the effect of weather on tourism: does it vary across seasons?,” Tourism Geographies, vol. 25, no. 1, pp. 265-286, 2023, doi: 10.1080/14616688.2020.1868019.
J. Yu, “Passenger flow prediction of tourist attractions by integrating differential evolution and GWO,” Informatica, vol. 48, no. 13, pp. 31-50, 2024, doi: 10.31449/inf.v48i13.6159.
Y. Liu, G. Feng, K. S. Chin, S. Sun, and S. Wang, “Daily tourism demand forecasting: T he impact of complex seasonal patterns and holiday effects,” Current Issues in Tourism, vol. 26, no. 10, pp. 1573-1592, 2023, doi: 10.1080/13683500.2022.2060067.
A. Zvaigzne, L. Litavniece, and I. Dembovska, “Tourism seasonality: The causes and effects,” Worldwide Hospitality and Tourism Themes, vol. 14, no. 5, pp. 421-430, 2022, doi: 10.1108/WHATT-07-2022-0080.
S. Wang and X. Yang, “Twice clustering based hybrid model for short-term passenger flow forecasting,” Transport, vol. 39, no. 3, pp. 209–228, 2024, doi: 10.3846/transport.2024.20538.
S. He, “Tourist flow analysis and regulation strategy in tourist attractions based on spatiotemporal evolution and internet of things big data,” Journal of Biotech Research, vol. 20, no. 1, pp. 89-97, 2025.
C. Munoz, A. Alvarez, and J. F. Banos, “Modelling the effect of weather on tourism: does it vary across seasons?,” Tourism Geographies, vol. 25, no. 1, pp. 265-286, 2023, doi: 10.1080/14616688.2020.1868019.
J. Yu, “Passenger flow prediction of tourist attractions by integrating differential evolution and GWO,” Informatica, vol. 48, no. 13, pp. 31-50, 2024, doi: 10.31449/inf.v48i13.6159.
Q. Tang, L. Yang, and L. Pan, “Passenger flow forecast of tourist attraction based on MACBL in LBS big data environment,” Open Geosciences, vol. 15, no. 1, pp. 1-12, 2023, doi: 10.1515/geo-2022-0577.
A. G. Vrahatis, K. Lazaros, and S. Kotsiantis, “Graph attention networks: A comprehensive review of methods and applications,” Future Internet, vol. 16, no. 9, pp. 318-351, 2024, doi: 10.3390/fi16090318.
D. Yin, R. Jiang, J. Deng, Y. Li, Y. Xie, Z. Wang, et al., “MTMGNN: Multi-time multi-graph neural network for metro passenger flow prediction,” GeoInformatica, vol. 27, no. 1, pp. 77-105, 2023, doi: 10.1007/s10707-022-00466-1.
L. Liu, Y. Liu, and X. Ye, “Multi-sequence spatio-temporal feature fusion network for peak-hour passenger flow prediction in urban rail transit,” Transportation Letters, vol. 17, no. 1, pp. 86-102, 2025, doi: 10.1080/19427867.2024.2327805.
Q. Xue, W. Zhang, M. Ding, X. Yang, J. Wu, and Z. Gao, “Passenger flow forecasting approaches for urban rail transit: A survey,” International Journal of General Systems, vol. 52, no. 8, pp. [a] 947, 2023, doi: 10.1080/03081079.2023.2231133.
J. Sun, Z. Qiu, Y. Sun, and O. Simpson, “A Self-Correction Transformer Network for Traffic Flow Prediction Under Dynamic Spatio-Temporal Distributions,” IET Intelligent Transport Systems, vol. 19, no. 1, pp. 1-15, 2025, doi: 10.1049/itr2.70044.
B. Wu, L. Wang, and R. Zeng Y, “Interpretable tourism demand forecasting with Two-Stage decomposition and Temporal fusion Transformers,” Journal of Systems Science and Complexity, vol. 37, no. 6, pp. 2654-2679, 2024, doi: 10.1007/s11424-024-2307-0.
Y. Lai and Y. Wang, “Short-term passenger flow prediction for rail transit based on improved particle swarm optimization algorithm,” IET Intelligent Transport Systems, vol. 17, no. 4, pp. 825-834, 2023, doi: 10.1049/itr2.12306.
L. Zhao, H. Jin, X. Zou, and X. Liu, “Short-Term Passenger Flow Forecasting for Rail Transit considering Chaos Theory and Improved EMD-PSO-LSTM-Combined Optimization,” Journal of Advanced Transportation, vol. 2023, no. 1, pp. 1-16, 2023, doi: 10.1155/2023/9524966.
B. Jiang, J. Zhang, J. Fu, G. Ding, and Y. Zhang, “Research on Check-In Baggage Flow Prediction for Airport Departure Passengers Based on Improved PSO-BP Neural Network Combination Model,” Aerospace, vol. 11, no. 11, pp. 953-973, 2024, doi: 10.3390/aerospace11110953.
S. Hu, M. Ji, Z. Chang, H. Wang, and X. Kong, “An improved particle swarm optimization algorithm based urban rail passenger flow prediction model: a case study in Beijing, China,” Digital Transportation and Safety, vol. 4, no. 2, pp. 101-107, 2025, doi: 10.48130/dts-0025-0005.
Y. Fu, Y. Shen, and L. Tang, “A dynamic task allocation framework in mobile crowd sensing with D3QN,” Sensors, vol. 23, no. 13, pp. 6088-7100, 2023, doi: 10.3390/s23136088.
M. Reyad, A. M. Sarhan, and M. Arafa, “A modified Adam algorithm for deep neural network optimization,” Neural Computing and Applications, vol. 35, no. 23, pp. 17095-17112, 2023, doi: 10.1007/s00521-023-08568-z.
C. Zhang, Y. Shao, H. Sun, L. Xing, Q. Zhao, and L. Zhang, “The WuC-Adam algorithm based on joint improvement of Warmup and cosine annealing algorithms,” Mathematical Biosciences & Engineering, vol. 21, no. 1, pp. 1270-1285, 2024, doi: 10.3934/mbe.2024054.
N. Xiao, X. Hu, X. Liu, and K. C. Toh, “Adam-family methods for non-smooth optimization with convergence guarantees,” Journal of Machine Learning Research, vol. 25, no. 48, pp. 1-53, 2024, [Online]. Available: http://jmlr.org/papers/v25/23-0576.html.