A sub-seasonal extreme high temperature prediction method based on improved U-Net network
Through the improved U-Net network and residual module, combined with the weighted loss function, the connection problem between weather forecast and climate forecast is solved, and the accuracy and efficiency of sub-seasonal extreme high temperature prediction are improved, especially in the 3-4 week forecast. significantly better than traditional methods.
Patent Information
- Application Number
- CN202410798747.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-20
AI Technical Summary
The existing technology lacks connectivity between two-week weather forecasts and long-term climate forecasts, resulting in the inability to accurately predict risks in the weeks before extreme high temperature weather. Traditional linear statistical methods cannot effectively capture the nonlinear characteristics of the atmosphere, resulting in low prediction accuracy.
An improved U-Net network is used, combined with the residual module and weighted loss function, to construct a deep learning model for sub-seasonal extreme high temperature prediction. ERA5 reanalysis data and ECMWF model forecast data are used to perform data processing through the encoder, decoder and output layer. processing and prediction.
It improves the accuracy and information utilization efficiency of sub-seasonal extreme high temperature prediction, and is superior to traditional methods when forecasting 1-4 weeks in advance. Especially when forecasting 3-4 weeks, the accuracy is significantly improved and the consumption of manpower and computing resources is reduced.
Smart Images

Figure CN118364301B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sub-seasonal climate prediction, and in particular to a sub-seasonal extreme high temperature prediction method based on an improved U-Net network. Background Art
[0002] The current level of technology can generally make a good forecast of heat wave disaster events within the conventional weather forecast time. In order to better manage risks, it is crucial to accurately predict high temperatures within a forecast time of more than 10 days. At present, the more mature weather forecasts include short-term forecasts for weather processes and phenomena within two weeks, as well as long-term climate estimates. However, there is a lack of connected forecast data between the two, that is, the weather forecast within two weeks and the long-term climate forecast. This leads to the inability to accurately estimate risks and respond to disasters efficiently in the weeks before some extreme weather occurs. Therefore, in order to meet the needs of seamless and uninterrupted forecasts, it is of vital importance to bridge the gap between medium- and short-term weather and climate forecasts based on the sub-seasonal to seasonal scale, which corresponds to forecasts of more than 2 weeks but less than one season. For sub-seasonal forecasts, extreme high temperature forecasts are currently mainly based on a combination of traditional statistics and dynamic statistics. Although traditional methods can improve forecasting skills, they are all linear statistics, and the atmosphere is a highly nonlinear system, so traditional methods themselves have limitations. With the advent of the big data era and the development of artificial intelligence technology, deep learning methods have demonstrated a powerful ability to capture nonlinear feature abstraction, showing greater superiority than other methods. Summary of the invention
[0003] Purpose of the invention: The purpose of the present invention is to provide a sub-seasonal extreme high temperature prediction method based on an improved U-Net network, aiming to improve the prediction accuracy of extreme high temperature sub-seasonal scale climate forecast while reducing the consumption of manpower and computing resources.
[0004] Technical solution: The sub-seasonal extreme high temperature prediction method based on an improved U-Net network described in the present invention comprises the following steps:
[0005] (1) Select the numerical model and target area, select the physical factors that affect extreme high temperatures, construct the data set and perform preprocessing;
[0006] (2) Construct a U-Net deep learning model based on the residual module;
[0007] (3) Training the model: the processed data is divided into training set, validation set and test set according to the year, and the training set and validation set are randomly divided into batches to train the network;
[0008] (4) Input the multi-factor pattern data of the test set into the trained model to obtain the final sub-seasonal extreme high temperature prediction results.
[0009] Furthermore, step (1) is as follows: using ERA5 reanalysis data and ECMWF model forecast data, and performing normalization processing, constructing a data set, and dividing the data set into a training set, a validation set, and a test set; wherein the physical factors include: geopotential heights at 200, 500, and 850 hPa, wind field, specific humidity, and vertical humidity.
[0010] Furthermore, step (2) is specifically as follows: the U-Net deep learning model of the residual module includes: an encoder, a residual module, a decoder and an output layer; wherein the residual module is used to replace all convolutional modules in the U-Net.
[0011] Furthermore, step (2) includes the following steps:
[0012] (21) Encoding: The normalized dataset is used as input data and downsampled twice using the residual module and maximum pooling. All activation functions are linear rectification functions (ReLU).
[0013] (22) Residual module: The input data is divided into two groups. One group of data passes through a 1 x 1 convolution layer, a 3 x 3 convolution layer, and a 1 x 1 convolution layer, and the other group of data passes through a 1 x 1 convolution layer. The two groups of data are concatenated.
[0014] (23) The decoding consists of two upsampling modules, each block contains a deconvolution layer, a residual block, a batch normalization and an activation function; each layer in the decoder is connected to the corresponding layer in the encoder, and the semantic information of the bottom layer and the high layer is combined through a skip connection, that is, a U-shaped convolutional network structure with a head-to-tail to middle-to-middle skip connection is adopted;
[0015] (24) The output layer maps the decoder output to the final regression prediction result through a 1x1 convolutional layer.
[0016] Furthermore, step (3) is as follows: using the mean square error MSE and risk score TS weighted loss function, gradient descent is performed according to the difference between the model results in the training set and the target data; wherein the loss function loss formula is as follows:
[0017] ;
[0018] ;
[0019] ;
[0020] Where a is a hyperparameter, i is the grid point location, is the result of model i grid point, is the value of the target i grid point, N is the total number of grid points; Hits represents the number of observed extreme high temperatures that are correctly predicted; The number of predicted extreme heat events that did not actually occur, Represents the number of observed extreme heat events that were not forecasted.
[0021] Furthermore, in step (3), the model structure and parameters including convolution layer settings, pooling layer settings, learning rate, and optimization algorithm are adjusted during the training process to obtain a model with the smallest downscaling error.
[0022] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: 1. The present invention uses the U-Net network as the model body, takes into account the correlation between the target data and the input data and the model deviation problem, and combines the residual module in the U-Net network structure to improve data utilization efficiency, enhance the network fitting ability, and improve the model learning ability; 2. Based on the extreme high temperature threshold, a weighted loss function of mean square error (MSE) and risk score (TS) is constructed, which is conducive to improving the sub-seasonal prediction effect of extreme high temperature; 3. The network structure of the present invention is U-shaped as a whole, and the jump connection not only enables the network to couple receptive fields of different sizes, that is, information of different scales in meteorology, thereby improving the efficiency of information utilization, but also enables the various parts of the network to be harmoniously combined; The deep learning method of the present invention is superior to the traditional method and model forecast results under the forecast time of 1-4 weeks in advance, especially 3-4 weeks in advance. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is the principle diagram of the present invention;
[0024] Figure 2 This is the architecture diagram of the U-Net deep learning prediction model (Res-UNet) of the present invention;
[0025] Figure 3 The network structure diagram of the upsampling, downsampling and residual modules of the Res-UNet model of the present invention. DETAILED DESCRIPTION
[0026] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0027] like Figure 1 As shown, an embodiment of the present invention provides a sub-seasonal extreme high temperature prediction method based on an improved U-Net network, comprising the following steps:
[0028] (1) Select the numerical model and target area, select the physical factors that affect extreme high temperatures, construct the data set and perform preprocessing; specifically, use ERA5 reanalysis data and ECMWF model forecast data, perform normalization processing, construct the data set, and divide the data set into training set, validation set and test set; the physical factors include: 200, 500 and 850 hPa potential height, wind field, specific humidity and vertical humidity.
[0029] (2) Construct a U-Net deep learning model based on the residual module; the U-Net deep learning model of the residual module includes: an encoder, a residual module, a decoder, and an output layer; wherein the residual module is used to replace all convolutional modules in the U-Net. The following steps are included:
[0030] (21) Coding: Figure 2 and Figure 3 In the yellow background, the normalized data set is used as input data, and downsampled twice using the residual module and maximum pooling. All activation functions are linear rectification functions ReLU activation.
[0031] (22) Residual module: Figure 3 The red background part shown divides the input data into two groups, one of which passes through a 1x 1 convolution layer, a 3x3 convolution layer, and a 1x1 convolution layer, and the other passes through a 1x1 convolution layer; the two groups of data are concatenated;
[0032] (23) Decoding as Figure 2 and Figure 3 The blue background part is composed of two upsampling modules, each of which contains a deconvolution layer, a residual block, a batch normalization and an activation function. Each layer in the decoder is connected to the corresponding layer in the encoder, and the semantic information of the bottom layer and the high layer is combined through a jump connection, that is, a U-shaped convolutional network structure with a head-to-tail to middle-to-middle jump connection is adopted.
[0033] in, Figure 2The parameters in are as follows: The size of the input image is (20, 16, 19), which means the width and height of the study area (latitude and longitude range: 103°E-122°E; 21°N-36°N) are 20 and 16, respectively, and 19 channels represent the input features (EC's high temperature forecast and atmospheric variables based on physical mechanisms). The parameters marked above each layer in Res-UNet represent the number of channels in each layer, and the parameters marked below each layer in Res-UNet represent the horizontal size of each layer. The red arrows represent residual blocks. The white arrows represent skip connections, i.e., feature concatenation. The green and blue arrows represent maximum pooling and deconvolution, respectively. After the residual operation, the width and height of the input and output remain unchanged, and the number of convolution kernels determines the number of output channels. Accordingly, the maximum pooling operation and the deconvolution operation keep the number of channels unchanged, but reduce and increase the spatial dimension, respectively. The skip connection can retain small-scale, high-frequency information. The output layer has a single channel with the same spatial dimension as the input high temperature forecast. Therefore, after the first residual operation, the size is (20, 16, 32). After the first maximum pooling, the size is (10, 8, 32); after the second residual operation, the size is (10, 8, 64), and after the second maximum pooling, the size is (5, 4, 64). The deconvolution operation is similar.
[0034] (24) The output layer maps the decoder output to the final regression prediction result through a 1x1 convolutional layer.
[0035] (3) Training the model: the processed data is divided into training set, validation set and test set according to the year, and the training set and validation set are randomly divided into batches to train the network; the details are as follows: using the mean square error MSE and risk score TS weighted loss function, gradient descent is performed according to the difference between the model results in the training set and the target data; the loss function loss formula is as follows:
[0036] ;
[0037] ;
[0038] ;
[0039] Where a is a hyperparameter, i is the grid point location, is the result of model i grid point, is the value of the target i grid point, N is the total number of grid points; Hits represents the number of observed extreme high temperatures that are correctly predicted; The number of predicted extreme heat events that did not actually occur, Represents the number of observed extreme heat events that were not forecasted.
[0040] During the training process, the model structure and parameters including convolution layer settings, pooling layer settings, learning rate, and optimization algorithm are adjusted to obtain a model with the smallest downscaling error.
[0041] The hyperparameter a is determined based on the model performance in the validation data set. In particular, the MSE and TS of the Res-UNet model are evaluated and gradually adjusted during the model validation process, indicating the predictive capabilities of general statistics and local extreme events, respectively. A larger a is associated with a stronger ability of the model to capture extreme high temperatures, but the overall prediction skill will be lost. In the present invention, efforts are made to improve the sub-seasonal to seasonal high temperature forecasting skills in general statistics and local extreme events, so hyperparameter adjustment is expected to enhance the forecasting skills for extreme events while controlling the loss of overall forecasting skills. After adjusting the deep learning model structure during multiple training processes, the hyperparameter a for each different forecast time is 0.5, 1.5, 2, and 2, respectively. At the same time, when training the model, the Adam optimizer is used to dynamically adjust the learning rate strategy, which can help the model converge faster and minimize the error obtained by training. Then test with the test set.
[0042] (4) Input the multi-factor pattern data of the test set into the trained model to obtain the final sub-seasonal extreme high temperature prediction results.
Claims
1. A sub-seasonal extreme high temperature prediction method based on an improved U-Net network, characterized in that: The following steps are involved: (1) Select numerical models and target areas, obtain physical factors affecting extreme high temperatures, construct a data set and perform preprocessing. Specifically, use ERA5 reanalysis data and ECMWF model forecast data, perform normalization, construct a data set, and divide the data set into training set, validation set and test set. The physical factors include: geopotential height at 200, 500 and 850 hPa, wind field, specific humidity and vertical humidity. (2) Constructing a U-Net deep learning model based on the residual module; specifically, the U-Net deep learning model of the residual module includes: an encoder, a residual module, a decoder, and an output layer; wherein, all convolutional modules in the U-Net are replaced by the residual module; including the following steps: (21) Encoding: The normalized dataset is used as input data and downsampled twice using the residual module and maximum pooling. All activation functions are linear rectification functions (ReLU). (22) Residual module: The input data is divided into two groups. One group of data passes through a 1 x 1 convolution layer, a 3 x 3 convolution layer, and a 1 x 1 convolution layer, and the other group of data passes through a 1 x 1 convolution layer. The two groups of data are concatenated. (23) The decoding consists of two upsampling modules, each block contains a deconvolution layer, a residual block, a batch normalization and an activation function; each layer in the decoder is connected to the corresponding layer in the encoder, and the semantic information of the bottom layer and the high layer is combined through a skip connection, that is, a U-shaped convolutional network structure with a head-to-tail to middle-to-middle skip connection is adopted; (24) The output layer maps the decoder output to the final regression prediction result through a 1x1 convolutional layer; (3) Training the model: the processed data is divided into training set, validation set and test set according to the year, and the training set and validation set are randomly divided into batches to train the network; the details are as follows: using the mean square error MSE and risk score TS weighted loss function, gradient descent is performed according to the difference between the model results in the training set and the target data; the loss function loss formula is as follows: ; ; ; Where a is a hyperparameter, i is the grid point location, is the result of model i grid point, is the value of the target i grid point, N is the total number of grid points; Hits represents the number of observed extreme high temperatures that are correctly predicted; The number of predicted extreme heat events that did not actually occur, represents the number of observed extreme high temperatures that were not forecasted; the hyperparameter a for each different forecast time is 0.5, 1.5, 2, and 2 respectively; during the training process, the model structure and parameters including convolutional layer settings, pooling layer settings, learning rate, and optimization algorithm are adjusted to train a model with the smallest downscaling error.
