Distributed photovoltaic cluster power prediction method and device

By dividing the distributed photovoltaic power plant group into sub-regions and constructing a hierarchical graph convolutional neural network model, mining the spatiotemporal correlation, the problem of low prediction accuracy in the existing technology is solved, and high-precision distributed photovoltaic power prediction is achieved.

CN118713049APending Publication Date: 2024-09-27INFORMATION & COMM CO OF STATE GRID SHAANXI ELECTRIC POWER CO LTD +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410701464.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The existing technology has low prediction accuracy in distributed photovoltaic power prediction, ignores the correlation within and between sub-regions, and does not consider the hierarchical structure of distributed photovoltaics, resulting in poor prediction results.

Method used

By dividing the distributed photovoltaic power plant group to be predicted into sub-regions, a global graph and a sub-graph network are constructed, and the hierarchical graph convolutional neural network model is used to mine spatiotemporal correlations and generate high-precision power prediction results.

Benefits of technology

It improves the accuracy of distributed photovoltaic cluster power prediction, captures the spatio-temporal correlation within and between sub-regions, overcomes the problem that traditional methods are limited to first-order neighbor information, and reduces the difficulty of distribution network net load prediction and operation control. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713049A
    Figure CN118713049A
Patent Text Reader

Abstract

The invention provides a distributed photovoltaic cluster power prediction method and apparatus. The method comprises the steps of dividing a to-be-predicted distributed photovoltaic power station group into a target number of sub-regions; obtaining a global graph adjacency matrix and the target number of sub-graph adjacency matrixes according to a division result and historical power data of the to-be-predicted distributed photovoltaic power station group; and inputting the historical power data of the sub-regions, the sub-graph adjacency matrix and the global graph adjacency matrix into a pre-constructed hierarchical graph convolutional neural network prediction model to obtain a target prediction result. According to the method, on the basis of division of the distributed photovoltaic cluster, space-time relevance in the sub-regions and between the sub-regions is mined to obtain the sub-graph adjacency matrix and the global graph adjacency matrix, then distributed photovoltaic power prediction is realized through the constructed hierarchical graph convolutional neural network prediction model, and the prediction precision is high.
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 systems, and in particular to a distributed photovoltaic cluster power prediction method and device. Background Art

[0002] In recent years, distributed photovoltaic power generation has developed rapidly, accounting for an increasing proportion of urban distribution networks, which will inevitably increase the difficulty of net load prediction and distribution network operation control. In addition, distributed photovoltaic power stations have difficulty in obtaining information, such as some distributed photovoltaic power stations are not equipped with dedicated meteorological measurement instruments, resulting in a lack of meteorological data. A series of problems have caused difficulties in distributed photovoltaic power prediction, resulting in the traditional centralized photovoltaic power station prediction method not being applicable to distributed photovoltaic power generation.

[0003] Existing studies usually treat the set of power stations in each sub-region as a virtual power station, and then use the virtual power station as a graph node to build a graph network for prediction; or perform independent graph modeling prediction on the power station group in each sub-region after clustering. The former ignores the internal correlation of each cluster and loses a lot of effective information, while the latter ignores the potential correlation between each sub-region. The neglect of information will lead to low prediction accuracy. In addition, neither of them considers the hierarchical structure of distributed photovoltaics, which limits the deeper mining of the correlation between photovoltaic power stations.

[0004] In summary, the existing technology has the problem of low prediction accuracy. Summary of the invention

[0005] The present invention provides a distributed photovoltaic cluster power prediction method and device, which are used to solve the defect of low prediction accuracy in the prior art and achieve distributed photovoltaic cluster power prediction with higher prediction accuracy.

[0006] The present invention provides a distributed photovoltaic cluster power prediction method, comprising: Divide the distributed photovoltaic power station group to be predicted into a target number of sub-areas; A global graph adjacency matrix and a target number of subgraph adjacency matrices are obtained according to the division result and the historical power data of the distributed photovoltaic power station group to be predicted; wherein the subgraph adjacency matrix is ​​used to characterize the historical power correlation of the distributed photovoltaic power station in the sub-region, and the global graph adjacency matrix is ​​used to characterize the historical power correlation between the sub-regions; The historical power data of the sub-region, the subgraph adjacency matrix and the global graph adjacency matrix are input into a pre-constructed hierarchical graph convolutional neural network prediction model to obtain a target prediction result; wherein the hierarchical graph convolutional neural network prediction model includes a global graph network and the target number of subgraph networks, the subgraph network is used to extract the spatiotemporal features of the corresponding sub-region, and the global graph network is used to perform power prediction based on the spatiotemporal features of all subgraphs.

