journal article·2026-02-28Open access

Adaptive Spatio-Temporal Federated Learning for Traffic Flow Prediction: Framework and Aggregation Approaches Evaluation

Basma Alsehaimi, Ohoud Alzamzami, Nahed Alowidi, Manar Ali

Applied Sciences· Volume 16· Issue 5

Abstract

Traffic flow prediction (TFP) is a fundamental component of intelligent transportation systems (ITS) that supports traffic management, congestion mitigation, and route planning. Although recent advances in deep learning have demonstrated strong capability in modeling non-linear spatio-temporal correlations, most existing approaches rely on centralized training paradigms, which incur substantial communication costs, high computational overhead, and significant data privacy risks. Federated Learning (FL) has emerged as a promising alternative by enabling decentralized model training across distributed clients while reducing privacy risks and communication overhead. However, existing FL-based TFP frameworks often employ local models with limited capacity to capture complex spatio-temporal dependencies, and their reliance on the conventional FedAvg aggregation approach restricts robustness under heterogeneous traffic data distributions. To address these challenges, this study proposes the FedASTAM framework, which integrates FL with the Adaptive Spatio-Temporal Attention-based Multi-Model (ASTAM) to effectively model complex and non-linear spatio-temporal traffic correlations in a data-local FL setting. Within FedASTAM, the road network is divided into sub-regions using spectral clustering, allowing each sub-region to train a local ASTAM model tailored to localized and heterogeneous traffic patterns. At the central server, locally trained models are aggregated using seven aggregation schemes, including the classical FedAvg, to optimize global model updates while preserving data locality. Extensive experiments conducted on two real-world benchmark datasets, PeMS04 and PeMS08, demonstrate that FedASTAM achieved strong and stable predictive performance while keeping raw data localized throughout the federated training process. The results further indicate that the aggregation approaches used in the proposed FedASTAM framework generally outperform classical FedAvg under heterogeneous traffic conditions, highlighting FedASTAM as an effective approach for traffic flow prediction in complex, distributed ITS environments.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Traffic Prediction and Management Techniques · Traffic control and management · Advanced Data and IoT Technologies

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Computer Science, King AbdulAziz University, Jeddah 21589, Saudi Arabia

Applied College, Taibah University, Madinah 41477, Saudi Arabia

Funding

Deanship of Scientific Research

References (47)

