Regional distributed photovoltaic power generation total power prediction method

By using a method based on the SOM neural network and combining it with an improved random forest algorithm to correct solar irradiance, the problem of high prediction error rate of total power generation of distributed photovoltaic power generation is solved, and high-precision prediction of total photovoltaic power generation is achieved, which is suitable for efficient dispatching of power systems.

CN118889376APending Publication Date: 2024-11-01STATE GRID JIANGSU ELECTRIC POWER CO LTD NANTONG POWER SUPPLY BRANCH
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410904248.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

In existing technologies, the total power prediction method for distributed photovoltaic (PV) power generation is affected by solar irradiance, resulting in a high prediction error rate. This leads to a decrease in the accuracy of the PV power generation prediction results, making it difficult to apply to the efficient and rational scheduling of power systems.

Method used

A method based on the SOM neural network is adopted, combined with an improved random forest algorithm to remove the influence of shading, to correct solar irradiance. The total photovoltaic power generation is predicted through data preprocessing and the SOM neural network, including data cleaning, noise reduction, anomaly removal and data truncation, to improve data accuracy.

Benefits of technology

It has improved the accuracy and precision of photovoltaic power generation prediction, achieved high-precision prediction by region and sample, and significantly improved the accuracy of total photovoltaic power generation prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118889376A_ABST
    Figure CN118889376A_ABST
Patent Text Reader

Abstract

The invention discloses a regional distributed photovoltaic power generation total power prediction method, which reduces the influence of abnormal data on an average value through a variable-length sliding window averaging method, and realizes the correction of solar irradiance through an improved random forest algorithm for cutting off shielding influence positions and time periods. According to the method, the photovoltaic power generation power prediction accuracy is improved, the problem that the photovoltaic power generation total power prediction accuracy is low in the prior art is solved, and the beneficial effect of achieving distributed photovoltaic regional, sample and high-accuracy prediction is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power grid generation power prediction, and in particular to a method for predicting regional distributed photovoltaic power generation total power based on a SOM neural network and taking solar irradiance correction into consideration. Background Art

[0002] In recent years, with the energy shortage and the reduction of carbon emissions, the development and use of renewable energy has become more and more extensive, and distributed photovoltaic power generation is the most important way of using it, with the characteristics of convenient construction, low price, and fast commissioning. However, the establishment of large-scale distributed photovoltaics has brought a series of difficulties to the dispatching and operation of the power system. Accurate and efficient prediction of photovoltaic power generation can more effectively alleviate the dispatching problem.

[0003] At present, there are many schemes for the prediction of the total power of distributed photovoltaic power generation, some of which are based on satellite cloud images, and some of which complete power dispatching through hierarchical control. For example, the patent document with application publication number CN112766568A discloses a method for predicting the total power of distributed photovoltaic power generation in the ultra-short term based on satellite cloud images, which predicts the total power of photovoltaic power generation through the Res-UNet network after SWR matrix operation. The patent document with application publication number CN104242337A discloses a real-time coordinated control method for photovoltaic microgrid systems. The scheme has multiple control modules such as a central real-time optimization control layer and a local control layer, and implements a method for central real-time control and dispatching by providing real-time dispatching strategies and frequency modulation dispatching.

[0004] At present, most of the photovoltaic power generation total power prediction methods use neural network models or other machine learning fitting models for prediction. However, affected by solar irradiance, photovoltaic power generation has random and uncertain changes, which has a huge impact on the prediction of photovoltaic power generation total power. The accuracy of solar irradiation data required for photovoltaic prediction is low, resulting in reduced accuracy of photovoltaic power generation prediction results, making it difficult to apply to actual production applications. Therefore, the general prediction error rate is high, which is not conducive to the efficient and reasonable scheduling of the power system, and there is still a problem of power waste. Summary of the invention

[0005] In view of the shortcomings of the prior art, the present invention provides a method for predicting the total power of regional distributed photovoltaic power generation based on a SOM neural network and taking into account solar irradiance correction, so as to solve the problem of high prediction error rate in the above-mentioned prior art.

