Wind power probability prediction method for improving prediction precision of low-density sample region

Through the deep belief mixed density network and distribution smoothing technology, the accuracy of the wind power power prediction model in low-density sample areas is improved, the problem of low prediction accuracy in low-density sample areas is solved, and higher prediction accuracy and a more accurate power system are achieved. optimization.

CN118569670APending Publication Date: 2024-08-30CHINA THREE GORGES UNIV
View PDF 0 Cites 3 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing wind power power prediction models have low prediction accuracy in low-density sample areas, and it is difficult to effectively consider the impact of low-density sample areas on prediction results, resulting in inaccurate wind power power prediction results.

Method used

Deep belief mixed density network (DBMDN) is used to combine feature distribution smoothing technology and label distribution smoothing technology to improve the prediction accuracy of low-density sample areas through kernel density estimation and calculation of mixed probability distribution parameters, and update network weights through the Adam optimization algorithm. Improves model sensitivity to low-density areas.

Benefits of technology

Significantly improves the point prediction accuracy and probability prediction interval coverage and sharpness performance of wind power power prediction, enhances the prediction performance of low-density sample space, helps to more accurately adjust the charging and discharging strategy of the energy storage system, and improves power System reliability and energy efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569670A
    Figure CN118569670A
Patent Text Reader

Abstract

The invention discloses a wind power probability prediction method for improving low-density sample region prediction precision. The method comprises the steps of collecting historical wind power and a numerical weather forecast data set of a certain wind power plant; constructing a deep belief mixed density network, extracting hidden features of input variables through a unique pre-training and fine tuning mechanism of the deep belief network, accurately representing probability distribution of wind power prediction power by using boundaries of Beta mixed probability distribution, and realizing nonlinear mapping between the hidden features and prediction power probability distribution parameters; a feature distribution smoothing technology is introduced to calibrate input features, and a label distribution smoothing technology is used for endowing each sample error with a differential weight, so that the adverse effect of a training sample distribution imbalance phenomenon on a prediction result is improved from the two aspects of input and output. According to the method, the feature distribution smoothing technology and the label distribution smoothing technology are introduced to improve the influence of the low-density region sample on the ultra-short-term wind power probability prediction, and the prediction precision of the low-density sample region can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power system technology, in particular to the field of renewable energy power generation and comprehensive consumption technology, and specifically to a wind power probability prediction method for improving prediction accuracy in low-density sample areas. Background Art

[0002] Accurate probabilistic forecasting of wind power can improve the safety, stability and economy of power system operation. With the increasing proportion of cumulative installed capacity of wind power, the impact of wind power output uncertainty on power system operation and dispatch and power market transactions is also increasing. Therefore, the research and practice of wind power probabilistic forecasting is of great significance for measuring the uncertainty of wind power and the safe, reliable and economic operation of power systems. According to the data-driven characteristics of the model, the low frequency of training samples will lead to under-training of the model, which will have an adverse effect on the accuracy of wind power forecasting.

[0003] Due to the randomness of wind power itself, prediction errors cannot be completely avoided. Probabilistic prediction methods can provide more abundant and comprehensive uncertainty information for prediction results, and thus become a hot topic in current wind power prediction research. At present, wind power probability prediction mainly includes quantile regression QR, interval estimation and probability distribution prediction, etc., which characterize the probability distribution of prediction results in different ways. Among them, probability distribution prediction can combine quantile prediction results with non-parametric kernel density estimation to obtain a complete and continuous probability distribution of the predicted value, or directly predict the probability distribution function PDF of the predicted value represented by the distribution parameters. For example, the mixed density network MDN combines the neural network with the mixed density model, uses the nonlinear mapping ability of the neural network to extract the hidden features of the input data, and then predicts the target distribution parameters through the mixed density model. Based on the mixed distribution, any form of predicted value distribution can be fitted. The deep belief network DBN, which has received widespread attention in the field of deep learning, obtains the initial parameters of the network through a layer-by-layer greedy unsupervised pre-training method, which can effectively improve the gradient problem caused by the random initialization of traditional deep neural network parameters, and shows superior performance in the extraction of hidden features of input variables for wind power prediction. Combining the significant advantages of DBN in extracting latent features of input variables with the powerful characterization ability of MDN for wind power probability distribution becomes a wind power probability prediction implementation solution worthy of exploration.

[0004] Wind power prediction has formed a relatively complete technical system, but most current prediction models fail to effectively consider the impact of low-density sample areas on prediction results. Current research on low-density area sample sets mostly focuses on classification problems. Unlike classification problems where the target is a discrete value, the wind power prediction target is a continuous value. When the prediction model driven by training data predicts the test samples whose target values ​​fall into the low-density area of ​​the training set, it is often difficult to obtain the same prediction effect as the high-density area due to the small number of reference samples in the training set. In addition, the target values ​​of some test samples may lack similar samples with adjacent values ​​in the training set, which further increases the difficulty of accurate prediction.

[0005] Therefore, the applicant proposes a wind power probability prediction method to improve the prediction accuracy in low-density sample areas. Summary of the invention

