Research Article

ST-AFL: Spatio-Temporal Adaptive Federated Learning for Traffic Flow Prediction

Xia Li*
Beijing Wuzi University

* Corresponding author: [email protected]

Abstract

Accurate traffic flow prediction is critical for Intelligent Transportation Systems (ITS), while centralized modeling faces privacy risks and data silos. Federated learning provides a privacy-preserving solution yet suffers from Non-IID data, spatio-temporal feature loss, and high communication overhead in real-world traffic scenarios. To address these issues, this paper proposes a Spatio-Temporal Adaptive Federated Learning (ST-AFL) framework. First, a spatio-temporal clustering strategy based on K-means groups clients with similar traffic patterns to alleviate data heterogeneity. Second, a lightweight Local ST-Model with Conv1d-GRU-FC structure is deployed on edge clients to capture spatial dependencies and temporal dynamics. Third, an adaptive layer-freezing and gradient sparsification mechanism is designed to reduce communication cost by uploading only unfrozen layer parameters. Comprehensive experiments on the Metr-LA dataset show that ST-AFL achieves a final MSE of 0.1491, significantly outperforming FedAvg (0.8860), while reducing communication overhead. ST-AFL effectively balances prediction accuracy, communication efficiency, and privacy protection, making it suitable for edge computing-based traffic prediction.

Keywords: Traffic Flow Prediction; Federated Learning; Spatio-Temporal Adaptive Learning
Published: May 11, 2026
DOI: 10.54254/2755-2721/2026.33429
Volume: ACE Vol.233
pp. 223-227
Download PDF

References

  1. Alsehaimi, B., Alzamzami, O., Alowidi, N., & Ali, M. (2026). Adaptive spatio-temporal federated learning to predict traffic flows: The framework and the aggregation methods assessment. Applied Sciences, 16(5), 2402.
  2. Wang, X., Chen, J., Chen, F., Jin, B., Zou, F., Liao, L., & Zeng, R. (2026). FedCTPM: A federated cross-regional collaboration learning model of traffic flow prediction. Expert Systems with Applications, 305, 130779.
  3. Zhao, P., Liao, Z., Zhao, Y., Xu, J., & Yi, A. (2025). A semi-asynchronous federated learning approach combining personalization and staleness awareness to predict traffic flow in dynamic Internet of Vehicles. The Journal of Supercomputing, 81(8), 1018.
  4. Li, K., Xu, Q., Wang, D., Nie, X., & Wang, H. (2026). A communication-efficient federated learning method for traffic flow prediction. Engineering Applications of Artificial Intelligence, 170, 114182.
  5. Zhu, K., Lu, M., Li, H., Xiong, N. N., & He, W. (2025). CMBA-FL: Communication-mitigated and blockchain-assisted federated learning on predicting traffic flow. Digital Communications and Networks, 11(3), 724–733.
  6. Feng, J., Du, C., & Mu, Q. (2024). Traffic flow prediction based on federated learning and spatio-temporal graph neural networks. ISPRS International Journal of Geo-Information, 13(6), 210.
  7. Zhang, Z., Zhao, Y., & Wang, J. (2025). Multi-scale temporal feature-enhanced federated learning structure in network traffic prediction. Computer Networks, 273, 111742.
  8. Gao, F., Zhang, C., Qiao, J., Li, K., & Cao, Y. (2024). Communication-efficient wireless traffic prediction with federated learning. Mathematics, 12(16), 2539.
  9. Que, C., & Khan, F. N. (2025). A scalable federated learning-based solution to accurately predict traffic in edge computing-enabled metro optical networks. Computers & Industrial Engineering, 203, 111004.
  10. Dai, G., Tang, J., Zeng, J., Hu, C., & Zhao, C. (2024). Prediction of traffic flow in road networks: Personalized federated learning approach with client reputation. Computers and Electrical Engineering, 120, 109678.
  11. Kaur, G., Grewal, S. K., & Jain, A. (2024). Federated learning based spatio-temporal framework of real-time traffic prediction. Wireless Personal Communications, 136(2), 849–865.
  12. He, H. (2025). California traffic network datasets: METR-LA, PEMS-BAY, PEMS04 and PEMS08 to analyze traffic speed and flow. IEEE Dataport.
  13. Zhang, J., Hu, X., Cai, Z., Zhu, L., & Feng, Y. (2023). Federated learning using mutual information clustering to predict wireless traffic. Electronics, 12(21).