Medium and long term peak load prediction method, system, device and medium

Through the model optimized by recurrent neural network and ant colony algorithm, combined with Copula function analysis, the problem of inaccurate mid- and long-term peak load prediction of the power grid is solved, and more accurate mid- and long-term peak load prediction and power grid management support are achieved.

CN118644101APending Publication Date: 2024-09-13STATE GRID BEIJING ELECTRIC POWER CO
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410691724.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

When existing peak load prediction methods deal with large-scale, high-dimensional, and highly time-sequential power grid data, it is difficult to accurately capture the dynamic changes of medium and long-term loads, resulting in deviations in the prediction results.

Method used

Recurrent neural network is used to model peak load data, and the ant colony algorithm is combined to optimize model parameters. The correlation of external influencing factors is analyzed through the Copula function, and the optimized model is input for mid- and long-term peak load prediction.

Benefits of technology

It significantly improves the accuracy and network performance of mid- and long-term peak load prediction, can identify the occurrence moment and amplitude of peak load, provides more accurate power grid operation information, and supports refined management of the power grid through detailed time-period prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118644101A
    Figure CN118644101A
Patent Text Reader

Abstract

The invention relates to the technical field of artificial intelligence, in particular to a medium and long term peak load prediction method, system and device and a medium. Modeling the obtained peak load data by using a recurrent neural network; optimizing parameters of the long short-term memory network model by adopting an ant colony algorithm by utilizing the obtained long short-term memory network model; performing characteristic analysis on the obtained medium-and-long-term load prediction data of the power grid by using the optimized long-and-short-term memory network model; quantizing the external influence factor data of the peak load characteristic analysis result to obtain quantized external influence factor data, and quantitatively analyzing the correlation degree between the quantized external influence factor data based on a Copula function; and inputting the obtained peak load characteristic analysis result and the strong correlation influence factor data adapted to the target attribution industry into the optimized long and short term memory network model to obtain a peak load prediction result. According to the method, the accuracy of medium and long-term peak load prediction in the time sequence prediction problem is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a medium- and long-term peak load forecasting method, system, device and medium. Background Art

[0002] Peak load forecasting can help grid dispatchers comprehensively evaluate and measure the peak response capabilities of a group of units before the load peaks rapidly, and comprehensively consider whether online rapid adjustments to the peak response capabilities are needed to maintain a balance between electricity supply and demand.

[0003] Currently, the methods for peak load prediction mainly include multivariate linear regression, time series method, support vector machines (SVM), Bayesian network, etc. However, these traditional statistical analysis methods are often unable to accurately capture the dynamic changes of load when processing large-scale, high-dimensional, and time-series power grid data, resulting in deviations in the prediction results.

[0004] In recent years, cutting-edge technologies represented by deep learning have developed rapidly in the field of power load forecasting with their powerful nonlinear mapping and feature extraction capabilities. More and more prediction algorithms based on deep neural networks have been applied to power grid peak load forecasting. The main methods include long short-term memory neural network (LSTM) prediction method, short-term load forecasting method based on attention mechanism long short-term memory neural network (attention-LSTM) and bidirectional long short-term memory network (Bi-LSTM) load forecasting considering feature selection. All of the above methods can achieve high prediction accuracy in the overall load with weak volatility and high aggregation level (such as municipal level and system level). However, the model structure of these deep learning is relatively simple, and can only predict short-term and ultra-short-term, which is still a challenge for medium- and long-term peak load forecasting. Summary of the invention

[0005] The purpose of the present invention is to provide a medium- and long-term peak load forecasting method, system, device and medium to solve the problem of inaccurate medium- and long-term peak load forecasting in time series forecasting problems.

[0006] To achieve the above purpose, the following technical solution is adopted.

[0007] A medium- and long-term peak load forecasting method comprises the following steps:

[0008] Obtain peak load data;

[0009] The peak load data obtained are modeled using a recurrent neural network to obtain a long short-term memory network model;

[0010] An ant colony algorithm is used to optimize the parameters of the long short-term memory network model to obtain an optimized long short-term memory network model;

[0011] Obtain medium- and long-term load forecast data for the power grid, use the optimized long short-term memory network model to perform characteristic analysis on the obtained medium- and long-term load forecast data for the power grid, and obtain peak load characteristic analysis results; quantify the external influencing factor data of the peak load characteristic analysis results to obtain quantified external influencing factor data, and quantitatively analyze the correlation between the quantified external influencing factor data based on the Copula function to obtain strongly correlated influencing factor data adapted to the target industry;

[0012] The obtained peak load characteristic analysis results and the strongly correlated influencing factor data adapted to the target industry are input into the optimized long short-term memory network model to obtain the medium- and long-term peak load forecast results.

