Ultra-short-term photovoltaic power prediction method and system based on multilevel cloud picture characteristics and width learning
By extracting multi-level cloud image features and combining with width learning, a photovoltaic power prediction model and a climbing identification model are constructed, which solves the problem of insufficient utilization of cloud image information in the existing technology and significantly improves the accuracy of ultra-short-term photovoltaic power prediction, especially It is the predictive performance in ramp events that supports the safe and stable operation of the power grid.
Patent Information
- Application Number
- CN202410782946.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-11
AI Technical Summary
Existing research fails to make full use of the shallow details of the cloud map in ultra-short-term photovoltaic power prediction, resulting in low prediction performance. Especially when photovoltaic power ramping events change rapidly and are uncertain, it is difficult to accurately predict, affecting the security of the power grid. Stable operation.
Using a method based on multi-level cloud image features and width learning, deep semantic features and shallow detail features are extracted through preprocessing of the ground cloud image, and a photovoltaic power prediction model and a climbing identification model are constructed based on historical power data. The climbing identification results are used for Incremental updates to improve forecast accuracy.
It significantly improves the accuracy of ultra-short-term photovoltaic power prediction, especially the prediction performance in ramp events, provides a more reliable basis for grid optimization and dispatch, and enhances the security and stability of the grid.
Smart Images

