Distribution network net load prediction method and system considering multiple spatiotemporal correlations

XGBoost is used to screen meteorological features, fuzzy C-means clustering and wavelet transform are used to extract high and low frequency components, and the GCN-LSTM model is combined with the GCN-LSTM model to predict the net load of the distribution network, which solves the complexity and adaptability problems of the net load prediction of the distribution network and achieves Accurate net load forecasting and stable power system operation.

CN118411062BActive Publication Date: 2024-10-29NANJING UNIV OF SCI & TECH
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410892155.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-29
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

In the scenario of high proportion of clean energy access, distribution network net load prediction faces complex load influencing factors and data randomness and volatility problems. It is difficult for existing methods to accurately construct load evolution models, and the prediction model has complex structure and poor adaptability. Effectively support distribution network operation and dispatching.

Method used

The XGBoost algorithm is used to screen meteorological features, fuzzy C-means clustering and wavelet transform are used to extract high and low frequency components, and the GCN-LSTM model is combined for multiple spatiotemporal feature extraction and prediction. The adaptive reconstruction strategy is used to reduce model complexity, and the high and low frequency prediction results are integrated. Net load forecast.

Benefits of technology

It improves the accuracy and adaptability of net load forecasting, reduces data complexity, provides reliable decision-making basis, and provides important support for distribution network planning, production and operation scheduling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118411062B_ABST
    Figure CN118411062B_ABST
Patent Text Reader

Abstract

The invention discloses a distribution network net load prediction method and system taking into account multiple spatiotemporal correlations, belonging to the technical field of power systems; the prediction method comprises: based on historical net load data of the distribution network and multidimensional meteorological data, analyzing the importance of various types of meteorological characteristics to net load prediction by using an XGBoost extreme gradient boosting algorithm, and performing feature screening by a step-by-step performance experiment; based on the screened meteorological characteristic historical data, clustering net load data of different weather types by using a fuzzy C-means clustering algorithm; extracting high and low frequency components of the net load based on wavelet transform, and reconstructing the components; for the reconstructed high frequency components, extracting multiple spatiotemporal features based on a GCN-LSTM for prediction; for the reconstructed low frequency components, performing net load time series prediction based on an LSTM; and quantitatively analyzing the accuracy and adaptability of the prediction results by using evaluation indicators according to the actual net load value and the high and low frequency fusion prediction values.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of power systems, and in particular relates to a method and system for predicting net load of a distribution network taking into account multiple spatiotemporal correlations. Background Art

[0002] With the continuous increase in the penetration rate of clean energy, power load has shown new characteristics and forms that are more complex and changeable. As the basic supporting work, power system load forecasting plays a vital role in the planning, operation, control and scheduling of future new power systems.

[0003] With the access of massive distributed energy, the emergence of various new loads, and the deepening of the coupling effect between the two, the uncertainty characteristics of the distribution system have become more prominent. At the same time, considering that the data collected on the distribution network side is generally the net load data before the meter, and does not involve the actual data of multiple objects after the meter, this makes the randomness and volatility of the data more prominent. In this context, how to achieve accurate net load prediction under different levels of source-load offset characteristics based on limited measurement data such as historical meteorology and distribution network load has become a major difficulty.

[0004] For the net load forecasting of distribution networks, traditional load forecasting methods are mainly based on statistical analysis methods. In the context of new power systems, it is difficult to accurately construct load evolution models in the face of multiple complex load influencing factors. Existing neural network forecasting methods mostly focus on the study of exogenous variables such as climate and seasons, ignoring the inherent spatiotemporal correlation of power data in different regions in scenarios with high proportions of clean energy access. At the same time, the forecasting model structure is complex and the adaptability to different scenarios varies greatly. In cases where weather factors cause large changes in regional distributed power output and user electricity consumption behavior, the net load forecasting ability under complex model dynamic evolution through coarse-grained meteorological data is limited, and it is unable to provide effective data support for distribution network operation and dispatching. Summary of the invention

[0005] In view of the deficiencies in the prior art, the purpose of the present invention is to provide a method and system for predicting the net load of a distribution network taking into account multiple spatiotemporal correlations, thereby solving the problems in the prior art.

[0006] The purpose of the present invention can be achieved through the following technical solutions:

[0007] The method for predicting net load of distribution network taking into account multiple spatiotemporal correlations comprises the following steps:

[0008] Based on the historical net load data of the distribution network and multi-dimensional meteorological data, the importance of various types of meteorological features to net load prediction is analyzed through the XGBoost extreme gradient boosting algorithm, and the features are screened through step-by-step performance experiments to select the optimal meteorological features;

