Research Article

Impact of IID and Non-IID Data Distributions on Federated Learning for Air Quality Prediction

Kehao Bao*
Sun Yat-sen University

* Corresponding author: [email protected]

Abstract

Air quality prediction plays an important role in environmental management and daily health protection. However, when air quality data are collected by different monitoring stations, centralized modeling may face privacy risks and practical difficulties in data sharing. To explore a more suitable distributed setting, this paper studies air quality prediction under federated learning and focuses on the effect of data distribution on model performance. The PRSA multi-station dataset is used, and PM2.5 is selected as the prediction target. After missing-value processing, feature construction, standardization, and sliding-window sample generation, a long short-term memory model is trained under two settings. In the IID setting, training samples are randomly shuffled and evenly assigned to clients. In the Non-IID setting, K-means clustering is applied and different clusters are distributed to different clients to simulate heterogeneous local data. The experimental results show that the IID setting achieves lower error, faster convergence, and better stability, while the Non-IID setting converges more slowly and shows larger fluctuations during training. These findings indicate that data heterogeneity has a clear influence on federated air quality prediction and should be carefully considered in future model design and practical deployment.

Keywords: Federated learning; air quality prediction; IID; Non-IID; data heterogeneity
Published: June 1, 2026
DOI: 10.54254/2755-2721/2026.34043
Volume: ACE Vol.241
pp. 213-218
Download PDF

References

  1. World Health Organization. (2004). Health aspects of air pollution: results from the WHO project" Systematic review of health aspects of air pollution in Europe".
  2. Bai, L., Wang, J., Ma, X., & Lu, H. (2018). Air pollution forecasts: An overview. International journal of environmental research and public health, 15(4), 780.
  3. Zhang, Z., Zhang, S., Chen, C., & Yuan, J. (2024). A systematic survey of air quality prediction based on deep learning. Alexandria Engineering Journal, 93, 128-141.
  4. Zhang, B., Rong, Y., Yong, R., Qin, D., Li, M., Zou, G., & Pan, J. (2022). Deep learning for air pollutant concentration prediction: A review. Atmospheric Environment, 290, 119347.
  5. Alwabli, A. (2024). Federated learning for privacy-preserving air quality forecasting using iot sensors. Engineering, Technology & Applied Science Research, 14(4), 16069-16076.
  6. McMahan, B., Moore, E., Ramage, D., Hampson, S., & y Arcas, B. A. (2017). Communication-efficient learning of deep networks from decentralized data. In Artificial intelligence and statistics (pp. 1273-1282). Pmlr.
  7. Dey, S., & Pal, S. (2022). Federated learning-based air quality prediction for smart cities using BGRU model. In Proceedings of the 28th annual international conference on mobile computing and networking (pp. 871-873).
  8. Abimannan, S., El-Alfy, E. S. M., Hussain, S., Chang, Y. S., Shukla, S., Satheesh, D., & Breslin, J. G. (2023). Towards federated learning and multi-access edge computing for air quality monitoring: Literature review and assessment. Sustainability, 15(18), 13951.
  9. Li, T., Sahu, A. K., Zaheer, M., Sanjabi, M., Talwalkar, A., & Smith, V. (2020). Federated optimization in heterogeneous networks. Proceedings of Machine learning and systems, 2, 429-450.
  10. Zhao, Y., Li, M., Lai, L., Suda, N., Civin, D., & Chandra, V. (2018). Federated learning with non-iid data.  arXiv preprint arXiv: 1806.00582.
  11. Agbehadji, I. E., & Obagbuwa, I. C. (2024). Systematic review of machine learning and deep learning techniques for spatiotemporal air quality prediction. Atmosphere, 15(11), 1352.
  12. Govender, P., & Sivakumar, V. (2020). Application of k-means and hierarchical clustering techniques for analysis of air pollution: A review (1980–2019). Atmospheric pollution research, 11(1), 40-56.
  13. Chen, S. (2019). BeijingMulti-Site Air Quality. UCI Machine Learning Repository. https: //archive.ics.uci.edu/dataset/501/beijing+multi+site+air+quality+data