Wind power plant group power prediction method, device, equipment and storage medium

Through multi-dimensional data embedding and self-attention mechanism, the wind farm group power prediction method captures the dependencies and environmental impacts between wind farms, improves the prediction accuracy and efficiency, and solves the problem of poor wind farm group power prediction accuracy.

CN118536641APending Publication Date: 2024-08-23WUHAN UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410435721.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-11
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing wind farm group power prediction methods are difficult to capture complex changing patterns and ignore the interaction between wind farms and environmental characteristic information, resulting in poor prediction accuracy.

Method used

A wind farm group power prediction method is adopted to obtain multi-dimensional information data (location, time, environment, power) for data embedding and encoding. The encoder layer is used to obtain the dependency relationships between wind farms and is output through the decoder layer. Prediction results, combined with self-attention mechanism to capture spatial, temporal and environmental dependencies.

Benefits of technology

It improves the accuracy and efficiency of power prediction of wind farm groups, meets the needs of real-time prediction, realizes comprehensive consideration and dynamic modeling of wind farm group information, and solves the problem of poor power prediction accuracy of wind farm groups.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536641A
    Figure CN118536641A
Patent Text Reader

Abstract

The invention provides a wind power plant group power prediction method, apparatus and device, and a storage medium. The method comprises the steps of obtaining information data of a target wind power plant group in different dimensions; the target wind power plant group comprises a plurality of wind power plants; calling a pre-constructed power prediction model, and determining a power prediction result of the target wind power plant group according to the information data of the target wind power plant group; the power prediction model comprises a pre-configured data embedding layer, an encoder layer and a decoder layer; and the data embedding layer is used for fusing the information data of the target wind power plant group in different dimensions and determining a data code. Through comprehensive consideration and dynamic fusion of various kinds of information in the wind power plant group and interaction of the information, the problem of poor power prediction precision of the wind power plant group in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wind power generation, and in particular to a method, device, equipment and storage medium for predicting power of a wind farm group. Background Art

[0002] With the transformation of the global energy structure and the vigorous development of renewable energy, wind power, as a clean and renewable energy form, is increasingly playing an increasingly important role in the global energy supply. How to effectively predict wind power and ensure the balance of supply and demand in the power system has become an urgent problem to be solved in the power industry.

[0003] Traditional wind power prediction methods, such as those based on physical models and statistical models, can predict wind power to a certain extent. However, due to the lack of deep mining and feature extraction of wind farm operation data, it is often difficult to capture the complex changes in wind power.

[0004] In recent years, with the development of artificial intelligence and machine learning technologies, their applications in the field of wind power forecasting have gradually increased. However, existing wind power forecasting methods often only focus on information in a single dimension, lacking comprehensive consideration and dynamic modeling of various types of information and their interactions in wind farms. In addition, existing forecasting methods often fail to capture the long-range spatiotemporal dependencies between wind farms, that is, they ignore the mutual influence and connection between different wind farms. At the same time, traditional forecasting methods often lack effective fusion of environmental feature information, which limits the improvement of forecasting accuracy.

[0005] There is currently no good solution to the problem of poor wind farm group power prediction accuracy in existing related technologies. Summary of the invention

[0006] The present invention provides a wind farm group power prediction method, device, equipment and storage medium to solve the defect of poor wind farm group power prediction accuracy in the prior art and achieve the effect of predicting the wind farm group power in a comprehensive manner from multiple dimensions.

[0007] In a first aspect, the present invention provides a wind farm group power prediction method, comprising:

[0008] Acquire information data of a target wind farm group in different dimensions; the target wind farm group includes a plurality of wind farms;

[0009] Calling a pre-built power prediction model to determine a power prediction result of the target wind farm group according to the information data of the target wind farm group;

[0010] The power prediction model includes a preconfigured data embedding layer, an encoder layer, and a decoder layer;

[0011] The data embedding layer is used to fuse the information data of the target wind farm group in different dimensions and determine the data coding;

[0012] The encoder layer is used to obtain the dependency relationship of wind farms in the target wind farm group in different dimensions according to the data encoding;

[0013] The decoder layer is used to output the power prediction results of the wind farms according to the dependencies of the wind farms in the target wind farm group in different dimensions.

[0014] According to a wind farm group power prediction method provided by the present invention, information data of a target wind farm group in different dimensions is obtained, including:

[0015] The location information, time information, environment information and power information of the wind farms in the target wind farm group are obtained.

[0016] According to a wind farm group power prediction method provided by the present invention, the power prediction result of the target wind farm group is determined according to the information data of the target wind farm group, including:

[0017] Determining a power prediction result of each wind farm in the target wind farm group according to the information data of the target wind farm group;

[0018] The power prediction result of the target wind farm group is determined according to the power prediction results of all wind farms in the target wind farm group.

[0019] According to a wind farm group power prediction method provided by the present invention, information data of the target wind farm group in different dimensions is integrated, and before data coding is determined, the method includes:

[0020] A weighted graph of the target wind farm group is determined, wherein a node of the weighted graph corresponds to each wind farm in the target wind farm group.

[0021] According to a wind farm group power prediction method provided by the present invention, information data of the target wind farm group in different dimensions are integrated to determine data coding, including:

[0022] Calculating Laplace eigenvectors according to the graph structure of the weighted graph, and determining position codes of nodes in the weighted graph;

[0023] and, encoding the time information of the wind farms in the target wind farm using a sine function and a cosine function to determine the time codes of the nodes in the weighted graph;

[0024] and / or, for each node in the weighted graph, determining the environmental code of the node according to the relationship between the power of the wind farm corresponding to the node and each environmental variable;

[0025] and, for each node in the weighted graph, determining a power code of the node according to power information of a wind farm corresponding to the node;

[0026] The data coding of each node in the weighted graph is determined according to the position coding, time coding, environment coding and power coding of the node in the weighted graph.

[0027] According to a wind farm group power prediction method provided by the present invention, the encoder layer includes a spatial self-attention unit, a temporal self-attention unit, an environmental self-attention unit and a heterogeneous attention fusion unit;

[0028] The spatial self-attention unit is used to obtain the spatial dependency of wind farms in the target wind farm group; the spatial dependency includes short-range dynamic spatial dependency and long-range dynamic spatial dependency;

