New energy power supply guarantee curve prediction model construction method
Through DBSCAN-TimeGAN and ERA5 data correction, STL decomposition and multi-layer perceptron model integration, a new energy power supply guarantee curve prediction model is built, which solves the problem of new energy power prediction error and reliability, and improves the operating stability and new power system. Energy consumption rate.
Patent Information
- Application Number
- CN202411097617.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-05-20
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-08-12
AI Technical Summary
The proportion of new energy in power systems is increasing, resulting in power forecasting errors leading to power shortages or power abandonment. The existing technology is difficult to meet the scheduling needs of power systems and lacks effective power supply guarantee curve prediction methods.
DBSCAN-TimeGAN is used to repair outliers and vacant values for new energy data, and to build a correction model with ERA5 atmospheric reanalysis data. Time-series decomposition and prediction are carried out through STL decomposition, KernelPCA, Gabor transformation, Autoformer and KAN models to construct cycles and trends. and residual component prediction model, and the new energy power supply guarantee curve prediction model is trained through Voting integration and dynamic loss function optimizer.
It improves the accuracy and reliability of new energy power supply forecasts, provides stability support for power scheduling, and reduces the risks of power shortage and power abandonment.
Smart Images

Figure CN119009984A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method for constructing a new energy power supply guarantee curve prediction model, and belongs to the field of new energy power prediction. Background Art
[0002] With the construction of new power systems with an increasing proportion of new energy under the "dual carbon" goal, the inherent randomness and uncertainty of new energy have brought challenges to the "power supply guarantee" and "promoting consumption" of the power grid. The current research on new energy power prediction mainly focuses on improving the accuracy of prediction. However, with the increasing proportion of new energy in the power system, if the predicted value of new energy power generation is much higher than the actual power generation value, and the power grid dispatching department has made dispatching plans based on the predicted value, it may lead to power shortages and the problem that backup power generation cannot be adjusted in time, which will pose a challenge to the real-time balance of the power system. On the contrary, if the safety of power supply is overemphasized in the forecast, and a large proportional reduction factor is used for the predicted power, the predicted power of new energy will always be lower than the actual power generation value, which may lead to an increase in the proportion of "abandoned power" of new energy. The prediction error of new energy power cannot be avoided, so the dispatching department hopes to improve the reliability of the predicted power while improving the accuracy of the forecast, and provide support for the formulation of the dispatching plan, so as to seek to promote the consumption of new energy power generation as much as possible on the basis of ensuring the reliability of power supply.
[0003] At present, there is no technology for predicting the curve of new energy power supply guarantee, and the existing new energy power technology is difficult to meet the actual production needs of the power system dispatching department. Therefore, this project proposes a new energy power supply guarantee curve prediction method to provide technical support for the formulation of dispatching plans. Summary of the invention
[0004] The purpose of the present invention is to provide a method for constructing a new energy power supply guarantee curve prediction model to solve the problems existing in the above-mentioned background technology.
[0005] The purpose of the present invention is achieved by the following technical measures:
[0006] A method for constructing a new energy power supply guarantee curve prediction model is characterized by following the steps below:
[0007] S1: Collect NWP data and power data of each station in the target new energy cluster as a sample data set, and identify and repair outliers and missing value abnormal data in the data based on DBSCAN (Density-Based Spatial Clustering of Applications with Noise)-TimeGAN (Time-series Generative Adversarial Networks); then build a NWP correction model for each station in the cluster based on ERA5 (European Meteorological Center atmospheric reanalysis data, ECMWF Reanalysis version 5) atmospheric reanalysis data, and accumulate the power data of each station to build a revised sample set consisting of cluster new energy historical power data and cluster new energy historical NWP data, and then divide the revised sample set to obtain the training set and test set of the new energy supply curve modeling data set;
[0008] S2: Based on STL, the training set power data obtained in S1 is decomposed into time series. The decomposed periodic components are subjected to high-dimensional nonlinear dimensionality reduction by KernelPCA (principal component analysis based on kernel function), Gabor (Gabor transform) frequency domain decomposition and two-dimensional transformation. TimesNet modules are constructed according to different frequencies, and then the outputs of each module are integrated based on a multi-layer perceptron to form a periodic component prediction model. The trend component is subjected to Gaussian low-pass filtering and then a trend component prediction model is constructed based on Autoformer. The residual component is subjected to a KAN model after extracting meteorological-residual sensitive features to construct a residual component prediction model.
[0009] S3: Based on the periodic component prediction model, trend component prediction model and residual component prediction model obtained in S2, the initial new energy power supply guarantee curve prediction model is constructed based on the Voting integrated model, and then the dynamic loss function is used as the target loss function to train the initial new energy power supply guarantee curve prediction model through the Lion optimizer. The performance of the trained initial new energy power supply guarantee curve prediction model is evaluated based on the dynamic loss function, and the hyperparameters of the trained new energy power supply guarantee curve prediction model are optimized through the Remora optimization algorithm. The optimized new energy power supply guarantee curve prediction model is retrained and the performance is evaluated again. The process is repeated until the maximum number of iterations of the optimization algorithm is reached, and the final new energy power supply guarantee curve prediction model of the iteration is saved.
[0010] Furthermore, the specific steps of S1 include:
[0011] S1.1: Collect NWP data and power data from each station of the target new energy cluster, where the time resolution of NWP data and power data is 15 minutes; identify outliers by inputting NWP-power data into the DBSCAN clustering model; then train the TimeGAN model with normal NWP data and power data, and the trained TimeGAN model repairs the NWP-power data with outliers and missing values;
[0012] S1.2: Collect ERA5 atmospheric reanalysis data in the area where the target new energy cluster is located, and respectively count the probability density distribution (PDF) of the parameters corresponding to the ERA5 atmospheric reanalysis data and the NWP data collected by each station in the target new energy cluster, and construct the NWP correction model of each station in the cluster through the difference in statistical values; then accumulate the power data of each station in the cluster to obtain the historical NWP data of the cluster new energy and the historical power data of the cluster new energy, and the two data constitute the revised sample set of the new energy cluster;
[0013] S1.3: Divide the revised sample set of the new energy cluster according to the ratio of 7:3 between the training set and the test set to obtain the training set and test set of the new energy power supply guarantee curve modeling data set.
[0014] Furthermore, the specific steps of S2 include:
[0015] S2.1: Perform STL time series decomposition on the training set power data obtained in S1.3 to obtain periodic components, trend components and residual components; the periodic components and the meteorological data of the training set are subjected to high-dimensional nonlinear dimensionality reduction through KernelPCA, and then frequency domain decomposition is performed based on Gabor changes, and the different frequency data obtained by decomposition are converted into two-dimensional data according to period folding, and the converted data are padded to obtain two-dimensional time series data with consistent length, and TimesNet modules are constructed respectively according to the two-dimensional time series data of different frequencies, and finally the TimesNet modules are connected through a multi-layer perceptron to obtain a periodic component prediction model;
[0016] S2.2: The trend component obtained by decomposition in S2.1 is subjected to Gaussian low-pass filtering to obtain a smooth trend component of historical power data, the trend component is converted into a two-dimensional data structure through a sliding window, and a trend component prediction model is constructed through an Autoformer model;
[0017] S2.3 performs correlation analysis on the residual components decomposed in S2.1 and the various meteorological characteristic parameters of the training set meteorological data obtained in S1.3, extracts the residual sensitive features, and constructs a residual component prediction model based on KAN (Kolmogorov-Arnold Networks).
[0018] Furthermore, the specific steps of S3 include:
[0019] S3.1: The period component prediction model, trend component prediction model and residual component prediction model constructed in S2.1, S2.2 and S2.3 are used to construct the initial new energy power supply guarantee curve prediction model through the Voting integrated model;
[0020] S3.2: Construct a dynamic loss function loss; use the dynamic loss function loss as the target loss function of the Lion optimizer, use the training set meteorological data obtained in S1.3 as features, and the training set power data as labels to train the initial new energy power supply guarantee curve prediction model;
[0021]
[0022] Where, α is the error direction coefficient, and its value range is (1, +∞); β is the output amplitude coefficient, and its value range is (1, +∞); y pred is the power prediction value, y actual is the actual value of power, y pred and actual The value range is [0,1];
[0023] S3.3: Taking the dynamic loss function loss as the evaluation index, the performance of the trained new energy power supply security curve prediction model is evaluated using the test set data obtained in S1.3, and the number of neurons, regularization coefficient, number of network layers and learning rate hyperparameters of the trained new energy power supply security curve prediction model are optimized based on the Remora optimization algorithm. The optimized new energy power supply security curve prediction model is retrained and the performance is evaluated again. The process is repeated until the Remora optimization algorithm reaches the maximum number of iterations, and the final new energy power supply security curve prediction model of the iteration is saved.
[0024] The present invention saves the final new energy power supply guarantee curve prediction model and outputs the evaluation result of the final new energy power supply guarantee curve prediction model. The target cluster NWP data is input into the final new energy power supply guarantee curve prediction model, and the new energy power supply guarantee curve of the time period is correspondingly output.
[0025] The method of the present invention can realize the prediction of the new energy power supply guarantee curve, provide a reference for the power dispatching department to formulate plans, and provide technical support for improving the operational stability of the power system, which has certain promotion value. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a structural block diagram of the overall process of the present invention. DETAILED DESCRIPTION
[0027] The following is a specific description of the embodiments of the present invention in conjunction with the accompanying drawings. The purpose of the present invention is to provide a method for constructing a new energy power supply guarantee curve prediction model.
[0028] like Figure 1 As shown, a method for constructing a new energy power supply guarantee curve prediction model is characterized by following the steps below:
[0029] S1: Collect NWP data and power data of each station in the target new energy cluster as a sample data set, and identify and repair outliers and missing value abnormal data in the data based on DBSCAN-TimeGAN; then build a NWP correction model for each station in the cluster based on ERA5 atmospheric reanalysis data, and accumulate the power data of each station to build a revised sample set consisting of cluster new energy historical power data and cluster new energy historical NWP data, and then divide the revised sample set to obtain the training set and test set of the new energy supply curve modeling data set; the specific steps include:
[0030] S1.1: Collect NWP data and power data from each station of the target new energy cluster, where the time resolution of NWP data and power data is 15 minutes; identify outliers by inputting NWP-power data into the DBSCAN clustering model; then train the TimeGAN model with normal NWP data and power data, and the trained TimeGAN model repairs the NWP-power data with outliers and missing values;
[0031] S1.2: Collect ERA5 atmospheric reanalysis data in the area where the target new energy cluster is located, and respectively count the probability density distribution (PDF) of the parameters corresponding to the ERA5 atmospheric reanalysis data and the NWP data collected by each station in the target new energy cluster, and construct the NWP correction model of each station in the cluster through the difference in statistical values; then accumulate the power data of each station in the cluster to obtain the historical NWP data of the cluster new energy and the historical power data of the cluster new energy, and the two data constitute the revised sample set of the new energy cluster;
[0032] S1.3: Divide the revised sample set of the new energy cluster according to the ratio of training set to test set of 7:3, and obtain the training set and test set of the new energy power supply guarantee curve modeling data set;
[0033] S2: Based on STL, the training set power data obtained in S1 is decomposed in time series. The decomposed periodic components are subjected to high-dimensional nonlinear dimension reduction by KernelPCA, Gabor frequency domain decomposition and two-dimensional transformation. TimesNet modules are constructed according to different frequencies, and then the outputs of each module are integrated based on a multi-layer perceptron to form a periodic component prediction model. The trend component is subjected to Gaussian low-pass filtering and a trend component prediction model is constructed based on Autoformer. The residual component is subjected to the extraction of meteorological-residual sensitive features and a residual component prediction model is constructed through the KAN model. The specific steps include:
[0034] S2.1: Perform STL time series decomposition on the training set power data obtained in S1.3 to obtain periodic components, trend components and residual components; the periodic components and the meteorological data of the training set are subjected to high-dimensional nonlinear dimensionality reduction through KernelPCA, and then frequency domain decomposition is performed based on Gabor changes, and the different frequency data obtained by decomposition are converted into two-dimensional data according to period folding, and the converted data are padded to obtain two-dimensional time series data with consistent length, and TimesNet modules are constructed respectively according to the two-dimensional time series data of different frequencies, and finally the TimesNet modules are connected through a multi-layer perceptron to obtain a periodic component prediction model;
[0035] S2.2: The trend component obtained by decomposition in S2.1 is subjected to Gaussian low-pass filtering to obtain a smooth trend component of historical power data, the trend component is converted into a two-dimensional data structure through a sliding window, and a trend component prediction model is constructed through an Autoformer model;
[0036] S2.3 performs correlation analysis on the residual components decomposed in S2.1 and the various meteorological characteristic parameters of the training set meteorological data obtained in S1.3, extracts the residual sensitive features, and constructs a residual component prediction model based on KAN (Kolmogorov–Arnold Networks);
[0037] S3: Based on the periodic component prediction model, trend component prediction model and residual component prediction model obtained in S2, an initial new energy power supply guarantee curve prediction model is constructed based on the Voting integrated model, and then the dynamic loss function is used as the target loss function, and the initial new energy power supply guarantee curve prediction model is trained through the Lion optimizer; the performance of the trained new energy power supply guarantee curve prediction model is evaluated based on the dynamic loss function, and the hyperparameters of the trained new energy power supply guarantee curve prediction model are optimized through the Remora (voting) optimization algorithm, and the optimized new energy power supply guarantee curve prediction model is retrained and the performance evaluation is performed again, and the process is repeated until the maximum number of iterations of the optimization algorithm is reached, and the final new energy power supply guarantee curve prediction model of the iteration is saved; the specific steps include:
[0038] S3.1: The period component prediction model, trend component prediction model and residual component prediction model constructed in S2.1, S2.2 and S2.3 are used to construct the initial new energy power supply guarantee curve prediction model through the Voting integrated model;
[0039] S3.2: Construct a dynamic loss function loss; use the dynamic loss function loss as the target loss function of the Lion optimizer, use the training set meteorological data obtained in S1.3 as features, and the training set power data as labels to train the initial new energy power supply guarantee curve prediction model;
[0040]
[0041] Where α is the error direction coefficient, and its value range is (1, +∞). The closer the value is to 1, the more sensitive the new energy power supply guarantee curve prediction model is to the error direction; β is the output amplitude coefficient, and its value range is (1, +∞). The larger the value is, the more sensitive the new energy power supply guarantee curve prediction model is to the output amplitude; y pred is the power prediction value, y actual is the actual value of power. Since the power is normalized based on the installed capacity, y pred and actual The value range is [0,1]; in order to minimize y while ensuring the prediction accuracy pred Greater than y actual The positive error, usually α and β are 2 and 1.5 respectively;
[0042] S3.3: Taking the dynamic loss function loss as the evaluation index, the performance of the trained new energy power supply security curve prediction model is evaluated using the test set data obtained in S1.3, and the number of neurons, regularization coefficient, number of network layers and learning rate hyperparameters of the trained new energy power supply security curve prediction model are optimized based on the Remora optimization algorithm. The optimized new energy power supply security curve prediction model is retrained and the performance is evaluated again. The process is repeated until the Remora optimization algorithm reaches the maximum number of iterations, and the final new energy power supply security curve prediction model of the iteration is saved.
[0043] The final new energy power supply security curve prediction model is saved, and the evaluation result of the final new energy power supply security curve prediction model is output; the target cluster NWP data is input into the final new energy power supply security curve prediction model, and the new energy power supply security curve for the time period is output accordingly.
Claims
1. A method for constructing a new energy power supply guarantee curve prediction model, characterized in that Follow these steps: S1: Collect NWP data and power data of each station in the target new energy cluster as a sample data set, and identify and repair outliers and missing values in the data based on DBSCAN-TimeGAN; Then, based on the ERA5 atmospheric reanalysis data, a NWP correction model is constructed for each station in the cluster, and the power data of each station is accumulated to construct a revised sample set consisting of the cluster's new energy historical power data and the cluster's new energy historical NWP data. The revised sample set is then divided into a training set and a test set for the new energy supply curve modeling data set. S2: Based on STL, the training set power data obtained in S1 is decomposed into time series. The decomposed periodic components are subjected to high-dimensional nonlinear dimension reduction by KernelPCA, Gabor frequency domain decomposition and two-dimensional transformation. TimesNet modules are constructed according to different frequencies, and then the outputs of each module are integrated based on a multi-layer perceptron to form a periodic component prediction model. The trend component is subjected to Gaussian low-pass filtering and then a trend component prediction model is constructed based on Autoformer. The residual component is subjected to the extraction of meteorological-residual sensitive features and then a residual component prediction model is constructed through the KAN model. S3: Based on the periodic component prediction model, trend component prediction model and residual component prediction model obtained in S2, an initial new energy power supply security curve prediction model is constructed based on the Voting integrated model. Then, the dynamic loss function is used as the target loss function, and the initial new energy power supply security curve prediction model is trained through the Lion optimizer; the performance of the trained new energy power supply security curve prediction model is evaluated based on the dynamic loss function, and the hyperparameters of the trained new energy power supply security curve prediction model are optimized through the Remora optimization algorithm. Retraining is performed based on the optimized new energy power supply security curve prediction model, and performance evaluation is performed again. The process is repeated until the maximum number of iterations of the optimization algorithm is reached, and the final new energy power supply security curve prediction model of the iteration is saved.
2. According to the method for constructing a new energy power supply guarantee curve prediction model as described in claim 1, it is characterized in that: The S1 step specifically includes: S1.1: Collect NWP data and power data from each station of the target new energy cluster, where the time resolution of NWP data and power data is 15 minutes; identify outliers by inputting NWP-power data into the DBSCAN clustering model; then train the TimeGAN model with normal NWP data and power data, and the trained TimeGAN model repairs the NWP-power data with outliers and missing values; S1.2: Collect ERA5 atmospheric reanalysis data in the area where the target new energy cluster is located, and respectively count the probability density distribution (PDF) of the parameters corresponding to the ERA5 atmospheric reanalysis data and the NWP data collected by each station in the target new energy cluster, and construct the NWP correction model of each station in the cluster through the difference in statistical values; then accumulate the power data of each station in the cluster to obtain the historical NWP data of the cluster new energy and the historical power data of the cluster new energy, and the two data constitute the revised sample set of the new energy cluster; S1.3: Divide the revised sample set of the new energy cluster according to the ratio of 7:3 between the training set and the test set to obtain the training set and test set of the new energy power supply guarantee curve modeling data set.
3. According to the method for constructing a new energy power supply guarantee curve prediction model as described in claim 2, it is characterized in that: The S2 step specifically includes: S2.1: Perform STL time series decomposition on the training set power data obtained in S1.3 to obtain periodic components, trend components and residual components; the periodic components and the meteorological data of the training set are subjected to high-dimensional nonlinear dimensionality reduction through KernelPCA, and then frequency domain decomposition is performed based on Gabor changes, and the different frequency data obtained by decomposition are converted into two-dimensional data according to period folding, and the converted data are padded to obtain two-dimensional time series data with consistent length, and TimesNet modules are constructed respectively according to the two-dimensional time series data of different frequencies, and finally the TimesNet modules are connected through a multi-layer perceptron to obtain a periodic component prediction model; S2.2: The trend component obtained by decomposition in S2.1 is subjected to Gaussian low-pass filtering to obtain a smooth trend component of historical power data, the trend component is converted into a two-dimensional data structure through a sliding window, and a trend component prediction model is constructed through an Autoformer model; S2.3 performs correlation analysis on the residual components decomposed in S2.1 and the various meteorological characteristic parameters of the training set meteorological data obtained in S1.3, extracts the residual sensitive features, and constructs a residual component prediction model based on KAN.
4. According to the method for constructing a new energy power supply guarantee curve prediction model as described in claim 3, it is characterized in that: The S3 step is specifically as follows: S3.1: The period component prediction model, trend component prediction model and residual component prediction model constructed in S2.1, S2.2 and S2.3 are used to construct the initial new energy power supply guarantee curve prediction model through the Voting integrated model; S3.2: Construct dynamic loss function lass; The dynamic loss function loss is used as the target loss function of the Lion optimizer, the training set meteorological data obtained in S1.3 is used as features, and the training set power data is used as labels to train the initial new energy power supply guarantee curve prediction model; Where α is the error direction coefficient, and its value range is (1, +∞); β is the output amplitude coefficient, and its value range is (1, +∞); y pred is the power prediction value, y actual is the actual value of power, y pred and actual The value range is [0,1]; S3.3: Take the dynamic loss function lass as the evaluation index, use the test set data obtained in S1.3 to evaluate the performance of the trained new energy power supply security curve prediction model, and optimize the number of neurons, regularization coefficient, number of network layers and learning rate hyperparameters of the trained new energy power supply security curve prediction model based on the Remora optimization algorithm, retrain the optimized new energy power supply security curve prediction model, and perform performance evaluation again. Repeat this process until the Remora optimization algorithm reaches the maximum number of iterations, and save the final new energy power supply security curve prediction model of the iteration.
5. According to the method for constructing a new energy power supply guarantee curve prediction model as described in claim 4, it is characterized in that: The target cluster NWP data is input into the final new energy power supply security curve prediction model, and the new energy power supply security curve for the time period is output accordingly.
Citation Information
Patent Citations
Load prediction method
CN114169434A
Photovoltaic power generation power prediction method based on frequency domain decomposition
CN116187498A
Wind-light-load combined prediction method
CN116613815A
Cluster type wind-solar new energy base power prediction method and system
CN117767292A
Cited By
Double-branch time sequence prediction method based on frequency amplitude shaping and period alignment
CN122241121A
A Two-Branch Time Series Prediction Method Based on Frequency Amplitude Shaping and Period Alignment
CN122241121B