[0009] Based on the historical data of optimal meteorological characteristics, the net load data of different weather types are clustered by fuzzy C-means clustering algorithm;

[0010] For the net load clustering data under different weather types, the high- and low-frequency components of the net load are extracted based on wavelet transform, and the components are reconstructed through adaptive reconstruction strategy to form high-frequency and low-frequency reconstructed component data sets under different weather types;

[0011] For high-frequency reconstruction component data sets under different weather types, GCN-LSTM models are established to extract and predict multiple spatiotemporal features;

[0012] For the low-frequency reconstruction component data sets under different weather types, LSTM models are established to predict the net load time series;

[0013] According to the actual net load value and the high- and low-frequency fusion prediction values, evaluation indicators are used to quantitatively analyze the accuracy and adaptability of the prediction results.

[0014] Furthermore, the step of obtaining the optimal meteorological characteristics includes:

[0015] S11, a step-by-step feature reduction experiment from low-importance to high-importance features was conducted to determine the difference in prediction performance under different number of feature inputs;

[0016] S12, comprehensively considering the number of meteorological features and the prediction performance, and selecting the optimal meteorological feature at the inflection point of the performance-number curve.

[0017] Furthermore, the historical meteorological data must be normalized before being used as the input value for clustering. The normalization formula is as follows:

[0018]

[0019] In the formula, y * is the normalized meteorological data. y * ∈[0,1], y is the original meteorological data; y max and y min are the maximum and minimum values ​​of the corresponding data in the total sample data.

[0020] Furthermore, in the adaptive reconstruction strategy, for high and low frequency components at different decomposition levels, the optimal decomposition and reconstruction level is determined by solving the minimum weighted similarity difference between them and the original data. The calculation formula is:

[0021]

[0022]

[0023] In the formula, S ( n ) is the objective function, n is the number of decomposition and reconstruction layers, w l,n and w h,n Respectively n The low-frequency and high-frequency similarity weights of the layer, L ( n )and H ( n ) are respectively n The similarity between the low-frequency and high-frequency components of the layer and the original data, N The maximum number of decomposition levels is set.

[0024] Furthermore, the similarity between the high-frequency and low-frequency components and the original data is calculated by the Spearman correlation coefficient. The calculation formula is as follows:

[0025]

[0026] In the formula, d i Indicates i The difference in the rank values ​​of the data pairs is m is the total number of observed samples.

[0027] Further, n The calculation formula for the low-frequency and high-frequency similarity weights of the layer is:

[0028]

[0029]

[0030] In the formula, T is the total time, Load l,n ( t ), Load h,n ( t ) is the n layer t The low-frequency and high-frequency component load values ​​at the moment.

[0031] Furthermore, the steps of extracting multiple spatiotemporal features for prediction based on GCN-LSTM include:

[0032] S41, normalize the historical high-frequency net load data, calculate the nonlinear causal relationship between each high-frequency load component based on the transfer entropy TE as the adjacency matrix of GCN, take the load data of several historical time sections as input, and extract the spatial features in the load data through GCN;

[0033] S42, concatenates spatial features and meteorological features as the input of LSTM, extracts multi-dimensional time features through LSTM, outputs the prediction results through the fully connected layer, and is denormalized to the actual prediction value.

[0034] The distribution network net load forecasting system taking into account multiple temporal and spatial correlations includes:

[0035] Feature screening module: Based on the historical net load data of the distribution network and multi-dimensional meteorological data, the XGBoost extreme gradient boosting algorithm is used to analyze the importance of various types of meteorological features to net load prediction, and feature screening is performed through step-by-step performance experiments to select the optimal meteorological features;

[0036] Data clustering module: Based on the historical data of optimal meteorological characteristics, the net load data of different weather types are clustered by fuzzy C-means clustering algorithm;

[0037] Component reconstruction module: for the net load clustering data under different weather types, the high- and low-frequency components of the net load are extracted based on wavelet transform, and the components are reconstructed through adaptive reconstruction strategy to form high-frequency and low-frequency reconstructed component data sets under different weather types;

[0038] High-frequency component prediction module: For high-frequency reconstruction component data sets under different weather types, GCN-LSTM models are established to extract multiple spatiotemporal features and predict net load;

[0039] Low-frequency component prediction module: For low-frequency reconstruction component data sets under different weather types, LSTM models are established to perform net load time series prediction;

[0040] And, prediction evaluation module: based on the actual net load value and the high- and low-frequency fusion prediction values, evaluation indicators are used to quantitatively analyze the accuracy and adaptability of the prediction results.

