Enterprise power load distributed federated prediction method based on homomorphic encryption
By introducing homomorphic encryption mechanism and CNN-BiLSTM-AE deep learning model in enterprise power load prediction, combined with Gaussian diffusion model and FedAvg algorithm, the problems of low accuracy and poor privacy in enterprise power load prediction are solved, and accurate prediction and Data privacy protection.
Patent Information
- Application Number
- CN202410978999.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The prior art has problems of low accuracy, long prediction time and poor privacy in enterprise power load prediction, especially when load changes rapidly, and the federated learning framework still faces privacy problems during model training.
The distributed federated prediction method of enterprise power load based on homomorphic encryption is adopted. The load prediction model is initialized through the federated learning server and locally trained by the client. The encrypted model weight parameters are generated and transmitted using the Paillier algorithm to ensure data privacy protection. This method combines the CNN-BiLSTM-AE deep learning model, uses the Gaussian diffusion model to process data, and aggregates the model weights through the FedAvg algorithm to achieve accurate prediction and privacy protection.
It realizes accurate prediction of enterprise power load and effective protection of data privacy, reduces data transmission security risks, and adapts to the needs of rapid changes in loads.
Smart Images

Figure CN118965384A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power load forecasting methods, and in particular to a distributed federated forecasting method for enterprise power load based on homomorphic encryption. Background Art
[0002] Electricity load forecasting is crucial for the operation and planning of high-energy-consuming enterprises. Accurate load forecasting can help enterprises formulate reasonable and efficient resource allocation strategies, optimize energy scheduling, reduce enterprise costs, and help achieve my country's dual carbon goals as soon as possible. Traditional load forecasting mainly includes random forests, gated recurrent units (GRU), extreme learning machines (ELM), and spatial load forecasting, but these methods rely on manual statistical data tables and drawing load curves, which are prone to errors and difficult to detect and correct. They have problems such as low accuracy, long prediction time, poor privacy, and difficulty in adapting to rapid load changes.
[0003] In order to solve the above problems, the literature [[Lu Jixiang, Zhang Qipei, Yang Zhihong, et al. Short-term load forecasting method based on CNN-LSTM hybrid neural network model [J]. Electric Power System Automation, 2019, 43(08): 131-137.] proposed a hybrid model short-term load forecasting method based on convolutional neural network (CNN) and LSTM network. The literature [Chen Zhuo, Sun Longxiang. Short-term power load forecasting method based on deep learning LSTM network [J]. Electronic Technology, 2018, 47(01): 39-41.] proposed a method for predicting power load using deep learning long short-term memory neural network model. The literature [Wang Zengping, Zhao Bing, Ji Weijia, et al. Short-term load forecasting method based on GRU-NN model [J]. Electric Power System Automation, 2019, 43(05): 53-58.] proposed a short-term load forecasting model based on GRU deep learning network to learn the potential features in the sequence data and use DNN to learn all the features to predict the load value. This method has outstanding advantages in prediction accuracy while taking into account timeliness. Reference [Kong Xiangyu, Zheng Feng, E Zhijun, et al. Short-term load forecasting method based on deep belief network [J]. Automation of Electric Power Systems, 2018, 42(05): 133-139.] proposed a short-term load forecasting method based on DBN for complex environments. This method adopts a hybrid training method that combines unsupervised training with supervised training. It has better prediction accuracy when the load type is complex and there are many influencing factors. Reference [Li Guoqing, Liu Zhao, Jin Guobin, et al. Ultra-short-term power load forecasting based on random distributed embedding framework and BP neural network [J]. Power System Technology, 2020, 44(02): 437-445.] proposed an ultra-short-term power load forecasting method based on RDE framework and BP neural network, combined it with real load data for prediction error analysis, and compared it with the prediction results of several conventional prediction algorithms to verify the effectiveness of the method.
[0004] Although the above studies have solved the problems of prediction accuracy and effectiveness, they are mainly aimed at improving the accuracy of load forecasting, but do not consider the privacy issues of user data.
[0005] The federated learning framework can guarantee the privacy protection requirements of users, and also has the basic technologies of artificial intelligence and machine learning. In the process of training the federated learning model, the management center of each building complex does not need to upload the original data, but only the model parameters, which reduces the security risks in the data transmission process. Each management center receives the current model locally to run the load forecasting algorithm, trains the model with its own data, and updates the model parameters to the central data management center. These parameters are aggregated and shared by the central data management center with the management centers of each building complex, so as to provide accurate power supply services for each building complex in advance, and can also warn the building complex of faults in real time in the case of sudden load changes. However, in the process of federated learning, although the original data is not released, the gradient can infer the data of the participants to a certain extent. Therefore, when the federated learning framework is applied to the training of the enterprise power load forecasting model, it still faces privacy issues. Summary of the invention
[0006] The present invention provides a distributed federated prediction method for enterprise power load based on homomorphic encryption to solve the privacy problem existing in the enterprise power load prediction method based on the federated learning framework in the prior art.
[0007] In order to achieve the above object, the technical solution adopted by the present invention is:
[0008] The distributed federated prediction method of enterprise power load based on homomorphic encryption includes the following steps:
[0009] Step 1: The federated learning server initializes the load forecasting model and sends it to each client;
[0010] Step 2: Each client obtains the enterprise's power history data and performs data diffusion processing as local data set data, and the client trains the load forecasting model locally through the data set to obtain the weight parameters of the load forecasting model; then the client uses the Paillier algorithm to generate a homomorphically encrypted public key and private key, and uses the public key to encrypt the weight parameters of the load forecasting model obtained locally into homomorphically encrypted data and sends it to the server;
[0011] Step 3: The server generates a homomorphically encrypted public key and private key based on the same Paillier algorithm, and uses the private key to decrypt the homomorphically encrypted data sent by each client to obtain the local weight parameters of each client; then the server uses the federated average algorithm to aggregate the weight parameters of each client to obtain the global model weight; finally, the server encrypts the global model weight into homomorphically encrypted data using the public key and sends it to each client;
[0012] Step 4. Each client uses a private key to decrypt the homomorphically encrypted data sent by the server, obtains the global model weight, and loads the global model weight into the local load forecasting model; then the client inputs the currently acquired enterprise power data into the local load forecasting model loaded with the global model weight, and obtains the load forecasting result from the local load forecasting model.
[0013] In the further step 1, the load forecasting model is a CNN-BiLSTM-AE deep learning model, which includes a convolutional neural network, a BiLSTM neural network, and an attention mechanism layer.
[0014] In a further step 2, each client uses a Gaussian diffusion model to process the enterprise's electricity historical data, thereby completing data diffusion to obtain local data set data.
[0015] In the further step 3, after obtaining the global model weight, the server loads the global model weight into the load prediction model in the server, and uses test data to evaluate whether the performance of the load prediction model loaded with the global model weight meets the requirements. If it meets the requirements, the server encrypts the global model weight into homomorphically encrypted data and sends it to each client.
[0016] The present invention proposes a distributed federated prediction method for enterprise power load based on homomorphic encryption. The homomorphic encryption mechanism is introduced into the federated learning framework for load prediction model training, and the model parameters shared in the federated learning framework are encrypted for transmission, so as to further improve the privacy protection of enterprise load data. The present invention can not only realize the accurate prediction of enterprise power load, but also take into account the privacy protection requirements through homomorphic encryption in the data interaction process. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is a diagram of the load forecasting model architecture in the first embodiment of the present invention.
[0018] Figure 2 This is a diagram of the CNN model architecture in the load prediction model of the first embodiment of the present invention.
[0019] Figure 3 This is a diagram of the BiLSTM neural network architecture in the load forecasting model of the first embodiment of the present invention.
[0020] Figure 4 This is an architecture diagram of the attention mechanism layer in the load forecasting model of Example 1 of the present invention.
[0021] Figure 5 This is a flow chart of the federated learning method based on FedAvg in Embodiment 1 of the present invention. DETAILED DESCRIPTION
[0022] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0023] Embodiment 1
[0024] like Figure 1 As shown, this embodiment discloses a method for distributed federated prediction of enterprise power load based on homomorphic encryption, which is characterized by comprising the following steps:
[0025] Step 1: The federated learning server initializes the load forecasting model and sends it to each client.
[0026] In this embodiment, the load forecasting model adopts the CNN-BiLSTM-AE deep learning model, and its architecture is as follows: Figure 1 As shown, it includes convolutional neural network, BiLSTM neural network and attention mechanism layer.
[0027] In the load forecasting model, the one-dimensional convolutional neural network CNN is first used to process the spatiotemporal features in the time series to provide higher quality input data for BiLSTM. The extracted features are passed to the Dropout layer to increase the robustness of the neural network by randomly discarding neurons. After the data passes through the BiLSTM neural network, it is again regularized by Dropout and then input into the attention mechanism module to assign weights to different input variables so that the model pays more attention to those variables that play a decisive role in the forecast results. Finally, the data is flattened and the forecast results are output through the fully connected layer. The specific description of each part of the load forecasting model is as follows:
[0028] (A) Convolutional neural network (CNN) is a feedforward neural network structure. The convolution layer can effectively extract local features of images, speech data, and sequence data. Through convolution operations, CNN can automatically learn the features of image or speech data. The CNN model structure is as follows: Figure 2 As shown in the figure, through repeated feature extraction, the final features are output through the fully connected output layer. In practical applications, the number of neurons in the fully connected layer is usually gradually reduced to avoid the risk of overfitting. At the same time, the risk of overfitting can be further reduced by adding regularization terms or using techniques such as Dropout.
[0029] This embodiment uses a one-dimensional convolutional neural network to process the spatiotemporal features in the time series, providing higher quality input data for the BiLSTM neural network. The receptive field size of each layer of convolution in the convolutional neural network directly affects the model's ability to understand the data, and the convolution operation will lose some information about the previous and next moments. Therefore, in order to expand the receptive field, this embodiment uses a dilated convolution to increase the dilation rate, without increasing the size and number of convolution kernels, thereby reducing the number of parameters and computational complexity, and better capturing feature information. The use of pooling operations in the CNN structure greatly reduces the number of neurons in the model, and is also more robust to the translation invariance of the input space.
[0030] (B) Since the general unidirectional LSTM only retains past information, its only input comes from past information, which can easily lead to information loss in the learning process. Therefore, this embodiment uses the BiLSTM neural network, which is an extended version of LSTM. The characteristic of the BiLSTM neural network is that it can transmit and process information from both forward and backward directions at the same time, so as to better capture the contextual information in the sequence data. The basic structure of the BiLSTM neural network is similar to that of the LSTM, and is also composed of an input gate, a forget gate, and an output gate, which are used to control the input, output, and retention of information. The difference is that the BiLSTM neural network adds a reverse layer between the input layer and the LSTM to process the reverse input sequence. The BiLSTM neural network retains both past information and future information, and combines the two hidden information states together. Compared with LSTM, it has better prediction effects in time series prediction. The structure of the BiLSTM neural network is as follows Figure 3 shown.
[0031] The function of the BiLSTM neural network is to extract the bidirectional historical data of the input data and generate a hidden state matrix. The calculation formula is as follows:
[0032] h t =LSTM(x t ,h t-1 ) (1)
[0033] h′ t =LSTM(x t , h′ t+1 ) (2)
[0034] o t =W 1 h t +W 2 h′ t +c t (3)
[0035] In the above formulas (1), (2), and (3), LSTM is the operation process of the traditional long-term and short-term neural network; xt is the load feature information extracted by the convolutional neural network CNN; W 1 , W 2 are the forward and reverse output weights respectively; h t , h′ t are the hidden state vectors of the forward and reverse LSTM at time t, and the two constitute the hidden state vector o of BiLSTM t ;c t is the bias optimization parameter; h t-1 represents the hidden state vector of the forward LSTM at the moment before time t; h′ t+1 Represents the hidden state vector of the reverse LSTM at the moment after time t.
[0036] BiLSTM is used to control the input, output and retention of information. A reverse layer is added between the input layer and LSTM to process the reverse input sequence. It retains both past information and future information, and has better prediction results than LSTM.
[0037] (C) The attention mechanism layer of this embodiment adopts Concat Attention, which is a variant of the attention mechanism. It is often used in natural language processing to perform weighted summation of inputs in the encoder-decoder model to generate the corresponding output. Unlike the standard attention mechanism, Concat Attention concatenates the query vector and all key vectors to form a new vector, which is then converted into an attention distribution through a linear transformation, and finally the output is obtained through weighted summation. Specifically, Concat Attention includes the following steps:
[0038] Step 1: For a given query vector, calculate its dot product with all key vectors and concatenate the results into a new vector.
[0039] Step 2 performs a linear transformation on the concatenated vector to convert it into an attention distribution, usually normalized using a softmax function.
[0040] Step 3 performs weighted summation of the attention distribution and all value vectors to obtain the final output.
[0041] Concat Attention has been widely used in natural language processing, such as in machine translation, text summarization, question answering systems, and other tasks. By performing weighted summation on the input, the model can better utilize the information in the input sequence, thereby improving the performance and accuracy of the model. Figure 4 shown.
[0042] The mathematical expression of the attention mechanism in this embodiment is as follows:
[0043]
[0044] S ki =vtanh(wh k +Uh i +b) (5)
[0045]
[0046] h k0 =H(C,h k ,x k ) (7)
[0047] In the above formulas (4), (5), (6), and (7): x k is the kth input value, h k is the hidden layer state corresponding to the kth input, a ki is the attention weight, h k0 is the state of the hidden layer output; L x is the length of the input, s ki represents an alignment model and concat mapping is used here; U, v, w are learnable parameters; C is the background vector, b is the bias; h i is the hidden layer state corresponding to the i-th input value; H(·) represents the input mapping function.
[0048] Step 2: Each client obtains the enterprise's historical power data, and performs data diffusion processing on the enterprise's historical power data as local data set data; then the client trains the load forecasting model locally through the data set to obtain the weight parameters of the load forecasting model; then the client uses the Paillier algorithm to generate a homomorphic encryption public key and private key, and uses the public key to encrypt the weight parameters of the load forecasting model obtained locally into homomorphic encrypted data and sends it to the server. The specific process is as follows:
[0049] (2.1) Obtain the historical electricity data of the enterprise and perform diffusion processing to obtain a data set.
[0050] This embodiment performs diffusion processing on the enterprise power historical data through a diffusion probability model, and specifically adopts a Gaussian diffusion model.
[0051] The diffusion probabilistic model (DPM) is a pioneering work by Sohl-Dickstein et al. It is a process of gradually diffusing Gaussian noise into a training sample and training a neural network to reversely diffuse the noise. It has shown great promise in time series prediction, medical field, remote sensing field, image processing, etc.
[0052] The diffusion probability model consists of two stages: forward and reverse. It is usually assumed that both the forward and reverse stages are Markov processes. The forward process is also called forward diffusion process, forward noise addition process, etc.; the reverse process is also called reverse generation process, reverse denoising process, etc.
[0053] The forward diffusion process is a gradual noise addition process. 0 Gradually add noise to obtain the state of the original data after each diffusion. When the final number of noise addition steps T is large enough, the original sample data distribution x T Finally, it is converted into a predefined noise distribution, usually an isotropic Gaussian distribution, that is, q(x T |x 0 )~N(0,I).
[0054] The reverse generation process is a step-by-step denoising process. In the whole process, if each step t in the reverse process can accurately obtain the conditional probability distribution p(x t-1 |x t ), the data before noise addition can be restored by continuous sampling through reverse iteration. 0 ), complete the generation task. However, due to the distribution p(x t-1 |x t ) is usually unknown, so it is impossible to directly calculate p(x 0 ), neural networks are usually used to approximate its distribution.
[0055] The Gaussian diffusion model is a mathematical model used to describe the propagation of matter. It assumes that the propagation of matter is Gaussian distributed in all directions. In power forecasting, this embodiment applies this Gaussian diffusion model to describe the change of power demand, that is, it assumes that the change of power demand in space and time is Gaussian distributed. It is divided into two stages: forward and reverse. In the forward process, the power data sample x t (i.e., the enterprise power history data obtained in this embodiment) is continuously noised according to formula (8) until it satisfies the Gaussian distribution as shown in formula (9).
[0056]
[0057] q(x T ):=N(x T; 0,I)(9)
[0058] In the above equations (8) and (9), q(·) represents the forward diffusion process, x t is the sample data generated at the tth moment, x t-1 represents the sample data generated at the moment before time t, β t is the diffusion rate, which represents the weight of data and noise. N(·) represents Gaussian distribution, I is the variance of standard normal distribution, x T Indicates the sample after Gaussian noise is finally added, that is, complete Gaussian noise.
[0059] By collecting enterprise power data, including power demand values at different time points. These data can be at different time granularities such as hourly, daily or monthly. Using the collected historical data, calculate the mean and standard deviation of power demand. The mean represents the central position of power demand, and the standard deviation represents the magnitude of power demand change. Use the calculated mean and standard deviation to generate a random number sequence that conforms to the Gaussian distribution. In the inverse process p(·), a neural network parameterized by θ is usually constructed to approximate its distribution. In the inverse change process, the mean μ of the sample 0 and variance∑ θ can be regarded as x t and t. To facilitate subsequent calculations, the variance ∑ θ It is set as a time-dependent constant that does not need to participate in neural network training, so only the neural network training mean μ is used during training. θ The specific process is shown in equations (10) and (11).
[0060] p θ (x t-1 |x t ):=N(x t-1 ;μ θ (x t ,t),∑ θ (x t ,t)) (10)
[0061]
[0062] In the above formulas (10) and (11): μ θ (x t ,t) can be regarded as x t and ∈ θ (x t ,t),∈ θ (x t ,t) is x t The estimated noise, x t is the sample data generated at the tth moment, x t-1represents the sample data generated at the moment before time t, β t is the diffusion rate, which represents the weight of data and noise, α t =1-β t , Both are known.
[0063] The characteristics of power load are affected by many factors. When the data set is small, the load characteristics show greater randomness and uncertainty. However, through the Gaussian diffusion model, additional data can be generated to form a larger load forecast sample together with the existing data, thereby improving the accuracy of load forecasting.
[0064] (2.2) Train the load forecasting model locally using the data set to obtain the weight parameters of the load forecasting model.
[0065] In this embodiment, the federated learning of the server and the client adopts the FedAvg algorithm, which is a large-scale machine learning algorithm for online learning. Its main idea is to aggregate multiple individual models to form an overall model for training. This algorithm is suitable for distributed computing environments and can handle large-scale data sets and multiple models for parallel training.
[0066] When the client trains the load forecasting model, i.e., the CNN-BiLSTM-AE deep learning model, locally, in each round of training, each client uses its own training set data and current model parameters for local training. Local training includes reshaping the data, compiling the load forecasting model using the Adam optimizer and mean absolute error (MAE) loss, and fitting the prediction model for a specified number of rounds. The training is completed after multiple trainings until the local load forecasting model converges. After the training is completed, each client obtains its own updated model weight parameter w k,t , as shown in formula (12).
[0067]
[0068] In the above formula (12): w k,t is the weight parameter of the entire model completed by the k-th client in the t-th round of training, that is, the weight parameter of the load neural network model; η is the learning rate; represents gradient descent.
[0069] (2.3) The client uses the Paillier algorithm to generate a homomorphic encrypted public key and private key, and uses the public key to encrypt the weight parameters of the load forecasting model obtained locally into homomorphic encrypted data and then sends it to the server.
[0070] In this embodiment, both the server and the client use the Paillier algorithm to generate homomorphic encryption public keys and private keys to complete homomorphic encryption and decryption. Taking the client as an example, the key processing process is as follows:
[0071] The first step is to randomly select two maximum prime numbers p and q of equal length. The two prime numbers p and q satisfy formula (13):
[0072] gcd(pq,(p-1)(q-1))=1 (13)
[0073] In formula (13), gcd(·) means finding the greatest common divisor.
[0074] The second step is to calculate the keys n and λ according to equations (14) and (15):
[0075] n=p·q (14)
[0076] λ=lcm(p-1,q-1) (15)
[0077] In formulas (14) and (15), lcm() means finding the least common multiple.
[0078] Step 3: Select a random integer The client's μ is designed according to formula (16), where L(x) is calculated according to formula (17). Formulas (16) and (17) are as follows:
[0079] μ=(L(g λ mod n 2 )) -1 (16)
[0080]
[0081] In formulas (16) and (17), μ represents the modular inverse element; mod n 2 Indicates n 2 Modulo; x refers to a variable and has no specific meaning; L(x) is a specific function.
[0082] After completing the above steps, the client obtains the public key (n, g) and private key (λ, μ).
[0083] After obtaining the public key and private key, the encryption process and decryption process of the client based on the Paillier algorithm are shown in formulas (18) and (19) respectively:
[0084] c=g m ·r n mod n 2 (18)
[0085] m=L(cλ modn 2 )·μmod n (19)
[0086] In formulas (18) and (19), the plaintext is m, the ciphertext is c, and r is any selected random number.
[0087] Therefore, each client encrypts the weight parameters of its trained model into homomorphic encrypted data using a public key and sends it to the server.
[0088] Step 3: The server generates homomorphically encrypted public and private keys based on the same Paillier algorithm, and uses the private key to decrypt the homomorphically encrypted data sent by each client to obtain the local weight parameters of each client.
[0089] Then, the server uses the federated averaging algorithm (i.e., FedAvg algorithm) to aggregate the weight parameters of each client to obtain the global model weight, as shown in formula (20):
[0090]
[0091] In formula (20): w t is the average value of the weights of all clients, which is the global model weight; n k is the number of samples of the kth client; n is the total number of samples of all clients; K is the total number of clients.
[0092] The server gets the global model weight w t After that, the global model weights are loaded into the load forecasting model in the server, and the test data is used to evaluate whether the performance of the load forecasting model loaded with the global model weights meets the requirements, and to determine whether the federated learning has reached the specified number of global cycles. If the performance of the load forecasting model meets the requirements and the number of global cycles of federated learning has reached the specified number, the server uses its own public key to load the global model weights w t After being encrypted into homomorphic encrypted data, it is sent to each client. The entire FedAvg-based federated learning method is as follows: Figure 5 shown.
[0093] Step 4. Each client uses a private key to decrypt the homomorphically encrypted data sent by the server, obtains the global model weight, and loads the global model weight into the local load forecasting model; then the client inputs the currently acquired enterprise power data into the local load forecasting model loaded with the global model weight, and obtains the load forecasting result from the local load forecasting model.
[0094] The preferred embodiments of the present invention are described in detail above in conjunction with the accompanying drawings. The embodiments described in the present invention are merely descriptions of the preferred embodiments of the present invention, and do not limit the concept and scope of the present invention. The various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction, and such combinations should also be regarded as the contents disclosed in the present disclosure as long as they do not violate the concept of the present invention. In order to avoid unnecessary repetition, the present invention will not further describe various possible combinations.
[0095] The present invention is not limited to the specific details of the above-mentioned embodiments. Within the technical concept of the present invention and without departing from the design concept of the present invention, various modifications and improvements made to the technical solution of the present invention by technical personnel in this field should fall within the protection scope of the present invention. The technical contents for which protection is sought in the present invention have been fully recorded in the claims.
Claims
1. A distributed federated forecasting method for enterprise power load based on homomorphic encryption, characterized in that: The following steps are involved: Step 1: The federated learning server initializes the load forecasting model and sends it to each client; Step 2: Each client obtains the enterprise's power history data and performs data diffusion processing as local data set data, and the client trains the load forecasting model locally through the data set to obtain the weight parameters of the load forecasting model; then the client uses the Paillier algorithm to generate a homomorphically encrypted public key and private key, and uses the public key to encrypt the weight parameters of the load forecasting model obtained locally into homomorphically encrypted data and sends it to the server; Step 3: The server generates a homomorphically encrypted public key and private key based on the same Paillier algorithm, and uses the private key to decrypt the homomorphically encrypted data sent by each client to obtain the local weight parameters of each client; then the server uses the federated average algorithm to aggregate the weight parameters of each client to obtain the global model weight; finally, the server encrypts the global model weight into homomorphically encrypted data using the public key and sends it to each client; Step 4. Each client uses a private key to decrypt the homomorphically encrypted data sent by the server, obtains the global model weight, and loads the global model weight into the local load forecasting model; then the client inputs the currently acquired enterprise power data into the local load forecasting model loaded with the global model weight, and obtains the load forecasting result from the local load forecasting model.
2. The enterprise power load distributed federated prediction method based on homomorphic encryption according to claim 1 is characterized in that: In step 1, the load forecasting model is a CNN-BiLSTM-AE deep learning model, which includes a convolutional neural network, a BiLSTM neural network, and an attention mechanism layer.
3. The enterprise power load distributed federated prediction method based on homomorphic encryption according to claim 1 is characterized in that: In step 2, each client uses the Gaussian diffusion model to process the enterprise's electricity historical data, thereby completing data diffusion to obtain local data set data.
4. The enterprise power load distributed federated prediction method based on homomorphic encryption according to claim 1 is characterized in that: In step 3, after obtaining the global model weight, the server loads the global model weight into the load prediction model in the server, and uses test data to evaluate whether the performance of the load prediction model loaded with the global model weight meets the requirements. If it meets the requirements, the server encrypts the global model weight into homomorphically encrypted data and sends it to each client.
Citation Information
Cited By
Short-term power load prediction method based on KNN federated distillation learning and Seq2Seq
CN120709957A
A short-term power load prediction method based on KNN federated distillation learning and Seq2Seq
CN120709957B
