A wind field reconstruction method under complex terrain conditions based on multi-dimensional attention mechanism

Through the deep learning model based on the multi-dimensional attention mechanism, wind field features are extracted and encoded and decoded, which solves the accuracy problem of wind speed data assessment under complex terrain, provides efficient wind speed simulation results, and supports the assessment of wind energy resources and ecological environment.

CN118470544BActive Publication Date: 2024-10-15CHINA POWER CONSRTUCTION GRP GUIYANG SURVEY & DESIGN INST CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410924192.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-10-15
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

Existing technology is difficult to directly obtain long-term high-precision gridded wind speed data under complex terrain conditions, which hinders the assessment of wind speed change characteristics and wind energy and climate impacts. Traditional models have problems such as too many parameters and over-fitting in the face of large amounts of data. .

Method used

A deep learning model based on a multi-dimensional attention mechanism is used to construct a wind field reconstruction model, which includes a multi-dimensional feature extraction module, a feature encoding module and a feature decoding module. The wind field features are extracted through a multi-dimensional self-attention mechanism and combined with the Swin Transformer structure for encoding and decoding. , using the root mean square error loss function and Adam algorithm for optimization training.

Benefits of technology

It has improved the wind speed simulation results in complex terrain, provided important data support for wind energy resource development and ecological environment protection, and reduced the number of model parameters and the risk of over-fitting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470544B_ABST
    Figure CN118470544B_ABST
Patent Text Reader

Abstract

The present invention provides a method for wind field reconstruction under complex terrain conditions based on a multi-dimensional attention mechanism. The method comprises: collecting wind field data, and constructing a wind field reconstruction model based on a multi-dimensional attention deep learning model. The wind field reconstruction model comprises a multi-dimensional feature extraction module, a feature encoding module and a feature decoding module. The wind field reconstruction model is trained based on the wind field data, and the wind field is reconstructed using the trained wind field model. The present invention uses a constructed multi-dimensional feature attention mechanism model to comprehensively consider the internal relationship between multiple climate physical variables, and finally obtains the wind speed simulation result under complex terrain. The invention can provide important method support for the fields of wind energy resource development, ecological environment protection, etc.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of wind climate technology, and in particular to a wind field reconstruction method under complex terrain conditions based on a multi-dimensional attention mechanism. Background Art

[0002] Wind climate is closely related to water cycle and wind-related natural disasters such as tornadoes, typhoons and storm surges, especially to the wind power industry, food production, ecological stability, etc. Therefore, studying the spatial variation characteristics and trends of wind speed is of great significance to the development of wind energy resources, ecological environment protection and food security.

[0003] In wind speed research, people divide data into two types: station data and grid data according to the spatial distribution of data. Station data is actually observed by each station and is accurate and real-time. However, due to the uneven spatial distribution of each station, the inconsistent station establishment time, and the changes in the surrounding environment of the station, the station data has problems such as inconsistent time series, uneven spatial distribution, and poor data representativeness. Therefore, in specific wind speed analysis and numerical simulation studies, discrete station data is not conducive to visualization and analysis, and cannot fully and truly represent the regional wind speed change characteristics. Grid data merges data within a certain geometric grid range, has the characteristics of high temporal and spatial resolution and strong data representativeness, and is often used in wind speed characteristic diagnosis, prediction analysis and other studies.

[0004] Gridded datasets can be divided into three categories according to different production methods. One category is based on the direct output of the global ocean-atmosphere coupled model, such as the Sixth International Coupled Model Intercomparison Project (CMIP6). Current research shows that this type of data underestimates the interannual variation of near-surface wind speed and cannot reproduce the downward trend of observed wind speed. To this end, people have proposed a dynamic downscaling method to improve the simulation performance of the model, but this method cannot simulate the spatiotemporal variation characteristics of near-surface wind speed in complex areas well. The other category is based on the gridded reproduction of observational data. This type of dataset is a global, highly homogenized dataset formed by combining global climate model data with observational data from all over the world, such as the fifth generation reanalysis data of the European Center for Medium-Term Weather Forecasts (ERA5) and the 55-year reanalysis data of Japan (JRA55). This type of data is highly efficient to obtain and has a wide range of data, but the observational data involved in the calculation are relatively sparse. At the regional scale, the simulation results are also significantly different from the actual results, especially in some areas with complex terrain, where the uncertainty of the simulation results will be greater. The last category is to directly use the encrypted ground observation data set to interpolate to the grid after basic quality control. Since this type of data set involves a large number of stations in the interpolation, the simulation performance is relatively reliable, but it also determines that it is seriously path-dependent and cannot be obtained beyond the time step. At the same time, since this type of data is only evolved from station data, it also has coarser time resolution and shorter time coverage than the first two categories. Therefore, it is currently difficult to directly obtain long-term high-precision gridded wind speed data, which further hinders the evaluation of wind speed change characteristics and the impact of wind energy on climate.