[0041] A computer storage medium stores a readable program, which can execute the above-mentioned distribution network net load prediction method taking into account multiple time and space correlations when the program is running.

[0042] An electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus;

[0043] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned distribution network net load prediction method taking into account multiple spatiotemporal correlations.

[0044] Beneficial effects of the present invention:

[0045] 1. The distribution network net load prediction method taking into account multiple spatiotemporal correlations provided by the present invention aims to solve the problem of large differences in net load fluctuations under different weather conditions in scenarios with a high proportion of clean energy access. The main meteorological influencing factors are extracted through XGBoost and step-by-step performance experiments, and the fuzzy C-means clustering algorithm is used to cluster and model the net load under different weather types. Compared with the previous direct modeling and prediction method, it indirectly reduces the complexity of the net load data and helps to improve the accuracy of the prediction results.

[0046] 2. The distribution network net load prediction method provided by the present invention takes into account multiple spatiotemporal correlations. Aiming at the non-stationarity and strong volatility of net load data, the wavelet transform method based on adaptive reconstruction can effectively extract the high and low frequency components of the net load while reducing the number of decomposition models and modeling complexity, thereby ensuring the practical application feasibility of the method.

[0047] 3. The distribution network net load prediction method taking into account multiple spatiotemporal correlations provided by the present invention considers the causal correlation between load data and the differences between high-frequency and low-frequency loads, extracts high-frequency spatiotemporal features based on GCN-LSTM for prediction, extracts low-frequency time series features based on LSTM for prediction, and integrates high- and low-frequency prediction results to obtain the final net load prediction value, thereby realizing accurate combined prediction of the distribution network net load under limited measurement data, and can provide reliable decision-making basis for distribution network planning, production, operation and scheduling, which plays a vital role in the safety, stability and economy of power system operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0049] Figure 1 is a flow chart of the prediction method of the present invention;

[0050] Figure 2 This is the result diagram of meteorological characteristics importance analysis;

[0051] Figure 3 It is the curve of feature number-prediction performance change;

[0052] Figure 4This is the net load clustering result diagram based on weather type;

[0053] Figure 5 It is a comparison chart between the original data and each component of wavelet decomposition;

[0054] Figure 6 It is the result map of low-frequency and high-frequency components after reconstruction;

[0055] Figure 7 It is the prediction result diagram of high frequency component of net load;

[0056] Figure 8 It is the prediction result diagram of the low-frequency component of the net load;

[0057] Fig. 9 It is the final net load forecast result diagram of high and low frequency fusion. DETAILED DESCRIPTION

[0058] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments 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.

[0059] Example 1

[0060] like Figure 1 As shown, the distribution network net load forecasting method taking into account multiple spatiotemporal correlations includes the following steps:

[0061] S1, based on the historical net load data of the distribution network and multi-dimensional meteorological data, the importance of various types of meteorological features to net load prediction is analyzed through the XGBoost extreme gradient boosting algorithm, and the feature screening is carried out through step-by-step performance experiments to select the optimal meteorological features;

[0062] Among them, meteorological characteristics include air temperature, relative humidity and different types of radiance; the steps of analyzing the importance of meteorological characteristics to net load prediction through XGBoost extreme gradient boosting algorithm are as follows:

[0063] First, we import user net load data and meteorological data of the corresponding region, both of which have the same time granularity. Based on this multivariate heterogeneous data set, we call XGBRegressor in the xgboost library through pycharm, perform initial settings on parameters such as learning rate and number of basic classifiers, perform model training and prediction, and finally derive the corresponding feature importance variables to evaluate the importance of each feature.

[0064] The steps to obtain the optimal meteorological characteristics include:

[0065] S11, a step-by-step feature reduction experiment from low-importance to high-importance features was conducted to determine the difference in prediction performance under different number of feature inputs;

[0066] S12, comprehensively considering the number of meteorological features and the prediction performance, selects the optimal meteorological feature at the inflection point of the performance-number curve, and uses it as the input for subsequent weather clustering and neural network.

[0067] S2, based on the historical data of the optimal meteorological feature combination selected by S1, clusters the net load data of different weather types through the fuzzy C-means clustering algorithm;

[0068] Based on the fuzzy C-means clustering results, different weather types are divided, and then the prediction models for the net load of the distribution network under different weather types are constructed to improve the prediction accuracy;

[0069] Considering the differences in the distribution range of meteorological data, it is normalized and then used as the input value of clustering. The normalization formula is as follows:

[0070]

