Precipitation forecast method, equipment, device and storage medium
Through the discretization of precipitation data and the application of deep learning models, combined with the basic meteorological elements of numerical weather prediction models, the problems of uncertainty and unparsable processes in precipitation forecasts are solved, and more accurate precipitation forecasts and Continuity forecast.
Patent Information
- Application Number
- CN202111248447.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-26
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-10-26
AI Technical Summary
Existing numerical weather prediction models have uncertainties and unparsable processes in the precipitation process, which results in limited precipitation forecast performance, making it difficult to achieve better quantitative mid- and short-term forecasts of precipitation processes of different intensities.
By discretizing the precipitation data and combining the basic meteorological elements of the numerical weather forecast model, a pre-trained precipitation forecast model is obtained, and the deep learning method is used to establish a convolution layer, residual connection layer, pooling layer, and upsampling. A precipitation forecast model with layer, attention layer and softmax classifier is used to perform multi-classification prediction of precipitation to achieve continuous precipitation forecast.
A more accurate continuous precipitation forecast is achieved, improving the forecast accuracy and continuity of the precipitation process.
Smart Images

Figure CN113962465B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of weather forecasting, and in particular to a precipitation forecasting method, equipment, device and storage medium. Background Art
[0002] Numerical weather prediction (NWP) has developed into the core and foundation of modern weather forecasting services.
[0003] Basic meteorological elements such as temperature, air pressure, humidity and wind field can be described by the basic atmospheric equations, and the forecast results are highly accurate. However, some physical processes, such as cumulus convection, cloud microphysics, turbulence and radiation, cannot be resolved from the basic atmospheric equations and require the help of parameterization schemes. Different NWP models may use different parameterization schemes, which contain the key characteristics of the simulated weather and play a decisive role in the forecast performance. However, there is inherent uncertainty in the physical parameterization scheme. On the one hand, it comes from the fact that the atmospheric physical processes during precipitation are not fully understood, and on the other hand, it comes from the influence of unresolvable processes on the resolvable scale, making the parameterization scheme an important bottleneck restricting the improvement of NWP forecast performance.
[0004] Therefore, how to achieve better quantitative medium- and short-term forecasts of precipitation processes of different intensities has become a key issue that needs to be solved urgently. Summary of the invention
[0005] The embodiments of the present application provide a precipitation forecasting method, equipment, device and storage medium to solve the problem of achieving better quantitative medium- and short-term forecasts of precipitation processes of different intensities in the prior art, and to achieve more accurate forecasts of continuous precipitation.
[0006] In a first aspect, an embodiment of the present application provides a precipitation forecasting method, the method comprising:
[0007] Discretize the precipitation data used for precipitation forecast to obtain the discretized precipitation magnitude;
[0008] The basic meteorological elements of the numerical weather prediction model NWP are determined as the forecast factors for precipitation forecast;
[0009] Based on the prediction factor and the precipitation level, obtaining a pre-trained precipitation forecast model;
[0010] Based on the precipitation forecast model, multi-classification precipitation forecast is performed to obtain continuous precipitation forecast results.
[0011] Optionally, according to a precipitation forecasting method of an embodiment of the present application, the step of discretizing the precipitation data used for precipitation forecasting to obtain the discretized precipitation level includes:
[0012] The discretized precipitation level is obtained by determining the range of the precipitation data and the precipitation level resolution; wherein the precipitation level includes:
[0013] R C ={0,Rmin,Rmin+ΔR,Rmin+2·ΔR,…,Rmax}
[0014] Among them, R C represents the discretized precipitation magnitude, R min Indicates the minimum precipitation data, R max represents the maximum precipitation data, and ΔR represents the precipitation level resolution.
[0015] Optionally, according to the precipitation forecasting method of an embodiment of the present application, the precipitation forecasting model is established by deep learning.
[0016] Optionally, according to the precipitation forecasting method of an embodiment of the present application, the precipitation forecast model includes: a convolution layer, a residual connection layer, a pooling layer, an upsampling layer, an attention layer and a softmax classifier; the convolution layer, the pooling layer and the upsampling layer are used to extract weather system characteristics in three-dimensional space; the residual connection layer is used to train the precipitation forecast model; the attention layer is used to extract global features of the forecasting factors; the softmax classifier is used to output the probability of the discretized precipitation level.
[0017] Optionally, according to a precipitation forecasting method according to an embodiment of the present application, the basic meteorological elements of the NWP include temperature, air pressure, humidity and wind field;
[0018] The potential height layer of the predictor includes one or more of the following: 100 hPa, 150 hPa, 200 hPa, 250 hPa, 300 hPa, 400 hPa, 500 hPa, 600 hPa, 700 hPa, 800 hPa, 850 hPa, 900 hPa, 925 hPa, 950 hPa, 1000 hPa and ground layer.
[0019] Optionally, according to the precipitation forecasting method of an embodiment of the present application, the performing multi-classification precipitation forecasting based on the precipitation forecasting model includes:
[0020] The precipitation forecast model is trained using a loss function; wherein the loss function includes:
[0021]
[0022] Among them, Loss represents the loss function, N represents the number of grid points, m represents the total number of categories, i represents the i-th grid point, α and γ are weights, and y i is the category label of grid point i, c is the category, p i,c is the probability of predicting that the i grid point is of the cth category.
[0023] Optionally, according to the precipitation forecasting method of an embodiment of the present application, the performing multi-classification precipitation forecasting based on the precipitation forecasting model includes:
[0024] The category of the precipitation level is predicted using a category function; wherein the category function includes:
[0025]
[0026] in,
[0027]
[0028]
[0029] max is the maximum value function, Pred i is the corresponding category of the predicted precipitation level, m is the number of categories, c is the precipitation level, and p is c is the probability of the softmax classifier outputting the precipitation level c, τ c A probability threshold is set for each precipitation level c used to obtain a continuous precipitation forecast.
[0030] In a second aspect, an embodiment of the present application further provides an electronic device, the electronic device comprising: a memory, a transceiver, and a processor:
[0031] A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations:
[0032] Discretize the precipitation data used for precipitation forecast to obtain the discretized precipitation magnitude;
[0033] The basic meteorological elements of the numerical weather prediction model NWP are determined as the forecast factors for precipitation forecast;
[0034] Based on the prediction factor and the precipitation level, obtaining a pre-trained precipitation forecast model;
[0035] Based on the precipitation forecast model, multi-classification precipitation forecast is performed to obtain continuous precipitation forecast results.
[0036] In a third aspect, an embodiment of the present application further provides a precipitation forecasting device, the precipitation forecasting device comprising:
[0037] A processing unit, used for discretizing the precipitation data used for precipitation forecast to obtain a discretized precipitation level;
[0038] A determination unit, used for determining basic meteorological elements of a numerical weather prediction model NWP as forecasting factors for precipitation forecasting;
[0039] An acquisition unit, configured to acquire a pre-trained precipitation forecast model based on the forecast factor and the precipitation level;
[0040] The prediction unit is used to perform multi-classification precipitation prediction based on the precipitation forecast model to obtain continuous precipitation forecast results.
[0041] In a fourth aspect, an embodiment of the present application further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the steps of the precipitation forecasting method described in the first aspect as described above.
[0042] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the precipitation forecasting method described in the first aspect as described above.
[0043] The precipitation forecast method, equipment, device and storage medium provided in the embodiments of the present application can discretize the precipitation data used for precipitation forecast to obtain the discretized precipitation level, which is used to accurately divide the precipitation intensity. The basic meteorological elements of the numerical weather forecast model NWP are determined as forecast factors for precipitation forecast, and a pre-trained precipitation forecast model is obtained based on the forecast factors and the precipitation level. Multi-classification precipitation prediction is performed based on the precipitation forecast model to obtain continuous precipitation forecast results. The embodiments of the present application can achieve more accurate continuous precipitation forecasts, and thus achieve more accurate continuous precipitation forecasts. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0045] Figure 1 is a flow chart of a precipitation forecasting method provided in an embodiment of the present application;
[0046] Figure 2 is a structural schematic diagram of a precipitation forecasting device provided in an embodiment of the present application;
[0047] Figure 3 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] In the embodiments of the present application, the term "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0049] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0050] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0051] Figure 1 is a flow chart of the precipitation forecasting method provided in the embodiment of the present application, such as Figure 1 As shown, the precipitation forecasting method may include the following steps:
[0052] Step 101: discretize the precipitation data used for precipitation forecast to obtain discretized precipitation levels.
[0053] Rainfall and snowfall are collectively referred to as precipitation. Precipitation refers to the depth of liquid or solid (after melting) water that falls from the sky to the ground within a certain period of time and accumulates on the horizontal surface without evaporation, infiltration, or loss. The depth of precipitation accumulation is measured in millimeters, and snowfall measurement requires the conversion of melted snow into water volume. Precipitation intensity refers to the amount of water that falls in a certain period of time during the precipitation process. The measurement period is usually 6 hours, 12 hours or 24 hours, and sometimes 10 minutes or 1 hour. Precipitation intensity can reflect the speed and urgency of a precipitation process.
[0054] Discretization refers to mapping finite individuals in infinite space to finite space, so as to improve the time and space efficiency of the algorithm. Precipitation forecast itself belongs to the prediction of continuous values, which belongs to regression problem. The embodiment of the present application converts precipitation forecast into a multi-classification problem. According to atmospheric processes of different properties and different physical processes, the embodiment of the present application discretizes the precipitation data used for precipitation forecast to obtain the discretized precipitation magnitude. Among them, the precipitation data can come from the China Meteorological Administration multi-source merged precipitation analysis system (CMPAS) China Regional Ground-Satellite-Radar Three-Source Fusion Precipitation Analysis Product (CMPAS-V2.1), which is a multi-source precipitation fusion analysis product with high spatiotemporal resolution in my country. CMPAS-V2.1 is generated in real time and is suitable for refined meteorological grid forecasting, small and medium-scale extreme precipitation event monitoring, hydrological models, etc. It can provide efficient, high-quality, and high-resolution fusion precipitation products for business applications and research such as weather forecasting and disaster prevention and mitigation. Independent tests have shown that the quality of the fused precipitation product is better than that of any single source precipitation data, has a better grasp of heavy precipitation, and is more suitable for monitoring heavy precipitation weather processes.
[0055] Step 102: determine the basic meteorological elements of the numerical weather prediction model NWP as forecasting factors for precipitation forecasting.
[0056] Specifically, forecast factors refer to factors that affect precipitation, including air temperature, air pressure, temperature and wind field, etc. The forecast factors are determined by the basic meteorological elements of NWP based on the physical mechanism of precipitation and the importance analysis of forecast factors. The physical mechanism of precipitation refers to the phenomenon that water vapor in the atmosphere condenses and falls to the ground as liquid water or solid water under the combined influence of factors such as geographical location, atmospheric circulation, and weather system conditions.
[0057] The prediction factors are determined based on the basic meteorological elements of NWP. The basic meteorological elements of NWP are derived from the fifth generation ECMWF atmospheric reanalysis of the global climate (ERA5) data of the European Centre for Medium-Range Weather Forecasts (ECMWF).
[0058] ERA5 provides global high-altitude and ground analysis fields with a temporal resolution of 1 hour, a spatial resolution of 25 km for high-altitude analysis fields, and a spatial resolution of 12.5 km for ground analysis fields. The ground and high-altitude analysis fields used in the modeling of the present application embodiment preferably have a resolution of 25 km.
[0059] The forecasting factors selected in the embodiment of the present application may include information such as temperature, air pressure, humidity, wind field, etc. from the ground to high altitude. At the same time, the potential height layer of the forecasting factor may include one or more of the following: 100 hPa (hPa), 150 hPa (hPa), 200 hPa (hPa), 250 hPa (hPa), 300 hPa (hPa), 400 hPa (hPa), 500 hPa (hPa), 600 hPa (hPa), 700 hPa (hPa), 800 hPa (hPa), 850 hPa (hPa), 900 hPa (hPa), 925 hPa (hPa), 950 hPa (hPa), 1000 hPa (hPa) and ground layer. For example, taking the region with a geographical range of 18°~54°N, 72°~135°E as an example, the forecasting factors used in the precipitation forecasting model are shown in Table 1 below.
[0060] Table 1
[0061]
[0062] Step 103: Acquire a pre-trained precipitation forecast model based on the forecast factor and the precipitation level.
[0063] Specifically, after the prediction factors and the precipitation level are determined, a precipitation forecast model is obtained, and the precipitation forecast model may be obtained through pre-training.
[0064] Step 104: Perform multi-classification precipitation prediction based on the precipitation forecast model to obtain continuous precipitation forecast results.
[0065] Specifically, the precipitation forecast model of the embodiment of the present application adopts a multi-classification prediction of precipitation. For example, the accumulated precipitation R in 3h (h represents hours) can be 3h The forecast can be divided into 102 categories, which are not specifically limited here. The cumulative precipitation of the 102 categories can be expressed as {0, 0.1, 1, 2, 3 ... 99, ≥ 100} mm. By adopting the multi-classification prediction of precipitation, continuous precipitation forecast results can be further obtained.
[0066] As can be seen from the above embodiments, the precipitation data used for precipitation forecasting can be discretized to obtain the discretized precipitation level, which is used to accurately divide the precipitation intensity. The forecasting factors used for precipitation forecasting are determined according to the basic meteorological elements of NWP, and a pre-trained precipitation forecast model is obtained based on the forecasting factors and the precipitation level. Multi-classification prediction of precipitation is performed based on the precipitation forecast model to obtain continuous precipitation forecast results. The embodiments of the present application can achieve more accurate continuous precipitation forecasts, and thus achieve more accurate continuous precipitation forecasts.
[0067] Optionally, the step of discretizing the precipitation data for precipitation forecast to obtain a discretized precipitation level includes:
[0068] The discretized precipitation level is obtained by determining the range of the precipitation data and the precipitation level resolution; wherein the precipitation level includes:
[0069] R C ={0,Rmin,Rmin+ΔR,Rmin+2·ΔR,…,Rmax}
[0070] Among them, R C represents the discretized precipitation magnitude, R min Indicates the minimum precipitation data, R max represents the maximum precipitation data, and ΔR represents the precipitation level resolution.
[0071] Specifically, the precipitation data used for precipitation forecast is discretized, and obtaining the discretized precipitation may include:
[0072] (1) Determine the range of precipitation data. The range of precipitation data can be expressed as an interval [R min ,R max ] to indicate that R min is the minimum precipitation data in this interval, R max This is the maximum precipitation data in this range.
[0073] (2) Determine the precipitation magnitude resolution, which can be expressed as ΔR.
[0074] (3) According to the range of precipitation data and the resolution of precipitation level, the discretized precipitation level is determined as: R C ={0,Rmin,Rmin+ΔR,Rmin+2·ΔR,…,Rmax}. And, the number of precipitation level categories N c for:
[0075]
[0076] It can be seen from the above embodiments that by determining the discretized precipitation level through the range of precipitation data and the precipitation level resolution, the precipitation intensity can be better determined, thereby achieving accurate precipitation forecasting.
[0077] Optionally, a precipitation forecast model is established through deep learning.
[0078] Specifically, a precipitation forecast model is established based on deep learning to realize the mapping relationship between forecast factors and precipitation. Among them, deep learning has the ability to extract features, which can automatically extract relevant features from historical observation data and forecast factor data to establish a precipitation forecast model with good forecasting capabilities.
[0079] It can be seen from the above embodiments that by establishing a precipitation forecast model based on deep learning, useful weather system characteristic information can be automatically extracted to better determine the precipitation forecast results.
[0080] Optionally, the precipitation forecast model includes: a convolution layer, a residual connection layer, a pooling layer, an upsampling layer, an attention layer and a softmax classifier; the convolution layer, the pooling layer and the upsampling layer are used to extract weather system characteristics in three-dimensional space; the residual connection layer is used to train the precipitation forecast model; the attention layer is used to extract global features of the forecast factors; the softmax classifier is used to output the probability of the discretized precipitation level.
[0081] Specifically, according to the characteristics of the occurrence and development of precipitation weather, a precipitation forecast model RainNet based on deep learning is established based on prediction factors. RainNet may include convolutional layers, residual connection layers, pooling layers, upsampling layers, attention layers and softmax classifiers.
[0082] The weather system characteristics of various forecast factors can play a positive auxiliary role in weather judgment. Therefore, it is necessary to establish a precipitation forecast model based on deep learning to extract the occurrence and development characteristics of weather systems from three-dimensional space. ERA5 data provides high-altitude and ground reanalysis fields, and can provide three-dimensional weather reanalysis fields.
[0083] In the precipitation forecast model, the convolution layer can be a three-dimensional convolution structure, the pooling layer can be a three-dimensional pooling layer, and the upsampling layer can be a three-dimensional upsampling layer, which are not specifically limited here. Through the three-dimensional convolution structure, the three-dimensional pooling layer, the three-dimensional upsampling layer, etc., a three-dimensional semantic segmentation model can be constructed to extract the weather system characteristics in the three-dimensional space.
[0084] The residual connection layer can be used to train the precipitation forecast model. During the deep learning process, the features of each prediction factor are constantly subjected to nonlinear transformations, and the deeper the network output, the stronger the features of the representation ability. However, increasing the depth faces many challenges, such as gradient explosion or dissipation problems. Due to the increase in the number of layers, the gradient becomes unstable during the back propagation process. The residual connection layer in the precipitation forecast model proposed in the embodiment of the present application is deep, and the number of layers is preferably set to 124, which is not specifically limited here. The residual connection layer can accelerate the training of the precipitation forecast model.
[0085] The attention layer is used to extract the global features of the forecast factors by determining the global attention map. In the precipitation forecast process, it is necessary to comprehensively judge the global features of the forecast factors. The global features of the forecast factors include the need to observe the weather scale background of convective weather, such as cold vortices, high-altitude troughs, typhoons and other systems, and also include the need to find small and medium scales, such as low-level convergence lines, cold pools and other systems.
[0086] The attention layer in the embodiment of the present application can use a convolutional block attention module (CBAM), which is not specifically limited here. CBAM calculates and determines the correlation coefficient between each grid point and the actual precipitation, so that the precipitation forecast model has better global feature extraction capabilities.
[0087] Finally, the probability of discretized precipitation level output by the softmax classifier can be used to more accurately judge the precipitation level.
[0088] It can be seen from the above embodiments that the precipitation forecast model includes: a convolution layer, a residual connection layer, a pooling layer, an upsampling layer, an attention layer, and a softmax classifier. The convolution layer, the pooling layer, and the upsampling layer can better extract the characteristics of the weather system. The residual connection layer accelerates the training of the precipitation forecast model. The attention layer better captures weather systems of various scales, thereby judging whether convective weather occurs. The softmax classifier can be used to more accurately judge the precipitation level, thereby determining the precipitation intensity.
[0089] Optionally, a precipitation forecast model is established by deep learning, including:
[0090] A precipitation forecast model is established based on a setting mechanism, wherein the setting mechanism includes one or more of the following:
[0091] Encoding and decoding structure;
[0092] Residual mechanism;
[0093] Attention mechanism;
[0094] Multi-classification training mechanism.
[0095] Specifically, in the process of establishing a precipitation forecast model through deep learning, the precipitation forecast model can be established based on setting mechanisms such as encoding and decoding structure, residual mechanism, attention mechanism, multi-classification training mechanism, etc., which are specifically described as follows:
[0096] Through the encoding and decoding structure, the forecast factors are analyzed and judged, and effective precipitation forecast information is extracted to obtain the precipitation forecast result, which may include the following steps:
[0097] During the encoding process, the precipitation forecast model compresses the feature map through a set number of pooling processes. The preferred number of times in the embodiment of the present application is 4 times, which is not specifically limited here. After 4 pooling processes, the feature map is continuously compressed, and the final three-dimensional size is compressed to 1 / 16 of the original, thereby extracting the preprocessed precipitation information.
[0098] Since the detailed features of the feature map are lost after compression, it is necessary to decode the preprocessed precipitation information. After continuous recovery of the detailed information, accurate pixel-by-pixel precipitation information is obtained. In addition, since there are skip connections in the corresponding layers of the encoding and decoding structure network, high-order feature maps are used to guide low-order feature maps, learn detailed features, and finally realize weather forecasts for each grid point.
[0099] The function of the residual connection layer in the precipitation forecast model is realized through the residual mechanism, which can be used to train the precipitation forecast model. During the deep learning process, the characteristics of each prediction factor are constantly transformed nonlinearly, and the deeper the network output, the stronger the representation ability of the features. However, increasing the depth faces many challenges, such as the gradient explosion or dissipation problem. As the number of layers increases, the gradient becomes unstable during the back propagation process.
[0100] The residual connection layer in the precipitation forecast model proposed in the embodiment of the present application is deeper, preferably set to 124 layers, which is not specifically limited here. The residual mechanism can accelerate the training of the precipitation forecast model by automatically learning identity mapping.
[0101] The functional role of the attention layer in the precipitation forecast model is based on the attention mechanism, which can be used to extract the global features of the prediction factors.
[0102] In the precipitation forecasting process, it is necessary to comprehensively judge the global characteristics of the forecasting factors. The global characteristics of the forecasting factors may include the weather-scale background that requires observation of convective weather, such as cold vortices, high-altitude troughs, typhoons and other systems, and may also include the need to find small and medium scales, such as low-level convergence lines, cold pools and other systems.
[0103] The attention layer in the embodiment of the present application can use a convolutional block attention module (CBAM), which is not specifically limited here. CBAM calculates the correlation coefficient between each grid point and the actual precipitation, so that the precipitation forecast model has better global feature extraction capabilities. It can better capture weather systems of various scales and then judge whether convective weather occurs. The specific calculation process is as follows:
[0104] The spatial information of the feature map is aggregated through average pooling and max pooling operations and sent to a shared multilayer perceptron (MLP) network to further compress the spatial dimension of the input feature map, sum and merge element by element to generate a channel attention map Mc:
[0105]
[0106] Among them, F is the input feature map, M c (F) is the channel attention map, σ is the sigmoid activation function, MLP is the shared multi-layer perceptron network, AvgPool(F) is the average pooling function, AaxPool(F) is the maximum pooling function, and They are feature maps after global average pooling and global maximum pooling respectively, and W0 and W1 are two-layer parameters in the multi-layer perceptron model.
[0107] Continue to use average pooling and maximum pooling to compress the input feature map. The compression here can be compression at the channel level. Connect them and use 7×7 convolution to generate the spatial attention map Ms:
[0108]
[0109] Among them, F is the input feature map, M s (F) is the spatial attention map, σ is the sigmoid activation function, AvgPool(F) is the average pooling function, MaxPool(F) is the maximum pooling function, and are the feature maps after global average pooling and global maximum pooling, W0 and W1 are the two-layer parameters in the multi-layer perceptron model, and f 7×7 Represents a convolution with a filter size of 7*7.
[0110] For the multi-classification training mechanism, precipitation prediction belongs to the prediction of continuous values, which is a regression problem. However, the parameter optimization of the regression prediction model is more difficult, so converting the regression problem into a multi-classification problem becomes a practical method.
[0111] Since precipitation processes of different intensities may represent atmospheric processes of different natures and physical processes, the present embodiment preferably uses the 3-hour cumulative precipitation R 3h The forecast is divided into 102 categories, which are not specifically limited here. The corresponding precipitation amounts of the 102 categories are {0, 0.1, 1, 2, 3 ... 99, ≥ 100} mm. Based on the multi-classification training mechanism, the precipitation forecast model can be trained to achieve the forecast results in the above range.
[0112] It can be seen from the above embodiments that by setting a mechanism to establish a precipitation forecast model, it is possible to accelerate the training of the model, extract effective precipitation information, and obtain precipitation forecast results.
[0113] Optionally, performing multi-classification precipitation prediction based on the precipitation forecast model includes:
[0114] The precipitation forecast model is trained using a loss function; wherein the loss function includes:
[0115]
[0116] Among them, Loss represents the loss function, N represents the number of grid points, m represents the total number of categories, i represents the i-th grid point, α and γ are weights, and y i is the category label of grid point i, c is the category, p i,c is the probability of predicting that the i grid point is of the cth category.
[0117] Specifically, during the training of RainNet, we need to focus not only on grid points with greater precipitation intensity, but also on samples where precipitation is difficult to predict. Therefore, during the training process, RainNet can be trained using a multi-classification loss function, which includes:
[0118]
[0119] Among them, Loss represents the loss function, N represents the number of grid points, m represents the total number of categories, i represents the i-th grid point, α and γ are weights, and y i is the category label of grid point i, c is the category, p i,c is the probability of predicting that the i grid point is of the cth category.
[0120] In addition, during the training process, the default configuration can be used, and α and γ are preferably 0.25 and 2.0 respectively. The values of α and γ are not specifically limited here.
[0121] The following example constructs a training set and a test set to simulate the training process of the precipitation forecast model:
[0122] The training set can be constructed by using the ERA5 data and precipitation data from 2016 to 2018. Assuming that the time of ERA5 in the sample is T, the actual precipitation from (T to T+3)h is used as a marker, and finally 6542 training samples are obtained.
[0123] The size of the training sample is N h ×145×253×N p , where N h Layers (from the ground to 100 hPa, 16 layers in total). p is the number of features in the sample, including temperature, humidity, air pressure, U, V, and W, a total of 6 prediction factors, where U is the zonal wind, V is the meridional wind, and W is the vertical speed. In the ground elements, there is no W variable, and the altitude can be added to finally form N h ×145×253×N p A four-dimensional array of .
[0124] In addition, the test set can be used to select the summer (July to September) in 2019 with heavy precipitation to verify the forecasting effect of the model.
[0125] RainNet training can be set to 100 iteration cycles (epochs), and the number of iteration cycles is not specifically limited here. The early stopping strategy is adopted. When the loss of RainNet stops decreasing for more than 10 consecutive rounds (epochs), it will automatically stop and save the weight with the smallest loss on the validation set. The 10 rounds here are the preferred value and are not specifically limited here. The batch size can be 8, and the number of iterations per round can be 3140. Among them, the batch size and the number of iterations per round are both preferred values of the embodiments of the present application and are not specifically limited here. The model can be trained using the ADAM optimization algorithm. During the training process, the learning rate can be set to 10 -4 , no specific limitation is given here, and the rest of the settings adopt the default configuration of the ADAM optimization algorithm.
[0126] It can be seen from the above embodiments that the multi-classification prediction of precipitation based on the precipitation forecast model includes:
[0127] The category of the precipitation level is predicted using a category function; wherein the category function includes:
[0128]
[0129] in,
[0130]
[0131]
[0132] max is the maximum value function, Pred i is the corresponding category of the predicted precipitation level, m is the number of categories, c is the precipitation level, and p is c is the probability of the softmax classifier outputting the precipitation level c, τ c A probability threshold is set for each precipitation level c used to obtain a continuous precipitation forecast.
[0133] Specifically, the climate probability of large-scale precipitation is relatively low, while the climate probability of small-scale precipitation is relatively high. The probability of precipitation of each magnitude output by the softmax classifier, if the precipitation magnitude with the maximum probability is directly taken as the precipitation prediction value, will cause the predicted precipitation magnitude to be too small. Therefore, the embodiment of the present application determines the precipitation magnitude corresponding to the precipitation forecast result according to the set rules, and the set rules include one or more set precipitation magnitudes which can be the precipitation magnitude output by the softmax classifier, assuming c, and each precipitation magnitude has its corresponding set threshold, which can be a probability threshold, assuming τ c . In line with the climate probability, τ c The value of decreases as the precipitation level c increases. For the precipitation level c, calculate the cumulative probability p′ exceeding this level. c , if p′ c Greater than τ c , then the point is c. For multiple cumulative probabilities p′ c Greater than τ c In the case of , taking the maximum precipitation level, the category function in the embodiment of the present application may include:
[0134]
[0135] in,
[0136]
[0137]
[0138] max is the maximum value function, Pred i is the corresponding category of the predicted precipitation level, m is the number of categories, c is the precipitation level, and p is c is the probability of the softmax classifier outputting the precipitation level c, τ c A probability threshold is set for each precipitation level c used to obtain a continuous precipitation forecast.
[0139] It can be seen from the above embodiments that by determining the precipitation level corresponding to the precipitation forecast result under the set rules, the precipitation intensity can be better determined, and a more accurate forecast of precipitation of different intensities can be achieved.
[0140] Figure 2 is a schematic diagram of the structure of the precipitation forecasting device provided in the embodiment of the present application; Figure 2 As shown, the precipitation forecasting device comprises:
[0141] The processing unit 21 is used to discretize the precipitation data used for precipitation forecast to obtain the discretized precipitation level;
[0142] A determination unit 22, for determining basic meteorological elements of a numerical weather prediction model NWP as prediction factors for precipitation forecast;
[0143] An acquisition unit 23, configured to acquire a pre-trained precipitation forecast model based on the forecast factor and the precipitation level;
[0144] The prediction unit 24 is used to perform multi-classification precipitation prediction based on the precipitation forecast model to obtain continuous precipitation forecast results.
[0145] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0146] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0147] It should be noted here that the above-mentioned device provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0148] Figure 3 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application; the electronic device can be used to perform Figure 1 The precipitation forecasting methods shown include:
[0149] Discretize the precipitation data used for precipitation forecast to obtain the discretized precipitation magnitude;
[0150] The basic meteorological elements of the numerical weather prediction model NWP are determined as the forecast factors for precipitation forecast;
[0151] Based on the prediction factor and the precipitation level, obtaining a pre-trained precipitation forecast model;
[0152] Based on the precipitation forecast model, multi-classification precipitation forecast is performed to obtain continuous precipitation forecast results.
[0153] Optionally, the step of discretizing the precipitation data for precipitation forecast to obtain a discretized precipitation level includes:
[0154] The discretized precipitation level is obtained by determining the range of the precipitation data and the precipitation level resolution; wherein the precipitation level includes:
[0155] R C ={0,Rmin,Rmin+ΔR,Rmin+2·ΔR,…,Rmax}
[0156] Among them, R C represents the discretized precipitation magnitude, R min Indicates the minimum precipitation data, R max represents the maximum precipitation data, and ΔR represents the precipitation level resolution.
[0157] Optionally, the precipitation forecast model is established by deep learning.
[0158] Optionally, the precipitation forecast model includes: a convolution layer, a residual connection layer, a pooling layer, an upsampling layer, an attention layer and a softmax classifier; the convolution layer, the pooling layer and the upsampling layer are used to extract weather system characteristics in three-dimensional space; the residual connection layer is used to train the precipitation forecast model; the attention layer is used to extract global features of the forecast factors; the softmax classifier is used to output the probability of the discretized precipitation level.
[0159] Optionally, the basic meteorological elements of the NWP include temperature, air pressure, humidity and wind field;
[0160] The potential height layer of the predictor includes one or more of the following: 100 hPa, 150 hPa, 200 hPa, 250 hPa, 300 hPa, 400 hPa, 500 hPa, 600 hPa, 700 hPa, 800 hPa, 850 hPa, 900 hPa, 925 hPa, 950 hPa, 1000 hPa and ground layer.
[0161] Optionally, performing multi-classification precipitation prediction based on the precipitation forecast model includes:
[0162] The precipitation forecast model is trained using a loss function; wherein the loss function includes:
[0163]
[0164] Among them, Loss represents the loss function, N represents the number of grid points, m represents the total number of categories, i represents the i-th grid point, α and γ are weights, and y i is the category label of grid point i, c is the category, p i,c is the probability of predicting that the i grid point is of the cth category.
[0165] Optionally, performing multi-classification precipitation prediction based on the precipitation forecast model includes:
[0166] The category of the precipitation level is predicted using a category function; wherein the category function includes:
[0167]
[0168] in,
[0169]
[0170]
[0171] max is the maximum value function, Pred i is the corresponding category of the predicted precipitation level, m is the number of categories, c is the precipitation level, and p is c is the probability of the softmax classifier outputting the precipitation level c, τ c A probability threshold is set for each precipitation level c used to obtain a continuous precipitation forecast.
[0172] like Figure 3 As shown, the transceiver 300 is used to receive and send data under the control of the processor 310. Figure 3In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 310 and memory represented by memory 320. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 300 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium, such as a wireless channel, a wired channel, an optical cable, and the like. The processor 310 is responsible for managing the bus architecture and general processing, and the memory 320 may store data used by the processor 310 when performing operations.
[0173] The processor 310 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD). The processor may also adopt a multi-core architecture.
[0174] On the other hand, an embodiment of the present application further provides a processor-readable storage medium, the processor-readable storage medium storing a computer program, the computer program is used to enable the processor to execute the methods provided in the above embodiments, including:
[0175] Discretize the precipitation data used for precipitation forecast to obtain the discretized precipitation magnitude;
[0176] The basic meteorological elements of the numerical weather prediction model NWP are determined as the forecast factors for precipitation forecast;
[0177] Based on the prediction factor and the precipitation level, obtaining a pre-trained precipitation forecast model;
[0178] Based on the precipitation forecast model, multi-classification precipitation forecast is performed to obtain continuous precipitation forecast results.
[0179] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO)), optical storage (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drives (SSDs)), etc.
[0180] On the other hand, an embodiment of the present application provides a computer program product, which includes instructions. When the computer program product is run on a computer, it enables the computer to execute the steps of the above method. Please refer to the contents of the above method embodiment for details, which will not be repeated here.
[0181] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0182] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer executable instructions. These computer executable instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable electronic device to generate a machine, so that the instructions executed by the processor of the computer or other programmable electronic device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0183] These processor executable instructions may also be stored in a processor readable memory that can direct a computer or other programmable electronic device to operate in a specific manner, so that the instructions stored in the processor readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0184] These processor-executable instructions may also be loaded onto a computer or other programmable electronic device so that a series of operational steps are performed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0185] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A precipitation forecasting method, characterized in that: include: Discretize the precipitation data used for precipitation forecast to obtain the discretized precipitation magnitude; Determine the basic meteorological elements of the numerical weather prediction model NWP as the forecast factors for precipitation forecast; Based on the prediction factor and the precipitation level, obtaining a pre-trained precipitation forecast model; Perform multi-classification precipitation prediction based on the precipitation forecast model to obtain continuous precipitation forecast results; The step of discretizing the precipitation data for precipitation forecast to obtain the discretized precipitation magnitude includes: The discretized precipitation level is obtained by determining the range of the precipitation data and the precipitation level resolution; wherein the precipitation level includes: R C = {0,Rmin, Rmin+ΔR, Rmin+2·ΔR,…, Rmax}; where R C represents the discretized precipitation magnitude, Indicates the minimum precipitation data, represents the maximum precipitation data, and ΔR represents the precipitation level resolution; The basic meteorological elements of NWP include temperature, air pressure, humidity and wind field; The potential height layer of the predictor includes one or more of the following: 100 hPa, 150 hPa, 200 hPa, 250 hPa, 300 hPa, 400 hPa, 500 hPa, 600 hPa, 700 hPa, 800 hPa, 850 hPa, 900 hPa, 925 hPa, 950 hPa, 1000 hPa and ground layer.
2. The precipitation forecasting method according to claim 1, characterized in that: The precipitation forecast model is established through deep learning.
3. The precipitation forecasting method according to claim 2, characterized in that: The precipitation forecast model includes: a convolution layer, a residual connection layer, a pooling layer, an upsampling layer, an attention layer and a softmax classifier; The convolution layer, the pooling layer and the upsampling layer are used to extract weather system features in three-dimensional space; The residual connection layer is used to train the precipitation forecast model; The attention layer is used to extract the global features of the predictor; The softmax classifier is used to output the probability of the discretized precipitation level.
4. The precipitation forecasting method according to claim 1, characterized in that: The performing multi-classification precipitation prediction based on the precipitation forecast model includes: The precipitation forecast model is trained using a loss function; wherein the loss function includes: in, represents the loss function, N represents the number of grid points, Indicates the total amount of the category, Indicates grid points, and is the weight, Grid The category tag, For categories, For prediction The grid point is The probability of the class.
5. The precipitation forecasting method according to claim 1, characterized in that: The performing multi-classification precipitation prediction based on the precipitation forecast model includes: The category of the precipitation level is predicted using a category function; wherein the category function includes: in, To obtain the maximum value function, To predict the corresponding category of precipitation level, is the number of categories, c is the precipitation level, Output precipitation level for the softmax classifier The probability of For each precipitation level used to obtain a continuous precipitation forecast Set the probability threshold.
6. An electronic device, characterized in that: The electronic device comprises: a memory, a transceiver, and a processor: A memory for storing computer programs; a transceiver for sending and receiving data under the control of the processor; and a processor for reading the computer program in the memory and implementing the steps of the precipitation forecasting method according to any one of claims 1 to 5 when executing the program.
7. A precipitation forecasting device, characterized in that: The precipitation forecasting device is used to implement the precipitation forecasting method according to claim 1, and the device comprises: A processing unit, used for discretizing the precipitation data used for precipitation forecast to obtain a discretized precipitation level; A determination unit, used for determining basic meteorological elements of a numerical weather prediction model NWP as forecasting factors for precipitation forecasting; An acquisition unit, configured to acquire a pre-trained precipitation forecast model based on the forecast factor and the precipitation level; The prediction unit is used to perform multi-classification precipitation prediction based on the precipitation forecast model to obtain continuous precipitation forecast results.
8. A processor-readable storage medium, characterized in that: The processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the steps of the precipitation forecasting method according to any one of claims 1 to 5.
