Photovoltaic power day-ahead prediction method, device, equipment, storage medium and product
By calculating the confidence of weather forecast data for photovoltaic power stations on historical days and clustering similar days, combined with the ELM model and ARIMA model, the problem of prediction accuracy caused by the difference between weather forecast data and actual weather is solved, and the accuracy of photovoltaic power prediction is improved. and applicability.
Patent Information
- Application Number
- CN202410947833.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-16
AI Technical Summary
Existing photovoltaic power day-ahead prediction methods rely on weather forecast data in historical databases, resulting in poor accuracy of prediction results because there is a big difference between weather forecast data and actual weather.
By obtaining the historical actual output power of photovoltaic power stations on several historical days, the confidence of weather forecast data is calculated, and the confidence is used to cluster historical days, and similar days are selected as sample sets to train the ELM photovoltaic power prediction model. The predicted output power is output, and the predicted output power is corrected through the ARIMA model.
It improves the accuracy of the prediction results and improves the learning effect of the sample set, making the accuracy and qualification rate of the prediction results higher than existing standards. There is no need to configure a weather monitoring system for base cloud maps, and it is suitable for all types of photovoltaic power stations.
Smart Images

Figure CN118508433B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power prediction, and in particular to a photovoltaic power day-ahead prediction method, device, equipment, storage medium and product. Background Art
[0002] With the large-scale access of photovoltaic power generation, the impact and hidden risks of photovoltaic power generation on grid dispatching are also increasing day by day. Therefore, photovoltaic power stations need to actively carry out output power forecasting. The current photovoltaic power day-ahead forecasting method relies on the accuracy of weather forecast data in the historical database. However, these weather forecast data often differ greatly from the actual weather, resulting in poor accuracy of the forecast results. Summary of the invention
[0003] The present application provides a photovoltaic power day-ahead prediction method, device, equipment, storage medium and product to solve the problem in the prior art that weather forecast data in a historical database and actual weather often differ greatly, resulting in poor accuracy of prediction results.
[0004] To achieve the above purpose, the present application provides a photovoltaic power day-ahead prediction method, comprising:
[0005] Obtaining the historical actual output power of the photovoltaic power station on several historical days, and calculating the confidence of the weather forecast data on the several historical days;
[0006] Clustering the historical days using the confidence levels to obtain a number of similar days to the day to be measured;
[0007] Using a number of similar days as sample sets, training the ELM photovoltaic power prediction model;
[0008] Using the trained ELM photovoltaic power prediction model, output the predicted output power of the photovoltaic power station on the test day;
[0009] The predicted output power of the day to be measured is corrected to obtain a corrected output power.
[0010] As an improvement of the above solution, the method of obtaining the historical actual output power of the photovoltaic power station on several historical days and calculating the confidence of the weather forecast data on several historical days includes:
[0011] Obtain the actual historical output power of the photovoltaic power station on several historical days;
[0012] Filtering the historical actual output powers, performing a windowed Fourier transform on the filtered historical actual output powers, and obtaining high-frequency component contents of the power within the preset time windows;
[0013] The confidence of the weather forecast data of several historical days is obtained by subtracting the corresponding high-frequency component content of the power from 1.
[0014] As an improvement of the above solution, the plurality of historical days are clustered using the plurality of confidences to obtain a plurality of similar days to the day to be measured, including:
[0015] For a number of the historical days, construct a feature vector of each of the historical days according to the weather forecast data of each of the historical days, wherein the feature vector of the historical day includes: the maximum surface irradiance, the maximum wind speed, the maximum temperature, the minimum wind speed, the minimum temperature, the time of the maximum surface irradiance, the time of the maximum wind speed, the time of the maximum temperature, the time of the minimum wind speed, and the time of the minimum temperature in the weather forecast data of the historical day;
[0016] For a day to be measured, a feature vector of the day to be measured is constructed according to the weather forecast data of the day to be measured, wherein the feature vector of the day to be measured includes: the maximum surface irradiance, the maximum wind speed, the maximum temperature, the minimum wind speed, the minimum temperature, the time of the maximum surface irradiance, the time of the maximum wind speed, the time of the maximum temperature, the time of the minimum wind speed and the time of the minimum temperature in the weather forecast data of the day to be measured;
[0017] Based on the feature vectors of the historical days and the feature vector of the day to be measured, each confidence level is used as a weight to calculate the similarity distance between the corresponding historical day and the day to be measured;
[0018] The Q historical days with the smallest similarity distance are selected as similar days to the day to be tested.
[0019] As an improvement of the above solution, the similarity distance between the corresponding historical day and the day to be measured is calculated according to the following formula:
[0020] L(m)=||charac(1 10)(m)-charac_pre(1 10)|| (1-ac(m))
[0021] Where, L(m) represents the similarity distance between historical day m and the test day, charac(1 10)(m) represents the historical feature vector of historical day m, charac_pre(1 10) represents the target feature vector of the day to be tested, and ac(m) represents the confidence of the historical weather forecast data of historical day m.
[0022] As an improvement of the above scheme, the output of the ELM photovoltaic power prediction model is expressed as:
[0023]
[0024] in, is the link weight between the i-th hidden layer neuron and the output layer, is the transfer function of the i-th hidden layer neuron, is the weight vector of the input layer to the i-th hidden layer neuron, is the i-th input layer neuron, where the input layer neurons include surface irradiance, temperature, humidity, wind speed and the actual output power at the previous moment, is the bias of the i-th hidden layer neuron.
[0025] As an improvement of the above solution, the predicted output power of the day to be measured is corrected to obtain the corrected output power, including:
[0026] Using the trained ELM photovoltaic power prediction model, the predicted output power of the historical day is obtained;
[0027] Obtaining a power error sequence according to the predicted output power of the historical day and the actual output power of the historical day;
[0028] According to the power error sequence, an ARIMA model is constructed;
[0029] Using the ARIMA model to obtain the power error value of the day to be measured;
[0030] The power error value is added to the predicted output power of the day to be measured to obtain the corrected output power.
[0031] To achieve the above purpose, the embodiment of the present application further provides a photovoltaic power day-ahead prediction device, comprising:
[0032] A confidence calculation module, used to obtain the historical actual output power of the photovoltaic power station on several historical days, and calculate the confidence of the weather forecast data on several of the historical days;
[0033] A similar day acquisition module, used for clustering the several historical days using the several confidence levels to obtain several similar days to the day to be measured;
[0034] A training module, used for training the ELM photovoltaic power prediction model by using a number of similar days as sample sets;
[0035] A power prediction module, used to output the predicted output power of the photovoltaic power station on the test day by using the trained ELM photovoltaic power prediction model;
[0036] The power correction module is used to correct the predicted output power of the day to be measured to obtain the corrected output power.
[0037] As an improvement of the above solution, the confidence calculation module is also used for:
[0038] Obtain the actual historical output power of the photovoltaic power station on several historical days;
[0039] Filtering the historical actual output powers, performing a windowed Fourier transform on the filtered historical actual output powers, and obtaining high-frequency component contents of the power within the preset time windows;
[0040] The confidence of the weather forecast data of several historical days is obtained by subtracting the corresponding high-frequency component content of the power from 1.
[0041] As an improvement of the above solution, the similar day acquisition module is further used for:
[0042] For a number of the historical days, construct a feature vector of each of the historical days according to the weather forecast data of each of the historical days, wherein the feature vector of the historical day includes: the maximum surface irradiance, the maximum wind speed, the maximum temperature, the minimum wind speed, the minimum temperature, the time of the maximum surface irradiance, the time of the maximum wind speed, the time of the maximum temperature, the time of the minimum wind speed, and the time of the minimum temperature in the weather forecast data of the historical day;
[0043] For a day to be measured, a feature vector of the day to be measured is constructed according to the weather forecast data of the day to be measured, wherein the feature vector of the day to be measured includes: the maximum surface irradiance, the maximum wind speed, the maximum temperature, the minimum wind speed, the minimum temperature, the time of the maximum surface irradiance, the time of the maximum wind speed, the time of the maximum temperature, the time of the minimum wind speed and the time of the minimum temperature in the weather forecast data of the day to be measured;
[0044] Based on the feature vectors of the historical days and the feature vector of the day to be measured, each confidence level is used as a weight to calculate the similarity distance between the corresponding historical day and the day to be measured;
[0045] The Q historical days with the smallest similarity distance are selected as similar days to the day to be tested.
[0046] To achieve the above-mentioned purpose, an embodiment of the present application also provides a photovoltaic power day-ahead prediction device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and the processor implements the photovoltaic power day-ahead prediction method as described above when executing the computer program.
[0047] To achieve the above-mentioned purpose, an embodiment of the present application also provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute the photovoltaic power day-ahead prediction method as described above.
[0048] To achieve the above-mentioned purpose, an embodiment of the present application further provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the photovoltaic power day-ahead prediction method as described above.
[0049] Compared with the prior art, the photovoltaic power day-ahead prediction method, device, equipment, storage medium and product provided in the embodiment of the present application obtain the historical actual output power of the photovoltaic power station on several historical days, calculate the confidence of the weather forecast data of several historical days; cluster several historical days using the several confidences to obtain several similar days of the day to be tested; use several similar days as sample sets to train the ELM photovoltaic power prediction model; use the trained ELM photovoltaic power prediction model to output the predicted output power of the photovoltaic power station on the day to be tested; correct the predicted output power of the day to be tested to obtain the corrected output power. It can be seen that the embodiment of the present application takes into account the great difference between the weather forecast data in the historical library and the actual weather, and uses the confidence of the weather forecast data of the historical days to cluster the historical days, so that the sample set selected by clustering is more accurate, which can improve the learning effect of the sample set, and thus improve the accuracy of the prediction results. In addition, the embodiment of the present application also corrects the output predicted output power, further improving the accuracy of the prediction results. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 This is a flow chart of a photovoltaic power day-ahead prediction method provided in an embodiment of the present application;
[0051] Figure 2 is a spectrum diagram after windowed Fourier transformation provided in an embodiment of the present application;
[0052] Figure 3 It is an ELM output diagram under different structures provided in the embodiments of the present application;
[0053] Figure 4 A comparison chart of different neural network outputs provided in the embodiments of the present application;
[0054] Figure 5 A comparison chart of different clustering effects provided in the embodiments of the present application;
[0055] Figure 6 A comparison diagram before and after correction provided in the embodiment of the present application;
[0056] Figure 7 This is a structural block diagram of a photovoltaic power day-ahead prediction device provided in an embodiment of the present application;
[0057] Figure 8 This is a structural block diagram of a photovoltaic power day-ahead prediction device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0059] It is worth noting that there are currently four main solutions to the problem of interference caused by the accuracy of weather forecasts and random fluctuations in the existing technology, namely:
[0060] 1. The weather forecast data is corrected by combining it with the base cloud map of the meteorological station of the photovoltaic power station. Then, the physical model based on the photoelectric conversion equation gives a 4-hour advance forecast of the output power of the photovoltaic power station. However, small photovoltaic power stations are not equipped with a meteorological monitoring system sufficient to generate a base cloud map. It is difficult to ensure the real-time accuracy of the power forecast 24 hours in advance by using the base cloud map.
[0061] 2. Cluster screening was performed on the sample set selection process, including proximity K clustering and seasonal clustering. However, the premise of these traditional clustering methods is the absolute accuracy of weather forecast data in the historical database. However, in actual testing, it was found that there are often large differences between these weather forecast data and actual weather, which will affect the accuracy of the prediction results.
[0062] 3. Different neural networks are used to learn the weather-power relationship, but the model verification is based on the meteorological parameters considered in the laboratory, which is quite different from the actual operating environment.
[0063] 4. The statistical method is used to predict the output power of photovoltaic power stations. However, the results are still not suitable for the situation where there are errors in the weather forecast data in the historical database, and it is difficult to apply them to actual projects.
[0064] In view of this, the embodiment of the present application provides a photovoltaic power day-ahead prediction method. Considering that there is a big difference between the weather forecast data in the historical library and the actual weather, the confidence of the weather forecast data of the historical day is used to cluster the historical days, so that the sample set screened by clustering is more accurate, which can improve the learning effect of the sample set, and thus improve the accuracy of the prediction results; by clustering and screening similar days from several historical days as sample sets, the learning process of the sample set is the same as the actual operating environment, ensuring the accuracy of the prediction results. In addition, the embodiment of the present application also corrects the output predicted output power, further improving the accuracy of the prediction results. It can be seen that the embodiment of the present application can effectively improve the learning effect of the sample set, so that the accuracy and pass rate of the prediction results are higher than the current prediction standards, without the need to configure a meteorological monitoring system sufficient to generate a base cloud map, and can be applied to various types of photovoltaic power stations and applied to actual projects.
[0065] See also Figure 1 , Figure 1 : is a flow chart of a photovoltaic power day-ahead prediction method provided in an embodiment of the present application, the photovoltaic power day-ahead prediction method comprising:
[0066] S1. Obtain the historical actual output power of the photovoltaic power station on several historical days, and calculate the confidence of the weather forecast data on several of the historical days;
[0067] S2. Clustering the historical days using the confidence levels to obtain a number of similar days to the day to be measured;
[0068] S3, using a number of similar days as sample sets to train the ELM photovoltaic power prediction model;
[0069] S4, using the trained ELM photovoltaic power prediction model to output the predicted output power of the photovoltaic power station on the test day;
[0070] S5. Correcting the predicted output power of the day to be measured to obtain a corrected output power.
[0071] The embodiment of the present application takes into account the large difference between the weather forecast data in the history library and the actual weather, and uses the confidence of the weather forecast data of the historical days to cluster the historical days, so that the sample set screened by clustering is more accurate, which can improve the learning effect of the sample set and thus improve the accuracy of the prediction results. In addition, the embodiment of the present application also corrects the output predicted output power, further improving the accuracy of the prediction results.
[0072] In an optional embodiment, the obtaining of the historical actual output power of the photovoltaic power station on several historical days and calculating the confidence of the weather forecast data on several of the historical days includes:
[0073] Obtain the actual historical output power of the photovoltaic power station on several historical days;
[0074] Filtering the historical actual output powers, performing a windowed Fourier transform on the filtered historical actual output powers, and obtaining high-frequency component contents of the power within the preset time windows;
[0075] The confidence of the weather forecast data of several historical days is obtained by subtracting the corresponding high-frequency component content of the power from 1.
[0076] It is understandable that in order to improve the accuracy of the confidence, the historical actual output power of the historical day is filtered to remove the noise. During training, small interference caused by small weather fluctuations should be filtered out as noise, and long-term isolated noise will generate a large number of high-frequency harmonics in the whole range. If the high-frequency harmonics in the whole range are filtered out, the overall trend of the frequency curve will change greatly; and frequent windowing of isolated noise will increase the pressure on the CPU of the photovoltaic power station server. Therefore, the embodiment of the present application preferably uses median filtering to filter the historical actual output power.
[0077] Specifically, for the nth element p(n) in the historical actual output power sequence P(k), when the filtering parameter is L, its value after median filtering is the intermediate value of {p(nL / 2), p(nL / 2+1), p(nL / 2+2)…p(n)…p(n+L / 2)}. In the embodiment of the present application, the filtering parameter is preferably 6, that is, L=6.
[0078] When selecting similar days to the day to be tested, the information of the day to be tested only includes weather forecast data. Therefore, the historical day information that needs to be compared with the day to be tested also includes weather forecast data. Therefore, it is necessary to conduct a confidence assessment on the weather forecast data in the historical day information.
[0079] According to the empirical formula of photoelectric conversion: P(t)=f n (R(t))×η(T(t))
[0080] Where P(t) is the filtered historical actual output power of the photovoltaic power station, f n (R(t)) is a high-order polynomial about the surface irradiance, and η(T(t)) is the photoelectric conversion efficiency:
[0081]
[0082] If the temperature T and the surface irradiance R are continuously differentiable, then the corresponding filtered historical actual output power should also be continuously differentiable. However, actual tests have found that the filtered historical actual output power has many large fluctuations.
[0083] Due to the errors between actual weather data such as actual surface irradiance and weather forecast data, the filtered historical actual output power contains more medium and low-frequency noise (for low-frequency noise, it is an error reflected in the overall trend and can be eliminated through later error correction), and the absolute value of the error is mainly concentrated between sampling points 15-45. Therefore, the confidence of the weather forecast can be defined as:
[0084] ac=1-fq
[0085] Wherein, ac is the confidence of weather forecast data, fq is the medium power high frequency component content in the period of 15-45, and the power high frequency component content can be obtained by Fourier transform of a window with a window center of 30 and a radius of 15. That is, the preset time window range is preferably a window with a window center of 30 and a radius of 15;
[0086] The windowed Fourier transform is an optimization based on the Fourier transform that enhances the time-frequency localization analysis capability. The traditional Fourier transform formula is to find the inner product in the space composed of the orthogonal basis {sin(x)}:
[0087]
[0088] In the formula, represents the frequency domain signal, represents the time domain signal, represents the angular frequency, Represents an imaginary unit.
[0089] The windowed Fourier transform is based on the original function. The original function is first projected onto the time-frequency window function, and then the Fourier transform is performed:
[0090]
[0091] in, Represents the selected window function. The window function selected here is:
[0092]
[0093] in For time, is the time displacement, is the preset time threshold, here we take =30, = 15, input the windowed original function into FFT (Fast Fourier Transform), and the result is as follows Figure 2 As shown: If 10 times the fundamental frequency is used as the threshold, then fq=0.5509, so the confidence level of the weather forecast data for this day is 0.4491.
[0094] In an optional embodiment, clustering the plurality of historical days using the plurality of confidences to obtain a plurality of similar days to the day to be measured includes:
[0095] For a number of the historical days, construct a feature vector of each of the historical days according to the weather forecast data of each of the historical days, wherein the feature vector of the historical day includes: the maximum surface irradiance, the maximum wind speed, the maximum temperature, the minimum wind speed, the minimum temperature, the time of the maximum surface irradiance, the time of the maximum wind speed, the time of the maximum temperature, the time of the minimum wind speed, and the time of the minimum temperature in the weather forecast data of the historical day;
[0096] For a day to be measured, a feature vector of the day to be measured is constructed according to the weather forecast data of the day to be measured, wherein the feature vector of the day to be measured includes: the maximum surface irradiance, the maximum wind speed, the maximum temperature, the minimum wind speed, the minimum temperature, the time of the maximum surface irradiance, the time of the maximum wind speed, the time of the maximum temperature, the time of the minimum wind speed and the time of the minimum temperature in the weather forecast data of the day to be measured;
[0097] Based on the feature vectors of the historical days and the feature vector of the day to be measured, each confidence level is used as a weight to calculate the similarity distance between the corresponding historical day and the day to be measured;
[0098] The Q historical days with the smallest similarity distance are selected as similar days to the day to be tested.
[0099] In an optional embodiment, the similarity distance between the corresponding historical day and the day to be measured is calculated according to the following formula:
[0100] L(m)=||charac(1 10)(m)-charac_pre(1 10)|| (1-ac(m))
[0101] Where, L(m) represents the similarity distance between historical day m and the test day, charac(1 10)(m) represents the historical feature vector of historical day m, charac_pre(1 10) represents the target feature vector of the day to be tested, and ac(m) represents the confidence of the historical weather forecast data of historical day m.
[0102] For example, for each historical day m, find the maximum values of the weather forecast data of the surface horizontal irradiance, wind speed and temperature, recorded as R_max, S_max and T_max, the minimum values of the weather forecast data of wind speed and temperature, recorded as S_min and T_min, and the corresponding times of R_max, S_max, T_max, S_min and T_min, recorded as T1, T2, T3, T4 and T5, and construct the eigenvalue vector charac(1 for each historical day m) 10) (m)=[R_max, S_max, T_max, S_max, T_max, T1, T2, T3, T4, T5].
[0103] For the day to be measured, select the same eigenvalue to construct the eigenvalue vector charac_pre(1 10).
[0104] Considering that the closer the weather type of the sample set is to the weather on the test day, the smaller the Euclidean distance of its feature vector is, so the confidence of the weather forecast data ac(m) is used as the weight of the clustering distance, and the similarity distance of each historical day m relative to the test day is:
[0105] L(m)=||charac(1 10)(m)-charac_pre(1 10)|| (1-ac(m))
[0106] Where, L(m) represents the similarity distance between historical day m and the test day, charac(1 10)(m) represents the historical feature vector of historical day m, charac_pre(1 10) represents the target feature vector of the day to be tested, and ac(m) represents the confidence of the historical weather forecast data of historical day m.
[0107] Select Q historical days with the smallest similarity distance as similar days to the day to be tested to form a sample set. Optionally, N=3.
[0108] In an optional embodiment, the output of the ELM photovoltaic power prediction model is expressed as:
[0109]
[0110] in, is the link weight between the i-th hidden layer neuron and the output layer, is the transfer function of the i-th hidden layer neuron, is the weight vector of the input layer to the i-th hidden layer neuron, is the i-th input layer neuron, where the input layer neurons include surface irradiance, temperature, humidity, wind speed and the actual output power at the previous moment, is the bias of the i-th hidden layer neuron.
[0111] It can be understood that the Extreme Learning Machine (ELM) is an efficient single hidden layer feedforward neural network, the number of neurons in the input layer, hidden layer and output layer are l, m, and n respectively. Among them, the connection weight between the i-th input layer neuron and the j-th hidden layer neuron is w, and the corresponding neuron bias of the hidden layer is z. In the embodiment of the present application, the five parameters of surface irradiance, temperature, humidity, wind speed and actual output power at the previous moment are selected to form the input vector X(5 1), so the output of the ELM photovoltaic power prediction model is expressed as:
[0112]
[0113] in, is the link weight between the i-th hidden layer neuron and the output layer, is the transfer function of the i-th hidden layer neuron, is the weight vector of the input layer to the i-th hidden layer neuron, is the i-th input layer neuron, where the input layer neurons include surface irradiance, temperature, humidity, wind speed and the actual output power at the previous moment, is the bias of the i-th hidden layer neuron;
[0114] The actual training and cross-validation results show that in the embodiment of the present application, when there are five input layer neurons and one output layer neuron, the transfer function is:
[0115]
[0116] At this time, the system has the best follow-up degree, and when the number of hidden layer neurons is 23, the prediction accuracy and stability are the highest. When the number of neurons exceeds 25, overfitting begins to occur, such as Figure 3 .
[0117] Figure 4 The output results of wavelet network, BP network and ELM network (after windowed Fourier transform clustering) are compared. Figure 5The output results of the network after clustering under windowed Fourier transform, Euclidean clustering and grey correlation clustering are shown respectively. The results show that the prediction results of the embodiment of the present application after weighting by windowed Fourier transform and then clustering and selecting sample sets, and then using ELM output are superior to other methods, and the generalization ability for different weather types is also stronger.
[0118] In an optional embodiment, the step of correcting the predicted output power of the day to be measured to obtain the corrected output power includes:
[0119] Using the trained ELM photovoltaic power prediction model, the predicted output power of the historical day is obtained;
[0120] Obtaining a power error sequence according to the predicted output power of the historical day and the actual output power of the historical day;
[0121] According to the power error sequence, an ARIMA model is constructed;
[0122] Using the ARIMA model to obtain the power error value of the day to be measured;
[0123] The power error value is added to the predicted output power of the day to be measured to obtain the corrected output power.
[0124] It is understandable that the weather forecast data for the day to be tested is generally accurate, that is, the weather fluctuations are based on the weather forecast data, but this is not the case in reality. For example, since the weather forecast data will be given 7 days in advance, the actual surface irradiance may move up and down for a long time or even throughout the day. At this time, the predicted output power needs to be corrected according to the real-time output power. However, since the predicted output power needs to be given 24 hours in advance, it is impossible to follow the overall up and down movement of the weather curve within a few hours. The embodiment of the present application preferably corrects the output power within 4 hours after the prediction time to generate an ultra-short-term power prediction sequence for the photovoltaic power station. The implementation of this application preferably uses ARIMA for correction.
[0125] Specifically, the trained ELM photovoltaic power prediction model is used to obtain the predicted output power of the historical day; according to the predicted output power of the historical day and the actual output power of the historical day, a power error sequence is obtained to obtain a power error sequence E(t);
[0126] According to the power error sequence E(t), an ARIMA model is constructed; specifically, E(t) is subjected to backward difference processing to obtain a difference sequence, and the sequence is tested to see whether it is stationary according to the ADF test method. If the sequence is not stationary, the difference is continued until a stationary power error sequence DivI_E(t) is obtained. It can also be determined by checking whether the autocorrelation function and partial correlation function of the sequence decay quickly to 0 to determine the optimal difference I. It is found in actual verification that the former I value is often greater than the latter. It is verified by data from several photovoltaic power stations that the sequence can be stabilized by taking I as 8. The order PQ of the ARIMA model is determined according to AIC:
[0127]
[0128] in, is the residual sum of squares for fitting, p is the number of autoregressive terms, q is the number of moving average terms, and N is the number of samples.
[0129] The p and q that minimize AIC are the final ARIMA order, and the order of the final ARIMA model is ARIMA(3, 3, 2):
[0130]
[0131] Where Xt is a stationary, normal, zero-mean time series, is a Gaussian white noise with a mean of 0. and θ are the autoregressive and moving average parameters. For a stationary sequence, as long as the end p and q of the autoregressive part and the moving average part are determined, the parameters in the equation can be obtained. and , and then pass on The function package is called on matlab or C++ to obtain the autoregressive and sliding average parameters, and then the four-hour power error sequence E(t) is derived. The obtained power error sequence is superimposed on the predicted output power to complete the error correction. Figure 6 The comparison chart of the predicted output power after rolling correction, i.e., the corrected output power, and the uncorrected predicted output power is shown in Figure 2. The results show that error correction can effectively improve the non-random error part of the power curve prediction value.
[0132] According to the photovoltaic power day-ahead prediction method provided by this application, calculation tests are performed through experimental data to verify the effect of this application. As shown in Table 1, the actual grid-connected operation results of 4 photovoltaic power stations are shown.
[0133] Table 1 Actual test error of photovoltaic power station
[0134]
[0135] The results of online operation show that the average accuracy error within 10 days is 5.037%, and the pass rate is 98.3%.
[0136] See also Figure 7 , Figure 7 1 is a structural block diagram of a photovoltaic power day-ahead prediction device 10 provided in an embodiment of the present application, wherein the photovoltaic power day-ahead prediction device 10 comprises:
[0137] The confidence calculation module 11 is used to obtain the historical actual output power of the photovoltaic power station on several historical days and calculate the confidence of the weather forecast data on several of the historical days;
[0138] A similar day acquisition module 12 is used to cluster the several historical days using the several confidence levels to obtain several similar days to the day to be measured;
[0139] A training module 13 is used to train the ELM photovoltaic power prediction model using a number of similar days as sample sets;
[0140] A power prediction module 14 is used to output the predicted output power of the photovoltaic power station on the test day by using the trained ELM photovoltaic power prediction model;
[0141] The power correction module 15 is used to correct the predicted output power of the day to be measured to obtain a corrected output power.
[0142] Optionally, the confidence calculation module 11 is further used for:
[0143] Obtain the actual historical output power of the photovoltaic power station on several historical days;
[0144] Filtering the historical actual output powers, performing a windowed Fourier transform on the filtered historical actual output powers, and obtaining high-frequency component contents of the power within the preset time windows;
[0145] The confidence of the weather forecast data of several historical days is obtained by subtracting the corresponding high-frequency component content of the power from 1.
[0146] Optionally, the similar day acquisition module 12 is further used for:
[0147] For a number of the historical days, construct a feature vector of each of the historical days according to the weather forecast data of each of the historical days, wherein the feature vector of the historical day includes: the maximum surface irradiance, the maximum wind speed, the maximum temperature, the minimum wind speed, the minimum temperature, the time of the maximum surface irradiance, the time of the maximum wind speed, the time of the maximum temperature, the time of the minimum wind speed, and the time of the minimum temperature in the weather forecast data of the historical day;
[0148] For a day to be measured, a feature vector of the day to be measured is constructed according to the weather forecast data of the day to be measured, wherein the feature vector of the day to be measured includes: the maximum surface irradiance, the maximum wind speed, the maximum temperature, the minimum wind speed, the minimum temperature, the time of the maximum surface irradiance, the time of the maximum wind speed, the time of the maximum temperature, the time of the minimum wind speed and the time of the minimum temperature in the weather forecast data of the day to be measured;
[0149] Based on the feature vectors of the historical days and the feature vector of the day to be measured, each confidence level is used as a weight to calculate the similarity distance between the corresponding historical day and the day to be measured;
[0150] The Q historical days with the smallest similarity distance are selected as similar days to the day to be tested.
[0151] Optionally, the similar day acquisition module 12 is further used for:
[0152] According to the following formula, the similarity distance between the corresponding historical day and the day to be tested is calculated;
[0153] L(m)=||charac(1 10)(m)-charac_pre(1 10)|| (1-ac(m))
[0154] Where, L(m) represents the similarity distance between historical day m and the test day, charac(1 10)(m) represents the historical feature vector of historical day m, charac_pre(1 10) represents the target feature vector of the day to be tested, and ac(m) represents the confidence of the historical weather forecast data of historical day m.
[0155] Optionally, the output of the ELM photovoltaic power prediction model is expressed as:
[0156]
[0157] in, is the link weight between the i-th hidden layer neuron and the output layer, is the transfer function of the i-th hidden layer neuron, is the weight vector of the input layer to the i-th hidden layer neuron, is the i-th input layer neuron, where the input layer neurons include surface irradiance, temperature, humidity, wind speed and the actual output power at the previous moment, is the bias of the i-th hidden layer neuron.
[0158] Optionally, the power correction module 15 is further used for:
[0159] Using the trained ELM photovoltaic power prediction model, the predicted output power of the historical day is obtained;
[0160] Obtaining a power error sequence according to the predicted output power of the historical day and the actual output power of the historical day;
[0161] According to the power error sequence, an ARIMA model is constructed;
[0162] Using the ARIMA model to obtain the power error value of the day to be measured;
[0163] The power error value is added to the predicted output power of the day to be measured to obtain the corrected output power.
[0164] It is worth noting that the working process of each module in the photovoltaic power day-ahead prediction device 10 described in the embodiment of the present application can refer to the working process of the photovoltaic power day-ahead prediction method described in the above embodiment, which will not be repeated here.
[0165] The photovoltaic power day-ahead prediction device 10 provided in the embodiment of the present application takes into account the great difference between the weather forecast data in the historical library and the actual weather, and clusters the historical days using the confidence of the weather forecast data of the historical days, so that the sample set screened by clustering is more accurate, which can improve the learning effect of the sample set, and thus improve the accuracy of the prediction result. In addition, the embodiment of the present application also corrects the output predicted output power, further improving the accuracy of the prediction result.
[0166] In addition, an embodiment of the present application further provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute the photovoltaic power day-ahead prediction method as described in any of the above embodiments.
[0167] In addition, an embodiment of the present application further provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the photovoltaic power day-ahead prediction method as described in any of the above embodiments.
[0168] See also Figure 8 , Figure 81 is a structural block diagram of a photovoltaic power day-ahead prediction device 20 provided in an embodiment of the present application, and the photovoltaic power day-ahead prediction device 20 includes: a processor 21, a memory 22, and a computer program stored in the memory 22 and executable on the processor 21. When the processor 21 executes the computer program, the steps in the photovoltaic power day-ahead prediction method embodiment are implemented. Alternatively, when the processor 21 executes the computer program, the functions of each module / unit in the above-mentioned device embodiments are implemented.
[0169] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 22 and executed by the processor 21 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the photovoltaic power day-ahead prediction device 20.
[0170] The photovoltaic power day-ahead prediction device 20 may include, but is not limited to, a processor 21 and a memory 22. Those skilled in the art will appreciate that the schematic diagram is merely an example of the photovoltaic power day-ahead prediction device 20 and does not constitute a limitation on the photovoltaic power day-ahead prediction device 20. The photovoltaic power day-ahead prediction device 20 may include more or fewer components than shown in the figure, or may combine certain components, or different components. For example, the photovoltaic power day-ahead prediction device 20 may also include input and output devices, network access devices, buses, and the like.
[0171] The processor 21 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 21 is the control center of the photovoltaic power day-ahead prediction device 20, and uses various interfaces and lines to connect various parts of the entire photovoltaic power day-ahead prediction device 20.
[0172] The memory 22 can be used to store the computer program and / or module. The processor 21 realizes various functions of the photovoltaic power day-ahead prediction device 20 by running or executing the computer program and / or module stored in the memory 22 and calling the data stored in the memory 22. The memory 22 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.). In addition, the memory 22 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0173] Wherein, if the module / unit integrated in the photovoltaic power day-ahead prediction device 20 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor 21. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0174] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art can understand and implement it without paying any creative work.
[0175] The above is a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications are also considered to be within the scope of protection of the present application.
Claims
1. A photovoltaic power day-ahead prediction method, characterized in that: include: Obtaining historical actual output power of the photovoltaic power station on several historical days, and calculating the confidence level of weather forecast data on the several historical days; Clustering the historical days using the confidence levels to obtain a number of similar days to the day to be measured; Using several of the similar days as sample sets, the ELM photovoltaic power prediction model is trained; Using the trained ELM photovoltaic power prediction model, output the predicted output power of the photovoltaic power station on the test day; Correcting the predicted output power on the day to be measured to obtain a corrected output power; The step of obtaining the actual historical output power of the photovoltaic power station on several historical days and calculating the confidence of the weather forecast data on the several historical days includes: Obtain the actual historical output power of the photovoltaic power station on several historical days; Filtering the plurality of historical actual output powers, performing a windowed Fourier transform on the plurality of filtered historical actual output powers, and obtaining a power high-frequency component content within a plurality of preset time windows; The confidence levels of the weather forecast data for several historical days are obtained by subtracting the corresponding high-frequency power component content from 1.
2. The photovoltaic power day-ahead prediction method according to claim 1, wherein: The clustering of the historical days using the confidence levels to obtain a number of similar days to the day to be measured includes: For a number of the historical days, constructing a feature vector for each of the historical days based on the weather forecast data for each of the historical days, the feature vector for each of the historical days including: the maximum surface irradiance, the maximum wind speed, the maximum temperature, the minimum wind speed, the minimum temperature, the time of the maximum surface irradiance, the time of the maximum wind speed, the time of the maximum temperature, the time of the minimum wind speed, and the time of the minimum temperature in the weather forecast data for the historical day; For a day to be measured, constructing a feature vector for the day to be measured based on the weather forecast data for the day to be measured, the feature vector for the day to be measured including: the maximum surface irradiance, the maximum wind speed, the maximum temperature, the minimum wind speed, the minimum temperature, the time of maximum surface irradiance, the time of maximum wind speed, the time of maximum temperature, the time of minimum wind speed, and the time of minimum temperature in the weather forecast data for the day to be measured; Based on the feature vectors of the historical days and the feature vector of the day to be measured, each confidence level is used as a weight to calculate the similarity distance between the corresponding historical day and the day to be measured; The Q historical days with the smallest similarity distance are selected as similar days to the day to be tested.
3. The photovoltaic power day-ahead prediction method according to claim 2, wherein: According to the following formula, the similarity distance between the corresponding historical day and the day to be measured is calculated; L(m)=||charac(1 10)(m)-charac_pre(1 10)|| (1-ac(m)) Where, L(m) represents the similarity distance between historical day m and the test day, charac(1 10)(m) represents the historical feature vector of historical day m, charac_pre(1 10) represents the target feature vector of the day to be measured, and ac(m) represents the confidence level of the historical weather forecast data of historical day m.
4. The photovoltaic power day-ahead prediction method according to claim 1, wherein: The output of the ELM photovoltaic power prediction model is expressed as: in, is the link weight between the i-th hidden layer neuron and the output layer, is the transfer function of the i-th hidden layer neuron, is the weight vector of the input layer to the i-th hidden layer neuron, is the i-th input layer neuron, where the input layer neurons include surface irradiance, temperature, humidity, wind speed and the actual output power at the previous moment, is the bias of the i-th hidden layer neuron.
5. The photovoltaic power day-ahead prediction method according to claim 1, wherein: The step of correcting the predicted output power on the day to be measured to obtain the corrected output power includes: Using the trained ELM photovoltaic power prediction model, the predicted output power for the historical day is obtained; Obtaining a power error sequence based on the predicted output power of the historical day and the actual output power of the historical day; Constructing an ARIMA model based on the power error sequence; Using the ARIMA model to obtain the power error value of the day to be measured; The power error value is added to the predicted output power of the day to be measured to obtain the corrected output power.
6. A photovoltaic power day-ahead prediction device, characterized in that: include: A confidence calculation module is used to obtain the historical actual output power of the photovoltaic power station on several historical days and calculate the confidence of the weather forecast data on several of the historical days; A similar day acquisition module is used to cluster the historical days using the confidence levels to obtain a number of similar days to the day to be measured; A training module, configured to train the ELM photovoltaic power prediction model using a plurality of similar days as a sample set; A power prediction module, configured to output the predicted output power of the photovoltaic power station on the test day using the trained ELM photovoltaic power prediction model; A power correction module, configured to correct the predicted output power of the test day to obtain a corrected output power; The confidence calculation module is further configured to: Obtain the actual historical output power of the photovoltaic power station on several historical days; Filtering the plurality of historical actual output powers, performing a windowed Fourier transform on the plurality of filtered historical actual output powers, and obtaining a power high-frequency component content within a plurality of preset time windows; The confidence levels of the weather forecast data for several historical days are obtained by subtracting the corresponding high-frequency power component content from 1.
7. The photovoltaic power day-ahead prediction device according to claim 6, characterized in that: The similar day acquisition module is further used for: For a number of the historical days, constructing a feature vector for each of the historical days based on the weather forecast data for each of the historical days, the feature vector for each of the historical days including: the maximum surface irradiance, the maximum wind speed, the maximum temperature, the minimum wind speed, the minimum temperature, the time of the maximum surface irradiance, the time of the maximum wind speed, the time of the maximum temperature, the time of the minimum wind speed, and the time of the minimum temperature in the weather forecast data for the historical day; For a day to be measured, constructing a feature vector for the day to be measured based on the weather forecast data for the day to be measured, the feature vector for the day to be measured including: the maximum surface irradiance, the maximum wind speed, the maximum temperature, the minimum wind speed, the minimum temperature, the time of maximum surface irradiance, the time of maximum wind speed, the time of maximum temperature, the time of minimum wind speed, and the time of minimum temperature in the weather forecast data for the day to be measured; Based on the feature vectors of the historical days and the feature vector of the day to be measured, each confidence level is used as a weight to calculate the similarity distance between the corresponding historical day and the day to be measured; The Q historical days with the smallest similarity distance are selected as similar days to the day to be tested.
8. A photovoltaic power day-ahead prediction device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the photovoltaic power day-ahead prediction method according to any one of claims 1 to 5 when executing the computer program.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a stored computer program; wherein, when the computer program is run, it controls the device where the computer-readable storage medium is located to execute the photovoltaic power day-ahead prediction method according to any one of claims 1 to 5.
10. A computer program product, characterized in that The method comprises a computer program / instruction, which, when executed by a processor, implements the photovoltaic power day-ahead prediction method according to any one of claims 1 to 5.
