A method for predicting power load data, electronic equipment and storage medium

By combining the first prediction model and the second prediction model, the impact of demand response data in the preliminary prediction is compensated, the prediction accuracy of the power load data is improved, and the problem of inaccurate power load data prediction in the existing technology is solved.

CN118539438BActive Publication Date: 2024-10-11SHENZHEN GUORUIXIE CHUANG ENERGY STORAGE TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411009560.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-11
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

Existing power load data prediction methods are not accurate enough, which affects the safe operation of the power system and the accuracy of dispatch plans.

Method used

Using a combination method of the first prediction model and the second prediction model, the first prediction model is used to initially predict the power load data at the target time point, and then the second prediction model is used to respond to the power load data and time data based on the preliminary forecast data and plan. Errors are calculated and compensated to ensure that the final forecast data fully considers the impact of demand response data.

Benefits of technology

The prediction accuracy of power load data is improved, the complexity and training difficulty of the first prediction model are reduced, and the consideration of demand response data is enhanced, thereby improving the reliability of prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118539438B_ABST
    Figure CN118539438B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of data prediction, and discloses a method for predicting electric load data, an electronic device, and a storage medium, the method comprising: obtaining a target time point, planned response electric load data corresponding to the target time point, and planned response time data; generating a first independent variable data set according to the target time point, the planned response electric load data, and the planned response time data; predicting the real electric load data corresponding to the target time point through a first prediction model to obtain preliminary prediction data; predicting the error between the real electric load data and the preliminary prediction data according to the first independent variable data set through a second prediction model to obtain target error data; determining the target prediction data corresponding to the target time point according to the preliminary prediction data and the target error data, and completing the prediction of the electric load data corresponding to the target time point. In the above manner, the present application improves the accuracy of the prediction of electric load data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of data prediction, and specifically to a method for predicting power load data, an electronic device, and a storage medium. Background Art

[0002] With the rapid development of today's society, people are becoming more and more dependent on electricity. Electricity is needed in production in many fields. Factories need electricity to drive equipment for continuous production, and people need electricity to drive household appliances such as lights, washing machines and air conditioners at home to bring convenience to their lives.

[0003] For power plants, it is very important to predict power load data. Power plants can manage power supply more carefully based on the predicted power load data, which helps power plants or power companies make reasonable power generation plans and resource allocations based on the prediction results. The predicted power load data plays an important role in the reasonable allocation of power resources by power plants or power companies, and helps to improve the stability of the power system.

[0004] However, power load data is highly random and volatile. The current common prediction methods for power load data are difficult to make relatively accurate predictions of power load data, which affects the safe operation of the power system and the accurate implementation of the power dispatch plan. Summary of the invention

[0005] In view of the above problems, the embodiments of the present application provide a method, device, electronic device and storage medium for predicting power load data, which are used to solve the problem that the existing prediction methods are not accurate enough in predicting power load data.

[0006] According to one aspect of an embodiment of the present application, a method for predicting power load data is provided, the method comprising: obtaining a target time point, planned response power load data corresponding to the target time point, and planned response time data; generating a first independent variable data set according to the target time point, the planned response power load data, and the planned response time data; predicting the actual power load data corresponding to the target time point through a first prediction model to obtain preliminary prediction data; predicting the error between the actual power load data and the preliminary prediction data according to the first independent variable data set through a second prediction model to obtain target error data; determining the target prediction data corresponding to the target time point according to the preliminary prediction data and the target error data, and completing the prediction of the power load data corresponding to the target time point.

[0007] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory. In an optional manner, the processor executes the computer program to implement the method for predicting power load data as described in any of the above embodiments.

[0008] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. In an optional manner, when the computer program is executed by a processor, the method for predicting power load data as described in any of the above embodiments is implemented.

[0009] In the embodiment of the present application, preliminary prediction data is obtained through prediction by a first prediction model, and then the prediction error of the first prediction model is predicted according to the planned response power load data and the planned response time data through a second prediction model to obtain target error data, and then the sum of the preliminary prediction data and the target error data is determined as the target prediction data of the power load data at the target time point, so as to compensate for the defect of the first prediction model that does not consider the impact of the demand response data on the prediction through the second prediction model, and ensure that the target prediction data finally determined fully considers the impact of the demand response data, thereby improving the accuracy of the prediction.

[0010] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present application. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:

[0012] Figure 1 A schematic diagram showing a flow chart of a method for predicting power load data provided in an embodiment of the present application;

[0013] Figure 2 A schematic diagram of a flow chart of a training method for a second prediction model provided in an embodiment of the present application is shown;

[0014] Figure 3 A schematic flow chart of the sub-steps of S237 provided in an embodiment of the present application is shown;

[0015] Figure 4 A schematic diagram of a process flow of a training method for a first prediction model provided in an embodiment of the present application is shown;

[0016] Figure 5 A schematic diagram showing the structure of a device for predicting power load data provided in an embodiment of the present application is shown;

[0017] Figure 6 A schematic diagram of the structure of a power load data prediction device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0018] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein.

[0019] As the name implies, a virtual power plant is a virtualized power plant that generates electricity, participates in the energy market, and participates in the peak load and frequency regulation of the auxiliary service market by adjusting power. Its core idea is to rely on the Internet and modern information and communication technologies to aggregate various resources scattered in the power grid, such as distributed power sources, energy storage, and loads, to coordinate and optimize operation control and market transactions, to achieve multi-energy complementarity on the power supply side and flexible interaction on the load side, and to provide auxiliary services such as peak load regulation and standby to the power grid. Accurately predicting the future power load participating in the virtual power plant can not only ensure the safety and stability of the power system, but also accurately carry out scheduling plans and bring economic benefits.

[0020] The virtual power plant will also calculate the demand response data based on historical rules, and issue the virtual power plant precise response demand announcement based on the demand response data, and the user side will adjust the power consumption based on the issued virtual power plant precise response demand announcement. Among them, the response demand data includes the response power load data used to represent the planned power supply and the response time data used to represent the planned demand adjustment period.

[0021] Based on this, the inventor of the present application found that when predicting the real power load data representing the actual power consumption, the demand response data can be combined for prediction. Specifically, a first prediction model and a second prediction model can be designed. When predicting the power load data at the target time point, the first prediction model is first used to predict to obtain preliminary prediction data, and then the second prediction model is used to predict the prediction error of the first prediction model according to the response power load data and response time data corresponding to the target time point to obtain the target error data, and then the sum of the preliminary prediction data and the target error data is determined as the target prediction value of the power load data at the target time point, and the target prediction value is used as the prediction value of the real power load data, so as to make up for the defect of the first prediction model that does not consider the impact of the demand response data on the prediction through the second prediction model, and ensure that the final determined target prediction value fully considers the impact of the demand response data, thereby improving the accuracy of the prediction.