[0007] According to a distributed photovoltaic cluster power prediction method provided by the present invention, the historical power data of the sub-region, the sub-graph adjacency matrix and the global graph adjacency matrix are input into a pre-built hierarchical graph convolutional neural network prediction model to obtain a target prediction result, specifically including: Inputting the historical power matrix of the current sub-region and the sub-graph adjacency matrix into a pre-constructed sub-graph network to obtain the target spatiotemporal features, and then obtaining the target spatiotemporal features of all the sub-regions; wherein the sub-graph network is constructed based on a deep neural network, and the historical power matrix is ​​composed of the historical power sequence of the photovoltaic power station in the current sub-region; The target spatiotemporal features and the global graph adjacency matrix of all the sub-regions are input into a pre-constructed global graph network to obtain a target prediction result; wherein the global graph network is constructed based on a deep neural network.

[0008] According to a distributed photovoltaic cluster power prediction method provided by the present invention, the global graph adjacency matrix and the target number of subgraph adjacency matrices are obtained according to the division result and the historical power data of the distributed photovoltaic power station group to be predicted, specifically including: The distributed photovoltaic power station in the sub-region is used as a node of the corresponding sub-graph, and the sub-region is used as a node of the global graph; the historical power correlation coefficient between the nodes is calculated according to the historical power data; For each of the subgraphs or the global graph, a threshold is calculated according to the historical power correlation coefficient, and a global graph adjacency matrix or a subgraph adjacency matrix is ​​obtained according to the historical power correlation coefficient and the threshold.

[0009] According to a distributed photovoltaic cluster power prediction method provided by the present invention, the subgraph network includes a first graph convolutional neural network, a second graph convolutional neural network and a fully connected layer; Among them, the first graph convolutional neural network and the second graph convolutional neural network are used to extract the spatiotemporal features of input data, and the fully connected layer is used to perform linear transformation on the output data of the graph convolutional neural network.

[0010] According to a distributed photovoltaic cluster power prediction method provided by the present invention, the global graph network includes a third graph convolutional neural network and a fourth graph convolutional neural network.

[0011] According to a distributed photovoltaic cluster power prediction method provided by the present invention, the subgraph network includes: in, is the input of the neural network; f FC It is a linear layer network, GCov represents the graph convolution operation, and the activation function is the Sigmoid function.

[0012] The present invention also provides a distributed photovoltaic cluster power prediction device, comprising: A division unit, used for dividing the distributed photovoltaic power station group to be predicted into a target number of sub-areas; A matrix unit, used for obtaining a global graph adjacency matrix and the target number of subgraph adjacency matrices according to the division result and the historical power data of the distributed photovoltaic power station group to be predicted; wherein the subgraph adjacency matrix is ​​used to characterize the historical power correlation of the distributed photovoltaic power station in the sub-region, and the global graph adjacency matrix is ​​used to characterize the historical power correlation between the sub-regions; A prediction unit is used to input the historical power data of the sub-region, the subgraph adjacency matrix and the global graph adjacency matrix into a pre-constructed hierarchical graph convolutional neural network prediction model to obtain a target prediction result; wherein the hierarchical graph convolutional neural network prediction model includes a global graph network and the target number of subgraph networks, the subgraph network is used to extract the spatiotemporal features of the corresponding sub-region, and the global graph network is used to perform power prediction based on the spatiotemporal features of all subgraphs.