[0071] In the formula, y * is the normalized meteorological data. y * ∈[0,1], y is the original meteorological data; y max and y min are the maximum and minimum values ​​of the corresponding data in the total sample data.

[0072] S3, for the net load clustering data under different weather types obtained in S2, extracts the high- and low-frequency components of the net load based on wavelet transform, and reconstructs the components through adaptive reconstruction strategy to form high-frequency and low-frequency reconstructed component data sets under different weather types;

[0073] Wavelet transform uses the db4 wavelet basis suitable for non-stationary signal feature extraction, and fully explores the time domain and frequency domain features of different dimensions of the net load data through multi-layer wavelet decomposition to extract high-frequency components and low-frequency components;

[0074] Reconstruct high and low frequency components to reduce the number of prediction models and computational complexity, and improve the feasibility of practical applications; consider the relationship between low frequency components and overall change trends, and high frequency components and local fluctuations, and propose an adaptive reconstruction strategy based on the characteristics of the data itself. For high and low frequency components at different decomposition levels, in order to seek a balance between the two, the optimal decomposition and reconstruction level is determined by solving the minimum difference in weighted similarity between them and the original data. The calculation formula is as follows:

[0075]

[0076]

[0077] In the formula, S ( n ) is the objective function, n is the number of decomposition and reconstruction layers, w l,n and w h,n Respectively n The low-frequency and high-frequency similarity weights of the layer, L ( n )and H ( n ) are respectively n The similarity between the low-frequency and high-frequency components of the layer and the original data, N The maximum number of decomposition levels is set.

[0078] The similarity between the high-frequency and low-frequency components and the original data is calculated by the spearman correlation coefficient. The calculation formula is as follows:

[0079]

[0080] In the formula, d i Indicates i The difference in the rank values ​​of the data pairs is m is the total number of observed samples.

[0081] Considering the differentiated impact of different proportions of high and low frequency loads on prediction, the proportion of the cumulative load values ​​of high and low frequencies at different levels to the total load is taken as the weight, and the similarity weight of low-frequency and high-frequency components is calculated as follows:

[0082]

[0083]

[0084] In the formula, w l,n and w h,n Respectively n The low-frequency and high-frequency similarity weights of the layer, T is the total time, Load l,n ( t ), Load h,n ( t ) is the n layer tThe low-frequency and high-frequency component load values ​​at the moment. Considering that the net load data has negative values, the absolute value of the load is used in the calculation process.

[0085] S4, for high-frequency reconstruction component data sets under different weather types, GCN-LSTM models are established to extract and predict multiple spatiotemporal features;

[0086] The steps of extracting multiple spatiotemporal features for prediction based on GCN-LSTM include:

[0087] S41, normalize the historical high-frequency net load data, calculate the nonlinear causal relationship between each high-frequency load component based on the transfer entropy TE as the adjacency matrix of GCN (graph convolutional neural network), take the load data of several historical time sections as input, and extract the spatial features in the load data through GCN;

[0088] Transfer entropy TE is a nonparametric statistic that measures the amount of directed information transfer between two random processes. The event set X arrive Y The transfer entropy is relative to only given Y Past values ​​of X After the past value of Y The uncertainty reduction at the current value of the variable is calculated as follows:

[0089]

[0090] In the formula, TE ( X t , Y t )for t time X arrive Y The transfer entropy of p ( x τ , y , y ω ), p( y ω ), p( x τ , y ω ), p( y , y ω ) are the joint probability distributions of the corresponding variables, assuming t is the current moment, then x τ for τ Before X The historical value of y ω for ω Before Y The historical value of y For the current moment Y The value of .

[0091] Considering that in actual scenarios, power grid companies pay more attention to the positive / reverse peak of net load than the valley load, and the impact of peak and valley load forecast deviation is also different, an improved weighted loss function is proposed to train the neural network. Taking the weighted MSE loss function as an example, the weight calculation formula is as follows:

[0092]

[0093]

[0094]

[0095] In the formula, P i For the i The net load value at a moment, R n Divide the interval span for the net load value, n is the number of partition intervals;

[0096] The weighted MSE loss function calculation formula is as follows:

[0097]

[0098] In the formula, x i , Respectively i The actual and predicted net load values ​​at each moment, n is the total number of moments. It should be noted that this weighted method is also applicable to loss functions such as MAE. At the same time, the loss function and subsequent error evaluation indicators are only expressed differently, and the actual connotation is consistent with the calculation formula.

[0099] S42, concatenates the spatial features with the optimal meteorological features obtained in S1 as the input of LSTM (Long Short-Term Memory Network). After LSTM extracts the multi-dimensional time features, the prediction results are output through the fully connected layer and denormalized to the actual prediction values.