[0029] The temporal self-attention unit is used to obtain the temporal dependency between the powers of wind farms in the target wind farm group at different time slices;

[0030] The environmental self-attention unit is used to obtain the environmental dependency relationship between the power and environmental information of wind farms at different locations in the target wind farm group;

[0031] The heterogeneous attention unit is used to fuse the spatial dependency, temporal dependency and environmental dependency of the wind farms to determine the dependency coding of the wind farms in the target wind farm group.

[0032] According to a wind farm group power prediction method provided by the present invention, the decoder layer includes a multi-layer perceptron, a first self-attention layer, a second self-attention layer and a linear layer;

[0033] Wherein, the multi-layer perceptron is used to perform matrix reshaping on the data encoding and the dependency encoding;

[0034] The first self-attention layer is used to predict future information data of the wind farm according to the data encoding after matrix reshaping;

[0035] The second self-attention layer is used to determine an initial predicted power matrix of the wind farm by combining the dependency encoding and the future information data of the wind farm;

[0036] The linear layer is used to perform shape transformation on the initial predicted power matrix of the wind farm to determine the target power matrix of the wind farm; the target power matrix is ​​used to characterize the power prediction result of the wind farm.

[0037] In a second aspect, the present invention further provides a wind farm group power prediction device, comprising:

[0038] An acquisition module, used to acquire information data of a target wind farm group in different dimensions; the target wind farm group includes a plurality of wind farms;

[0039] A prediction module, used to call a pre-built power prediction model and determine a power prediction result of the target wind farm group according to the information data of the target wind farm group;

[0040] The power prediction model includes a preconfigured data embedding layer, an encoder layer, and a decoder layer;

[0041] The data embedding layer is used to fuse the information data of the target wind farm group in different dimensions and determine the data coding;

[0042] The encoder layer is used to obtain the dependency relationship of wind farms in the target wind farm group in different dimensions according to the data encoding;

[0043] The decoder layer is used to output the power prediction results of the wind farms according to the dependencies of the wind farms in the target wind farm group in different dimensions.

[0044] In a third aspect, the present invention further 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, the wind farm group power prediction method as described in the first aspect above is implemented.

[0045] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the wind farm group power prediction method as described in the first aspect above.

[0046] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for predicting power of a wind farm group as described in the first aspect above is implemented.

[0047] Compared with the prior art, the present invention has the following beneficial effects:

[0048] 1. The present invention provides a method for predicting the power of a wind farm group. By configuring an encoder layer in a power prediction model, the information data of the wind farm in different dimensions is comprehensively considered to predict the future power generation of the wind farm and determine the power prediction result of the wind farm. Finally, the power prediction result of the wind farm group is confirmed based on the power prediction results of all wind farms in the wind farm group. The power prediction result of the wind farm group determined by the above method also considers the power generation power of each wind farm in different dimensions, realizes the comprehensive consideration and dynamic integration of various types of information and their interactions in the wind farm group, and solves the problem of poor power prediction accuracy of the wind farm group existing in the existing related technologies.

[0049] 2. The present invention encodes the location, time and environmental information of the wind farm through the data embedding layer to form a multi-dimensional embedding vector, which can fully capture the dynamic change characteristics of the wind farm group. This enables the power prediction model to adapt to the changes in the wind farm status in real time and improves the accuracy of the prediction.

[0050] 3. In the present invention, a decoder layer is configured in the power prediction model. The decoder layer adopts a multi-layer perceptron and a self-attention mechanism to achieve the aggregation and conversion of environmental information and predict the wind farm group power of multiple timestamps in one forward operation. This not only improves the prediction efficiency, but also makes the prediction results more coherent and accurate, meeting the needs of real-time prediction.

[0051] 4. The wind farm group power prediction method of the present invention is highly versatile and scalable. By adjusting the parameters and structure of the power prediction model, it can adapt to wind farm groups of different scales and layouts, provide flexible support for the operation and management of wind farms, and has broad application prospects and important practical value. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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.

[0053] Figure 1 is a flow chart of the wind farm group power prediction method proposed by the present invention;

[0054] Figure 2 It is a structural block diagram of the power prediction model in the present invention;

[0055] Figure 3 is a structural block diagram of a power prediction model in an embodiment of the present invention;

[0056] Figure 4It is a structural block diagram of the wind farm group power prediction device proposed by the present invention;

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

[0058] Reference numerals:

[0059] 401: acquisition module; 402: prediction module; 501: processor; 502: communication interface; 503: memory; 504: communication bus. DETAILED DESCRIPTION

[0060] 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.

[0061] The present invention provides a wind farm group power prediction method, such as Figure 1 As shown, Figure 1 : is a flow chart of a wind farm group power prediction method proposed by the present invention, the method comprising the following steps:

[0062] Step S101, obtaining information data of a target wind farm group in different dimensions; the target wind farm group includes a plurality of wind farms.

[0063] Step S102: calling a pre-built power prediction model to determine a power prediction result of the target wind farm group according to information data of the target wind farm group.

[0064] Among them, Figure 2 As shown, Figure 2 is a structural block diagram of a power prediction model in the present invention, the power prediction model includes a pre-configured data embedding layer, an encoder layer and a decoder layer;

[0065] The data embedding layer is used to fuse the information data of the target wind farm group in different dimensions and determine the data coding;

[0066] The encoder layer is used to obtain the dependency relationships of wind farms in the target wind farm group in different dimensions according to data encoding;

[0067] The decoder layer is used to output the power prediction results of the wind farms according to the dependencies of the wind farms in different dimensions in the target wind farm group.

[0068] Since the power generation of each wind farm in the group of wind farms will be affected by factors of different dimensions, for example, the power generation of different unknown wind farms is not the same, and the power generation of wind farms under different environmental conditions is also different. Therefore, in this method, firstly, the information data of the target wind farm group in multiple dimensions is obtained, and these information data can characterize the historical power generation of the wind farm in the corresponding dimensions. Then, the power generation of each wind farm is predicted by the pre-built power prediction model. Specifically, the data embedding layer in the power prediction model can fuse the information data in different dimensions and generate data encoding, which can characterize the characteristics of all information data. In addition, since the power prediction model is also configured with an encoder layer, the encoder layer can obtain the dependency of the wind farm in different dimensions according to the data encoding. Therefore, the decoder layer in the power prediction model can comprehensively consider the information data of the wind farm in different dimensions, predict the future power generation of the target wind farm group, and determine the power prediction result of the target wind farm group. The power prediction result of the target wind farm group determined by the above method takes into account the power generation power of each wind farm in different dimensions, realizes the comprehensive consideration and dynamic integration of various types of information and their interactions in the target wind farm group, and solves the problem of poor power prediction accuracy of wind farm groups existing in existing related technologies.

