A wind field downscaling method based on deep learning and combined with terrain
By combining deep learning and terrain data, using a vector-based neural network structure and a new loss function, the problem of combining deep learning and multi-dimensional vector fields in the existing wind field downscaling technology is solved, achieving higher resolution and accurate Wind field forecast.
Patent Information
- Application Number
- CN202410799661.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-20
AI Technical Summary
Existing technology is difficult to effectively combine deep learning with multi-dimensional vector fields and apply them to wind field downscaling technology, resulting in low weather forecast accuracy and low wind farm site selection efficiency.
A wind field downscaling method based on deep learning is adopted, combined with terrain data, using a vector-based neural network structure and a new loss function to generate high-resolution wind field prediction results through preprocessing and feature extraction of ground elevation data.
It improves the accuracy and application value of wind field downscaling, can process spatial vector field data more effectively, and generates higher resolution and accurate wind field prediction results.
Smart Images

Figure CN118366046B
Abstract
Description
Technical Field
[0001] The present invention relates to deep learning and numerical model forecast post-processing technology, and in particular to a wind field downscaling method based on deep learning and combined with terrain. Background Art
[0002] The introduction of wind farm downscaling technology provides a more accurate method for wind energy resource assessment, thus providing a more scientific basis for wind farm site selection and the rational layout of wind turbines, thereby improving the power generation efficiency and economy of wind farms. In addition, wind farm downscaling technology is also of great significance to improving the accuracy and timeliness of weather forecasts. At the same time, detailed assessment of the environment is also one of the important applications of wind farm downscaling technology. For engineering projects such as high-rise buildings, bridges, and large structures, accurate environmental assessment is crucial for design and safety. Therefore, wind farm downscaling helps to improve social welfare and the development of meteorological services.
[0003] Most deep learning algorithms focus on numerical fitting. However, meteorological problems are in multidimensional space and require algorithms for spatial vector fields. At present, how to combine deep learning with multidimensional vectors and apply them to the field of earth science still needs further exploration and research. Summary of the invention
[0004] Purpose of the invention: The purpose of the present invention is to provide a wind field downscaling method based on deep learning and combined with terrain. By utilizing terrain data, the fitting effect of the network is improved, a vector-based network structure is used, and a new loss function is proposed, which can produce results with greater application value and higher accuracy.
[0005] Technical solution: A wind field downscaling method based on deep learning and combined with terrain of the present invention comprises the following steps:
[0006] (1) Collect ground elevation data, low-resolution numerical model forecast data, and high-resolution observation data, and preprocess the data to form a downscaled dataset;
[0007] (2) Building a vector-based neural network deep learning downscaling model; the model structure includes an auxiliary information processing part, a sub-network U and a sub-network V, wherein the sub-network U and the sub-network V have the same structure, both including a feature extraction part and a downscaling part, and the auxiliary information processing part includes three small networks with the same structure, which are respectively denoted as network I, network II and network III. The input of network I is the first preprocessed ground elevation data in the downscaling dataset, the input of network II is the second preprocessed ground elevation data in the downscaling dataset, and the input of network III is the downscaling dataset. The third set of ground elevation data after preprocessing in the network I; the outputs of network I, network II and network III are combined to obtain two sets of feature maps, which are recorded as the first input and the second input. The first input and the low-resolution numerical prediction data of the meridional wind are input into the sub-network V, and the second input and the low-resolution numerical prediction data of the zonal wind are input into the sub-network U; the sub-network V processes the input data through its feature extraction part and downscaling part and outputs a high-resolution meridional wind prediction result, and the sub-network U processes the input data through its feature extraction part and downscaling part and outputs a high-resolution zonal wind prediction result;
[0008] (3) Training a vector-based neural network deep learning downscaling model based on the downscaled dataset;
[0009] (4) Based on real-time low-resolution numerical model forecast data and high-resolution ground elevation data, high-resolution downscaled data are generated through the trained model.
[0010] Furthermore, the low-resolution numerical model forecast data in step (1), including the low-resolution numerical model forecast data of the zonal wind and the low-resolution numerical model forecast data of the meridional wind, are preprocessed by:
[0011] Firstly, the low-resolution numerical model forecast data of zonal wind and meridional wind are standardized. The standardization formula is:
[0012] ;
[0013] in, is the variable matrix to be standardized, is the standardized result, express The average value of express The standard deviation of
[0014] Secondly, after assigning null values to the ocean part of the forecast data, the nearest neighbor interpolation is performed on the ocean part of the forecast data and the observation data to obtain the preprocessed low-resolution numerical model forecast data of zonal wind and meridional wind, as well as the high-resolution observation data.
[0015] Furthermore, the ground elevation data preprocessing method in step (1) is:
[0016] First, the collected ground elevation data is divided into three parts. The first part of the ground elevation data is processed by using a standardized formula: ;
[0017] The second ground elevation data is processed by performing central difference in the x direction. The central difference expression is:
[0018] ;
[0019] in, Representatives in Gridded ground elevation data, Representatives in Gridded ground elevation data, Representatives in Gridded ground elevation data, Represents the grid points, For the east-west direction, is latitude;
[0020] The third set of ground elevation data is processed by performing central difference in the y direction. The central difference expression is:
[0021] ;
[0022] in, For the north-south direction;
[0023] Then, the second set of ground elevation data after central difference in the x direction and the third set of ground elevation data after central difference in the y direction are standardized according to the above standardization formula, and the ocean parts of the three processed ground elevation data are assigned null values and nearest neighbor interpolation operations to obtain three sets of pre-processed ground elevation data.
[0024] Furthermore, in step (2), network I, network II, and network III control the parameters of the convolution operation on their respective input data, respectively, so that the size of the feature map is gradually reduced, network I outputs the first group of feature maps and the second group of feature maps, network II outputs the third group of feature maps and the fourth group of feature maps, network III outputs the fifth group of feature maps and the sixth group of feature maps, the first group of feature maps is recorded as the first output I, the first output II, and the first output III, the second group of feature maps is recorded as the second output I, the second output II, and the second output III, the third group of feature maps is recorded as the third output I, the third output II, and the third output III, the fourth group of feature maps is recorded as the fourth output I, the fourth output II, and the fourth output III, the fifth group of feature maps is recorded as the fifth output I, the fifth output II, and the fifth output III, and the sixth group of feature maps is recorded as the sixth output I, the sixth output II, and the sixth output III;
[0025] The feature map obtained by combining the first output I, the third output I and the fifth output I after a convolution and activation process is recorded as the first input I, the feature map obtained by combining the first output II, the third output II and the fifth output II after a convolution and activation process is recorded as the first input II, and the feature map obtained by combining the first output III, the third output III and the fifth output III after a convolution and activation process is recorded as the first input III;
[0026] The feature map obtained by combining the second output I, the fourth output I and the sixth output I after a convolution and activation process is recorded as the second input I, the feature map obtained by combining the second output II, the fourth output II and the sixth output II after a convolution and activation process is recorded as the second input II, and the feature map obtained by combining the second output III, the fourth output III and the sixth output III after a convolution and activation process is recorded as the second input III;
[0027] The first input I, the first input II and the first input III input the subnetwork V, and the second input I, the second input II and the second input III input the subnetwork U.
[0028] Furthermore, in step (2), the input of the feature extraction part in the network U includes low-resolution numerical prediction data of zonal wind, the second input II of the auxiliary information processing part, and the second input III. The low-resolution numerical prediction data of zonal wind is processed by convolution and activation, and is combined with the second input II from the auxiliary information processing part after downsampling, and then is downsampled and upsampled twice, and after two jump connections, the feature map is output to the downscaling part; the downscaling part receives the feature map output from the feature extraction part and the second input I of the auxiliary information processing part, and performs upsampling by combining nearest neighbor interpolation with convolution, and finally outputs a high-resolution zonal wind prediction result after one denormalization operation.
[0029] Furthermore, in step (2), the input of the feature extraction part in the network V includes low-resolution numerical forecast data of the meridional wind, the first input II of the auxiliary information processing part, and the first input III. The low-resolution numerical forecast data of the meridional wind is processed by convolution and activation, and is combined with the first input II from the auxiliary information processing part after downsampling, and then is downsampled and upsampled twice, and after two jump connections, the feature map is output to the downscaling part; the downscaling part receives the feature map output from the feature extraction part and the first input I of the auxiliary information processing part, and performs upsampling by combining nearest neighbor interpolation with convolution, and finally outputs a high-resolution meridional wind prediction result after one denormalization operation.
[0030] Furthermore, the loss function of the vector-based neural network deep learning downscaling model in step (3) is for:
[0031] ;
[0032] in, Represents the grid points, is the total number of grid points; is the weight; The part that constrains the angle between the prediction vector and the observation vector represents the grid point 1 minus the cosine of the angle between the prediction vector and the observation vector; The part that constrains the magnitude of the prediction vector and the observation vector, representing the grid point The absolute value of the difference between the upper prediction vector and the observed vector;
[0033] and The expressions are:
[0034] ;
[0035] ;
[0036] in, is the forecast value of zonal wind, is the forecast value of the meridional wind, is the observed value of zonal wind, is the observed value of the meridional wind.
[0037] In one embodiment of the present invention, a wind field downscaling system based on deep learning and combined with terrain includes:
[0038] The dataset production unit is used to collect ground elevation data, low-resolution numerical model forecast data, and high-resolution observation data, and pre-process the data to form a downscaled dataset;
[0039] A model building unit is used to build a vector-based neural network deep learning downscaling model; the model structure includes an auxiliary information processing part, a sub-network U and a sub-network V, wherein the sub-network U and the sub-network V have the same structure, both including a feature extraction part and a downscaling part, the auxiliary information processing part includes three small networks with the same structure, respectively denoted as network I, network II and network III, the input of network I is the first pre-processed ground elevation data in the downscaling data set, the input of network II is the second pre-processed ground elevation data in the downscaling data set, and the input of network III is the downscaling The third set of ground elevation data after preprocessing is collected in the data set; the outputs of network I, network II and network III are combined to obtain two sets of feature maps, which are recorded as the first input and the second input. The first input and the low-resolution numerical prediction data of the meridional wind are input into sub-network V, and the second input and the low-resolution numerical prediction data of the zonal wind are input into sub-network U; sub-network V processes the input data through its feature extraction part and downscaling part and outputs a high-resolution meridional wind prediction result, and sub-network U processes the input data through its feature extraction part and downscaling part and outputs a high-resolution zonal wind prediction result;
[0040] A model training unit, for training a vector-based neural network deep learning downscaling model based on a downscaled dataset;
[0041] The test unit is used to generate high-resolution downscaled data through the trained model based on real-time low-resolution numerical model forecast data and high-resolution ground elevation data.
[0042] In one embodiment of the present invention, an electronic device includes:
[0043] A memory storing executable program code;
[0044] a processor coupled to the memory;
[0045] The processor calls the executable program code stored in the memory to execute the steps of the wind field downscaling method based on deep learning and combined with terrain as described above.
[0046] In one embodiment of the present invention, a computer-readable storage medium stores computer instructions, which, when called, are used to execute the steps of the wind field downscaling method based on deep learning and combined with terrain as described above.
[0047] Beneficial effects: Compared with the prior art, the advantages of the present invention are as follows: (1) in terms of the method of utilizing terrain data, not only the numerical value of the terrain elevation data itself is used, but also the terrain elevation data is processed by central difference in the x direction and the y direction respectively, so as to obtain the terrain changes in the two directions, so that the network receives richer information; and when utilizing terrain data, a method of adding a module to the network is used, namely, the auxiliary information processing part, which reduces the size of the feature map of the terrain data through layer-by-layer convolution and inputs it into the subsequent part of the network, so that the network can receive terrain data with a higher resolution than the forecast data or the observation data; (2) a vector-based network structure is used, and a new loss function is proposed; the network structure includes two sub-networks, which process the information in the east-west direction and the north-south direction respectively. Although the network structures of the two sub-networks are independent of each other, the two sub-networks are constrained by the same loss function, and the two sub-networks constrain each other and perform gradient descent at the same time, so that the network can comprehensively grasp the direction and size of the vector, and produce results with more application value and higher accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 is a flow chart of a method in an embodiment of the present invention;
[0049] Figure 2 A schematic diagram of the structure of a network auxiliary information processing part in an embodiment of the present invention;
[0050] Figure 3 It is a schematic diagram of the structure of the sub-network U of the present invention. DETAILED DESCRIPTION
[0051] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0052] like Figure 1 As shown in FIG. 1 , the wind field downscaling method based on deep learning and combined with terrain includes the following steps:
[0053] Step 1: Collect ground elevation data, low-resolution numerical model forecast data, and high-resolution observation data, and preprocess the data to form a downscaled dataset.
[0054] Select the numerical model and target area and collect low-resolution numerical model forecast data, high-resolution (i.e. target resolution) observation data, and high-resolution (higher than target resolution) ground elevation data for the corresponding area;
[0055] In this embodiment, the forecast data comes from the Global Ensemble Forecast System (GEFS) of the National Environmental Center (NCEP) with a resolution of 0.25°×0.25°, the observation data uses the ERA5-Land data of the European Center (ECMWF) with a resolution of 0.1°×0.1°, and the ground elevation data uses the ETOPO1 data provided by the ETOPO model maintained by the National Oceanic and Atmospheric Administration (NOAA) of the United States with a resolution of 1′×1′. Low-resolution numerical model forecast data, including low-resolution numerical model forecast data of zonal wind and low-resolution numerical model forecast data of meridional wind; and the low-resolution numerical model forecast data of zonal wind and meridional wind are standardized, and the standardized formula is:
[0056] ;
[0057] in, is the variable matrix to be standardized, is the standardized result, express The average value of express The standard deviation of .
[0058] Since the ocean part of the observed data is null, after assigning null values to the ocean part of the forecast data, the nearest neighbor interpolation is performed on the ocean part of the forecast data and the observed data.
[0059] Next is the processing of the ground elevation data. This model requires the input of three processed ground elevation data. First, the collected ground elevation data is divided into three parts. The first ground elevation data is processed as follows: the first ground elevation data is standardized according to formula (1).
[0060] The second ground elevation data is processed as follows: perform central difference on the x direction of the second ground elevation data. The central difference expression is:
[0061] ;
[0062] in, Representatives in Gridded ground elevation data, Representatives in Gridded ground elevation data, Representatives in Gridded ground elevation data, Represents the grid points, For the east-west direction, is the latitude, because the resolution of terrain data (i.e. ground elevation data) is ,so Represents the same latitude On the longitude, each change The distance in meters.
[0063] The processing method of the third set of ground elevation data is similar to that of the second set of ground elevation data. The difference is that the third set of ground elevation data is centrally differentiated in the y direction. The central differential expression is:
[0064] ;
[0065] in, Representatives in Gridded ground elevation data, Representatives in Gridded ground elevation data, Representatives in Gridded ground elevation data, For the north-south direction, Represents the same longitude, latitude change The distance in meters.
[0066] Then, the second set of ground elevation data after central difference in the x direction and the third set of ground elevation data after central difference in the y direction are standardized according to formula (1), and the ocean part of the three sets of processed ground elevation data is assigned a null value and the nearest neighbor interpolation operation is performed. At this point, three sets of processed ground elevation data, namely terrain data, are obtained.
[0067] The preprocessed low-resolution numerical model forecast data of zonal wind and meridional wind and three sets of ground elevation data constitute the downscaled dataset.
[0068] Step 2: Build a vector-based neural network deep learning downscaling model.
[0069] In this embodiment, the input of the vector-based neural network deep learning downscaling model is the downscaled data set constructed in step 1, including the pre-processed low-resolution numerical model forecast data of zonal wind and meridional wind, and three pre-processed ground elevation data, a total of five data. Two sets of data are output, which are the prediction results of high-resolution meridional wind and zonal wind. And because the loss function of this network contains content related to vector calculation and trigonometric functions, the data stream is de-standardized before the network outputs the prediction results, so the data input to this network is the forecast data after standardization, and the target data of the prediction results finally output is the observation data that has not been standardized. The structure of the deep learning downscaling model includes: an auxiliary information processing part, a sub-network U and a sub-network V, wherein the sub-network U and the sub-network V have the same structure, both including a feature extraction part and a downscaling part, and the deep learning downscaling model is an end-to-end convolutional neural network composed of an auxiliary information processing part, a feature extraction part and a downscaling part.
[0070] First, we will introduce the auxiliary information processing part, which is the part for processing ground elevation data. Figure 2 As shown in the figure, the auxiliary information processing part can be roughly divided into three small networks with the same structure, which are represented by different dotted boxes in the figure, and are denoted as network I, network II and network III. The input of network I is the first preprocessed ground elevation data in the downscaled dataset, the input of network II is the second preprocessed ground elevation data in the downscaled dataset, and the input of network III is the third preprocessed ground elevation data in the downscaled dataset.
[0071] The three preprocessed ground elevation data in the downscaling dataset are input into network I, network II and network III respectively. By controlling the parameters of the convolution operation, the size of the feature map is gradually reduced by 2, 3, 5 and 2 times of the original. The number of convolution kernels is {4, 16, 32, 32, 32} respectively. The output of network I includes two groups of feature maps. The first group of feature maps is recorded as the first output I, the first output II and the first output III, and the second group of feature maps is recorded as the second output I, the second output II and the second output III; the output of network II includes two identical groups of feature maps. The third group of feature maps is recorded as the third output I, the third output II and the third output III, and the fourth group of feature maps is recorded as the fourth output I, the fourth output II and the fourth output III; the output of network III includes two identical groups of feature maps. The fifth group of feature maps is recorded as the fifth output I, the fifth output II and the fifth output III, and the sixth group of feature maps is recorded as the sixth output I, the sixth output II and the sixth output III.
[0072] The first output I in the first group of feature maps, the third output I in the third group of feature maps, and the fifth output I in the fifth group of feature maps are combined after one convolution and activation process to obtain a feature map reduced by 6 times in total, recorded as the first input I; the first output II in the first group of feature maps, the third output II in the third group of feature maps, and the fifth output II in the fifth group of feature maps are combined after one convolution and activation process to obtain a feature map reduced by 30 times in total, recorded as the first input II; the first output III in the first group of feature maps, the third output III in the third group of feature maps, and the fifth output III in the fifth group of feature maps are combined after one convolution and activation process to obtain a feature map reduced by 60 times in total, recorded as the first input III.
[0073] The second output I in the second group of feature maps, the fourth output I in the fourth group of feature maps, and the sixth output I in the sixth group of feature maps are combined after one convolution and activation process to obtain a feature map reduced by 6 times in total, recorded as the second input I; the second output II in the second group of feature maps, the fourth output II in the fourth group of feature maps, and the sixth output II in the sixth group of feature maps are combined after one convolution and activation process to obtain a feature map reduced by 30 times in total, recorded as the second input II; the second output III in the second group of feature maps, the fourth output III in the fourth group of feature maps, and the sixth output III in the sixth group of feature maps are combined after one convolution and activation process to obtain a feature map reduced by 60 times in total, recorded as the second input III.
[0074] The first input I, the first input II and the first input III input the sub-network V, and the second input I, the second input II and the second input III input the sub-network U. The sub-network U has the same structure as the sub-network V, such as Figure 3 As shown, the sub-network U is taken as an example. The sub-network U includes a feature extraction part ( Figure 3 The solid line frame part) and the downscaled part ( Figure 3 The feature extraction part inputs low-resolution numerical forecast data of zonal wind, the second input II and the second input III of the auxiliary information processing part. The low-resolution numerical forecast data of zonal wind is processed by convolution and activation, and combined with the second input II from the auxiliary information processing part after downsampling. After two downsampling and upsampling, and after two jump connections, the feature map is output to the downscaling part. The downscaling part accepts the feature map output from the feature extraction part and the second input I of the auxiliary information processing part. In order to avoid the chessboard effect of the transposed convolution, this part adopts the method of combining the nearest neighbor interpolation with the convolution for upsampling, and finally outputs the high-resolution prediction result U (that is, the high-resolution zonal wind prediction result) after one denormalization operation. The sub-network V is the same, and will not be repeated. The input of the feature extraction part in the sub-network V includes the low-resolution numerical forecast data of the meridional wind, the first input II and the first input III of the auxiliary information processing part, and the downscaling part accepts the feature map output from the feature extraction part and the first input I of the auxiliary information processing part; finally, it outputs the high-resolution prediction result V (that is, the high-resolution meridional wind prediction result).
[0075] The first input I, the first input II, and the first input III can also be multiplied by a custom trainable parameter matrix with an initial value of 1, the same size as itself, and the number of channels as 1 before being input into the sub-network V; the second input I, the second input II, and the second input III can also be multiplied by a custom trainable parameter matrix with an initial value of 1, the same size as itself, and the number of channels as 1 before being input into the sub-network U; wherein the values in the custom trainable parameter matrix change with the gradient descent back propagation iteration during the training process. This operation adds a layer of weights, which can reduce the error.
[0076] Step 3: Based on the downscaling dataset constructed in step 1, the vector-based neural network deep learning downscaling model constructed in step 2 is trained.
[0077] The data in the downscaled dataset are divided into training set, validation set and test set according to the year. The training set and validation set are randomly divided into batches to train the vector-based neural network deep learning downscaling model. The model performs gradient descent based on the difference between the model results and the target data in the training set. The loss function used to measure this difference consists of two parts. First, the part of the loss function that constrains the modulus of the predicted data vector and the observed data vector is defined. :
[0078] ;
[0079] in, Represents the grid points, is the forecast value of zonal wind, is the forecast value of the meridional wind, is the observed value of zonal wind, is the observed value of the meridional wind, Representative grid points The absolute value of the difference between the predicted vector and the observed vector. Next, define the part of the loss function that constrains the angle between the predicted vector and the observed vector. :
[0080] ;
[0081] in, Representative grid points 1 minus the cosine of the angle between the predicted vector and the observed vector. The final overall loss function is for:
[0082] ;
[0083] in, is the total number of grid points, Since this loss function involves vector operations and needs to use the positive or negative value to represent the direction information, a denormalization operation is required before the network outputs the prediction result.
[0084] Step 4: Generate high-resolution downscaling data through the trained model based on real-time low-resolution numerical model forecast data and high-resolution ground elevation data. Extract low-resolution forecast data and high-resolution ground elevation data of the target range, and together form input variables to input into the trained model to obtain high-resolution downscaling results (i.e., high-resolution zonal wind forecast results and high-resolution meridional wind forecast results).
[0085] The downscaling method of the present invention performs downscaling prediction of the latitude and longitude resolution of the low-resolution numerical model forecast data from 0.25°×0.25° to 0.1°×0.1° based on the low-resolution numerical model forecast data, the high-resolution observation data and the ground elevation data, and has extremely strong application value; in terms of the way of using terrain data, the present invention not only uses the numerical value of the ground elevation data itself, but also performs central difference processing on the ground elevation data in the x direction and the y direction, and obtains the changes in the terrain in the two directions, so that the network receives richer information; after the data is input into the network, the network processes the three data separately, and the corresponding parts After the combination, the sub-network U and the sub-network V are respectively connected, so that the network can more easily extract information that is beneficial to the downscaling result, thereby improving the fitting effect of the network; in terms of network structure, based on the characteristic that the wind field is a vector field, the present invention uses a vector-based network structure and proposes a new loss function. This network structure is composed of two sub-networks, which process the information in the longitude and latitude directions respectively. Although the network structures of the two sub-networks are independent of each other, the two sub-networks are constrained by the same loss function, and the two sub-networks restrict each other and perform gradient descent at the same time, so that the network can comprehensively grasp the direction and size of the vector, and produce results with more application value and higher accuracy.
Claims
1. A wind field downscaling method based on deep learning and combined with terrain, characterized in that: The following steps are involved: (1) Collect ground elevation data, low-resolution numerical model prediction data, and high-resolution observation data, and preprocess the data to form a downscaled dataset; The low-resolution numerical model forecast data, including the low-resolution numerical model forecast data of zonal wind and the low-resolution numerical model forecast data of meridional wind, are preprocessed by: Firstly, the low-resolution numerical model forecast data of zonal wind and meridional wind are standardized. The standardization formula is: Among them, M is the variable matrix to be standardized, M std is the standardized result, mean(M) represents the mean value of M, and std(M) represents the standard deviation of M; Secondly, after assigning null values to the ocean part of the forecast data, the nearest neighbor interpolation is performed on the ocean part of the forecast data and the observation data to obtain the preprocessed low-resolution numerical model forecast data of zonal wind and meridional wind, as well as the high-resolution observation data; The ground elevation data preprocessing method is: Firstly, the collected ground elevation data is divided into three parts. The first part of ground elevation data is processed as follows: standardization is performed using the above standardization formula; The second ground elevation data is processed by performing central difference in the x direction. The central difference expression is: Among them, e i,j Represents the ground elevation data at the (i, j) grid point, e i+1,j Represents the ground elevation data at the (i+1,j) grid point, e i-1,j Represents the ground elevation data at the (i-1, j) grid point, i, j represent the grid points, x is the east-west direction, and θ is the latitude; The third set of ground elevation data is processed by performing central difference in the y direction. The central difference expression is: Among them, y is the north-south direction; Then, the second set of ground elevation data after central difference in the x direction and the third set of ground elevation data after central difference in the y direction are standardized according to the above standardization formula, and the ocean parts of the three sets of processed ground elevation data are assigned null values and nearest neighbor interpolation operations to obtain three sets of pre-processed ground elevation data; (2) Building a vector-based neural network deep learning downscaling model; the model structure includes an auxiliary information processing part, a sub-network U and a sub-network V, wherein the sub-network U and the sub-network V have the same structure, both including a feature extraction part and a downscaling part, the auxiliary information processing part includes three small networks with the same structure, respectively denoted as network I, network II and network III, the input of network I is the first preprocessed ground elevation data in the downscaling data set, the input of network II is the second preprocessed ground elevation data in the downscaling data set, and the input of network III is the third preprocessed ground elevation data in the downscaling data set; the outputs of network I, network II and network III are combined to obtain two sets of feature maps, denoted as the first input and the second input, the first input and the low-resolution numerical prediction data of the meridional wind are input to the sub-network V, and the second input and the low-resolution numerical prediction data of the zonal wind are input to the sub-network U; the sub-network V processes the input data through its feature extraction part and the downscaling part and outputs a high-resolution meridional wind prediction result, and the sub-network U processes the input data through its feature extraction part and the downscaling part and outputs a high-resolution zonal wind prediction result; Network I, network II and network III respectively control the parameters of the convolution operation on their respective input data so that the size of the feature map is gradually reduced. Network I outputs the first group of feature maps and the second group of feature maps, network II outputs the third group of feature maps and the fourth group of feature maps, and network III outputs the fifth group of feature maps and the sixth group of feature maps. The first group of feature maps is recorded as the first output I, the first output II and the first output III, the second group of feature maps is recorded as the second output I, the second output II and the second output III, the third group of feature maps is recorded as the third output I, the third output II and the third output III, the fourth group of feature maps is recorded as the fourth output I, the fourth output II and the fourth output III, the fifth group of feature maps is recorded as the fifth output I, the fifth output II and the fifth output III, and the sixth group of feature maps is recorded as the sixth output I, the sixth output II and the sixth output III; The feature map obtained by combining the first output I, the third output I and the fifth output I after a convolution and activation process is recorded as the first input I, the feature map obtained by combining the first output II, the third output II and the fifth output II after a convolution and activation process is recorded as the first input II, and the feature map obtained by combining the first output III, the third output III and the fifth output III after a convolution and activation process is recorded as the first input III; The feature map obtained by combining the second output I, the fourth output I and the sixth output I after a convolution and activation process is recorded as the second input I, the feature map obtained by combining the second output II, the fourth output II and the sixth output II after a convolution and activation process is recorded as the second input II, and the feature map obtained by combining the second output III, the fourth output III and the sixth output III after a convolution and activation process is recorded as the second input III; The first input I, the first input II and the first input III input sub-network V, the second input I, the second input II and the second input III input sub-network U; The input of the feature extraction part in the sub-network U includes low-resolution numerical prediction data of zonal wind, the second input II and the second input III of the auxiliary information processing part. The low-resolution numerical prediction data of zonal wind is processed by convolution and activation, and is combined with the second input II from the auxiliary information processing part after downsampling, and then is downsampled and upsampled twice, and after two jump connections, the feature map is output to the downscaling part; the downscaling part receives the feature map output from the feature extraction part and the second input I of the auxiliary information processing part, and performs upsampling by combining nearest neighbor interpolation with convolution, and finally outputs a high-resolution zonal wind prediction result after a denormalization operation; The input of the feature extraction part in the sub-network V includes low-resolution numerical forecast data of the meridional wind, the first input II and the first input III of the auxiliary information processing part. The low-resolution numerical forecast data of the meridional wind is processed by convolution and activation, and is combined with the first input II from the auxiliary information processing part after downsampling, and then outputs the feature map to the downscaling part after two downsampling and upsampling, and two jump connections; the downscaling part receives the feature map output from the feature extraction part and the first input I of the auxiliary information processing part, and performs upsampling by combining the nearest neighbor interpolation with the convolution, and finally outputs the high-resolution meridional wind prediction result after one denormalization operation; (3) Training a vector-based neural network deep learning downscaling model based on the downscaled dataset; Loss function of vector-based neural network deep learning downscaling model vector for: Where n represents the grid point, N is the total number of grid points; λ is the weight; Loss an The part that constrains the angle between the prediction vector and the observation vector represents the cosine value of the angle between the prediction vector and the observation vector minus 1 on the grid point n; Loss mn The part that constrains the modulus of the prediction vector and the observation vector represents the absolute value of the difference between the modulus of the prediction vector and the observation vector at grid point n; Loss mn and Loss an The expressions are: Among them, f un is the forecast value of zonal wind, f vn is the forecast value of the meridional wind, o un is the observed value of zonal wind, o vn is the observed value of meridional wind; (4) Based on real-time low-resolution numerical model forecast data and high-resolution ground elevation data, high-resolution downscaled data are generated through the trained model.
2. A wind field downscaling system based on deep learning and combined with terrain, characterized in that: include: The dataset production unit is used to collect ground elevation data, low-resolution numerical model forecast data, and high-resolution observation data, and pre-process the data to form a downscaled dataset; The low-resolution numerical model forecast data, including the low-resolution numerical model forecast data of zonal wind and the low-resolution numerical model forecast data of meridional wind, are preprocessed by: Firstly, the low-resolution numerical model forecast data of zonal wind and meridional wind are standardized. The standardization formula is: Among them, M is the variable matrix to be standardized, M std is the standardized result, mean(M) represents the mean value of M, and std(M) represents the standard deviation of M; Secondly, after assigning null values to the ocean part of the forecast data, the nearest neighbor interpolation is performed on the ocean part of the forecast data and the observation data to obtain the preprocessed low-resolution numerical model forecast data of zonal wind and meridional wind, as well as the high-resolution observation data; The ground elevation data preprocessing method is: Firstly, the collected ground elevation data is divided into three parts. The first part of ground elevation data is processed as follows: standardization is performed using the above standardization formula; The second ground elevation data is processed by performing central difference in the x direction. The central difference expression is: Among them, e i,j Represents the ground elevation data at the (i, j) grid point, e i+1,j Represents the ground elevation data at the (i+1,j) grid point, e i-1,j Represents the ground elevation data at the (i-1, j) grid point, i, j represent the grid points, x is the east-west direction, and θ is the latitude; The third set of ground elevation data is processed by performing central difference in the y direction. The central difference expression is: Among them, y is the north-south direction; Then, the second set of ground elevation data after central difference in the x direction and the third set of ground elevation data after central difference in the y direction are standardized according to the above standardization formula, and the ocean parts of the three sets of processed ground elevation data are assigned null values and nearest neighbor interpolation operations to obtain three sets of pre-processed ground elevation data; A model building unit is used to build a vector-based neural network deep learning downscaling model; the model structure includes an auxiliary information processing part, a sub-network U and a sub-network V, wherein the sub-network U and the sub-network V have the same structure, both including a feature extraction part and a downscaling part, the auxiliary information processing part includes three small networks with the same structure, respectively denoted as network I, network II and network III, the input of network I is the first pre-processed ground elevation data in the downscaling data set, the input of network II is the second pre-processed ground elevation data in the downscaling data set, and the input of network III is the downscaling The third set of ground elevation data after preprocessing is collected in the data set; the outputs of network I, network II and network III are combined to obtain two sets of feature maps, which are recorded as the first input and the second input. The first input and the low-resolution numerical prediction data of the meridional wind are input into sub-network V, and the second input and the low-resolution numerical prediction data of the zonal wind are input into sub-network U; sub-network V processes the input data through its feature extraction part and downscaling part and outputs a high-resolution meridional wind prediction result, and sub-network U processes the input data through its feature extraction part and downscaling part and outputs a high-resolution zonal wind prediction result; Network I, network II and network III respectively control the parameters of the convolution operation on their respective input data so that the size of the feature map is gradually reduced. Network I outputs the first group of feature maps and the second group of feature maps, network II outputs the third group of feature maps and the fourth group of feature maps, and network III outputs the fifth group of feature maps and the sixth group of feature maps. The first group of feature maps is recorded as the first output I, the first output II and the first output III, the second group of feature maps is recorded as the second output I, the second output II and the second output III, the third group of feature maps is recorded as the third output I, the third output II and the third output III, the fourth group of feature maps is recorded as the fourth output I, the fourth output II and the fourth output III, the fifth group of feature maps is recorded as the fifth output I, the fifth output II and the fifth output III, and the sixth group of feature maps is recorded as the sixth output I, the sixth output II and the sixth output III; The feature map obtained by combining the first output I, the third output I and the fifth output I after a convolution and activation process is recorded as the first input I, the feature map obtained by combining the first output II, the third output II and the fifth output II after a convolution and activation process is recorded as the first input II, and the feature map obtained by combining the first output III, the third output III and the fifth output III after a convolution and activation process is recorded as the first input III; The feature map obtained by combining the second output I, the fourth output I and the sixth output I after a convolution and activation process is recorded as the second input I, the feature map obtained by combining the second output II, the fourth output II and the sixth output II after a convolution and activation process is recorded as the second input II, and the feature map obtained by combining the second output III, the fourth output III and the sixth output III after a convolution and activation process is recorded as the second input III; The first input I, the first input II and the first input III input sub-network V, the second input I, the second input II and the second input III input sub-network U; The input of the feature extraction part in the sub-network U includes low-resolution numerical prediction data of zonal wind, the second input II and the second input III of the auxiliary information processing part. The low-resolution numerical prediction data of zonal wind is processed by convolution and activation, and is combined with the second input II from the auxiliary information processing part after downsampling, and then is downsampled and upsampled twice, and after two jump connections, the feature map is output to the downscaling part; the downscaling part receives the feature map output from the feature extraction part and the second input I of the auxiliary information processing part, and performs upsampling by combining nearest neighbor interpolation with convolution, and finally outputs a high-resolution zonal wind prediction result after a denormalization operation; The input of the feature extraction part in the sub-network V includes low-resolution numerical forecast data of the meridional wind, the first input II and the first input III of the auxiliary information processing part. The low-resolution numerical forecast data of the meridional wind is processed by convolution and activation, and is combined with the first input II from the auxiliary information processing part after downsampling, and then outputs the feature map to the downscaling part after two downsampling and upsampling, and two jump connections; the downscaling part receives the feature map output from the feature extraction part and the first input I of the auxiliary information processing part, and performs upsampling by combining the nearest neighbor interpolation with the convolution, and finally outputs the high-resolution meridional wind prediction result after one denormalization operation; A model training unit, for training a vector-based neural network deep learning downscaling model based on a downscaled dataset; Loss function of vector-based neural network deep learning downscaling model vector for: Where n represents the grid point, N is the total number of grid points; λ is the weight; Loss an The part that constrains the angle between the prediction vector and the observation vector represents the cosine value of the angle between the prediction vector and the observation vector minus 1 on the grid point n; Loss mn The part that constrains the modulus of the prediction vector and the observation vector represents the absolute value of the difference between the modulus of the prediction vector and the observation vector at grid point n; Loss mn and Loss an The expressions are: Among them, f un is the forecast value of zonal wind, f vn is the forecast value of the meridional wind, o un is the observed value of zonal wind, o vn is the observed value of meridional wind; The test unit is used to generate high-resolution downscaled data through the trained model based on real-time low-resolution numerical model forecast data and high-resolution ground elevation data.
3. An electronic device, characterized in that: The device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the steps of the wind field downscaling method based on deep learning and combined with terrain as claimed in claim 1.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, which, when called, are used to execute the steps of the wind field downscaling method based on deep learning and combined with terrain as claimed in claim 1.
Citation Information
Patent Citations
Ocean wind energy downscaling method based on deep learning neural network
CN111488974A
Mode forecast product downscaling method based on deep learning
CN116467946A
Downscaling method based on Diffusion and ViT
CN117236201A
Meteorological radar precipitation rate downscaling method based on visible light image
CN117409335A