[0100] S5, for the low-frequency reconstruction component data sets under different weather types, LSTM models are established to perform net load time series prediction;

[0101] The normalized low-frequency component input data and meteorological characteristic data are concatenated as prediction input, and prediction is performed through a double-layer LSTM. After being output by the fully connected layer, it is denormalized to obtain the actual prediction value.

[0102] S6, based on the actual net load value and the high- and low-frequency fusion prediction values, uses evaluation indicators to quantitatively analyze the accuracy and adaptability of the prediction results.

[0103] Example 2

[0104] In order to verify the effectiveness of the proposed distribution network net load forecasting method taking into account multiple spatiotemporal correlations, a case analysis was conducted based on the actual user net load data in a certain area. The load data comes from the electricity consumption data collected from more than 200 households. Considering the geographical location differences, the load data of 20 users were selected for forecasting. The sample time resolution was 30 minutes and the time span was 30 days. At the same time, the Solcast API was used to obtain the local weather data of the corresponding granularity, including 14 weather elements such as air temperature, cloud opacity, and scattered radiation. Based on the above data, the ultra-short-term net load forecast 30 minutes in advance was realized through Python coding in the Pycharm development environment. The following are the specific implementation steps:

[0105] Step 1) Based on the historical net load data of the distribution network and multi-dimensional meteorological data, XGBoost is used to analyze the differential importance of the impact of various meteorological factors on the net load, such as Figure 2 shown.

[0106] Step 2) By adopting a step-by-step feature reduction experiment from low-importance to high-importance features, the feature number-prediction performance curve is obtained as follows: Figure 3 As shown, the prediction performance is characterized by RMSE and MAE error indicators. The larger the error, the worse the prediction performance.

[0107] Step 3) The optimal number of features is determined to be 4 through the inflection point of the curve, including air temperature, diffuse radiance, global radiance and inclined radiance. It can be seen that the impact of a high proportion of distributed power access on users is significant.

[0108] Step 4) Based on the historical meteorological data, the four meteorological characteristic data selected are normalized. The normalization formula is as follows:

[0109]

[0110] In the formula, y is the original meteorological data; y max and y min are the maximum and minimum values ​​of the corresponding data in the total samples.

[0111] Step 5) The historical data is divided into weather types by day through the fuzzy C-means clustering algorithm. That is, the dimension of each weather sample is 48*4, and the weather types obtained are divided into 3 categories. The net load curves under the same weather type are classified into the same category, which lays the foundation for the net load prediction modeling of different weather types. The specific results are as follows: Figure 4 As shown, it can be seen that the net loads under the same weather type have similar characteristics.

[0112] Step 6) Based on the wavelet transform method, the net load clustering data under different weather types are decomposed into 1 to 6 layers respectively to obtain the low-frequency components and high-frequency components under each decomposition layer. Taking the net load clustering data of weather type 3 as an example (subsequent reconstruction and prediction are demonstrated based on this data), the decomposition results are as follows: Figure 5 As shown in the figure, letters a and d represent low-frequency components and high-frequency components respectively, and the number after the letter represents the decomposition level to which the component belongs. It should be noted that the maximum number of decomposition levels here can be determined subjectively by comprehensively considering the computational efficiency and actual decomposition requirements.

[0113] Step 7) Since each decomposition is performed on the low-frequency component, each time the decomposition is performed, the high-frequency component increases by one item, while the number of low-frequency components remains 1. Therefore, the high-frequency components at each decomposition level are fused with the high-frequency components at the previous level to form the high-frequency reconstruction components at each decomposition level. For example, the high-frequency reconstruction components of the 6th layer are the superposition of all high-frequency components of layers 1 to 6, and the low-frequency components of the sixth layer are the low-frequency components after 6 decompositions.

[0114] It should be noted that the following high-frequency components are all high-frequency reconstructed components of the corresponding levels, which will not be described in detail. The similarity between the high-frequency and low-frequency components of each level and the original data is calculated by the Spearman correlation coefficient. The correlation coefficient calculation formula is as follows:

[0115]

[0116] In the formula, d i Indicates i The difference in the rank values ​​of the data pairs is m is the total number of observed samples.

[0117] Step 8) Considering the differentiated impact of different proportions of high and low frequency loads on the prediction, the proportion of the cumulative load values ​​of high and low frequencies at different levels to the total load is calculated as the weight. The weights of low and high frequency components are calculated as follows:

[0118]

[0119]