[0069] For example, the purpose of the present invention is to predict the power generation of a wind farm group in the future based on the historical power generation of the wind farm group. If the above purpose is converted into machine language, the power generation at time t can be defined as X t The power prediction model aims to learn the mapping function f from the power generation in T time periods to predict the power generation in the future T' time periods. The expression is as follows:

[0070]

[0071] In actual situations, the power generation efficiency of a wind farm is mainly affected by the environmental conditions in which it is located at that time. For example, in different time periods, the environmental conditions of the environment in which the wind farm is located are different, which may lead to differences in the power generation of the wind farm; for example, in the same time period, the environmental conditions of wind farms in different spatial positions may also be different, which may also lead to differences in the power generation of the two wind farms. Therefore, in some of the embodiments, obtaining information data of the target wind farm group in different dimensions includes: obtaining the location information, time information, environmental information and power information of the wind farms in the target wind farm group. It is worth noting that because the prediction process of the present invention is based on historical power generation data to predict the power generation of the wind farm in the future time period, and the structure and processing method of the power prediction model are to meet the connection of all wind farms and the long-range dependence of information, the spatiotemporal data of all wind farms are required as support. Therefore, among the above-mentioned multiple information data, in addition to environmental information, other information data bits must be obtained. However, in order to obtain the power prediction results of the wind farm more accurately, the following preferred embodiments also take environmental information into consideration for elaboration.

[0072] In this embodiment, by collecting the above information data, the power prediction model can fully consider the location, time and environmental information of the wind farm when predicting the power generation of the wind farm, and better capture the dynamic change characteristics of the wind farm.

[0073] In some embodiments, determining the power prediction result of the target wind farm group according to the information data of the target wind farm group includes: determining the power prediction result of each wind farm in the target wind farm group according to the information data of the target wind farm group; and determining the power prediction result of the target wind farm group according to the power prediction results of all wind farms in the target wind farm group. Since the target wind farm group generally includes multiple wind farms, in order to more comprehensively and accurately predict the power generation of the target wind farm group, it is necessary to determine the power generation of all wind farms in the target wind farm group in advance.

[0074] In order to make the prediction of the power generation of the wind farm more accurate, more information data needs to be considered. In order to improve the prediction efficiency of the power prediction model when processing a variety of different information, in some embodiments, such as Figure 3 As shown, Figure 3 It is a structural block diagram of a power prediction model in an embodiment of the present invention. The data embedding layer is used to fuse information data of a target wind farm group in different dimensions and determine data encoding for characterizing all information data.

[0075] In this embodiment, before the encoder processes the acquired information data, the data embedding layer can fuse and unify the collected data to generate data coding that is convenient for the encoder layer to process, and use the data coding as the input of the encoder layer, which can speed up the processing efficiency of the encoder layer, that is, improve the prediction efficiency of the power prediction model for the wind farm power generation.

[0076] For the target wind farm group, which contains a number of wind farms, the location distribution of each wind farm has a physical meaning in the real sense. In order to analyze and process the location of each wind farm in the target wind farm group through machine language, further, the information data of the target wind farm group in different dimensions is integrated, and before determining the data encoding, it includes: determining a weighted graph of the target wind farm group, and the nodes of the weighted graph correspond to each wind farm in the target wind farm group.

[0077] In this embodiment, a weighted graph corresponding to the target wind farm group is constructed based on the location distribution of each wind farm in the target wind farm group. The nodes in the weighted graph correspond to each wind farm, and the weight of the edge in the weighted graph represents the distance between the two connected wind farms. Through the above operations, the location characteristics of the target wind farm group are characterized using a weighted graph that can be processed by a computer, which is conducive to analyzing and processing the spatial distribution of each wind farm. Exemplarily, a weighted graph G = (V, E, A) of the target wind farm group can be defined, where V represents the set of N nodes of the wind farm, E represents the set of edges physically connecting the wind farms, and A∈R N×N An adjacency matrix representing node proximity or distance in a weighted graph.

[0078] Specifically, the information data of the target wind farm group in different dimensions are integrated to determine the data coding, including: calculating the Laplace eigenvector according to the graph structure of the weighted graph, and determining the position coding of the nodes in the weighted graph; and, using the sine function and the cosine function to encode the time information of the wind farm in the target wind farm, and determining the time coding of the nodes in the weighted graph; and / or, for each node in the weighted graph, determining the environment coding of the node according to the relationship between the power of the wind farm corresponding to the node and each environmental variable; and, for each node in the weighted graph, determining the power coding of the node according to the power information of the wind farm corresponding to the node. According to the position coding, time coding, environment coding and power coding of the node in the weighted graph, the data coding of each node in the weighted graph is determined.

[0079] For position coding, the weighted graph of the target wind farm group defined above is taken as an example for analysis. The graph structure of the weighted graph is used to calculate the Laplace eigenvector (eigenvector of the Laplace matrix), and k corresponding to the smallest non-trivial eigenvectors are selected as the position coding of each node in the weighted graph.

[0080] Among them, the Laplace matrix is ​​an important concept in graph theory, which describes the topological structure of the graph. For an undirected graph G, its Laplace matrix L is defined as L=RA. Where R is the degree matrix of the graph (a diagonal matrix composed of the degree of each node), and A is the adjacency matrix of the graph. The eigenvectors of the Laplace matrix are calculated by the method of eigenvalue decomposition. The eigenvectors are vectors whose direction remains unchanged when the matrix is ​​transformed. They describe the inherent properties of the matrix and can therefore be used to represent the position information of the nodes corresponding to the wind farm in the weighted graph. Non-trivial eigenvectors refer to eigenvectors corresponding to non-zero eigenvalues, which contain important information about the graph structure. Since the eigenvectors with smaller eigenvalues ​​can better represent the overall structure of the graph, and the eigenvectors corresponding to smaller eigenvalues ​​are often more stable and insensitive to small changes in the graph, in this embodiment, k eigenvectors corresponding to the smallest non-zero eigenvalues ​​are selected as the position encoding of each node in the weighted graph.

