Photovoltaic day-ahead power prediction method

By using the CNN-BIGRU network model and KOA hyperparameter optimization in photovoltaic day-ahead power prediction, combined with the Attention mechanism, the problem of insufficient accuracy and long hyperparameter debugging time of traditional methods under complex meteorological conditions is solved, and high accuracy is achieved and efficient photovoltaic power prediction.

CN118780427APending Publication Date: 2024-10-15SHIHEZI UNIVERSITY
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410848221.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

When faced with complex and changeable meteorological conditions, traditional photovoltaic power prediction methods cannot meet actual demand with prediction accuracy. In particular, it requires a lot of time to test hyperparameter debugging, resulting in poor model performance.

Method used

The CNN-BIGRU network model is combined with the KOA hyperparameter optimization and Attention mechanism, and model training and iteration are optimized through rolling data input and random production of hyperparameters within a reasonable range. Statistical indicators such as RMSE, MAP, and R2 are used to evaluate model performance, and combined with The objective function MAPE determines the prediction accuracy.

Benefits of technology

Effective selection of hyperparameters improves the accuracy and model performance of photovoltaic day-ahead power prediction, shortens training time, and improves prediction accuracy and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780427A_ABST
    Figure CN118780427A_ABST
Patent Text Reader

Abstract

The invention discloses a photovoltaic day-ahead power prediction method. The method comprises the following steps: determining historical meteorological data and historical output power of a photovoltaic power station; dBSCAN abnormal value identification and data preprocessing of missing value reconstruction of a nearest neighbor interpolation method are carried out on historical data; dividing a training set and a test set based on the preprocessed historical data; a CNN-BIGRU prediction model is constructed, and a KOA physical meta-heuristic mode is adopted to carry out optimization operation on CNN-BIGRU hyper-parameters; an Attention mechanism is added; using a rolling data input mode, using monthly historical data to train the constructed prediction model, and taking MAPE as a target function; and obtaining a trained model to predict a test set.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power systems, and more specifically, to a photovoltaic day-ahead power prediction method. Background Art

[0002] Photovoltaic output prediction is one of the important components of smart energy and plays a guiding role in improving the absorption capacity of renewable energy. Renewable energy is highly dependent on environmental factors. The variability of the environment makes photovoltaic output complex and uncertain, which makes prediction difficult and brings certain challenges to the operation and scheduling of photovoltaic power generation systems. In order to optimize the operating efficiency of photovoltaic power generation systems and improve the utilization rate of generated power, power prediction technology has emerged.

[0003] Traditional photovoltaic power prediction methods are mainly based on statistical methods or mathematical modeling, using historical data and meteorological information to predict power generation in the future. However, these methods have certain limitations when facing complex and changeable meteorological conditions, and the prediction accuracy is difficult to meet actual needs. In order to more accurately predict the day-ahead power of photovoltaic power generation systems, methods based on artificial intelligence, machine learning, and deep learning have gradually emerged in recent years.

[0004] Artificial intelligence technology can better capture the complex nonlinear relationship between photovoltaic power and meteorological conditions by learning and analyzing a large amount of historical data, thereby improving the accuracy and reliability of predictions. Machine learning algorithms such as support vector machines and random forests are widely used in power prediction of photovoltaic power generation systems, and can achieve intelligent learning and modeling of different meteorological factors. However, hyperparameter debugging often requires a lot of time and testing.

[0005] The photovoltaic day-ahead power prediction method is constantly evolving and improving. With the development of technologies such as artificial intelligence and machine learning, the prediction accuracy and practicality will be further improved, providing reliable technical support for the efficient operation and management of photovoltaic power generation systems. Summary of the invention

[0006] The purpose of the present invention is to provide a photovoltaic day-ahead power prediction method, which can effectively select hyperparameters to make the model performance better and obtain a higher-precision day-ahead photovoltaic power prediction result.

[0007] To achieve the above object, the present invention provides the following technical solutions:

[0008] The present invention discloses a photovoltaic day-ahead power prediction method, comprising:

[0009] Preprocessing methods for historical meteorological data and historical output power data of photovoltaic power fields;

[0010] The pre-processed data is input and output in a rolling manner;

[0011] A CNN-BIGRU network prediction model is established for the electric field, and the Attention mechanism is introduced by using KOA to optimize hyperparameters;

[0012] Train and verify the proposed prediction model;

[0013] Combined with the objective function MAPE, determine whether the model has achieved the expected prediction accuracy;

[0014] At the same time, randomly generate hyperparameters within a reasonable range, perform model training, and compare model losses;

[0015] If the condition is negated, retrain and increase the number of training iterations.

[0016] In model evaluation, statistical indicators such as RMSE, MAP, and R2 are used to jointly evaluate the quality of the prediction model. At the same time, training time is also one of the key factors in evaluating the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A flow chart of a photovoltaic day-ahead power prediction method provided by the present application is shown;

[0018] Figure 2 A data scrolling input method provided by the present application is shown;

[0019] Figure 3 The CNN-BIGRU prediction network structure model diagram provided by this application is shown;

[0020] Figure 4 A schematic diagram of the physical meta-heuristic algorithm KOA provided in the present application is shown; DETAILED DESCRIPTION

[0021] The following will be combined with the accompanying drawings in the examples of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. The described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The present invention can also be implemented in other ways different from those described here. Therefore, the protection scope of the present invention is not limited by the specific embodiments disclosed below.

[0022] Step 1: Collect historical data related to the photovoltaic electric field, and use Pearson correlation analysis to select several features with high correlation with the power generation power. In this embodiment, the total irradiance, direct irradiance, scattered irradiance, temperature, air pressure, humidity, and component temperature are selected.