[0006] The purpose of the present invention is to realize ultra-short-term wind power probability prediction and solve the technical problem of low accuracy of sample prediction results in low-density areas, and to propose a wind power probability prediction method that improves the prediction accuracy of low-density sample areas.

[0007] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0008] A wind power probability prediction method for improving prediction accuracy in low-density sample areas includes the following steps:

[0009] Step 1: Divide the historical wind power and numerical weather forecast datasets of the target wind farm into training, validation and test sets, and set the model hyperparameters;

[0010] Step 2: Perform kernel density estimation KDE on the target variable y of the training set to obtain the probability density function

[0011] Step 3: Construct a deep belief mixture density network DBMDN, randomly initialize the model parameters, and use the implicit features z extracted by the DBMDN network s and the corresponding modified eigenvector Initialize to zero vector and perform unsupervised pre-training layer by layer on the stacked RBM part of the DBMDN network;

[0012] Step 4: Obtain the final hidden feature vector z of each cluster in the hidden layer through the stacked RBM structure in the DBMDN model s (s=1,2,…,M), use the feature distribution smoothing technique FDS to calculate the corrected feature vector The mixed probability distribution parameters are sent to the mixed density network MDN network, and the probability distribution function P(y) of wind power prediction power can be synthesized based on the mixed probability distribution parameters;

[0013] Step 5: Calculate the original loss function L(X,Y|θ′) of the DBMDN model, and use the label distribution smoothing technique LDS to assign differential weights to the original loss function to obtain the weighted loss function L λ (X,Y|θ′);

[0014] Step 6: During the DBMDN model training process, the Adam optimization algorithm is used to update the network weights and biases and calculate the latent feature vector z of each cluster. s The characteristic mean statistic μ s , use the Gaussian kernel function to update the smoothed feature statistics

[0015] Step 7: Determine whether the model training has reached the maximum number of iterations. If it has not reached the maximum number of iterations, jump to step 4. If it has reached the maximum number of iterations, proceed to step 8.

[0016] Step 8: Select the optimal hyperparameters of the model based on the prediction results of the validation set;

[0017] Step 9: Input the test sample into the prediction model with the best hyperparameters to obtain the Beta mixed probability density distribution of wind power at the prediction time.

[0018] In step 9, after obtaining the Beta mixed probability density distribution of wind power at the prediction time, the point prediction results and the confidence intervals under various confidence conditions are calculated, the prediction results are denormalized, and the wind power prediction results are compared with the true values ​​to evaluate and analyze the model.

[0019] In step 2, the following sub-steps are specifically included:

[0020] Step 2.1: Input the training sample target value set Y = {y1,…,y i ,…,y N}, where y i represents the target value of the i-th sample in the training sample set, and N represents the number of samples in the training set;

[0021] Step 2.2: Use the Gaussian kernel density function k(·) to generate the probability density function of the training set prediction target

[0022]

[0023] Where: y i is the target value of the i-th training sample, and h is the bandwidth.

[0024] In step 3, the constructed DBMDN model is specifically:

[0025] The training sample input vector x is used as the input of the first layer Input_layer of the DBMDN network; the first layer of the neural network Input_layer is fully connected to the first hidden layer Hidden_layer1 to form the first restricted Boltzmann machine RBM1 of the deep belief network DBN part; the first hidden layer Hidden_layer1 is fully connected to the second hidden layer Hidden_layer2 to form the second restricted Boltzmann machine RBM2 of the deep belief network DBN part; the two RBM structures of the DBN part are used to extract the deep feature vector z of the input vector and input it into the mixed density network MDN part; the output vector z of the second hidden layer Hidden_layer2 is used as the input of the fully connected layers FC_layer1, FC_layer2 and FC_layer3 to realize the nonlinear mapping of the hidden feature vector z to the parameters of the mixed density function.

[0026] Step 4 includes the following sub-steps:

[0027] Step 4.1: To quantitatively analyze the impact of uneven distribution of training samples on wind power forecast accuracy, the prediction target value area is divided into equal intervals (the interval is set to 1MW), and s is used to represent the interval index. Assume that the number of training set samples is N, the number of divided intervals is M, and C = N / M is defined as the average number of training samples in each interval. The interval sample number is defined as a high-density area if it is greater than 2C, a medium-density area if it is within the range of 2C to 0.2C, and a low-density area if it is less than 0.2C. Calculate the statistical mean vector μ of the hidden feature vector of each interval training sample s :

[0028]

[0029] Where: N s is the number of samples in the sth interval; z s,i is the latent feature vector extracted from the i-th sample in the s-th interval.

[0030] Step 4.2: Calculate the latent feature mean vector μ s Then, the Gaussian kernel function k(·) is used to calculate the smoothed feature statistics vector

[0031]

[0032] Where: s and s′ are the s-th and s′-th divided intervals respectively.

[0033] Step 4.3: Based on the smoothed feature statistics vector Calibrate the latent feature vector z extracted from the training samples in the cluster s :

[0034]

[0035] Step 4.4: Convert the calculated Send it to the mixed density network MDN and output the g group weight parameters ω of the mixed Beta distribution i With shape parameter α i , β i (i=1,2,...,g), the probability distribution function P(y) of wind power prediction can be synthesized:

[0036]