[0081] Furthermore, for the selected feature vector, in order to ensure that the dimensions of the position encoding and the time encoding are consistent, the sum of the dimensions of the selected feature vector is expanded or reduced to the specified dimension to retain key information. A higher dimension means that the model can learn more complex and sophisticated feature representations, but it may also lead to overfitting and increased computational costs. For the power prediction model in this embodiment, it relies on a rich internal representation to capture dependencies in the information data. In early Transformer models, 512 was used as the basic hidden layer dimension, that is, the dimensional size of the model's internal representation space, which is widely accepted and used as the starting point for subsequent research and application. In this embodiment, considering the limitations of computing resources and the balance between model size and performance, 512 is also selected as the position encoding retention dimension. Therefore, the encoded position information can be expressed as X space ∈R N×D , N represents the number of wind farm nodes, and D represents the location encoding retention dimension, which is 512.

[0082] For time coding, this embodiment regards each time point in the time information as a point from the front to the back on a sine or cosine curve, and uses sine and cosine functions of different frequencies to encode the time information. Among them, the time information is represented in the form of a time series. Specifically, this embodiment maps each time point in the time series to a vector representation in a high-dimensional space. This vector representation is calculated by sine and cosine functions of different frequencies to ensure that each time point corresponds to a unique code. The periodic characteristics of sine and cosine functions enable the encoding to capture cyclic and periodic patterns in the time series and retain the relative and absolute positional relationships between different time points. Different frequencies can control the fineness of the encoding. Lower frequencies can capture patterns over longer time ranges, while higher frequencies are more sensitive to changes in short periods of time. By distinguishing the features of different time scales, the power prediction model can better learn the complex dependencies and patterns in the time series. For each element in the time coding, the expression is as follows:

[0083] X (time,2i) =sin(time / 10000 2i / D )

[0084] X (time,2i+1) =cos(time / 10000 2i / D )

[0085] Among them, X (time,2i) represents the 2ith element of the time code, X (time,2i+1) It represents the 2i+1th element of the time code, time represents the timestamp, i represents the index of the dimension, 2i represents the even dimension, 2i+1 represents the odd dimension, and D represents the time code reserved dimension, which has the same value as the position code reserved dimension in the position code, that is, 512.

[0086] The encoded time information can be expressed as X time ∈R T×D , T represents the number of timestamps, and D represents the dimension reserved for time coding, which is 512. From the above expression, it can be seen that the time coding of the time+k timestamp can be represented by the time coding of the time timestamp, thus reflecting their relative position relationship.

[0087] Since the power generation of a wind farm is not only affected by direct meteorological factors such as wind speed and wind direction, but may also be affected by indirect factors such as temperature, humidity and air pressure. In this embodiment, for environmental coding, for each node, the relationship between each environmental variable and power is calculated using the Pearson correlation coefficient. The environmental variables that are most closely related to power are selected based on the size of the Pearson correlation coefficient, and the selected environmental variables are normalized as the environmental coding of the node. The calculation formula is as follows:

[0088]

[0089] Among them, e i,n,t represents the value of the i-th environment variable at node n and timestamp t, represents the average value of the i-th environment variable at all timestamps of node n, P n,t represents the power generation value of node n at timestamp t, represents the average power generation of node n at all timestamps, and T represents the number of timestamps.

[0090] The Pearson correlation coefficient provides a quantitative indicator that can accurately measure the linear correlation between variables. The range is between -1 and 1, where 1 indicates a perfect positive correlation, -1 indicates a perfect negative correlation, and 0 indicates no correlation. The absolute value of the Pearson correlation coefficient reflects the strength of the correlation. In this embodiment, an absolute value of a correlation threshold is set according to the distribution of the data, and I environmental variables whose correlation with the power data exceeds the threshold are screened out. These environmental variables are considered to be the environmental variables most closely related to the power generation of the wind farm, and are used for subsequent wind farm power prediction.

[0091] The selected environmental variables are normalized to eliminate the influence of different variable dimensions and value ranges, so that all environmental variables can be compared and calculated on the same scale. The Z-score normalization method is used for processing. This method calculates the mean and standard deviation of each environmental variable and converts it into a distribution with a mean of 0 and a standard deviation of 1. The normalized environmental variables will be used as the environmental coding of the node. The coded environmental variables can be expressed as X info ∈R N×I , where N represents the number of wind power plant nodes and I represents the number of main environmental variables of each node.

[0092] Power is a key parameter in the operation of a wind farm, reflecting the power generation capacity and operating status of the wind farm at different time points. Therefore, using appropriate encoding for power information is crucial to the accuracy of the power prediction model. In this embodiment, the power information is represented as a two-dimensional matrix X power ∈R N×T , where N represents the number of wind farm nodes and T represents the number of timestamps. This encoding method can intuitively reflect the power changes of wind farm nodes at different time points. Each row of this matrix represents a wind farm node, each column represents a timestamp, and the elements in the matrix are the power values ​​of the corresponding nodes at the corresponding timestamps. In addition, this encoding method also facilitates some preprocessing operations on power data, such as missing value filling, outlier processing, normalization, etc., to ensure the integrity and consistency of the data and improve the training effect when training the power prediction model.

[0093] After obtaining the above position coding, time coding, environment coding and power coding, they need to be unified to the same dimension for subsequent addition operations. In this embodiment, the dimension of the position coding is set to N×D, where N represents the number of wind farm nodes and D represents the dimension of the position coding. The dimension of the time coding is set to T×D, where T represents the number of timestamps. The dimension of the environment coding is N×I, where I represents the number of main environmental variables screened out. The dimension of the power coding is N×T, which directly reflects the power value of each node at each timestamp.

[0094] In order to unify these coded information into the dimensions of N×T×I×D, this embodiment uses appropriate expansion and replication operations. For position coding, this embodiment replicates it T times to match the number of timestamps; for time coding, this embodiment replicates it N times to match the number of nodes. Environmental coding and power coding require appropriate dimensional transformation to match other coded information.