[0022] Figure 1The flowchart of the power load data prediction method provided by the embodiment of the present application is shown, and the method is executed by a power load data prediction device. The power load data prediction device is a computer, server, communication device, field terminal device, etc. that can run the power load data prediction method. Figure 1 As shown, the method comprises the following steps:

[0023] S110, acquiring a target time point, planned response power load data corresponding to the target time point, and planned response time data.

[0024] Among them, the target time point is the time point that needs to be predicted, which can be a time point corresponding to a known moment to test the prediction capabilities of the first prediction model and the second prediction model, or it can be a time point corresponding to an unknown moment.

[0025] Typically, a virtual power plant divides 24 hours of a day into 96 time points at 15-minute intervals, for example, 00.00, 00.15, 00.30, etc. (the time point "00.15" in this article represents the time information of 00:15). The target time point is one of the 96 time points of the day.

[0026] Among them, the planned response power load data is the response power load data corresponding to the target time point in the virtual power plant's precise response demand announcement. For example, if the announcement shows "screen the user list according to 30% of the city's historical maximum electricity load", the planned response power load data will be determined as 0.7 of the historical maximum load of the point of use.

[0027] The planned response time data is the response time data corresponding to the target time point in the announcement of the precise response demand of the virtual power plant. For example, the announcement shows that "Today's precise response demand of the virtual power plant has been issued. Please note that there are 3 sequences in this invitation, all covering the whole city of Shenzhen, with adjustment periods (11:00-12:00), (13:00-14:00) and (16:30-17:30)". If the target time point is a time point within the adjustment period, the planned response time data can be taken as "1". If the target time point is not a time point within the adjustment period, the planned response time data can be taken as "0".

[0028] S130, generating a first independent variable data set according to the target time point, the planned response power load data and the planned response time data.

[0029] After obtaining the values ​​of the target time point, planned response power load data and planned response time data, the target time point, planned response power load data and planned response time data are sorted according to the arrangement order of the independent variables of the second prediction model, so that the second prediction model can correspond the input values ​​to the trained prediction parameters in the second prediction model.

[0030] S150, predicting the actual power load data corresponding to the target time point using the first prediction model to obtain preliminary prediction data.

[0031] Among them, the first prediction model can be a trained long short-term memory network (Long Short-Term Memory, LSTM) model, or a support vector machine model, a convolutional neural network model, etc.

[0032] S170, predicting the error between the actual power load data and the preliminary prediction data according to the first independent variable data set through the second prediction model to obtain target error data.

[0033] Among them, the second prediction model is a supervised learning model to improve the training speed and prediction accuracy, such as support vector machine, linear regression and convolutional neural network models.

[0034] The second prediction model includes functional relationship parameters from independent variables to dependent variables. The second prediction model takes the target time point, planned response power load data and planned response time data as independent variables, takes the error data between the actual power load data and the preliminary prediction data as dependent variables, and predicts the error data between the actual power load data and the preliminary prediction data through functional relationship parameters.

[0035] The prediction error of the first prediction model is represented by the error between the actual power load data and the preliminary prediction data, and the prediction error of the first prediction model is predicted by the first independent variable data set, so that the influence of the response power load data and the response time data on the power load data can be fully considered during the prediction, thereby improving the accuracy of the prediction.

[0036] S190, determining target prediction data corresponding to the target time point based on the preliminary prediction data and the target error data, and completing the prediction of the power load data corresponding to the target time point.

[0037] The sum of the preliminary prediction data and the target error data is determined as the target prediction data, and the target prediction data is used as the prediction result of the charge load data at the target time point.

[0038] The embodiment of the present application obtains preliminary prediction data through the prediction of the first prediction model, and then predicts the prediction error of the first prediction model according to the planned response power load data and the planned response time data through the second prediction model to obtain the target error data, and then determines the sum of the preliminary prediction data and the target error data as the target prediction data of the power load data at the target time point, so as to make up for the defect of the first prediction model that does not consider the impact of the demand response data on the prediction through the second prediction model, and ensure that the target prediction data finally determined fully considers the impact of the demand response data, thereby improving the accuracy of the prediction; and, compared with directly considering the impact of the demand response data on the prediction through the first prediction model, the embodiment of the present application makes up for the defect of the first prediction model that does not consider the impact of the demand response data on the prediction through the second prediction model, which can reduce the complexity and training difficulty of the first prediction model, so that while maintaining the prediction accuracy of the first prediction model, the accuracy of the power load data prediction is improved through the second prediction model.

[0039] To further improve the accuracy of the prediction, in an optional manner, before S130, the prediction method further includes:

[0040] S120, obtaining planned electricity price data corresponding to the target time point.

[0041] Among them, the electricity price data is used to represent the cost of using one kilowatt-hour of electricity planned by the virtual power plant. The planned electricity price data is the electricity price data at the target time point in the virtual power plant's precise response demand announcement. For example, if the announcement shows "adjusted to peak electricity within the next three hours", the planned response power load data is determined to be 1. If the announcement shows "adjusted to peak electricity within the next three hours", the planned response power load data is determined to be 0.75. In an optional method, the data interface can be called from a third-party website to obtain the sorted electricity price data.

[0042] S130 includes: S131, generating a first independent variable data set according to planned electricity price data, target time point, planned response power load data and planned response time data.

[0043] Similar to S130, the planned electricity price data, target time point, planned response power load data and planned response time data are sorted according to the order of arrangement of the independent variables of the second prediction model, so that the second prediction model can correspond the input values ​​to the trained prediction parameters in the second prediction model.

[0044] The embodiment of the present application generates a first independent variable data set based on planned electricity price data, target time point, planned response power load data and planned response time data, so that the second prediction model can use the target time point, planned electricity price data, planned response power load data and planned response time data as independent variables to predict the power load data, so as to increase the credibility of the prediction of the second prediction model, thereby further improving the accuracy of the prediction.

[0045] To better explain the second prediction model, Figure 2 A flow chart showing a training method for the second prediction model provided in an embodiment of the present application is shown. Figure 2 , the training method of the second prediction model includes the following steps:

[0046] S210, obtaining multiple first time points, multiple response power load data, multiple response time data and multiple first power load data, wherein the multiple first power load data, the multiple response power load data and the multiple response time data all correspond one-to-one to the multiple first time points.

[0047] Acquire multiple first time points, multiple response power load data, multiple response time data, and multiple first power load data, that is, acquire the time series of response power load data, the time series of response time data, and the time series of first power load data. The first time point used for training is the time point corresponding to the known moment, and each first time point is one of the 96 time points in a day.