[0037] Where: y is the target variable; ω i ∈R + is the weight parameter of the i-th Beta distribution, which must satisfy α i , β i ∈R + is the shape parameter of the ith Beta distribution; Г(·) represents the Gamma function.

[0038] In step 5, the probability density function of the predicted target obtained in step 2 is Assign differential weights to the original loss function, with higher weights given to samples in areas with lower density;

[0039] In step 5, obtaining the weighted loss function specifically includes the following sub-steps:

[0040] Step 5.1: To meet the constraints of the mixed distribution parameters, the latent feature vector z extracted from the training sample is sent to the Softmax activation function to ensure that the weight parameter ω i is a positive real number and the sum is 1, z is sent to the ReLU activation function to ensure the shape parameter α i and β i is a positive real number, that is:

[0041]

[0042] Where: z j is the j-th dimension hidden feature; and are the biases of the i-th neuron in the parameter layer ω, α, and β respectively; and are the connection weights between the i-th neuron in the parameter layer and the j-th neuron in the hidden layer of the terminal RBM, respectively.

[0043] Step 5.2: The DBMDN network that combines the DBN network and the MDN network is trained with the maximum likelihood estimation as the goal, and the loss function L(X,Y|θ′) is defined as the negative log-likelihood function:

[0044]

[0045] Where: X={x1,x2,…,x N} is the training sample input vector set; Y = {y1, y2, …, y N} is the target value set of training samples; θ′ is the DBMDN network parameter.

[0046] Step 5.3: Use the data obtained in step 2.2 Assign differentiated weights to the loss function L(X,Y|θ′) to obtain the weighted loss function L λ (X,Y|θ′), and use the new loss function to train the model to improve the sensitivity of the prediction model to samples in low-density areas:

[0047]

[0048] Where: is the predicted target y i The kernel density estimate at ; a0 is a positive number set to prevent the weight from being too large, and its value is 0.001.

[0049] In step 9, the evaluation indicators used are:

[0050] 1) MAPE (mean absolute percentage error): measures the relative size of the error and is not easily affected by extreme values. The smaller the value, the better the prediction effect.

[0051]

[0052] Where: n is the number of test samples; y i and are the actual value and point prediction value of wind power of the i-th sample in the test set; P N is the rated capacity of the wind farm.

[0053] 2) RMSE (root mean square error): measures the absolute size of the error between the true value and the predicted value. It is more sensitive to outliers and can reflect the stability of the prediction model. The smaller the RMSE, the better the prediction effect.

[0054]

[0055] 3) CWC (coverage bandwidth criterion): comprehensively reflects the reliability and sharpness performance of the prediction interval. The smaller the CWC, the higher the comprehensive performance of the probability prediction.

[0056] E CWC,τ =(1+η1E PINRW,τ )(1+χ(E PICP,τ <τ)exp[-η2(E PICP,τ -τ)]);

[0057]

[0058] Where: χ is the characteristic function; U iτ and L iτ are the upper and lower bounds of the power interval of the i-th test sample under the confidence level τ; R is the difference between the maximum and minimum wind power in the test set; η1 and η2 are E PICP,τ and E PINRW,τ The penalty coefficient of the evaluation index is set to 10 here.

[0059] 4) CRPS (Continuous Rank Probability Score): directly evaluates the overall prediction effect of the probability distribution function. The smaller the CRPS, the better the overall prediction effect of the probability distribution.

[0060]

[0061] Where: F i (z) is the cumulative distribution probability of the target predicted by the i-th sample.

[0062] Compared with the prior art, the present invention has the following technical effects:

[0063] 1) The deep belief mixed density network constructed by the present invention can effectively extract the hidden features of input variables and combine it with the Beta mixed density network that characterizes the probability distribution of wind power prediction to accurately predict the bounded probability distribution of wind power;

[0064] 2) Actual examples show that compared with the existing mainstream ultra-short-term wind power probability prediction model, the ultra-short-term wind power probability prediction model constructed based on the DBMDN network can achieve higher prediction accuracy in both point prediction and probability prediction, and the probability prediction interval calculated from the prediction results shows a prediction interval coverage that is closer to the confidence level and a tighter sharpness performance.

[0065] 3) In order to address the problem of uneven distribution of training samples, the present invention introduces a training sample distribution smoothing strategy consisting of feature distribution smoothing FDS and label distribution smoothing technology LDS, and performs probability distribution smoothing processing on the cluster input feature mean vector and output target respectively. Based on this, the input features are calibrated, and differentiated weights are assigned to each sample error, thereby improving the prediction performance of the ultra-short-term wind power probability prediction method in low-density sample space.

[0066] 4) Since low-density wind power sample areas usually correspond to high-value wind power areas, the present invention helps to more accurately adjust and optimize the charging and discharging strategies of the energy storage system and improve the reliability and energy utilization efficiency of the power system by effectively improving the ultra-short-term wind power prediction accuracy in the low-density sample areas. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] The present invention will be further described below in conjunction with the accompanying drawings and embodiments:

[0068] Figure 1 Flowchart of wind power probabilistic forecasting method to improve forecast accuracy in low-density sample areas;

