Toderean Liana, Daian Mihai, Cioara Tudor, Anghel Ionut, Michalakopoulos Vasilis, Sarantinopoulos Efstathios, Sarmas Elissaios
Distributed Systems Research Laboratory, Computer Science Department, Technical University of Cluj-Napoca, G. Barițiu 26-28, Cluj-Napoca, 400027, Romania.
Decision Support Systems Laboratory, School of Electrical & Computer Engineering, National Technical University of Athens, Ir. Politechniou 9, Athens, 157 73, Greece.
Sci Rep. 2025 Apr 12;15(1):12564. doi: 10.1038/s41598-025-96443-3.
Federated Learning is transforming electrical load forecasting by enabling Artificial Intelligence (AI) models to be trained directly on household edge devices. However, the prediction accuracy of federated learning models tends to diminish when dealing with non-IID data highlighting the need for adaptive hyperparameter optimization strategies to improve performance. In this paper, we propose a novel hierarchical federated learning solution for efficient model aggregation and hyperparameter tuning, specifically tailored to household energy prediction. The households with similar energy profiles are clustered at the edge, linked, and aggregated at the fog level, to enable effective and adaptive hyperparameter tuning. The federated model aggregation is optimized using hierarchical simulated annealing optimization to prioritize updates from the better-performing models. A genetic algorithm-based hyperparameter optimization method reduces the computational load on edge nodes by efficiently exploring different configurations and using only the most promising ones for edge nodes' cross-validation. The evaluation results demonstrate a significant improvement in average prediction accuracy and better capturing of energy patterns compared to the federated averaging approach. The impact on network traffic among nodes across different layers is kept below 30 KB. Additionally, hyperparameter tuning reduces the size of model updates and the number of communication rounds by 30%, which is particularly beneficial when network resources are limited.
联邦学习正在通过使人工智能(AI)模型能够直接在家庭边缘设备上进行训练来改变电力负荷预测。然而,在处理非独立同分布(non-IID)数据时,联邦学习模型的预测准确性往往会降低,这凸显了需要采用自适应超参数优化策略来提高性能。在本文中,我们提出了一种新颖的分层联邦学习解决方案,用于高效的模型聚合和超参数调整,特别针对家庭能源预测进行了定制。具有相似能源配置文件的家庭在边缘进行聚类、链接,并在雾层进行聚合,以实现有效的自适应超参数调整。使用分层模拟退火优化对联邦模型聚合进行优化,以优先处理性能更好的模型的更新。一种基于遗传算法的超参数优化方法通过有效探索不同配置并仅使用最有前景的配置进行边缘节点的交叉验证,从而降低了边缘节点的计算负荷。评估结果表明,与联邦平均方法相比,平均预测准确性有显著提高,并且能够更好地捕捉能源模式。对不同层节点之间网络流量的影响保持在30KB以下。此外,超参数调整将模型更新的大小和通信轮数减少了30%,这在网络资源有限时特别有益。