[0048] S220, predicting a plurality of first power load data according to a plurality of first time points using a trained first prediction model, to obtain a plurality of second power load data corresponding to the plurality of first time points respectively.

[0049] A plurality of first power load data are predicted using a first prediction model to obtain a time series of second power load data.

[0050] The embodiments of the present application do not make any specific limitations on this, and the first prediction model and the training method of the first prediction model can be selected according to actual conditions.

[0051] S230, determining third power load data based on the first power load data and the second power load data corresponding to the same first time point, and obtaining multiple third power load data corresponding to multiple first time points respectively, and the multiple third power load data are used to characterize the prediction error of the first prediction model.

[0052] A plurality of third power load data are obtained by subtracting the sequence value of the time series of the second power load data from the sequence value of the time series of the first power load data.

[0053] S240, generating a second independent variable data set according to a plurality of response power load data, a plurality of response time data and a plurality of first time points, and generating a dependent variable data set according to a plurality of third power load data.

[0054] For example, when the second prediction model is a linear regression model, the second prediction model can be written as Y=AX+B, wherein Y is a 1*n-order matrix formed by n third power load data, X is a 3*n-order matrix formed by n response power load data, n response time data and n first time points, A is a 1*3-order matrix formed by three independent variable parameters, and B is a 1*n-order matrix formed by 1*n constant parameters.

[0055] The best A and B are solved according to X and Y. When solving A and B, matrix decomposition method, normal equation method, gradient descent method, least square method and other solving methods can be used.

[0056] S250, training the second prediction model to obtain a plurality of fourth power load data, where the plurality of fourth power load data are a plurality of prediction data corresponding to a plurality of first time points respectively obtained by predicting the dependent variable data set according to the second independent variable data set by the second prediction model.

[0057] After A and B are obtained, the data of A, B and X are substituted into the linear regression model Y=AX+B to obtain a 1*n-order matrix γ, wherein the multiple matrix values ​​of γ are multiple fourth power load data.

[0058] S260: If the deviation value between the plurality of fourth power load data and the plurality of third power load data is less than a preset threshold, the training of the second prediction model is terminated to complete the training of the prediction model.

[0059] In an optional manner, the mean absolute error (MAE), root mean square error (RMSE) or mean absolute percentage error (MAPE) between the matrix Y and the matrix γ can be used as the deviation value between the multiple fourth power load data and the multiple third power load data, and the deviation value is compared with a preset threshold. If the deviation value is less than the preset threshold, the training of the second prediction model is terminated. If the deviation value is greater than the preset threshold, A and B are corrected until the deviation value between Y and γ is less than the preset threshold, and A and B corresponding to γ ​​that is less than the preset threshold are determined as prediction parameters of the second prediction model, and the training of the second prediction model is terminated.

[0060] Specifically, the calculation formulas for MAE, RMSE, and MAPE can be:

[0061]

[0062]

[0063]

[0064] in, represents the true value (the value to be predicted by matrix Y), represents the predicted value (the value of the matrix γ), represents the true mean (the average of multiple values ​​of the matrix Y), Represents the number of predicted values ​​(the number of elements in the matrix γ).

[0065] The preset threshold value may be set according to actual use requirements. For example, the preset threshold value may be set to 0.5.

[0066] In the embodiment of the present application, a plurality of second power load data are predicted by a first prediction model that has been trained, and the difference between the plurality of second power load data and the plurality of first power load data is determined as the third power load data. The plurality of third power load data are predicted based on the second independent variable set by the second prediction model to obtain a plurality of fourth power load data. Whether the training of the second prediction model has been completed is determined by comparing the deviation value between the predicted plurality of fourth power load data and the actual plurality of third power load data with a preset threshold value, so that the training process of the first prediction model and the training process of the second prediction model can be carried out separately, thereby reducing the complexity of the training of the second prediction model and shortening the training time of the second prediction model.

[0067] In order to further improve the prediction accuracy of the second prediction model, in an optional manner, before S240, the training method of the second prediction model further includes:

[0068] S231, obtaining time period data when demand response occurs and a plurality of response power load original data corresponding to a plurality of first time points respectively.

[0069] Among them, obtaining the time period data when the demand response occurs and multiple response power load original data corresponding to multiple first time points can be to perform semantic analysis on the virtual power plant's precise response to demand announcement, and determine the time period data when the demand response occurs and multiple response power load original data from the announcement; it can also be to input the sorted data list including the time period data when the demand response occurs and multiple response power load original data into the power load data prediction device to start the training of the second prediction model based on the acquired data.

[0070] In an optional manner, the earliest time point among multiple first time points is taken as the first moment, and the latest time point among the multiple first time points is taken as the second moment, and time period data corresponding to the demand response occurring between the first moment and the second moment is obtained to reduce the amount of data required for subsequent processing, thereby reducing the training time of the second prediction model.

[0071] S233, determining a plurality of response power load data according to a plurality of response power load original data.

[0072] In an optional manner, multiple response power load raw data are normalized to obtain multiple response power load data. Specifically, Q'=(Qmax - Q) / (Q - Qmin), where Q is the response power load raw data, Q' is the response power load data after normalization, Qmax is the maximum value among the multiple response power load raw data, and Qmin is the minimum value among the multiple response power load raw data.

[0073] S235 , determining a time point in the time period of the time period data among the plurality of first time points as a first type of time point, and determining a time point in the time period of the time period data not as a second type of time point.

[0074] For example, the adjustment periods of a certain day are (11:00-12:00) and (16:30-17:30), that is, the time period data for demand response on this day are (11:00-12:00) and (16:30-17:30). The time points corresponding to 11.00, 11.15, 11.30, 11.45, 16.30, 16.45, 17.00 and 17.15 of this day are determined as first-category time points, and the time points corresponding to the remaining time period data of this day are determined as second-category time points, such as the time points corresponding to 13.30 and 14.00 are both second-category time points.

[0075] S237, fill in the data corresponding to the first type of time point in multiple response time data according to the first preset constant, and fill in the data corresponding to the second type of time point in multiple response time data according to the second preset constant, to obtain multiple response time data, wherein the second preset constant is a non-negative number less than the first preset constant.

[0076] In an optional manner, the second preset constant may be set to 0, and the first preset constant may be set to 1, so as to facilitate the power load data prediction device to run and process a plurality of response time data.

[0077] For example, if the adjustment period of a certain day is (11:00-12:00), the response time data corresponding to the time points 11.00, 11.15, 11.30, 11.45, 12.00, 12.15, 12.30 and 12.45 in (11:00-13.00) may be marked as 1, 1, 1, 1, 0, 0, 0, 0, respectively.