[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned distributed photovoltaic cluster power prediction methods is implemented.

[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the distributed photovoltaic cluster power prediction method as described in any one of the above is implemented.

[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the distributed photovoltaic cluster power prediction method as described above is implemented.

[0016] The distributed photovoltaic cluster power prediction method and device provided by the present invention divide the distributed photovoltaic power station group to be predicted into a target number of sub-areas; obtain a global graph adjacency matrix and the target number of sub-graph adjacency matrices according to the division results and the historical power data of the distributed photovoltaic power station group to be predicted; wherein the sub-graph adjacency matrix is ​​used to characterize the historical power correlation of the distributed photovoltaic power stations in the sub-areas, and the global graph adjacency matrix is ​​used to characterize the historical power correlation between the sub-areas; the historical power data of the sub-areas, the sub-graph adjacency matrix and the global graph adjacency matrix are input into a pre-constructed hierarchical graph convolutional neural network prediction model to obtain a target prediction result; wherein the hierarchical graph convolutional neural network prediction model includes a global graph network and the target number of sub-graph networks, the sub-graph network is used to extract the spatiotemporal features of the corresponding sub-areas, and the global graph network is used to perform power prediction according to the spatiotemporal features of all sub-graphs. Based on the division of distributed photovoltaic clusters, the present invention mines the spatiotemporal correlations within and between sub-regions to obtain subgraph adjacency matrices and global graph adjacency matrices, and then realizes distributed photovoltaic power prediction through the constructed hierarchical graph convolutional neural network prediction model with high prediction accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 This is one of the flow charts of the distributed photovoltaic cluster power prediction method provided by the present invention.

[0019] Figure 2 This is the second flow chart of the distributed photovoltaic cluster power prediction method provided by the present invention.

[0020] Figure 3 It is a structural schematic diagram of a distributed photovoltaic cluster power prediction device provided by the present invention.

[0021] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention.

[0022] Figure 5 It is a schematic diagram of the hierarchical structure of the subgraph and the global graph proposed in the present invention. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0024] Combine the following Figure 1-Figure 2 and Figure 5 The distributed photovoltaic cluster power prediction method of the present invention is described as follows: Figure 1 As shown, the method includes: Step 110: Divide the distributed photovoltaic power station group to be predicted into a target number of sub-areas; It can be understood that due to their close locations, the output power of distributed photovoltaic power stations under the same geographical and climatic environment will show similar changes at the same time, and the historical power of each site will have a certain correlation with the future power of adjacent sites, that is, the spatiotemporal correlation; and when there is a lack of meteorological measurement or forecast data, considering the spatiotemporal correlation of distributed photovoltaics can effectively improve the accuracy of distributed photovoltaic power prediction.

[0025] It can be understood that the present invention is particularly suitable for high-precision distributed photovoltaic power prediction in the absence of meteorological measured or forecast data.

[0026] On this basis, in order to further explore the correlation between power stations, in the regional photovoltaic power generation power forecast, a large area is generally divided into several sub-areas according to the correlation of distributed photovoltaic output power.

[0027] In some embodiments, the distributed photovoltaic power station group is clustered using the K-means clustering algorithm, and the distributed photovoltaic power station group to be predicted is divided into K sub-areas. In the specific implementation process, the power station group S = {s 1 ,s 2 , ..., s N} clustering is performed to divide the power station group into K (1≤K≤N) sub-areas.

[0028] Step 120: obtaining a global graph adjacency matrix and the target number of subgraph adjacency matrices according to the division result and the historical power data of the distributed photovoltaic power station group to be predicted; wherein the subgraph adjacency matrix is ​​used to characterize the historical power correlation of the distributed photovoltaic power station in the sub-region, and the global graph adjacency matrix is ​​used to characterize the historical power correlation between the sub-regions; Based on the sub-region division, with the goal of constructing sub-graphs and global graphs, the temporal and spatial correlation information within and between classes is mined according to the historical power data of the distributed photovoltaic power station group to be predicted. In some embodiments, step 120 includes: The distributed photovoltaic power station in the sub-region is used as a node of the corresponding sub-graph, and the sub-region is used as a node of the global graph; the historical power correlation coefficient between the nodes is calculated according to the historical power data; For each of the subgraphs or the global graph, a threshold is calculated according to the historical power correlation coefficient, and a global graph adjacency matrix or a subgraph adjacency matrix is ​​obtained according to the historical power correlation coefficient and the threshold.

[0029] Specifically, each sub-region corresponds to a sub-graph, and the entire distributed photovoltaic power station group to be predicted corresponds to a global graph. For each sub-region, the distributed photovoltaic power station inside it serves as a node of the sub-graph corresponding to the sub-region; for the entire global graph, each sub-region serves as a node.

[0030] Based on the historical power features, the temporal and spatial correlation information within and between classes is mined, and the adjacency matrix formed by the historical power correlation of the nodes is constructed to characterize the temporal and spatial correlation between the nodes of the subgraph and the global graph, as shown in the following formula: In the formula, σ represents the threshold value, which is defined as the average value of the correlation coefficients of n nodes output within the sub-region / between each sub-region. For the sub-graph, the nodes are each distributed photovoltaic power station in the sub-region, and for the global graph, the nodes are each sub-region; corr ij Represents the correlation coefficient between nodes, taking the absolute value of the Pearson correlation coefficient; A ij is the value of the corresponding position of the adjacency matrix that represents the strength of the connection between nodes; ρ XY is the Pearson correlation coefficient of the output data of nodes X and Y; n , Y n It is the historical output data of different nodes; is the average of X and Y.

[0031] Step 130: Input the historical power data of the sub-region, the subgraph adjacency matrix and the global graph adjacency matrix into a pre-constructed hierarchical graph convolutional neural network prediction model to obtain a target prediction result; wherein the hierarchical graph convolutional neural network prediction model includes a global graph network and the target number of subgraph networks, the subgraph network is used to extract the spatiotemporal features of the corresponding sub-region, and the global graph network is used to perform power prediction based on the spatiotemporal features of all subgraphs.

[0032] It can be understood that the graph convolutional network (GCN) has great advantages in processing graph data and constructing spatiotemporal correlations between sites. The present invention adopts a graph convolutional network to construct a subgraph network and a global graph network. The target number of subgraph networks and a global network together constitute a hierarchical graph convolutional neural network prediction model.

[0033] It can be understood that the stratification described in the present invention refers to the hierarchical structure of a distributed photovoltaic system, which includes not only nodes composed of distributed photovoltaic power stations, but also a macro level, whose nodes are composed of photovoltaic power station areas with high output power correlation. In addition, the correlation of different hierarchical structures of the distributed photovoltaic system is also considered to improve the power prediction accuracy.

[0034] The present invention utilizes the hierarchical structure of regional distributed photovoltaic power data to improve regional power prediction, while taking into account the correlation between intra-class and inter-class outputs, capturing the spatiotemporal correlation between photovoltaic power stations at a deeper level, overcoming the defect that the GCN prediction method is limited to the first-order neighbor information and cannot capture the hierarchical information in the graph, which is conducive to improving the prediction accuracy.

[0035] Therefore, when there is a lack of meteorological measured or forecast data, the deep temporal and spatial correlation of distributed photovoltaics should be considered to effectively improve the prediction accuracy of distributed photovoltaic power, which is conducive to reducing the difficulty of distribution network net load prediction and distribution network operation control, and ensuring the safe and stable operation of active distribution networks.

[0036] In some embodiments, the inputting of the historical power data of the sub-region, the sub-graph adjacency matrix and the global graph adjacency matrix into a pre-built hierarchical graph convolutional neural network prediction model to obtain a target prediction result specifically includes: Step 131: inputting the historical power matrix of the current sub-region and the sub-graph adjacency matrix into a pre-constructed sub-graph network to obtain target spatiotemporal features, and then obtaining the target spatiotemporal features of all the sub-regions; wherein the sub-graph network is constructed based on a deep neural network, and the historical power matrix is ​​composed of the historical power sequence of the photovoltaic power station in the current sub-region; Specifically, the historical power data of the current sub-area constitutes a historical power matrix, which is a three-dimensional matrix with a shape of (B, N, M), where B is the number of samples of the historical power data of the power station after being divided by the sliding time window, N is the number of power stations in the sub-area, and M is the historical time step after being divided by the sliding time window.

[0037] Then, we first construct the subgraph network structure, which is based on the deep neural network. Further, we construct subgraphs based on the adjacency matrix of all subgraphs, and then construct subgraph networks based on the constructed subgraphs. We use the output spatiotemporal feature matrix of the subgraph network as the feature matrix of the global graph, and then construct a global graph based on the global graph feature matrix and the global graph adjacency matrix, and then construct a global graph network. The hierarchical structure diagram of the subgraph and the global graph is shown in the figure. Figure 5 As shown in Figure 2, the output of the global graph network is the predicted power of each sub-region.

[0038] Among them, the subgraph is constructed based on the historical power data of the photovoltaic power stations in the sub-region and the subgraph adjacency matrix, as shown in the following formula: G k S =(X k S ,A k S ) In the formula, G k S Represents K sub-graph sets G S The kth subgraph in X k S is the characteristic matrix composed of the historical power data of the PV power stations in the sub-region, A k S is the adjacency matrix of the kth subgraph.

[0039] Based on the historical power data of the sub-regions and the global graph adjacency matrix, a global graph is constructed as shown in the following formula: G U =(X U , A U ) Where, X U is the feature matrix composed of the spatiotemporal features output by the subgraph network, and serves as the input feature matrix of the global graph network. U is the global graph adjacency matrix, X U and A U According to the above formula, the global graph G is constructed U .

[0040] In some embodiments, the subgraph network includes a first graph convolutional neural network, a second graph convolutional neural network, and a fully connected layer; Among them, the first graph convolutional neural network and the second graph convolutional neural network are used to extract the spatiotemporal features of input data, and the fully connected layer is used to perform linear transformation on the output data of the graph convolutional neural network.

[0041] Specifically, the subgraph network is implemented by two superimposed graph convolutional neural network blocks (the first graph convolutional neural network and the second graph convolutional neural network) and a fully connected layer. The first graph convolutional neural network and the second graph convolutional neural network extract the spatiotemporal features of the input data through GCN, and the fully connected layer realizes the linear transformation of the output data of the GCN block.

[0042] The implementation of the first graph convolutional neural network and the second graph convolutional neural network can be specifically expressed as shown in the following formula: In the formula, is the degree-normalized adjacency matrix, is the node feature matrix with a given history length M and a feature number of 1, which is composed of the historical power data of all photovoltaic power stations in the sub-region. These two are the inputs of the sub-graph network; FC is a linear layer network, GCov represents the graph convolution operation, and for a given node output feature length O, the output matrix of the GCN block is The activation function selects the Sigmoid function to normalize the output matrix of the graph convolution layer.

[0043] Furthermore, based on the output of the fully connected layer to the GCN block Perform linear transformation and matrix transposition to obtain the spatiotemporal features of the subgraph output Output S ∈R 1×M , to achieve the unification of the spatiotemporal feature shapes of the subgraph output. The subgraph implementation can be expressed as shown below: Then, step 131 is repeated for each sub-graph to obtain the target spatiotemporal features of all sub-regions, which are input into the global graph network.

[0044] Step 132: Input the target spatiotemporal features and the global graph adjacency matrix of all the sub-regions into a pre-constructed global graph network to obtain a target prediction result; wherein the global graph network is constructed based on a deep neural network.

[0045] Specifically, the spatiotemporal characteristics of the subgraph output and the global adjacency matrix that characterizes the correlation of the global graph nodes are used as the input of the global graph network to predict the output power of the global graph network and realize regional distributed photovoltaic power prediction.

[0046] In the specific implementation process, first combine the spatiotemporal features Output of each sub-graph output S ∈R 1×M And use this as the input feature matrix of the global graph The specific implementation is shown in the following formula: After constructing the input feature matrix, a global graph network structure is constructed, and the global graph network is implemented by two superimposed GCN blocks, and the GCN block on the global graph has the same structure as the GCN block on the sub-graph. In some embodiments, the global graph network includes a third graph convolutional neural network and a fourth graph convolutional neural network.

[0047] Based on the above embodiment, the implementation of the third graph convolutional neural network and the fourth graph convolutional neural network can be specifically expressed as shown in the following formula: in, is the degree-normalized global adjacency matrix, is the input feature matrix with a given history length M and a feature number of 1, both of which are the input of the global graph network; f FC is a linear layer network, GCov represents the graph convolution operation, and for a given node output feature length O, the output matrix of the GCN block is The activation function selects the Sigmoid function to normalize the output matrix of the graph convolution layer.

[0048] Spatiotemporal features output as subgraphs and the adjacency matrix A that represents the global graph node correlation U As the input of the global graph network, the realization of the global graph can be expressed as follows: Output target prediction results of the global graph is the output of each sub-area at the end. Then, the power prediction values ​​of each sub-area are accumulated to obtain the final total output prediction result of the distributed photovoltaic cluster.

[0049] Furthermore, the hierarchical graph convolutional neural network prediction model constructed in the embodiment of the present invention can be expressed as: in, The predicted power for the global graph to predict the next k steps, P t-M+1 , ...P t is the actual value of the historical power data of the subgraph history M steps. k is the length of the future power generation curve to be predicted, and f is the proposed power prediction model based on HGCN.

[0050] The propagation of the graph convolutional layer is shown as follows: It should be pointed out that the present invention is applicable to ultra-short-term power prediction of regional distributed photovoltaic power stations in some embodiments. Generally, the power for the next 4 hours is predicted every 15 minutes. Therefore, the time step k is usually set to 16 steps, and the time step M of the historical power is 48 steps.

[0051] The distributed photovoltaic cluster power prediction method provided by the present invention is to divide the distributed photovoltaic power station group to be predicted into a target number of sub-regions; obtain a global graph adjacency matrix and a target number of sub-graph adjacency matrices according to the result of the division and the historical power data of the distributed photovoltaic power station group to be predicted; wherein the sub-graph adjacency matrix is ​​used to characterize the historical power correlation of the distributed photovoltaic power station in the sub-region, and the global graph adjacency matrix is ​​used to characterize the historical power correlation between the sub-regions; the historical power data of the sub-region, the sub-graph adjacency matrix and the global graph adjacency matrix are input into a pre-constructed hierarchical graph convolutional neural network prediction model to obtain a target prediction result; wherein the hierarchical graph convolutional neural network prediction model includes a global graph network and a target number of sub-graph networks, the sub-graph network is used to extract the spatiotemporal features of the corresponding sub-region, and the global graph network is used to perform power prediction according to the spatiotemporal features of all sub-graphs. On the basis of the division of the distributed photovoltaic cluster, the present invention mines the spatiotemporal correlation within and between sub-regions to obtain the sub-graph adjacency matrix and the global graph adjacency matrix, and then realizes the distributed photovoltaic power prediction through the constructed hierarchical graph convolutional neural network prediction model, with high prediction accuracy.

[0052] The distributed photovoltaic cluster power prediction device provided by the present invention is described below. The distributed photovoltaic cluster power prediction device described below and the distributed photovoltaic cluster power prediction method described above can be referred to each other. Figure 3 As shown, the device comprises: A division unit 310 is used to divide the distributed photovoltaic power station group to be predicted into a target number of sub-areas; A matrix unit 320 is used to obtain a global graph adjacency matrix and the target number of subgraph adjacency matrices according to the division result and the historical power data of the distributed photovoltaic power station group to be predicted; wherein the subgraph adjacency matrix is ​​used to characterize the historical power correlation of the distributed photovoltaic power station in the sub-region, and the global graph adjacency matrix is ​​used to characterize the historical power correlation between the sub-regions; The prediction unit 330 is used to input the historical power data of the sub-region, the sub-graph adjacency matrix and the global graph adjacency matrix into a pre-constructed hierarchical graph convolutional neural network prediction model to obtain a target prediction result; wherein the hierarchical graph convolutional neural network prediction model includes a global graph network and the target number of sub-graph networks, the sub-graph network is used to extract the spatiotemporal features of the corresponding sub-region, and the global graph network is used to perform power prediction based on the spatiotemporal features of all sub-graphs.

[0053] According to a distributed photovoltaic cluster power prediction device provided by the present invention, the historical power data of the sub-region, the sub-graph adjacency matrix and the global graph adjacency matrix are input into a pre-built hierarchical graph convolutional neural network prediction model to obtain a target prediction result, specifically including: Inputting the historical power matrix of the current sub-region and the sub-graph adjacency matrix into a pre-constructed sub-graph network to obtain the target spatiotemporal features, and then obtaining the target spatiotemporal features of all the sub-regions; wherein the sub-graph network is constructed based on a deep neural network, and the historical power matrix is ​​composed of the historical power sequence of the photovoltaic power station in the current sub-region; The target spatiotemporal features and the global graph adjacency matrix of all the sub-regions are input into a pre-constructed global graph network to obtain a target prediction result; wherein the global graph network is constructed based on a deep neural network.

[0054] According to a distributed photovoltaic cluster power prediction device provided by the present invention, the global graph adjacency matrix and the target number of subgraph adjacency matrices are obtained according to the division result and the historical power data of the distributed photovoltaic power station group to be predicted, specifically including: The distributed photovoltaic power station in the sub-region is used as a node of the corresponding sub-graph, and the sub-region is used as a node of the global graph; the historical power correlation coefficient between the nodes is calculated according to the historical power data; For each of the subgraphs or the global graph, a threshold is calculated according to the historical power correlation coefficient, and a global graph adjacency matrix or a subgraph adjacency matrix is ​​obtained according to the historical power correlation coefficient and the threshold.

[0055] According to a distributed photovoltaic cluster power prediction device provided by the present invention, the subgraph network includes a first graph convolutional neural network, a second graph convolutional neural network and a fully connected layer; Among them, the first graph convolutional neural network and the second graph convolutional neural network are used to extract the spatiotemporal features of input data, and the fully connected layer is used to perform linear transformation on the output data of the graph convolutional neural network.

[0056] According to a distributed photovoltaic cluster power prediction device provided by the present invention, the global graph network includes a third graph convolutional neural network and a fourth graph convolutional neural network.

[0057] According to a distributed photovoltaic cluster power prediction device provided by the present invention, the subgraph network includes: in, is the input of the neural network; f FCIt is a linear layer network, GCov represents the graph convolution operation, and the activation function is the Sigmoid function; The distributed photovoltaic cluster power prediction device provided by the present invention divides the distributed photovoltaic power station group to be predicted into a target number of sub-regions; obtains a global graph adjacency matrix and a target number of sub-graph adjacency matrices according to the result of the division and the historical power data of the distributed photovoltaic power station group to be predicted; wherein the sub-graph adjacency matrix is ​​used to characterize the historical power correlation of the distributed photovoltaic power station in the sub-region, and the global graph adjacency matrix is ​​used to characterize the historical power correlation between the sub-regions; the historical power data of the sub-region, the sub-graph adjacency matrix and the global graph adjacency matrix are input into a pre-constructed hierarchical graph convolutional neural network prediction model to obtain a target prediction result; wherein the hierarchical graph convolutional neural network prediction model includes a global graph network and a target number of sub-graph networks, the sub-graph network is used to extract the spatiotemporal features of the corresponding sub-region, and the global graph network is used to perform power prediction according to the spatiotemporal features of all sub-graphs. On the basis of the division of the distributed photovoltaic cluster, the present invention mines the spatiotemporal correlation within and between sub-regions to obtain the sub-graph adjacency matrix and the global graph adjacency matrix, and then realizes the distributed photovoltaic power prediction through the constructed hierarchical graph convolutional neural network prediction model, with high prediction accuracy.

[0058] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4As shown, the electronic device may include: a processor (processor) 810, a communication interface (Communications Interface) 820, a memory (memory) 830 and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 can call the logic instructions in the memory 830 to execute a distributed photovoltaic cluster power prediction method, which includes: dividing the distributed photovoltaic power station group to be predicted into a target number of sub-areas; obtaining a global graph adjacency matrix and the target number of sub-graph adjacency matrices according to the division results and the historical power data of the distributed photovoltaic power station group to be predicted; wherein the sub-graph adjacency matrix is ​​used to characterize the historical power correlation of the distributed photovoltaic power station in the sub-area, and the global graph adjacency matrix is ​​used to characterize the historical power correlation between the sub-areas; the historical power data of the sub-area, the sub-graph adjacency matrix and the global graph adjacency matrix are input into a pre-constructed hierarchical graph convolutional neural network prediction model to obtain a target prediction result; wherein the hierarchical graph convolutional neural network prediction model includes a global graph network and the target number of sub-graph networks, the sub-graph network is used to extract the spatiotemporal features of the corresponding sub-areas, and the global graph network is used to perform power prediction based on the spatiotemporal features of all sub-graphs.

[0059] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0060] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the distributed photovoltaic cluster power prediction method provided by the above methods, the method comprising: dividing the distributed photovoltaic power station group to be predicted into a target number of sub-regions; obtaining a global graph adjacency matrix and the target number of sub-graph adjacency matrices according to the result of the division and the historical power data of the distributed photovoltaic power station group to be predicted; wherein the sub-graph adjacency matrix is ​​used to characterize the historical power correlation of the distributed photovoltaic power station in the sub-region, and the global graph adjacency matrix is ​​used to characterize the historical power correlation between the sub-regions; the historical power data of the sub-region, the sub-graph adjacency matrix and the global graph adjacency matrix are input into a pre-constructed hierarchical graph convolutional neural network prediction model to obtain a target prediction result; wherein the hierarchical graph convolutional neural network prediction model includes a global graph network and the target number of sub-graph networks, the sub-graph network is used to extract the spatiotemporal features of the corresponding sub-region, and the global graph network is used to perform power prediction based on the spatiotemporal features of all sub-graphs.

[0061] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the processor executes the distributed photovoltaic cluster power prediction method provided by the above-mentioned methods, the method comprising: dividing the distributed photovoltaic power station group to be predicted into a target number of sub-regions; obtaining a global graph adjacency matrix and the target number of sub-graph adjacency matrices according to the result of the division and the historical power data of the distributed photovoltaic power station group to be predicted; wherein the sub-graph adjacency matrix is ​​used to characterize the historical power correlation of the distributed photovoltaic power stations in the sub-regions, and the global graph adjacency matrix is ​​used to characterize the historical power correlation between the sub-regions; the historical power data of the sub-regions, the sub-graph adjacency matrix and the global graph adjacency matrix are input into a pre-constructed hierarchical graph convolutional neural network prediction model to obtain a target prediction result; wherein the hierarchical graph convolutional neural network prediction model includes a global graph network and the target number of sub-graph networks, the sub-graph network is used to extract the spatiotemporal features of the corresponding sub-regions, and the global graph network is used to perform power prediction based on the spatiotemporal features of all sub-graphs.

[0062] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0063] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0064] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A distributed photovoltaic cluster power prediction method, It is characterized in that include: Divide the distributed photovoltaic power station group to be predicted into a target number of sub-areas; A global graph adjacency matrix and a target number of subgraph adjacency matrices are obtained according to the division result and the historical power data of the distributed photovoltaic power station group to be predicted; wherein the subgraph adjacency matrix is ​​used to characterize the historical power correlation of the distributed photovoltaic power station in the sub-region, and the global graph adjacency matrix is ​​used to characterize the historical power correlation between the sub-regions; The historical power data of the sub-region, the subgraph adjacency matrix and the global graph adjacency matrix are input into a pre-constructed hierarchical graph convolutional neural network prediction model to obtain a target prediction result; wherein the hierarchical graph convolutional neural network prediction model includes a global graph network and the target number of subgraph networks, the subgraph network is used to extract the spatiotemporal features of the corresponding sub-region, and the global graph network is used to perform power prediction based on the spatiotemporal features of all subgraphs.

