基于自适应参数聚合的联邦双分支图神经网络及其在用电量需求预测中的应用
Federated 2-Branch Graph Neural Network Based on Adaptive Parameter Aggregation and Its Application in Electricity Demand Forecasting
DOI: 10.12677/csa.2025.159241, PDF,    国家科技经费支持
作者: 钟 磊, 姜雪娇, 徐佳隆, 符 峥, 高 磊:中国南方电网海南电网有限责任公司,海南 海口;郑楷洪*, 李 胜:南方电网数字电网集团有限公司,广东 广州
关键词: 联邦学习用电量需求预测图神经网络Federated Learning Electricity Consumption Demand Forecasting Graph Neural Network
摘要: 用电量需求预测是智能电网领域的重要研究方向,需要对用电量数据的时序特征和峰值变化进行精确建模。然而,不同地区的用电量数据特性及其需求存在差异,且部分地区的用电情况属于敏感行业数据,需要进行隐私保护。联邦学习为用电量需求预测任务提供了一种兼顾隐私保护的可行方案,但传统的联邦学习方法在该任务中面临两大挑战:一是当本地客户端的用电量数据不足时,其本地模型容易过拟合到含噪声的峰值变化;二是不同客户端的数据特征可能存在显著差异,部分客户端的用电量模式以周期性为主,另一部分则具有明显的峰值变化,导致不同客户端的本地模型参数不一致。相应地,在服务器端聚合这些差异较大的模型会导致全局模型在部分区域的用电数据上出现过平滑现象,降低其对峰值变化的拟合能力。为克服这些挑战,本文提出了一种基于自适应参数聚合的联邦双分支图神经网络(Federated Dual-branch Graph Neural Network with adaptive parameter aggregation, FDGN)用于用电量需求预测。对于局部模型的构建,FDGN首先采用一种混合特征表示,捕捉用电量数据的时序特性和数值波动特性。鉴于时序模式和峰值变化具有不同的数据特征且对预测均至关重要,FDGN采用双分支图对其分别建模:首先设计了用电量时序图及其对应的多尺度图注意力网络以提取用电量数据的时序模式特征,然后设计数值相关图及其对应的高斯自编码器,将峰值变化建模为参数化高斯分布中的动态协方差特征,从而缓解过拟合问题。最后,融合这两部分特征以生成最终预测结果。对于全局模型的构建,FDGN通过在服务器端引入基于相似度的自适应动态参数聚合方法,缓解全局模型的过平滑问题。实验结果表明,在用电量需求预测中,FDGN优于常用的联邦学习方法。
Abstract: Electricity demand forecasting stands as a critical research area within smart grids, requiring accurate modeling of the temporal characteristics and peak variations inherent in consumption patterns. However, significant disparities exist in electricity data characteristics and demand patterns across different regions, with consumption data from certain areas constituting sensitive industrial data necessitating robust privacy protection. Federated learning offers a viable privacy-preserving solution for electricity demand forecasting tasks. Nevertheless, traditional federated learning approaches encounter two primary challenges in this context: 1) local models at clients with insufficient electricity data are prone to overfitting on noisy peak variations; and 2) substantial heterogeneity in data features exists among clients, leading to parameter inconsistency across local models. Consequently, aggregating these divergent models at the server results in an over-smoothed global model that compromises its ability to capture peak fluctuations effectively. To overcome these challenges, this paper proposes a Federated Dual-branch Graph Neural Network with adaptive parameter aggregation (FDGN) tailored for electricity demand forecasting. Within the local model framework, FDGN first constructs a hybrid feature representation capturing both the temporal evolution and numerical volatility of electricity consumption data. Recognizing that temporal patterns and peak variations possess distinct characteristics yet are equally crucial for prediction, FDGN employs a dual-branch graph for parallel modeling: it designs an electricity time-series graph coupled with a corresponding multi-scale attention network to extract temporal patterns, and constructs a numerical structure graph paired with a Gaussian autoencoder to represent peak variations as dynamic covariance features within a parameterized Gaussian distribution, thereby mitigating overfitting. These temporal features and covariance features are ultimately fused to generate the final prediction. For global model construction, FDGN addresses the over-smoothing issue during aggregation by introducing a similarity-based adaptive dynamic parameter aggregation mechanism at the server. Experimental results verify that FDGN outperforms conventional federated learning methods in electricity demand forecasting.
文章引用:钟磊, 姜雪娇, 郑楷洪, 徐佳隆, 符峥, 高磊, 李胜. 基于自适应参数聚合的联邦双分支图神经网络及其在用电量需求预测中的应用[J]. 计算机科学与应用, 2025, 15(9): 242-255. https://doi.org/10.12677/csa.2025.159241