[0078] Furthermore, in order to make the changes between response time data relatively smooth, Figure 3 The schematic diagram of the process of the sub-steps of S237 provided in the embodiment of the present application is shown. Figure 3 The step of "filling the data corresponding to the second type of time point in the plurality of response time data according to the second preset constant" in S237 further includes the following sub-steps:

[0079] S2371, determining the time points in the second category that are outside the preset time range of the time period of the time period data as the third category time points.

[0080] For example, if the time period of demand response in a certain day is (11:00-12:00), then in (10:00-14:00), the time points 11.00, 11.15, 11.30, and 11.45 between (11:00-12:00) are recorded as the first type of time points; the time points 10.00, 10.15, 10.30, 10.45, 12.00, 12.15, 12.30, 12.45, 13.00 between (10:00-11:00) and (12:00-14:00) are recorded as the first type of time points. , 13.15, 13.30 and 13.45 are recorded as the second type of time points; if the preset time range is set to one hour, the time points 10.00, 10.15, 10.30, 10.45, 12.00, 12.15, 12.30 and 12.45 between (10:00-11:00) and (12:00-13:00) are recorded as the fourth type of time points, and the time points 13.00, 13.15, 13.30 and 13.45 between (13:00-14:00) are recorded as the third type of time points.

[0081] Among them, the preset time range can be set according to actual use needs, such as being set to one hour.

[0082] S2372: Fill the data corresponding to the third type of time point in the plurality of response time data with the second preset constant.

[0083] The data corresponding to the third type of time points in the plurality of response time data are filled with 0. For example, the data values ​​of the response time data corresponding to the time points 13.00, 13.15, 13.30 and 13.45 are filled with 0, and a plurality of response time data (0, 0, 0, 0) corresponding to the time points between (13:00-14:00) are obtained.

[0084] S2373: Determine the time points in the second category of time points that are within the preset time range as the fourth category of time points.

[0085] S2374, filling the data corresponding to the fourth type of time point in the multiple response time data according to the preset constant set, the maximum number of the preset constant set is less than the first preset constant, and the minimum number of the preset constant set is greater than or equal to the second preset constant.

[0086] In an optional manner, the preset constant set may be set to {0, 0.25, 0.5, 0.75}.

[0087] The data corresponding to the fourth type of time points in the plurality of response time data are filled according to the preset constant set. For example, the data values ​​of the response time data corresponding to the time points of 10.00, 10.15, 10.30, 10.45, 12.00, 12.15, 12.30 and 12.45 are filled with 0, 0.25, 0.5, 0.75, 0, 0.25, 0.5, 0.75 in sequence, and the values ​​corresponding to (10:00-11:00) and (12:00-13:00) are obtained. The multiple response time data corresponding to the time points in the graph are (0, 0.25, 0.5, 0.75) and (0.75, 0.5, 0.25, 0); finally, the time period when demand response occurs in a certain day is (11:00-12:00), then the response time data corresponding to the multiple time points in (10:00-14:00) are (0, 0.25, 0.5, 0.75, 1, 1, 1, 1, 0.75, 0.5, 0.25, 0, 0, 0, 0, 0).

[0088] The embodiment of the present application classifies time points according to the time period data when demand response occurs to obtain first-category time points and second-category time points, and fills in the response time data corresponding to the first-category time points and the second-category time points according to the first preset constant and the second preset constant, respectively, to obtain multiple response time data corresponding to multiple time points, so that while the first time point is corresponded to the response time data, the time period data when demand response occurs can be fully utilized, thereby improving the prediction accuracy of the second prediction model; further, the first time point among the multiple first time points that is not in the time period of the time period data is determined as the second-category time point, and the second-category time point is further classified into the third-category time point and the fourth-category time point, and the second preset constant is used to fill in the third-category time point outside the preset time range, and the preset constant set is used to fill in the fourth-category time point within the preset time range, so that the changes in the multiple response time data are relatively smooth, thereby being consistent with the actual changes, so as to improve the accuracy of the prediction.

[0089] In an optional manner, before S240, the training method of the second prediction model further includes:

[0090] S232, obtaining a plurality of electricity price information corresponding to a plurality of first time points respectively.

[0091] Among them, the electricity price information can be price information, for example, 0.800 yuan / kWh, or category information, for example, peak, sharp, flat and valley, which correspond to the electricity prices during peak power consumption, peak period, flat peak and valley period respectively.

[0092] Acquire multiple electricity price information according to multiple first time points, for example, acquire multiple electricity price information (peak, peak, peak, flat) corresponding to multiple first time points 13.00, 13.15, 13.30, 13.45 in (13:00-14:00).

[0093] S234, mapping the plurality of electricity price information according to a preset electricity price mapping table to obtain a plurality of electricity price data, wherein the plurality of electricity price data correspond one-to-one to the plurality of first time points.

[0094] If the electricity price information is price information, the electricity price information is normalized; if the electricity price information is category information, the electricity price information is mapped according to a preset electricity price mapping table, so that the electricity price information is mapped into easily processable electricity price data.

[0095] For example, the electricity price mapping table can be preset to {"sharp": 1; "peak": 0.75; "flat": 0.50; "valley": 0.25}, and the electricity price preset table can be used to map multiple electricity price information (peak, peak, peak, flat) corresponding to multiple first time points 13.00, 13.15, 13.30, 13.45 into multiple electricity price data (0.75, 0.75, 0.75, 0.5).

[0096] S240 further includes: S242, generating a second independent variable data set according to a plurality of electricity price data, a plurality of response power load data, a plurality of response time data and a plurality of first time points.

[0097] After determining multiple electricity price data, multiple response power load data, multiple response time data and multiple values ​​of first time points, the above data are sorted according to the arrangement order of the independent variables of the second prediction model so that the second prediction model corresponds each value to the prediction parameter in the second prediction model.

[0098] The embodiment of the present application maps multiple electricity price information according to a preset electricity price mapping table to obtain multiple electricity price data, and generates a second independent variable data set for training based on the obtained multiple electricity price data, and then trains the second prediction model according to the second independent variable data set, so that the electricity price information can participate in the training process of the second prediction model, thereby improving the training effect of the second prediction model.