[0023] Step 2: Use DSBCAN outlier identification to clean the power data, and use the nearest neighbor interpolation method to reconstruct the data of the missing values ​​after elimination and the original missing values.

[0024] Step 3: Reconstruct the data set using rolling input method and divide it into training set and validation set.

[0025] Step 4: Build the CNN-BIGRU basic network model. The CNN network is mainly composed of convolutional layers, pooling layers, and fully connected layers. GRU combines the forget gate and input gate into a single "update gate" and uses the update gate and reset gate to control the flow of information.

[0026]

[0027] BIGRU sets up forward and backward propagation GRU modules. At any time, the states of the forward and reverse GRUs jointly determine the output of BiGRU.

[0028] Step 5: Use KOA (Kepler Metaheuristic Optimization Algorithm) to optimize the hyperparameters of CNN-BIGRU, including learning rate, convolution kernel size, and number of neurons. KOA initializes the planets and sets the planet search; the population size is N planets randomly distributed in d-dimensional space, representing the decision-making plan in the optimization problem, obeying

[0029]

[0030] Indicates the i th is a function of the number of objects in the exploration space that are potential solutions. N represents the total number of solution candidates available in the exploration space. The variable d corresponds to the dimensionality of the specific optimization problem. and Respectively represent the i th In addition, rand[0,1] is a random number generated in the range of 0 to 1 and is used to initialize the orbital eccentricity e.

[0031] T i =|r|,i=1,…,N

[0032] T is the orbital period of object i, and the gravitational force is

[0033]

[0034] By simulating the operation mode of some special objects, it can jump out of the local optimal solution area. To simulate this behavior, dynamically change the search direction so that the search space can be better explored. At the same time, an elitist strategy is used to retain the best positions of planets and the sun. By comparing the fitness values ​​of historical particles and new particles.

[0035] Step 6: Introduce the Attention mechanism. By calculating the correlation score between the hidden layer vector of the input sequence and the output, the attention weight of the hidden layer vector is obtained. Its function is to help the model extract key information from the input according to the size of the attention weight and reduce the impact of irrelevant parts.

[0036] Step 7: Train the model and iterate the parameters until the objective function meets the accuracy requirements.

Claims

1. A photovoltaic power day-ahead prediction method, It is characterized in that include: Determine the historical meteorological data and historical power data of the photovoltaic field; The data was preprocessed using DBSCAN outlier identification and nearest neighbor interpolation method for missing value reconstruction; Divide the training set and test set, and use the data rolling input method; Build a CNN-BIGRU-Attention day-ahead forecasting model and use physical meta-heuristic KOA to optimize hyperparameters; Train the model and iteratively select network parameters to meet the target accuracy; After the training, the model is used to predict and verify the test set, and the day-ahead output power prediction result is obtained. S1. DSBCAN outlier identification (1) Set the area radius Eps and the minimum number MinPts. (2) Calculate the number of samples within the radius Eps of any sample. If the number is greater than MinPts, mark the sample point as a core point. Otherwise, temporarily mark it as a noise point because noise points are mostly fluctuating data points. (3) Starting from the core point, find all density-reachable points and mark them as the same category, which is a stationary data set. (4) Randomly repeat steps (2) to (3) from the unselected points until all data are marked. The Minkowski distance formula is as follows: Where n is the number of data, p=2, and the Euclidean distance is taken. S2. Nearest neighbor interpolation method: By finding the K nearest neighbor observations that are most similar to the missing data, their values ​​are used to estimate the value of the missing data. S3. Scroll input method According to the rolling prediction principle, {x(t-2), x(t-1)}, the output is {G(t-1), G(t)}, where x represents the climate factor of the day, with a total of 24 columns and 7 rows. 24 is a value taken at 1h intervals every day, each moment contains 7 climate factors, and G(t) represents the power generation at 24 moments in t days. The input and output sets change with the change of t (t=4,……,30or31)}. S4.CNN-BIGRU prediction model The original time series data is converted into a two-dimensional grayscale image using two-dimensional convolution to extract the features of the converted image, which is converted into a double type tensor for CNN input. CNN is used to extract key features. BiGRU consists of two GRUs; one is a forward GRU model that accepts forward input; the other is a reverse GRU model that learns reverse input; it can effectively capture long-term dependencies in the input sequence. The CNN-BIGRU structure is shown in the figure S5.KOA Optimization Algorithm The physical meta-heuristic algorithm KOA is used to optimize the hyperparameters of the CNN-BIGRU prediction model, and its optimization space is visualized by simulating the "Sun" star as the center. In the Kepler Optimization Algorithm (KOA), the planets (candidate solutions) and stars (current best solutions) are in different situations in different time and space, so that the search space can be efficiently searched and utilized. S6. Attention mechanism By calculating the correlation score between the hidden layer vector of the input sequence and the output, the attention weight of the hidden layer vector is obtained, which helps the model extract key information from the input according to the attention weight and reduce the influence of irrelevant parts. After the self-attention layer is embedded in the GRU layer, the self-attention layer is used to capture the global dependencies in the time series data. The self-attention mechanism allows the network to dynamically adjust the weights of each time step during learning to better capture long-term dependencies and global patterns. S7. Take MAPE as the objective function. When the loss is lower than the threshold or the number of iterations reaches the maximum set number, stop training and output the test set prediction results. If the ideal accuracy is not achieved, adjust the hyperparameter range and retrain.

Citation Information

Cited By

  • Ultra-short-term photovoltaic output prediction method based on bimodal weather typing

    CN120833075A