[0069] Figure 2 This is a schematic diagram of the deep belief mixture density network DBMDN structure;

[0070] Figure 3 It is a comparison chart of MAPE and RMSE errors of deterministic prediction results of different prediction methods in the examples of the present invention;

[0071] Figure 4 It is a comparison chart of CRPS and CWC evaluation indicators of probability prediction results of different prediction methods in the examples of the present invention;

[0072] Figure 5 It is a comparison chart of MAPE errors of deterministic prediction results of different sample density areas in the test set of each method of the example of the present invention;

[0073] Figure 6 A comparison chart of the CRPS evaluation index of the probability prediction results of different sample density areas in the test set of each method of the example of the present invention;

[0074] Figure 7 A prediction interval diagram constructed from the prediction results of three days in the DBMDN test set of the example comparison model of the present invention;

[0075] Figure 8 The prediction interval diagram constructed for the prediction results of three days in the DBMDN+MN test set of the example comparison model of the present invention;

[0076] Fig. 9 The prediction interval diagram constructed for the prediction results of three days in the DBMDN+FDS test set of the example comparison model of the present invention;

[0077] Fig.10 The prediction interval diagram constructed for the prediction results of three days in the DBMDN+LDS test set of the example comparison model of the present invention;

[0078] Fig.11 A prediction interval diagram constructed from the prediction results of three days in the DBMDN+FDS+LDS model test set of the present invention; DETAILED DESCRIPTION

[0079] A wind power probability prediction method for improving prediction accuracy in low-density sample areas comprises the following steps:

[0080] Step 1: Divide the historical wind power and numerical weather forecast datasets of the target wind farm into training, validation and test sets, and set the model hyperparameters;

[0081] Step 2: Perform kernel density estimation KDE on the target variable y of the training set to obtain the probability density function

[0082] Step 3: Construct a deep belief mixture density network DBMDN, randomly initialize the model parameters, and use the implicit features z extracted by the DBMDN network s and the corresponding modified eigenvector Initialize to zero vector and perform unsupervised pre-training layer by layer on the stacked RBM part of the DBMDN network;

[0083] Step 4: Obtain the final hidden feature vector z of each cluster in the hidden layer through the stacked RBM structure in the DBMDN model s (s=1,2,…,M), use the feature distribution smoothing technique FDS to calculate the corrected feature vector The mixed probability distribution parameters are sent to the mixed density network MDN network, and the probability distribution function P(y) of wind power prediction power can be synthesized based on the mixed probability distribution parameters;

[0084] Step 5: Calculate the original loss function L(X,Y|θ′) of the DBMDN model, and use the label distribution smoothing technique LDS to assign differential weights to the original loss function to obtain the weighted loss function L λ (X,Y|θ′);

[0085] Step 6: During the DBMDN model training process, the Adam optimization algorithm is used to update the network weights and biases and calculate the latent feature vector z of each cluster. s The characteristic mean statistic μ s , use the Gaussian kernel function to update the smoothed feature statistics

[0086] Step 7: Determine whether the model training has reached the maximum number of iterations. If it has not reached the maximum number of iterations, jump to step 4. If it has reached the maximum number of iterations, proceed to step 8.

[0087] Step 8: Select the optimal hyperparameters of the model based on the prediction results of the validation set;

[0088] Step 9: Input the test sample into the prediction model with the best hyperparameters to obtain the Beta mixed probability density distribution of wind power at the prediction time.

[0089] In step 9, after obtaining the Beta mixed probability density distribution of wind power at the prediction time, the point prediction results and the confidence intervals under various confidence conditions are calculated, the prediction results are denormalized, and the wind power prediction results are compared with the true values ​​to evaluate and analyze the model.

[0090] In step 2, the following sub-steps are specifically included:

[0091] Step 2.1: Input the training sample target value set Y = {y1,…,y i ,…,y N}, where y i represents the target value of the i-th sample in the training sample set, and N represents the number of samples in the training set;

[0092] Step 2.2: Use the Gaussian kernel density function k(·) to generate the probability density function of the training set prediction target

[0093]

[0094] Where: y i is the target value of the i-th training sample, and h is the bandwidth.

[0095] In step 3, the constructed DBMDN model is specifically:

[0096] The training sample input vector x is used as the input of the first layer Input_layer of the DBMDN network; the first layer of the neural network Input_layer is fully connected to the first hidden layer Hidden_layer1 to form the first restricted Boltzmann machine RBM1 of the deep belief network DBN part; the first hidden layer Hidden_layer1 is fully connected to the second hidden layer Hidden_layer2 to form the second restricted Boltzmann machine RBM2 of the deep belief network DBN part; the two RBM structures of the DBN part are used to extract the deep feature vector z of the input vector and input it into the mixed density network MDN part; the output vector z of the second hidden layer Hidden_layer2 is used as the input of the fully connected layers FC_layer1, FC_layer2 and FC_layer3 to realize the nonlinear mapping of the hidden feature vector z to the parameters of the mixed density function.

[0097] Step 4 includes the following sub-steps:

[0098] Step 4.1: To quantitatively analyze the impact of uneven distribution of training samples on wind power forecast accuracy, the prediction target value area is divided into equal intervals (the interval is set to 1MW), and s is used to represent the interval index. Assume that the number of training set samples is N, the number of divided intervals is M, and C = N / M is defined as the average number of training samples in each interval. The interval sample number is defined as a high-density area if it is greater than 2C, a medium-density area if it is within the range of 2C to 0.2C, and a low-density area if it is less than 0.2C. Calculate the statistical mean vector μ of the hidden feature vector of each interval training sample s :

[0099]

[0100] Where: N s is the number of samples in the sth interval; z s,i is the latent feature vector extracted from the i-th sample in the s-th interval.

[0101] Step 4.2: Calculate the latent feature mean vector μ s Then, the Gaussian kernel function k(·) is used to calculate the smoothed feature statistics vector

[0102]

[0103] Where: s and s′ are the s-th and s′-th divided intervals respectively.

[0104] Step 4.3: Based on the smoothed feature statistics vector Calibrate the latent feature vector z extracted from the training samples in the cluster s :

[0105]

[0106] Step 4.4: Convert the calculated Send it to the mixed density network MDN and output the g group weight parameters ω of the mixed Beta distribution i With shape parameter α i , β i (i=1,2,...,g), the probability distribution function P(y) of wind power prediction can be synthesized:

[0107]

[0108] Where: y is the target variable; ω i ∈R + is the weight parameter of the i-th Beta distribution, which must satisfy α i , β i ∈R + is the shape parameter of the ith Beta distribution; Г(·) represents the Gamma function.

[0109] In step 5, the probability density function of the predicted target obtained in step 2 is Assign differential weights to the original loss function, with higher weights given to samples in areas with lower density;

[0110] In step 5, obtaining the weighted loss function specifically includes the following sub-steps:

[0111] Step 5.1: To meet the constraints of the mixed distribution parameters, the latent feature vector z extracted from the training sample is sent to the Softmax activation function to ensure that the weight parameter ω i is a positive real number and the sum is 1, z is sent to the ReLU activation function to ensure the shape parameter α i and β i is a positive real number, that is:

[0112]

[0113] Where: z j is the j-th dimension hidden feature; and are the biases of the i-th neuron in the parameter layer ω, α, and β respectively; and are the connection weights between the i-th neuron in the parameter layer and the j-th neuron in the hidden layer of the terminal RBM, respectively.

[0114] Step 5.2: The DBMDN network that combines the DBN network and the MDN network is trained with the maximum likelihood estimation as the goal, and the loss function L(X,Y|θ′) is defined as the negative log-likelihood function:

[0115]

[0116] Where: X={x1,x2,…,x N} is the training sample input vector set; Y = {y1, y2, …, y N} is the target value set of training samples; θ′ is the DBMDN network parameter.

[0117] Step 5.3: Use the data obtained in step 2.2 Assign differentiated weights to the loss function L(X,Y|θ′) to obtain the weighted loss function L λ (X,Y|θ′), and use the new loss function to train the model to improve the sensitivity of the prediction model to samples in low-density areas:

[0118]

[0119] Where: is the predicted target y iThe kernel density estimate at ; a0 is a positive number set to prevent the weight from being too large, and its value is 0.001.

[0120] In step 9, the evaluation indicators used are:

[0121] 1) MAPE (mean absolute percentage error): measures the relative size of the error and is not easily affected by extreme values. The smaller the value, the better the prediction effect.

[0122]

[0123] Where: n is the number of test samples; y i and are the actual value and point prediction value of wind power of the i-th sample in the test set; P N is the rated capacity of the wind farm.

[0124] 2) RMSE (root mean square error): measures the absolute size of the error between the true value and the predicted value. It is more sensitive to outliers and can reflect the stability of the prediction model. The smaller the RMSE, the better the prediction effect.

[0125]

[0126] 3) CWC (coverage bandwidth criterion): comprehensively reflects the reliability and sharpness performance of the prediction interval. The smaller the CWC, the higher the comprehensive performance of the probability prediction.

[0127] E CWC,τ =(1+η1E PINRW,τ )(1+χ(E PICP,τ <τ)exp[-η2(E PICP,τ -τ)]);

[0128]

[0129] Where: χ is the characteristic function; U iτ and L iτ are the upper and lower bounds of the power interval of the i-th test sample under the confidence level τ; R is the difference between the maximum and minimum wind power in the test set; η1 and η2 are E PICP,τ and E PINRW,τ The penalty coefficient of the evaluation index is set to 10 here.

[0130] 4) CRPS (Continuous Rank Probability Score): directly evaluates the overall prediction effect of the probability distribution function. The smaller the CRPS, the better the overall prediction effect of the probability distribution.

[0131]

[0132] Where: F i(z) is the cumulative distribution probability of the target predicted by the i-th sample.

[0133] In order to facilitate those skilled in the art to better understand the present invention, the following embodiments are provided:

[0134] A wind power probability prediction method for improving prediction accuracy in low-density sample areas includes the following steps:

[0135] Step 1: Collect the historical wind power and numerical weather forecast data sets of a wind farm, divide them into training set, validation set and test set in the ratio of 8:1:1, then construct the sample set and set the model hyperparameters;