[0120] In the formula, wl,n and w h,n Respectively n The low-frequency and high-frequency weights of the layer, Load l,n ( t ), Load h,n ( t ) is the n layer t The low-frequency and high-frequency component load values ​​at the moment, T is the total time. Considering that the net load data has negative values, the absolute value of the load is used in the calculation process.

[0121] Step 9) Determine the number of decomposition and reconstruction layers based on the adaptive reconstruction strategy. The calculation formula is as follows:

[0122]

[0123]

[0124] In the formula, S ( n ) is the objective function, n is the number of decomposition and reconstruction layers, w l,n and w h,n Respectively n The low-frequency and high-frequency similarity weights of the layer, L ( n )and H ( n ) are respectively n The similarity between the low-frequency and high-frequency components of the layer and the original data, N is the maximum decomposition layer number set. After the number of layers is determined, the corresponding high and low frequency reconstruction components can be returned. The specific decomposition and reconstruction results are as follows: Figure 6 shown.

[0125] Step 10) Linear normalization is performed on the historical net load data after the high and low frequency decomposition and reconstruction, and the processing method is consistent with the above step 4);

[0126] The high-frequency and low-frequency net load data are divided into an empirical ratio of 6:2:2 and used as the input of the model training set, validation set, and test set respectively.

[0127] Step 11) A weighted loss function is constructed to train the neural network. Taking the weighted W_MSE loss function as an example, the weight calculation formula is as follows:

[0128]

[0129]

[0130]

[0131] In the formula, P i For the i The net load value at a moment, R n Divide the interval span for the net load value, n is the number of partition intervals, and its value is 4.

[0132] The weighted W_MSE loss function calculation formula is as follows:

[0133]

[0134] In the formula, x i , Respectively i The actual value of net load at each moment and the predicted value by the neural network, n is the total number of moments. It should be noted that this weighted method is also applicable to loss functions such as MAE. At the same time, the loss function and subsequent error evaluation indicators are only expressed differently, and the actual connotation is consistent with the calculation formula.

[0135] Step 12) Based on the transfer entropy TE, the nonlinear causal correlation between each high-frequency load component is calculated as the adjacency matrix of GCN. The load data of several historical time sections are used as input. The abstract spatial features in the user data are extracted through a double-layer GCN, tanh activation function and weighted loss function MSE. The number of neurons in the two CGN hidden layers is set to 64 and 16 respectively.

[0136] The abstract spatial features extracted by GCN and the meteorological features are concatenated as the input of LSTM. After LSTM extracts the multi-dimensional time features, the prediction results are output through the fully connected layer, and the actual prediction values ​​are obtained after denormalization.

[0137] The number of neurons in the LSTM hidden layer is set to 200, the learning loss rate is set to 0.2, the number of outputs should be the number of target load forecast objects, and the single step size is 1, that is, 30 minutes in advance. Taking user 1 as an example, the forecast results are as follows: Figure 7 shown.

[0138] Step 13) The normalized low-frequency load component input data is concatenated with the meteorological data as the prediction input, and the prediction is performed through a double-layer LSTM. After the output of the fully connected layer, it is denormalized to the actual prediction value;

[0139] The number of neurons is 128 and 64 respectively, the learning loss rate is 0.2, the number of outputs and the single step length are the same as step 12). Taking user 1 as an example, the prediction results are as follows Figure 8 shown.

[0140] Step 14) Superimpose the high-frequency and low-frequency net load forecast results to obtain the total load forecast value, such as Fig. 9 As shown;

[0141] By comparing the actual net load data with traditional indicators such as MSE, MAE, RMSE and improved evaluation indicators such as MSE similar to step 11), the accuracy and adaptability of the prediction results are quantitatively evaluated.

[0142] The multi-level, high- and low-frequency spearman correlation coefficients, similarity weights, decomposition and reconstruction levels of load users and the minimum values ​​of the corresponding objective functions calculated in steps 7) to 9) are shown in Table 1, Table 2, and Table 3, respectively. (In this embodiment, Table 1 and Table 2 only show the calculation results of user numbers 1 to 5.)

[0143] Table 1 Spearman correlation coefficient of load of users 1 to 5 in the embodiment

[0144]

[0145] Table 2 Load similarity weights of users 1 to 5 in the embodiment

[0146]

[0147] Table 3 Load decomposition and reconstruction levels and corresponding objective function values ​​of users 1 to 20 in the embodiment

[0148]

