A privacy protection multi-energy load decoupling prediction method in an energy internet
By constructing the PPenergyNET model in the energy internet and using local models and cloud aggregation, the privacy protection and prediction accuracy issues caused by the heterogeneity of cold, heat, and electricity load data are solved, achieving high-resolution and high-precision multi-energy load prediction.
Patent Information
- Application Number
- CN202311456923.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-03
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-11-03
AI Technical Summary
In the energy internet, existing technologies struggle to accurately predict multi-energy loads while protecting the local data privacy of each energy company, especially given the heterogeneous data among cooling, heating, and electrical loads, posing challenges to both data privacy protection and prediction accuracy.
The multi-energy load decoupling prediction method PPenergyNET is adopted. It builds local models at cold, heat and electricity energy companies, extracts load features independently, and aggregates them on a cloud server. It uses vertical federated learning with a ring structure and separate multi-task learning to achieve multi-energy load prediction while protecting data privacy.
It enables accurate multi-energy load forecasting while protecting data privacy, improving forecast resolution and accuracy, and ensuring model convergence and privacy protection.
Smart Images

Figure CN117407717B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of energy internet technology, and in particular relates to a privacy-preserving multi-energy load decoupling prediction method in the energy internet. Background Technology
[0002] In recent years, the consumption of fossil fuels and the related environmental crisis have raised concerns about energy issues. This has spurred research into the energy internet (EI). A key objective of the EI is to flexibly allocate energy flows from multiple energy systems (such as cooling, heating, and electricity) based on information flow, in order to accurately, efficiently, and economically meet users' energy consumption needs. This requires accurate forecasting of various energy loads within the EI. However, due to the presence of energy conversion equipment such as electric heat pumps and combined heat and power units on the demand side of the EI, there is strong coupling between cooling, heating, and electrical loads. Therefore, accurate multi-energy load forecasting (MELF), as the cornerstone of reliable and economical EI operation, has significant value and importance.
[0003] For MELF (Multi-Energy Load Factor) systems, the existence of inter-energy coupling factors makes it difficult to predict cooling, heating, and electrical loads independently. Currently, there are two coupling analysis methods for MELF: load data-oriented and forecasting task-oriented. Load data-oriented methods quantify coupling by calculating the correlation between data of multi-energy loads. For example, the correlation coefficient between multi-energy loads and meteorology can be used to describe coupling factors in the MELF model; some works describe seasonal nonlinear coupling by the consistency of the changing trends between test variables and forecast variables; in addition, inter-regional coupling relationships have also been discussed. In these methods, coupling factors are used as one of the inputs to the MELF model to consider the coupling relationships between multi-energy loads. However, the above coupling analysis is static. In contrast, forecasting task-oriented methods treat the forecasting of cooling, heating, and electrical loads as different and interrelated tasks in MELF, dynamically analyzing the coupling relationships between them. For example, a weight-sharing mechanism can be used to map cold, heat, and electricity loads into the MELF model; or a parameter-sharing layer can be designed for coupling analysis to characterize the information interaction in multi-energy conversion; some studies have also introduced multi-task learning (MTL) methods, so that the learning of each load forecasting task can influence and improve the learning of other tasks, resulting in more accurate MELF results. However, the above methods are highly dependent on the design of the weights for each task.
[0004] Further investigation reveals the practical challenges of deploying MELF methods. Both statistical analysis and deep learning approaches employ a centralized deployment paradigm. For example, MELF models deployed on a campus or in a building centrally collect and predict cooling, heating, and electricity load data. However, in broader application scenarios such as residential areas and commercial parks, centralized load data collection may raise concerns about data privacy among cooling, heating, and electricity companies. This is because some studies use load data to infer energy consumers' economic income levels or hourly household habits. Furthermore, centralized collection of raw data does not comply with existing data use regulations or laws, such as the EU's General Data Protection Regulation (GDPR).
[0005] To address the need for data privacy protection, two main approaches have been proposed: encrypted computation and privacy-preserving modeling. Encrypted computation methods use cryptography to encrypt the original data, thereby protecting data privacy. For example, homomorphic encryption algorithms are used to protect data privacy in the calculation of optimal AC power flow in power systems; consensus algorithms based on homomorphic encryption are introduced to protect user electricity consumption data privacy in microgrid scheduling problems; and obfuscation circuit algorithms are used in P2P energy trading to protect bidding information. Encrypted computation methods effectively protect data privacy, but this comes at the cost of significant additional computational overhead. In contrast, privacy-preserving modeling methods, represented by federated learning (FL), achieve a new privacy paradigm through distributed model training and aggregation, realizing "data usable but not visible," thus protecting the privacy of local data. Studies have used federated learning to protect the privacy of load data from 100 users in the problem of electricity load forecasting; Lin et al. constructed a federated learning algorithm with deep and shallow neural networks across multiple residential areas for privacy-preserving solar power generation separation; considering the special case of imbalanced samples, a weighted federated learning algorithm with an attention mechanism was designed to identify power system faults; considering the spatial correlation between multiple power plants, a novel two-party data-driven modeling framework based on federated learning was proposed to achieve privacy-preserving collaborative renewable energy forecasting. However, the limitations of the above works are that they can only protect the privacy of single-type energy load data with the same feature space, such as smart meter data from different power companies. The privacy problem of heterogeneous data between cold, hot, and electrical loads with different feature spaces remains a challenge.
[0006] Therefore, how to accurately predict multi-energy loads while protecting the local data privacy of various energy companies has become an urgent problem to be solved. Summary of the Invention
[0007] To address the shortcomings of the existing technologies, this invention provides a privacy-preserving multi-energy load decoupling prediction method for the energy internet, which can accurately predict multi-energy loads while protecting the local data privacy of each energy company.
[0008] To solve the above-mentioned technical problems, the present invention adopts the following technical solution:
[0009] A privacy-preserving multi-energy load decoupling prediction method in the energy internet includes the following steps:
[0010] S1. Construct a multi-energy load forecasting model PPenergyNET; PPenergyNET includes local models set up at the cooling, heating and electricity energy companies respectively, used to independently extract the load characteristics of the local load data of the corresponding energy companies; PPenergyNET also includes a global model set up on the cloud server, used to aggregate the load characteristics of the three local models for multi-energy load forecasting;
[0011] S2. Learn and optimize the PPenergyNET constructed in S1;
[0012] S3. Use the optimized PPenergyNET for multi-energy load forecasting;
[0013] In S2, the learning optimization process includes:
[0014] Step 1: The cold, heat, and electricity energy companies independently extract the spatial characteristics of their local load data based on their respective local models and send them to the cloud server;
[0015] Step 2: The cloud server aggregates the spatial features of the three companies (cold, hot, and electric) as input to the global model for learning spatiotemporal features and coupling relationships.
[0016] Step 3: After obtaining the prediction results output by the global model, send the predictions for cooling, heating, and electricity to the corresponding energy companies respectively.
[0017] Step 4: The three energy companies calculate the weighted loss of their local models locally and send it to the cloud server.
[0018] Step 5: The cloud server summarizes the weighted losses of the three local models to obtain the global loss;
[0019] Step 6: The cloud server performs backpropagation of the loss to update the parameters of the global model;
[0020] Step 7: The cold, heat, and electricity energy companies receive and reconstruct gradients from the cloud server to continue backpropagation and update the parameters of each local model.
[0021] Basic scheme principles and beneficial effects:
[0022] In this method, cooling, heating, and electricity companies can each privately store their load data locally; that is, the MELF input and labels are located at three different energy companies. Simultaneously, multi-energy load forecasting is performed in a global model in the cloud. Using the proposed multi-energy load forecasting model PPenergyNET, training and prediction can be completed by exchanging only local features, prediction results, loss, and gradient information, thus achieving "data usable but not visible" and protecting the privacy of the original data.
[0023] In summary, this method can accurately predict multi-energy loads while protecting the local data privacy of each energy company.
[0024] Preferably, in S1, the mathematical expression for the execution process of the constructed PPenergyNET is:
[0025] ;
[0026] in, These represent the forecast results for heat, electricity, and cooling energy loads, respectively. Indicates having parameters The output of the cloud model; This indicates that the cold energy company has parameters. The output of the local model; This indicates that the thermal energy company has parameters. The output of the local model; This indicates that the electric energy company has parameters The output of the local model.
[0027] This execution process representation makes it easier for technical personnel to understand and build the various model frameworks of PPenergyNET and the relationships between the models.
[0028] Preferably, in step 1, when each energy company independently extracts the spatial characteristics of its local load data based on its local model, it inputs the corresponding load data. and meteorological factors Transformed into local features using a pre-defined deep learning algorithm:
[0029] ;
[0030] In the formula, Indicates the local model, These represent cold, heat, and electricity energy companies, respectively. Indicates the first One training cycle; Indicates local characteristics, ,in, Energy companies The output feature dimension;
[0031] Then The spatial characteristics of the local load data are sent to the cloud server.
[0032] This setup fully considers local data and related meteorological factors, ensuring the validity of the spatial characteristics of the extracted local load data, thereby guaranteeing the effectiveness of subsequent training.
[0033] Preferably, in step 2, the output from the cold, heat, and electricity energy company is... Connect them into a tensor ;
[0034] In step 3, based on the global model Calculate the predicted value using the following formula. ,in It represents a company providing cold, heat, and electricity energy. Indicates the first One training cycle;
[0035] ;
[0036] In the formula, This represents the feature space aggregation operation;
[0037] Then, the predicted values Send to the relevant energy companies.
[0038] This setup allows full utilization of the spatial characteristics output by each local model to obtain predicted values for each energy load on the global model in the cloud.
[0039] Preferably, in step 4, each energy company calculates and weights its local losses based on the MSE loss function using the following formula:
[0040] ; These represent companies specializing in cold, heat, and electricity energy, respectively. Indicates the first One training cycle;
[0041] In the formula, This represents the tag values distributed across various energy companies;
[0042] Next, the cooling, heating, and electricity companies will each report the local loss values. , , Uploaded to the cloud server.
[0043] This setup ensures effective learning and optimization of the model while allowing energy companies to retain their original load data, thus protecting their data privacy.
[0044] Preferably, in step 6, the parameters of the global model of the cloud server are updated based on the following formula:
[0045] ; ;
[0046] In the formula, For the first The global loss during the training process. For the first An energy company, The total number of energy companies, For the first The weight of each energy company For the first The first energy company Losses during the training process For learning rate, These are the parameters for the neural network model.
[0047] This setup allows for full utilization of feedback from the local model to learn and optimize the global model in the cloud.
[0048] Preferably, in step 7, the gradient during the global model update process is calculated according to the chain rule, and the partial derivatives of each layer from the output layer to the input layer are calculated layer by layer:
[0049] ;
[0050] in, This represents the reconstructed gradient used for local model updates for each energy company;
[0051] Expressing the request right The partial derivatives, Expressing the request right The partial derivatives, Expressing the request right The partial derivatives of .
[0052] This setup allows for targeted learning and optimization of each local model, thereby ensuring the effectiveness of the optimized PPenergyNET.
[0053] Preferably, in S1, when constructing the multi-energy load prediction model PPenergyNET, the local models of the cooling, heating, and electricity energy companies are all the same convolutional neural network; the global model of the cloud server includes a shared layer and three fully connected layers connected to the shared layer; the shared layer is used to capture the time dependence of multi-energy load, and the three fully connected layers are used to output the prediction results related to the three prediction tasks of cooling, heating, and electricity, respectively.
[0054] The mathematical formula for PPenergyNET's prediction process is defined as follows:
[0055] ;
[0056] in, (·) represents a mapping function that implements MELF; This indicates that each local model extracts features from the input data in a distributed manner; Parameters representing the local models of each energy company; These represent the parameters of the shared layer in the global model. These represent the parameters of the three fully connected layers in the global model that are connected to the shared layer; This represents local input data; This indicates the outcome of the prediction task.
[0057] Due to the presence of energy conversion devices (combined heat and power, electric heat pumps, air conditioners, etc.), there is a significant coupling effect between cold, heat, and electrical energy flows. Therefore, to achieve decoupled prediction, MELF is constructed as a multi-task learning problem. In existing technologies, setting a parameter-sharing layer in the neural network for energy quality decoupling can lead to some load information being overwhelmed by other information, making the decoupling process inaccurate and thus reducing prediction resolution. Therefore, this invention designs a separate multi-task learning method for high-resolution prediction and coupling analysis. This ensures the accuracy of the decoupling process, thereby guaranteeing prediction resolution. Furthermore, the hard parameter sharing mechanism can utilize useful information contained in multiple related tasks, improving the generalization performance of all tasks.
[0058] Preferably, in S2, when performing learning optimization on PPenergyNET, the optimization objectives include:
[0059] ;
[0060] Where K is the task set The number of tasks in the middle, For task set Medium task The weight of the loss, The loss function for each task.
[0061] This ensures the accuracy of multi-energy load forecasting after learning and optimization.
[0062] Preferably, in step 4, when each energy company calculates the weighted loss of its local model, it calculates the weighted loss locally based on the improved homoscedasticity uncertainty method; the mathematical expression of the improved homoscedasticity uncertainty method is:
[0063] ;
[0064] ;
[0065] ;
[0066] ;
[0067] in, Indicates weighted loss; This represents the heat load loss value. Indicates the value of electrical load loss. This represents the value of cooling load loss. This represents the network parameters of PPenergyNET;
[0068] Indicates input The above has parameters and observation noise The output of the model; This represents the actual value of the heat load; This represents the actual electrical load value. This represents the actual value of the cooling load; Indicates the weight of the heat load forecasting task; Indicates the weight of the electricity load forecasting task; This indicates the weight of the cooling load forecasting task.
[0069] This setup fully considers the coupling relationship between cooling, heating, and electrical loads, and adaptively adjusts the losses in the cooling, heating, and electrical load forecasting tasks during multi-energy load forecasting, thereby improving forecast accuracy and ensuring model convergence. Attached Figure Description
[0070] To make the objectives, technical solutions, and advantages of the invention clearer, the invention will now be described in further detail with reference to the accompanying drawings, wherein:
[0071] Figure 1 This is a flowchart of the method;
[0072] Figure 2 This is a schematic diagram of the PPenergyNET framework in the embodiment;
[0073] Figure 3This is a flowchart of the learning optimization process of PPenergyNET in the embodiment;
[0074] Figure 4 This is a schematic diagram of data partitioning in the embodiment;
[0075] Figure 5 This is a schematic diagram of the ring-structured vertical federated learning (VFL) in the embodiment;
[0076] Figure 6 This is a schematic diagram of the Split Multi-Task Learning (SpMTL) framework in the embodiment;
[0077] Figure 7 This is a schematic diagram illustrating the configuration of the local and global models of PPenergyNET in this embodiment;
[0078] Figure 8 This is a schematic diagram illustrating the comparative experiment on the performance of PPenergyNET in an example study of the implementation embodiment, showing the impact of learning rate, number of convolutional neural network layers, and number of long short-term memory neural network layers.
[0079] Figure 9 This is a schematic diagram comparing the heat load prediction curves of different methods in an example study of the embodiment;
[0080] Figure 10 This is a comparative schematic diagram of the electrical load prediction curves of different methods in an example study of the embodiments;
[0081] Figure 11 This is a schematic diagram comparing the cooling load prediction curves of different methods in an example study of the embodiment;
[0082] Figure 12 This is a schematic diagram illustrating the convergence of the improved homoscedasticity uncertainty guarantee model in PPenergyNET, as shown in the example study of the embodiment.
[0083] Figure 13 The MAPE and RMSE indices of different methods are compared in the example study of the embodiment;
[0084] Figure 14 This is a schematic diagram illustrating the impact of different numbers of participants on the prediction performance of PPenergyNET in a case study. Detailed Implementation
[0085] The following detailed explanation illustrates the specific implementation methods:
[0086] Example:
[0087] Cooling, heating, and electricity load data used for multi-energy load forecasting can be collected through measurement devices distributed across the Energy Internet (EI). Assume three energy companies (cooling, heating, and electricity) are connected to the EI, and they all provide energy services to the same customers in the same region. Each energy company only holds load data for its own operating energy system. For data privacy reasons, different energy companies do not intend to share their raw load data with other companies, thus creating data silos. Therefore, MELF requires distributed model collaborative training to protect data privacy.
[0088] To address the aforementioned needs, this invention proposes a privacy-preserving multi-energy load decoupling prediction method in the energy internet, which can accurately predict multi-energy loads while protecting the local data privacy of each energy company.
[0089] like Figure 1 As shown in the figure, this embodiment discloses a privacy-preserving multi-energy load decoupling prediction method in the energy internet, including the following steps:
[0090] S1. Construct a multi-energy load forecasting model PPenergyNET; PPenergyNET includes local models set up at the cooling, heating and electricity energy companies respectively, used to independently extract the load characteristics of the local load data of the corresponding energy companies; PPenergyNET also includes a global model set up on the cloud server, used to aggregate the load characteristics of the three local models for multi-energy load forecasting.
[0091] like Figure 2 As shown, in practice, PPenergyNET deploys a global model in the cloud. Local models for aggregating different energy companies at the EI edge For each energy company, the heating company uses its own heat load data. Training a local model To perform separate heat load feature extraction; data from cooling companies and power companies. , and model , Following the same processing procedure, the execution process of PPenergyNET is as follows:
[0092]
[0093] in, These represent the forecast results for heat, electricity, and cooling energy loads, respectively. Indicates having parameters The output of the cloud model; This indicates that the cold energy company has parameters. The output of the local model; This indicates that the thermal energy company has parameters. The output of the local model; This indicates that the electric energy company has parameters The output of the local model.
[0094] S2. Learn and optimize the PPenergyNET constructed in S1.
[0095] Before learning optimization, each part of PPenergyNET, i.e., the cloud model, needs to be initialized. Local models for cold, heat, and electricity energy companies In practice, a random initialization method based on uniform distribution is used to initialize the edge and cloud models.
[0096] like Figure 3 As shown, the learning optimization process includes:
[0097] Step 1: The cold, heat, and electricity energy companies independently extract the spatial characteristics of their local load data based on their respective local models and send them to the cloud server.
[0098] Step 2: The cloud server aggregates the spatial features of the three companies (cold, hot, and electric) as input to the global model for learning spatiotemporal features and coupling relationships.
[0099] Step 3: After obtaining the prediction results output by the global model, send the predictions for cooling, heating, and electricity to the corresponding energy companies respectively.
[0100] Step 4: The three energy companies calculate the weighted loss of their local models locally and send it to the cloud server.
[0101] Step 5: The cloud server summarizes the weighted losses of the three local models to obtain the global loss.
[0102] Step 6: The cloud server performs backpropagation of the loss to update the parameters of the global model.
[0103] Step 7: The cold, heat, and electricity energy companies receive and reconstruct gradients from the cloud server to continue backpropagation and update the parameters of each local model.
[0104] In Multi-Energy Load Forecasting (MELF), the challenge in protecting the data privacy of cooling, heating, and electricity companies lies in the differences in the characteristic space of cooling, heating, and electricity loads; that is, they are vertically partitioned, such as... Figure 4 As shown on the right. In contrast, previous privacy protection solutions for single workloads involved horizontal partitioning of data, such as... Figure 4As shown on the left, power companies A and B train federated learning models based on electricity load data with the same feature space. Therefore, for the special vertical partitioning scenario in MELF, the MELF model needs to be redesigned to consider the vertical partitioning characteristics of the data.
[0105] Secondly, as a typical time series forecasting task, the load data for future time periods happens to be the label for the current time period forecasting task. It's important to note that cooling, heating, and electricity companies each privately store their load data locally; that is, the input and labels for MELF reside at three different energy companies, while the predicted values are output from cloud servers. This creates a location mismatch between the predicted values and the labels, preventing the training loss of PPenergyNET from being directly calculated in the cloud, thus hindering loss backpropagation for updating model parameters. Therefore, a method needs to be designed to distribute the loss function across companies and leverage cloud server aggregation to initiate loss backpropagation for model updates. Thus, this method designs a ring-structured Vertical Federated Learning (VFL) for privacy-preserving MELF. The ring-shaped data flow in the process is as follows... Figure 5 As shown, the backpropagation of the loss begins at the cold, heat, and electricity energy company, first being passed to the cloud server model via an external arrow labeled with the explanation content, and then updating the local model via an internal arrow.
[0106] In practice, in step 1, when each energy company independently extracts the spatial characteristics of its local load data based on its local model, it inputs the corresponding load data. and meteorological factors Transformed into local features using a pre-defined deep learning algorithm:
[0107] ;
[0108] In the formula, Indicates the local model, These represent cold, heat, and electricity energy companies, respectively. Indicates the first One training cycle; Indicates local characteristics, ,in, Energy companies The output feature dimension;
[0109] Then The spatial characteristics of the local load data are sent to the cloud server.
[0110] In step 2, the output from the cold, heat, and electricity energy companies will be... Connect them into a tensor ;
[0111] In step 3, based on the global model Calculate the predicted value using the following formula. ,in It represents a company providing cold, heat, and electricity energy. Indicates the first One training cycle;
[0112] ;
[0113] In the formula, This represents the feature space aggregation operation;
[0114] Then, the predicted values Send to the relevant energy companies.
[0115] In step 4, each energy company calculates and weights its local losses based on the MSE loss function using the following formula:
[0116] ; These represent companies specializing in cold, heat, and electricity energy, respectively. Indicates the first One training cycle;
[0117] In the formula, This represents the label values distributed across various energy companies, i.e., the raw load data;
[0118] Next, the cooling, heating, and electricity companies will each report the local loss values. , , Uploaded to the cloud server.
[0119] In step 6, the parameters of the global model of the cloud server are updated based on the following formula:
[0120] ;
[0121] ;
[0122] In the formula, For the first The global loss during the training process. For the first An energy company, The total number of energy companies, For the first The weight of each energy company For the first The first energy company Losses during the training process For learning rate, These are the parameters for the neural network model.
[0123] In step 7, the gradients during the global model update process are calculated according to the chain rule, and the partial derivatives are calculated layer by layer from the output layer to the input layer:
[0124] ;
[0125] in, This represents the reconstructed gradient used for local model updates for each energy company;
[0126] Expressing the request right The partial derivatives, Expressing the request right The partial derivatives, Expressing the request right The partial derivatives of .
[0127] With the ring structure VFL, each energy company only needs to transmit its load characteristics, local loss, and gradients to train the model, and the raw data never leaves the utility, thus achieving privacy protection.
[0128] S3. Use the learned and optimized PPenergyNET for multi-energy load forecasting.
[0129] Due to the presence of energy conversion devices (combined heat and power, electric heat pumps, air conditioning, etc.), there is a significant coupling effect between cold, heat, and electrical energy flows. Therefore, to achieve decoupled prediction, MELF is constructed as a multi-task learning problem. In existing technologies, setting parameter-sharing layers in neural networks for energy quality decoupling can lead to some load information being overwhelmed by other information, making the decoupling process inaccurate and thus reducing prediction resolution. Therefore, this invention designs a separate multi-task learning method, SpMTL, for high-resolution prediction and coupling analysis, such as... Figure 6 As shown.
[0130] SpMTL contains a set of tasks and dataset , where K and N represent the number of tasks (outputs) and the number of data samples (inputs), respectively. Indicates the first Labels for each data sample.
[0131] In S1, such as Figure 7As shown, when constructing the multi-energy load forecasting model PPenergyNET, the local models of the cooling, heating, and electricity energy companies are all the same convolutional neural network. In specific implementation, the local model is a two-layer convolutional neural network. The global model of the cloud server includes a shared layer and three fully connected layers connected to the shared layer. The shared layer is used to capture the time dependence of multi-energy loads, and the three fully connected layers are used to output the forecast results related to the three forecasting tasks of cooling, heating, and electricity, respectively. In specific implementation, the shared layer is a long short-term memory neural network.
[0132] The mathematical formula for PPenergyNET's prediction process is defined as follows:
[0133] ;
[0134] in, (·) represents a mapping function that implements MELF; This indicates that each local model extracts features from the input data in a decentralized manner, which is executed in a distributed manner across various energy companies; Parameters representing the local models of each energy company; These represent the parameters of the shared layer in the global model. These represent the parameters of the three fully connected layers in the global model that are connected to the shared layer; This represents local input data; This indicates the outcome of the prediction task.
[0135] Hard parameter sharing mechanisms can leverage useful information from multiple related tasks to improve generalization performance across all tasks.
[0136] In S2, when performing learning optimization on PPenergyNET, the optimization objectives include:
[0137] ;
[0138] Where K is the task set The number of tasks in the middle, For task set Medium task The weight of the loss, The loss function for each task.
[0139] In practice, in step 4, when each energy company calculates the weighted loss of its local model, it calculates the weighted loss locally based on the improved homoscedasticity uncertainty method.
[0140] The performance of PPenergyNET largely depends on the loss weight settings for the heating, electricity, and cooling load forecasting tasks. Manually setting the weights for each task without adjustment can be inaccurate. Repeatedly adjusting the weights manually for each sample is time-consuming for practical MELF deployments. Therefore, this invention proposes an improved homoscedasticity uncertainty method to enhance forecast accuracy and ensure model convergence.
[0141] For MELF, assume In the input The above has parameters and observation noise The output of the model. The homoscedastic uncertainty method with adaptive weight settings can be described as:
[0142] ;
[0143] ;
[0144] ;
[0145] ;
[0146] in, Indicates weighted loss; This represents the heat load loss value. Indicates the value of electrical load loss. This represents the value of cooling load loss. This represents the network parameters of PPenergyNET;
[0147] Indicates input The above has parameters and observation noise The output of the model; This represents the actual value of the heat load; This represents the actual electrical load value. This represents the actual value of the cooling load; Indicates the weight of the heat load forecasting task; Indicates the weight of the electricity load forecasting task; This indicates the weight of the cooling load forecasting task.
[0148] However, at the beginning of training, if the variance of PPenergyNET... Even at very small values, the above method can lead to negative weighted losses. This affects the model update process and convergence. The following proof illustrates that... There is a negative loss at times. .because The calculation is performed by three identical It consists of parts, so we only need to prove one of the parts here.
[0149] first, The left and right limits are:
[0150] 1) Left limit:
[0151] ;
[0152] in,
[0153] ;
[0154] therefore,
[0155] ;
[0156] The left limit is positive infinity.
[0157] 2) Right limit:
[0158] ;
[0159] because It is calculated using the MSELoss formula, therefore Hengzheng, obviously, Also Hengzheng. At this point, Both the left and right limits are always positive.
[0160] Then, further discussion is needed. Functions between. The derivative is:
[0161] ;
[0162] It can be seen that when When, the value of the above expression is positive; when When the time condition is met, the value of the above expression is negative. Therefore, Decrease first and then increase within the interval. When the minimum value is obtained .
[0163] Obviously, if , minimum value The loss value based on homoscedasticity uncertainty A negative loss value will result in a backward gradient, causing the neural network model to diverge.
[0164] Therefore, this invention proposes an improved method for addressing homoscedastic uncertainty by adding a regularization term:
[0165]
[0166] Its constant positiveness is proven as follows: Since Clearly Hengzheng, Hengzheng Constantly positive. Therefore. Hengzheng.
[0167] Through the above proof process, it is possible to use the improved homoscedasticity uncertainty method to adaptively weight the loss in PPenergyNET and ensure the convergence of the neural network.
[0168] Compared with the prior art, the present invention has the following main inventive points:
[0169] 1) A vertical federated learning framework with a ring structure is proposed, enabling cold, heat, and electricity companies connected to the energy internet to train their own load forecasting models locally and collaboratively update the global multi-energy load forecasting model, while protecting the privacy of heterogeneous energy load data. Through the ring structure VFL, each energy company only needs to transmit its load feature values, local loss, and gradient to achieve model training, and the original data never leaves the utility program, thus achieving privacy protection.
[0170] 2) A split multi-task learning (SpMTL) method was designed to prevent the unique spatiotemporal characteristics of cold, heat and electrical loads from being overwhelmed during analysis coupling, thereby improving prediction resolution.
[0171] 3) An improved homoscedastic uncertainty (MHU) method is proposed, which fully considers the coupling relationship between cold, heat and electricity loads, adaptively adjusts the loss of cold, heat and electricity load prediction tasks in MELF, and provides a rigorous convergence proof.
[0172] Case Study Description
[0173] To provide a more intuitive explanation of the effectiveness of this method, the inventors conducted the following case studies.
[0174] 1. Data Description and Experimental Preparation
[0175] 1) Data Description
[0176] The effectiveness of the PPenergyNET proposed in this study was validated using the actual UTA dataset from the University of Texas at Austin. This dataset contains over 160 buildings and can be considered a demonstration project connecting cooling, heating, and electrical energy companies to Energy Information (EI). These three energy companies privately maintain their own load data and do not share it with each other. In this example study, the selected training set data was from September 1, 2011 to July 26, 2012, and the test set data was from July to August 31, 2012. Data normalization was also used to reduce numerical differences between features and accelerate model convergence.
[0177] Assume the current time step is Each energy company will allocate its time , , and The raw load data is combined with the corresponding meteorological data at the time to form the input for the local model. For example, combined heat load data from the heating company. , , and Meteorological data , , , To form the input of the thermal power company model The shape is (128, 1, 8). Here, "128" represents the batch size, "1" is the channel number, and "8" indicates that there is input. The dimension is eight. The feature vectors output from the local models (local CNN models) of the three energy companies are merged to form the global model input in the cloud. The data is then input into the LSTM model in the cloud to obtain the final predicted value.
[0178] 2) Comparison methods and evaluation indicators
[0179] To evaluate the performance of the proposed PPenergyNET model in multi-energy load forecasting, four other methods were compared: LS-CNN-LSTM, CM-CNN-LSTM, CM-BiLST, and CM-CGRUG. Here, LS represents a localized single-energy load forecasting framework, and CM represents a centralized multi-energy load forecasting architecture. PPenergyNET uses a privacy-preserving decentralized multi-energy load forecasting framework. Root mean square error (RMSE) and mean absolute percentage error (MAPE) were used as evaluation metrics.
[0180] 2. Model Hyperparameter Settings
[0181] Different learning rates and the number of neural network layers can affect the performance of PPenergyNET. To determine the optimal configuration for the proposed model, the learning rate (…) was investigated using the controlled variable method. ), the number of layers in a CNN ( ) and the number of LSTM layers ( Three important hyperparameters. To make the comparison clearer, the values of RMSE and MAPE are normalized to numbers between 0 and 10.
[0182] first, Set them sequentially to 0.001, 0.005, 0.01, 0.05, and 0.1, while fixing them. and The experimental results are as follows: Figure 8 As shown. When At that time, both RMSE and MAPE were low. Then, fixed. and To find the CNN layer The best settings, such as Figure 8 As shown in (b). When At that time, both RMSE and MAPE were low. Finally, the CNN layers were fixed. and learning rate Adjust the number of LSTM layers ,like Figure 8 As shown in (c). When and At that time, the model exhibited similar performance on RMSE and MAPE. To reduce computational overhead, we chose [the appropriate model]. In addition, the number of fully connected layers .
[0183] Based on the experimental results, the hyperparameters of the proposed PPenergyNET are listed in Table 1.
[0184] Table 1
[0185]
[0186] 3. Separate feature extraction method provides PPenergyNET with high resolution and accuracy
[0187] The high resolution and high accuracy advantages of PPenergyNET supported by SpMTL are shown below. Table 2 illustrates the performance of different methods in the MELF problem. PPenergyNET demonstrates good prediction accuracy, and its high-resolution prediction advantage is further proven through detailed analysis.
[0188] Table 2
[0189]
[0190] 1) Heat load forecasting: Data from August 12th to August 18th, 2012 was selected as the test set to compare the heat load forecasting performance of different methods. For example... Figure 9 As shown, the heating prediction results of each method are consistent with the actual curve trend.
[0191] Among them, PPenergyNET performed exceptionally well, even becoming the best model in certain time periods. In contrast, the LS-CNN-LSTM model performed poorly near the peaks and troughs of heat load demand. This may be because the local energy forecasting framework failed to consider the coupling relationships between different energy load demands, a problem analyzed in both centralized and decentralized frameworks. The CM-BiLSTM model's predicted curve was slightly higher than the actual heating load curve globally, suggesting that using LSTM alone for time dependency mining is insufficient. CM-CNN-LSTM and PPenergyNET almost always closely matched the actual heating load curve. This indicates that PPenergyNET is better able to learn time series based on complete spatiotemporal feature extraction.
[0192] 2) Electricity load forecasting: Figure 10 A typical weekly electricity load forecast curve from August 5th to August 11th, 2012 is presented. Intuitively, the curves of all methods match the actual electricity load curve well. However, near points 24, 49, 76, and 98, the actual electricity load curve exhibits significant fluctuations, which all methods except PPenergyNET fail to capture. In fact, similar fluctuations occur almost daily within a fixed time window, and PPenergyNET consistently responds to them. This effect validates the effectiveness of the distributed max-pooling layer provided by SpMTL deployed in PPenergyNET. Based on this distributed pooling layer, the high-dimensional spatial features of the electricity load retain their maximum values after the max-pooling function because it is the maximum value within the receptive field of the convolutional layer. In contrast, without PPenergyNET, due to the centralized aggregation of multi-energy load data, larger values of the electricity load samples at the edge of the receptive field of the convolutional layer may be overwhelmed by larger values from hot and cold loads. Once these are no longer the maximum values within the receptive field, the forecasting model will not consider these features. The above results fully demonstrate the ability of SpMTL in PPenergyNET to provide high-resolution multi-energy load forecasting.
[0193] 3) Cooling load forecast: Figure 11This paper presents the cooling load prediction curves of different methods on a typical weekly test dataset from July 31, 2012 to August 6, 2012. The LS-CNN-LSTM model can only capture the trend of the actual cooling load curve, but cannot clearly detect details near peaks and troughs, due to the lack of coupling analysis of multi-energy loads. The predicted curves of CM-CGRUG and CM-BiLSTM are consistently lower than the actual cooling load curves. In contrast, CM-CNN-LSTM and PPenergyNET almost always match the actual cooling load curves. PPenergyNET's high resolution... Figure 11 It is displayed in a small window.
[0194] 4) Privacy advantages provided by ring-based vertical federated learning in PPenergyNET
[0195] PPenergyNET, with its ring-structured VFL, is compared with other methods to demonstrate its privacy advantages. Unlike traditional centralized collection of raw cooling, heating, and electricity load data, PPenergyNET employs a distributed neural network to learn spatiotemporal correlations and extract features from load data from different energy companies, then sends this data to a cloud server for aggregation and decoupling prediction. Simultaneously, the training loss is calculated locally, and gradient information... The data is transmitted back to each sub-network to update the local model parameters. Throughout the process, the raw data for cold, heat, and electrical loads never leave the local network. Therefore, PPenergyNET achieves a distributed modeling approach where data is "available but not visible," while protecting the privacy of multi-energy load data. Table 3 compares PPenergyNET's privacy protection capabilities with the traditional centralized MELF method.
[0196] Table 3
[0197]
[0198] 5) Robust convergence of multi-task learning based on improved homoscedasticity uncertainty
[0199] The multi-task learning method used in PPenergyNET relies heavily on the weighting of losses for each task; therefore, it is necessary to explore the impact of different loss weighting methods on the model. For example... Figure 12As shown, the convergence of different adaptive weighted loss methods was compared using loss curves during model training. The solid line represents the training loss curve using the proposed improved homoscedastic uncertainty method, while the dashed line represents the loss curve using the homoscedastic uncertainty method. The solid line shows a fast and stable training process, with arrows indicating the convergence process. Conversely, the dashed line diverges throughout the training process, with arrows pointing to negative losses that occur during training, validating the previous analysis and proof. Clearly, PPenergyNET using improved homoscedastic uncertainty guarantees model convergence.
[0200] The trade-off between privacy and accuracy
[0201] The trade-off between privacy and accuracy was compared and discussed using LS-CNN-LSTM, CM-CNN-LSTM, and PPenergyNET. All methods used in this comparison employed CNN-LSTM for multi-energy load forecasting. Figure 13 The comparison between MAPE and RMSE is shown in the image.
[0202] PPenergyNET's predicted RMSEs for heat, electricity, and cooling loads are 1252.2182 lbm / hr, 0.8352 MW$, and 600.6976 tons, respectively, with MAPEs of 1.66%, 1.32%, and 1.73%. In comparison, PPenergyNET's MAPEs for the three load types are 52.30%, 50.56%, and 46.77% lower than LS-CNN-LSTM, respectively; its RMSEs are 43.45%, 41.39%, and 27.26% lower than LS-CNN-LSTM. By comparing with LS-CNN-LSTM, PPenergyNET's distributed framework and its parameter-sharing layer effectively analyze the coupling effects of multi-energy loads, significantly improving the accuracy of multi-energy load forecasting and protecting the data privacy of different energy companies.
[0203] On the other hand, using LS-CNN-LSTM as a benchmark, the prediction accuracy of PPenergyNET, employing a distributed framework, is 4.89%, 11.01%, and 7.89% lower in RMSE and 4.31%, 14.59%, and 7.38% lower in MAPE than that of CM-CNN-LSTM. This means that centralized model training yields better results than distributed training. It is reasonable to speculate that the gap between PPenergyNET and CM-CNN-LSTM may stem from the vertical partitioning of the cold, hot, and electrical load sample spaces. This requires separating and deploying neural networks in each energy company, and the coupling relationships of multi-energy loads can only be analyzed from data processed by local models at the edge. Compared to CM-CNN-LSTM, this process in a distributed framework may lead to a degree of information distortion in the data used for coupling analysis, resulting in reduced prediction performance. In conclusion, there is a trade-off between accuracy and privacy, with the loss of accuracy considered a cost of privacy protection.
[0204] Sensitivity analysis
[0205] When considering real-world deployment of PPenergyNET, it's also important to consider the method's sensitivity to the number of privacy-preserving participants, reflecting its scalability. Therefore, the number of privacy-preserving participants was set from 0 to 3 to perform a sensitivity analysis based on PPenergyNET's predictive accuracy. The results are as follows... Figure 14 As shown.
[0206] Experimental results show that a larger number of privacy-preserving participants leads to increased MAPE and RMSE, i.e., decreased prediction performance. Therefore, the prediction accuracy of PPenergyNET is sensitive to the number of privacy-preserving participants, consistent with the trade-off between privacy protection and accuracy discovered by the inventors. However, in the real world, due to the limited variety of multi-energy loads, such as common cooling, heating, and electrical loads, this decrease in accuracy will not affect the performance of PPenergyNET indefinitely.
[0207] Summarize
[0208] Accurate multi-energy load forecasting is crucial for energy management and the optimal operation of energy systems. Multi-energy load forecasting tasks have traditionally been performed in a centralized manner; however, due to privacy concerns, energy companies are reluctant to share their raw load data. The PPenergyNET proposed in this invention is a distributed deep learning network based on vertical federated learning, exhibiting exciting predictive performance and privacy-preserving advantages.
[0209] PPenergyNET is applied to multi-energy load forecasting in energy systems with integrated cooling, heating, and electrical loads. Numerical studies support three findings. First, PPenergyNET can train a model in a privacy-preserving manner using load data from three different energy companies without centralized data collection, a capability lacking in traditional approaches. Second, the distributed framework in PPenergyNET outperforms existing multi-energy load forecasting frameworks in terms of training time, but is slightly less accurate than centralized forecasting frameworks; this is considered a trade-off between privacy and accuracy. Third, the proposed method guarantees model convergence.
[0210] Essentially, this invention proposes a novel model training paradigm for energy systems, enabling privacy-preserving deep learning model training involving multiple energy stakeholders. In this paradigm, any energy company can securely collaborate with other partners to serve the local economy and society. Furthermore, PPenergyNET can be viewed as a methodological foundation for developing interoperability between different energy systems.
[0211] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit the technical solutions. Those skilled in the art should understand that any modifications or equivalent substitutions to the technical solutions of the present invention without departing from the spirit and scope of the present invention should be covered within the scope of the claims of the present invention.
Claims
1. A privacy-preserving multi-energy load decoupling prediction method in the energy internet, characterized in that, Includes the following steps: S1. Construct a multi-energy load forecasting model PPenergyNET; PPenergyNET includes local models set up at the cooling, heating and electricity energy companies respectively, used to independently extract the load characteristics of the local load data of the corresponding energy companies; PPenergyNET also includes a global model set up on the cloud server, used to aggregate the load characteristics of the three local models for multi-energy load forecasting; S2. Learn and optimize the PPenergyNET constructed in S1; S3. Use the optimized PPenergyNET for multi-energy load forecasting; In S2, the learning optimization process includes: Step 1: The cold, heat, and electricity energy companies independently extract the spatial characteristics of their local load data based on their respective local models and send them to the cloud server; Step 2: The cloud server aggregates the spatial features of the three companies (cold, hot, and electric) as input to the global model for learning spatiotemporal features and coupling relationships. Step 3: After obtaining the prediction results output by the global model, send the predictions for cooling, heating, and electricity to the corresponding energy companies respectively. Step 4: The three energy companies calculate the weighted loss of their local models locally and send it to the cloud server. Step 5: The cloud server summarizes the weighted losses of the three local models to obtain the global loss; Step 6: The cloud server performs backpropagation of the loss to update the parameters of the global model; Step 7: The cold, heat, and electricity energy companies receive and reconstruct gradients from the cloud server respectively to continue backpropagation and update the parameters of each local model; In S1, the mathematical expression for the execution process of the constructed PPenergyNET is: ; in, These represent the forecast results for heat, electricity, and cooling energy loads, respectively. Indicates having parameters The output of the cloud model; This indicates that the cold energy company has parameters. The output of the local model; This indicates that the thermal energy company has parameters. The output of the local model; This indicates that the electric energy company has parameters The output of the local model; In S1, when constructing the multi-energy load forecasting model PPenergyNET, the local models of the cooling, heating, and electricity energy companies are all the same convolutional neural network; the global model of the cloud server includes a shared layer and three fully connected layers connected to the shared layer; the shared layer is used to capture the time dependence of multi-energy loads, and the three fully connected layers are used to output the forecast results related to the three forecasting tasks of cooling, heating, and electricity, respectively. The mathematical formula for PPenergyNET's prediction process is defined as follows: ; in, (·) represents a mapping function that implements MELF; This indicates that each local model extracts features from the input data in a distributed manner; Parameters representing the local models of each energy company; These represent the parameters of the shared layer in the global model. These represent the parameters of the three fully connected layers in the global model that are connected to the shared layer; This represents local input data; Indicates the outcome of the prediction task; In S2, when performing learning optimization on PPenergyNET, the optimization objectives include: ; Where K is the task set The number of tasks in the middle, For task set Medium task The weight of the loss, Loss function for each task; In step 4, when calculating the weighted loss of the local model, each energy company calculates the weighted loss locally based on the improved homoscedasticity uncertainty method; the mathematical expression of the improved homoscedasticity uncertainty method is: ; ; ; ; in, Indicates weighted loss; This represents the heat load loss value. Indicates the value of electrical load loss. This represents the value of cooling load loss. This represents the network parameters of PPenergyNET; Indicates input The above has parameters and observation noise The output of the model; This represents the actual value of the heat load; This represents the actual electrical load value. This represents the actual value of the cooling load; Indicates the weight of the heat load forecasting task; Indicates the weight of the electricity load forecasting task; This indicates the weight of the cooling load forecasting task.
2. The privacy-preserving multi-energy load decoupling prediction method in the energy internet as described in claim 1, characterized in that: In step 1, when each energy company independently extracts the spatial characteristics of its local load data based on its local model, it inputs the corresponding load data. and meteorological factors Transformed into local features using a pre-defined deep learning algorithm: ; In the formula, Indicates the local model, These represent cold, heat, and electricity energy companies, respectively. Indicates the first One training cycle; Indicates local characteristics, ,in, Energy companies The output feature dimension; Then The spatial characteristics of the local load data are sent to the cloud server.
3. The privacy-preserving multi-energy load decoupling prediction method in the energy internet as described in claim 2, characterized in that: In step 2, the output from the cold, heat, and electricity energy companies will be... Connect them into a tensor ; In step 3, based on the global model Calculate the predicted value using the following formula. ; ; In the formula, This represents the feature space aggregation operation; Then, the predicted values Send to the relevant energy companies.
4. The privacy-preserving multi-energy load decoupling prediction method in the energy internet as described in claim 3, characterized in that: In step 4, each energy company calculates and weights its local losses based on the MSE loss function using the following formula: ; In the formula, This represents the tag values distributed across various energy companies; Next, the cooling, heating, and electricity companies will each report the local loss values. , , Uploaded to the cloud server.
5. The privacy-preserving multi-energy load decoupling prediction method in the energy internet as described in claim 4, characterized in that: In step 6, the parameters of the global model of the cloud server are updated based on the following formula: ; ; In the formula, For the first The global loss during the training process. For the first An energy company, The total number of energy companies, For the first The weight of each energy company For the first The first energy company Losses during the training process For learning rate, These are the parameters for the neural network model.
6. The privacy-preserving multi-energy load decoupling prediction method in the energy internet as described in claim 5, characterized in that: In step 7, the gradients during the global model update process are calculated according to the chain rule, and the partial derivatives are calculated layer by layer from the output layer to the input layer: ; in, This represents the reconstructed gradient used for local model updates for each energy company; Expressing the request right The partial derivatives, Expressing the request right The partial derivatives, Expressing the request right The partial derivatives of .