[0095] For environmental coding, its original dimension is N×I, that is, each node corresponds to an I-dimensional environmental feature vector. In order to match other data encodings, this embodiment expands this dimension to N×T×I×D. Since environmental features are usually independent of time but related to specific nodes, this embodiment first copies the environmental feature vector of each node T times to match the number of timestamps to obtain an N×T×I dimensional environmental coding. Secondly, this embodiment copies the elements of each environmental feature vector D times, matches the dimension D of the position coding and time coding in the last dimension, and obtains an N×T×I×D dimensional environmental coding.

[0096] For power coding, its original dimension is N×T, that is, each node has a power value at each timestamp. This dimension already matches the N×T part of the output result. However, it needs to be expanded to N×T×I×D to match other encoding information. Therefore, this embodiment copies each power value I×D times. In this way, each power value is expanded into an I×D-dimensional vector, in which each element is equal to the original power value. The power vectors of all timestamps of all nodes are combined to obtain a power coding of N×T×I×D dimensions.

[0097] After the dimension unification is completed, this embodiment adds the four data codes to obtain the final data embedding layer output code as the input X of the encoder layer embedding ∈R N×T×I×D ,in:

[0098] X embedding =X space +X time +X info+X power

[0099] In the above process, since environmental information is not necessary to obtain information data, the value of I can be taken as 1 for calculation without considering environmental information. This data encoding includes both the spatial location information of the wind farm nodes and the time dependency in the time series, while also considering environmental factors closely related to power and actual power data. This comprehensive encoding method helps the power prediction model better understand the operating status of the wind farm, thereby making more accurate predictions and decisions.

[0100] The self-attention mechanism, as an important technology in deep learning, can effectively capture long-distance dependencies in sequence data and evaluate the importance of information at different positions. The introduction of the self-attention mechanism brings a new solution to wind power prediction. Through the self-attention mechanism, the power prediction model can automatically learn and pay attention to information at different positions when processing information data of wind farms, and output the representation of each position according to the association of the input sequence, so that each output vector contains the contextual relationship of the input vector. In this way, the power prediction model can better capture the spatial relationship, temporal dynamics and environmental influencing factors between wind farms, thereby improving the accuracy and reliability of the prediction. Therefore, in some embodiments, the encoder layer includes a spatial self-attention unit, a temporal self-attention unit, an environmental self-attention unit and a heterogeneous attention fusion unit. Among them, the spatial self-attention unit is used to obtain the spatial dependency of wind farms in the target wind farm group; the spatial dependency includes short-range dynamic spatial dependency and long-range dynamic spatial dependency; the temporal self-attention unit is used to obtain the temporal dependency between the power of wind farms in different time slices in the target wind farm group; the environmental self-attention unit is used to obtain the environmental dependency between the power of wind farms at different locations in the target wind farm group and the environmental information; the heterogeneous attention unit is used to fuse the spatial dependency, temporal dependency and environmental dependency of wind farms to determine the dependency encoding of wind farms in the target wind farm group.

[0101] To formulate the self-attention operation, this embodiment defines the following slice notation: embedding ∈R N×T×I×D , referred to as E, and for a time slice t it is represented as a tensor X ;t;; ∈R N×I×D , for node n, the slice is represented as X n;;; ∈R T×I×D , for the environment feature i slice is represented as a tensor X ;;i; ∈R N×T×D .

[0102] Specifically, for the spatial self-attention unit, this embodiment first obtains the query, key, and value matrices of the self-attention operation for time t as follows:

[0103]

[0104]

[0105]

[0106] in, are three sets of weight matrices, d' is Q t , K t , V t The above three sets of weight matrices can all be obtained through the training process of the power prediction model, which are used to map the vectors of the input encoder layer to the corresponding space, and through linear transformation, that is, the multiplication operation of the vector and the weight matrix, the power prediction model can learn the complex patterns and structures in the input data, which is convenient for calculating the attention score.

[0107] Secondly, this embodiment applies the self-attention operation in the spatial dimension to model the interaction between nodes, and obtains the spatial attention score between all nodes at time t as:

[0108]

[0109] In this embodiment, the output of the spatial self-attention unit is obtained by multiplying the attention score with the value matrix as EnSSA(Q t ,K t ,V t )=soft max(A t )V t .

[0110] In the above process, the spatial graph is regarded as a fully connected graph, and each node interacts with all nodes. However, only the interaction between nearby node pairs and the interaction between distant node pairs with similar functions are necessary. Therefore, this embodiment introduces two graph shielding matrices M short and M long to capture both short-range and long-range spatial dependencies between wind farms.

[0111] For the short-range graph screening matrix M short In this embodiment, the weight between two nodes is set to 1 or 0 according to the node distance to construct a short-range graph shielding matrix M long Only when the distance between two nodes is less than the threshold λ, the weight is 1, otherwise it is 0. Through the above operation, this embodiment can shield the attention of node pairs that are far away from each other.

[0112] For the long-range graph screening matrix M long , This embodiment uses the FASTDTW algorithm to calculate the similarity of historical traffic between nodes, and selects the K nodes with the highest similarity for each node as its neighbor nodes. This embodiment sets the weight between the current node and its neighbor nodes to 1, and the weight between the current node and other nodes to 0, thereby constructing the long-range graph shielding matrix M long Through the above operations, this embodiment is able to find a pair of remote nodes that exhibit similar power generation conditions.

[0113] Based on the short-range graph shielding matrix and the long-range graph shielding matrix, the short-range spatial self-attention and long-range spatial self-attention can be calculated, which integrates the short-range spatial dependency and the long-range dynamic spatial dependency, and finally obtains the corresponding output:

[0114] EnShortSSA(Q t ,K t ,V t )=softmax(A t ⊙M short )V t

[0115] EnLongSSA(Q t ,K t ,V t )=softmax(A t ⊙M long )V t

[0116] For the temporal self-attention unit, in this embodiment, for node n, the query, key and value matrices are first obtained as:

[0117]

[0118]

[0119]