[0149] As shown in Tables 1 and 2, with the increase of decomposition level, the similarity between low-frequency load component and original load data continues to decrease, while the similarity between high-frequency load component and original load data continues to increase. After reaching a certain critical level, the similarity of low-frequency component drops sharply, while high-frequency component increases rapidly. Similarly, the similarity weight defined based on cumulative load also shows a similar trend of change. This is because the high-frequency component is decomposed from the low-frequency component, and the cumulative load of the low-frequency component decreases continuously during the decomposition, and its importance also decreases continuously.

[0150] From the results shown in Table 3, it can be seen that the adaptive reconstruction strategy proposed by the present invention can better pursue the balanced consistency between high and low frequencies, that is, the absolute value of the weighted similarity difference between the two is the smallest. For the 20 selected groups of sample data, the decomposition level is mostly 4 to 5 layers. For some data samples with violent fluctuations or relatively stable data, the decomposition level will be adaptively adjusted to 6 or 3 levels, which also verifies the effectiveness of the strategy.

[0151] Taking user 1 as an example, for the high-frequency and low-frequency components predicted in steps 12) to 14) and the final net load prediction results obtained by fusion, the evaluation results based on a variety of traditional and improved evaluation indicators are shown in Table 4;

[0152] Table 4 Prediction accuracy evaluation based on multiple indicators

[0153]

[0154] It can be seen that the overall prediction results are relatively good, among which the prediction accuracy of the low-frequency component is higher than that of the high-frequency component. This is because the short-term fluctuation of the high-frequency component is more prominent and more difficult to characterize than the stable evolution trend of the low-frequency component. The final predicted net load value is also relatively close to the actual load value. The effectiveness of this method is fully verified through indicator evaluation. At the same time, the structural differences between the traditional and improved evaluation indicators show that there is still room for improvement in the prediction performance of the local peak of the load, but the prediction performance is still relatively excellent.

[0155] The method of the present invention may be implemented in hardware, firmware, or as software or computer code that can be stored in a recording medium (such as a CDROM, RAM, floppy disk, hard disk, or magneto-optical disk), or as computer code that is originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded over a network and will be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware (such as an ASIC or FPGA). It is understood that a computer, processor, microprocessor controller, or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, processor, or hardware, the method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the method shown herein, the execution of the code converts the general-purpose computer into a dedicated computer for executing the method shown herein.

[0156] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, and these changes and improvements all fall within the scope of the present invention to be protected.

Claims

1. A method for predicting net load of a distribution network taking into account multiple spatiotemporal correlations, characterized in that: The following steps are involved: Based on the historical net load data of the distribution network and multi-dimensional meteorological data, the importance of various types of meteorological features to net load prediction is analyzed through the XGBoost extreme gradient boosting algorithm, and the features are screened through step-by-step performance experiments to select the optimal meteorological features; Based on the historical data of optimal meteorological characteristics, the net load data of different weather types are clustered by fuzzy C-means clustering algorithm; For the net load clustering data under different weather types, the high- and low-frequency components of the net load are extracted based on wavelet transform, and the components are reconstructed through adaptive reconstruction strategy to form high-frequency and low-frequency reconstructed component data sets under different weather types; For high-frequency reconstruction component data sets under different weather types, GCN-LSTM models are established to extract and predict multiple spatiotemporal features; For the low-frequency reconstruction component data sets under different weather types, LSTM models are established to predict the net load time series; According to the actual net load value and the high- and low-frequency fusion prediction values, the accuracy and adaptability of the prediction results are quantitatively analyzed using evaluation indicators; In the adaptive reconstruction strategy, for high and low frequency components at different decomposition levels, the optimal decomposition and reconstruction level is determined by solving the minimum difference in weighted similarity between them and the original data. The calculation formula is: In the formula, S ( n ) is the objective function, n is the number of decomposition and reconstruction layers, w l,n and w h,n Respectively n The low-frequency and high-frequency similarity weights of the layer, L ( n )and H ( n ) are respectively n The similarity between the low-frequency and high-frequency components of the layer and the original data, N is the maximum number of decomposition levels set; No. n The calculation formula for the low-frequency and high-frequency similarity weights of the layer is: In the formula, T is the total time, Load l,n ( t ), Load h,n ( t ) is the n layer t The low-frequency and high-frequency component load values ​​at the moment; The steps of extracting multiple spatiotemporal features for prediction based on GCN-LSTM include: S41, normalize the historical high-frequency net load data, calculate the nonlinear causal relationship between each high-frequency load component based on the transfer entropy TE as the adjacency matrix of GCN, take the load data of several historical time sections as input, and extract the spatial features in the load data through GCN; S42, concatenates spatial features and meteorological features as the input of LSTM, extracts multi-dimensional time features through LSTM, outputs the prediction results through the fully connected layer, and is denormalized to the actual prediction value.