[0136] Step 2: Perform kernel density estimation KDE on the probability distribution of the training set prediction target to obtain

[0137] Step 3: Build a deep belief mixture density network DBMDN, randomly initialize the model parameters, and convert the final hidden layer cluster hidden feature vector z s and the corresponding modified eigenvector Initialize to zero vector. Perform unsupervised pre-training layer by layer on the stacked restricted Boltzmann machine (RBM) part of the DBMDN model.

[0138] like Figure 2 As shown, the DBMDN model is constructed as follows:

[0139] The training sample input vector x is used as the input of the first layer Input_layer1 of the DBMDN network; the first layer of the neural network Input_layer1 is fully connected to the first hidden layer Hidden_layer1 to form the first restricted Boltzmann machine RBM1 of the deep belief network DBN part; the first hidden layer Hidden_layer1 is fully connected to the second hidden layer Hidden_layer2 to form the second restricted Boltzmann machine RBM2 of the deep belief network DBN part; the two RBM structures of the DBN part are used to extract the deep feature vector z of the input vector and input it into the mixed density network MDN part; the output vector z of the second hidden layer Hidden_layer2 is used as the input of the fully connected layers FC_layer1, FC_layer2 and FC_layer3 to realize the nonlinear mapping of the hidden feature vector z to the parameters of the mixed density function.

[0140] Step 4: Obtain the final hidden feature vector z of each cluster in the hidden layer through the stacked RBM structure in the DBMDN model s (s=1,2,…,M), use the feature distribution smoothing technique FDS to calculate the corrected feature vector The mixed probability distribution parameters are sent to the mixed density network MDN network, and the probability distribution function P(y) of wind power prediction power can be synthesized based on the mixed probability distribution parameters;

[0141] Step 5: Calculate the original loss function L(X,Y|θ′) of the DBMDN model, and use the label distribution smoothing technique LDS to assign differential weights to the original loss function to obtain the weighted loss function L λ (X,Y|θ′);

[0142] Step 6: During the DBMDN model training process, the Adam optimization algorithm is used to update the network weights and biases and calculate the latent feature vector z of each cluster. s The characteristic mean statistic μ s , use the Gaussian kernel function to update the smoothed feature statistics

[0143] Step 7: Determine whether the maximum number of iterations 1500 has been reached, otherwise jump to step 4, if yes, proceed to the next step;

[0144] Step 8: Select the optimal hyperparameters of the model based on the prediction results of the validation set;

[0145] Step 9: Input the test sample into the prediction model with the best hyperparameters to obtain the Beta mixed probability density distribution of wind power at the prediction time, calculate the point prediction results and the confidence intervals under each confidence level, denormalize the prediction results, compare the wind power prediction results and the true values, and use MAPE (mean absolute percentage error), RMSE (root mean square error), CWC (coverage bandwidth criterion) and CRPS (continuous rank probability score) evaluation indicators to evaluate and analyze the point prediction and probability prediction of the model. MAPE and RMSE evaluation indicators are used to comprehensively evaluate the point prediction error size of the method. The smaller the error, the higher the accuracy of the point prediction of the method. CWC and CRPS evaluation indicators are used to comprehensively evaluate the probability prediction effect of the method. The smaller the error, the better the probability prediction effect of the method.

[0146] Using the above evaluation indicators, the method of the present invention is compared with the existing mainstream ultra-short-term wind power probability prediction models in the test set. The comparison models include the MDN model (GMDN) based on Gaussian mixed distribution and the Q-GRU, Q-DBN, and Q-CNN-GRU models based on quantile regression.

[0147] like Figure 3As shown, the point prediction results of the method of the present invention and the GMDN model based on the mixed density network are obtained by calculating the expectation of the mixed probability distribution, and the models based on quantile regression (Q-GRU, Q-DBN and Q-CNN-GRU) are obtained by median prediction. As shown in the point prediction error, compared with the GMDN, Q-GRU, Q-DBN and Q-CNN-GRU models, the RMSE error of the method of the present invention decreased by 4.19MW, 4.16MW, 2.34MW and 1.46MW respectively; the MAPE error decreased by 3.35%, 2.82%, 1.04% and 0.38% respectively, indicating that the point prediction accuracy of the method of the present invention is higher.

[0148] like Figure 4 As shown, the probability evaluation index E of different models is compared. CRPS and E CWC , analysis diagram E CRPS and E CWC It can be seen that the evaluation index of the method of the present invention is the lowest, indicating that the probability prediction performance of the method of the present invention is optimal and can well describe the uncertainty information of wind power prediction.

[0149] like Figures 5 to 11 As shown, Figure 5 and Figure 6 The different sample density regions E of each model are given MAPE and E CRPS Indicator comparison histogram, Figure 7 to Figure 11 The confidence interval of the prediction results for three days in the test set is given. In order to analyze the prediction effects of feature distribution smoothing technology and label distribution smoothing technology in different density sample distribution areas, the point prediction and probability prediction results of the method of the present invention (DBMDN+FDS+LDS) are compared with the DBMDN model without introducing FDS and LDS, DBMDN+MN with hybrid normalization technology, DBMDN+FDS and DBMDN+LDS models with feature distribution smoothing and label distribution smoothing technology respectively.