[0099] It should be pointed out that when a second independent variable data set is generated based on multiple electricity price data, multiple response power load data, multiple response time data and multiple first time points, and the second independent variable data set is used to train the second prediction model, then when the second prediction model is used for prediction, it is also necessary to generate a first independent variable data set based on the planned electricity price data, the planned response power load data, and the planned response time data, and predict based on the first independent variable data set through the second prediction model; when a second independent variable data set is generated based on multiple response power load data, multiple response time data and multiple first time points, and the second prediction model is trained using the second independent variable data set, then when the second prediction model is used for prediction, it is only necessary to generate a first independent variable data set based on the planned response power load data and the planned response time data, and predict based on the first independent variable data set through the second prediction model.

[0100] The second prediction model can be an LSTM model, or a support vector machine model, a convolutional neural network model, etc. The embodiment of the present application takes the LSTM model as an example to illustrate the training process of the second prediction model. Specifically, Figure 4 A flow chart showing a training method for the first prediction model provided in an embodiment of the present application is shown. Figure 4, the training method of the first prediction model includes:

[0101] S310, inputting a historical power load data sequence and a plurality of original data sequences into a preset first prediction model, wherein the historical power load data sequence includes a plurality of second time points and a plurality of power load data corresponding to the plurality of second time points, respectively, and the plurality of original data sequences are all correlated with the historical power load data sequence.

[0102] Among them, the power load data sequence refers to a sequence formed by the electric power data consumed by electrical equipment that uses electric energy at multiple consecutive time nodes, and the historical power load data sequence refers to a sequence formed by the electric power data consumed by electrical equipment that uses electric energy at multiple consecutive time nodes (multiple second time points) in a past time period. In practical applications, the historical power load data sequence can also be plotted on a coordinate graph with the horizontal axis as time and the vertical axis as power load data to obtain a power load data curve graph within a time period, so that operators can view and analyze it easily.

[0103] The original data sequence refers to a data sequence that has a certain correlation with the historical power load data sequence. The data change of the original data sequence can have a certain impact on the historical power load data sequence. For example, the original data sequence is a sequence formed by the equipment opening amount data. When the equipment opening amount data continues to increase, it means that the power-consuming equipment continues to increase, which will increase the load on the power system, so that the historical power load data sequence increases with the increase of the equipment opening amount data, that is, the sequence formed by the equipment opening amount data is positively correlated with the historical power load data sequence. For another example, the original data sequence is a sequence formed by precipitation data. As the precipitation gradually increases, many activity venues suspend business and a large number of equipment are shut down, which will reduce the load on the power system, so that the historical power load data sequence decreases with the increase of precipitation data, that is, the sequence formed by precipitation data is negatively correlated with the historical power load data sequence. It can be understood that as long as there is a certain correlation between a certain data sequence and the historical power load data sequence, whether they are positively correlated or negatively correlated, the data sequence can be used as the original data sequence.

[0104] S330, performing modal decomposition on the historical power load data sequence to obtain multiple modal component sequences.

[0105] Among them, modal decomposition of the historical power load data sequence refers to splitting the historical power load data sequence into multiple modal component sequences so that each modal component sequence can reflect a periodic change contained in the historical power load data sequence. Those skilled in the art should understand that, ideally, the sequence formed by adding the data of the multiple modal component sequences obtained after modal decomposition of the historical power load data sequence at corresponding time nodes should be consistent with the historical power load data sequence.

[0106] Furthermore, the parameters of modal decomposition can be optimized by an optimization algorithm to ensure that the number of decomposition layers selected when modal decomposition of the historical power load data series is more reasonable, avoiding over-decomposition due to too large a value of the decomposition layer, or under-decomposition due to too small a value of the decomposition layer. For example, modal decomposition is performed by variational mode decomposition (VMD) to reduce the volatility of modal decomposition, and the parameters of VMD and LSTM are optimized by Grey Wolf Optimizer (GWO) or Whale Optimization Algorithm (WOA). For example, GWO is used to perform parameter optimization operations on two key parameters of VMD, the number of modal decompositions and the penalty factor, to obtain the optimal combination of the number of modal decompositions and the penalty factor, where the number of modal decompositions is the number of modal components after decomposition, and the penalty factor is the data sequence feature information corresponding to each modal component after decomposition, thereby effectively avoiding over-decomposition or under-decomposition of the historical power load data series during the decomposition process.

[0107] When using GWO to optimize the parameters of VMD, the optimization of the GWO algorithm starts with randomly creating a gray wolf population. Initialize the parameters in GWO and randomly generate the individual positions of the wolves in the wolf pack; define the fitness function according to the problem; in the iterative process, the individual positions in the wolf pack correspond to the modal decomposition number k and penalty factor a in VMD, and calculate the fitness value of the individual gray wolf according to the defined fitness function; update the three best individuals α, β and γ, and recalculate the fitness value of each wolf; until the maximum iteration is reached, the iteration loop is exited; select the parameter combination replaced by the gray wolf position with the best fitness as the key parameter of VMD.

[0108] The following is an example of the gray wolf optimization algorithm GWO. When constructing the gray wolf optimization algorithm, we first need to calculate the individual fitness and mark the three best individuals from high to low. Wolf, the rest are recorded as Wolf. The best solution for optimization is The wolf is determined; secondly, a hunting strategy is formulated, which includes encirclement, hunting, attacking, and searching for prey.

[0109] The mathematical model for encircling prey is:

[0110]

[0111] in, and are the position vectors of the gray wolf and prey, respectively. is the current iteration number, represents the Hadamard product. and is called the coefficient constant, and has:

[0112]

[0113]

[0114] in, and are random vectors between [0,1], It is called the distance control parameter, and its value decreases linearly from 2 to 0 as the number of iterations increases, that is,

[0115]

[0116] In the formula, is the maximum number of iterations.

[0117] The mathematical model for hunting prey is:

[0118]

[0119]

[0120]

[0121]

[0122] in, , and They are , and The wolf's position vector, , and The calculation is similar to , , , The calculation is similar to .when When , the dispersed search for prey strategy is implemented; when , executing a concentrated prey-seeking strategy.

[0123] The movement of the wolves will follow the guidance of the best three wolves. After the three wolves have calculated the current optimal solution, they order the candidate The wolf moves towards its prey and updates its position.

[0124] When attacking prey, The value of According to the above formula, it can be seen that The upper and lower limits are (- , ).

[0125] Finding prey mainly relies on Three wolves achieved. First, disperse to find prey, and build an algorithm that can be controlled To achieve global search; another control coefficient is , Instead of decreasing linearly, there are random values, which helps the algorithm jump out of range.

[0126] After reaching the maximum number of iterations, the best parameter combination output is the combination to be optimized.