[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions:

[0007] A method for predicting the total power of regional distributed photovoltaic power generation adopts the following steps:

[0008] S1 collects sample data of distributed photovoltaic power stations, where the sample data collection time range includes at least a specified time period, and the sample data includes photovoltaic power generation power history data, meteorological history data, and solar irradiance history data;

[0009] S2 performs data preprocessing on the collected sample data, wherein the data preprocessing step includes a data cleaning step, a data denoising step and a data interception step;

[0010] S3 uses an improved random forest algorithm that removes the effects of occlusion to perform prediction fitting correction on solar irradiance and obtain irradiance prediction data

[0011] Where s is the cut point according to the irradiance feature A, c1 is the data fitting constant of the first segment, c2 is the data fitting constant of the second segment, D1 is the data subset of the first segment, D2 is the data subset of the second segment, y i is the actual solar irradiance, x is the variable value, x i is the independent variable value of the data point;

[0012] S4 makes the data into a training set and uses the SOM neural network to build a photovoltaic power generation total power prediction model for power prediction;

[0013] Preferably, the designated time period is one year.

[0014] Preferably, the historical meteorological data includes temperature, relative humidity and air pressure.

[0015] Preferably, the data cleaning step includes a data deficiency elimination step and a data anomaly removal step.

[0016] Preferably, in the data missing elimination step, the photovoltaic power generation historical data and the meteorological historical data are supplemented with missing data using Lagrange interpolation.

[0017] Preferably, the data anomaly removal step uses a variable length sliding window averaging method to determine whether the photovoltaic power generation power sample data within the range is an abnormal value. If At this time, the data f(i, t) is abnormal data, and the data is processed to eliminate the missing data. Among them, f(i, t) is the photovoltaic power generation power sample data at time t on the i-th day, represents the mean of n sample data before and after f(i,t), ξ is the pre-stored error threshold, and the sliding window size W k Dynamically adjust according to the number of detected anomalies, W k =(1+α) kn, where 45% ≤ α ≤ 55%, α is the increment percentage of the sliding window size, and k is the number of anomalies.

[0018] Preferably, the data denoising step comprises the following steps:

[0019] Perform n-layer wavelet decomposition on the data to obtain the wavelet coefficient ω j,k , where k is the wavelet variable and j is the wavelet transform frequency;

[0020] Determine the rigrsure threshold λ k , where k min is the value corresponding to the minimum risk point, f(k) is k min The square root of

[0021] Based on the wavelet coefficient ω j,k , perform wavelet transform and obtain the denoised sample data.

[0022] Preferably, the data interception step intercepts the sunrise time h r to sunset time s Sample data within:

[0023] Sunrise time is h r , sunset time is h s ,

[0024]

[0025] in

[0026] a=sinδ*(sinΦ*cosβ-cosΦ*sinβ*cosγ p )

[0027] b=cosδ*(cosΦ*cosβ-sinΦ*sinβ*cosγ p )

[0028] c=cosδ*sinΦ*sinγ p

[0029] D=(b 2 +c 2 ) 1 / 2

[0030] ɑ is the horizontal angle between sunlight and the solar panel, δ is the vertical angle between sunlight and the solar panel, γ is the vertical angle between the solar panel and the latitude, β is the horizontal angle between the solar panel and the ground, and Φ is the angle between sunlight and longitude.

[0031] Preferably, the S3 step comprises:

[0032] S3.1 Selecting samples of photovoltaic irradiance historical data;

[0033] S3.2 Analyze the sudden change period and local location of photovoltaic output to locate the location affected by shading;

[0034] S3.3 Determine the changing pattern of photovoltaic output in similar historical periods;

[0035] S3.4 performs clipping calculations on the locations and time periods affected by the occlusion;

[0036] S3.5 Modify the subset of irradiance data used as input to the random forest model;

[0037] S3.6 calculates the mean value of the decision tree to obtain the prediction result.

[0038] Preferably, the photovoltaic power generation total power prediction model function is obtained by the following steps: the sample data is sorted into X=[x1, x2..., x N ]N×n, where N is the number of training samples, n=3, and x is the weight of the neuron x∈R 1×n , the competition parameter is W = [w1,w2,……,w k ] k×n , w is the neuron weight w∈R 1×n , the similarity d is calculated by iteratively calculating the Euclidean distance between samples through the SOM clustering neural network, Get the expression of optimal clustering Where c is the number of cluster centers, n is the number of samples, and μ is the membership parameter.

[0039] Compared with the prior art, the present solution has the following beneficial effects: the regional distributed photovoltaic power generation total power prediction method based on the SOM neural network and considering the solar irradiance correction of the present application first collects sample data information, then pre-processes the data by data elimination, data denoising and other methods, then corrects the collected solar irradiance data, and finally predicts the photovoltaic power through the SOM neural network. The variable length sliding window averaging method is used to remove anomalies, which reduces the impact of abnormal data on the average value. By correcting the solar irradiance, the accuracy of photovoltaic power generation prediction is improved, and the SOM clustering neural network is used to integrate and predict the collected photovoltaic power generation data, meteorological data, solar irradiance and other data. This prediction method, on the one hand, improves the accuracy and reliability of sample parameters by cutting out the improved random forest algorithm of the locations and time periods affected by occlusion, and correcting the solar irradiance data by considering the degree of dynamic occlusion. On the other hand, the SOM neural network is used to predict photovoltaic power generation, which significantly improves the prediction results of photovoltaic power generation, thereby realizing regional, sample-based, and high-precision prediction of distributed photovoltaic power generation. Finally, examples are used to prove that the accuracy of photovoltaic power generation prediction is significantly improved when solar irradiance correction is taken into account. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A schematic diagram showing a comparison between the actual power value and the predicted value of the algorithm in the first embodiment of the present application;

[0041] Figure 2 This is a system architecture diagram of an embodiment of the present application;

[0042] Figure 3 This is a schematic diagram of the prediction accuracy of photovoltaic power generation analyzed daily according to an embodiment of the present application;

[0043] Figure 4 A network structure diagram of an embodiment of the present application;

[0044] Figure 5 This is a schematic diagram of the prediction accuracy of photovoltaic power generation per minute according to an embodiment of the present application. DETAILED DESCRIPTION

[0045] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0046] This embodiment provides a technical solution: This solution discloses a method for predicting the total power of regional distributed photovoltaic power generation, wherein the total power is the total power of all distributed grid-connected power generation in the region, and the following steps are adopted:

[0047] S1 collects sample data of distributed photovoltaic power stations, where the sample data collection time range includes at least a specified time period, and the sample data includes photovoltaic power generation power history data, meteorological history data, and solar irradiance history data;

[0048] Solar irradiance data is the solar radiation energy per unit area, usually expressed in watts per square meter (W / m 2 ) as the unit;

[0049] S2 performs data preprocessing on the collected sample data, wherein the data preprocessing step includes a data cleaning step, a data denoising step and a data interception step;

[0050] In the data missing elimination step, the photovoltaic power generation historical data and the meteorological historical data are supplemented with missing data using Lagrange interpolation. Taking the photovoltaic power generation historical data as an example:

[0051] Determine the n-1 degree polynomial of the missing point using n points around the missing data:

[0052] y=a0+a1x+a2x 2 +…+a n-1 x n-1

[0053] Where x is the time coordinate, y is the collected power data, n is the number of information points collected around the missing data value, and a is the coefficient of the interpolation polynomial.

[0054] Then substitute the coordinates of the n points into the polynomial:

[0055] y1=a0+a1x1+a2x1 2 +…+a n-1 x1 n-1

[0056] y2=a0+a1x2+a2x2 2 +…+a n-1 x2 n-1

[0057] …

[0058] y n =a0+a1x n +a2x n 2 +…+a n-1 x n n-1

[0059] Then solve for the missing values ​​L(x):

[0060]