[0150] Figure 5 and Figure 6 It can be seen that compared with the DBMDN model without the introduction of FDS and LDS technology, the point prediction and probability prediction errors of the proposed method in all samples (All) and medium-density sample areas (Med) are slightly reduced; for the high-density sample area (Many), the evaluation indicators are relatively close, with a change range of less than 1%; but for the low-density sample area (Few), the evaluation indicators are greatly reduced, among which E MAPE and E CRPS The indicators decreased by 25.5% and 22.6% respectively. Figure 7 to Figure 11 Wind power forecast curve during the test period, compared with Figure 7 and Fig.11 It can be seen that in the low-density area, the point prediction value of the method of the present invention is closer to the actual value, and the confidence interval width is narrower.

[0151] Compared with the DBMDN+FDS and DBMDN+LDS models that only use a single smoothing technique, Figure 5 and Figure 6 The method of the present invention is used in the low-density sample area. MAPE and E CRPS The evaluation indicators decreased by 13.9%, 11.4%, 11.4%, and 10.6% respectively, and the changes in the evaluation indicators in other regions were relatively small. Fig. 9 , Fig.10 and Fig.11 It can also be seen that the prediction effect of the method of the present invention using both FDS and LDS techniques in the low-density sample area in terms of point prediction value and confidence interval is slightly better than that of the model using only a single smoothing technique.

[0152] Compared with the DBMDN+MN model which uses hybrid normalized sample distribution balancing technology, Figure 5 and Figure 6 The overall point prediction and probability prediction errors of the method of the present invention are slightly reduced, but the error reduction is most significant in the low-density sample area. MAPE and E CRPS The indicators dropped by 29.8% and 34% respectively. Figure 8 and Fig.11 It can be seen more intuitively that the confidence interval of the DBMDN+MN model in the high-power area becomes wider and even reaches the rated power limit, and the point prediction curve is far away from the actual curve. The reason is that the nonlinear mapping deformation caused by hybrid normalization in the high-power distribution area is more serious, which affects the prediction effect in the high-power area.

Claims

1. A wind power probability prediction method for improving prediction accuracy in low-density sample areas, characterized in that: The following steps are involved: Step 1: Divide the historical wind power and numerical weather forecast datasets of the target wind farm into training, validation and test sets, and set the model hyperparameters; Step 2: Perform kernel density estimation KDE on the target variable y of the training set to obtain the probability density function Step 3: Construct a deep belief mixture density network DBMDN, randomly initialize the model parameters, and use the implicit features z extracted by the DBMDN network s and the corresponding modified eigenvector Initialize to zero vector and perform unsupervised pre-training layer by layer on the stacked RBM part of the DBMDN network; Step 4: Obtain the final hidden feature vector z of each cluster in the hidden layer through the stacked RBM structure in the DBMDN model s , using the characteristic distribution smoothing technique FDS, calculate the corrected eigenvector The mixed probability distribution parameters are sent to the mixed density network MDN network, and the probability distribution function P(y) of wind power prediction power can be synthesized based on the mixed probability distribution parameters; Step 5: Calculate the original loss function L(X,Y|θ′) of the DBMDN model, and use the label distribution smoothing technique LDS to assign differential weights to the original loss function to obtain the weighted loss function L λ (X,Y|θ′); Step 6: During the DBMDN model training process, the Adam optimization algorithm is used to update the network weights and biases and calculate the latent feature vector z of each cluster. s The characteristic mean statistic μ s , use the Gaussian kernel function to update the smoothed feature statistics Step 7: Determine whether the model training has reached the maximum number of iterations. If it has not reached the maximum number of iterations, jump to step 4. If it has reached the maximum number of iterations, proceed to step 8. Step 8: Select the optimal hyperparameters of the model based on the prediction results of the validation set; Step 9: Input the test sample into the prediction model with the best hyperparameters to obtain the Beta mixed probability density distribution of wind power at the prediction time.

2. The method according to claim 1, characterized in that In step 9, after obtaining the Beta mixed probability density distribution of wind power at the prediction time, the point prediction results and the confidence intervals under various confidence conditions are calculated, the prediction results are denormalized, and the wind power prediction results are compared with the true values ​​to evaluate and analyze the model.

3. The method according to claim 1, characterized in that In step 2, the following sub-steps are specifically included: Step 2.1: Input the training sample target value set Y = {y1,…,y i ,…,y N }, where y i represents the target value of the i-th sample in the training sample set, and N represents the number of samples in the training set; Step 2.2: Use the Gaussian kernel density function k(·) to generate the probability density function of the training set prediction target Where: y i is the target value of the i-th training sample, and h is the bandwidth.

4. The method according to claim 1, characterized in that: In step 3, the constructed DBMDN model is specifically: The training sample input vector x is used as the input of the first layer Input_layer(1) of the DBMDN network; the first layer neural network Input_layer(1) is fully connected to the first hidden layer Hidden_layer1(2) to form the first restricted Boltzmann machine RBM1 of the deep belief network DBN part; the first hidden layer Hidden_layer1(2) is fully connected to the second hidden layer Hidden_layer2(3) to form the second restricted Boltzmann machine RBM2 of the deep belief network DBN part; the two RBM structures of the DBN part are used to extract the deep feature vector z of the input vector and input it into the mixture density network MDN part; the output vector z of the second hidden layer Hidden_layer2(3) is used as the input of the fully connected layers FC_layer1(4), FC_layer2(5) and FC_layer3(6) to realize the nonlinear mapping of the latent feature vector z to the mixture density function parameters.