Figure CN118761492A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of photovoltaic power generation, and in particular to an ultra-short-term photovoltaic power prediction method and system based on multi-level cloud image feature and width learning. Background Art
[0002] Accurate ultra-short-term photovoltaic power forecasting results can provide a reliable basis for grid optimization and dispatching, which is of great significance for ensuring the safety and stability of the grid. The formation and disappearance of clouds is the main reason for the fluctuation of photovoltaic power in the ultra-short term, so the application of cloud information is very important for improving the ultra-short-term prediction performance. Existing studies usually use the powerful feature learning ability of convolutional neural networks to extract deep semantic features of ground-based cloud images, thereby improving the performance of ultra-short-term photovoltaic power prediction.
[0003] As mentioned above, existing research focuses on the temporal and deep semantic features of cloud images, resulting in insufficient utilization of cloud image information. Studies have shown that shallow detail information of cloud images is also of great significance for photovoltaic power prediction tasks. In addition, photovoltaic power ramp events are difficult to predict and have low prediction performance due to their rapid changes and uncertainty, posing a serious threat to the safe and stable operation of the power grid. However, few studies have been conducted on this issue. Summary of the invention
[0005] Purpose of the invention: The purpose of the present invention is to provide an ultra-short-term photovoltaic power prediction method and system based on multi-level cloud map features and width learning, which can improve the accuracy of ultra-short-term photovoltaic power prediction.
[0006] Technical solution: In order to achieve the above-mentioned invention purpose, the ultra-short-term photovoltaic power prediction method based on multi-level cloud image features and width learning proposed in the present invention includes the following steps:
[0007] (1) Preprocessing of ground-based cloud images, including distortion correction and cloud image enhancement;
[0008] (2) Based on the preprocessed ground cloud map, multi-level features are extracted as image feature quantities of the power prediction model, wherein the multi-level features include deep semantic features and shallow detail features, wherein the shallow detail features include edge features and texture features, wherein the deep semantic features are extracted by a convolutional neural network composed of a stack of convolutional layers and pooling layers; the edge features are obtained by using a directional gradient histogram; the texture features are obtained by calculating the frequency of occurrence of pixel pairs in different directions and at different intervals in the image, generating a grayscale co-occurrence matrix, and then reflecting the spatial correlation and variation law of the image grayscale, specifically including contrast reflecting the overall situation of the grayscale difference in the image, energy reflecting the uniformity of the image grayscale distribution and the coarseness of the texture, entropy reflecting the complexity of the image texture or the uncertainty of information, and correlation reflecting the local grayscale relationship of the image texture;
[0009] (3) Based on the preprocessed ground-based cloud image, the cloud coverage rate and cloud change rate are calculated as image features of the slope recognition model;
[0010] (4) Combined with historical power data, a PV power prediction model based on width learning and a ramp recognition model based on width learning are constructed;
[0011] (5) The slope recognition model is used to give the slope recognition result. Based on the slope recognition result, the historical slope data is used to incrementally update the power prediction model, thereby obtaining the ultra-short-term power prediction result.
[0012] Furthermore, the step (1) comprises the following steps:
[0013] (1.1) Use the dual longitude model to correct the distortion of the ground-based cloud image and convert the barrel-distorted original image into an accurate plane image;
[0014] (1.2) Enhance the image based on the adaptive histogram equalization algorithm, by calculating the local histogram of the image and redistributing the brightness to change the image contrast;
[0015] (1.3) Image denoising and edge detail enhancement are achieved based on the fast guided filtering algorithm. The grayscale image is used as the guide image so that the enhanced image has a gradient characteristic similar to that of the guide image near the edge of the image and the noise is filtered out.
[0016] Furthermore, in step (2), the specific method for extracting edge features is as follows:
[0017] First, calculate the gradient magnitude of each pixel And the gradient direction α(x,y):
[0018] G x (x,y)=H(x+1,y)-H(x-1,y)
[0019] G y (x,y)=H(x,y+1)-H(x,y-1)
[0020]
[0021] Among them, H(x,y) is the pixel value of the pixel point (x,y), G x (x,y) is the gradient component on the x-axis, G y (x,y) is the gradient component on the y-axis;
[0022] Then, the image is mapped to a range of 180° according to the gradient direction, and the gradient amplitude of the pixel is projected as the weight to obtain the gradient direction histogram of each cell unit. The cell units are connected in series to form larger blocks, and the directional gradient histogram descriptors of all blocks are combined to obtain the final directional gradient histogram feature vector, that is, the edge feature.
[0023] Furthermore, in step (2), the contrast calculation formula is as follows:
[0024]
[0025] Where L is the grayscale level of the image pixel, i and (x, y) are the grayscale value and coordinates of the reference pixel, j and (x+dx, y+dy) are the grayscale value and coordinates of the adjacent pixel, the distance and direction between the reference pixel and the adjacent pixel are d and θ, and P(i, j, d, θ) represents the frequency of occurrence of pixel pairs with grayscale levels i and j in the direction of θ and separated by a distance of d;
[0026] The energy calculation formula is as follows:
[0027]
[0028] The entropy calculation formula is as follows:
[0029]
[0030] The correlation calculation formula is as follows:
[0031]
[0032] Where: μ x , σ x Represents the pixel probability mean and standard deviation in the horizontal direction; μ y , σ y Represents the mean and standard deviation of pixel probability in the vertical direction.
[0033] Furthermore, the step (3) comprises the following steps:
[0034] (3.1) The original color image is converted into a gray image. The gray image is binarized based on the red-to-blue channel ratio method considering brightness attenuation. The sky and clouds in the image are segmented, and the cloud coverage CC is calculated:
[0035]
[0036] Where: m×n represents the pixel size of the image, Bin(i,j) is the gray value of the pixel (i,j) after binarization;
[0037] (3.2) Based on the cloud coverage rate, the cloud change rate R is calculated CC :
[0038]
[0039] Where ΔT is the time interval.
[0040] Furthermore, the step (4) comprises the following steps:
[0041] (4.1) Taking deep semantic features, shallow detail features and historical PV power as input, a PV power prediction model based on a width learning system is constructed;
[0042] (4.2) The historical ramp index is calculated based on the historical photovoltaic power data, and the photovoltaic ramp identification model based on the width learning system is constructed by combining the cloud coverage rate and the cloud change rate.
[0043] Furthermore, the step (5) comprises the following steps:
[0044] (5.1) Based on the historical photovoltaic power and foundation cloud map data, the ramp recognition model constructed in step (4) is used to obtain the power ramp recognition result at the prediction time, which is an up-ramp event, a down-ramp event or a non-ramp event;
[0045] (5.2) When the ramp identification result is a non-ramp event, the power prediction model in step (4) is used to perform ultra-short-term prediction of photovoltaic power and output the corresponding prediction result; if the identification result is an up-climbing event or a down-climbing event, the power prediction model is incrementally updated using the historical data related to the corresponding ramp event, and the prediction result is obtained based on the updated power prediction model.
[0046] The present invention also provides an ultra-short-term photovoltaic power prediction system based on multi-level cloud image features and width learning, comprising:
[0047] Ground-based cloud image preprocessing module: preprocessing of ground-based cloud images, including distortion correction and cloud image enhancement;
[0048] Multi-level feature extraction module: Based on the pre-processed ground cloud map, multi-level features are extracted as image feature quantities of the power prediction model. The multi-level features include deep semantic features and shallow detail features. The shallow detail features include edge features and texture features. The deep semantic features are extracted by a convolutional neural network composed of a stack of convolutional layers and pooling layers; the edge features are obtained using a directional gradient histogram; the texture features are obtained by calculating the frequency of occurrence of pixel pairs in different directions and different spacings in the image, generating a grayscale co-occurrence matrix to reflect the spatial correlation and change law of the image grayscale, specifically including the contrast that reflects the overall situation of the grayscale difference in the image, the energy that reflects the uniformity of the image grayscale distribution and the coarseness of the texture, the entropy that reflects the complexity of the image texture or the uncertainty of the information, and the correlation of the local grayscale relationship of the image texture;
[0049] Cloud information calculation module: Based on the pre-processed ground-based cloud image, the cloud coverage rate and cloud change rate are calculated as image feature quantities of the slope recognition model;
[0050] Model building module: Combine historical power data to build a photovoltaic power prediction model based on width learning and a ramp recognition model based on width learning;
[0051] Ultra-short-term power prediction module: The ramp recognition model is used to give the ramp recognition result. Based on the ramp recognition result, the historical ramp data is used to incrementally update the power prediction model, thereby obtaining the ultra-short-term power prediction result.
[0052] The present invention also provides a computer device, comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and when the programs are executed by the processors, the steps of the ultra-short-term photovoltaic power prediction method based on multi-level cloud map features and width learning as described above are implemented.
[0053] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the ultra-short-term photovoltaic power prediction method based on multi-level cloud map features and width learning as described above are implemented.
[0054] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages:
[0055] (1) Extracting deep semantic features and shallow detail features of ground-based cloud images, and making full use of cloud information to provide strong data support for building an accurate photovoltaic power prediction model;
[0056] (2) Construct a photovoltaic power prediction model and a ramp recognition model based on a width learning system to improve training efficiency, reduce training difficulty, and improve the accuracy of ultra-short-term photovoltaic power prediction;
[0057] (3) The ramp recognition model is combined with the power prediction model, and the incremental update method is used to improve the ramp power prediction performance, thereby achieving an improvement in the overall prediction performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 It is a schematic diagram of the ultra-short-term photovoltaic power prediction method of the present invention;
[0059] Figure 2 It is a schematic diagram of the cloud image distortion correction process of the present invention;
[0060] Figure 3 Schematic diagram of the adaptive histogram equalization algorithm of the present invention;
[0061] Figure 4 A schematic diagram of the fast guided filtering algorithm of the present invention;
[0062] Figure 5 It is a schematic diagram of the width learning system of the present invention;
[0063] Figure 6 It is a schematic diagram of the prediction process of the present invention. DETAILED DESCRIPTION
[0064] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0065] Reference Figure 1 The present invention proposes an ultra-short-term photovoltaic power prediction method based on multi-level cloud map features and width learning. According to the national standard GB / T 40607-2021 "Technical Requirements for Wind Power or Photovoltaic Power Prediction System on the Dispatching Side", the ultra-short-term prediction is a power prediction for the next 4 hours or less. The method comprises the following steps:
[0066] Step 1: Preprocess the ground-based cloud image, including distortion correction and cloud image enhancement;
[0067] Step 2: Based on the preprocessed ground cloud image, extract multi-level features (deep semantic features and shallow detail features) as image feature quantities for the power prediction model;
[0068] Step 3: Calculate the cloud coverage rate and cloud change rate as image feature quantities of the slope recognition model;
[0069] Step 4: Combine historical power data to build a photovoltaic power prediction model and ramp recognition model based on width learning;
[0070] Step 5: Based on the ramp identification results, the historical ramp data is used to incrementally update the power prediction model to obtain an ultra-short-term power prediction result.
[0071] Specifically, in the embodiment of the present invention, in step 1, data preprocessing is performed by the following method.
[0072] First, if Figure 2 As shown in the figure, the dual longitude model is used to correct the distortion of the ground-based cloud image. The corresponding pixel positions on the fisheye image are reversely deduced by the inverse mapping method. Then, the bilinear interpolation algorithm is used to calculate the pixel values at these corresponding points, so as to convert the barrel-distorted original image into an accurate plane image, thereby improving the accuracy and reliability of the cloud image data.
[0073] Secondly, due to the hardware limitations of the imaging system and imperfect processing methods, ground-based cloud images often suffer from image degradation such as blur, insufficient contrast and missing details, which in turn affects the accuracy of feature extraction. Therefore, the present invention aims to optimize the overall effect and local details of the cloud image through an adaptive histogram equalization algorithm and a fast guided filtering algorithm, thereby improving the availability of image information and providing strong data support for photovoltaic power prediction models and slope recognition models.
[0074] like Figure 3 As shown in the figure, the adaptive histogram equalization algorithm divides the image into multiple non-overlapping sub-regions, and performs histogram equalization on each sub-region independently to enhance the local contrast and clarity of the image, and then recombines the processed sub-regions into a complete image, which helps to better capture the contours, textures and other details of the cloud layer during feature extraction. Figure 4 As shown in the figure, the fast guided filtering algorithm first downsamples the guided image and the input image, then calculates the coefficients of the local linear model on the downsampled image, then upsamples these coefficients back to the original size and applies them to the original guided image to generate the output image, achieving denoising while retaining the edge details of the image, further improving the accuracy of feature extraction.
[0075] The present invention performs feature extraction in step 2, which specifically includes the following steps:
[0076] Deep semantic features: The deep semantic features of the ground cloud map are extracted through a convolutional neural network composed of stacked convolutional layers and pooling layers. The formula of the convolutional layer is expressed as follows:
[0077] h (l) =f (l) (w (l) *h (l-1) +b (l) )
[0078] Where: * represents the convolution operation, w(l) is the weight of the lth convolutional layer, b (l) is the bias of the lth convolutional layer, f (l) is the activation function of the lth convolutional layer, h (l) 、h (l-1) They are the outputs of the lth and l-1th convolutional layers respectively; the pooling layer is usually located after the convolutional layer and is used to downsample the feature map, reduce the spatial size of the data, reduce the computational complexity, and retain important feature information.
[0079] Shallow detail features include edge features and texture features. The present invention uses directional gradient histogram to describe the edge features of the ground cloud map. The specific method is as follows: First, calculate the gradient amplitude of each pixel point And the gradient direction α(x,y):
[0080] G x (x,y)=H(x+1,y)-H(x-1,y)
[0081] G y (x,y)=H(x,y+1)-H(x,y-1)
[0082]
[0083] Among them, H(x,y) is the pixel value of the pixel point (x,y), G x (x, y) is the gradient component on the x-axis (rightward is the positive direction, i.e. horizontal direction), G y (x, y) is the gradient component on the y-axis (upward is the positive direction, i.e. the vertical direction);
[0084] Then, the image is mapped to a range of 180° according to the gradient direction, and the gradient amplitude of the pixel is projected as the weight to obtain the gradient direction histogram of each cell unit. The cell units are connected in series to form larger blocks. The directional gradient histogram descriptors of all blocks are combined to obtain the final directional gradient histogram feature vector, that is, the edge feature.
[0085] By calculating the frequency of pixel pairs in different directions and at different intervals in the image, a gray-level co-occurrence matrix is generated to reflect the spatial correlation and variation of the image grayscale, i.e., texture features. Based on this matrix, feature quantities that can reflect information such as the spatial distribution of clouds and the complexity of clouds are obtained, including:
[0086] Contrast can reflect the overall grayscale difference in the image, that is, the depth of the grooves in the image texture. The formula is as follows:
[0087]
[0088] Wherein, L is the gray level of the image pixel, i and (x, y) are the gray value and coordinate of the reference pixel, j and (x+dx, y+dy) are the gray value and coordinate of the adjacent pixel, the distance and direction between the reference pixel and the adjacent pixel are d and θ, P(i, j, d, θ) represents the frequency of occurrence of the pixel pairs separated by a distance of d in the θ direction (bidirectional) with gray levels i and j, respectively. The P(i, j, d, θ) represents the gray level co-occurrence matrix separated by a distance of d in the θ direction (bidirectional), and the present invention calculates the contrast, energy value, entropy value, and correlation based on the gray level co-occurrence matrix as the texture feature quantity.
[0089] Energy reflects the uniformity of the grayscale distribution of the image and the coarseness of the texture. The formula is as follows:
[0090]
[0091] Entropy represents the complexity of image texture or the uncertainty of information. The formula is as follows:
[0092]
[0093] Correlation measures the linear relationship between pixel values in an image and reflects the local grayscale correlation of image texture. The formula is as follows:
[0094]
[0095]
[0096] Where: μ x , σ x Represents the pixel probability mean and standard deviation in the horizontal direction; μ y , σ y Represents the mean and standard deviation of pixel probability in the vertical direction.
[0097] The present invention calculates cloud information in step 3, which specifically includes the following steps:
[0098] The original color image is converted into a gray image, and the gray image is binarized based on the red-blue channel ratio method considering brightness attenuation to segment the sky and clouds in the image. The implementation process is as follows:
[0099] Determine the pixel coordinates (x0, y0) where the sun is located, and set the attenuation coefficient based on the distance of all pixels in the cloud map from the light (i.e. the center of the sun);
[0100] The target pixel is (i, j), R(i, j) and B(i, j) are the red channel value and blue channel value of the target pixel respectively, and then the binary image is calculated:
[0101]
[0102] Where: α is the attenuation coefficient at the maximum distance; d ij is the distance between the pixel point (i, j) and the light (i.e., the center of the sun); δ(i, j) is the attenuation coefficient corresponding to the pixel point (i, j); Bin(i, j) is the binary grayscale value of the pixel point (i, j); β is the initial red-blue channel ratio threshold;
[0103] Then the cloud coverage CC is calculated:
[0104]
[0105] Where: m×n represents the pixel size of the image, Bin(i,j) is the gray value of the pixel (i,j) after binarization;
[0106] Based on the cloud coverage rate, the cloud change rate R can be calculated CC :
[0107]
[0108] Where ΔT is the time interval.
[0109] The present invention constructs a model based on width learning in step 4, which specifically includes the following steps:
[0110] Taking deep semantic features, shallow detail features and historical photovoltaic power as input, a photovoltaic power prediction model based on a width learning system is constructed to predict photovoltaic output power at future moments; historical climbing indicators are calculated based on historical photovoltaic power data, and a photovoltaic climbing recognition model based on a width learning system is constructed in combination with cloud coverage and cloud change rate to identify photovoltaic climbing scenes at future moments. Photovoltaic climbing scenes can be divided into climbing events, downclimbing events and non-climbing events. Figure 5 As shown in the figure, the input of the feature node is the original data (historical photovoltaic power and image features), and the input of the enhancement node is the feature set of the feature node. The implementation process of the width learning system is as follows:
[0111] Input is X, use Z i represents the i-th group of feature nodes containing q neurons, then:
[0112]
[0113] Where: is a linear or nonlinear activation function; W ei and β ei are random weights and biases respectively. Concatenate n groups of feature nodes into Z n =[Z1,Z2,…,Z n], use H j represents the j-th group of enhanced nodes containing r neurons, then:
[0114] H j =ξ j (Z n W hj +β hj )j=1,2,…,m
[0115] Where: j is a nonlinear activation function; W hj and β hj are random weights and biases respectively. Concatenate m groups of enhanced nodes into H m =[H1,H2,…,H m ], let A=[Z n ∣H m ], and then the output of the width learning system can be obtained as:
[0116]
[0117] Where: W s is the weight from the hidden layer to the output layer.
[0118] The present invention performs climbing identification in step 5, which specifically includes the following steps:
[0119] like Figure 6 As shown, based on the historical photovoltaic power and foundation cloud map data, the climbing recognition model constructed in step 4 is used to obtain the power climbing recognition result at the prediction time; if the recognition result is a non-climbing event, the power prediction model in step 4 is used to perform ultra-short-term prediction of photovoltaic power, and the corresponding prediction result is output; if the recognition result is an up-climbing event or a down-climbing event, the power prediction model is incrementally updated using historical data related to the corresponding climbing event, and then the prediction result is obtained based on the updated power prediction model. In order to verify the performance of the method proposed in the present invention, the following experiments were performed in the embodiment. A public data set from Stanford University was used. The data set contains three years (2017-2019) of foundation cloud maps and photovoltaic power generation data. The foundation cloud map was collected by a 6-megapixel fisheye camera from 6 am to 8 pm. Based on the above method, ultra-short-term prediction of photovoltaic power in the area is performed. And the model performance is evaluated by quantitative error indicators. In this embodiment, two error analysis indicators are used: mean deviation error (MAE) and root mean square error (RMSE), which are defined as follows:
[0120]
[0121] Where N represents the total number of test samples, y i and They represent the predicted value and actual value of the i-th sample respectively.
[0122] First, the prediction performance of the method of the present invention at the climbing power is shown in Table 1. It can be seen that the method of the present invention significantly improves the prediction performance of photovoltaic climbing power by adding a climbing identification link. Secondly, in order to further evaluate the prediction performance of the prediction model, the present invention is compared with other ultra-short-term prediction methods, including convolution-long short-term memory network combination method (CNN+LSTM), three-dimensional convolutional neural network (3DCNN), multi-image convolution long short-term memory fusion network (MICNN-L), and spatiotemporal fusion deep network (STUnet) as shown in Table 2. According to Table 2, compared with the other four prediction methods, the method of the present invention has better prediction performance and obvious performance advantages, that is, it has more accurate prediction results.
[0123] Table 1 Climbing power prediction results
[0124]
[0125] Table 2 Performance comparison with other prediction models
[0126]
[0127] In summary, the present invention uses the deep semantic features and shallow detail features of the ground-based cloud map as the image feature quantities of the power prediction model, and makes full use of the cloud information in the cloud map to significantly improve the prediction performance. The present invention combines slope recognition with power prediction, and based on the slope recognition results, uses historical slope data to incrementally update the power prediction model, which significantly enhances the model's prediction ability for slope power, thereby improving the model's overall prediction performance. The experimental results show that the present invention can improve the accuracy of ultra-short-term photovoltaic power prediction, provide support for the safe and stable operation of the power grid, and has certain engineering practical value.
[0128] Based on the same technical concept as the method embodiment, the present invention also provides an ultra-short-term photovoltaic power prediction system based on multi-level cloud image features and width learning, including:
[0129] Ground-based cloud image preprocessing module: preprocessing of ground-based cloud images, including distortion correction and cloud image enhancement;
[0130] Multi-level feature extraction module: Based on the pre-processed ground cloud map, multi-level features are extracted as image feature quantities of the power prediction model. The multi-level features include deep semantic features and shallow detail features. The shallow detail features include edge features and texture features. The deep semantic features are extracted by a convolutional neural network composed of a stack of convolutional layers and pooling layers; the edge features are obtained using a directional gradient histogram; the texture features are obtained by calculating the frequency of occurrence of pixel pairs in different directions and different spacings in the image, generating a grayscale co-occurrence matrix to reflect the spatial correlation and change law of the image grayscale, specifically including the contrast that reflects the overall situation of the grayscale difference in the image, the energy that reflects the uniformity of the image grayscale distribution and the coarseness of the texture, the entropy that reflects the complexity of the image texture or the uncertainty of the information, and the correlation of the local grayscale relationship of the image texture;
[0131] Cloud information calculation module: Based on the pre-processed ground-based cloud image, the cloud coverage rate and cloud change rate are calculated as image feature quantities of the slope recognition model;
[0132] Model building module: Combine historical power data to build a photovoltaic power prediction model based on width learning and a ramp recognition model based on width learning;
[0133] Ultra-short-term power prediction module: The ramp recognition model is used to give the ramp recognition result. Based on the ramp recognition result, the historical ramp data is used to incrementally update the power prediction model, thereby obtaining the ultra-short-term power prediction result.
[0134] It should be understood that the ultra-short-term photovoltaic power prediction system based on multi-level cloud map features and width learning in the embodiment of the present invention can implement all the technical solutions in the above-mentioned method embodiment, and the functions of its various functional modules can be specifically implemented according to the methods in the above-mentioned method embodiments. The specific implementation process can refer to the relevant description in the above-mentioned embodiments, which will not be repeated here.
[0135] The present invention also provides a computer device, comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and when the programs are executed by the processors, the steps of the ultra-short-term photovoltaic power prediction method based on multi-level cloud map features and width learning as described above are implemented.
[0136] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the ultra-short-term photovoltaic power prediction method based on multi-level cloud map features and width learning as described above are implemented.
[0137] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices (systems), computer equipment or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0138] The present invention is described with reference to a flowchart of a method according to an embodiment of the present invention. It should be understood that each process in the flowchart and a combination of processes in the flowchart can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A device that specifies functions in a process or multiple processes.
[0139] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A function specified in a process or multiple processes.
[0140] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 The steps of a specified function in a process or multiple processes.
Claims
1. An ultra-short-term photovoltaic power prediction method based on multi-level cloud image features and width learning, characterized in that: The following steps are involved: (1) Preprocessing of ground-based cloud images, including distortion correction and cloud image enhancement; (2) Based on the preprocessed ground cloud map, multi-level features are extracted as image feature quantities of the power prediction model, wherein the multi-level features include deep semantic features and shallow detail features, wherein the shallow detail features include edge features and texture features, wherein the deep semantic features are extracted by a convolutional neural network composed of a stack of convolutional layers and pooling layers; the edge features are obtained by using a directional gradient histogram; the texture features are obtained by calculating the frequency of occurrence of pixel pairs in different directions and at different intervals in the image, generating a grayscale co-occurrence matrix, and then reflecting the spatial correlation and variation law of the image grayscale, specifically including contrast reflecting the overall situation of the grayscale difference in the image, energy reflecting the uniformity of the image grayscale distribution and the coarseness of the texture, entropy reflecting the complexity of the image texture or the uncertainty of information, and correlation reflecting the local grayscale relationship of the image texture; (3) Based on the preprocessed ground-based cloud image, the cloud coverage rate and cloud change rate are calculated as image features of the slope recognition model; (4) Combined with historical power data, a PV power prediction model based on width learning and a ramp recognition model based on width learning are constructed; (5) The slope recognition model is used to give the slope recognition result. Based on the slope recognition result, the historical slope data is used to incrementally update the power prediction model, thereby obtaining the ultra-short-term power prediction result.
2. The method according to claim 1, characterized in that The step (1) comprises the following steps: (1.1) Use the dual longitude model to correct the distortion of the ground-based cloud image and convert the barrel-distorted original image into an accurate plane image; (1.2) Enhance the image based on the adaptive histogram equalization algorithm, by calculating the local histogram of the image and redistributing the brightness to change the image contrast; (1.3) Image denoising and edge detail enhancement are achieved based on the fast guided filtering algorithm. The grayscale image is used as the guide image so that the enhanced image has a gradient characteristic similar to that of the guide image near the edge of the image and the noise is filtered out.
3. The method according to claim 1, characterized in that In step (2), the specific method for obtaining edge features is as follows: First, calculate the gradient magnitude ▽G(x,y) and gradient direction α(x,y) for each pixel: G x (x,y)=H(x+1,y)-H(x-1,y) G y (x,y)=H(x,y+1)-H(x,y-1) Among them, H(x,y) is the pixel value of the pixel point (x,y), G x (x, y) is the gradient component in the horizontal direction, G y (x,y) is the gradient component in the vertical direction; Then, the image is mapped to a range of 180° according to the gradient direction, and the gradient amplitude of the pixel is projected as the weight to obtain the gradient direction histogram of each cell unit. The cell units are connected in series to form larger blocks, and the directional gradient histogram descriptors of all blocks are combined to obtain the final directional gradient histogram feature vector, that is, the edge feature.
4. The method according to claim 1, characterized in that: In step (2), the contrast calculation formula is as follows: Where L is the grayscale level of the image pixel, i and (x, y) are the grayscale value and coordinates of the reference pixel, j and (x+dx, y+dy) are the grayscale value and coordinates of the adjacent pixel, the distance and direction between the reference pixel and the adjacent pixel are d and θ, and P(i, j, d, θ) represents the frequency of occurrence of pixel pairs with grayscale levels i and j in the direction of θ and separated by a distance of d; The energy calculation formula is as follows: The entropy calculation formula is as follows: The correlation calculation formula is as follows: Where: μ x , σ x Represents the pixel probability mean and standard deviation in the horizontal direction; μ y , σ y Represents the mean and standard deviation of pixel probability in the vertical direction.
5. The method according to claim 1, characterized in that The step (3) comprises the following steps: (3.1) The original color image is converted into a gray image. The gray image is binarized based on the red-to-blue channel ratio method considering brightness attenuation. The sky and clouds in the image are segmented, and the cloud coverage CC is calculated: Where: m×n represents the pixel size of the image, Bin(i,j) is the gray value of the pixel (i,j) after binarization; (3.2) Based on the cloud coverage rate, the cloud change rate R is calculated CC : Where ΔT is the time interval.
6. The method according to claim 1, characterized in that The step (4) comprises the following steps: (4.1) Taking deep semantic features, shallow detail features and historical PV power as input, a PV power prediction model based on a width learning system is constructed; (4.2) The historical ramp index is calculated based on the historical photovoltaic power data, and the photovoltaic ramp identification model based on the width learning system is constructed by combining the cloud coverage rate and the cloud change rate.
7. The method according to claim 6, characterized in that The implementation process of the width learning system is as follows: Input is X, use Z i represents the i-th group of feature nodes containing q neurons, then: Where: is a linear or nonlinear activation function; W ei and β ei are random weights and biases respectively, and n groups of feature nodes are concatenated into Z n =[Z1,Z2,…,Z n ], use H j represents the j-th group of enhanced nodes containing r neurons, then: H j =ξ j (Z n W hj +β hj )j=1,2,…,m Where: j is a nonlinear activation function; W hj and β hj are random weights and biases respectively, and m groups of enhanced nodes are concatenated into H m =[H1,H2,…,H m ], let A=[Z n ∣H m ], the output of the width learning system is: Where: W s is the weight from the hidden layer to the output layer.
8. The method according to claim 1, characterized in that The step (5) comprises the following steps: (5.1) Based on the historical photovoltaic power and foundation cloud map data, the ramp recognition model constructed in step (4) is used to obtain the power ramp recognition result at the prediction time, which is an up-ramp event, a down-ramp event or a non-ramp event; (5.2) When the ramp identification result is a non-ramp event, the power prediction model in step (4) is used to perform ultra-short-term prediction of photovoltaic power and output the corresponding prediction result; if the identification result is an up-climbing event or a down-climbing event, the power prediction model is incrementally updated using the historical data related to the corresponding ramp event, and the prediction result is obtained based on the updated power prediction model.
9. An ultra-short-term photovoltaic power prediction system based on multi-level cloud image features and width learning, characterized in that: include: Ground-based cloud image preprocessing module: preprocessing of ground-based cloud images, including distortion correction and cloud image enhancement; Multi-level feature extraction module: Based on the pre-processed ground cloud map, multi-level features are extracted as image feature quantities of the power prediction model. The multi-level features include deep semantic features and shallow detail features. The shallow detail features include edge features and texture features. The deep semantic features are extracted by a convolutional neural network composed of a stack of convolutional layers and pooling layers; the edge features are obtained using a directional gradient histogram; the texture features are obtained by calculating the frequency of occurrence of pixel pairs in different directions and different spacings in the image, generating a grayscale co-occurrence matrix to reflect the spatial correlation and change law of the image grayscale, specifically including the contrast that reflects the overall situation of the grayscale difference in the image, the energy that reflects the uniformity of the image grayscale distribution and the coarseness of the texture, the entropy that reflects the complexity of the image texture or the uncertainty of the information, and the correlation of the local grayscale relationship of the image texture; Cloud information calculation module: Based on the pre-processed ground-based cloud image, the cloud coverage rate and cloud change rate are calculated as image feature quantities of the slope recognition model; Model building module: Combine historical power data to build a photovoltaic power prediction model based on width learning and a ramp recognition model based on width learning; Ultra-short-term power prediction module: The ramp recognition model is used to give the ramp recognition result. Based on the ramp recognition result, the historical ramp data is used to incrementally update the power prediction model, thereby obtaining the ultra-short-term power prediction result.
10. A computer device, characterized in that: include: one or more processors; Memory; And one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and when the programs are executed by the processors, the steps of the ultra-short-term photovoltaic power prediction method based on multi-level cloud map features and width learning as described in any one of claims 1-8 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the ultra-short-term photovoltaic power prediction method based on multi-level cloud image features and width learning as described in any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Photovoltaic ultra-short-term power prediction method based on cloud picture multi-feature extraction
CN121618439A
Distributed photovoltaic short-term generation power prediction method, system, equipment and medium
CN121983971A
Distributed photovoltaic short-term power generation prediction method, system, device and medium
CN121983971B