[0005] Models based on machine learning have a strong ability to extract potential features from raw data sequences, and show better performance than traditional statistical models in approximating nonlinear sequences such as wind speed data. They have been widely used in wind speed diagnosis and prediction, such as support vector machines (SVM), least squares support vector machines, extreme learning machines (ELM), kernel ELM (KELM), fuzzy logic methods, Kalman filters, and different types of artificial neural networks including back propagation neural networks (BPNN), multilayer perceptrons (MLP), wavelet neural networks (WNN), Elman networks, and generalized regression neural networks (GRNN). Since the internal weight parameters of the model cannot be shared, this type of model has problems such as too many parameters and overfitting when facing a large amount of data.

[0006] Therefore, it is necessary to design a wind field reconstruction method under complex terrain conditions based on a multi-dimensional attention mechanism. Summary of the invention

[0007] In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide a wind field reconstruction method under complex terrain conditions based on a multi-dimensional attention mechanism.

[0008] To achieve the above object, the present invention provides the following solutions:

[0009] The first aspect of the present invention provides a wind field reconstruction method under complex terrain conditions based on a multi-dimensional attention mechanism, comprising:

[0010] Collect wind field data;

[0011] A wind farm reconstruction model is constructed based on a multidimensional attention deep learning model; the wind farm reconstruction model includes a multidimensional feature extraction module, a feature encoding module and a feature decoding module, wherein the multidimensional feature extraction module is used to construct the input variables into factor variables and position variables, wherein the input variables are variables input into the multidimensional feature extraction module, the factor variables are determined based on the influence of meteorological physical factors on the wind field, and the position variables are determined based on the telerelationship between a certain area of ​​the study area where the input variables are obtained and the remaining areas; based on the factor variables and the position variables, multidimensional features within and between the variables are extracted from the factor dimension and the spatial dimension, wherein the multidimensional features include the factor feature map of the interaction between each factor variable and the position feature map of the combined factor variables of each area; the feature encoding module is used to encode the multidimensional features to obtain the encoding information, and the feature decoding module is used to expand the encoding information and smooth the output wind field;

[0012] Training the wind field reconstruction model based on wind field data;

[0013] The trained wind field reconstruction model is used to reconstruct the wind field.

[0014] Preferably, the multidimensional feature extraction module includes a Z-SCORE processing module, an Embed encoding module and a multidimensional self-attention module. The input variables are subjected to Z-SCORE processing through the Z-SCORE processing module, and the variable field at each moment is constructed into an input factor tensor form of h×w×n, wherein h is high, w is wide, and f is factor; the transformed input factor tensor is split into a factor matrix tensor and a position matrix tensor; the factor matrix tensor and the position matrix tensor are respectively Embed encoded based on the Embed encoding module; the multidimensional self-attention module performs multidimensional feature extraction on the Embed encoded tensor through a multi-head self-attention mechanism.

[0015] Preferably, the multidimensional self-attention module includes a factor attention module and a position attention module, wherein the factor attention module is used to consider the influence of multiple meteorological physical factors on the wind field, which is: (1)

[0016] In the formula, To convert the input factor tensor of size h×w×n into a matrix of size n×1×h×w;

[0017] The position attention module is used to divide the study area into independent sub-areas of size p×p, and calculate the attention of any area with respect to the rest of the areas as: (2) In the formula, The study area of ​​the input factor tensor of size h×w×n is divided into independent sub-areas of size p×p;

[0018] The residual structure is used for multi-dimensional feature extraction, which is: (3) In the formula, o represents the output of the multi-dimensional self-attention module, represents the factor characteristic graph, Represents a position feature map.

[0019] Preferably, the feature encoding module is composed of two Swin Transformer structures, and the Swin Transformer structure is composed of two parts. The first part is composed of a normalization layer and a sliding multi-head attention submodule, and the second part is composed of a normalization layer and a two-layer multilayer perceptron. The first part and the second part are connected by a residual structure.