[0127] Subsequently, VMD uses an iterative process to complete the search for the optimal solution and finally decomposes the power load data into K components, including The original signal is converted into a pre-set modal number. Decompose into components with different center frequencies . Assume that each different With different center frequencies , then the variational mode decomposition problem is to decompose the power load data into modal component problem, the constraints of the problem are The sum of the modal components is equal to the original sequence, and the optimal solution to the problem is to minimize the sum of the bandwidths of each mode.

[0128] Therefore, the specific steps of the optimized VMD include: calculating each modal analysis signal and mixing it with the corresponding center frequency; demodulating the signal to obtain the bandwidth of each decomposed mode; introducing the penalty factor and Lagrange multipliers The constrained variational problem is transformed into an unconstrained variational problem and solved by the alternating direction method of multipliers.

[0129] Among them, the variational constraint model of the bandwidth of the decomposed mode is:

[0130]

[0131]

[0132] Where: is the main signal to be decomposed, is the operator of convolution operation; is the center frequency.

[0133] Among them, the model of the multiplier alternating direction method is:

[0134]

[0135]

[0136]

[0137] In the formula, is the Wiener filtering of the modal components, is the frequency center. , , , They are Fourier transform of is the number of iterations.

[0138] S350, determining a target data sequence among the multiple original data sequences that meets the correlation requirement with any modal component sequence.

[0139] Although multiple original data sequences are correlated with the historical power load data sequence, since the historical power load data sequence has been decomposed into multiple modal component sequences, the multiple modal component sequences reflect different periodic changes and trend information in the historical power load data sequence. The original data sequence that is correlated with the historical power load data sequence is not necessarily correlated with the multiple modal component sequences decomposed from the historical power load data sequence. Therefore, a target original data sequence that meets the correlation requirements with any modal component sequence is determined among the multiple original data sequences to ensure that the target original data sequence has a certain correlation with at least one modal component sequence.

[0140] In an optional manner, after calculating the correlation coefficient between each original data sequence and each modal component sequence, the original data sequence with the highest correlation coefficient can be used as the target data sequence of this modal component sequence. The correlation coefficient can be a Pearson correlation coefficient, a Spearman correlation coefficient, or a Kendall rank correlation coefficient.

[0141] The original data sequence includes multiple power load related data. The power load data sequence is different from other time series data. The power load data sequence is non-stationary. The generation of power load data is the result of the joint action of many power load related data. The size of power load data is inseparable from power load related data. Using power load related data as the input of the first prediction model can increase the accuracy of the first prediction model. However, the power load related data has a large dimension. Directly adding it to the prediction model as part of the model input will lead to problems such as increased task volume and data redundancy of the first prediction model.

[0142] Therefore, the original data sequence with the highest correlation coefficient can be used as the target data sequence of this modal component sequence, thereby avoiding the problem of excessive workload when training the first prediction model.

[0143] When the Pearson correlation coefficient method is actually used to perform correlation analysis on the original data sequence corresponding to the power load related data and each modal component sequence, the specific formula used is as follows:

[0144]

[0145] In the formula, For variables (original data series) and variables The Pearson coefficient between (modal component sequences) has a value range of [-1,1]; For variables With variables The covariance between Variables With variables The standard deviation of is the sample size, .

[0146] S370, combining each modal component sequence with its corresponding target data sequence to obtain a training sample set.

[0147] Each modal component sequence is combined with its corresponding target original data sequence and used as training samples for model training.

[0148] S390, training the first prediction model according to the training sample set until the prediction error of the first prediction model is less than a preset error threshold, thereby completing the training of the first prediction model, wherein the first prediction model includes a plurality of prediction sub-models corresponding to each modal component sequence respectively.

[0149] Among them, each modal component sequence is combined with the corresponding target original data sequence and used as training samples for model training. The training method of models such as neural networks or decision trees can be adopted to obtain multiple power load data prediction sub-models and form a power load data prediction model group, thereby obtaining the first prediction model.

[0150] Furthermore, in the process of training the first prediction model according to the training sample set, a suitable optimization algorithm can also be used to adjust the parameters of the model training to minimize the model error. For example, when training each prediction sub-model in the first prediction model separately, GWO, gradient descent and stochastic gradient descent algorithms are used to adjust the parameters of the prediction model, which can gradually improve the performance of the model and improve the prediction accuracy of each prediction sub-model in the first prediction model.

[0151] The prediction sequence is obtained by adding the multiple prediction subsequences obtained after training the multiple prediction submodels in the first prediction model, and the total amount sequence is obtained by adding the multiple modal component sequences. The prediction error of the first prediction model is the error between the prediction sequence and the total amount sequence. Among them, the error between the prediction sequence and the total amount sequence is less than the preset error threshold, which can be the MAE or RMSE or MAPE of the prediction sequence and the total amount sequence is less than the preset error threshold. The preset error threshold can be set according to actual use needs, for example, the preset error threshold is set to 0.5.

[0152] Preferably, the first prediction model uses a neural network model. In view of the problem that traditional neural networks ignore earlier information, such as the small gradient of the recurrent neural network (RNN), which is prone to forgetting, the first prediction model uses an LSTM neural network. The unit structure based on the LSTM forget gate, input gate, and output gate makes full use of past information.

[0153] Among them, the forget gate Determines what information should be forgotten, indicating that the previous layer Used for calculation Features, For the activation function, The output is a value between 0 and 1. If the input is 0, it means that the information is completely forgotten; if the input is 1, it means that the information is completely retained. The formula of the forget gate is:

[0154] ;

[0155] Input Gate Similar to the forget gate, it is used to control how much of the current new input information can be added to the memory unit. is the activation function, and the calculation formula of the input gate is:

[0156] ;

[0157] is the candidate value of cell state information, As its activation function, The calculation formula is:

[0158] ;

[0159] The output gate determines the content and form of the output. is the activation function, and the calculation formula is:

[0160] ;

[0161] use The function shrinks the neuron state to between [-1,1], and then multiplies it with the initial output pair by pair to get the output of the model. The calculation formula is:

[0162] ;

[0163] The updated neuron state is divided into two steps, first forgetting the past state, then adding new information. The formula for the process is:

[0164] .

[0165] in, , , , is the weight; , , , is the offset.

[0166] The embodiment of the present application combines each modal component sequence with the corresponding target original data sequence and generates a training sample set for model training, so that each prediction sub-model in the first prediction model can take into account the influence of the target original data sequence on its corresponding modal component sequence during training. Since multiple modal component sequences are obtained by modal decomposition of historical power load data sequences, the influence of each target original data sequence on its corresponding modal component sequence is the influence of the target original data sequence on the historical power load data sequence in one dimension, so that the obtained power load data prediction model group can combine multiple target original data sequences to predict multiple modal component sequences. Compared with the prediction model obtained by only using the historical power load data sequence as a training sample, the first prediction model obtained by the power load data prediction model group training method provided in the embodiment of the present application can make more accurate predictions.