2. The distributed photovoltaic cluster power prediction method according to claim 1, It is characterized in that The step of inputting the historical power data of the sub-region, the sub-graph adjacency matrix and the global graph adjacency matrix into a pre-built hierarchical graph convolutional neural network prediction model to obtain a target prediction result specifically includes: Inputting the historical power matrix of the current sub-region and the sub-graph adjacency matrix into a pre-constructed sub-graph network to obtain the target spatiotemporal features, and then obtaining the target spatiotemporal features of all the sub-regions; wherein the sub-graph network is constructed based on a deep neural network, and the historical power matrix is ​​composed of the historical power sequence of the photovoltaic power station in the current sub-region; The target spatiotemporal features and the global graph adjacency matrix of all the sub-regions are input into a pre-constructed global graph network to obtain a target prediction result; wherein the global graph network is constructed based on a deep neural network.

3. The distributed photovoltaic cluster power prediction method according to claim 1, It is characterized in that The step of obtaining a global graph adjacency matrix and a target number of subgraph adjacency matrices according to the division result and the historical power data of the distributed photovoltaic power station group to be predicted specifically includes: The distributed photovoltaic power station in the sub-region is used as a node of the corresponding sub-graph, and the sub-region is used as a node of the global graph; the historical power correlation coefficient between the nodes is calculated according to the historical power data; For each of the subgraphs or the global graph, a threshold is calculated according to the historical power correlation coefficient, and a global graph adjacency matrix or a subgraph adjacency matrix is ​​obtained according to the historical power correlation coefficient and the threshold.