[0020] Preferably, the feature decoding module is composed of two UPConv block structures and one head block structure, and the UPConv block structure is composed of a conv layer, a UPSampling layer and two conv layers.

[0021] Preferably, in the process of training the wind field reconstruction model, a root mean square error loss function is used to calculate the difference between the model output wind field and the actual wind field on the ground, wherein the root mean square error loss function is:

[0022] (4) In the formula, n is the total number of grid points, is the actual wind speed at the ith grid point, is the output wind speed of the wind field reconstruction model at the corresponding grid point.

[0023] Preferably, in the process of training the wind field reconstruction model, the Adam algorithm is used for optimization and updating. In the training process, the learning rate is set in a dynamic adjustment manner, which is divided into two stages for adjustment. In the preheating stage, a linear attenuation method is used for adjustment. After the preheating stage, a half-cycle cosine attenuation learning rate is used, which is: (5) In the formula, a n is the learning rate of the nth Epoch, a s is the initial learning rate, E n represents the nth iteration, E w The number of warm-up start iterations,a min is the minimum boundary value of the learning rate, E max is the maximum number of training iterations.

[0024] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0025] The present invention provides a wind field reconstruction method under complex terrain conditions based on a multidimensional attention mechanism, the method includes collecting wind field data, constructing a wind field reconstruction model based on a multidimensional attention deep learning model; the wind field reconstruction model includes a multidimensional feature extraction module, a feature encoding module and a feature decoding module, the multidimensional feature extraction module is used to construct the input variable into a factor variable and a position variable, extract the multidimensional features inside and between the variables from the factor dimension and the spatial dimension based on the factor variable and the position variable, the feature encoding module is used to encode the multidimensional features to obtain the encoding information, the feature decoding module is used to expand the encoding information and smooth the output wind field, the wind field reconstruction model is trained based on the wind field data, and the wind field reconstruction model after training is used to reconstruct the wind field. The present invention uses the constructed multidimensional feature attention mechanism to comprehensively consider the internal and external relationships of each physical quantity, and finally obtains the wind speed simulation result under complex terrain, providing important data support for wind energy resource development, ecological environment protection, etc. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0027] Figure 1 A flow chart of a method provided by an embodiment of the present invention;

[0028] Figure 2 To develop a topographic map of the Qinghai-Tibet Plateau research area;

[0029] Figure 3 This is a schematic diagram of the wind farm reconstruction model structure of the present invention;

[0030] Figure 4a Schematic diagram of factor matrix tensor transformation;

[0031] Figure 4b It is a schematic diagram of position matrix tensor transformation;

[0032] Figure 5 It is a schematic diagram of the Swin Transformer structure;

[0033] Figure 6Schematic diagram of the UPConv block structure. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.

[0035] The purpose of the present invention is to provide a wind field reconstruction method under complex terrain conditions based on a multi-dimensional attention mechanism, which can realize wind field reconstruction under complex terrain conditions.

[0036] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0037] Figure 1 A flow chart of a method provided by an embodiment of the present invention, such as Figure 1 As shown, the present invention provides a wind field reconstruction method under complex terrain conditions based on a multi-dimensional attention mechanism, the method comprising the following steps:

[0038] Step 100: Collect wind field data;

[0039] Step 200: constructing a wind field reconstruction model based on a multi-dimensional attention deep learning model (MDAM for short);