[0120] in, are three sets of weight matrices, d' is Q n , K n , V n The dimension of the matrix. The above weight matrix can be learned during the training process of the power prediction model, which is used to map the vector of the input encoder layer to the corresponding space, and through linear transformation, that is, the multiplication operation of the vector and the weight matrix, the power prediction model can learn the complex patterns and structures in the input data, which is convenient for calculating the attention score.

[0121] This embodiment applies the self-attention operation in the time dimension, and obtains the time attention score between all time slices of node n as:

[0122]

[0123] Then, this embodiment obtains the output of the temporal self-attention unit by multiplying the attention score with the value matrix:

[0124] EnTSA(Q n ,K n ,V n )=softmax(A n )V n

[0125] The temporal self-attention unit proposed in this embodiment has global acceptance capability and can model the long-term temporal dependencies between all time slices, thereby discovering different dynamic temporal patterns of the same node.

[0126] For the environment self-attention unit, in this embodiment, for the environment variable i, the query, key and value matrix is ​​first obtained as:

[0127]

[0128]

[0129]

[0130] in, are three sets of weight matrices, d′ is Q i ,K i ,V i The dimension of the matrix. The above weight matrix can be learned during the training process of the power prediction model, which is used to map the vector of the input encoder layer to the corresponding space, and through linear transformation, that is, the multiplication operation of the vector and the weight matrix, the power prediction model can learn the complex patterns and structures in the input data, which is convenient for calculating the attention score.

[0131] This embodiment applies the self-attention operation on the environment variable dimension, and obtains the feature attention score of the environment variable i across all spaces and times as:

[0132]

[0133] Then, this embodiment obtains the output of the feature self-attention unit by multiplying the attention score with the value matrix:

[0134] EnFSA(Q i ,K i ,V i)=softmax(A i )V i

[0135] The environmental self-attention unit proposed in this embodiment reflects the relative importance of different environmental variables in predicting the output power at the current moment. In this way, the power prediction model can learn which environmental variables at different locations have a continuous impact on the output power over a long period of time, thereby capturing the long-term dependencies of environmental variables.

[0136] Finally, the heterogeneous attention unit is fused into the multi-head self-attention block, so that the above three self-attention units correspond to the spatial head, temporal head and environmental head respectively. The processing results of the spatial head, temporal head and environmental head are connected and projected to obtain the output, so that the power prediction model can integrate spatial, temporal and environmental variables at the same time. The above operation can reduce the computational complexity of the power prediction model. Finally, the output result of the heterogeneous attention unit is:

[0137]

[0138] Among them, ⊕ represents cascade, Z s ,Z t ,Z i Indicates output cascade, h s ,h t ,h i are the number of attention heads for spatial head, temporal head and environment head respectively, W 0 ∈R d×d×d , is the learnable projection matrix.

[0139] Furthermore, in this embodiment, based on the output of the heterogeneous attention unit, the position fully connected feedforward network is used to obtain the output E output ∈R N×T×I×D . Wherein, N indicates that each sequence in the output corresponds to a specific position or node, T indicates that each sequence in the output corresponds to a specific timestamp, I indicates that there is an environment variable corresponding to each combination of position and time step, and D indicates the dimension of the hidden layer. In the above embodiment, layer normalization is used between multi-layer encoders to speed up convergence and residual connection, so that the power prediction model only focuses on the current difference part.

[0140] In some embodiments, the decoder layer includes a multilayer perceptron, a first self-attention layer, a second self-attention layer, and a linear layer. The multilayer perceptron is used to perform matrix reshaping on the data encoding and the dependency encoding; the first self-attention layer is used to predict the future information data of the wind farm according to the data encoding after the matrix reshaping; the second self-attention layer is used to determine the initial prediction power matrix of the wind farm by combining the dependency encoding and the future information data of the wind farm; the linear layer is used to perform shape transformation on the initial prediction power matrix of the wind farm to determine the target power matrix of the wind farm; the target power matrix is ​​used to characterize the power prediction result of the wind farm.

[0141] From the above content, we can see that the output of the data embedding layer is X embedding ∈R N×T×I×D , the output of the encoder layer is E output ∈R N×T×I×D However, the final prediction result needs to be expressed as P∈R N×T In the form of, therefore, in this embodiment, the environment variables are aggregated and transformed by setting a decoder layer with a multi-layer perceptron. First, the output of the data embedding layer and the encoder layer is reshaped from a matrix of the shape of [N, T, I, D] to a matrix of the shape of [N×T, I×D]. Each combination of node and timestamp corresponds to a sample, and each sample contains I×D features. Secondly, the reshaped result is passed to the multi-layer perceptron, which contains two fully connected layers and a ReLU activation function. The above matrix is ​​processed by the multi-layer perceptron, and the output matrix structure is [N×T, D]. Finally, the matrix output by the multi-layer perceptron is reshaped into a matrix of the shape of [N, T, D] to match the node and timestamp dimensions corresponding to the final prediction result. The output of the data embedding layer after processing by the multi-layer perceptron is X embeddingMLP ∈R N×T×D , the output of the encoder layer after processing by the multi-layer perceptron is E outputMLP ∈R N×T×D .

[0142] For the first self-attention layer, the output of the data embedding layer after processing by the multi-layer perceptron is used as input. First, the starting mark is selected in a generative way, that is, a part of the sequence is dynamically sampled from the input sequence close to the prediction target as the starting sequence. Therefore, the input of this layer can be expressed as:

[0143] X contact =Concat(X token ,X0)

[0144] Among them, X contact ∈R N×(T+T)×D , X token ∈R N×T×D is the start mark, X0∈RN×T×D Is the prediction sequence placeholder. For the input connection matrix X contact ∈R N×(T+T)×D , a linear transformation is performed to obtain the Q, K, V matrices of the first self-attention layer, as shown below:

[0145]

[0146]

[0147]

[0148] in is a learnable parameter, d′ is Q f ,K f ,V f Then, a masking operation is adopted to introduce the time masking matrix M time , shielding the information after the current timestamp, setting the weight of the time series later than the current timestamp to 0, and the weight of the time series earlier than the current timestamp to 1, so that the current prediction is completely based on the information before the sequence. Finally, the output of the first self-attention layer is calculated using the scaled dot product attention mechanism:

[0149]

[0150] Through the shielding operation of the first self-attention layer, the information after the current timestamp is shielded, and batch prediction is adopted to predict multiple timestamps in the first forward operation and output multi-step prediction results.