[0167] It should be pointed out that the use process of the first prediction model should be consistent with the training process. If the first prediction model is trained through S310~S390, then in actual use, the prediction process of the first prediction model includes: obtaining multiple actual modal component sequences, wherein the multiple actual modal component sequences are obtained by modal decomposition of the actual historical power load data sequence, and the time point of the actual historical power load data and the prediction time point are less than the preset prediction step; obtaining the actual target original data sequence, wherein the actual target original data sequence is the actual original data sequence that meets the correlation requirements with any actual modal component sequence; using the multiple prediction sub-models in the first prediction model to predict the corresponding actual modal component sequence respectively, and obtain multiple actual component prediction results. The first prediction model is obtained through the above-mentioned S310~S390 training, and the first prediction model group includes multiple prediction sub-models; linearly adding the multiple component prediction results to obtain the prediction result of the first prediction model.

[0168] Among them, the preset prediction step refers to the predictable length of the first prediction model based on historical data. For example, the power load data of the period (11:00-18:00) is input into the first prediction model. The first prediction model can predict the power load data up to 19:00. Since the last time point of the period (11:00-18:00) is 17.45, and the time points 17.45 and 19.00 are separated by four time points: 18.00, 18.15, 18.30, and 18.45, the prediction step of the first prediction model is 5.

[0169] Among them, the historical power load data sequence is modally decomposed to obtain multiple modal component sequences, and the modal component sequences include multiple second time points and multiple power load decomposition data corresponding to the multiple second time points. Ideally, the sum of the power load decomposition data corresponding to the same time point in each modal component sequence should be equal to the power load data corresponding to this time point in the historical power load data sequence. However, in the actual modal decomposition process, there is a decomposition error, which makes the sum of the power load decomposition data at a certain time point obtained by decomposition less than the power load data. Therefore, the decomposition error of the modal decomposition can be used as training data to train the first prediction model together, so that the first prediction model can be combined with the decomposition error of the modal decomposition for prediction, thereby improving the accuracy of the prediction.

[0170] Therefore, in an optional manner, after S330, the training method of the first prediction model further includes:

[0171] S342, determining the difference between the sum of multiple power load decomposition data in multiple modal component sequences corresponding to the same second time point and the power load data of the historical power load data sequence as decomposition residual data of modal decomposition, and the decomposition residual data corresponds to the second time point.

[0172] For example, a historical power load data sequence (4, 2, 5, 3, 4, 8) is modally decomposed to obtain two modal component sequences (1, 1, 3, 1, 2, 4) and (2, 1, 1, 1, 2, 4). The historical power load data sequence is subtracted from the sum of the two modal component sequences to obtain a sequence (1, 0, 1, 1, 0, 0) corresponding to multiple decomposition residual data.

[0173] S344, determining a decomposed residual sequence and a target data sequence among multiple original data sequences that meets the correlation requirement with the decomposed residual sequence, wherein the decomposed residual sequence includes multiple second time points and multiple decomposed residual data corresponding to the multiple second time points.

[0174] S344 is similar to S350, so the execution of S344 may refer to S350 and will not be described in detail here.

[0175] S370 includes: S372, combining the decomposed residual sequence and multiple modal component sequences with the corresponding target data sequences to obtain a training sample set, so that the first prediction model also includes a prediction sub-model corresponding to the decomposed residual sequence.

[0176] The decomposed residual sequence is combined with the corresponding target data sequence, and each modal component sequence is combined with the corresponding target data sequence to obtain a training sample set, and the training sample set is input into the first prediction model to train the first prediction model.

[0177] The embodiment of the present application trains the first prediction model by using the decomposition residual data sequence of modal decomposition, multiple modal component sequences and multiple target data sequences as training sample sets, so that the first prediction model can avoid the problem of inaccurate prediction caused by inaccurate modal decomposition.

[0178] Figure 5 The schematic diagram of the structure of the prediction device for power load data provided by the embodiment of the present application is shown. Figure 5 As shown, the device 400 includes: an acquisition module 410 , a generation module 420 , a first prediction module 430 , a second prediction module 440 and a determination module 450 .

[0179] The acquisition module 410 is used to acquire the target time point, the planned response power load data corresponding to the target time point, and the planned response time data.

[0180] The generating module 420 is used to generate a first independent variable data set according to the target time point, the planned response power load data and the planned response time data.

[0181] The first prediction model 430 is used to predict the power load data corresponding to the target time point through the first prediction model to obtain preliminary prediction data.

[0182] The second prediction model 440 is used to predict the prediction error of the first prediction model according to the first independent variable data set through the second prediction model to obtain target error data.

[0183] The determination module 450 is used to determine the target prediction data corresponding to the target time point according to the preliminary prediction data and the target error data, and complete the prediction of the power load data corresponding to the target time point.

[0184] The power load data prediction device 400 of the embodiment of the present application also includes other modules for executing the various steps of the above-mentioned power load data prediction method embodiment, which will not be described one by one here.

[0185] Figure 6 A schematic diagram of the structure of a power load data prediction device provided in an embodiment of the present application is shown. The specific embodiment of the present application does not limit the specific implementation of the power load data prediction device.

[0186] like Figure 6 As shown, the power load data prediction device 500 may include: a processor (processor) 502 and a memory (memory) 504.

[0187] The memory 504 is used to store a computer program 506. The memory 504 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The computer program 506 may include computer executable instructions.

[0188] The processor 502 is configured to execute a computer program 506 to implement the above-mentioned method embodiment for predicting power load data.

[0189] The processor 502 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the power load data prediction device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.

[0190] An embodiment of the present application provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned method embodiment for predicting power load data is implemented.

[0191] An embodiment of the present application provides a computer program, which can be executed by a processor to implement the above-mentioned power load data prediction method embodiment.

[0192] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the above-mentioned power load data prediction method embodiment is implemented.

[0193] In several embodiments provided in the present application, if any function is implemented in the form of a software function module / unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, part or all of the technical solution of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, server or other electronic device) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (RandomAccess Memory, RAM), disk or optical disk and other media that can store computer program code.

[0194] The algorithm or display provided here are not inherently related to any specific computer, virtual system or other equipment. Various general systems can also be used together with the teaching based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the present application embodiment is not directed to any specific programming language yet. It should be understood that various programming languages ​​can be utilized to realize the content of the present application described here, and the above description of specific languages ​​is to disclose the best mode of implementation of the present application.

[0195] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be constructed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In the claims that list several devices, several units or modules in these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

