Power prediction method and device for wind power plant, equipment and storage medium
By establishing a dynamic model, combining the performance curve of wind turbines, and using wind speed, wind direction and temperature to predict wind farm power, it solves the problems in the existing technology of high model complexity and failure to consider the impact of wind turbine performance, and achieves a better Accurate wind farm power predictions and higher power generation efficiency.
Patent Information
- Application Number
- CN202410810944.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-10
AI Technical Summary
The wind farm power prediction model in the existing technology is highly complex and does not consider the impact of wind turbine performance on prediction accuracy.
By collecting historical power data, weather data and other related data of the wind farm, we extract target features and establish a dynamic model. We use multiple input parameters of wind speed, wind direction and temperature combined with the performance curve of the wind turbine to perform power prediction, and regularly optimize and update it. Model.
It improves the accuracy of wind farm power prediction and power generation efficiency, reduces energy waste, and reduces power generation costs.
Smart Images

Figure CN118630751A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of renewable energy power generation technology, and in particular to a wind farm power prediction method, device, equipment and storage medium. Background Art
[0002] A wind farm is a facility that uses wind energy to generate electricity. It is usually composed of multiple wind turbines that convert wind energy into electrical energy by rotating wind turbine blades. The significance of wind farm power forecasting is to predict and estimate the future power output of the wind farm in advance. This is very important for both power system operators and wind farm operators. By establishing a mathematical model, taking into account meteorological factors such as wind speed, wind direction, temperature, and the characteristics of wind turbines, the power output of the wind farm is predicted. Accurate meteorological data and wind turbine parameters are required, and the model complexity is relatively high. The performance of wind turbines changes with the operating time and environmental conditions, and this change affects the accuracy of power forecasting.
[0003] Prior art 1, application number: CN 202311530824.5 discloses a data-experience fusion wind farm power prediction method and system under low temperature conditions, including establishing an experience-based wind farm engineering wake field model; based on the model, establishing a wind farm power prediction method under low temperature conditions based on the wind farm engineering wake field model; using historical data, optimizing the coefficients in the wind farm power prediction method under low temperature conditions, and establishing a wind farm power prediction method under low temperature conditions based on data-experience fusion; using the established wind farm power prediction method under low temperature conditions based on data-experience fusion, predicting the wind farm power. Although by considering the influence of temperature on the wind farm engineering wake field model, and correcting the prediction deviation of the wind farm engineering wake field model under the influence of temperature according to actual data, the power prediction deviation of the wind farm under low temperature conditions is effectively reduced, and the power prediction accuracy of the wind farm is improved. However, the model relies on accurate historical data, and sometimes there are certain limitations in the acquisition and quality of data, which affects the accuracy of the prediction.
[0004] Prior art 2, application number: CN202410106290.1 discloses a method for predicting wind farm output power based on Bayesian average transfer learning. First, the WPF and WPE models of the built wind farm are established using a temporal convolutional network. On this basis, the WPF and WPE models of the built wind farm are transferred using the Bayesian average transfer learning method. The existing multiple built wind farms are aggregated and a wind power prediction model for the newly built wind farm is generated. In this way, a high-performance wind power prediction model can be constructed using extremely limited newly built wind farm data at a low training cost. Although it can capture the wind power output of the newly built wind farm with high precision and effectively quantify the uncertainty of the newly built wind farm. However, the performance of the wind turbine generator changes with the operation time and environmental conditions, and this change affects the accuracy of the power prediction.
[0005] Prior art three, application number: CN 202310245123.0 discloses a power prediction method, device, electronic device and storage medium for a wind farm, including: obtaining target environmental data associated with the wind farm to be predicted, wherein the target environmental data includes real-time weather data and farm environmental data; determining weather prediction data based on real-time weather data and power prediction time, and determining the initial power prediction result of the wind farm based on weather prediction data and power prediction model, wherein the power prediction model is obtained by training a pre-established neural network model based on historical weather data of the wind farm at multiple historical moments and actual power generation corresponding to the historical weather data; obtaining a power influence coefficient corresponding to the wind farm according to the farm environmental data, and determining the target power prediction result of the wind farm based on the power influence coefficient and the initial power prediction result. Although the beneficial effect of improving the accuracy of power prediction and the reliability of power prediction results is achieved; however, the model complexity is high, and the impact of the performance of the wind turbine on the accuracy of power prediction is not considered.
[0006] At present, the existing technologies 1, 2 and 3 have the problem that the model complexity is high and the performance of wind turbines is not considered to affect the accuracy of power prediction. Therefore, the present invention provides a power prediction method, device, equipment and storage medium for a wind farm, establishes a model that can accurately predict the power of a wind farm, and helps to improve the power generation efficiency and operation scheduling accuracy of the wind farm. Summary of the invention
[0007] The main purpose of the present invention is to provide a wind farm power prediction method, device, equipment and storage medium to solve the problem in the prior art that the model is highly complex and does not consider the impact of the performance of wind turbines on the accuracy of power prediction.
[0008] To achieve the above object, the present invention provides the following technical solutions:
[0009] A power prediction method for a wind farm, the power prediction method for a wind farm comprising:
[0010] Collect historical power data, weather data and other relevant data of wind farms; clean and process the collected data and extract target features from the data;
[0011] Weather data includes wind speed, wind direction, and temperature, and other related data includes time and season; target features include average wind speed, wind direction changes, and temperature fluctuations;
[0012] Through training with historical power data, weather data and other relevant data, a dynamic model is established. The dynamic model uses multiple input parameters such as wind speed, wind direction and temperature, and combines the performance curve of the wind turbine to make power predictions.
[0013] Among them, according to the current wind speed, wind direction and temperature parameters, the corresponding point is found on the performance curve, and then the output power value at that point is predicted; according to the current weather conditions, combined with the performance curve of the wind turbine generator set, the power output of the wind farm is accurately predicted;
[0014] Use data that has not participated in the training to evaluate the trained dynamic model, analyze the evaluation results, optimize the dynamic model, and monitor and update the dynamic model regularly.
[0015] As a further improvement of the present invention, extracting target features from data includes:
[0016] According to the prediction target, select the features related to power prediction from the collected data; the average wind speed, wind direction change, and temperature fluctuation features are closely related to the power of the wind farm;
[0017] Extract time series features through sliding windows, process and extract target features using time series analysis; discretize continuous variables into categorical variables;
[0018] Among them, time series analysis decomposes the target features into trend, seasonality and residual components; smoothes the target features to remove outliers and mutation points, and extracts the target features from the smoothed time series; uses seasonal index adjustment to seasonally adjust the extracted target features;
[0019] The extracted target features are normalized to obtain normalized target features.
[0020] As a further improvement of the present invention, the process of establishing the dynamic model includes:
[0021] The prepared data set containing historical power data, weather data and other related data is divided into a training set and a validation set. The training set is used for training the dynamic model, and the validation set is used for evaluating the performance of the dynamic model and adjusting the parameters of the dynamic model.
[0022] The selected dynamic model is trained using the training set. During the training process, the dynamic model will adjust and optimize parameters according to the input features and corresponding power data.
[0023] The trained dynamic model is evaluated using the validation set. The accuracy and performance of the dynamic model are evaluated by comparing the power values predicted by the dynamic model with the actual observed power values.
[0024] As a further improvement of the present invention, the process of dividing the training set and the validation set includes:
[0025] Sort the data set in chronological order and determine the ratio of the training set to the validation set to be 8:2;
[0026] According to the division ratio, determine the index of the position of the last time point, use the samples with indexes from 0 to the last index minus 1 in the data set as the training set, and use the samples with indexes from the last index to the end of the data set as the validation set;
[0027] According to the set time division point, the data set is divided into a training set and a validation set. The samples in the training set are earlier than those in the validation set.
[0028] The process of evaluating the accuracy and performance of dynamic models includes:
[0029] Using the feature data of the validation set as input, the corresponding power value is predicted through the trained dynamic model; the difference between the predicted power value and the actual observed power value, i.e., the residual, is calculated;
[0030] Calculate the residual sum of squares, which is the sum of squares of the differences between the actual observed power values and the predicted power values; calculate the sum of squares of the differences between the population mean and the actual observed power values, which represents the variability of the population;
[0031] Calculate the coefficient of determination, which is 1 minus the ratio of the difference between the sum of squared residuals and the overall mean. Based on the value of the coefficient of determination, evaluate the accuracy and performance of the dynamic model. The closer the coefficient of determination is to 1, the stronger the model's ability to explain the data, and the higher its accuracy and performance.
[0032] The updating process of the validation set includes:
[0033] Real-time monitoring of wind speed and direction parameters to obtain the latest real-time data;
[0034] Compare the latest real-time data with the feature data in the validation set. If there is an update or change, use the latest real-time data to replace the corresponding feature data. Use hypothesis testing to determine whether there is a significant difference between the current data and the historical data.
[0035] Identify the hypothesis:
[0036] Null hypothesis H0: There is no significant difference between current data and historical data;
[0037] Alternative hypothesis H1: There is a significant difference between current data and historical data;
[0038] Select the significance level: The significance level α is a critical value set in the hypothesis test to judge the significance of the test results. The significance levels are 0.05 and 0.01, which means that the hypothesis test is conducted at the significance level of 5% and 1%;
[0039] Calculate the corresponding test statistic and the corresponding p-value. The p-value is the probability of the observed test statistic or more extreme results occurring under the condition that the null hypothesis is true; make a decision based on the comparison between the p-value and the significance level; if the p-value is less than the significance level, reject the null hypothesis and believe that there is a significant difference between the current data and the historical data; if the p-value is greater than the significance level, accept the null hypothesis and believe that there is no significant difference between the current data and the historical data; explain the difference between the current data and the historical data based on the results of the hypothesis test; if the null hypothesis is rejected, it means that there is a significant difference between the current data and the historical data; if the null hypothesis is accepted, it means that there is no significant difference between the current data and the historical data;
[0040] Predict updated data: Use the updated feature data of the validation set as input and predict the corresponding power value through the trained dynamic model.
[0041] As a further improvement of the present invention, the process of sorting the data set in chronological order includes:
[0042] Get the field in the data set that contains time information. The field is a timestamp. Sort the data set in ascending order according to the value of the time field to ensure that the data is arranged in chronological order.
[0043] According to the sorted data set, determine the boundary position of the training set and the validation set by index according to the division ratio; calculate the number of samples in the validation set and the size of the data set. The number of samples in the validation set is the number of samples multiplied by the size of the data set. Find the number of samples in the validation set in the data set and use it as the boundary position;
[0044] After determining the boundary position of the training set and the validation set, split the dataset into a training set and a validation set.
[0045] As a further improvement of the present invention, the process of training the selected dynamic model using the training set includes:
[0046] The training set containing historical power data, weather data and other relevant data is organized into a feature matrix and a target value. The feature matrix contains the input features required for dynamic model training, and the target value is the corresponding actual power value.
[0047] According to the selected dynamic model, the parameters of the dynamic model are initialized, and the mean square error loss function is selected to measure the difference between the model prediction value and the actual observation value; the loss function is minimized by the gradient descent method, and the parameters of the dynamic model are updated; in each round of training, the dynamic model will make predictions based on the current parameter values and training data, calculate the difference between the predicted value and the target value, and adjust the parameters according to the size of the difference;
[0048] Repeat the iterative steps of dynamic model training until the preset number of training rounds is reached or the condition for stopping training is met; in each round of training, the dynamic model will continuously optimize the parameters;
[0049] The process of updating the parameters of the dynamic model includes:
[0050] Initialize the weights and bias parameters of the dynamic model, and calculate the loss function value under the current dynamic model parameters;
[0051] Calculate the partial derivative of the loss function with respect to each parameter to obtain the gradient value; update the model parameters according to the learning rate and gradient value, where the learning rate is the step size of the parameter change at each update;
[0052] Among them, in the gradient descent method, the model parameters are updated according to the gradient direction of the loss function. The specific update formula is:
[0053] New parameters = old parameters - learning rate * gradient value
[0054] Among them, the result of multiplying the learning rate by the gradient value is the step size of the parameter update;
[0055] Until the preset number of training rounds is reached or the conditions for stopping training are met.
[0056] As a further improvement of the present invention, the process of analyzing the evaluation results includes:
[0057] Collect the predicted values and the corresponding actual observed values, organize the collected predicted values and actual observed values, and sort them in chronological order;
[0058] Use a line graph to show the comparison between the predicted value and the actual observed value. Use time as the horizontal axis and the predicted value and the actual observed value as the vertical axis to draw the lines of the predicted value and the actual observed value respectively. By observing the line graph, the difference and trend between the predicted value and the actual observed value can be obtained. Compare the fluctuations, trend directions, and the corresponding relationship between the peaks and troughs between the two.
[0059] Based on the observed differences and trends, compare the means, variances, and correlations of the predicted values and the actual observed values to evaluate the accuracy and stability of the predictions; based on the analysis results, propose strategies to improve the prediction model or data processing method.
[0060] To achieve the above object, the present invention also provides the following technical solutions:
[0061] A power prediction device for a wind farm, which is applied to the power prediction method for a wind farm, and the power prediction device for a wind farm comprises:
[0062] The feature extraction module is used to collect historical power data, weather data and other relevant data of the wind farm; clean and process the collected data to extract target features from the data; weather data includes wind speed, wind direction and temperature, and other relevant data includes time and season; target features include average wind speed, wind direction changes and temperature fluctuations;
[0063] The model training module is used to train with historical power data, weather data and other relevant data to establish a dynamic model. The dynamic model uses multiple input parameters such as wind speed, wind direction and temperature, and combines the performance curve of the wind turbine generator set to perform power prediction. According to the current wind speed, wind direction and temperature parameters, the corresponding point on the performance curve is found, and then the output power value at the point is predicted. According to the current weather conditions, combined with the performance curve of the wind turbine generator set, the power output of the wind farm is accurately predicted.
[0064] The result evaluation module is used to evaluate the trained dynamic model using data that has not participated in the training, analyze the evaluation results, optimize the dynamic model, and regularly monitor and update the dynamic model.
[0065] To achieve the above object, the present invention also provides the following technical solutions:
[0066] An electronic device comprises a processor and a memory coupled to the processor, wherein the memory stores program instructions executable by the processor; when the processor executes the program instructions stored in the memory, the power prediction method of the wind farm is implemented.
[0067] The present invention collects and cleans data, extracts target features, obtains historical power data, weather data and other relevant data of the wind farm, and extracts features related to power prediction, providing accurate and reliable input data for subsequent model training. A dynamic model is established for training. Through historical power data, weather data and other relevant data, combined with the performance curve of the wind turbine generator set, a model that can dynamically predict the power of the wind farm is established; the power output of the wind farm can be accurately predicted, which helps to optimize the operation and scheduling of the wind farm and improve power generation efficiency. Evaluate, analyze and optimize the model, use data that is not involved in the training to evaluate the trained model, analyze the evaluation results and optimize the model to ensure the accuracy and reliability of the model, promptly discover and correct deviations and errors in the model, and make the power prediction results more accurate and reliable. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 A schematic diagram of the steps of an embodiment of a method for predicting power of a wind farm according to the present invention;
[0069] Figure 2 A schematic flow chart of the steps of extracting target features from data in one embodiment of a method for predicting power of a wind farm according to the present invention;
[0070] Figure 3 A schematic flow chart of steps for establishing a dynamic model for an embodiment of a method for predicting power of a wind farm according to the present invention;
[0071] Figure 4 A schematic flow chart of steps for analyzing evaluation results of an embodiment of a method for predicting power of a wind farm according to the present invention;
[0072] Figure 5 A schematic diagram of functional modules of an embodiment of a power prediction device for a wind farm according to the present invention;
[0073] Figure 6 It is a structural schematic diagram of an embodiment of an electronic device of the present invention;
[0074] Figure 7 It is a schematic structural diagram of an embodiment of the storage medium of the present invention. DETAILED DESCRIPTION
[0075] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0076] The terms "first", "second" and "third" in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined as "first", "second" and "third" can explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. All directional indications (such as up, down, left, right, front, back...) in the embodiments of the present invention are only used to explain the relative position relationship, movement, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0077] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0078] like Figure 1 As shown, this embodiment provides an embodiment of a power prediction method for a wind farm. In this embodiment, the power prediction method for a wind farm specifically includes the following steps:
[0079] Step S1: Collect historical power data, weather data and other relevant data of the wind farm; clean and process the collected data and extract target features from the data;
[0080] Weather data includes wind speed, wind direction, temperature, etc. Other related data includes time, season, etc. Target features include average wind speed, wind direction changes, and temperature fluctuations;
[0081] Step S2: training through historical power data, weather data and other relevant data to establish a dynamic model, which uses multiple input parameters such as wind speed, wind direction and temperature, and combines the performance curve of the wind turbine to perform power prediction;
[0082] Among them, according to the current wind speed, wind direction, temperature and other parameters, the corresponding point is found on the performance curve, and then the output power value at that point is predicted; according to the current weather conditions, combined with the performance curve of the wind turbine generator set, the power output of the wind farm is accurately predicted;
[0083] Step S3: Use data that has not participated in the training to evaluate the trained dynamic model, analyze the evaluation results, optimize the dynamic model, and regularly monitor and update the dynamic model.
[0084] Preferably, step S1 of this embodiment collects and cleans data, extracts target features, obtains historical power data, weather data and other relevant data of the wind farm, and extracts features related to power prediction from them, providing accurate and reliable input data for subsequent model training. Step S2 establishes a dynamic model for training, and establishes a model that can dynamically predict the power of the wind farm through historical power data, weather data and other relevant data, combined with the performance curve of the wind turbine generator set; it can accurately predict the power output of the wind farm, which helps to optimize the operation and scheduling of the wind farm and improve the power generation efficiency. Step S3 evaluates, analyzes and optimizes the model, evaluates the trained model using data that is not involved in the training, analyzes the evaluation results and optimizes the model to ensure the accuracy and reliability of the model, promptly discovers and corrects deviations and errors in the model, and makes the power prediction results more accurate and reliable.
[0085] In summary, through the above steps, this embodiment can establish a model that can accurately predict the power of a wind farm, which helps to improve the power generation efficiency and operation scheduling accuracy of the wind farm, reduce energy waste, and lower power generation costs.
[0086] Furthermore, if Figure 2 As shown, extracting target features from data in step S1 specifically includes the following steps:
[0087] Step S11: Selecting features related to power prediction from the collected data according to the prediction target; for example, features such as average wind speed, wind direction change, and temperature fluctuation may be closely related to the power of the wind farm;
[0088] Step S12: extracting time series features through a sliding window, processing and extracting target features using time series analysis; discretizing continuous variables into categorical variables;
[0089] Among them, time series analysis breaks down the target features into components such as trend, seasonality and residual; smoothes the target features to remove outliers and mutation points to improve the accuracy of prediction; extracts the target features from the smoothed time series; uses seasonal index adjustment to seasonally adjust the extracted target features to eliminate seasonal effects;
[0090] Step S13: normalize the extracted target features to obtain normalized target features.
[0091] Preferably, step S11 of this embodiment selects features related to power prediction, and can extract factors closely related to wind farm power, such as average wind speed, wind direction change, temperature fluctuation, etc.; accurately capture factors that affect power, and provide accurate input for subsequent model building. Step S12 extracts time series features through a sliding window and uses time series analysis to decompose the target features into components such as trend, seasonality, and residuals. Smoothing can remove outliers and mutation points and improve the accuracy of prediction; extracting time series features can better describe the law of data changes and provide more information for model building; discretizing continuous variables into categorical variables can convert continuous variables into discrete categories and simplify the complexity of the model. Step S13 normalizes the extracted target features, and can map the value of the feature to a unified interval, eliminate the dimensional differences between different features, and make the model more comparable and stable; the normalized target features can be used as the input of the model to improve the prediction accuracy and stability of the model.
[0092] In summary, this embodiment aims to improve the accuracy and stability of the power prediction model. By reasonably selecting and processing features, it is possible to better capture the factors affecting power and improve the accuracy of prediction. At the same time, by normalizing the features, the dimensional differences between the features can be eliminated, making the model more comparable and stable, which is helpful for the operation and management of wind farms and improving power generation efficiency and economic benefits.
[0093] Furthermore, if Figure 3 As shown, the process of establishing the dynamic model in step S2 specifically includes the following steps:
[0094] Step S21: Divide the prepared data set containing historical power data, weather data and other related data into a training set and a validation set, the training set is used for training the dynamic model, and the validation set is used for evaluating the performance of the dynamic model and adjusting the parameters of the dynamic model;
[0095] Step S22: training the selected dynamic model using the training set. During the training process, the dynamic model will adjust and optimize parameters according to the input features and corresponding power data.
[0096] Step S23: Use the validation set to evaluate the trained dynamic model, and evaluate the accuracy and performance of the dynamic model by comparing the difference between the power value predicted by the dynamic model and the actually observed power value.
[0097] Preferably, the purpose of dividing the data set into a training set and a validation set in step S21 of this embodiment is to evaluate the performance of the dynamic model during the training process. The training set is used to train the dynamic model, and the validation set is used to evaluate the accuracy and performance of the dynamic model. By dividing the data set, the model can avoid overfitting the training data during the training process, and the generalization ability of the model can also be evaluated. The purpose of training the dynamic model in step S22 is to establish a model that can accurately predict the power of the future wind farm by learning from historical data. During the training process, the model will adjust and optimize parameters according to the input features and the corresponding power data, so that the model can better fit the historical data and improve the accuracy of the prediction. The purpose of evaluating the trained dynamic model using the validation set in step S23 is to test the performance and accuracy of the model. By comparing the difference between the power value predicted by the dynamic model and the actual observed power value, the prediction ability of the model can be evaluated. If the prediction error of the model is small, it means that the performance of the model is good and can be further applied to actual power prediction. If the prediction error of the model is large, the model needs to be optimized or adjusted.
[0098] In summary, this embodiment establishes an accurate and reliable dynamic model that can predict the power of a wind farm; accurate power prediction can help wind farm managers make operational scheduling and power market trading decisions, and improve the power generation efficiency and economy of the wind farm; by continuously monitoring and updating the dynamic model, the prediction accuracy can be continuously improved, thereby improving the operational efficiency of the wind farm.
[0099] Furthermore, the process of dividing the training set and the validation set in step S21 specifically includes the following steps:
[0100] Step S211: sort the data set in chronological order, and determine that the ratio of the training set to the validation set is 8:2;
[0101] Step S212: according to the division ratio, determine the index of the position of the last time point, use the samples with indexes from 0 to the last index minus 1 in the data set as the training set, and use the samples with indexes from the last index to the end of the data set as the verification set;
[0102] Step S213: according to the set time division point, the data set is divided into a training set and a validation set, and the samples in the training set are earlier than the samples in the validation set.
[0103] Preferably, step S211 of this embodiment ensures that the samples of the training set and the validation set are divided in chronological order by sorting them in chronological order; dividing the training set and the validation set in chronological order can better simulate the actual scene, because in actual applications, the model needs to predict future situations based on historical data. Step S212 determines the division point of the training set and the validation set according to the division ratio, divides the data set into the training set and the validation set in chronological order, ensures that the training set contains past data, and the validation set contains the latest data, so that the model can learn historical patterns on the training set, and verify and evaluate on the validation set. Step S213 divides the data set into the training set and the validation set according to the set time division point; in time series data, the model needs to predict future data based on past data; by separating the training set and the validation set according to the time division point, the actual situation can be better simulated, ensuring that the model learns past patterns on the training set, and predicts and evaluates future data on the validation set.
[0104] Furthermore, the process of sorting the data set in chronological order in step S211 specifically includes the following steps:
[0105] Step S2111: obtaining a field containing time information in the data set, where the field is a timestamp; sorting the data set in ascending order according to the value of the time field to ensure that the data is arranged in chronological order;
[0106] Step S2112: According to the sorted data set, determine the boundary position of the training set and the validation set by index according to the division ratio; calculate the number of samples in the validation set and the size of the data set, the number of samples in the validation set is the number of samples multiplied by the size of the data set, find the number of samples in the validation set in the data set, and use it as the boundary position;
[0107] Step S2113: After determining the boundary position of the training set and the validation set, the data set is divided into the training set and the validation set.
[0108] Preferably, step S2111 of this embodiment ensures that the data is arranged in chronological order by sorting the data set in ascending order according to the value of the time field, in order to arrange the time-related data in chronological order for subsequent analysis and modeling. Step S2112 determines the boundary position of the training set and the validation set according to the partition ratio through the index, and divides the data set into two parts, one for training the model and the other for verifying the model. The partition ratio can be customized according to needs. The common ratio is 80% of the data for training and 20% of the data for verification. Step S2113 divides the data set into a training set and a verification set. The purpose of this is to divide the data set into two parts according to the determined boundary position, which are used for training and verifying the model respectively; the training set is used to build the model, and the verification set is used to evaluate the performance of the model and adjust the parameters of the model, which can ensure the generalization ability and stability of the model on different data.
[0109] In summary, this embodiment ensures that the data is arranged in chronological order and divides the data set into a training set and a validation set for time series analysis, modeling, and evaluation; it can better utilize time-related information and improve the accuracy and reliability of the model.
[0110] Furthermore, the process of using the training set to train the selected dynamic model in step S22 specifically includes the following steps:
[0111] Step S221: organizing the training set including historical power data, weather data and other related data into a feature matrix and a target value, wherein the feature matrix includes the input features required for dynamic model training, and the target value is the corresponding actual power value;
[0112] Step S222: Initialize the parameters of the dynamic model according to the selected dynamic model, select the mean square error loss function to measure the difference between the model prediction value and the actual observation value; minimize the loss function by the gradient descent method and update the parameters of the dynamic model; in each round of training, the dynamic model will make predictions based on the current parameter values and training data, calculate the difference between the predicted value and the target value, and adjust the parameters according to the size of the difference;
[0113] Among them, the Mean Squared Error (MSE) loss function is a commonly used loss function to measure the difference between the model prediction value and the actual observation value. It calculates the average of the squares of the difference between the prediction value and the target value;
[0114] Step S223: Repeat the iterative steps of dynamic model training until a preset number of training rounds is reached or a condition for stopping training is met; in each round of training, the dynamic model will continuously optimize parameters.
[0115] Preferably, step S221 of this embodiment organizes the training set data into the form of feature matrices and target values, and converts the data into the input and output formats required by the model, which can ensure that the data can be correctly recognized and learned by the dynamic model. Step S222 initializes the parameters of the dynamic model and defines the loss function. By minimizing the loss function and updating the parameters of the model through the gradient descent method, the model can be fitted to the training data and reduce the difference between the predicted value and the actual observed value. Step S223 repeats the iterative steps of dynamic model training until the preset number of training rounds or the conditions for stopping training are reached, which can continuously optimize the parameters of the model and improve the prediction ability and accuracy of the model.
[0116] In summary, this embodiment adjusts and optimizes the parameters of the dynamic model through training data, so that the model can better fit the training data, reduce prediction errors, and improve the prediction accuracy of the model; it can provide more reliable and accurate prediction results for subsequent prediction tasks, and improve the practicality and reliability of the dynamic model.
[0117] Furthermore, the process of updating the parameters of the dynamic model in step S222 specifically includes the following steps:
[0118] Step S2221: Initialize the weight and bias parameters of the dynamic model, and calculate the loss function value under the current dynamic model parameters;
[0119] Step S2222: Calculate the partial derivative of the loss function with respect to each parameter to obtain the gradient value; update the model parameters according to the learning rate and the gradient value, where the learning rate is the step length of the parameter change at each update;
[0120] Among them, in the gradient descent method, the model parameters are updated according to the gradient direction of the loss function. The specific update formula is:
[0121] New parameters = old parameters - learning rate * gradient value
[0122] The result of multiplying the learning rate by the gradient value is the step size of the parameter update. The learning rate determines the magnitude of each parameter update. A larger learning rate will cause the parameters to update too quickly and may miss the optimal solution; while a smaller learning rate will cause the parameters to update too slowly and converge slowly.
[0123] Step S22223: until the preset number of training rounds is reached or the condition for stopping training is met.
[0124] Preferably, the purpose of initializing the dynamic model parameters in step S2221 of this embodiment is to give the parameters an initial value before starting training. These parameters will be updated during the training process. The loss function value under the current dynamic model parameters is calculated to obtain the initial model performance evaluation. Step S2222 calculates the partial derivative of the loss function for each parameter to obtain the gradient value. The gradient value tells the direction of change of the current parameter on the loss function surface, and updates the model parameters by the gradient descent method; the purpose of updating the model parameters is to gradually reduce the loss function value by continuously adjusting the parameter value, thereby improving the performance of the model; the learning rate determines the step size of each parameter update, and controls the update amplitude of the parameter by multiplying the gradient value. A larger learning rate will cause the parameters to update too quickly, which may miss the optimal solution, while a smaller learning rate will cause the parameters to update too slowly and converge slowly. It is very important to choose an appropriate learning rate, which needs to be adjusted according to specific problems and data. The stopping condition of the training iteration in step S2223 may be reaching a preset number of training rounds or satisfying the condition for stopping training; through multiple iterative training, the model parameters are continuously updated, the loss function gradually decreases, and ultimately the training goal is achieved, that is, the model can better fit the training data and improve the prediction ability of the model.
[0125] In summary, the purpose of the entire training process of this embodiment is to improve the prediction ability of the model by continuously updating the model parameters so that the model can better fit the training data; through the gradient descent method and the appropriate learning rate, the model parameters can be effectively optimized so that the model can better approximate the real relationship and improve the accuracy of the prediction.
[0126] Furthermore, the process of evaluating the accuracy and performance of the dynamic model in step S23 specifically includes the following steps:
[0127] Step S231: using the feature data of the validation set as input, predicting the corresponding power value through the trained dynamic model; calculating the difference between the predicted power value and the actual observed power value, i.e., the residual;
[0128] Step S232: Calculate the residual sum of squares, that is, the sum of squares of the differences between the actual observed power value and the predicted power value; calculate the sum of squares of the differences between the population mean and the actual observed power value, which represents the variability of the population;
[0129] Step S233: Calculate the coefficient of determination, which is 1 minus the ratio of the difference between the sum of squared residuals and the overall mean; evaluate the accuracy and performance of the dynamic model based on the value of the coefficient of determination; the closer the coefficient of determination is to 1, the stronger the model's ability to explain the data, and the higher its accuracy and performance.
[0130] Preferably, the residual calculated in step S231 of this embodiment can measure the accuracy of the dynamic model for predicting the power value. The residual is the difference between the predicted power value and the actual observed power value. The prediction deviation of the model can be determined by calculating the residual. Step S232 calculates the residual sum of squares and the sum of squares of the difference between the overall mean and the actual observed power value. The residual sum of squares reflects the overall size of the model's prediction error, and the sum of squares of the difference between the overall mean and the actual observed power value represents the overall variability. Step S233 calculates the determination coefficient to evaluate the accuracy and performance of the dynamic model. The determination coefficient is 1 minus the ratio of the difference between the residual sum of squares and the overall mean, which represents the model's ability to explain the data; the closer the determination coefficient is to 1, the more accurately the model can explain the changes in the data, and the higher the accuracy and performance.
[0131] In summary, this embodiment evaluates the accuracy and performance of the dynamic model and determines the predictive ability and reliability of the model; by evaluating the determination coefficient, the accuracy of the dynamic model for predicting power values can be judged, and then it can be determined whether it is necessary to adjust the model parameters or try other models; dynamic models with higher accuracy and performance can provide reliable power prediction results, help optimize energy management, adjust power generation strategies and other decisions.
[0132] Furthermore, the updating process of the verification set in step S231 specifically includes the following steps:
[0133] Step S2311: Real-time monitoring of parameters such as wind speed and wind direction to obtain the latest real-time data;
[0134] Step S2312: Compare the latest real-time data with the feature data in the validation set. If there is an update or change, replace the corresponding feature data with the latest real-time data; use the hypothesis test method to determine whether there is a significant difference between the current data and the historical data;
[0135] Identify the hypothesis:
[0136] Null hypothesis (H0): There is no significant difference between current data and historical data;
[0137] Alternative hypothesis (H1): There is a significant difference between current data and historical data;
[0138] Select the significance level: The significance level (α) is a critical value set in the hypothesis test to determine the significance of the test results. The significance levels are 0.05 and 0.01, which means that the hypothesis test is performed at the significance level of 5% and 1%;
[0139] Calculate the corresponding test statistic and the corresponding p-value. The p-value is the probability of the observed test statistic or more extreme results occurring when the null hypothesis is true. Make a decision based on the comparison between the p-value and the significance level. If the p-value is less than the significance level, reject the null hypothesis and believe that there is a significant difference between the current data and the historical data. If the p-value is greater than the significance level, accept the null hypothesis and believe that there is no significant difference between the current data and the historical data. Explain the difference between the current data and the historical data based on the results of the hypothesis test. If the null hypothesis is rejected, it can be said that there is a significant difference between the current data and the historical data. If the null hypothesis is accepted, it means that there is no significant difference between the current data and the historical data.
[0140] Step S2313: Predict updated data: Use the updated feature data of the validation set as input and predict the corresponding power value through the trained dynamic model.
[0141] Preferably, step S2311 of this embodiment obtains the latest parameter data such as wind speed and wind direction in real time. Step S2312 updates the feature data in the validation set to determine whether the current data is significantly different from the historical data. Step S2313 uses the updated feature data to predict the power value.
[0142] In this embodiment, real-time monitoring and updating of data can ensure that the feature data in the verification set is consistent with the latest real-time data, making the prediction results more accurate; the hypothesis testing method can be used to determine whether there is a significant difference between the current data and the historical data, help understand the changes in the data, and evaluate the prediction ability of the model; the predicted updated data can provide the latest power prediction results to help make corresponding decisions and adjustments.
[0143] Furthermore, if Figure 4 As shown, the process of analyzing the evaluation results in step S3 specifically includes the following steps:
[0144] Step S31: Collect the predicted values and the corresponding actual observed values, sort the collected predicted values and actual observed values, and sort them in chronological order;
[0145] Step S32: Use a line graph to show the comparison between the predicted value and the actual observed value, with time as the horizontal axis and the predicted value and the actual observed value as the vertical axis, and draw the lines of the predicted value and the actual observed value respectively; by observing the line graph, the difference and trend between the predicted value and the actual observed value are obtained. Compare the fluctuations, trend directions, and the corresponding relationship between the peaks and troughs between the two;
[0146] Step S33: Based on the observed differences and trends, compare the means, variances, and correlations of the predicted values and the actual observed values to evaluate the accuracy and stability of the predictions; based on the analysis results, propose strategies to improve the prediction model or data processing method.
[0147] Preferably, step S31 of this embodiment collects and organizes the data of the predicted values and the actual observed values to ensure the accuracy and consistency of the data and provide a reliable data basis for subsequent analysis and comparison. Step S32 draws a line graph to intuitively display the comparison between the predicted values and the actual observed values, which can help observe the differences and trends between the two; by observing the line graph, the fluctuations, trends, and peaks and troughs of the predicted values and the actual observed values can be understood. Step S33 calculates statistical indicators such as the mean, variance, and correlation of the predicted values and the actual observed values to evaluate the accuracy and stability of the prediction; comparing these indicators can help judge the performance of the prediction model and propose strategies to improve the prediction model or data processing method.
[0148] In summary, these steps of this embodiment evaluate the accuracy and stability of the power prediction model and provide guidance for improving the model; accurate power prediction is of great significance to the operation and scheduling of wind farms, and can help optimize the power generation plan of wind farms, improve power generation efficiency, and reduce operating costs, while also having a positive impact on the stability and reliability of the power grid. By analyzing the evaluation results, the prediction model can be continuously optimized and improved, the accuracy and stability of the prediction can be improved, and the operational benefits of the wind farm can be further improved.
[0149] like Figure 5 As shown, this embodiment also provides an embodiment of a power prediction device for a wind farm. In this embodiment, the power prediction device for a wind farm is applied to the power prediction method for a wind farm in the above embodiment. The power prediction device for a wind farm includes a feature extraction module 1, a model training module 2, and a result evaluation module 3 which are electrically connected in sequence;
[0150] Among them, the feature extraction module 1 is used to collect historical power data, weather data and other related data of the wind farm; the collected data is cleaned and processed to extract target features from the data; weather data includes wind speed, wind direction, temperature, etc., and other related data includes time, season, etc.; target features include average wind speed, wind direction change and temperature fluctuation, etc.; the model training module 2 is used to train through historical power data, weather data and other related data to establish a dynamic model, and the dynamic model uses multiple input parameters such as wind speed, wind direction and temperature, and combines the performance curve of the wind turbine to predict power; wherein, according to the current wind speed, wind direction and temperature parameters, the corresponding point is found on the performance curve, and then the output power value at the point is predicted; according to the current weather conditions, combined with the performance curve of the wind turbine, the power output of the wind farm is accurately predicted; the result evaluation module 3 is used to evaluate the trained dynamic model using data that has not participated in the training, analyze the evaluation results, optimize the dynamic model, and regularly monitor and update the dynamic model.
[0151] Preferably, the feature extraction module 1 of this embodiment collects historical power data, weather data and other relevant data of the wind farm, cleans and processes the data, and extracts target features from it; extracts important features that can reflect the power output of the wind farm, such as average wind speed, wind direction changes and temperature fluctuations; and provides input features required for training models. The model training module 2 is trained through historical power data, weather data and other relevant data to establish a dynamic model, and predicts the power output of the wind farm based on input parameters (wind speed, wind direction, temperature, etc.) and the performance curve of the wind turbine generator set; provides accurate power prediction results to help the wind farm make operation and scheduling decisions. The result evaluation module 3 uses data that has not participated in the training to evaluate the trained dynamic model, analyze the evaluation results and optimize the model; evaluates the accuracy and stability of the model, and improves and optimizes it based on the evaluation results to improve the accuracy and reliability of the prediction model and ensure that the power prediction results of the wind farm can meet actual needs.
[0152] In summary, this embodiment provides accurate wind farm power prediction results, helps the wind farm to make operation and scheduling decisions, and improves the economic benefits and reliability of the wind farm.
[0153] Furthermore, the feature extraction module 1 specifically includes:
[0154] The feature selection submodule is used to select features related to power prediction from the collected data according to the prediction target; for example, features such as average wind speed, wind direction changes, and temperature fluctuations can be closely related to the power of the wind farm;
[0155] The feature processing submodule is used to extract time series features through sliding windows, process and extract target features using time series analysis, and discretize continuous variables into categorical variables;
[0156] Among them, time series analysis breaks down the target features into components such as trend, seasonality and residual; smoothes the target features to remove outliers and mutation points to improve the accuracy of prediction; extracts the target features from the smoothed time series; uses seasonal index adjustment to seasonally adjust the extracted target features to eliminate seasonal effects;
[0157] The normalization processing submodule is used to normalize the extracted target features to obtain normalized target features.
[0158] Preferably, the feature selection submodule of this embodiment selects features related to power prediction from the collected data. The significance of doing so is that redundant information can be reduced, and the training efficiency and prediction accuracy of the model can be improved. By selecting features related to power prediction, the factors affecting power changes can be better captured. The feature processing submodule extracts time series features through a sliding window, and uses time series analysis to process and extract target features. The sliding window can extract time series features, such as average wind speed, wind direction changes, and temperature fluctuations over a period of time. Time series analysis can decompose target features into components such as trends, seasonality, and residuals, extract target features from them, and improve the accuracy of prediction through operations such as smoothing and seasonal adjustment. The normalization processing submodule normalizes the extracted target features. Normalization can unify the value ranges of different features into a certain interval, avoiding the influence of dimensional differences between different features on model training and prediction. The normalized target features can be better used for model training and prediction.
[0159] In summary, the feature extraction module of this embodiment extracts features related to wind farm power prediction, and processes and normalizes these features to improve the accuracy and reliability of the prediction model. By accurately predicting the power output of a wind farm, it can help wind farm managers make decisions and schedule, improve power generation efficiency, reduce operating costs, and achieve sustainable development.
[0160] Furthermore, the model training module 2 specifically includes:
[0161] A data partitioning submodule is used to partition the prepared data set containing historical power data, weather data and other related data into a training set and a validation set. The training set is used for training the dynamic model, and the validation set is used for evaluating the performance of the dynamic model and adjusting the parameters of the dynamic model.
[0162] The parameter adjustment submodule is used to train the selected dynamic model using the training set. During the training process, the dynamic model will adjust and optimize the parameters according to the input features and the corresponding power data;
[0163] The performance evaluation submodule is used to evaluate the trained dynamic model using the validation set, and to evaluate the accuracy and performance of the dynamic model by comparing the difference between the power value predicted by the dynamic model and the actual observed power value.
[0164] Preferably, the data partitioning submodule of the present embodiment divides the data set into a training set and a validation set to ensure the independence of the training and evaluation processes, so as to avoid overfitting of the model on the training set, and the generalization ability of the model can be evaluated by the validation set. The parameter adjustment submodule adjusts and optimizes the parameters of the dynamic model through the training set to improve the performance and accuracy of the model. By continuously adjusting the parameters, the dynamic model can better fit the data in the training set, thereby improving the accuracy of the prediction. The performance evaluation submodule uses the validation set to evaluate the trained dynamic model, and evaluates the accuracy and performance of the model by comparing the difference between the predicted value and the actual observed value. This can help determine whether the model meets the prediction requirements and whether it is necessary to further adjust the model or improve the data processing method.
[0165] In summary, this embodiment ensures that the training and evaluation process of the model is scientific and effective, and improves the accuracy and stability of the prediction model. Through reasonable data division and parameter adjustment, the performance of the model can be optimized. Through performance evaluation, the shortcomings of the model can be discovered in time, and improvement strategies can be proposed to further improve the accuracy of power prediction.
[0166] Furthermore, the result evaluation module 3 specifically includes:
[0167] The sorting submodule is used to collect the predicted values and the corresponding actual observed values, organize the collected predicted values and actual observed values, and sort them in chronological order;
[0168] The numerical comparison submodule is used to display the comparison between the predicted value and the actual observed value using a line graph. The time is used as the horizontal axis, and the predicted value and the actual observed value are used as the vertical axis. The lines of the predicted value and the actual observed value are drawn respectively. By observing the line graph, the difference and trend between the predicted value and the actual observed value are obtained. The fluctuation, trend direction and corresponding relationship between the peak and the trough of the two are compared.
[0169] The result analysis submodule is used to compare the means, variances, and correlations of predicted values and actual observed values based on the observed differences and trends to evaluate the accuracy and stability of the predictions; based on the analysis results, strategies to improve the prediction model or data processing method are proposed.
[0170] Preferably, the sorting submodule of this embodiment organizes and sorts the predicted values and actual observed values in chronological order for subsequent comparison and analysis; ensuring the orderliness of the data and facilitating subsequent comparison and evaluation. The numerical comparison submodule intuitively displays the differences and trends between the predicted values and the actual observed values by drawing a line graph of the predicted values and the actual observed values; helping analysts to intuitively understand the differences between the predicted values and the actual observed values and discover possible deviations or inaccuracies. The result analysis submodule evaluates the accuracy and stability of the prediction by comparing the mean, variance, and correlation of the predicted values and the actual observed values; providing objective evaluation indicators to help analysts judge the pros and cons of the prediction model or data processing method and propose improvement strategies.
[0171] In summary, this embodiment conducts a comprehensive evaluation and analysis of the prediction results, helps to improve the accuracy and stability of the prediction model, and provides valuable reference and decision-making basis for the operation and management of the wind farm.
[0172] like Figure 6 As shown, this embodiment provides an embodiment of an electronic device. In this embodiment, the electronic device 4 includes a processor 41 and a memory 42 coupled to the processor 41.
[0173] The memory 42 stores program instructions for implementing the power prediction method for a wind farm according to any one of the above embodiments.
[0174] The processor 41 is used to execute program instructions stored in the memory 42 to perform power prediction of the wind farm.
[0175] The processor 41 may also be referred to as a CPU (Central Processing Unit). The processor 41 may be an integrated circuit chip having signal processing capabilities. The processor 41 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0176] Further, Figure 7The schematic diagram of the structure of the storage medium of an embodiment of the present application is that the storage medium 5 of the embodiment of the present application stores program instructions 51 that can implement all the above methods, wherein the program instructions 51 can be stored in the above storage medium in the form of a software product, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or terminal devices such as a computer, a server, a mobile phone, and a tablet.
[0177] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0178] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units. The above is only an implementation mode of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly used in other related technical fields, is also included in the patent protection scope of the present invention.
[0179] The specific implementation methods of the invention are described in detail above, but they are only examples, and the invention is not limited to the specific implementation methods described above. For those skilled in the art, any equivalent modification or substitution of the invention is also within the scope of the invention, therefore, the equalization, modification, improvement, etc. made without departing from the spirit and principle of the invention should be included in the scope of the invention.
Claims
1. A method for predicting power of a wind farm, characterized in that: The power prediction method of the wind farm comprises: Collect historical power data, weather data and other relevant data of wind farms; clean and process the collected data and extract target features from the data; Weather data includes wind speed, wind direction, and temperature, and other related data includes time and season; target features include average wind speed, wind direction changes, and temperature fluctuations; Through training with historical power data, weather data and other relevant data, a dynamic model is established. The dynamic model uses multiple input parameters such as wind speed, wind direction and temperature, and combines the performance curve of the wind turbine to make power predictions. Among them, according to the current wind speed, wind direction and temperature parameters, the corresponding point is found on the performance curve, and then the output power value at that point is predicted; according to the current weather conditions, combined with the performance curve of the wind turbine generator set, the power output of the wind farm is accurately predicted; Use data that has not participated in the training to evaluate the trained dynamic model, analyze the evaluation results, optimize the dynamic model, and monitor and update the dynamic model regularly.
2. The power prediction method of a wind farm according to claim 1, characterized in that: Extract target features from the data, including: According to the prediction target, select the features related to power prediction from the collected data; the average wind speed, wind direction change, and temperature fluctuation features are closely related to the power of the wind farm; Extract time series features through sliding windows, process and extract target features using time series analysis; discretize continuous variables into categorical variables; Among them, time series analysis decomposes the target features into trend, seasonality and residual components; smoothes the target features to remove outliers and mutation points, and extracts the target features from the smoothed time series; uses seasonal index adjustment to seasonally adjust the extracted target features; The extracted target features are normalized to obtain normalized target features.
3. The power prediction method of a wind farm according to claim 1, characterized in that: The process of building a dynamic model includes: The prepared data set containing historical power data, weather data and other related data is divided into a training set and a validation set. The training set is used for training the dynamic model, and the validation set is used for evaluating the performance of the dynamic model and adjusting the parameters of the dynamic model. The selected dynamic model is trained using the training set. During the training process, the dynamic model will adjust and optimize parameters according to the input features and corresponding power data. The trained dynamic model is evaluated using the validation set. The accuracy and performance of the dynamic model are evaluated by comparing the power values predicted by the dynamic model with the actual observed power values.
4. The power prediction method of a wind farm according to claim 3, characterized in that: The process of dividing the training set and the validation set includes: Sort the data set in chronological order and determine the ratio of the training set to the validation set to be 8:2; According to the division ratio, determine the index of the position of the last time point, use the samples with indexes from 0 to the last index minus 1 in the data set as the training set, and use the samples with indexes from the last index to the end of the data set as the validation set; According to the set time division point, the data set is divided into a training set and a validation set. The samples in the training set are earlier than those in the validation set. The process of evaluating the accuracy and performance of dynamic models includes: Using the feature data of the validation set as input, the corresponding power value is predicted through the trained dynamic model; the difference between the predicted power value and the actual observed power value, i.e., the residual, is calculated; Calculate the residual sum of squares, which is the sum of squares of the differences between the actual observed power values and the predicted power values; calculate the sum of squares of the differences between the population mean and the actual observed power values, which represents the variability of the population; Calculate the coefficient of determination, which is 1 minus the ratio of the difference between the sum of squared residuals and the overall mean. Based on the value of the coefficient of determination, evaluate the accuracy and performance of the dynamic model. The closer the coefficient of determination is to 1, the stronger the model's ability to explain the data, and the higher its accuracy and performance. The updating process of the validation set includes: Real-time monitoring of wind speed and direction parameters to obtain the latest real-time data; Compare the latest real-time data with the feature data in the validation set. If there is an update or change, use the latest real-time data to replace the corresponding feature data. Use hypothesis testing to determine whether there is a significant difference between the current data and the historical data. Identify the hypothesis: Null hypothesis H0: There is no significant difference between current data and historical data; Alternative hypothesis H1: There is a significant difference between current data and historical data; Select the significance level: The significance level α is a critical value set in the hypothesis test to judge the significance of the test results. The significance levels are 0.05 and 0.01, which means that the hypothesis test is conducted at the significance level of 5% and 1%; Calculate the corresponding test statistic and the corresponding p-value. The p-value is the probability of the observed test statistic or more extreme results occurring under the condition that the null hypothesis is true; make a decision based on the comparison between the p-value and the significance level; if the p-value is less than the significance level, reject the null hypothesis and believe that there is a significant difference between the current data and the historical data; if the p-value is greater than the significance level, accept the null hypothesis and believe that there is no significant difference between the current data and the historical data; explain the difference between the current data and the historical data based on the results of the hypothesis test; if the null hypothesis is rejected, it means that there is a significant difference between the current data and the historical data; if the null hypothesis is accepted, it means that there is no significant difference between the current data and the historical data; Predict updated data: Use the updated feature data of the validation set as input and predict the corresponding power value through the trained dynamic model.
5. The power prediction method of a wind farm according to claim 4, characterized in that: The process of sorting a data set into chronological order includes: Get the field in the data set that contains time information. The field is a timestamp. Sort the data set in ascending order according to the value of the time field to ensure that the data is arranged in chronological order. According to the sorted data set, determine the boundary position of the training set and the validation set by index according to the division ratio; calculate the number of samples in the validation set and the size of the data set. The number of samples in the validation set is the number of samples multiplied by the size of the data set. Find the number of samples in the validation set in the data set and use it as the boundary position; After determining the boundary position of the training set and the validation set, split the dataset into a training set and a validation set.
6. The power prediction method of a wind farm according to claim 3, characterized in that: The process of training the selected dynamic model using the training set includes: The training set containing historical power data, weather data and other relevant data is organized into a feature matrix and a target value. The feature matrix contains the input features required for dynamic model training, and the target value is the corresponding actual power value. According to the selected dynamic model, the parameters of the dynamic model are initialized, and the mean square error loss function is selected to measure the difference between the model prediction value and the actual observation value; the loss function is minimized by the gradient descent method, and the parameters of the dynamic model are updated; in each round of training, the dynamic model will make predictions based on the current parameter values and training data, calculate the difference between the predicted value and the target value, and adjust the parameters according to the size of the difference; Repeat the iterative steps of dynamic model training until the preset number of training rounds is reached or the condition for stopping training is met; in each round of training, the dynamic model will continuously optimize the parameters; The process of updating the parameters of the dynamic model includes: Initialize the weights and bias parameters of the dynamic model, and calculate the loss function value under the current dynamic model parameters; Calculate the partial derivative of the loss function with respect to each parameter to obtain the gradient value; update the model parameters according to the learning rate and gradient value, where the learning rate is the step size of the parameter change at each update; Among them, in the gradient descent method, the model parameters are updated according to the gradient direction of the loss function. The specific update formula is: New parameters = old parameters - learning rate * gradient value Among them, the result of multiplying the learning rate by the gradient value is the step size of the parameter update; Until the preset number of training rounds is reached or the conditions for stopping training are met.
7. The power prediction method of a wind farm according to claim 1, characterized in that: The process of analyzing the evaluation results includes: Collect the predicted values and the corresponding actual observed values, organize the collected predicted values and actual observed values, and sort them in chronological order; Use a line graph to show the comparison between the predicted value and the actual observed value. Use time as the horizontal axis and the predicted value and the actual observed value as the vertical axis to draw the lines of the predicted value and the actual observed value respectively. By observing the line graph, the difference and trend between the predicted value and the actual observed value can be obtained. Compare the fluctuations, trend directions, and the corresponding relationship between the peaks and troughs between the two. Based on the observed differences and trends, compare the means, variances, and correlations of the predicted values and the actual observed values to evaluate the accuracy and stability of the predictions; based on the analysis results, propose strategies to improve the prediction model or data processing method.
8. A power prediction device for a wind farm, applied to the power prediction method for a wind farm as claimed in any one of claims 1 to 7, characterized in that: The power prediction device of the wind farm comprises: The feature extraction module is used to collect historical power data, weather data and other relevant data of the wind farm; clean and process the collected data to extract target features from the data; weather data includes wind speed, wind direction and temperature, and other relevant data includes time and season; target features include average wind speed, wind direction changes and temperature fluctuations; The model training module is used to train with historical power data, weather data and other relevant data to establish a dynamic model. The dynamic model uses multiple input parameters such as wind speed, wind direction and temperature, and combines the performance curve of the wind turbine generator set to perform power prediction. According to the current wind speed, wind direction and temperature parameters, the corresponding point on the performance curve is found, and then the output power value at the point is predicted. According to the current weather conditions, combined with the performance curve of the wind turbine generator set, the power output of the wind farm is accurately predicted. The result evaluation module is used to evaluate the trained dynamic model using data that has not participated in the training, analyze the evaluation results, optimize the dynamic model, and regularly monitor and update the dynamic model.
9. An electronic device, characterized in that: It comprises a processor and a memory coupled to the processor, wherein the memory stores program instructions executable by the processor; when the processor executes the program instructions stored in the memory, the power prediction method for a wind farm as described in any one of claims 1 to 7 is implemented.
10. A storage medium, characterized in that: The storage medium stores program instructions, and when the program instructions are executed by the processor, the power prediction method for a wind farm according to any one of claims 1 to 7 can be implemented.
Citation Information
Patent Citations
Power prediction method and device for wind power station, electronic equipment and storage medium
CN116596106A
Data-experience fused power prediction method and system for wind power plant under low-temperature condition
CN117767267A
Wind power plant output power prediction method based on Bayesian average transfer learning
CN117973441A
Cited By
Power regulation method and system for parallel modules of flexible equipment
CN119179368A
Wind generating set load dynamic prediction method and device based on wind direction change
CN119313196A
Method and system for evaluating power generation efficiency of heat collection field of photo-thermal power station
CN119623916A
Wind power short-term power prediction method in low-temperature cold-tide weather
CN119765275A
A method for short-term wind power prediction under low temperature and cold wave weather
CN119765275B