[0151] For the second self-attention layer, the K and V matrices of this layer are calculated using the output of the encoder layer after multi-layer perceptron processing, which can make full use of the information of all nodes in the encoder layer. The Q matrix of this layer is calculated using the output of the first self-attention layer.

[0152] Specifically, for E outputMLP ∈R N×T×D and DeFSA(Q f ,K f ,V f ) uses linear transformation to obtain the Q, K, V matrices of the second self-attention layer:

[0153]

[0154]

[0155]

[0156] in, is a learnable parameter, d′ is Q s ,Ks ,V s The dimensions of the matrix.

[0157] Then, the scaled dot product attention mechanism is used to calculate the output of the second self-attention layer. It is worth noting that because the decoder layer has already taken the time series order into account in the first self-attention layer, no masking operation is used when calculating the output of the second self-attention layer. The output of the second self-attention layer is as follows:

[0158]

[0159] From the above process, we can see that the output of the second self-attention layer is DeSSA(Q s ,K s ,V s ), which combines the global information output by the encoder layer with the local context information processed by the first self-attention layer.

[0160] For the linear layer, the output DeSSA(Q s ,K s ,V s ) is transformed into the form P∈R N×T The output of the linear layer is the power prediction result for the specified wind farm in a continuous time period. The specific conversion process is as follows:

[0161] Define a weight matrix W with dimension D; define a bias vector b with length 1. For each D-dimensional vector in the N×T dimension of the input tensor, perform the following linear transformation:

[0162] output_vector(n,t)=W*input_vectore(n,t)+b

[0163] Among them, output_vector(n,t) is a vector of length 1, which is obtained by multiplying the weight matrix W with the input vector input_vectore(n,t) (that is, the D-dimensional vector at the (n,r) position in the input tensor) and adding the bias vector b. Therefore, for each (n,r) position, there is a vector output of length 1, which is the power prediction result for the specified wind farm node at the specified timestamp.

[0164] In summary, the present invention integrates multi-dimensional data such as location, time, and environmental variables through the collaborative work of the data embedding layer, the encoder layer, and the decoder layer, and then captures the spatial relationship between wind farms, the temporal dynamics, and the interaction of environmental factors through the self-attention mechanism. The aggregation and conversion operations of the decoder layer further improve the accuracy of the prediction results, and the ability to predict multiple timestamps in a forward operation significantly improves the prediction efficiency of the power generation of the power plant. Compared with traditional prediction methods, the present invention not only successfully solves the problem of dynamic modeling of wind farm information, but also captures long-range spatiotemporal dependencies and effectively integrates environmental feature information. Especially when dealing with complex and changeable wind farm environments, the method of the present invention exhibits stronger adaptability and robustness.

[0165] The wind farm group power prediction device provided by the present invention is described below. The wind farm group power prediction device described below and the wind farm group power prediction method described above can be referred to each other. Figure 4 As shown, Figure 4 : is a structural block diagram of a wind farm group power prediction device proposed by the present invention, the device comprises:

[0166] The acquisition module 401 is used to acquire information data of a target wind farm group in different dimensions; the target wind farm group includes a plurality of wind farms;

[0167] The prediction module 402 is used to call a pre-built power prediction model and determine the power prediction result of the target wind farm group according to the information data of the target wind farm group;

[0168] The power prediction model includes a pre-configured data embedding layer, an encoder layer, and a decoder layer;

[0169] The data embedding layer is used to fuse the information data of the target wind farm group in different dimensions and determine the data coding;

[0170] The encoder layer is used to obtain the dependency relationships of wind farms in the target wind farm group in different dimensions according to data encoding;

[0171] The decoder layer is used to output the power prediction results of the wind farms according to the dependencies of the wind farms in different dimensions in the target wind farm group.

[0172] Since the power generation of each wind farm in the group of wind farms will be affected by factors of different dimensions, for example, the power generation of different unknown wind farms is not the same, and the power generation of wind farms under different environmental conditions is also different. Therefore, in this device, first, the acquisition module 401 acquires information data of the target wind farm group in multiple dimensions, and these information data can characterize the historical power generation of the wind farm in the corresponding dimensions. Then, the prediction module 402 predicts the power generation of each wind farm through a pre-built power prediction model. Specifically, the data embedding layer in the power prediction model can fuse the information data in different dimensions and generate data encoding, which can characterize the characteristics of all information data. In addition, since the power prediction model is also configured with an encoder layer, the encoder layer can obtain the dependency of the wind farm in different dimensions according to the data encoding. Therefore, the decoder layer in the power prediction model can comprehensively consider the information data of the wind farm in different dimensions, predict the future power generation of the target wind farm group, and determine the power prediction result of the target wind farm group. The power prediction result of the target wind farm group determined by the above method takes into account the power generation power of each wind farm in different dimensions, realizes the comprehensive consideration and dynamic integration of various types of information and their interactions in the target wind farm group, and solves the problem of poor power prediction accuracy of wind farm groups existing in existing related technologies.

[0173] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 501, a communications interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communications interface 502 and the memory 503 communicate with each other via the communication bus 504. The processor 501 may call the logic instructions in the memory 503 to execute the above-mentioned wind farm group power prediction method, which includes:

[0174] Acquire information data of a target wind farm group in different dimensions; the target wind farm group includes several wind farms;

[0175] Calling a pre-built power prediction model, and determining a power prediction result of the target wind farm group according to information data of the target wind farm group;

[0176] The power prediction model includes a pre-configured data embedding layer, an encoder layer, and a decoder layer;

[0177] The data embedding layer is used to fuse the information data of the target wind farm group in different dimensions and determine the data coding;

[0178] The encoder layer is used to obtain the dependency relationships of wind farms in the target wind farm group in different dimensions according to data encoding;

[0179] The decoder layer is used to output the power prediction results of the wind farms according to the dependencies of the wind farms in different dimensions in the target wind farm group.

[0180] In addition, the logic instructions in the above-mentioned memory 503 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when 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 several 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: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0181] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program may be stored in a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can execute the wind farm power prediction method provided by the above methods, the method comprising:

[0182] Acquire information data of a target wind farm group in different dimensions; the target wind farm group includes several wind farms;