[0013] Optionally, the method further includes using an XGBoost classifier to divide the peak load prediction results to obtain peak load prediction results for different time periods.

[0014] Optionally, it also includes obtaining the target area's historical annual power grid load data as sample data, predicting the sample data using an optimized long short-term memory network model to obtain the target area's historical annual peak load prediction results, comparing the target area's historical annual peak load prediction results with the target area's historical annual actual peak load data, and evaluating the prediction performance of the optimized long short-term memory network model.

[0015] Optionally, the step of using a recurrent neural network to model the acquired peak load data to obtain a long short-term memory network model specifically includes:

[0016] The peak load data acquired are modeled using a recurrent neural network to obtain an initial model;

[0017] A gating mechanism is added to the initial model to obtain a long short-term memory network model.

[0018] Optionally, the step of optimizing the parameters of the long short-term memory network model by using an ant colony algorithm to obtain an optimized long short-term memory network model specifically includes:

[0019] Construct an ant colony algorithm model, including setting the basic parameters of the ant colony algorithm, constructing the solution space of the ant colony algorithm, and updating the pheromone of the ant colony algorithm;

[0020] The ant colony algorithm model is used to optimize the parameters of the long short-term memory network model to obtain the optimized long short-term memory network model.

[0021] Optionally, the steps of using the optimized long short-term memory network model to perform characteristic analysis on the acquired medium- and long-term load forecast data of the power grid to obtain peak load characteristic analysis results; quantifying the external influencing factor data of the peak load characteristic analysis results to obtain quantified external influencing factor data, and quantitatively analyzing the correlation between the quantified external influencing factor data based on the Copula function to obtain the strongly correlated influencing factor data adapted to the target industry specifically include:

[0022] The characteristics of the obtained medium- and long-term load forecast data of the power grid are analyzed, and the highest amplitude is selected as the peak load, and the corresponding time is the peak load occurrence time, and the peak load and the peak load occurrence time are taken as the peak load characteristic analysis results;

[0023] The peak load characteristics of different industries at different times in the peak load characteristics analysis results are analyzed using descriptive and curve indicators, and the multivariate external influencing factors of the peak load characteristics are quantitatively described to obtain quantitative external influencing factor data;

[0024] Based on the Copula function, the correlation between the quantified external influencing factor data is quantitatively analyzed to obtain the strongly correlated influencing factor data adapted to the target industry.

[0025] Optionally, the step of optimizing the parameters of the long short-term memory network model by using an ant colony algorithm model to obtain an optimized long short-term memory network model specifically includes:

[0026] Set the basic parameters of the ant colony algorithm and initialize the parameters, including the maximum number of iterations of the ant colony and the number of ants;

[0027] The solution space of the ant colony algorithm is constructed based on the parameters of the long short-term memory network model to simulate the parameter search process;

[0028] In each iteration of the ant colony algorithm, the parameters of the long short-term memory network model are updated through the back-propagation algorithm to minimize the prediction error;

[0029] According to the update rules of the ant colony algorithm, the pheromone concentration is adjusted according to the performance of the ants in the solution space to guide the search process to a better area in the solution space;

[0030] After each iteration of the ant colony algorithm, the performance of the long short-term memory network model is evaluated and the optimal parameter combination is recorded;

[0031] Determine whether the ant colony algorithm has reached the preset maximum number of iterations. If so, stop the iteration;

[0032] The final parameter settings are selected from the recorded optimal parameter combinations to obtain the optimized long short-term memory network model.

[0033] A medium- and long-term peak load forecasting system, comprising:

[0034] A modeling module is used to obtain peak load data, and use a recurrent neural network to model the obtained peak load data to obtain a long short-term memory network model;

[0035] An ant colony algorithm optimization module, used to optimize the parameters of the long short-term memory network model using an ant colony algorithm to obtain an optimized long short-term memory network model;

[0036] The characteristic analysis module is used to obtain medium- and long-term load forecast data of the power grid, and use the optimized long short-term memory network model to perform characteristic analysis on the obtained medium- and long-term load forecast data of the power grid to obtain the peak load characteristic analysis results; quantify the external influencing factor data of the peak load characteristic analysis results to obtain the quantified external influencing factor data, and quantitatively analyze the correlation between the quantified external influencing factor data based on the Copula function to obtain the strongly correlated influencing factor data adapted to the target industry;

[0037] The prediction result generation module is used to input the obtained peak load characteristic analysis results and the strongly correlated influencing factor data adapted to the target industry into the optimized long short-term memory network model to obtain the medium- and long-term peak load prediction results.

[0038] An electronic device comprises a processor and a memory, wherein the processor is used to execute a computer program stored in the memory to implement a medium- and long-term peak load forecasting method.