参考文献

[1] González, A.M., Roque, A.S. and García-González, J. (2005) Modeling and Forecasting Electricity Prices with Input/output Hidden Markov Models. IEEE Transactions on Power Systems, 20, 13-24. [Google Scholar] [CrossRef
[2] Yildiz, B., Bilbao, J.I. and Sproul, A.B. (2017) A Review and Analysis of Regression and Machine Learning Models on Commercial Building Electricity Load Forecasting. Renewable and Sustainable Energy Reviews, 73, 1104-1122. [Google Scholar] [CrossRef
[3] Bhattarai, B.P., Paudyal, S., Luo, Y., Mohanpurkar, M., Cheung, K., Tonkoski, R., et al. (2019) Big Data Analytics in Smart Grids: State-of-the-Art, Challenges, Opportunities, and Future Directions. IET Smart Grid, 2, 141-154. [Google Scholar] [CrossRef
[4] Hu, J., Harmsen, R., Crijns-Graus, W., Worrell, E. and van den Broek, M. (2018) Identifying Barriers to Large-Scale Integration of Variable Renewable Electricity into the Electricity Market: A Literature Review of Market Design. Renewable and Sustainable Energy Reviews, 81, 2181-2195. [Google Scholar] [CrossRef
[5] Kairouz, P., McMahan, H.B., Avent, B., et al. (2021) Advances and Open Problems in Federated Learning. Foundations and Trends® in Machine Learning, 14, 1-210.
[6] Bousbiat, H., Bousselidj, R., Himeur, Y., et al. (2023) Crossing Roads of Federated Learning and Smart Grids: Overview, Challenges, and Perspectives. arXiv:2304.08602.
[7] Silva, F.A.R., Orang, O., Javier Erazo-Costa, F., Silva, P.C.L., Barros, P.H., Ferreira, R.P.M., et al. (2025) Time Series Classification Using Federated Convolutional Neural Networks and Image-Based Representations. IEEE Access, 13, 56180-56194. [Google Scholar] [CrossRef
[8] Cheng, X., Li, C. and Liu, X. (2022) A Review of Federated Learning in Energy Systems. 2022 IEEE/IAS Industrial and Commercial Power System Asia (I&CPS Asia), Shanghai, 8-11 July 2022, 2089-2095. [Google Scholar] [CrossRef
[9] Yang, Q., Liu, Y., Chen, T. and Tong, Y. (2019) Federated Machine Learning: Concept and Applications. ACM Transactions on Intelligent Systems and Technology, 10, 1-19. [Google Scholar] [CrossRef
[10] Mohd Nizam, M.A., Sulaiman, S.A. and Ramli, N.A. (2024) Predictive Model for Electricity Consumption in Malaysia Using Support Vector Regression. In: Md. Zain, Z., Sulaiman, N., Mustafa, M., Shakib, M.N. and A. Jabbar, W., Eds., Lecture Notes in Electrical Engineering, Springer, 149-159. [Google Scholar] [CrossRef
[11] Chen, H. and Lee, C. (2019) Electricity Consumption Prediction for Buildings Using Multiple Adaptive Network-Based Fuzzy Inference System Models and Gray Relational Analysis. Energy Reports, 5, 1509-1524. [Google Scholar] [CrossRef
[12] Gomez, W., Wang, F. and Amogne, Z.E. (2023) Electricity Load and Price Forecasting Using a Hybrid Method Based Bidirectional Long Short-Term Memory with Attention Mechanism Model. International Journal of Energy Research, 2023, Article ID: 3815063. [Google Scholar] [CrossRef
[13] Wang, W., Shimakawa, H., Jie, B., Sato, M. and Kumada, A. (2025) BE-LSTM: An LSTM-Based Framework for Feature Selection and Building Electricity Consumption Prediction on Small Datasets. Journal of Building Engineering, 102, Article 111910. [Google Scholar] [CrossRef
[14] Imani, M. (2021) Electrical Load-Temperature CNN for Residential Load Forecasting. Energy, 227, Article 120480. [Google Scholar] [CrossRef
[15] Wang, S., Wang, X., Wang, S. and Wang, D. (2019) Bi-Directional Long Short-Term Memory Method Based on Attention Mechanism and Rolling Update for Short-Term Load Forecasting. International Journal of Electrical Power & Energy Systems, 109, 470-479. [Google Scholar] [CrossRef
[16] Lotfipoor, A., Patidar, S. and Jenkins, D.P. (2024) Deep Neural Network with Empirical Mode Decomposition and Bayesian Optimisation for Residential Load Forecasting. Expert Systems with Applications, 237, Article 121355. [Google Scholar] [CrossRef
[17] Gashler, M.S. and Ashmore, S.C. (2016) Modeling Time Series Data with Deep Fourier Neural Networks. Neurocomputing, 188, 3-11. [Google Scholar] [CrossRef
[18] Liu, Y., Guan, L., Hou, C., Han, H., Liu, Z., Sun, Y., et al. (2019) Wind Power Short-Term Prediction Based on LSTM and Discrete Wavelet Transform. Applied Sciences, 9, Article 1108. [Google Scholar] [CrossRef
[19] Liang, F., Zhang, Z., Lu, H., et al. (2024) Communication-Efficient Large-Scale Distributed Deep Learning: A Comprehensive Survey. arXiv:2404.06114.
[20] Huang, W., Wang, D., Ouyang, X., Wan, J., Liu, J. and Li, T. (2024) Multimodal Federated Learning: Concept, Methods, Applications and Future Directions. Information Fusion, 112, Article 102576. [Google Scholar] [CrossRef
[21] Jia, N., Qu, Z., Ye, B., Wang, Y., Hu, S. and Guo, S. (2025) A Comprehensive Survey on Communication-Efficient Federated Learning in Mobile Edge Environments. IEEE Communications Surveys & Tutorials, 1. [Google Scholar] [CrossRef
[22] Sun, T., Li, D. and Wang, B. (2022) Decentralized Federated Averaging. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45, 4289-4301. [Google Scholar] [CrossRef] [PubMed]
[23] Geyer, R.C., Klein, T. and Nabi, M. (2017) Differentially Private Federated Learning: A Client Level Perspective. arXiv:1712.07557.
[24] Venkataramanan, V., Kaza, S. and Annaswamy, A.M. (2022) DER Forecast Using Privacy-Preserving Federated Learning. IEEE Internet of Things Journal, 10, 2046-2055. [Google Scholar] [CrossRef
[25] Ahmadi, A., Talaei, M., Sadipour, M., Amani, A.M. and Jalili, M. (2022) Deep Federated Learning-Based Privacy-Preserving Wind Power Forecasting. IEEE Access, 11, 39521-39530. [Google Scholar] [CrossRef
[26] https://www.kaggle.com/datasets/fedesoriano/electric-power-consumption
[27] De Moraes Sarmento, E.M., Ribeiro, I.F., Marciano, P.R.N., et al. (2024) Forecasting Energy Power Consumption Using Federated Learning in Edge Computing Devices. Internet of Things, 25, Article 101050. [Google Scholar] [CrossRef
[28] Abdulla, N., Demirci, M. and Ozdemir, S. (2024) Smart Meter-Based Energy Consumption Forecasting for Smart Cities Using Adaptive Federated Learning. Sustainable Energy, Grids and Networks, 38, Article 101342. [Google Scholar] [CrossRef
[29] Wang, R., Bai, L., Rayhana, R. and Liu, Z. (2024) Personalized Federated Learning for Buildings Energy Consumption Forecasting. Energy and Buildings, 323, Article 114762. [Google Scholar] [CrossRef