2. The method for predicting net load of a distribution network taking into account multiple spatiotemporal correlations according to claim 1, characterized in that: The steps to obtain the optimal meteorological characteristics include: S11, a step-by-step feature reduction experiment from low-importance to high-importance features was conducted to determine the difference in prediction performance under different number of feature inputs; S12, comprehensively considering the number of meteorological features and the prediction performance, and selecting the optimal meteorological feature at the inflection point of the performance-number curve.

3. The method for predicting net load of a distribution network taking into account multiple spatiotemporal correlations according to claim 1, characterized in that: The historical meteorological data must be normalized before being used as the input value for clustering. The normalization formula is as follows: In the formula, y * is the normalized meteorological data. y * ∈[0,1], y is the original meteorological data; y max and y min are the maximum and minimum values ​​of the corresponding data in the total sample data.

4. The method for predicting net load of a distribution network taking into account multiple spatiotemporal correlations according to claim 1, characterized in that: The similarity between the high-frequency and low-frequency components and the original data is calculated by the spearman correlation coefficient. The calculation formula is as follows: In the formula, d i Indicates i The difference in the rank values ​​of the data pairs is m is the total number of observed samples.

5. A distribution network net load forecasting system taking into account multiple spatiotemporal correlations, characterized in that: include: Feature screening module: Based on the historical net load data of the distribution network and multi-dimensional meteorological data, the XGBoost extreme gradient boosting algorithm is used to analyze the importance of various types of meteorological features to net load prediction, and feature screening is performed through step-by-step performance experiments to select the optimal meteorological features; Data clustering module: Based on the historical data of optimal meteorological characteristics, the net load data of different weather types are clustered by fuzzy C-means clustering algorithm; Component reconstruction module: for the net load clustering data under different weather types, the high- and low-frequency components of the net load are extracted based on wavelet transform, and the components are reconstructed through adaptive reconstruction strategy to form high-frequency and low-frequency reconstructed component data sets under different weather types; High-frequency component prediction module: For high-frequency reconstruction component data sets under different weather types, GCN-LSTM models are established to extract multiple spatiotemporal features and predict net load; Low-frequency component prediction module: For low-frequency reconstruction component data sets under different weather types, LSTM models are established to perform net load time series prediction; And, prediction evaluation module: based on the actual net load value and the high- and low-frequency fusion prediction values, the accuracy and adaptability of the prediction results are quantitatively analyzed using evaluation indicators; In the adaptive reconstruction strategy, for high and low frequency components at different decomposition levels, the optimal decomposition and reconstruction level is determined by solving the minimum difference in weighted similarity between them and the original data. The calculation formula is: In the formula, S ( n ) is the objective function, n is the number of decomposition and reconstruction layers, w l,n and w h,n Respectively n The low-frequency and high-frequency similarity weights of the layer, L ( n )and H ( n ) are respectively n The similarity between the low-frequency and high-frequency components of the layer and the original data, N is the maximum number of decomposition levels set; No. n The calculation formula for the low-frequency and high-frequency similarity weights of the layer is: In the formula, T is the total time, Load l,n ( t ), Load h,n ( t ) is the n layer t The low-frequency and high-frequency component load values ​​at the moment; The steps of extracting multiple spatiotemporal features for prediction based on GCN-LSTM include: S41, normalize the historical high-frequency net load data, calculate the nonlinear causal relationship between each high-frequency load component based on the transfer entropy TE as the adjacency matrix of GCN, take the load data of several historical time sections as input, and extract the spatial features in the load data through GCN; S42, concatenates spatial features and meteorological features as the input of LSTM, extracts multi-dimensional time features through LSTM, outputs the prediction results through the fully connected layer, and is denormalized to the actual prediction value.

6. A computer storage medium storing a readable program, characterized in that: When the program is running, it can execute the distribution network net load forecasting method taking into account multiple spatiotemporal correlations as described in any one of claims 1 to 4.

7. An electronic device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the distribution network net load prediction method taking into account multiple spatiotemporal correlations as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Park power system net load combined prediction method based on adaptive error feedback

    CN110909912A

  • GCN-LSTM-based power system short-term load prediction method

    CN115759371A

  • Multi-energy load prediction method based on space-time diagram neural network

    CN115983448A

  • Charging station planning method and system based on new energy passenger vehicle charging demand prediction

    CN117350519A

  • Space-time probability prediction method and system for distributed photovoltaic power station flexible aggregation

    CN117458433A