[0196] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for predicting power load data, characterized in that: The prediction method comprises: Acquire a target time point, planned response power load data corresponding to the target time point, and planned response time data; generating a first independent variable data set according to the target time point, the planned response power load data and the planned response time data; Predicting the actual power load data corresponding to the target time point by a first prediction model to obtain preliminary prediction data; Predicting the error between the actual power load data and the preliminary prediction data according to the first independent variable data set by a second prediction model to obtain target error data; Determine the target prediction data corresponding to the target time point according to the preliminary prediction data and the target error data, and complete the prediction of the power load data corresponding to the target time point; The second prediction model is trained and generated through the following steps: Acquire multiple first time points, multiple response power load data, multiple response time data, and multiple first power load data, wherein the multiple first power load data, the multiple response power load data, and the multiple response time data all correspond one-to-one to the multiple first time points; Predicting the plurality of first power load data according to the plurality of first time points by using the trained first prediction model to obtain a plurality of second power load data corresponding to the plurality of first time points respectively; Determine third power load data according to the first power load data and the second power load data corresponding to the same first time point, and obtain a plurality of third power load data corresponding to the plurality of first time points respectively, wherein the plurality of third power load data are used to characterize the prediction error of the first prediction model; Generate a second independent variable data set according to the plurality of response power load data, the plurality of response time data and the plurality of first time points, and generate a dependent variable data set according to the plurality of third power load data; Training the second prediction model to obtain a plurality of fourth power load data, wherein the plurality of fourth power load data are a plurality of prediction data corresponding to the plurality of first time points respectively obtained by predicting the dependent variable data set according to the second independent variable data set by the second prediction model; If the deviation value between the plurality of fourth power load data and the plurality of third power load data is less than a preset threshold, the training of the second prediction model is terminated to complete the training of the second prediction model; The multiple response time data are determined by the following steps: Acquire the time period data when the demand response occurs and a plurality of original data of the response power loads corresponding to the plurality of first time points respectively; Determine the plurality of responsive power load data according to the plurality of responsive power load original data; Determine a time point in the time period of the time period data among the plurality of first time points as a first type of time point, and determine a time point in the time period of the time period data that is not within the time period of the time period data as a second type of time point; The data corresponding to the first type of time point in the multiple response time data are filled according to a first preset constant, and the data corresponding to the second type of time point in the multiple response time data are filled according to a second preset constant to obtain the multiple response time data, wherein the second preset constant is a non-negative number less than the first preset constant.

2. The prediction method according to claim 1, characterized in that: Before generating the first independent variable data set according to the target time point, the planned response power load data and the planned response time data, the prediction method further includes: Acquiring planned electricity price data corresponding to the target time point; The generating a first independent variable data set according to the target time point, the planned response power load data and the planned response time data comprises: A first independent variable data set is generated according to the planned electricity price data, the target time point, the planned response power load data, and the planned response time data.

3. The prediction method according to claim 1, characterized in that: The filling of the data corresponding to the second type of time point in the plurality of response time data according to the second preset constant also includes: Determine the time points in the second category that are outside the preset time range of the time period of the time period data as the third category time points; Filling the data corresponding to the third type of time point in the plurality of response time data with the second preset constant; Determine the time points in the second category of time points that are within the preset time range as fourth category of time points; The data corresponding to the fourth type of time point in the plurality of response time data are filled according to a preset constant set, wherein the maximum number of the preset constant set is less than the first preset constant, and the minimum number of the preset constant set is greater than or equal to the second preset constant.

4. The prediction method according to claim 1, characterized in that: Before generating the second independent variable data set according to the plurality of response power load data, the plurality of response time data and the plurality of first time points, the training method of the second prediction model further includes: Acquire a plurality of electricity price information respectively corresponding to the plurality of first time points; Mapping the plurality of electricity price information according to a preset electricity price mapping table to obtain a plurality of electricity price data, wherein the plurality of electricity price data correspond one-to-one to the plurality of first time points; The generating of the second independent variable data set according to the plurality of response power load data, the plurality of response time data and the plurality of first time points further comprises: A second independent variable data set is generated based on the plurality of electricity price data, the plurality of response power load data, the plurality of response time data, and the plurality of first time points.

5. The prediction method according to claim 1, characterized in that: Before predicting the real power load data corresponding to the target time point by the first prediction model to obtain preliminary prediction data, the prediction method further includes: The first prediction model is trained, wherein the training method of the first prediction model includes: Inputting a historical power load data sequence and a plurality of original data sequences into the preset first prediction model, wherein the historical power load data sequence includes a plurality of second time points and a plurality of power load data corresponding to the plurality of second time points, and the plurality of original data sequences are all correlated with the historical power load data sequence; Performing modal decomposition on the historical power load data sequence to obtain multiple modal component sequences; Determine a target data sequence among the multiple original data sequences that meets a correlation requirement with any modal component sequence; Each modal component sequence is combined with its corresponding target data sequence to obtain a training sample set; The first prediction model is trained according to the training sample set until the prediction error of the first prediction model is less than a preset error threshold, thereby completing the training of the first prediction model, wherein the first prediction model includes a plurality of prediction sub-models corresponding to each modal component sequence respectively.

6. The prediction method according to claim 5, characterized in that: The modal component sequence includes the plurality of second time points and a plurality of power load decomposition data respectively corresponding to the plurality of second time points; After performing modal decomposition on the historical power load data sequence to obtain a plurality of modal component sequences, the training method of the first prediction model further includes: Determine the difference between the sum of the plurality of power load decomposition data in the plurality of modal component sequences corresponding to the same second time point and the power load data of the historical power load data sequence as decomposition residual data of the modal decomposition, wherein the decomposition residual data corresponds to the second time point; Determine a decomposed residual sequence and a target data sequence among the multiple original data sequences that meets the correlation requirement with the decomposed residual sequence, the decomposed residual sequence comprising the multiple second time points and multiple decomposed residual data corresponding to the multiple second time points; The step of combining each modal component sequence with its corresponding target data sequence to obtain a training sample set includes: The decomposition residual sequence and the multiple modal component sequences are combined with the corresponding target data sequences to obtain a training sample set, so that the first prediction model also includes a prediction sub-model corresponding to the decomposition residual sequence.

7. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the method for predicting power load data according to any one of claims 1 to 6.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for predicting power load data according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Power distribution network line load prediction method based on deep learning

    CN112836876A

  • Short-term load prediction method considering demand response

    CN113222279A

  • Short-term load prediction method based on GRU-Light GBM model fusion and Bayesian optimization

    CN116264388A

  • Two-stage short-term power load combined prediction method considering error compensation

    CN116526450A