A distributed photovoltaic cluster power generation power prediction method and system
By converting the distributed photovoltaic cluster network into a two-dimensional image and combining it with CNN and LSTM models, the problem of insufficient extraction of spatiotemporal features of data in existing technologies is solved, achieving higher prediction accuracy and scalability, and adapting to power generation prediction under different weather conditions.
Patent Information
- Application Number
- CN202410859907.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-06-28
AI Technical Summary
Existing methods for predicting the power generation of distributed photovoltaic clusters based on convolutional neural networks have failed to effectively extract the spatiotemporal correlation features of the data, and the input-output mapping of the prediction model varies under different weather conditions, lacking scalability and accuracy.
The distributed photovoltaic cluster network is converted into a two-dimensional image. The optimal grid is constructed using BeiDou positioning points. Combined with CNN and LSTM models, the power generation is predicted through deep learning at multiple time scales. Taking into account weather characteristics and historical data, the model is trained by weight aggregation and mean square error minimization.
It improves prediction accuracy, reduces the computational complexity of graph data structures, has a certain degree of scalability, supports short-term and long-term predictions, and adapts to power generation anomalies under different weather conditions.
Smart Images

Figure CN118711037B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power information and communication technology, and more specifically, to a method and system for predicting the power generation of a distributed photovoltaic cluster based on BeiDou positioning two-dimensional image conversion. Background Technology
[0002] Currently, with the large-scale integration of distributed photovoltaic (PV) systems, the output of distributed PV power clusters has an increasingly significant impact on the power grid. Individual distributed PV power generation is small in scale and highly random, while the entire distributed PV power generation cluster is large in scale and relatively stable. Therefore, accurately predicting the power generation of distributed PV clusters can further improve the stable operation capability of the power grid.
[0003] In recent years, a method for predicting the power generation of distributed photovoltaic (PV) clusters based on convolutional neural networks has been proposed. However, this method neglects the extraction of spatiotemporal correlation features in regional PV power prediction. As power grid companies accelerate their digital transformation, they are utilizing BeiDou positioning technology to automatically acquire the key technical parameter of latitude and longitude of PV metering devices within a region. Current common practice involves extending convolutional neural networks to graph-structured data for geographic location feature extraction, but this approach is incompatible with other metering device visualization equipment and lacks scalability.
[0004] Furthermore, the input-output mapping of the prediction model varies significantly under different weather conditions, requiring the acquisition of weather classification information and the establishment of prediction models based on different weights.
[0005] To address the aforementioned issues, there is an urgent need for a method and system for predicting the power generation of distributed photovoltaic clusters based on BeiDou positioning and two-dimensional image conversion. Summary of the Invention
[0006] To address the shortcomings of existing technologies, this invention provides a method and system for predicting the power generation of distributed photovoltaic clusters. This method not only effectively improves prediction accuracy but also better solves the problem of high computational complexity in graph data structures. Furthermore, it has certain scalability for future energy storage scenarios.
[0007] The present invention adopts the following technical solution.
[0008] In a first aspect, the present invention relates to a method for predicting the power generation of a distributed photovoltaic cluster. The method includes the following steps: converting the distributed photovoltaic cluster network into a two-dimensional image, wherein each distributed photovoltaic power generation point corresponds to one pixel; inputting the weather characteristics at the time of prediction, historical power generation images, and historical weather characteristics into a CNN network to realize the prediction of the power generation of the distributed photovoltaic cluster.
[0009] Preferably, converting the distributed photovoltaic cluster network into a two-dimensional image further includes: using a metering device to obtain the BeiDou positioning points of the distributed photovoltaic system, and constructing an optimal grid for the two-dimensional map based on the BeiDou positioning points.
[0010] Preferably, constructing the optimal grid for a two-dimensional map further includes: determining the optimal grid size by maximizing the fill rate.
[0011] Preferably, converting the distributed photovoltaic cluster network into a two-dimensional image further includes: dividing the optimal grid into cells, mapping the distributed photovoltaic power generation nodes in the optimal grid to the corresponding cells; and determining the relative positions and cell positions of the distributed photovoltaic power generation points by sorting the horizontal and vertical coordinates of the coordinate axes.
[0012] Preferably, inputting the weather characteristics to be predicted, historical power generation images, and historical weather characteristics into the CNN network further includes: historical power generation images including short-term interval historical power generation image sequences, daily interval historical power generation image sequences, and weekly interval historical power generation image sequences; historical weather characteristics corresponding to the time settings of the historical power generation images.
[0013] Preferably, the historical power generation image sequences of short-term intervals, daily intervals, and weekly intervals are input into the LSTM model to obtain the LSTM output sequences of short-term intervals, daily intervals, and weekly intervals, respectively.
[0014] Preferably, the short-interval LSTM output sequence, the daily-interval LSTM output sequence, and the weekly-interval LSTM output sequence are input into the CNN model to obtain the short-interval CNN output sequence, the daily-interval CNN output sequence, and the weekly-interval CNN output sequence, respectively.
[0015] Preferably, the predicted power generation is obtained by weighting the CNN output sequences at short intervals, daily intervals, and weekly intervals.
[0016] Preferably, the LSTM and CNN models are trained using the minimization of mean squared error as the loss function.
[0017] A second aspect of the present invention relates to a distributed photovoltaic cluster power generation prediction system using the method of the first aspect of the present invention. The system includes a conversion module and a prediction module. The conversion module is used to convert the distributed photovoltaic cluster network into a two-dimensional image, wherein each distributed photovoltaic power generation point corresponds to one pixel. The prediction module is used to input the weather characteristics at the time of prediction, historical power generation images, and historical weather characteristics into a CNN network to realize the power generation prediction of the distributed photovoltaic cluster.
[0018] The beneficial effects of the present invention are that, compared with the prior art, the distributed photovoltaic cluster power generation prediction method and system of the present invention can not only effectively improve the prediction accuracy, but also better solve the problem of high computational complexity of graph data structure, and at the same time have certain scalability for future energy storage scenarios.
[0019] The beneficial effects of the present invention also include:
[0020] 1. A two-dimensional image-based organization method is proposed, which can largely maintain the topological relationship, has the scalability of metrological visualization devices, and does not increase the computational pressure of non-Euclidean data structures.
[0021] 2. The method enables multi-step forecasting across multiple time scales, supporting both short-term and long-term predictions. Furthermore, considering external factors such as weather, this method can be extended to include factors like power generation anomalies and overcapacity issues. Attached Figure Description
[0022] Figure 1 This is a schematic diagram of the two-dimensional image conversion process in the distributed photovoltaic cluster power generation prediction method of the present invention;
[0023] Figure 2 This is a schematic diagram of the model input in the distributed photovoltaic cluster power generation prediction method of the present invention;
[0024] Figure 3 This is a schematic diagram of the model output in the distributed photovoltaic cluster power generation prediction method of the present invention;
[0025] Figure 4 This is a schematic diagram of the prediction results of the distributed photovoltaic cluster power generation prediction method of the present invention. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of this invention. The embodiments described in this invention are merely some embodiments of this invention, and not all embodiments. Based on the spirit of this invention, all other embodiments not described in this invention obtained by those skilled in the art based on the embodiments described in this invention without creative effort should fall within the protection scope of this invention.
[0027] The first aspect of the present invention relates to a method for predicting the power generation of a distributed photovoltaic cluster, characterized in that the method includes the following steps.
[0028] Step 100: Convert the distributed photovoltaic cluster network into a two-dimensional image, where each distributed photovoltaic power generation point corresponds to one pixel.
[0029] Figure 1 This is a schematic diagram illustrating the two-dimensional image conversion process in a distributed photovoltaic cluster power generation prediction method according to the present invention. Figure 1 First, the method is based on the visual management of distributed photovoltaic metering devices, which completes the transformation of the network topology into a compact two-dimensional image, where the distributed photovoltaic installation points correspond to pixels, thus largely maintaining their topological relationships.
[0030] The distributed photovoltaic (PV) cluster network is converted into a two-dimensional image, where each distributed PV power generation point corresponds to one pixel. The transformation process preserves the topological relationships between PV power generation points to improve prediction accuracy; the image size is minimized to reduce the computational burden of model training.
[0031] Preferably, converting the distributed photovoltaic cluster network into a two-dimensional image further includes: using a metering device to obtain the BeiDou positioning points of the distributed photovoltaic system, and constructing an optimal grid for a two-dimensional map based on the BeiDou positioning points.
[0032] In this process, distributed photovoltaic power generation nodes are represented by BeiDou positioning points from metering devices, and then an optimal grid for a two-dimensional map is constructed. The optimal grid size is determined by maximizing the fill rate, which is determined by the number of distributed photovoltaic power generation nodes, thus achieving a local minimum image size.
[0033] In this invention, the iterative splitting process is as follows:
[0034] Step 10: Initialize the partition set as S = {P};
[0035] Step 20: Iterate from 1 to k;
[0036] Step 30: Assume p is a distributed photovoltaic node, and the center point of p in the X direction is pX. Let p.lon be the node longitude, and pX.lon be the center longitude of all nodes in the X direction. Then the iterative splitting operation continues as follows: P1 = {p | p.lon < px.lon, p. ∈ P}, P2 = {p | p.lon > px.lon, p. ∈ P};
[0037] On the other hand, let p.lat be the node dimension, py1.lat be the center dimension of node P1 in the y-direction, and py2.lat be the center dimension of node P2 in the y-direction. Then the iterative splitting process continues as follows:
[0038] Pa={p|p.lat<py1.lat, p.∈P1};
[0039] Pb={p|p.lat>py1.lat, p.∈P1};
[0040] Pc={p|p.lat<py2.lat, p.∈P2};
[0041] Pd={p|p.lat>py2.lat, p.∈P2}.
[0042] Step 40: Insert Pa, Pb, Pc, and Pd into S;
[0043] Step 50: Output S after the iteration is complete.
[0044] The iterative splitting results are represented by a tree structure, with each node splitting into 4 child nodes. Each node in the tree corresponds to a square. If node p has child nodes, their corresponding squares are in 4 quadrants.
[0045] Preferably, constructing the optimal grid for the two-dimensional map further includes: determining the optimal grid size by maximizing the fill rate. The optimal grid size is determined by maximizing the fill rate, which is determined by the number of distributed photovoltaic power generation nodes, so that the image size reaches a local minimum.
[0046] To find the optimal grid size, the method assumes the number of distributed photovoltaic (PV) nodes is r, the number of iterations is k, and the grid size is grid_size. The maximum grid fill ratio is then calculated as follows:
[0047] ratio = r / (grid_size) 2 *4 k )
[0048] The grid_size that maximizes the fill rate is the optimal grid size.
[0049] Preferably, converting the distributed photovoltaic cluster network into a two-dimensional image further includes: dividing the optimal grid into cells, mapping the distributed photovoltaic power generation nodes in the optimal grid to the corresponding cells; and determining the relative positions and cell positions of the distributed photovoltaic power generation points by sorting the horizontal and vertical coordinates of the coordinate axes.
[0050] Specifically, if no cell does not match a distributed photovoltaic power generation point, the attribute value for power generation is entered as zero. The process of reconstructing the two-dimensional image is as follows:
[0051] Step | Let the partition set be S, the optimal grid size be grid_size, and the matrix set be initialized to γ_set;
[0052] Step 2: For each subset Q in S, sort the x-coordinates of Q in the X direction;
[0053] Step 3: Initialize the matrix γ for the optimal grid size;
[0054] Step 4, for i = 0 to grid_size - 1, Qtmp = Q[i: (i+1) × grid_size], sorting the y-coordinates of Qtmp, γ[:][i] = Qtmp;
[0055] Step 5: Reassemble γ_set into a two-dimensional image X.
[0056] Two-dimensional image X can be used to predict the power generation of distributed photovoltaic clusters.
[0057] Step 200: Input the weather characteristics at the time of prediction, historical power generation images, and historical weather characteristics into the CNN network to realize the power generation prediction of the distributed photovoltaic cluster.
[0058] Figure 2 This is a schematic diagram of the model input in the distributed photovoltaic cluster power generation prediction method of the present invention. Figure 2 Based on the spatiotemporal patterns of distributed photovoltaic (PV) power generation, the method designs the network structure into four parts: short-term, daily, weekly, and weather information. The first three parts capture the spatiotemporal dependencies of sparse images, while the fourth part learns other information such as weather. An end-to-end deep learning structure is used to simulate distributed PV power generation, and a convolutional network is employed to learn spatial dependencies and handle spatial sparsity. The outputs of the four parts are aggregated using the weights learned during training, resulting in higher accuracy for the distributed PV cluster power generation prediction model of this invention.
[0059] The method proposes a spatiotemporal neural network based on deep learning, which can learn the spatiotemporal dependence and spatial sparsity of the power generation of distributed photovoltaic clusters.
[0060] The first step is that the model's structure consists of four parts: short-term, daily, weekly, and weather components.
[0061] Preferably, inputting the weather characteristics to be predicted, historical power generation images, and historical weather characteristics into the CNN network further includes: historical power generation images including short-term interval historical power generation image sequences, daily interval historical power generation image sequences, and weekly interval historical power generation image sequences; historical weather characteristics corresponding to the time settings of the historical power generation images.
[0062] The input features include:
[0063] Historical power generation graph {X0, X1, ..., Xn-1};
[0064] Weather characteristics {E0, E1, ..., En-1};
[0065] Short-term, daily, and weekly cycle intervals kr, kd, and kw;
[0066] Predict daily delay time ld and weekly delay time lw.
[0067] Then, the method performs feature aggregation. Specifically, feature aggregation includes:
[0068] Let Xr = [X t-kr , ...X t-2 X t-1 ],
[0069] Then Xd = [X (t-ld)±kd , ..., X (t-ld)±1 X (t-ld) ], Xw = [X (t-lw)±kw , ..., X (t-lw)±1 X (t-lw) ].
[0070] Where X = [Xr, Xd, Xw, Et]
[0071] Preferably, the historical power generation image sequences of short-term intervals, daily intervals, and weekly intervals are input into the LSTM model to obtain the LSTM output sequences of short-term intervals, daily intervals, and weekly intervals, respectively.
[0072] Figure 3 This is a schematic diagram of the model output in the distributed photovoltaic cluster power generation prediction method of the present invention. Figure 3 The short-term part receives the input image of the power generation of the distributed photovoltaic cluster, uses an LSTM network to extract the short-term temporal dependence, and a CNN network to extract the spatial dependence from the sparse image.
[0073] The LSTM model is a typical RNN model designed to solve the gradient vanishing and gradient exploding problems present in traditional RNN models.
[0074] Given an input sequence {Xt-kr, ..., Xt-2, Xt-1}, and an output {ht-kr, ..., ht-2, ht-1}, the LSTM output Mr1 is: Mr1 = W1 × h t-1 +b1. Where W1 and b1 are learnable parameters.
[0075] Preferably, the short-interval LSTM output sequence, the daily-interval LSTM output sequence, and the weekly-interval LSTM output sequence are input into the CNN model to obtain the short-interval CNN output sequence, the daily-interval CNN output sequence, and the weekly-interval CNN output sequence, respectively.
[0076] The input to the CNN is Mr1, and the output is Y. The final output Mr of the shortest-running part is:
[0077] Mr2 = W2 × Y + b2
[0078] Mr = W3 × ReLu(Mr2) + b3
[0079] Among them, W2, b2, W3, and b3 are learnable parameters.
[0080] CNN and LSTM methods are common knowledge in this field and will not be elaborated upon here. The daily input image received is a picture of the distributed photovoltaic cluster's power generation over a given day, and CNN is used to extract spatial features of road traffic flow.
[0081] In one embodiment, the daily and weekly prediction structures are similar to the short-term part, except that the LSTM part is reduced, and convolution operations are directly used to obtain the output Y. Md is calculated as the final output of the daily part. The weekly part receives the input image of the distributed photovoltaic cluster's power generation within one week, and the network structure is similar to the daily part. Similarly, the output of the weekly part can be obtained as Mw.
[0082] Preferably, the predicted power generation is obtained by weighting the CNN output sequences at short intervals, daily intervals, and weekly intervals.
[0083] The weather information section receives weather conditions as input and uses two stacked fully connected layers to extract features. The first layer is used to extract hidden features of date information, and the second layer is used to expand the size of the output vector of the first layer.
[0084] To achieve high-accuracy power prediction, weather information, such as sunny or cloudy, is integrated into the model as an external component. An eight-bit One-Xot encoding is used to encode the date information, where the first seven tags represent the date information and the last tag represents the sunny (1) or cloudy (0) information.
[0085] Two stacked fully connected layers, FC1 and FC2, are used. FC1 is used to extract hidden features of date information, while FC2 is only used to expand the size of the output vector of FC1 so that it is the same size as Mr. Finally, the output vector is further reconstructed.
[0086] By assigning a different weight to each output, the outputs of the first three parts are combined together, and then the combined result is further combined with the output of the fourth part and passed through an activation function to obtain the predicted power generation.
[0087] In the first-level aggregation, a parameter matrix-based aggregation method is used to merge the outputs of the short-term, daily, and weekly portions to obtain a weighted sum:
[0088]
[0089] Among them, Wr, Wd, and Ww are learnable weight parameters.
[0090] In the second aggregation layer, the external weather information output XeX is combined with the first aggregation output Xst. A tanX function is applied to the output to ensure that the output value is between -1 and 1. It is the predicted cluster power output at time t.
[0091]
[0092] Furthermore, the training and evaluation process for the network is as follows:
[0093] Step 1.1: Obtain visualization image data for three short-term, daily, and weekly input sequences from a large amount of historical distributed photovoltaic power generation data.
[0094] Step 2.2: Input the image output from the previous step into the model of this scheme, and train the model using forward and backward propagation methods to minimize the mean squared error. That is, use the minimization of the mean squared error as the loss function to train the LSTM model and the CNN model.
[0095] The specific model training process is as follows:
[0096] Step 1: Randomly initialize the model parameters to Θ, and set the total loss to 0;
[0097] Step 2: Perform forward propagation to calculate Xpre;
[0098] Step 3: Calculate the mean square error L(Θ) = ||XX pre || 2 Loss = Loss + L(Θ);
[0099] Step 4, perform back propagation to calculate ΔΘ, ΔΘ′, Θ=Θ+ΔΘ, Θ′=Θ′+ΔΘ′;
[0100] Step 5: Continue until the loss is less than α, then output the trained model.
[0101] Step 3.3: When the total mean square error is significantly small, the model training is complete.
[0102] Step 4.4: To evaluate the trained model, the mean absolute error (MAE) and root mean square error (RMSE) are used to assess its accuracy.
[0103] Figure 4 This is a schematic diagram illustrating the prediction results of a distributed photovoltaic cluster power generation prediction method according to the present invention. Figure 4 The prediction results are accurate.
[0104] A second aspect of the present invention relates to a distributed photovoltaic cluster power generation prediction system using the method of the first aspect of the present invention. The system includes a conversion module and a prediction module. The conversion module is used to convert the distributed photovoltaic cluster network into a two-dimensional image, wherein each distributed photovoltaic power generation point corresponds to one pixel. The prediction module is used to input the weather characteristics at the time of prediction, historical power generation images, and historical weather characteristics into a CNN network to realize the power generation prediction of the distributed photovoltaic cluster.
[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the protection scope of the claims of the present invention.
Claims
1. A method for predicting the power generation of a distributed photovoltaic cluster, characterized in that, The method includes the following steps: The distributed photovoltaic cluster network is converted into a two-dimensional image, where each distributed photovoltaic power generation point corresponds to one pixel; The weather characteristics at the time of prediction, historical power generation images, and historical weather characteristics are input into the CNN network to achieve the prediction of the power generation of the distributed photovoltaic cluster. The process of converting the distributed photovoltaic cluster network into a two-dimensional image further includes: obtaining the BeiDou positioning points of the distributed photovoltaic system using a metering device, and constructing an optimal grid for the two-dimensional map based on the BeiDou positioning points; the construction of the optimal grid for the two-dimensional map further includes: determining the optimal grid size by maximizing the fill rate; The process of converting the distributed photovoltaic cluster network into a two-dimensional image further includes: dividing the optimal grid into cells, mapping the distributed photovoltaic power generation nodes in the optimal grid to the corresponding cells; determining the relative positions and cell positions of the distributed photovoltaic power generation points by sorting the coordinate axes using horizontal and vertical coordinates; the process of inputting the weather characteristics to be predicted, historical power generation images, and historical weather characteristics into the CNN network further includes: the historical power generation images include short-term interval historical power generation image sequences, daily interval historical power generation image sequences, and weekly interval historical power generation image sequences; the historical weather characteristics correspond to the time settings of the historical power generation images; Historical power generation image sequences at short-term, daily, and weekly intervals are input into an LSTM model to obtain short-term, daily, and weekly LSTM output sequences, respectively. These output sequences are then input into a CNN model to obtain short-term, daily, and weekly CNN output sequences, respectively. Finally, these CNN output sequences are aggregated using weights to obtain the predicted power generation.
2. The method for predicting the power generation of a distributed photovoltaic cluster according to claim 1, characterized in that: The LSTM model and the CNN model are trained using the minimization of mean squared error as the loss function.
3. A distributed photovoltaic cluster power generation prediction system utilizing the method described in any one of claims 1-2, characterized in that: The system includes a conversion module and a prediction module; wherein... The conversion module is used to convert the distributed photovoltaic cluster network into a two-dimensional image, wherein each distributed photovoltaic power generation point corresponds to one pixel; The prediction module is used to input the weather characteristics at the time of prediction, historical power generation images, and historical weather characteristics into the CNN network to realize the power generation prediction of the distributed photovoltaic cluster.
Citation Information
Patent Citations
Regional distributed photovoltaic short-term power prediction method
CN116454870A
Systems and methods for selecting global climate simulation models for training neural network climate forecasting models
US20200356839A1