4. The distributed photovoltaic cluster power prediction method according to claim 1, It is characterized in that The subgraph network includes a first graph convolutional neural network, a second graph convolutional neural network and a fully connected layer; Among them, the first graph convolutional neural network and the second graph convolutional neural network are used to extract the spatiotemporal features of input data, and the fully connected layer is used to perform linear transformation on the output data of the graph convolutional neural network.

5. The distributed photovoltaic cluster power prediction method according to claim 1, It is characterized in that The global graph network includes a third graph convolutional neural network and a fourth graph convolutional neural network.

6. The distributed photovoltaic cluster power prediction method according to claim 4 or 5, It is characterized in that The subgraph network includes: in, is the input of the neural network; f FC It is a linear layer network, GCov represents the graph convolution operation, and the activation function is the Sigmoid function.

7. A distributed photovoltaic cluster power prediction device, It is characterized in that include: A division unit, used for dividing the distributed photovoltaic power station group to be predicted into a target number of sub-areas; A matrix unit, used for obtaining a global graph adjacency matrix and the target number of subgraph adjacency matrices according to the division result and the historical power data of the distributed photovoltaic power station group to be predicted; wherein the subgraph adjacency matrix is ​​used to characterize the historical power correlation of the distributed photovoltaic power station in the sub-region, and the global graph adjacency matrix is ​​used to characterize the historical power correlation between the sub-regions; A prediction unit is used to input the historical power data of the sub-region, the subgraph adjacency matrix and the global graph adjacency matrix into a pre-constructed hierarchical graph convolutional neural network prediction model to obtain a target prediction result; wherein the hierarchical graph convolutional neural network prediction model includes a global graph network and the target number of subgraph networks, the subgraph network is used to extract the spatiotemporal features of the corresponding sub-region, and the global graph network is used to perform power prediction based on the spatiotemporal features of all subgraphs.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the distributed photovoltaic cluster power prediction method according to any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the distributed photovoltaic cluster power prediction method according to any one of claims 1 to 6 is implemented.

10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the distributed photovoltaic cluster power prediction method according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Photovoltaic power generation power prediction method and device and nonvolatile storage medium

    CN119627869A

  • Photovoltaic base guarantee power prediction method based on hierarchical graph neural network and joint loss function

    CN121614816A