Multi-element load prediction method and device, electronic equipment and storage medium
By adopting the multi-element load forecasting method of P-order error correction and adaptive adjustment in load forecasting, the problems of low load forecasting accuracy and small application range in the existing technology are solved, and higher forecasting accuracy and wider application range are achieved. .
Patent Information
- Application Number
- CN202410892729.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-08-23
AI Technical Summary
When existing load forecasting methods deal with load data with strong randomness, the error correction method has a smaller scope of application, greater limitations, and lower prediction accuracy. The resulting residual term lacks interpretability, making it difficult to effectively improve the prediction accuracy. .
A multi-element load forecasting method based on P-order error correction is used to obtain historical data of the power system and input it into the pre-training model for load forecasting. During the forecasting process, the error order is adaptively adjusted, the correction results are output, and multiple error predictions are used. The model corrects the prediction error and reduces the requirement that the input data be decomposable or integrable.
It improves the accuracy and application scope of load forecasting, enhances the interpretability of the forecast model, reduces limitations, and obtains more accurate load forecasting results.
Smart Images

Figure CN118539430A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power load forecasting, and in particular to a multi-element load forecasting method, device, electronic equipment and storage medium. Background Art
[0002] With the continuous development of smart grids, users' electricity consumption data has increased exponentially, which has promoted the rapid development of load forecasting research. Improving the technical level of load forecasting is not only conducive to planning power consumption management, rationally arranging power grid operation modes and unit maintenance plans, and formulating reasonable power supply construction plans, but also conducive to improving the economic and social benefits of the power system. In particular, the technology in the field of load forecasting has undergone a huge transformation in recent years. Many traditional load forecasting methods have gradually been replaced by more accurate data-driven deep learning methods.
[0003] Short-term load forecasting is an important research direction in the current power system. After decades of development, regional load forecasting technology and load forecasting technology for large electricity users such as industry and commerce have become mature. The emergence of deep learning and its excellent performance in time series forecasting tasks have provided new ideas for short-term load forecasting, and many researchers have conducted research on short-term load forecasting based on deep learning, which has led to deep learning becoming one of the mainstream technologies for short-term load forecasting tasks. In recent years, researchers have proposed a large number of load forecasting algorithms based on deep learning. These algorithms are mainly composed of deep learning models based on fully connected neural networks, RNN (Recurrent Neural Network) and CNN (Convolutional Neural Networks).
[0004] The current research focuses and development trends of short-term load forecasting are as follows: (1) Residential user load forecasting will receive more attention; (2) Building a suitable load forecasting model; (3) Reducing the training cost of the load forecasting model; (4) Building a load forecasting benchmark dataset.
[0005] When using a model for load forecasting, error correction helps to improve the accuracy of the forecasting model. Most existing methods extract residual terms through methods such as empirical mode decomposition or Fourier transform, and predict the residual terms. However, empirical mode decomposition requires that the input signal data can be decomposed, and Fourier transform requires that the residual is absolutely integrable. In actual situations, load data with strong randomness may not meet these requirements. In other words, the scope of application of these methods is small and the limitations are large. In addition, the components obtained by these methods often lack interpretability, and the residual terms obtained are not errors caused by the forecasting model itself, but by the non-stationarity of the original data. There are also certain limitations in improving the forecasting accuracy. Summary of the invention
[0006] The present invention provides a multivariate load forecasting method, device, electronic device and storage medium, which are used to solve or partially solve the technical problems of large limitations and low prediction accuracy when using existing related methods for load forecasting.
[0007] The present invention provides a multivariate load forecasting method, the method comprising:
[0008] Obtain historical power data of the power system;
[0009] Inputting the historical power data into a pre-trained multivariate load forecasting model to perform load forecasting based on P-order error correction to obtain a load forecasting result;
[0010] During the load forecasting process, the error order P is adaptively adjusted based on the load forecasting result, and the load forecasting correction result is output.
[0011] Optionally, the multivariate load forecasting model includes a load forecasting model and P error forecasting models, and the inputting of the historical power data into the pre-trained multivariate load forecasting model to perform load forecasting based on P-order error correction to obtain a load forecasting result includes:
[0012] Inputting the historical power data into the load forecasting model to perform preliminary load forecasting to obtain a preliminary load forecast value for the next time period;
[0013] Obtain first error prediction values of P different orders corresponding to the real power data in the previous time period;
[0014] Respectively calculating the prediction error values corresponding to each of the first error prediction values;
[0015] Perform error prediction on each of the prediction error values according to the P error prediction models to obtain second error prediction values of each order;
[0016] The preliminary load forecast value and the second error forecast values of each order are added together to obtain a revised load forecast value corresponding to the next time period as a load forecast result.
[0017] Optionally, the prediction error value is calculated as follows:
[0018]
[0019] in, Indicates the real power data in the previous period Load forecast value The calculated P-order prediction error value; Indicates that in the previous period The calculated P-1 order true error value; Indicates that in the previous period The calculated P-1 order error prediction value; when P=1, The first-order prediction error is and The first-order prediction value of The gap between.
[0020] Optionally, the P error prediction models include a 1st-order error prediction model, a 2nd-order error prediction model, and so on up to a P-order error prediction model, and performing error prediction on each of the prediction error values according to the P error prediction models to obtain each-order second error prediction value includes:
[0021] Inputting the prediction error value of order 1 into the first-order error prediction model for error prediction, and outputting the first-order second error prediction value;
[0022] Inputting the prediction error value of the second order into the second order error prediction model for error prediction, and outputting the second order second error prediction value;
[0023] Similarly, the prediction error value of the P-order is input into the P-order error prediction model for error prediction, and a P-order second error prediction value is output.
[0024] Optionally, the adaptively adjusting the error order P based on the load forecast result includes:
[0025] According to the load forecast result, calculating the forecast result error of the last load forecast;
[0026] The prediction time of the last load prediction is obtained, and based on the prediction time and the prediction result error, the error order of the next load prediction is adaptively adjusted.
[0027] Optionally, the step of adaptively adjusting the error order of the next load forecast based on the forecast time consumption and the forecast result error includes:
[0028] When the prediction time is less than or equal to a preset prediction time threshold, and the prediction result error is less than or equal to a preset prediction error threshold, the error order during the next load prediction is controlled to remain at P.
[0029] Optionally, the step of adaptively adjusting the error order of the next load forecast based on the forecast time consumption and the forecast result error includes:
[0030] When the prediction time is greater than a preset prediction time threshold, and the prediction result error is less than or equal to a preset prediction error threshold, the error order of the next load prediction is controlled to become P-1;
[0031] When the prediction time is less than or equal to a preset prediction time threshold, and the prediction result error is greater than a preset prediction error threshold, the error order of the next load prediction is controlled to become P+1.
[0032] The present invention also provides a multi-element load forecasting device, comprising:
[0033] A historical power data acquisition module is used to acquire historical power data of the power system;
[0034] A P-order error correction load forecasting module, used for inputting the historical power data into a pre-trained multivariate load forecasting model to perform load forecasting based on P-order error correction to obtain a load forecasting result;
[0035] The P-order error adaptive adjustment module is used to adaptively adjust the error order P based on the load prediction result during the load prediction process and output the load prediction correction result.
[0036] The present invention also provides an electronic device, the device comprising a processor and a memory:
[0037] The memory is used to store program code and transmit the program code to the processor;
[0038] The processor is used to execute the multivariate load forecasting method as described above according to the instructions in the program code.
[0039] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, and the program code is used to execute the multivariate load forecasting method as described in any one of the above items.
[0040] It can be seen from the above technical solutions that the present invention has the following advantages:
[0041] A multivariate load forecasting method based on P-order error correction is provided. First, the historical power data of the power system is obtained; then, the historical power data is input into the pre-trained multivariate load forecasting model to perform load forecasting based on P-order error correction to obtain the load forecasting result; in the load forecasting process, the error order P is adaptively adjusted based on the load forecasting result, and the load forecasting correction result is output. Thus, through the load forecasting based on P-order error correction and the adaptive adjustment of the P-order error order, the error level of the prediction model itself is evaluated, and the results generated by the prediction model are corrected, which effectively improves the accuracy of the prediction model and can obtain more accurate load forecasting results. At the same time, this method has no decomposable or absolutely integrable requirements for the input data signal, thereby expanding the scope of application of the method and reducing the limitations of the applicable scenarios of the method. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 is a flow chart of the steps of a multivariate load forecasting method;
[0044] Figure 2 It is a schematic diagram of special transformer load prediction based on P-order error correction;
[0045] Figure 3 It is a schematic diagram of a special transformer load historical data curve;
[0046] Figure 4 It is a schematic diagram of a load forecasting algorithm framework based on deep neural network;
[0047] Figure 5 It is a schematic diagram of a special transformer load forecasting data curve without considering error correction;
[0048] Figure 6 It is a schematic diagram of a special transformer load forecasting data curve considering the second-order error correction;
[0049] Figure 7 The figure is a structural block diagram of a multi-element load forecasting device. DETAILED DESCRIPTION
[0050] The embodiments of the present invention provide a multi-element load forecasting method, device, electronic device and storage medium, which are used to solve or partially solve the technical problems of large limitations and low prediction accuracy when using existing related methods for load forecasting.
[0051] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] As an example, when using a model for load forecasting, error correction helps to improve the accuracy of the forecasting model. Existing methods mostly extract residual terms through methods such as empirical mode decomposition or Fourier transform, and predict the residual terms. However, empirical mode decomposition requires that the input signal data can be decomposed, and Fourier transform requires that the residual is absolutely integrable. In actual situations, load data with strong randomness may not meet these requirements. In other words, the scope of application of these methods is small and the limitations are large. In addition, the components obtained by these methods often lack interpretability, and the residual terms obtained are not errors caused by the forecasting model itself, but by the non-stationarity of the original data. There are also certain limitations in improving the forecasting accuracy.
[0053] Therefore, one of the core inventive points of the embodiment of the present invention is: in view of the deficiencies in the prior art, a multivariate load forecasting method based on P-order error correction is proposed. First, the historical power data of the power system is obtained; then, the historical power data is input into the pre-trained multivariate load forecasting model to perform load forecasting based on P-order error correction to obtain the load forecasting result; in the load forecasting process, the error order P is adaptively adjusted based on the load forecasting result, and the load forecasting correction result is output. Thus, through the load forecasting based on P-order error correction and the adaptive adjustment of the P-order error order, the error level of the prediction model itself is evaluated, and the results generated by the prediction model are corrected, so as to effectively improve the accuracy of the prediction model and obtain more accurate load forecasting results. At the same time, this method has no requirements for the input data signal to be decomposable or absolutely integrable, thereby expanding the scope of application of the method and reducing the limitations of the applicable scenarios of the method.
[0054] In order to enable those skilled in the art to better understand the technical solution proposed in the present invention, before formally introducing the load forecasting method with P-order error correction provided in an embodiment of the present invention, the P-order forecasting related contents involved in the solution are first explained.
[0055] First, the P-order prediction and P-order prediction error are defined.
[0056] Assume that the data needs to be Make predictions, Indicates time. for The predicted value of Then The true value of is the error of the predicted value:
[0057] (1)
[0058] Will The predicted value of That is, the prediction error value referred to in the embodiment of the present invention refers to the error of the prediction value, and its parameter symbol can be expressed as The error prediction value refers to the prediction error value The predicted value of .
[0059] According to the conventional error correction method, As the error corrected The predicted value of . For the convenience of distinction, the following notation is used:
[0060] <1> remember ,Will called The first-order prediction value of .
[0061] <2> remember ,Will called The first-order prediction error of , then formula (1) can be rewritten as:
[0062] (2)
[0063] <3> remember , refer to <1> , and similarly Prediction Error The first-order prediction value of .
[0064] <4> Follow the error correction below:
[0065] (3)
[0066] Will called The second-order prediction value of .
[0067] same, There is also a prediction error, and the second-order prediction error can be similar to formula (2) Defined as The prediction error is:
[0068] (4)
[0069] Therefore, it is possible to obtain The predicted value of , and To perform error correction:
[0070]
[0071] By analogy, we can get the following general definition:
[0072] Definition 1 (P-order prediction): When P ≥ 1, The P-order prediction value is the prediction value obtained after P-1 prediction error corrections, denoted as .
[0073] Definition 2 (P-order prediction error): When P>1, The P-order prediction error for The predicted value of the P-1 order error With the true value The gap between:
[0074] (5)
[0075] When P=1, The first-order prediction error for and The gap between them can be seen in formula (2).
[0076] Definition 3 (P-order prediction error correction): When P ≥ 1, The P-order prediction error correction is the prediction value obtained after P prediction error corrections. As Predicted value of:
[0077] (6)
[0078] Reference Figure 1 , shows a flowchart of a multivariate load forecasting method provided by an embodiment of the present invention, which may specifically include the following steps:
[0079] Step 101, obtaining historical power data of the power system;
[0080] Taking the prediction of special transformer load as an example, the historical power data of the power system obtained in this step is the historical power consumption data of several different types of loads (such as refrigeration, ventilation, indoor equipment, etc.) under the special transformer over a continuous period of time. Through the historical power consumption data, the load power of these different types of loads in the future period is predicted respectively.
[0081] Assumptions For the The load is Load (active) power data at the moment, , The present invention requires this The load in the future The load power over time is predicted.
[0082] Step 102, inputting the historical power data into a pre-trained multivariate load forecasting model to perform load forecasting based on P-order error correction to obtain a load forecasting result;
[0083] Reference Figure 2 , showing a schematic diagram of a special transformer load prediction based on P-order error correction provided by an embodiment of the present invention.
[0084] Combination Figure 2 The multivariate load forecasting model referred to in the embodiment of the present invention may mainly include a load forecasting model and P error forecasting models. Among them, the P error forecasting models may specifically include a 1st order error forecasting model, a 2nd order error forecasting model, and so on to a Pth order error forecasting model. The load forecasting model and the P error forecasting models may run independently and in parallel.
[0085] Specifically, the process of inputting historical power data into the pre-trained multivariate load forecasting model to perform load forecasting based on P-order error correction and obtaining load forecasting results can be achieved by executing the following sub-steps:
[0086] Step S01: ( ) Historical power data corresponding to the time Input into the load forecasting model for preliminary load forecasting and obtain the next time period (i.e. future Preliminary load forecast value of time .
[0087] Step S02: Obtain first error prediction values of P different orders corresponding to the real power data in the previous time period.
[0088] In order to use the P-order prediction method as described above, the embodiment of the present invention assumes that each time period in the past The error prediction values of each order ( ) are also available.
[0089] Step S03: respectively calculating the prediction error values corresponding to the first error prediction values.
[0090] Specifically, according to the above formula (5), the The errors of each order of a special variable load , as the historical data of error prediction. That is:
[0091]
[0092] in, Indicates the real power data in the previous period Load forecast value The calculated P-order prediction error value; Indicates that in the previous period The calculated P-1 order true error value; Indicates that in the previous period The calculated P-1 order error prediction value; when P=1, The first-order prediction error is and The first-order prediction value of The gap between.
[0093] Step S04: performing error prediction on each prediction error value according to P error prediction models to obtain second error prediction values of each order.
[0094] Since the prediction error is related to the prediction model itself, in order to combine the advantages of different prediction models to reduce the prediction error, the present invention uses different prediction models to predict the load data and each order error. Finally, the prediction results output by each prediction model are added together to obtain the final special transformer load prediction data based on P-order error correction.
[0095] Specifically, combined Figure 2 , for the For each special variable load, the error prediction is performed on each prediction error value according to P error prediction models to obtain the second error prediction value of each order, which can be:
[0096] The prediction error value of order 1 Input to the first-order error prediction model for error prediction, and output the first-order second error prediction value ;
[0097] The prediction error value of order 2 Input to the second-order error prediction model for error prediction, and output the second-order second error prediction value ;
[0098] By analogy, the prediction error value of order P is Input to the P-order error prediction model for error prediction, and output the P-order second error prediction value .
[0099] Step S05: The preliminary load forecast value and the second error forecast values of each order are added together to obtain a revised load forecast value corresponding to the next time period as a load forecast result.
[0100] Finally, the prediction results output by each prediction model are added together to obtain the final special transformer load prediction data based on P-order error correction:
[0101]
[0102] It is understandable that the load forecasting model and each error forecasting model used here can be constructed using traditional methods such as vector autoregression, integrated moving average autoregression, logistic regression, and convolutional neural network, long short-term memory, support vector machine, extreme gradient boosting and other machine learning methods as a framework. Since the prediction model used in the prediction process is not the focus of the technical solution of the present invention, it will not be described in detail. Those skilled in the art can refer to the relevant implementation methods of the prediction model for implementation, and the present invention does not limit this.
[0103] Step 103: During the load forecasting process, the error order P is adaptively adjusted based on the load forecasting result, and a load forecasting correction result is output.
[0104] The use of a load forecasting method based on P-order error correction will affect the time consumption of the forecasting algorithm and the accuracy of the forecasting results. Therefore, in the load forecasting process, in addition to using a forecasting method based on P-order error correction, the embodiment of the present invention also adaptively adjusts the error order P for the next load forecast based on the time consumption and accuracy analysis of the previous forecast.
[0105] Specifically, the process of adaptively adjusting the error order P based on the load forecast result can be achieved by executing the following sub-steps S11 to S12:
[0106] Step S11: Calculate the prediction result error of the last load prediction based on the load prediction result.
[0107] remember For the The error order used in the time-dependent variable load forecasting, It is the mean absolute percentage error (MAPE) of the prediction results in the current H period:
[0108]
[0109] in, is the true value; is the predicted value; To avoid setting the constant with a denominator of 0, you can ;remember is the acceptable mean absolute percentage error.
[0110] Step S12: Obtain the prediction time of the last load prediction, and based on the prediction time and the prediction result error, adaptively adjust the error order of the next load prediction.
[0111] set up The time taken to predict the last time (it can also be understood as this time, for the next prediction, this prediction is the last prediction). The prediction time is acceptable.
[0112] In the specific implementation, based on the prediction time and the prediction result error, the error order of the next load prediction is adaptively adjusted, which can be: when the prediction time is less than or equal to the preset prediction time threshold , and the prediction result error is less than or equal to the preset prediction error threshold When , the error order of the next load forecast is controlled to be kept as P, that is, .
[0113] That is, when both as well as When the two conditions are met, the error order at time t+1 is kept consistent with the error order at time t. For example, if the error order at time t is 3rd order, the error order at time t+1 is still 3rd order.
[0114] In another optional embodiment, based on the prediction time and the prediction result error, the error order of the next load prediction is adaptively adjusted, which can also be:
[0115] When the predicted time is greater than the preset predicted time threshold , and the prediction result error is less than or equal to the preset prediction error threshold When , the error order of the next load forecast becomes P-1, that is, .
[0116] That is to say, when the prediction error of this time (corresponding to time t) is within the acceptable prediction error accuracy range, but the prediction time exceeds the acceptable prediction time range, the error order P of the next prediction (corresponding to time t+1) can be reduced by adjustment, thereby reducing the prediction time of the next prediction and improving the calculation efficiency.
[0117] When the predicted time is less than or equal to the preset predicted time threshold , and the prediction result error is greater than the preset prediction error threshold When , the error order of the next load forecast becomes P+1, that is, .
[0118] That is to say, when the current prediction error exceeds the acceptable prediction error accuracy range, but the prediction time is within the acceptable prediction time range, it is necessary to increase the error order P in the next adjustment to reduce the prediction error in the next load forecast and improve the prediction accuracy.
[0119] In addition, in addition to the prediction error calculation method introduced in the above embodiment, methods such as wavelet transform, variational mode decomposition, empirical mode decomposition and their variants can also be used to calculate the residual term as the prediction error. Based on different error calculation methods, the definitions and calculation methods of each order of prediction errors in the P-order error correction may be different. Those skilled in the art can make adjustments according to actual conditions based on the P-order error correction principle introduced in the embodiment of the present invention, and the present invention does not limit this.
[0120] It should be pointed out that the load forecasting method based on P-order error correction introduced in the present invention can be applied to all power data forecasts, such as wind power, photovoltaic and other renewable energy output forecasts, electric vehicle charging load forecasts, load voltage fluctuation forecasts, etc., in addition to being applied to the special transformer load power consumption data forecasts shown in the embodiments.
[0121] It should be noted that, in order to enable those skilled in the art to better distinguish data of the same type but with different actual meanings, some technical features are distinguished by the first and the second in the embodiments of the present invention. The first and the second are only used for data distinction and have no other special meanings. It can be understood that the present invention is not limited to this.
[0122] In an embodiment of the present invention, a multivariate load forecasting method based on P-order error correction is proposed. First, the historical power data of the power system is obtained; then, the historical power data is input into the pre-trained multivariate load forecasting model to perform load forecasting based on P-order error correction to obtain a load forecasting result; in the load forecasting process, the error order P is adaptively adjusted based on the load forecasting result, and the load forecasting correction result is output. Thus, through load forecasting based on P-order error correction and adaptive adjustment of the P-order error order, the error level of the prediction model itself is evaluated, and the results generated by the prediction model are corrected, thereby effectively improving the accuracy of the prediction model and obtaining a more accurate load forecasting result. At the same time, this method has no requirements for the input data signal to be decomposable or absolutely integrable, thereby expanding the scope of application of the method and reducing the limitations of the applicable scenarios of the method.
[0123] For ease of understanding, the embodiment of the present invention is described below by using a specific example.
[0124] Figure 3 A schematic diagram of a special transformer load historical data curve is shown. Figure 3 It can be seen that the historical load data used in this example mainly includes the historical electricity consumption data of four different types of loads under the special transformer for seven consecutive days.
[0125] Use Figure 4 The load forecasting algorithm based on deep neural network shown in the figure predicts the load power consumption data for the next three days based on the load power consumption historical data and meteorological data (including meteorological historical data and meteorological forecast data) to obtain load forecast data.
[0126] (a) Special transformer load forecasting without considering error correction
[0127] First, without considering error correction, directly use Figure 4 The load forecasting algorithm in the load forecasting is used for load forecasting. The results are as follows Figure 5 As shown in Figure 2, the mean absolute percentage error (MAPE) can be calculated to be 24.1211%.
[0128] (b) Special transformer load forecasting considering second-order error correction The load forecasting algorithm considering error correction proposed in the embodiment of the present invention is adopted, and P=2 is taken, that is, the second-order forecasting error is considered. The forecasting result is as follows Figure 6 As shown in Figure 2, the mean absolute percentage error (MAPE) can be calculated to be 8.8754%.
[0129] It can be seen that the load forecasting algorithm considering P-order error correction proposed by the present invention has a certain improvement effect on the prediction accuracy. By adopting the load forecasting algorithm proposed in the embodiment of the present invention, a load forecasting result with high accuracy can be obtained. At the same time, the method has no requirement for the input data signal to be decomposable or absolutely integrable, thereby expanding the scope of application of the method and having fewer limitations.
[0130] Reference Figure 7 , shows a structural block diagram of a multi-element load forecasting device provided by an embodiment of the present invention, which may specifically include:
[0131] The historical power data acquisition module 701 is used to acquire the historical power data of the power system;
[0132] A P-order error correction load forecasting module 702, used for inputting the historical power data into a pre-trained multivariate load forecasting model to perform load forecasting based on P-order error correction to obtain a load forecasting result;
[0133] The P-order error adaptive adjustment module 703 is used to adaptively adjust the error order P based on the load prediction result during the load prediction process, and output the load prediction correction result.
[0134] In an optional embodiment, the multivariate load forecasting model includes a load forecasting model and P error forecasting models, and the P-order error correction load forecasting module 702 includes:
[0135] A preliminary load forecasting module, used for inputting the historical power data into the load forecasting model to perform preliminary load forecasting and obtain a preliminary load forecast value for the next time period;
[0136] A first error prediction value acquisition module is used to obtain P first error prediction values of different orders corresponding to the real power data in the previous time period;
[0137] A prediction error value calculation module, used to respectively calculate the prediction error values corresponding to each of the first error prediction values;
[0138] A second error prediction value calculation module of each order, used for performing error prediction on each of the prediction error values according to the P error prediction models to obtain a second error prediction value of each order;
[0139] The modified load forecast value calculation module is used to add the preliminary load forecast value and the second error prediction values of each order to obtain a modified load forecast value corresponding to the next time period as a load forecast result.
[0140] In an optional embodiment, the prediction error value is calculated as follows:
[0141]
[0142] in, Indicates the real power data in the previous period Load forecast value The calculated P-order prediction error value; Indicates that in the previous period The calculated P-1 order true error value; Indicates that in the previous period The calculated P-1 order error prediction value; when P=1, The first-order prediction error is and The first-order prediction value of The gap between.
[0143] In an optional embodiment, the P error prediction models include a 1st order error prediction model, a 2nd order error prediction model, and so on to a Pth order error prediction model, and the second error prediction value calculation module of each order includes:
[0144] A first-order error prediction module, used for inputting a prediction error value of the first order into the first-order error prediction model for error prediction, and outputting a first-order second error prediction value;
[0145] A second-order error prediction module, used for inputting a second-order prediction error value into the second-order error prediction model for error prediction, and outputting a second-order second error prediction value;
[0146] The P-order error prediction module is used to input a prediction error value of the P-order into the P-order error prediction model for error prediction, and output a P-order second error prediction value.
[0147] In an optional embodiment, the P-order error adaptive adjustment module 703 includes:
[0148] A prediction result error calculation module, used to calculate the prediction result error of the last load prediction based on the load prediction result;
[0149] The adaptive adjustment module is used to obtain the prediction time of the last load prediction, and based on the prediction time and the prediction result error, adaptively adjust the error order of the next load prediction.
[0150] In an optional embodiment, the adaptive adjustment module includes:
[0151] The first submodule is adaptively adjusted to control the error order of the next load forecast to remain at P when the forecast time is less than or equal to a preset forecast time threshold and the forecast result error is less than or equal to a preset forecast error threshold.
[0152] In an optional embodiment, the adaptive adjustment module further includes:
[0153] The second submodule is adaptively adjusted, and is used to control the error order of the next load forecast to become P-1 when the forecast time is greater than a preset forecast time threshold and the forecast result error is less than or equal to a preset forecast error threshold;
[0154] The third submodule is adaptively adjusted to control the error order of the next load forecast to become P+1 when the forecast time is less than or equal to a preset forecast time threshold and the forecast result error is greater than a preset forecast error threshold.
[0155] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the aforementioned method embodiment.
[0156] An embodiment of the present invention further provides an electronic device, the device comprising a processor and a memory:
[0157] The memory is used to store the program code and transmit the program code to the processor;
[0158] The processor is used to execute the multi-element load forecasting method of any embodiment of the present invention according to the instructions in the program code.
[0159] An embodiment of the present invention further provides a computer-readable storage medium, which is used to store program codes, and the program codes are used to execute the multivariate load forecasting method of any embodiment of the present invention.
[0160] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0161] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0162] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0163] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0164] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0165] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A multivariate load forecasting method, characterized in that: include: Obtain historical power data of the power system; Inputting the historical power data into a pre-trained multivariate load forecasting model to perform load forecasting based on P-order error correction to obtain a load forecasting result; During the load forecasting process, the error order P is adaptively adjusted based on the load forecasting result, and the load forecasting correction result is output.
2. The multivariate load forecasting method according to claim 1, characterized in that: The multivariate load forecasting model includes a load forecasting model and P error forecasting models. The historical power data is input into the pre-trained multivariate load forecasting model to perform load forecasting based on P-order error correction to obtain a load forecasting result, including: Inputting the historical power data into the load forecasting model to perform preliminary load forecasting to obtain a preliminary load forecast value for the next time period; Obtain first error prediction values of P different orders corresponding to the real power data in the previous time period; Respectively calculating the prediction error values corresponding to each of the first error prediction values; Perform error prediction on each of the prediction error values according to the P error prediction models to obtain second error prediction values of each order; The preliminary load forecast value and the second error forecast values of each order are added together to obtain a revised load forecast value corresponding to the next time period as a load forecast result.
3. The multivariate load forecasting method according to claim 2, characterized in that: The prediction error value is calculated as follows: in, Indicates the real power data in the previous period Load forecast value The calculated P-order prediction error value; Indicates that in the previous period The calculated P-1 order true error value; Indicates that in the previous period The calculated P-1 order error prediction value; when P=1, The first-order prediction error is and The first-order prediction value of The gap between.
4. The multivariate load forecasting method according to claim 2, characterized in that: The P error prediction models include a 1st order error prediction model, a 2nd order error prediction model, and so on to a Pth order error prediction model, and performing error prediction on each of the prediction error values according to the P error prediction models to obtain each order second error prediction value includes: Inputting the prediction error value of order 1 into the first-order error prediction model for error prediction, and outputting the first-order second error prediction value; Inputting the prediction error value of the second order into the second order error prediction model for error prediction, and outputting the second order second error prediction value; Similarly, the prediction error value of the P-order is input into the P-order error prediction model for error prediction, and a P-order second error prediction value is output.
5. The multivariate load forecasting method according to claim 1, characterized in that: The adaptively adjusting the error order P based on the load forecast result includes: According to the load forecast result, calculating the forecast result error of the last load forecast; The prediction time of the last load prediction is obtained, and based on the prediction time and the prediction result error, the error order of the next load prediction is adaptively adjusted.
6. The multivariate load forecasting method according to claim 5, characterized in that: The step of adaptively adjusting the error order of the next load forecast based on the forecast time consumption and the forecast result error includes: When the prediction time is less than or equal to a preset prediction time threshold, and the prediction result error is less than or equal to a preset prediction error threshold, the error order during the next load prediction is controlled to remain at P.
7. The multivariate load forecasting method according to claim 5, characterized in that: The step of adaptively adjusting the error order of the next load forecast based on the forecast time consumption and the forecast result error includes: When the prediction time is greater than a preset prediction time threshold, and the prediction result error is less than or equal to a preset prediction error threshold, the error order of the next load prediction is controlled to become P-1; When the prediction time is less than or equal to a preset prediction time threshold, and the prediction result error is greater than a preset prediction error threshold, the error order of the next load prediction is controlled to become P+1.
8. A multivariate load forecasting device, characterized in that: include: A historical power data acquisition module is used to acquire historical power data of the power system; A P-order error correction load forecasting module, used for inputting the historical power data into a pre-trained multivariate load forecasting model to perform load forecasting based on P-order error correction to obtain a load forecasting result; The P-order error adaptive adjustment module is used to adaptively adjust the error order P based on the load prediction result during the load prediction process and output the load prediction correction result.
9. An electronic device, characterized in that: The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the multivariate load forecasting method according to any one of claims 1-7 according to the instructions in the program code.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program code, and the program code is used to execute the multivariate load forecasting method according to any one of claims 1-7.
Citation Information
Cited By
Power load prediction method, device, equipment and medium
CN120497915A
Meter box load prediction method and device, storage medium and computer program product
CN122051952A
