Short-term wind power integrated prediction method and device
By combining numerical weather forecast data and cluster error data, the optimized TabNet and LightGBM models are used for wind power power prediction, which solves the problem of insufficient accuracy of wind power power prediction under extreme meteorological conditions and achieves more efficient and accurate prediction results. .
Patent Information
- Application Number
- CN202410594463.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-08-30
AI Technical Summary
The accuracy of wind power power prediction is insufficient at different times or under extreme meteorological conditions, and is greatly affected by meteorological conditions and prediction methods. The role of manual experience in the prediction process is irreplaceable.
The numerical weather forecast data based on the wind farm station and the cluster center distance of the pre-obtained cluster clusters are used to obtain the error data, and the TabNet and LightGBM models are combined for prediction. The model parameters are optimized through the gray wolf algorithm, and logistic regression is used for integrated prediction. Error correction is performed to improve forecast accuracy.
It significantly improves the accuracy and efficiency of short-term wind power power prediction, has engineering applicability, and can predict wind power power more accurately.
Smart Images

Figure CN118569424A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power system operation and control, and in particular to a short-term wind power integrated prediction method and device. Background Art
[0002] Wind power prediction is crucial for power grid operation and energy management. At present, the methods for wind power prediction are mainly divided into physical methods and statistical methods, which respectively establish models for prediction based on atmospheric equations that consider meteorological characteristics and the mapping relationship between meteorological data and power data. Each prediction method has its own advantages and disadvantages, so combining physical methods with statistical methods or statistical methods with statistical methods for combined prediction is conducive to giving full play to the advantages of various models and avoiding shortcomings.
[0003] However, since wind power generation is greatly affected by meteorological conditions and prediction methods, the wind power prediction, especially at different times or in extreme weather, is not satisfactory, and the role of artificial experience in the prediction process is irreplaceable. Based on this, it is of great significance to propose a prediction method that combines artificial experience with the model for intervention. Summary of the invention
[0004] In order to overcome the above defects, the present invention proposes a short-term wind power integrated prediction method and device.
[0005] In a first aspect, a short-term wind power integrated prediction method is provided, the short-term wind power integrated prediction method comprising:
[0006] Obtain error data based on the distance between the numerical weather forecast data of the wind farm station and the cluster center of the pre-obtained cluster cluster;
[0007] The numerical weather forecast data of the wind farm is used as the input of the pre-built power integration prediction model to obtain the initial power prediction data of the wind farm outputted by the pre-built power integration prediction model;
[0008] The sum of the error data and the initial power prediction data of the wind farm is used as the final power prediction data of the wind farm.
[0009] Preferably, the step of obtaining error data based on the distance between the numerical weather forecast data of the wind farm station and the cluster center of the pre-acquired cluster clusters includes:
[0010] The numerical weather forecast data of the wind farm station is classified by using the distance between the numerical weather forecast data of the wind farm station and the cluster center of the pre-acquired cluster cluster, so as to obtain the numerical weather forecast data corresponding to each pre-acquired cluster cluster;
[0011] The numerical weather forecast data corresponding to each pre-acquired cluster cluster are respectively used as inputs of the error integration prediction model corresponding to each pre-acquired cluster cluster, and the error results output by the error integration prediction model corresponding to each pre-acquired cluster cluster are obtained;
[0012] The error results output by the error integration prediction model corresponding to each pre-acquired cluster are sorted by time to obtain error data.
[0013] Furthermore, the pre-acquired clusters include:
[0014] Taking the historical numerical weather forecast data of the wind farm as the input of the pre-built power integration prediction model, the historical power prediction data of the wind farm outputted by the pre-built power integration prediction model is obtained;
[0015] Subtract the historical power prediction data of the wind farm from the historical actual power data of the wind farm to obtain historical prediction error data of the wind farm;
[0016] A hierarchical clustering algorithm is used to classify the historical prediction error data of the wind farm station to obtain clusters of various types of error data;
[0017] The historical numerical weather forecast data of the wind farm station corresponding to the error data in the cluster of each type of error data is used as a pre-acquired cluster.
[0018] Furthermore, the error integration prediction model corresponding to the pre-acquired clustering clusters includes: a pre-trained first TabNet model, a pre-trained first LightGBM model and a first weight model;
[0019] The pre-trained first TabNet model is used to take the numerical weather forecast data corresponding to the pre-acquired cluster cluster as input and output the first error result corresponding to the pre-acquired cluster cluster;
[0020] The pre-trained first LightGBM model is used to take the numerical weather forecast data corresponding to the pre-acquired cluster cluster as input, and output the second error result corresponding to the pre-acquired cluster cluster;
[0021] The first weight model is used to perform weighted summation on the first error result and the second error result using the preset first TabNet model weight and the first LightGBM model weight to obtain initial power prediction data of the wind farm.
[0022] Furthermore, the training process of the pre-trained first TabNet model includes:
[0023] Constructing training samples using the historical numerical weather forecast data corresponding to the pre-acquired clusters and the error data corresponding to the pre-acquired clusters;
[0024] The initial TabNet model is trained using the training data to obtain the pre-trained first TabNet model.
[0025] Furthermore, the training process of the pre-trained first LightGBM model includes:
[0026] Constructing training samples using the historical numerical weather forecast data corresponding to the pre-acquired clusters and the error data corresponding to the pre-acquired clusters;
[0027] The initial LightGBM model is trained using the training data to obtain the pre-trained first LightGBM model.
[0028] Preferably, the pre-built power integration prediction model includes: a pre-trained second TabNet model, a pre-trained second LightGBM model and a second weight model;
[0029] The pre-trained second TabNet model is used to take the numerical weather forecast data of the wind farm as input and output the first power prediction data of the wind farm;
[0030] The pre-trained second LightGBM model is used to take the numerical weather forecast data of the wind farm as input and output second power prediction data;
[0031] The second weight model is used to perform weighted summation on the first power prediction data and the second power prediction data using the preset second TabNet model weight and the second LightGBM model weight to obtain the initial power prediction data of the wind farm.
[0032] Furthermore, the training process of the pre-trained second TabNet model includes:
[0033] The training data is constructed using the historical numerical weather forecast data and the historical power data of the wind farm station;
[0034] The initial TabNet model is trained using the training data to obtain the pre-trained second TabNet model.
[0035] Furthermore, the training process of the pre-trained second LightGBM model includes:
[0036] The training data is constructed using the historical numerical weather forecast data and the historical power data of the wind farm station;
[0037] The initial LightGBM model is trained using the training data to obtain the pre-trained second LightGBM model.
[0038] Furthermore, the model parameters of the pre-built power integration prediction model are optimized using the gray wolf algorithm, wherein the hunting target of the gray wolf algorithm is to minimize the error value between the initial power prediction data of the wind farm station output by the pre-built power integration prediction model and the actual power data of the wind farm station, and the gray wolf position is the model parameter of the pre-built power integration prediction model, and the model parameters of the pre-built power integration prediction model include: neural network learning rate, loss function, preset second TabNet model weights, preset second LightGBM model weights, and neural network model weights.
[0039] In a second aspect, a short-term wind power integrated prediction device is provided, the short-term wind power integrated prediction device comprising:
[0040] An acquisition module, used for acquiring error data based on the distance between the numerical weather forecast data of the wind farm station and the cluster center of the pre-acquired cluster cluster;
[0041] A prediction module is used to use the numerical weather forecast data of the wind farm as the input of the pre-built power integration prediction model to obtain the initial power prediction data of the wind farm output by the pre-built power integration prediction model;
[0042] The analysis module is used to take the sum of the error data and the initial power prediction data of the wind farm as the final power prediction data of the wind farm.
[0043] In a third aspect, a computer device is provided, comprising: one or more processors;
[0044] The processor is configured to execute one or more programs;
[0045] When the one or more programs are executed by the one or more processors, the short-term wind power integration prediction method is implemented.
[0046] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed, the short-term wind power integration prediction method is implemented.
[0047] The above one or more technical solutions of the present invention have at least one or more of the following beneficial effects:
[0048] The present invention provides a short-term wind power integrated prediction method and device, including: obtaining error data based on the distance between the numerical weather forecast data of the wind farm station and the cluster center of the pre-acquired cluster cluster; using the numerical weather forecast data of the wind farm station as the input of the pre-built power integrated prediction model to obtain the initial power prediction data of the wind farm station output by the pre-built power integrated prediction model; and using the sum of the error data and the initial power prediction data of the wind farm station as the final power prediction data of the wind farm station. The technical solution provided by the present invention significantly improves the accuracy and efficiency of short-term wind power prediction and has engineering applicability. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a schematic flow chart of the main steps of the short-term wind power integrated prediction method according to an embodiment of the present invention;
[0050] Figure 2 It is a specific implementation flow chart of the short-term wind power integrated prediction method of an embodiment of the present invention. DETAILED DESCRIPTION
[0051] The specific implementation modes of the present invention will be further described in detail below in conjunction with the accompanying drawings.
[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0053] As disclosed in the background technology, wind power prediction is crucial for power grid operation and energy management. At present, the methods for wind power prediction are mainly divided into physical methods and statistical methods, which respectively establish models for prediction based on atmospheric equations that consider meteorological characteristics and the mapping relationship between meteorological data and power data. Each type of prediction method has its own advantages and disadvantages. Therefore, combining physical methods with statistical methods or statistical methods with statistical methods for combined prediction is conducive to giving full play to the advantages of various models and avoiding shortcomings.
[0054] However, since wind power generation is greatly affected by meteorological conditions and prediction methods, the wind power prediction, especially at different times or in extreme weather, is not satisfactory, and the role of artificial experience in the prediction process is irreplaceable. Based on this, it is of great significance to propose a prediction method that combines artificial experience with the model for intervention.
[0055] In order to improve the above-mentioned problems, the present invention provides a short-term wind power integrated prediction method and device, including: obtaining error data based on the distance between the numerical weather forecast data of the wind farm station and the cluster center of the pre-acquired cluster cluster; using the numerical weather forecast data of the wind farm station as the input of the pre-built power integrated prediction model to obtain the initial power prediction data of the wind farm station output by the pre-built power integrated prediction model; and using the sum of the error data and the initial power prediction data of the wind farm station as the final power prediction data of the wind farm station. The technical solution provided by the present invention significantly improves the accuracy and efficiency of short-term wind power prediction and has engineering applicability. Specifically:
[0056] By imitating the hunting strategy of gray wolf groups, the parameter configuration of TabNet and LightGBM models is optimized to improve the prediction performance, and the logistic regression model is used to establish an integrated prediction model. In addition, the errors of the prediction results are manually clustered and predicted, and the errors are corrected to finally obtain the corrected prediction power.
[0057] In the preprocessing stage, the collected meteorological and power data are strictly cleaned and normalized to ensure the effectiveness of model training. The TabNet model uses its unique attention mechanism for feature selection, while the LightGBM model performs residual fitting through an efficient histogram algorithm and decision tree strategy.
[0058] To further optimize the performance of the above model, the Grey Wolf Algorithm (GWO) was used to dynamically adjust the model parameters and find the optimal solution by updating the group hunting strategy. Logistic regression was then used to integrate the prediction results of the two models to reduce the prediction bias.
[0059] Through the intervention of researchers to conduct hierarchical clustering analysis of error data, the errors and their corresponding numerical weather forecast data (NWP) were divided into different categories, and the errors and their corresponding NWP meteorological data were verified by non-parametric kernel density estimation and chi-square test to verify the effectiveness of the clustering method. Then, each type of error and its NWP meteorological data were corrected using the above-mentioned integrated prediction model, and finally the prediction results of the integrated model were output and superimposed with the prediction errors to form the final predicted power. Combined with manual experience, a more accurate wind power prediction method is provided.
[0060] The above scheme is described in detail below.
[0061] Example 1
[0062] See attached Figure 1 , Figure 1 FIG. 1 is a schematic flow chart of the main steps of a short-term wind power integrated prediction method according to an embodiment of the present invention. Figure 1As shown, the short-term wind power integrated prediction method in the embodiment of the present invention mainly includes the following steps:
[0063] Step S101: obtaining error data based on the distance between the numerical weather forecast data of the wind farm station and the cluster center of the pre-acquired cluster cluster;
[0064] Step S102: using the numerical weather forecast data of the wind farm as the input of the pre-built power integration prediction model to obtain the initial power prediction data of the wind farm output by the pre-built power integration prediction model;
[0065] Step S103: taking the sum of the error data and the initial power prediction data of the wind farm as the final power prediction data of the wind farm.
[0066] In this embodiment, before step S101, the numerical weather forecast data of the wind farm station needs to be defined first, specifically:
[0067] The collected wind farm NWP data (numerical weather forecast data) and regional grid NWP data are cleaned and deleted, missing values and abnormal values are removed, and the timestamps are unified to ensure that the start and end times of the two are consistent. The NWP data of each station, the regional grid NWP data and the wind power output data of each station are normalized to generate normalized regional grid NWP data with a spatial resolution of 3*3 and normalized power data of each station, which are the numerical weather forecast data of the wind farm;
[0068] The NWP data of each wind farm station, the regional gridded NWP data and the power data of each station are normalized. The normalization formula of the station power data is:
[0069]
[0070] Among them, P iguiyi Represents the normalized power data, P i Represents the original power data, P max Indicates the maximum value of power in the original data.
[0071] The regional gridded NWP data are normalized using the MinMaxScaler function, and the normalization formula for each feature is:
[0072]
[0073] Among them, x i ' represents the normalized eigenvalue, x iRepresents the value in the original feature, min(X) and max(X) represent the minimum and maximum values in feature X, respectively, and new_max and new_min represent the maximum and minimum values of the new range to be normalized.
[0074] Finally, the maximum intersection of the timestamps of the NWP data of each wind farm station, the regional gridded NWP data, and the power data of each station is counted as the time range covered by the data to form a data set for subsequent training models for power prediction and error correction, so as to facilitate subsequent training models and error analysis, and provide a data basis for subsequent training models.
[0075] In this embodiment, the error data is obtained based on the distance between the numerical weather forecast data of the wind farm station and the cluster center of the pre-acquired cluster cluster, including:
[0076] The numerical weather forecast data of the wind farm station is classified by using the distance between the numerical weather forecast data of the wind farm station and the cluster center of the pre-acquired cluster cluster, so as to obtain the numerical weather forecast data corresponding to each pre-acquired cluster cluster;
[0077] The numerical weather forecast data corresponding to each pre-acquired cluster cluster are respectively used as inputs of the error integration prediction model corresponding to each pre-acquired cluster cluster, and the error results output by the error integration prediction model corresponding to each pre-acquired cluster cluster are obtained;
[0078] The error results output by the error integration prediction model corresponding to each pre-acquired cluster are sorted by time to obtain error data.
[0079] In one embodiment, the pre-acquired clusters include:
[0080] Taking the historical numerical weather forecast data of the wind farm as the input of the pre-built power integration prediction model, the historical power prediction data of the wind farm outputted by the pre-built power integration prediction model is obtained;
[0081] Subtract the historical power prediction data of the wind farm from the historical actual power data of the wind farm to obtain historical prediction error data of the wind farm;
[0082] A hierarchical clustering algorithm is used to classify the historical prediction error data of the wind farm station to obtain clusters of various types of error data;
[0083] The historical numerical weather forecast data of the wind farm station corresponding to the error data in the cluster of each type of error data is used as a pre-acquired cluster.
[0084] Specifically, first, a dendrogram is constructed based on the distances between all pairs of error data points, and the clustering structure is displayed. Secondly, the "split point" is selected by observing the clustering levels in the dendrogram, that is, a longer vertical line usually indicates the merging of less similar clusters. According to this principle, the number of clusters k can be determined. In this step, each data point can be observed and reclassified in a targeted manner based on the experience of the researchers. Finally, each type of error data is saved separately according to the cluster split point to obtain k types of error data, and each type of classified error data and its corresponding NWP data are labeled with specific data labels.
[0085] The above clustering results were verified from the perspectives of physical factors and mathematical methods. For each type of NWP data, non-parametric kernel density estimation was used to fit the 14 types of meteorological elements in each type of NWP data. The probability density curve of each type of data was visualized, and the characteristics and differences of each curve were analyzed. n ]The probability density function f(x,h) formula is:
[0086]
[0087] Among them, n is the number of sample points, h is the window width, which is used to determine the interval division of data distribution, x is the function variable, and x i is the i-th meteorological data sample point; function K(x) is the kernel function used, and the Gaussian distribution is used in this invention, that is:
[0088]
[0089] The mean, peak value, etc. of each meteorological element were statistically calculated, and the chi-square test was used to verify the differences between meteorological elements of different types of NWP data. If the test value p was greater than 0.05, it could be determined that the data were independent of each other, that is, there were significant differences.
[0090] In one embodiment, the error integration prediction model corresponding to the pre-acquired clustering cluster includes: a pre-trained first TabNet model, a pre-trained first LightGBM model and a first weight model;
[0091] The pre-trained first TabNet model is used to take the numerical weather forecast data corresponding to the pre-acquired cluster cluster as input and output the first error result corresponding to the pre-acquired cluster cluster;
[0092] The pre-trained first LightGBM model is used to take the numerical weather forecast data corresponding to the pre-acquired cluster cluster as input, and output the second error result corresponding to the pre-acquired cluster cluster;
[0093] The first weight model is used to perform weighted summation on the first error result and the second error result using the preset first TabNet model weight and the first LightGBM model weight to obtain initial power prediction data of the wind farm.
[0094] The training process of the pre-trained first TabNet model includes:
[0095] Constructing training samples using the historical numerical weather forecast data corresponding to the pre-acquired clusters and the error data corresponding to the pre-acquired clusters;
[0096] The initial TabNet model is trained using the training data to obtain the pre-trained first TabNet model.
[0097] To train the TabNet model, slice and divide the processed data, input the first 75% into the TabNet model for training, 75%-90% of the data is used for model verification, and the remaining 10% is used for prediction. Input the data into the TabNet model in the form of a feature matrix;
[0098] For feature selection of each decision, the model is implemented through the masking module of the attention conversion learner. Specifically, the feature converter inputs the output of the previous decision step into the segmentation module, and the segmentation module obtains the feature tensor output by the previous decision module, and realizes the linear combination of features through the fully connected (FC) layer and the batch normalization (BN) layer. The output of the FC layer is multiplied by the prior proportion of the previous decision step, and the weighted distribution is generated through the activation function Sparsemax, where the sum of all feature weights of each sample is 1.
[0099] The masked filtered features are transmitted to the feature converter layer, one part of which is used as the output of the current decision step, and the other part is used as the input of the next decision step. In the feature converter layer, the batch normalization (BN) layer normalizes each input feature, the gated linear unit (GLU) layer generates values and gated signals through two parallel linear transformations to control the transmission and suppression of the signal, and the fully connected (FC) layer adds a bias term to the weighted sum of the input features and maps the input features to a new feature space. The reconstructed features obtained after the above feature converter reconstructs the features are input into the decoder for decoding. After multiple decision steps of the model, a complex feature representation is finally generated as the final output result.
[0100] In one embodiment, the training process of the pre-trained first LightGBM model includes:
[0101] Constructing training samples using the historical numerical weather forecast data corresponding to the pre-acquired clusters and the error data corresponding to the pre-acquired clusters;
[0102] The initial LightGBM model is trained using the training data to obtain the pre-trained first LightGBM model.
[0103] To train the LightGBM model, input the first 75% of the processed data into the LightGBM model training, the next 75%-90% for verification, and the remaining 10% for prediction. The LightGBM model usually uses a leaf-wise growth strategy and a histogram algorithm to fit the residuals, thereby improving the accuracy and effectively reducing the loss function. For the data, first set the model's initial parameter iterations M times, initial weight γ, learning rate η, and initialize the model constant value:
[0104]
[0105] Among them, P0(x) is the initialization constant function, T(y i ,γ) is about (y i ,γ), where N is the number of samples.
[0106] Use GOSS and ETB technology to build a decision tree in the feature space. For each leaf node j of the tree, calculate the model loss rate T m (x) minimizes the optimal weight γ jm :
[0107]
[0108] Among them, T(y i ,P m-1 (x i )+g) is about (y i ,P m-1 (x i )+g) model loss function, R jm is the sample set in leaf node j.
[0109] The formula for the final predicted value output by the model is:
[0110]
[0111] Where J is the number of nodes, P m (x) is the predicted value output by the LightGBM model at each iteration, P m-1 (x) is the output result of the previous iteration. The final output prediction result P M (x).
[0112] Similarly, in this embodiment, the pre-built power integration prediction model includes: a pre-trained second TabNet model, a pre-trained second LightGBM model, and a second weight model;
[0113] The pre-trained second TabNet model is used to take the numerical weather forecast data of the wind farm as input and output the first power prediction data of the wind farm;
[0114] The pre-trained second LightGBM model is used to take the numerical weather forecast data of the wind farm as input and output second power prediction data;
[0115] The second weight model is used to perform weighted summation on the first power prediction data and the second power prediction data using the preset second TabNet model weight and the second LightGBM model weight to obtain the initial power prediction data of the wind farm.
[0116] In one embodiment, the training process of the pre-trained second TabNet model includes:
[0117] The training data is constructed using the historical numerical weather forecast data and the historical power data of the wind farm station;
[0118] The initial TabNet model is trained using the training data to obtain the pre-trained second TabNet model.
[0119] In one embodiment, the training process of the pre-trained second LightGBM model includes:
[0120] The training data is constructed using the historical numerical weather forecast data and the historical power data of the wind farm station;
[0121] The initial LightGBM model is trained using the training data to obtain the pre-trained second LightGBM model.
[0122] In one embodiment, the model parameters of the pre-built power integration prediction model are optimized using the gray wolf algorithm, wherein the hunting target of the gray wolf algorithm is to minimize the error value between the initial power prediction data of the wind farm station output by the pre-built power integration prediction model and the actual power data of the wind farm station, and the gray wolf position is the model parameter of the pre-built power integration prediction model, and the model parameters of the pre-built power integration prediction model include: neural network learning rate, loss function, preset second TabNet model weights, preset second LightGBM model weights, and neural network model weights.
[0123] In a preferred embodiment, Figure 2 As shown, the technical solution provided by the present invention is implemented in the following manner:
[0124] A. Data processing and training model layer: Clean and delete the collected wind farm NWP data and regional grid NWP data, remove missing values and abnormal values, and unify the timestamps to ensure the consistency of the start and end times of the two. Normalize the NWP data of each station, the regional grid NWP data, and the wind power output data of each station to generate normalized regional grid NWP data with a spatial resolution of 3*3 and normalized power data of each station, which is convenient for subsequent model training and error analysis;
[0125] The above normalized regional grid NWP data and normalized power data are input into the TabNet model for training and prediction. The TabNet model absorbs the advantages of neural networks and tree models, can autonomously extract effective features of multi-dimensional data, and combine the attention mechanism to assign weights to different features, and finally output the results;
[0126] Input the normalized regional grid NWP data and normalized power data into the LightGBM model. The LightGBM model relies on the histogram algorithm and feature and data parallel methods to accelerate the traversal loop and greatly improve the calculation speed. It can also increase the cache hit rate and reduce memory consumption.
[0127] B. Optimize the prediction layer of the integrated model: The Gray Wolf Algorithm is used to optimize the hyperparameters and weights in the TabNet model and the LightGBM model to improve the model's fitting ability and generalization performance. The Gray Wolf Algorithm simulates the group hunting behavior of gray wolves and takes the minimized loss function as the hunting goal to find the optimal solution for the model parameters.
[0128] The TabNet model and LightGBM model after parameter optimization are integrated into a new learner using a new meta-learner logistic regression to predict power data.
[0129] C. Combined with manual experience error clustering layer: For the error between the power data predicted by the above GWO-TabNet-LightGBM integrated model and the actual power data, the hierarchical clustering algorithm and human experience are used to cluster the error. Hierarchical clustering does not require the number of clusters to be specified in advance, but focuses on the hierarchical structure of the data, and uses a tree diagram to visually display the internal structure of the data and generate meaningful data categories.
[0130] D. Error verification and correction layer: For the error classes obtained by the above clustering, different error classes and their corresponding NWP data are distinguished as different label data. The similarities between the same type of NWP data and the differences between different types of NWP data are analyzed by analyzing the physical characteristics of meteorological characteristics and non-parametric kernel density test, and the chi-square test is used for verification;
[0131] The error classes with different labels obtained above are input into the GWO-TabNet-LightGBM integrated optimization model respectively, the first 75% of each type of error data is used as the training set, 75%-90% of each type of error data is used as the validation set, and the last 10% is used for prediction;
[0132] E. Output layer of power prediction and error correction results of human-machine collaboration: Using the GWO-TabNet-LightGBM integrated optimization model, the predicted power prediction value is superimposed with the clustering error predicted after clustering based on human experience, and the final predicted power data is output.
[0133] Example 2
[0134] Based on the same inventive concept, the present invention also provides a short-term wind power integrated prediction device, the short-term wind power integrated prediction device comprising:
[0135] An acquisition module, used for acquiring error data based on the distance between the numerical weather forecast data of the wind farm station and the cluster center of the pre-acquired cluster cluster;
[0136] A prediction module is used to use the numerical weather forecast data of the wind farm as the input of the pre-built power integration prediction model to obtain the initial power prediction data of the wind farm output by the pre-built power integration prediction model;
[0137] The analysis module is used to take the sum of the error data and the initial power prediction data of the wind farm as the final power prediction data of the wind farm.
[0138] Preferably, the step of obtaining error data based on the distance between the numerical weather forecast data of the wind farm station and the cluster center of the pre-acquired cluster clusters includes:
[0139] The numerical weather forecast data of the wind farm station is classified by using the distance between the numerical weather forecast data of the wind farm station and the cluster center of the pre-acquired cluster cluster, so as to obtain the numerical weather forecast data corresponding to each pre-acquired cluster cluster;
[0140] The numerical weather forecast data corresponding to each pre-acquired cluster cluster are respectively used as inputs of the error integration prediction model corresponding to each pre-acquired cluster cluster, and the error results output by the error integration prediction model corresponding to each pre-acquired cluster cluster are obtained;
[0141] The error results output by the error integration prediction model corresponding to each pre-acquired cluster are sorted by time to obtain error data.
[0142] Furthermore, the pre-acquired clusters include:
[0143] Taking the historical numerical weather forecast data of the wind farm as the input of the pre-built power integration prediction model, the historical power prediction data of the wind farm outputted by the pre-built power integration prediction model is obtained;
[0144] Subtract the historical power prediction data of the wind farm from the historical actual power data of the wind farm to obtain historical prediction error data of the wind farm;
[0145] A hierarchical clustering algorithm is used to classify the historical prediction error data of the wind farm station to obtain clusters of various types of error data;
[0146] The historical numerical weather forecast data of the wind farm station corresponding to the error data in the cluster of each type of error data is used as a pre-acquired cluster.
[0147] Furthermore, the error integration prediction model corresponding to the pre-acquired clustering clusters includes: a pre-trained first TabNet model, a pre-trained first LightGBM model and a first weight model;
[0148] The pre-trained first TabNet model is used to take the numerical weather forecast data corresponding to the pre-acquired cluster cluster as input and output the first error result corresponding to the pre-acquired cluster cluster;
[0149] The pre-trained first LightGBM model is used to take the numerical weather forecast data corresponding to the pre-acquired cluster cluster as input, and output the second error result corresponding to the pre-acquired cluster cluster;
[0150] The first weight model is used to perform weighted summation on the first error result and the second error result using the preset first TabNet model weight and the first LightGBM model weight to obtain initial power prediction data of the wind farm.
[0151] Furthermore, the training process of the pre-trained first TabNet model includes:
[0152] Constructing training samples using the historical numerical weather forecast data corresponding to the pre-acquired clusters and the error data corresponding to the pre-acquired clusters;
[0153] The initial TabNet model is trained using the training data to obtain the pre-trained first TabNet model.
[0154] Furthermore, the training process of the pre-trained first LightGBM model includes:
[0155] Constructing training samples using the historical numerical weather forecast data corresponding to the pre-acquired clusters and the error data corresponding to the pre-acquired clusters;
[0156] The initial LightGBM model is trained using the training data to obtain the pre-trained first LightGBM model.
[0157] Preferably, the pre-built power integration prediction model includes: a pre-trained second TabNet model, a pre-trained second LightGBM model and a second weight model;
[0158] The pre-trained second TabNet model is used to take the numerical weather forecast data of the wind farm as input and output the first power prediction data of the wind farm;
[0159] The pre-trained second LightGBM model is used to take the numerical weather forecast data of the wind farm as input and output second power prediction data;
[0160] The second weight model is used to perform weighted summation on the first power prediction data and the second power prediction data using the preset second TabNet model weight and the second LightGBM model weight to obtain the initial power prediction data of the wind farm.
[0161] Furthermore, the training process of the pre-trained second TabNet model includes:
[0162] The training data is constructed using the historical numerical weather forecast data and the historical power data of the wind farm station;
[0163] The initial TabNet model is trained using the training data to obtain the pre-trained second TabNet model.
[0164] Furthermore, the training process of the pre-trained second LightGBM model includes:
[0165] The training data is constructed using the historical numerical weather forecast data and the historical power data of the wind farm station;
[0166] The initial LightGBM model is trained using the training data to obtain the pre-trained second LightGBM model.
[0167] Furthermore, the model parameters of the pre-built power integration prediction model are optimized using the gray wolf algorithm, wherein the hunting target of the gray wolf algorithm is to minimize the error value between the initial power prediction data of the wind farm station output by the pre-built power integration prediction model and the actual power data of the wind farm station, and the gray wolf position is the model parameter of the pre-built power integration prediction model, and the model parameters of the pre-built power integration prediction model include: neural network learning rate, loss function, preset second TabNet model weights, preset second LightGBM model weights, and neural network model weights.
[0168] Example 3
[0169] Based on the same inventive concept, the present invention also provides a computer device, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions in the computer storage medium to implement the corresponding method flow or corresponding functions, so as to implement the steps of a short-term wind power integrated prediction method in the above embodiment.
[0170] Example 4
[0171] Based on the same inventive concept, the present invention also provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It can be understood that the computer-readable storage medium here can include both built-in storage media in the computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the steps of a short-term wind power integration prediction method in the above embodiment.
[0172] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0173] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0174] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1A function specified in one or more boxes.
[0175] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0176] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A short-term wind power integrated prediction method, characterized in that: The method comprises: Obtain error data based on the distance between the numerical weather forecast data of the wind farm station and the cluster center of the pre-obtained cluster cluster; The numerical weather forecast data of the wind farm is used as the input of the pre-built power integration prediction model to obtain the initial power prediction data of the wind farm outputted by the pre-built power integration prediction model; The sum of the error data and the initial power prediction data of the wind farm is used as the final power prediction data of the wind farm.
2. The method according to claim 1, characterized in that The error data is obtained based on the distance between the numerical weather forecast data of the wind farm station and the cluster center of the pre-acquired cluster cluster, including: The numerical weather forecast data of the wind farm station is classified by using the distance between the numerical weather forecast data of the wind farm station and the cluster center of the pre-acquired cluster cluster, so as to obtain the numerical weather forecast data corresponding to each pre-acquired cluster cluster; The numerical weather forecast data corresponding to each pre-acquired cluster cluster are respectively used as inputs of the error integration prediction model corresponding to each pre-acquired cluster cluster, and the error results output by the error integration prediction model corresponding to each pre-acquired cluster cluster are obtained; The error results output by the error integration prediction model corresponding to each pre-acquired cluster are sorted by time to obtain error data.
3. The method according to claim 2, characterized in that The pre-acquired clusters include: Taking the historical numerical weather forecast data of the wind farm as the input of the pre-built power integration prediction model, the historical power prediction data of the wind farm outputted by the pre-built power integration prediction model is obtained; Subtract the historical power prediction data of the wind farm from the historical actual power data of the wind farm to obtain historical prediction error data of the wind farm; A hierarchical clustering algorithm is used to classify the historical prediction error data of the wind farm station to obtain clusters of various types of error data; The historical numerical weather forecast data of the wind farm station corresponding to the error data in the cluster of each type of error data is used as a pre-acquired cluster.
4. The method according to claim 3, characterized in that The error integration prediction model corresponding to the pre-acquired clustering clusters includes: a pre-trained first TabNet model, a pre-trained first LightGBM model and a first weight model; The pre-trained first TabNet model is used to take the numerical weather forecast data corresponding to the pre-acquired cluster cluster as input and output the first error result corresponding to the pre-acquired cluster cluster; The pre-trained first LightGBM model is used to take the numerical weather forecast data corresponding to the pre-acquired cluster cluster as input, and output the second error result corresponding to the pre-acquired cluster cluster; The first weight model is used to perform weighted summation on the first error result and the second error result using the preset first TabNet model weight and the first LightGBM model weight to obtain initial power prediction data of the wind farm.
5. The method according to claim 4, characterized in that The training process of the pre-trained first TabNet model includes: Constructing training samples using the historical numerical weather forecast data corresponding to the pre-acquired clusters and the error data corresponding to the pre-acquired clusters; The initial TabNet model is trained using the training data to obtain the pre-trained first TabNet model.
6. The method according to claim 4, characterized in that The training process of the pre-trained first LightGBM model includes: Constructing training samples using the historical numerical weather forecast data corresponding to the pre-acquired clusters and the error data corresponding to the pre-acquired clusters; The initial LightGBM model is trained using the training data to obtain the pre-trained first LightGBM model.
7. The method according to claim 1, characterized in that The pre-built power integration prediction model includes: a pre-trained second TabNet model, a pre-trained second LightGBM model, and a second weight model; The pre-trained second TabNet model is used to take the numerical weather forecast data of the wind farm as input and output the first power prediction data of the wind farm; The pre-trained second LightGBM model is used to take the numerical weather forecast data of the wind farm as input and output second power prediction data; The second weight model is used to perform weighted summation on the first power prediction data and the second power prediction data using the preset second TabNet model weight and the second LightGBM model weight to obtain the initial power prediction data of the wind farm.
8. The method according to claim 7, characterized in that The training process of the pre-trained second TabNet model includes: The training data is constructed using the historical numerical weather forecast data and the historical power data of the wind farm station; The initial TabNet model is trained using the training data to obtain the pre-trained second TabNet model.
9. The method according to claim 7, characterized in that The training process of the pre-trained second LightGBM model includes: The training data is constructed using the historical numerical weather forecast data and the historical power data of the wind farm station; The initial LightGBM model is trained using the training data to obtain the pre-trained second LightGBM model.
10. The method according to claim 7, characterized in that The model parameters of the pre-built power integration prediction model are optimized using the gray wolf algorithm, wherein the hunting target of the gray wolf algorithm is to minimize the error value between the initial power prediction data of the wind farm station output by the pre-built power integration prediction model and the actual power data of the wind farm station, and the gray wolf position is the model parameter of the pre-built power integration prediction model, and the model parameters of the pre-built power integration prediction model include: neural network learning rate, loss function, preset second TabNet model weights, preset second LightGBM model weights, and neural network model weights.
11. A device based on the short-term wind power integrated prediction method according to any one of claims 1 to 10, characterized in that: The device comprises: An acquisition module, used for acquiring error data based on the distance between the numerical weather forecast data of the wind farm station and the cluster center of the pre-acquired cluster cluster; A prediction module is used to use the numerical weather forecast data of the wind farm as the input of the pre-built power integration prediction model to obtain the initial power prediction data of the wind farm output by the pre-built power integration prediction model; The analysis module is used to take the sum of the error data and the initial power prediction data of the wind farm as the final power prediction data of the wind farm.
12. A computer device, characterized in that: include: one or more processors; The processor is used to store one or more programs; When the one or more programs are executed by the one or more processors, the short-term wind power integration prediction method according to any one of claims 1 to 10 is implemented.
13. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed, the short-term wind power integrated prediction method as described in any one of claims 1 to 10 is implemented.
Citation Information
Cited By
Substation construction monitoring and early warning method and device based on three-dimensional model
CN119048065A