[0061] The data de-anomaly step uses a variable-length sliding window average method to determine whether the photovoltaic power generation power sample data within the range is an abnormal value. If At this time, the data f(i, t) is abnormal data, and the data is processed to eliminate the missing data. Among them, f(i, t) is the photovoltaic power generation power sample data at time t on the i-th day, represents the mean of n sample data around f(i,t), ξ is the pre-stored error threshold, and the sliding window size W k Dynamically adjust according to the number of detected anomalies, W k =(1+α) k n, where 45% ≤ α ≤ 55%, α is the increment percentage of the sliding window size, and k is the number of anomalies.

[0062] In this embodiment, α is set to 50%, i.e., 0.5, and the initial sliding window size is n. That is, if one abnormal data is found, the sliding window size is dynamically increased by 50% to 1.5n. If two abnormal data are found, the sliding window size is increased by 50% to 2.25n on the basis of 1.5n. Similarly, the influence of abnormal data on the average value is reduced by variable length. Correspondingly, if the abnormal data is zero, the minimum window size is gradually reduced to n.

[0063] S3 uses an improved random forest algorithm that removes the effects of occlusion to perform prediction fitting correction on solar irradiance and obtain irradiance prediction data

[0064] Where s is the cut point according to the irradiance feature A, c1 is the data fitting constant of the first segment, c2 is the data fitting constant of the second segment, D1 is the data subset of the first segment, D2 is the data subset of the second segment, y i is the actual solar irradiance, x is the variable value, x i is the independent variable value of the data point;

[0065] This step includes:

[0066] S3.1 Selecting samples of photovoltaic irradiance historical data;

[0067] S3.2 Analyze the sudden change period and local location of photovoltaic output to locate the location affected by shading;

[0068] S3.3 Determine the changing pattern of photovoltaic output in similar historical periods;

[0069] S3.4 performs clipping calculations on the locations and time periods affected by the occlusion;

[0070] S3.5 Modify the subset of irradiance data used as input to the random forest model;

[0071] S3.6 calculates the mean value of the decision tree to obtain the prediction result.

[0072] S4 makes the data into a training set and uses the SOM neural network to build a photovoltaic power generation total power prediction model for power prediction:

[0073] The specific steps are:

[0074] The sample data is organized into X=[x1, x2…, x N ]N×n, where N is the number of training samples, n=3, and x is the weight of the neuron x∈R 1×n , the competition parameter is W = [w1,w2,……,w k ] k×n , w is the neuron weight w∈R 1×n , the similarity d is calculated by iteratively calculating the Euclidean distance between samples through the SOM clustering neural network, Get the expression of optimal clustering Where c is the number of cluster centers, n is the number of samples, and μ is the membership parameter.

[0075] The above is only a preferred specific implementation method of the present scheme, but the protection scope required by the present scheme is not limited thereto. Any technician familiar with the technical field can make equivalent substitutions or changes according to the technical scheme and inventive concept of the present application within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present application.

Claims

1. A method for predicting the total power of regional distributed photovoltaic power generation, characterized in that Use the following steps: S1 collects sample data of distributed photovoltaic power stations, where the sample data collection time range includes at least a specified time period, and the sample data includes photovoltaic power generation power history data, meteorological history data, solar irradiance history data and geographic data; S2 performs data preprocessing on the collected sample data, wherein the data preprocessing step includes a data cleaning step, a data denoising step and a data interception step; S3 uses an improved random forest algorithm that removes the effects of occlusion to perform prediction fitting correction on solar irradiance and obtain irradiance prediction data Where s is the cutting point according to the irradiance feature A, c1 is the data fitting constant of the first segment, c2 is the data fitting constant of the second segment, D1 is the data subset of the first segment, D2 is the data subset of the second segment, y i is the actual solar irradiance, x is the variable value, x i is the independent variable value of the data point; S4 makes the data into a training set and uses the SOM neural network to build a photovoltaic power generation total power prediction model for power prediction.

2. The method for predicting total regional distributed photovoltaic power generation according to claim 1, characterized in that: The specified time period is one year.