[0040] Among them, the wind field reconstruction model is as follows Figure 3 As shown, it includes a multi-dimensional feature extraction module (corresponding to Figure 3 Multi-dimensional self-attention (Multi Dim Attention, MDA) in Figure 3 Encoder in the coder) and feature decoding module (corresponding to Figure 3Decoder in the multidimensional feature extraction module is used to construct the input variables into factor variables and position variables, wherein the input variables are the variables input into the multidimensional feature extraction module, the factor variables are determined based on the influence of meteorological physical factors on the wind field, and the position variables are determined based on the telerelationship between a certain area of ​​the study area where the input variables are obtained and the remaining areas; based on the factor variables and the position variables, multidimensional features within and between the variables are extracted from the factor dimension and the spatial dimension, wherein the multidimensional features include the factor feature graph of the interaction between each factor variable and the position feature graph of the combined factor variables of each area; the feature encoding module is used to encode the multidimensional features to obtain the encoding information, and the feature decoding module is used to expand the encoding information and smooth the output wind field, and finally the wind field data reconstructed by the model can be obtained;

[0041] Specifically, for the input variables, we extract features through two attention mechanisms, factor attention and position attention, respectively. The features extracted by the factor attention module are called "factor variables", and the features extracted by the position attention module are called "position variables". The physical meanings of the factor variables and the position variables are essentially different features extracted from meteorological factors by two different attention mechanisms.

[0042] Step 300: training a wind field reconstruction model based on wind field data;

[0043] Step 400: Reconstruct the wind field using the trained wind field reconstruction model.

[0044] The Qinghai-Tibet Plateau is the region with the strongest global warming and the region with the greatest uncertainty in the impact of climate change. In recent years, studies have found that the near-surface wind speed in this region has a trend of increasing. However, since the ground meteorological observation sites on the Qinghai-Tibet Plateau are mainly concentrated in the eastern region, the sites in the western region are scarce, and the data are lacking, it is difficult to provide a comprehensive and accurate conclusion for the wind speed changes in the Qinghai-Tibet Plateau. Therefore, the present invention takes the Qinghai-Tibet Plateau as an example to introduce the method recorded in the present invention in detail.

[0045] In step 100, wind field data is collected, specifically:

[0046] like Figure 2 As shown, the Qinghai-Tibet Plateau, known as the roof of the world, is located between 25°35′ and 40°00′ north latitude and 73°44′ and 105°00′ east longitude. The highest altitude in the region is 8,718 meters and the lowest is 399 meters. The average altitude is over 4,000 meters. The terrain is high and open, the air is thin, and affected by global climate change, the ground wind speed fluctuates more than other areas in the same latitude.

[0047] The station data used for the wind field dataset interpolation used for simulation approximation comes from 2416 ground observation stations in China, and first undergoes basic quality control, and then uses the "anomaly approximation method" to interpolate to the grid. The multi-physical factor field data for the same period comes from the EAR5 reanalysis data of the European Center, as shown in Table 1, with a spatial resolution of 0.25×0.25.

[0048]

[0049] In step 200, the multidimensional feature extraction module includes a Z-SCORE processing module, an Embed encoding module and a multidimensional self-attention module. The Z-SCORE processing module performs Z-SCORE processing on the input variables, and constructs the variable field at each moment into an input factor tensor form of h×w×n (high×wide×factor). In the present invention, n is 9; the transformed input factor tensor is split into factor matrix tensors (such as Figure 4a ) and the position matrix tensor (as shown in Figure 4b As shown); In order to extract information from the two types of tensors and also to reduce the number of model parameters, the factor matrix tensor and the position matrix tensor are respectively Embed encoded based on the Embed encoding module; Taking into account the long-term dependencies and related lags of meteorological factors, the multi-dimensional self-attention module performs multi-dimensional feature extraction on the Embed encoded tensors through a multi-head self-attention mechanism.

[0050] Introduce the multi-head self-attention mechanism:

[0051] The multi-head self-attention mechanism captures information at different levels by using multiple independent autonomous mechanisms. The self-attention mechanism can be expressed as: (1)

[0052] Among them, Q, K, and V represent the query, key, and value matrices in the Embed encoding sequence, respectively, and are all matrices obtained by linear transformation of the Embed encoding sequence with different trainable hyperparameters. Representing the dimension value of K, the calculation process of the self-attention mechanism can be divided into the following three steps:

[0053] (1) Calculate the similarity between the query and the key: perform matrix multiplication on the query matrix Q and the key matrix K and divide by Scaling is performed to obtain a similarity matrix;

[0054] (2) Perform softmax operation on the similarity matrix: normalize each element in the similarity matrix through the softmax function to obtain the attention weight corresponding to each element;

[0055] (3) Perform weighted summation on the values ​​according to the attention weights: Perform matrix multiplication on the attention weight matrix and the value matrix V to obtain the weighted sum output.

[0056] The multidimensional self-attention module includes a factor attention module and a position attention module, wherein the factor attention module is used to consider the influence of multiple meteorological physical factors on the wind field, which is: (2)

[0057] In order to ensure the integrity of the study area and facilitate calculation, the model converts the input factor x of size h×w×n into a matrix and encodes it. Finally, a multi-head self-attention mechanism layer is used to extract the interaction between the factors. In this stage, 12 independent self-attention mechanisms are used for calculation, and Tokens represent the encoding results.

[0058] The location attention module is used to divide the study area into independent sub-areas of size p×p, focusing on calculating the attention of any area with the rest of the areas, and looking for possible teleconnection relationships, which are: (3)

[0059] The model divides the input factor X into local regions and encodes it into Tokens, where P represents the size of the segmentation and takes the default value of 16. Finally, a multi-head self-attention mechanism layer is used to extract the feature map matrix of the combined factors of each region.

[0060] In order to retain the characteristics of the original meteorological factor changes as much as possible, the residual structure is used for multidimensional feature extraction, which is: (4) In the formula, o represents the output of the multi-dimensional self-attention module, represents the factor characteristic graph, Represents a position feature map.

[0061] like Figure 3 As shown, the feature encoding module consists of two Swin Transformer (Swin Transformer: Hierarchical Vision Transforme) structures, such as Figure 5 As shown, the Swin Transformer structure consists of two parts, the first part consists of a normalization layer (LayerNorm, LN) and a sliding multi-head attention submodule (W-MSA), and the second part consists of a normalization layer and a two-layer multi-layer perceptron (MLP), and the first part and the second part are connected by a residual structure;

[0062] Compared with the traditional transformer network structure, Swin Transformer limits the calculation of attention to the divided window and adopts a hierarchical network structure. It realizes the hierarchical representation of features by continuously downsampling the feature map and increasing the number of channels. The shift window design is adopted in two consecutive Transformer blocks, so that there is partial overlap between adjacent windows, so that the model can better capture the detailed information of the image.

[0063] The main function of the feature decoding module is to perform fine processing on the extracted feature map so that the model prediction value is closer to the true value;

[0064] like Figure 3 As shown, the feature decoding module consists of two UPConv block structures and a head block structure, as Figure 6 As shown in the figure, the UPConv block structure consists of a conv layer, a UPSampling layer and two conv layers. In this module, the size of the feature map output by the model after processing by two UPConv block structures is the same as the size of the input data. Finally, a head block structure is connected to smooth the feature map output by the model.

[0065] In the process of training the wind field reconstruction model, the root mean square error loss function is used to calculate the difference between the model output wind field and the actual wind field on the ground. The root mean square error loss function is: (5) In the formula, n is the total number of grid points, is the actual wind speed at the ith grid point, is the output wind speed of the wind field reconstruction model at the corresponding grid point.

[0066] In the process of training the wind field reconstruction model, the Adam algorithm is used for optimization and updating. In the training process, the learning rate is set by dynamic adjustment, which is divided into two stages. In the warm-up stage, linear attenuation is used for adjustment. After the warm-up stage, the half-cycle cosine attenuation learning rate is used, which is: (6) In the formula, a n is the learning rate of the nth Epoch, a s is the initial learning rate, which is set to 1×10 -4 , E n represents the nth iteration, E w To warm up the number of iterations, the present invention sets it to 40. a min is the minimum boundary value of the learning rate, which is set to 1×10-6 , E max The maximum number of iterations for training is set to 200 in the present invention.

[0067] The model constructed by the present invention is trained on a host with CPU I9-11900H, GPU RTX3060, and memory of 32G. The total number of model parameters reaches 18.29Million, the batch size is determined to be 64, and the maximum number of iterations is 200. After the training is completed, the inference process of one batch of the model takes about 0.08s. This shows that it is feasible to reconstruct the wind field in the Qinghai-Tibet Plateau region using the model constructed by the present invention within the effective time of calculation.

[0068] The experimental results obtained based on the method described in the present invention are as follows:

[0069] First, the wind field data collected by the present invention are divided into a training set and a validation set, wherein the training set period is selected from 1961.01.01 to 2004.12.31, and the validation set period is selected from 2005.01.01 to 2018.12.31. At the same time, in order to evaluate the effectiveness of the MDAM proposed in the present invention, the MSE (mean square error), mean absolute error and Pearson correlation coefficient are used to quantitatively evaluate the accuracy of the model, and the calculation formula is: (7) (8)

[0070] in, represents the observed wind speed value at the i-th grid point, Represents the model predicted wind speed value at the corresponding grid point. and represent the average values ​​of observed wind speed and model predicted wind speed, respectively.

[0071] The mean square error reflects the difference between two data sets. In the present invention, it represents the difference between the model predicted wind speed and the actual observed wind speed. The mean square error is very sensitive to the difference between the model predicted value and the true value, and can clearly reflect the prediction effect of the model. The value range of MSE is 0~∞, where the closer the MSE value is to 0, the closer the model predicted value is to the observed value, and vice versa, the worse the model prediction effect is. The Pearson correlation coefficient R is used to compare the correlation between the predicted value and the true value. The value range of R is 0~1. The value of R is 0, which means that there is no correlation between the predicted value and the true value. The larger the R, the closer the trend between the predicted value and the true value.

[0072] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0073] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A wind field reconstruction method under complex terrain conditions based on a multi-dimensional attention mechanism, characterized by: Collect wind field data; A wind field reconstruction model is constructed based on a multidimensional attention deep learning model; the wind field reconstruction model includes a multidimensional feature extraction module, a feature encoding module and a feature decoding module, wherein the multidimensional feature extraction module is used to construct the input variables into factor variables and position variables, wherein the factor variables and position variables include: 10-meter U wind, 10-meter V wind, boundary layer height, sea level pressure, surface temperature, surface latent heat flux, surface sensible heat flux, 2-meter air temperature near the ground and surface pressure; based on the factor variables and position variables, multidimensional features within and between variables are extracted from the factor dimension and the spatial dimension, wherein the multidimensional features include the factor feature map of the interaction between each factor variable and the position feature map of the combined factor variables of each region; the feature encoding module is used to encode the multidimensional features to obtain the encoding information, and the feature decoding module is used to expand the encoding information and smooth the output wind field; Training the wind field reconstruction model based on wind field data; Reconstruct the wind field using the trained wind field reconstruction model; The multidimensional feature extraction module includes a Z-SCORE processing module, an Embed encoding module and a multidimensional self-attention module. The Z-SCORE processing module performs Z-SCORE processing on the input variables, constructs the variable field at each moment into an input factor tensor form of h×w×n, where h is high, w is wide, and n is factor; splits the transformed input factor tensor into a factor matrix tensor and a position matrix tensor; and performs Embed encoding on the factor matrix tensor and the position matrix tensor respectively based on the Embed encoding module; and the multidimensional self-attention module performs multidimensional feature extraction on the Embed-encoded tensor through a multi-head self-attention mechanism. The multidimensional self-attention module includes a factor attention module and a position attention module, wherein the factor attention module is used to consider the influence of multiple meteorological physical factors on the wind field, which is: (1) In the formula, To convert the input factor tensor of size h×w×n into a matrix of size n×1×h×w; The position attention module is used to divide the study area into independent sub-areas of size p×p, and calculate the attention of any area with respect to the rest of the areas as: (2) In the formula, The study area of ​​the input factor tensor of size h×w×n is divided into independent sub-areas of size p×p; Using residual structure for multi-dimensional feature extraction: (3) Where o represents the output of the multi-dimensional self-attention module, represents the factor characteristic graph, Represents a position feature map.