[0039] A computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, a medium- to long-term peak load forecasting method is implemented.

[0040] Compared with the prior art, the present invention has the following beneficial effects:

[0041] 1. The present invention realizes automatic adjustment of network parameters and seeks the optimal solution by integrating the ant colony algorithm and the LSTM model. This method effectively solves the problem that the traditional model is difficult to process nonlinear power grid load data, has better network performance and higher prediction accuracy, enhances the ability to capture the peak load characteristics of the power grid, achieves significant performance improvement in medium- and long-term peak load prediction, and solves the problem of inaccurate medium- and long-term peak load prediction in time series prediction problems.

[0042] 2. The present invention can identify the time when peak load occurs and its amplitude by performing characteristic analysis on medium- and long-term load forecast data of the power grid, thereby providing key information for power grid operation.

[0043] 3. The present invention can more accurately simulate and predict peak load changes by quantifying the external influencing factor data of the peak load characteristic analysis results.

[0044] 4. Based on the quantitative analysis of the Copula function, the present invention can measure the correlation between different external influencing factors, thereby identifying the factors that have the most significant impact on the peak load.

[0045] 5. The XGBoost classifier is used for time period prediction. The present invention can provide more detailed peak load prediction results, which is helpful for the refined management of the power grid.

[0046] 6. Through comparative analysis with historical data, the present invention can evaluate the performance of the prediction model and ensure the reliability and practicality of the prediction results. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is the LSTM unit structure of the medium- and long-term peak load prediction method of the present invention.

[0048] Figure 2 It is the Bi-LSTM network structure of the medium- and long-term peak load forecasting method of the present invention;

[0049] Figure 3 is a peak load prediction flow chart of the medium- and long-term peak load prediction method of the present invention;

[0050] Figure 4 It is a graph of power grid load forecasting results based on Bi-LSTM in the medium- and long-term peak load forecasting method of the present invention;

[0051] Figure 5 This is a comparison result diagram of the 2023 load forecast and actual load based on Bi-LSTM in the medium- and long-term peak load forecasting method of the present invention;

[0052] Figure 6 It is a graph of the error distribution results of the Bi-LSTM prediction model in the medium- and long-term peak load prediction method of the present invention.

[0053] Figure 7 It is a graph of power grid load forecasting results based on ACO-LSTM in the medium- and long-term peak load forecasting method of the present invention;

[0054] Figure 8 This is a comparison result diagram of the 2023 load forecast and actual load based on ACO-LSTM in the medium- and long-term peak load forecasting method of the present invention;

[0055] Fig. 9 It is a graph of the error distribution results of the ACO-LSTM prediction model in the medium- and long-term peak load prediction method of the present invention.

[0056] Fig.10 It is a block diagram of an embodiment of a medium- and long-term peak load forecasting device of the present invention. DETAILED DESCRIPTION

[0057] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.

[0058] The following detailed description is an exemplary description, which is intended to provide further detailed description of the present invention. Unless otherwise specified, all technical terms used in the present invention have the same meaning as those generally understood by those skilled in the art to which the present application belongs. The terms used in the present invention are only for describing specific embodiments, and are not intended to limit exemplary embodiments according to the present invention.

[0059] Embodiment 1,

[0060] like Figure 1 and Figure 3 As shown, a medium- and long-term peak load forecasting method includes the following steps:

[0061] S1. Use a recurrent neural network to model the acquired peak load data and obtain a long short-term memory network model;

[0062] Specifically, a recurrent neural network (RNN) is used to model the peak load, and a long short-term memory network (LSTM) and a bidirectional long short-term memory network (Bi-LSTM) neural network model are obtained.

[0063] It includes the following sub-steps:

[0064] S1.1, using a recurrent neural network to model the acquired peak load data and obtain an initial model;

[0065] Specifically, in order to analyze and predict this type of time series data with certain periodicity and volatility, a recurrent neural network (RNN) is used to model the peak load.

[0066] S1.2. Add a gating mechanism to the initial model to obtain a long short-term memory network model.

[0067] Specifically, Figure 1 As shown, LSTM is a special RNN that uses the original RNN hidden layer state h t Based on this, the unit state c is introduced t To preserve long-term memory, a gating mechanism is added based on step 1.1, which includes three control gate structures: input gate i t , output gate o t and forget gate f t ,like Figure 1 shown.

[0068] Step 1.2.1, from step 1.2, we can know that the forget gate of LSTM is as follows:

[0069]