[0183] Calling a pre-built power prediction model, and determining a power prediction result of the target wind farm group according to information data of the target wind farm group;

[0184] The power prediction model includes a pre-configured data embedding layer, an encoder layer, and a decoder layer;

[0185] The data embedding layer is used to fuse the information data of the target wind farm group in different dimensions and determine the data coding;

[0186] The encoder layer is used to obtain the dependency relationships of wind farms in the target wind farm group in different dimensions according to data encoding;

[0187] The decoder layer is used to output the power prediction results of the wind farms according to the dependencies of the wind farms in different dimensions in the target wind farm group.

[0188] In another aspect, the present invention further 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 method for predicting wind farm group power provided by the above methods is implemented, and the method comprises:

[0189] Acquire information data of a target wind farm group in different dimensions; the target wind farm group includes several wind farms;

[0190] Calling a pre-built power prediction model, and determining a power prediction result of the target wind farm group according to information data of the target wind farm group;

[0191] The power prediction model includes a pre-configured data embedding layer, an encoder layer, and a decoder layer;

[0192] The data embedding layer is used to fuse the information data of the target wind farm group in different dimensions and determine the data coding;

[0193] The encoder layer is used to obtain the dependency relationships of wind farms in the target wind farm group in different dimensions according to data encoding;

[0194] The decoder layer is used to output the power prediction results of the wind farms according to the dependencies of the wind farms in different dimensions in the target wind farm group.

[0195] 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.

[0196] 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.

[0197] 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 wind farm group power prediction method, characterized in that: include: Acquire information data of a target wind farm group in different dimensions; the target wind farm group includes a plurality of wind farms; Calling a pre-built power prediction model to determine a power prediction result of the target wind farm group according to the information data of the target wind farm group; The power prediction model includes a preconfigured data embedding layer, an encoder layer, and a decoder layer; The data embedding layer is used to fuse the information data of the target wind farm group in different dimensions and determine the data coding; The encoder layer is used to obtain the dependency relationship of wind farms in the target wind farm group in different dimensions according to the data encoding; The decoder layer is used to output the power prediction results of the wind farms according to the dependencies of the wind farms in the target wind farm group in different dimensions.

2. The wind farm group power prediction method according to claim 1, characterized in that: Obtain information data of the target wind farm group in different dimensions, including: The location information, time information, environment information and power information of the wind farms in the target wind farm group are obtained.

3. The wind farm group power prediction method according to claim 1, characterized in that: Determining a power prediction result of the target wind farm group according to the information data of the target wind farm group includes: Determining a power prediction result of each wind farm in the target wind farm group according to the information data of the target wind farm group; The power prediction result of the target wind farm group is determined according to the power prediction results of all wind farms in the target wind farm group.

4. The wind farm group power prediction method according to claim 2, characterized in that: The information data of the target wind farm group in different dimensions are integrated to determine the data coding, including: A weighted graph of the target wind farm group is determined, wherein a node of the weighted graph corresponds to each wind farm in the target wind farm group.

5. The wind farm group power prediction method according to claim 4, characterized in that: The information data of the target wind farm group in different dimensions are integrated to determine the data coding, including: Calculating Laplace eigenvectors according to the graph structure of the weighted graph, and determining position codes of nodes in the weighted graph; and, encoding the time information of the wind farms in the target wind farm using a sine function and a cosine function to determine the time codes of the nodes in the weighted graph; and / or, for each node in the weighted graph, determining the environmental code of the node according to the relationship between the power of the wind farm corresponding to the node and each environmental variable; and, for each node in the weighted graph, determining a power code of the node according to power information of a wind farm corresponding to the node; The data coding of each node in the weighted graph is determined according to the position coding, time coding, environment coding and power coding of the node in the weighted graph.

6. The wind farm group power prediction method according to claim 1, characterized in that: The encoder layer includes a spatial self-attention unit, a temporal self-attention unit, an environmental self-attention unit, and a heterogeneous attention fusion unit; The spatial self-attention unit is used to obtain the spatial dependency of wind farms in the target wind farm group; the spatial dependency includes short-range dynamic spatial dependency and long-range dynamic spatial dependency; The temporal self-attention unit is used to obtain the temporal dependency between the powers of wind farms in the target wind farm group at different time slices; The environmental self-attention unit is used to obtain the environmental dependency relationship between the power and environmental information of wind farms at different locations in the target wind farm group; The heterogeneous attention unit is used to fuse the spatial dependency, temporal dependency and environmental dependency of the wind farms to determine the dependency coding of the wind farms in the target wind farm group.

7. The wind farm group power prediction method according to claim 6, characterized in that: The decoder layer includes a multi-layer perceptron, a first self-attention layer, a second self-attention layer, and a linear layer; Wherein, the multi-layer perceptron is used to perform matrix reshaping on the data encoding and the dependency encoding; The first self-attention layer is used to predict future information data of the wind farm according to the data encoding after matrix reshaping; The second self-attention layer is used to determine an initial predicted power matrix of the wind farm by combining the dependency encoding and the future information data of the wind farm; The linear layer is used to perform shape transformation on the initial predicted power matrix of the wind farm to determine the target power matrix of the wind farm; the target power matrix is ​​used to characterize the power prediction result of the wind farm.

8. A wind farm group power prediction device, characterized in that: include: An acquisition module, used to acquire information data of a target wind farm group in different dimensions; the target wind farm group includes a plurality of wind farms; A prediction module, used to call a pre-built power prediction model and determine a power prediction result of the target wind farm group according to the information data of the target wind farm group; The power prediction model includes a preconfigured data embedding layer, an encoder layer, and a decoder layer; The data embedding layer is used to fuse the information data of the target wind farm group in different dimensions and determine the data coding; The encoder layer is used to obtain the dependency relationship of wind farms in the target wind farm group in different dimensions according to the data encoding; The decoder layer is used to output the power prediction results of the wind farms according to the dependencies of the wind farms in the target wind farm group in different dimensions.

9. 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, the wind farm group power prediction method according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the wind farm group power prediction method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Deep and far sea wind power plant multi-machine cooperation rapid frequency support method and system

    CN120016512A

  • A method and system for multi-machine coordinated fast frequency support of a deep-sea wind farm

    CN120016512B