3. The method for predicting total regional distributed photovoltaic power generation according to claim 1, characterized in that: The historical meteorological data include temperature, relative humidity and air pressure.

4. The method for predicting the total power of regional distributed photovoltaic power generation according to claim 3 is characterized by: The data cleaning step includes a data defect elimination step and a data anomaly elimination step.

5. The method for predicting the total power of regional distributed photovoltaic power generation according to claim 3 is characterized by: In the data missing elimination step, the photovoltaic power generation historical data and the meteorological historical data are supplemented with missing data using Lagrange interpolation.

6. The method for predicting total regional distributed photovoltaic power generation according to claim 1, characterized in that: The data de-anomaly step uses a variable-length sliding window average method to determine whether the photovoltaic power generation power sample data within the range is an abnormal value. If At this time, the data f(i, t) is abnormal data, and the data is processed to eliminate the missing data. Among them, f(i, t) is the photovoltaic power generation power sample data at time t on the i-th day, represents the mean of n sample data before and after f(i,t), ξ is the pre-stored error threshold, and the sliding window size W k Dynamically adjust according to the number of detected anomalies, W k =(1+α) k n, where 45% ≤ α ≤ 55%, α is the increment percentage of the sliding window size, and k is the number of anomalies.

7. The method for predicting the total power of regional distributed photovoltaic power generation according to claim 1, characterized in that The data denoising step comprises the following steps: Perform n-layer wavelet decomposition on the data to obtain the wavelet coefficient ω j,k , where k is the wavelet variable and j is the wavelet transform frequency; Determine the rigrsure threshold λ k , where k min is the value corresponding to the minimum risk point, f(k) is k min The square root of Based on the wavelet coefficient ω j,k , perform wavelet transform and obtain the denoised sample data.

8. The method for predicting the total power of regional distributed photovoltaic power generation according to claim 3 is characterized in that The data interception step intercepts the sunrise time h r to sunset time s Sample data within: Sunrise time is h r , sunset time is h s , in a=sinδ*(sinΦ*cosβ-cosΦ*sinβ*cosγ p ) b=cosδ*(cosΦ*cosβ-sinΦ*sinβ*cosγ p ) c=cosδ*sinΦ*sinγ p D=(b 2 +c 2 ) 1 / 2 ɑ is the horizontal angle between sunlight and the solar panel, δ is the vertical angle between sunlight and the solar panel, γ is the vertical angle between the solar panel and the latitude, β is the horizontal angle between the solar panel and the ground, and Φ is the angle between sunlight and longitude.

9. The method for predicting the total power of regional distributed photovoltaic power generation according to claim 1, characterized in that The S3 step includes: S3.1 Selecting samples of photovoltaic irradiance historical data; S3.2 Analyze the sudden change period and local location of photovoltaic output to locate the location affected by shading; S3.3 Determine the changing pattern of photovoltaic output in similar historical periods; S3.4 performs clipping calculations on the locations and time periods affected by the occlusion; S3.5 Modify the subset of irradiance data used as input to the random forest model; S3.6 calculates the mean value of the decision tree to obtain the prediction result.

10. The method for predicting total regional distributed photovoltaic power generation according to claim 1, characterized in that: The photovoltaic power generation total power prediction model function is obtained by the following steps: the sample data is sorted into X=[x1, x2..., x N ]N×n, where N is the number of training samples, n=3, and x is the weight of the neuron x∈R 1×n , the competition parameter is W = [w1,w2,……,w k ] k×n , w is the neuron weight w∈R 1×n , the similarity d is calculated by iteratively calculating the Euclidean distance between samples through the SOM clustering neural network, Get the expression of optimal clustering Where c is the number of cluster centers, n is the number of samples, and μ is the membership parameter.

Citation Information

Cited By

  • Distributed photovoltaic power generation power prediction model training method, data processing method, device, equipment, medium and product

    CN121503565A

  • Photovoltaic power prediction method based on stationary satellite neural network model

    CN121724219A