2. The method according to claim 1, characterized in that: The feature encoding module consists of two SwinTransformer structures, and the Swin Transformer structure consists of two parts. The first part consists of a normalization layer and a sliding multi-head attention submodule, and the second part consists of a normalization layer and a two-layer multilayer perceptron. The first part and the second part are connected by a residual structure.

3. The method according to claim 1, characterized in that The feature decoding module consists of two UPConv block structures and a head block structure, and the UPConv block structure consists of a conv layer, a UPSampling layer, and two conv layers.

4. The method according to claim 1, characterized in that: In the process of training the wind field reconstruction model, the root mean square error loss function is used to calculate the difference between the model output wind field and the actual wind field on the ground. The root mean square error loss function is: (4) Where n is the total number of grid points, is the actual wind speed at the ith grid point, is the output wind speed of the wind field reconstruction model at the corresponding grid point.

5. The method according to claim 1, characterized in that In the process of training the wind field reconstruction model, the Adam algorithm is used for optimization and updating. In the training process, the learning rate is set by dynamic adjustment, which is divided into two stages. In the warm-up stage, linear attenuation is used for adjustment. After the warm-up stage, the half-cycle cosine attenuation learning rate is used, which is: (5) In the formula, a n is the learning rate of the nth Epoch, a s is the initial learning rate, E n represents the nth iteration, E w The number of warm-up start iterations, a min is the minimum boundary value of the learning rate, E max is the maximum number of training iterations.

Citation Information

Patent Citations

  • Wind speed prediction method based on variational mode decomposition and attention mechanism

    CN114218870A

  • Information prediction model construction method and device based on multi-source and multi-dimensional data and application

    CN116542290A

  • Wind power prediction method based on deep learning

    CN116680540A

  • Sea fog and low cloud coverage two-dimensional distribution field forecasting method and system

    CN117665974A

  • Second-level wind speed signal characteristic analysis and dynamic wind field reconstruction method along high-speed rail

    CN117744537A