Show source-provided references
1. Artificial intelligence in transportation systems a critical review10.47672/ajce.1487 ↗
2. Generic approaches to estimating freeway traffic state and percentage of connected vehicles with fixed and mobile sensing10.1109/TITS.2021.3121181 ↗
3. He, Y., Huang, P., Hong, W., Luo, Q., Li, L., and Tsui, K.L. (2024). In-Depth Insights into the Application of Recurrent Neural Networks (RNNs) in Traffic Prediction: A Comprehensive Review. Algorithms, 17.10.3390/a17090398 ↗
4. Traffic Flow Prediction with Heterogenous Data Using a Hybrid CNN-LSTM Model
5. Graph neural networks for intelligent transportation systems: A survey10.1109/TITS.2023.3257759 ↗
6. Urban traffic flow prediction techniques: A review10.1016/j.suscom.2022.100739 ↗
7. Alsehaimi, B., Alzamzami, O., Alowidi, N., and Ali, M. (2025). An Adaptive Spatio-Temporal Traffic Flow Prediction Using Self-Attention and Multi-Graph Networks. Sensors, 25.10.3390/s25010282 ↗
8. Privacy-preserving blockchain-based federated learning for traffic flow prediction10.1016/j.future.2020.12.003 ↗
9. Meeting privacy challenges while advancing intelligent transportation systems10.1016/j.trc.2012.04.002 ↗
10. A survey on federated learning in intelligent transportation systems10.1109/TIV.2024.3446319 ↗
11. Feng, J., Du, C., and Mu, Q. (2024). Traffic flow prediction based on federated learning and spatio-temporal graph neural networks. ISPRS Int. J. Geo-Inf., 13.10.3390/ijgi13060210 ↗
12. McMahan, B., Moore, E., Ramage, D., Hampson, S., and y Arcas, B.A. (2017, January 20–22). Communication-efficient learning of deep networks from decentralized data. Proceedings of the Artificial Intelligence and Statistics, PMLR, Fort Lauderdale, FL, USA.
13. A network traffic forecasting method based on SA optimized ARIMA–BP neural network10.1016/j.comnet.2021.108102 ↗
14. Adaptive Kalman filter approach for stochastic short-term traffic flow rate prediction and uncertainty quantification10.1016/j.trc.2014.02.006 ↗
15. Prediction of arrival times of freight traffic on US railroads using support vector regression10.1016/j.trc.2018.05.019 ↗
16. A Bayesian network approach to traffic flow forecasting10.1109/TITS.2006.869623 ↗
17. Chen, T., and Guestrin, C. (2016, January 13–17). Xgboost: A scalable tree boosting system. Proceedings of the 22nd ACM Sigkdd International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA.10.1145/2939672.2939785 ↗
18. Enhancing transportation systems via deep learning: A survey10.1016/j.trc.2018.12.004 ↗
19. Multi-range bidirectional mask graph convolution based GRU networks for traffic prediction10.1016/j.sysarc.2022.102775 ↗
20. A hybrid model for missing traffic flow data imputation based on clustering and attention mechanism optimizing LSTM and AdaBoost10.1038/s41598-024-77748-1 ↗
21. Veličković, P., Cucurull, G., Casanova, A., Romero, A., Lio, P., and Bengio, Y. (2017). Graph attention networks. arXiv.
22. Kipf, T.N., and Welling, M. (2016). Semi-supervised classification with graph convolutional networks. arXiv.
23. Yu, B., Yin, H., and Zhu, Z. (2017). Spatio-temporal graph convolutional networks: A deep learning framework for traffic forecasting. arXiv.10.24963/ijcai.2018/505 ↗
24. Li, Y., Yu, R., Shahabi, C., and Liu, Y. (2017). Diffusion convolutional recurrent neural network: Data-driven traffic forecasting. arXiv.
25. T-GCN: A temporal graph convolutional network for traffic prediction10.1109/TITS.2019.2935152 ↗
26. Guo, S., Lin, Y., Feng, N., Song, C., and Wan, H. (February, January 27). Attention based spatial-temporal graph convolutional networks for traffic flow forecasting. Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA.
27. Zheng, C., Fan, X., Wang, C., and Qi, J. (2020, January 7–12). Gman: A graph multi-attention network for traffic prediction. Proceedings of the AAAI Conference on Artificial Intelligence, New York, NY, USA.10.1609/aaai.v34i01.5477 ↗
28. Federated learning review: Fundamentals, enabling technologies, and future applications10.1016/j.ipm.2022.103061 ↗
29. Privacy-preserving traffic flow prediction: A federated learning approach10.1109/JIOT.2020.2991401 ↗
30. FASTGNN: A topological information protected federated learning approach for traffic speed forecasting10.1109/TII.2021.3055283 ↗
31. Short-term traffic flow prediction based on graph convolutional networks and federated learning10.1109/TITS.2022.3179391 ↗
32. Wang, H., Zhang, R., Cheng, X., and Yang, L. (2022, January 1–3). Federated spatio-temporal traffic flow prediction based on graph convolutional network. Proceedings of the 2022 14th International Conference on Wireless Communications and Signal Processing (WCSP), Virtual.10.1109/WCSP55476.2022.10039323 ↗
33. Analysis of spectral clustering algorithms for community detection: The general bipartite setting
34. Federated optimization in heterogeneous networks
35. Hsu, T.M.H., Qi, H., and Brown, M. (2019). Measuring the effects of non-identical data distribution for federated visual classification. arXiv.
36. Tackling the objective inconsistency problem in heterogeneous federated optimization
37. Reddi, S., Charles, Z., Zaheer, M., Garrett, Z., Rush, K., Konečnỳ, J., Kumar, S., and McMahan, H.B. (2020). Adaptive federated optimization. arXiv.
38. Song, C., Lin, Y., Guo, S., and Wan, H. (2020, January 7–12). Spatial-temporal synchronous graph convolutional networks: A new framework for spatial-temporal network data forecasting. Proceedings of the AAAI Conference on Artificial Intelligence, New York, NY, USA.10.1609/aaai.v34i01.5438 ↗
39. Distribution of residual autocorrelations in autoregressive-integrated moving average time series models10.1080/01621459.1970.10481180 ↗
40. Sequence-to-sequence learning with latent neural grammars
41. Deep temporal convolutional networks for short-term traffic flow forecasting10.1109/ACCESS.2019.2935504 ↗
42. Wu, Z., Pan, S., Long, G., Jiang, J., and Zhang, C. (2019). Graph wavenet for deep spatial-temporal graph modeling. arXiv.10.24963/ijcai.2019/264 ↗
43. Yang, H., Wei, S., and Wang, Y. (2024). Stfeformer: Spatial–temporal fusion embedding transformer for traffic flow prediction. Appl. Sci., 14.10.3390/app14104325 ↗
44. FedGODE: Secure traffic flow prediction based on federated learning and graph ordinary differential equation networks10.1016/j.knosys.2024.112029 ↗
45. Divergence measures based on the Shannon entropy10.1109/18.61115 ↗
46. On information and sufficiency10.1214/aoms/1177729694 ↗
47. Villani, C. (2009). The wasserstein distances. Optimal Transport: Old and New, Springer.10.1007/978-3-540-71050-9_6 ↗