[0070] f t =σ(W f ·[h t-1 ,x t ]+b f (1-1)

[0071] Where: C t is the unit state, used to store long-term memory; C t-1 is the state of the upper memory unit; f t is the forget gate, indicating C t-1 Which features of are used to calculate C t ; W f is the weight matrix of the forget gate; b f is the bias of the forget gate; σ is generally a Sigmoid function.

[0072] Step 1.2.2, from step 1.2, we can know that the input gate of LSTM is as follows:

[0073]

[0074] i t =σ(W i x t +U i h t-1 +b (1-2)

[0075] Where: W i , W c Represents the input gate i t and candidate status The weight matrix of i , b c is the corresponding bias. Step 1.2.3, from step 1.2, we can know that the output gate of LSTM, the formula is as follows:

[0076] o t =σ(W0[h t-1 ,x t ]+b0)

[0077] h t =o t *tanh(C t ) (1-3)

[0078] In the formula, h t By output gate o t and cell status C t Get; the mean value of b0 is initialized to 1.

[0079] like Figure 2 As shown, it also includes step S1.3, building a Bi-LSTM neural network model based on step S1.2, which is formed by combining forward and reverse LSTM, and the structure is as follows Figure 2 As shown. The forward LSTM can obtain the past data information of the input sequence, and the backward LSTM can obtain the future data information of the input sequence. The forward and backward LSTM training is implemented twice for the time series, further improving the globality and completeness of feature extraction. The calculation formula of the hidden layer of the Bi-LSTM network is shown as follows:

[0080]

[0081] Where: x t is the input data at time t; is the output of the forward LSTM hidden layer; is the output of the reverse LSTM hidden layer; α, β are constant coefficients, representing The weight of .

[0082] S2. Using the obtained long short-term memory network model, an ant colony algorithm is used to optimize the parameters of the long short-term memory network model to obtain an optimized long short-term memory network model.

[0083] Specifically, on the basis of step S1, the ant colony algorithm (ACO) is used to optimize the parameters of the LSTM memory network model to make the model parameters more accurate and the peak load prediction effect better.

[0084] It includes the following sub-steps:

[0085] S2.1. Construct an ant colony algorithm model, including setting basic parameters of the ant colony algorithm, constructing the solution space of the ant colony algorithm, and updating pheromones of the ant colony algorithm;

[0086] Specifically, the basic parameters of the ant colony algorithm are set, including the maximum number of iterations of the ant colony, the number of ants (the number of LSTM model parameters studied), and the initial values ​​of parameters such as input_size.

[0087] It also includes the following sub-steps:

[0088] S2.1.1, set the basic parameters of the ant colony algorithm, including the maximum number of iterations of the ant colony, the number of ants (the number of LSTM model parameters studied), and determine the initial values ​​of parameters such as input_size.

[0089] S2.1.2, construct the solution space of the ant colony algorithm, and the transition probability is shown as follows:

[0090]

[0091] In the formula, τ ij (t) is the pheromone on the t-th iteration path (i, j); j is the set of sample points that ant a is allowed to choose in the next step; α is the relative importance of pheromone, α>0; β is the relative importance of heuristic factor.

[0092] S2.1.3, update the pheromone in the ant colony algorithm, record the best solution (shortest path) at the current iteration number, and adjust the pheromone content in different routes. The formula is as follows:

[0093]

[0094] Where, ρ is the pheromone volatility coefficient; Δτ ij Pheromone increment; L a is the total path length traversed by ant a during this iteration.

[0095] S2.2. Use the ant colony algorithm model to optimize the parameters of the long short-term memory network model to obtain the optimized long short-term memory network model.

[0096] Specifically, the ant colony algorithm in step 2.1 is used to optimize the parameters of the LSTM neural network model. The LSTM model will update the parameters through back propagation, and the ant colony will also update these parameters. Determine whether the set maximum number of iterations has been reached. If it has been reached, record the results of each ant colony iteration to obtain the optimal parameters.

[0097] It also includes the following sub-steps:

[0098] S2.2.1. Set the basic parameters of the ant colony algorithm and initialize the parameters, including the maximum number of iterations of the ant colony and the number of ants;

[0099] S2.2.2. Construct the solution space of the ant colony algorithm based on the parameters of the long short-term memory network model and simulate the parameter search process;

[0100] S2.2.3. In each iteration of the ant colony algorithm, the parameters of the long short-term memory network model are updated through the back propagation algorithm to minimize the prediction error;

[0101] S2.2.4. According to the update rules of the ant colony algorithm, the pheromone concentration is adjusted according to the performance of the ants in the solution space to guide the search process to a better area in the solution space;

[0102] S2.2.5. After each iteration of the ant colony algorithm, evaluate the performance of the long short-term memory network model and record the optimal parameter combination;

[0103] S2.2.6, determine whether the ant colony algorithm has reached the preset maximum number of iterations, if so, stop the iteration;

[0104] S2.2.7. Select the final parameter setting from the recorded optimal parameter combination to obtain the optimized long short-term memory network model.

[0105] S3. Use the optimized long short-term memory network model to analyze the characteristics of the obtained medium- and long-term load forecast data of the power grid to obtain the peak load characteristic analysis results; quantify the external influencing factor data of the peak load characteristic analysis results to obtain the quantified external influencing factor data, and quantitatively analyze the correlation between the quantified external influencing factor data based on the Copula function to obtain the strongly correlated influencing factor data adapted to the target industry;

[0106] It also includes the following sub-steps:

[0107] S3.1. Analyze the characteristics of the obtained medium- and long-term load forecast data of the power grid, select the highest amplitude as the peak load, and the corresponding time as the peak load occurrence time, and use the peak load and the peak load occurrence time as the peak load characteristic analysis results;

[0108] Specifically, the characteristics of the medium- and long-term load forecast of the power grid obtained in the early stage are analyzed, and the highest amplitude is selected as the peak load, and the corresponding time is the time when the peak load occurs.

[0109] S3.2. Use descriptive and curve indicators to analyze the peak load characteristics of different industries at different times in the peak load characteristic analysis results, quantitatively describe the multiple external influencing factors of the peak load characteristics, and obtain quantitative external influencing factor data;

[0110] Specifically, the load obtained in S3.1 is analyzed using descriptive and curve indicators to analyze the peak load characteristics of different industries, quantitatively describe multiple external factors, and obtain key influencing factors.

[0111] S3.3. Quantitatively analyze the correlation between the quantified external influencing factor data based on the Copula function to obtain the strongly correlated influencing factor data that is suitable for the target industry.

[0112] Specifically, based on step 3.2, the Copula function is used to measure the correlation between different influencing factors, and the strongly correlated features are selected as the input of the prediction model. The Copula function satisfies the following:

[0113] H(x1,x2,…,x n )=C(F1(x1),F2(x2),…,F n (x n )) (3-1)

[0114] In the formula, F1(x1), F2(x2),…, F n (x n ) is the marginal distribution function; x1,x2,…,x n is an n-dimensional random variable.

[0115] The Copula function reflects the correlation between nonlinear and asymmetric variables from a probability perspective. It is suitable for the distribution of any random variable and for measuring the correlation between volatile and random peak loads and any other influencing factors. It is more practical.

[0116] S4. Input the obtained peak load characteristic analysis results and the strongly correlated influencing factor data adapted to the target industry into the optimized long short-term memory network model to obtain the peak load prediction results.

[0117] Specifically, based on the grid peak load sequence obtained by S3 and the strongly correlated influencing factor data adapted to its industry, an amplitude prediction model of the long short-term memory network optimized by the ant colony algorithm is constructed, and then the XGBoost classifier is used to realize the prediction of peak load.

[0118] It also includes the following sub-steps:

[0119] S4.1. Based on the grid peak load sequence and its strongly correlated influencing factor data adapted to the industry to which it belongs, a long short-term memory network model optimized by the ant colony algorithm is constructed to predict future grid peak loads. Long-term prediction results,

[0120] S4.2. Based on S4.1, the medium and long-term period is divided into several time periods, and the continuous historical occurrence time points are converted into discrete time periods. Then, the peak load is predicted using the XGBoost classifier.

[0121] As a preferred example, it also includes using an XGBoost classifier to divide the peak load prediction results to obtain peak load prediction results for different time periods.

[0122] It also includes the following sub-steps:

[0123] It is beneficial for the XGBoost algorithm to divide the long-term prediction results and obtain the prediction results for different time periods.

[0124] Step 4.2.1, when XGBoost fits the model, it uses the second-order Taylor expansion, and has its own regularization term, which can effectively prevent overfitting and improve the generalization performance of the model. The model is shown in the formula:

[0125]

[0126] Where: represents the prediction result of the i-th sample; k represents the number of decision trees; F represents the set space of decision trees, Map each node to a value, that is, f(x i ) value; x i represents the i-th sample; f k represents the model of the kth tree, and each f k It corresponds to an independent tree structure and the weight of the leaf node; q represents an independent tree structure, whose function is to map the sample instances to the corresponding leaf nodes.

[0127] Step 4.2.2, the goal of XGBoost is to minimize the loss function, and the objective function is as follows:

[0128]

[0129] Where n is the number of samples; l is the function that calculates the training error between the predicted value and the true value; Ω is the complexity of the tree model; γ and λ control the T and weight of the leaf node respectively; w j Represents the weight of leaf node j.

[0130] Step 4.2.3, the goal of the XGBoost algorithm is to minimize the loss function. Combined with step 4.2.2, select a suitable function to minimize the objective function, as shown in the formula:

[0131]

[0132] Where: L (t) Expressed as the objective function of the tth round; It is represented as the sum of the output values ​​of the first t-1 trees; f t (x i) represents the output result of the tth tree; The sum is used to form the latest forecast value.

[0133] During the training process, the splitting of leaf nodes of the basis function tree model is based on the input variables of the samples. The number of times a certain input variable is applied to the splitting of leaf nodes can be considered as the importance score of the variable, reflecting its correlation with the model output. The present invention uses the XGBoost algorithm to establish a peak load period prediction model, wherein the smaller the value of the objective function obtained, the more stable the structure of the tree, the stronger the generalization ability of the model and the more accurate the prediction effect.

[0134] As a preferred example, it also includes obtaining the target area's historical annual power grid load data as sample data, predicting the sample data using an optimized long short-term memory network model to obtain the target area's historical annual peak load prediction results, comparing the target area's historical annual peak load prediction results with the target area's historical annual actual peak load data, and evaluating the prediction performance of the optimized long short-term memory network model.

[0135] Specifically, the data of the annual power grid load in region A from 2019 to 2022 are used as sample data. The difference between the actual peak load in region A in 2023 and the model prediction value is analyzed through the ACO-LSTM and Bi-LSTM prediction methods to evaluate the prediction performance of the model.

[0136] Step 5.1, based on the load data of power grid A from 2019 to 2022, the medium- and long-term peak load forecasting models based on Bi-LSTM and ACO-LSTM are used to perform forecasts respectively to obtain the forecast power grid load from 2023 to 2025.

[0137] Step 5.2, draw the current and predicted power grid load curves for the next three years based on the predicted load obtained in step 5.1, draw the predicted error distribution diagram and calculate the root mean square error (RMSE), mean absolute error (MAE), and R square (R2) of the model to evaluate the prediction results. The definitions of each evaluation index are as follows:

[0138]

[0139] Where: y fi is the predicted value at time i; y ri is the actual value at time i; is the sample mean, and N is the number of samples.

[0140] Step 5.2.1, based on the Bi-LSTM prediction method, the existing and predicted power grid load curves for the next three years are as follows: Figure 4 As shown in Figure 2, the comparison between the actual load data and the forecast data in 2023 is as follows: Figure 5 As shown, the error distribution is Figure 6 The calculated error values ​​are shown in Table 1.

[0141] Table 1 Indicators based on Bi-LSTM prediction model

[0142]

[0143] Step 5.2.2, based on the ACO-LSTM prediction method, the existing and predicted power grid load curves for the next three years are as follows: Figure 7 As shown in Figure 2, the comparison between the actual load data and the forecast data in 2023 is as follows: Figure 8 As shown, the error distribution is Fig. 9 The calculated error values ​​are shown in Table 2.

[0144] Table 2 Indicators based on ACO-LSTM prediction model

[0145]

[0146] Example 2

[0147] A medium- and long-term peak load forecasting system, comprising:

[0148] A modeling module is used to obtain peak load data, and use a recurrent neural network to model the obtained peak load data to obtain a long short-term memory network model;

[0149] An ant colony algorithm optimization module, used to optimize the parameters of the long short-term memory network model using an ant colony algorithm to obtain an optimized long short-term memory network model;

[0150] The characteristic analysis module is used to obtain medium- and long-term load forecast data of the power grid, and use the optimized long short-term memory network model to perform characteristic analysis on the obtained medium- and long-term load forecast data of the power grid to obtain the peak load characteristic analysis results; quantify the external influencing factor data of the peak load characteristic analysis results to obtain the quantified external influencing factor data, and quantitatively analyze the correlation between the quantified external influencing factor data based on the Copula function to obtain the strongly correlated influencing factor data adapted to the target industry;

[0151] The prediction result generation module is used to input the obtained peak load characteristic analysis results and the strongly correlated influencing factor data adapted to the target industry into the optimized long short-term memory network model to obtain the medium- and long-term peak load prediction results.

[0152] Specifically, the modeling module is used to perform the following steps:

[0153] Obtain peak load data, including but not limited to historical and real-time data of power grid load;

[0154] Use recurrent neural networks to model the acquired peak load data and construct a long short-term memory (LSTM) network model;

[0155] The LSTM network model is trained to obtain the initial long short-term memory network model by learning the time series characteristics of the peak load data.

[0156] The ant colony algorithm optimization module is used to perform the following steps:

[0157] Using an ant colony algorithm to optimize the parameters of the long short-term memory network model;

[0158] Set the basic parameters of the ant colony algorithm, including but not limited to the number of ants, pheromone concentration, heuristic factors, etc.;

[0159] Construct the solution space of the ant colony algorithm, simulate the parameter search process, and perform iterative search in the solution space;

[0160] Use the back-propagation algorithm to update the parameters of the LSTM model to minimize the prediction error;

[0161] According to the update rules of the ant colony algorithm, the pheromone concentration is adjusted to optimize the search process;

[0162] Evaluate the performance of the LSTM model, record the optimal parameter combination, and stop iteration after reaching the preset number of iterations;

[0163] Select the final parameter settings from the recorded optimal parameter combinations to complete the optimization of the long short-term memory network model.

[0164] Characteristic analysis module, used to perform the following steps:

[0165] Obtain medium- and long-term load forecast data for the power grid, including but not limited to load forecast data for different industries and time periods;

[0166] Using the optimized long short-term memory network model to perform characteristic analysis on the acquired medium- and long-term load forecasting data of the power grid;

[0167] Through characteristic analysis, the highest amplitude and occurrence time of the peak load are identified, and the peak load characteristic analysis results are obtained;

[0168] Quantify the external influencing factors in the peak load characteristic analysis results to obtain quantified external influencing factor data;

[0169] Quantitatively analyze the correlation between the quantified external influencing factor data based on the Copula function;

[0170] According to the analysis results of the Copula function, the data of strongly correlated influencing factors suitable for the target industry are obtained.

[0171] The prediction result generation module is used to perform the following steps:

[0172] Taking the obtained peak load characteristic analysis results and strongly correlated influencing factor data as input;

[0173] Use the optimized long short-term memory network model and input data to predict medium- and long-term peak loads;

[0174] Generate medium- and long-term peak load forecast results to provide decision support for power grid dispatch and resource allocation.

[0175] The system achieves accurate prediction of medium- and long-term peak loads through the collaborative work of various modules, and provides performance evaluation to assist power grid dispatching decisions.

[0176] Example 3

[0177] like Fig.10 As shown, an electronic device includes a processor and a memory, wherein the processor is used to execute a computer program stored in the memory to implement a medium- and long-term peak load forecasting method.

[0178] The present invention also provides an electronic device 100 for implementing a medium- and long-term peak load forecasting method of the above embodiment; the electronic device 100 includes a memory 101, at least one processor 102, a computer program 103 stored in the memory 101 and executable on the at least one processor 102, and at least one communication bus 104. The memory 101 can be used to store the computer program 103, and the processor 102 implements the steps of a medium- and long-term peak load forecasting method of embodiment 1 by running or executing the computer program stored in the memory 101 and calling the data stored in the memory 101. The memory 101 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data (such as audio data) created according to the use of the electronic device 100, etc. In addition, the memory 101 may include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. At least one processor 102 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 102 may be a microprocessor or the processor 102 may also be any conventional processor, etc. The processor 102 is the control center of the electronic device 100, and uses various interfaces and lines to connect various parts of the entire electronic device 100. The memory 101 in the electronic device 100 stores multiple instructions to implement a medium- and long-term peak load prediction method.

[0179] Example 4

[0180] A computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, a medium- to long-term peak load prediction method is implemented.

[0181] If the module / unit integrated in the electronic device 100 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 present invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory and read-only memory (ROM, Read-Only Memory). It should be understood by those skilled in the art that the embodiments of the present invention can be provided as a method, system, or computer program product. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0182] It is known from common technical knowledge that the present invention can be implemented by its embodiments without departing from its spirit or essential features. Therefore, the embodiments disclosed above are only illustrative in all respects and are not exclusive. All changes within the scope of the present invention or within the scope equivalent to the present invention are included in the present invention.

Claims

1. A medium- and long-term peak load forecasting method, characterized in that: The following steps are involved: Obtain peak load data; The peak load data obtained are modeled using a recurrent neural network to obtain a long short-term memory network model; An ant colony algorithm is used to optimize the parameters of the long short-term memory network model to obtain an optimized long short-term memory network model; Obtain medium- and long-term load forecast data for the power grid, use the optimized long short-term memory network model to perform characteristic analysis on the obtained medium- and long-term load forecast data for the power grid, and obtain peak load characteristic analysis results; quantify the external influencing factor data of the peak load characteristic analysis results to obtain quantified external influencing factor data, and quantitatively analyze the correlation between the quantified external influencing factor data based on the Copula function to obtain strongly correlated influencing factor data adapted to the target industry; The obtained peak load characteristic analysis results and the strongly correlated influencing factor data adapted to the target industry are input into the optimized long short-term memory network model to obtain the medium- and long-term peak load forecast results.

2. The method according to claim 1, characterized in that It also includes using an XGBoost classifier to divide the peak load prediction results to obtain peak load prediction results for different time periods.

3. The method according to claim 1, characterized in that It also includes obtaining the target area's historical annual power grid load data as sample data, predicting the sample data using an optimized long short-term memory network model to obtain the target area's historical annual peak load prediction results, comparing the target area's historical annual peak load prediction results with the target area's historical annual actual peak load data, and evaluating the prediction performance of the optimized long short-term memory network model.

4. The method according to claim 1, characterized in that The step of using a recurrent neural network to model the acquired peak load data to obtain a long short-term memory network model specifically includes: The peak load data acquired are modeled using a recurrent neural network to obtain an initial model; A gating mechanism is added to the initial model to obtain a long short-term memory network model.

5. The method according to claim 1, characterized in that The step of optimizing the parameters of the long short-term memory network model by using an ant colony algorithm to obtain an optimized long short-term memory network model specifically includes: Construct an ant colony algorithm model, including setting the basic parameters of the ant colony algorithm, constructing the solution space of the ant colony algorithm, and updating the pheromone of the ant colony algorithm; The ant colony algorithm model is used to optimize the parameters of the long short-term memory network model to obtain the optimized long short-term memory network model.

6. The method according to claim 1, characterized in that The steps of using the optimized long short-term memory network model to perform characteristic analysis on the acquired medium- and long-term load forecast data of the power grid to obtain peak load characteristic analysis results; quantifying the external influencing factor data of the peak load characteristic analysis results to obtain quantified external influencing factor data, and quantitatively analyzing the correlation between the quantified external influencing factor data based on the Copula function to obtain the strongly correlated influencing factor data adapted to the target industry specifically include: The characteristics of the obtained medium- and long-term load forecast data of the power grid are analyzed, and the highest amplitude is selected as the peak load, and the corresponding time is the peak load occurrence time, and the peak load and the peak load occurrence time are taken as the peak load characteristic analysis results; The peak load characteristics of different industries at different times in the peak load characteristics analysis results are analyzed using descriptive and curve indicators, and the multivariate external influencing factors of the peak load characteristics are quantitatively described to obtain quantitative external influencing factor data; Based on the Copula function, the correlation between the quantified external influencing factor data is quantitatively analyzed to obtain the strongly correlated influencing factor data adapted to the target industry.

7. The method according to claim 5, characterized in that The step of using the ant colony algorithm model to optimize the parameters of the long short-term memory network model to obtain the optimized long short-term memory network model specifically includes: Set the basic parameters of the ant colony algorithm and initialize the parameters, including the maximum number of iterations of the ant colony and the number of ants; The solution space of the ant colony algorithm is constructed based on the parameters of the long short-term memory network model to simulate the parameter search process; In each iteration of the ant colony algorithm, the parameters of the long short-term memory network model are updated through the back-propagation algorithm to minimize the prediction error; According to the update rules of the ant colony algorithm, the pheromone concentration is adjusted according to the performance of the ants in the solution space to guide the search process to a better area in the solution space; After each iteration of the ant colony algorithm, the performance of the long short-term memory network model is evaluated and the optimal parameter combination is recorded; Determine whether the ant colony algorithm has reached the preset maximum number of iterations, if so, stop the iteration; The final parameter settings are selected from the recorded optimal parameter combinations to obtain the optimized long short-term memory network model.

8. A medium- and long-term peak load forecasting system, characterized in that: include, A modeling module is used to obtain peak load data, and use a recurrent neural network to model the obtained peak load data to obtain a long short-term memory network model; An ant colony algorithm optimization module, used to optimize the parameters of the long short-term memory network model using an ant colony algorithm to obtain an optimized long short-term memory network model; The characteristic analysis module is used to obtain medium- and long-term load forecast data of the power grid, and use the optimized long short-term memory network model to perform characteristic analysis on the obtained medium- and long-term load forecast data of the power grid to obtain the peak load characteristic analysis results; quantify the external influencing factor data of the peak load characteristic analysis results to obtain the quantified external influencing factor data, and quantitatively analyze the correlation between the quantified external influencing factor data based on the Copula function to obtain the strongly correlated influencing factor data adapted to the target industry; The prediction result generation module is used to input the obtained peak load characteristic analysis results and the strongly correlated influencing factor data adapted to the target industry into the optimized long short-term memory network model to obtain the medium- and long-term peak load prediction results.

9. An electronic device, characterized in that: It comprises a processor and a memory, wherein the processor is used to execute a computer program stored in the memory to implement a medium- and long-term peak load forecasting method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, a medium- to long-term peak load forecasting method as described in any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Short-term power load prediction method and system considering multi-dimensional feature extraction

    CN119448225A