5. The method according to claim 1, characterized in that Step 4 includes the following sub-steps: Step 4.1: To quantitatively analyze the impact of uneven distribution of training samples on wind power prediction accuracy, the prediction target value area is divided into equal intervals, and s is used to represent the interval index. Assuming that the number of training set samples is N, the number of divided intervals is M, C = N / M is defined as the average number of training samples in each interval, and the statistical mean vector μ of the hidden feature vector of the training samples in each interval is calculated. s : Where: N s is the number of samples in the sth interval; z s,i is the latent feature vector extracted from the i-th sample in the s-th interval; Step 4.2: Calculate the latent feature mean vector μ s Then, the Gaussian kernel function k(·) is used to calculate the smoothed feature statistics vector Where: s and s′ are the sth and s′th divided intervals respectively; Step 4.3: Based on the smoothed feature statistics vector Calibrate the latent feature vector z extracted from the training samples in the cluster s : Step 4.4: Convert the calculated Send it to the mixed density network MDN and output the g group weight parameters ω of the mixed Beta distribution i With shape parameter α i , β i (i=1,2,...,g), the probability distribution function P(y) of wind power prediction can be synthesized: Where: y is the target variable; ω i ∈R + is the weight parameter of the i-th Beta distribution, which must satisfy α i , β i ∈R + is the shape parameter of the ith Beta distribution; Г(·) represents the Gamma function.

6. The method according to any one of claims 1 to 5, characterized in that: In step 5, the probability density function of the predicted target obtained in step 2 is Assign differential weights to the original loss function, with higher weights given to samples in areas with lower density; In step 5, obtaining the weighted loss function specifically includes the following sub-steps: Step 5.1: To meet the constraints of the mixed distribution parameters, the latent feature vector z extracted from the training sample is sent to the Softmax activation function to ensure that the weight parameter ω i is a positive real number and the sum is 1, z is sent to the ReLU activation function to ensure the shape parameter α i and β i is a positive real number, that is: Where: z j is the j-th dimension hidden feature; and are the biases of the i-th neuron in the parameter layer ω, α, and β respectively; and are the connection weights between the i-th neuron in the parameter layer and the j-th neuron in the terminal RBM hidden layer, respectively; Step 5.2: The DBMDN network that combines the DBN network and the MDN network is trained with the maximum likelihood estimation as the goal, and the loss function L(X,Y|θ′) is defined as the negative log-likelihood function: Where: X={x1,x2,…,x N } is the training sample input vector set; Y = {y1, y2, …, y N } is the target value set of training samples; θ′ is the DBMDN network parameter; Step 5.3: Use the data obtained in step 2.2 Assign differentiated weights to the loss function L(X,Y|θ′) to obtain the weighted loss function L λ (X,Y|θ′), and use the new loss function to train the model to improve the sensitivity of the prediction model to samples in low-density areas: Where: is the predicted target y i The kernel density estimate at ; a0 is a positive number set to prevent the weight from being too large.

7. The method according to claim 2, characterized in that In step 9, the evaluation indicators used are: 1) Mean absolute percentage error (MAPE): measures the relative size of the error and is not easily affected by extreme values. The smaller the error, the better the prediction effect. Where: n is the number of test samples; y i and are the actual value and point prediction value of wind power of the i-th sample in the test set; P N is the rated capacity of the wind farm; 2) Root mean square error (RMSE): measures the absolute size of the error between the true value and the predicted value. It is more sensitive to outliers and can reflect the stability of the prediction model. The smaller the RMSE, the better the prediction effect. 3) Coverage bandwidth criterion CWC: It comprehensively reflects the reliability and sharpness performance of the prediction interval. The smaller the CWC is, the higher the comprehensive performance of the probability prediction is. E CWC,τ =(1+η1E PINRW,τ )(1+x(E PICP,τ <τ)exp[-η2(E PICP,τ -t)]); Where: χ is the characteristic function; U iτ and L iτ are the upper and lower bounds of the power interval of the i-th test sample under the confidence level τ; R is the difference between the maximum and minimum wind power in the test set; η1 and η2 are E PICP,τ and E PINRW,τ The penalty coefficient of the evaluation index is set to 10 here; 4) Continuous Grade Probability Score CRPS: directly evaluates the overall prediction effect of the probability distribution function. The smaller the CRPS, the better the overall prediction effect of the probability distribution. Where: F i (z) is the cumulative distribution probability of the target predicted by the i-th sample.

Citation Information

Cited By

  • Training and process parameter optimization method of digital ray imaging detection prediction model

    CN120932034A

  • Interface fracture energy prediction method based on physical constraint and data enhancement

    CN122527945A

  • Interface fracture energy prediction method based on physical constraints and data augmentation

    CN122527945B