Self-supervised short-term rainfall prediction method and system based on probability distribution

Through a self-supervised learning method based on probability distribution, depth separable convolution and atrous convolution are used to extract the characteristics of the radar echo pattern, combined with the KL divergence loss function, which solves the problem of inability to parallelize the calculation process and improve the utilization of data features in the existing technology. This reduces the problem and improves the accuracy of rainfall prediction and the generalization ability of the model.

CN118379642BActive Publication Date: 2024-09-17ANHUI PROVINCIAL PUBLIC METEOROLOGICAL SERVICE CENT +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410846406.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-17
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

In the existing technology, the calculation process cannot be parallelized and the data feature utilization rate is low, resulting in technical problems such as low rainfall prediction accuracy.

Method used

Using a self-supervised learning method based on probability distribution, pre-training and model training are performed by converting radar echogram data into a probability distribution matrix, using depth-separable convolution and atrous convolution to extract a wider range of features, combined with KL divergence As a loss function, it improves the generalization ability and prediction accuracy of the model.

Benefits of technology

It improves the prediction accuracy of the rainfall prediction model in different regions and conditions, shortens the model training time, enhances the prediction performance, and extracts deeper semantic information through large-core convolution simulation to improve the accuracy of the prediction results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118379642B
    Figure CN118379642B
Patent Text Reader

Abstract

The present invention provides a self-supervised short-term rainfall prediction method and system based on probability distribution, the method comprising: processing a radar echo map data set to obtain an echo sequence; converting the echo map in each group of echo sequences into a probability distribution matrix according to pixel values; inputting a group of echo sequences into the Encoder part of a rainfall prediction model, outputting the probability distribution matrix of each echo map, calculating the pre-training probability distribution, completing the pre-training operation, and obtaining the pre-training Encoder part and the pre-training Encoder parameters; dividing the radar echo map data set into a training set and a prediction set; retaining the pre-training Encoder parameters as training initial values, inputting the training set into the rainfall prediction model to perform a model training operation, and obtaining an applicable rainfall prediction model; inputting the input sequence in the prediction set into the applicable rainfall prediction model to process and obtain a prediction output sequence. The present invention solves the technical problem that the calculation process cannot be parallelized and the data feature utilization rate is low, resulting in low prediction accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of meteorological information processing, and in particular to a self-supervised short-term rainfall prediction method and system based on probability distribution. Background Art

[0002] Rainfall prediction based on radar echograms is an important technical branch in the field of meteorological forecasting. With the rapid development of artificial intelligence technology, many deep learning methods have also been applied to the field of radar echogram rainfall prediction.

[0003] The rainfall prediction method based on radar echo map using deep learning adopts a method combining convolution and recurrent neural network. The first p frames are input, and the features of radar echo map are extracted by convolution. The extracted features are transferred and retained by recurrent neural network, and the spatiotemporal correlation between different frames is grasped. The nonlinear mapping relationship between the known image and the image to be predicted is established, so as to predict the echo map of the next q frames. However, due to the existence of recurrent neural network RNN ​​(Recurrent Neural Network), the calculation of the i-th network feature When , we need to consider the first network feature to the i-1th network feature The information of RNN can only Calculate in sequence , the calculation process is one-way and cannot be parallelized. In addition, due to the restriction of the convolution kernel size, the convolution of a small kernel can only extract local features and cannot grasp the global information, which leads to insufficient feature extraction and reduced prediction accuracy.

[0004] For example, the existing invention patent application document "A Cascade LSTM (Long Short Term Memory) Short-term Rainfall Prediction Method Based on Attention Mechanism" with publication number CN116381690A, in which the existing method includes: inputting the denoised graph data set into the SAC-LSTM (Soit Actor-Critic Long Short Term Memory Automatic Entropy Adjustment Long Short Term Memory) model to obtain a predicted radar echo graph data set at time t+1; performing a loss comparison between the real graph data set at time t+1 and the predicted graph data set to obtain a first comparison result; inputting the real radar echo graph data set at time t+1 and the predicted radar echo graph data set at time t+1 into the adversarial generation network respectively to obtain a first feature graph data set and a second feature graph data set; performing a loss comparison between the first feature graph data set and the second feature graph data set to obtain a second comparison result; updating the loss function of the SAC-LSTM model, using the updated SAC-LSTM model to predict the current input graph data set and then performing a ZR transformation (transformation between the rain radar reflectivity Z and the rainfall intensity R); and using the transformation result to predict rainfall. And the existing invention patent application document "A Rainfall Prediction Method Based on Fusion Attention Mechanism and Bi-LSTM" with publication number CN117173429A, in which the radar echo map is used for rainfall prediction through four parts: image preprocessing module, feature extraction module, fusion attention module and Bi-LSTM (Bidirectional Long Short-Term Memory) prediction module. The image preprocessing module obtains a radar echo map with a larger scale and more accurate information by image splicing and noise reduction and completion. The feature extraction module uses the Deepflow algorithm to extract features from the preprocessed image. The feature fusion attention module uses the optical flow features processed by the Deepflow algorithm and the time features in the radar echo image group, respectively, and uses the competitive search algorithm to obtain a more accurate weight matrix. Finally, the Bi-LSTM prediction module predicts it. The model adopted by the aforementioned prior art uses a new RNN structure SAC-LSTM, but due to the inherent limitations of the RNN network, it cannot get rid of the defect of non-parallelism. In addition, the existing design is a cascaded LSTM prediction method based on the attention mechanism, and also adopts a complex training strategy such as adversarial generative network, which greatly increases the complexity of the model.

[0005] The existing methods use the RNN model, which results in the calculation process being one-way and cannot be parallelized. At the same time, the existing methods do not make full use of the data. The existing technology does not introduce self-supervised learning pre-training tasks and cannot fully utilize the data to extract more extensive features. The existing solutions still have a lot of room for improvement in prediction accuracy.

[0006] In summary, the existing technology has defects such as the inability to parallelize the calculation process and low utilization of data features, which leads to technical problems such as low prediction accuracy. Summary of the invention

[0007] The technical problem to be solved by the present invention is: how to solve the defects in the prior art that the calculation process cannot be parallelized and the data feature utilization rate is low, resulting in the technical problem of low prediction accuracy.

[0008] The present invention adopts the following technical solutions to solve the above technical problems: the self-supervised short-term rainfall prediction method based on probability distribution includes:

[0009] S1, acquiring and processing a radar echo map data set to obtain an echo sequence;

[0010] S2, converting the echo map in each echo sequence into a probability distribution matrix according to pixel values;

[0011] S3, inputting a set of echo sequences into the Encoder part of the rainfall prediction model, outputting the probability distribution matrix of each echo image, calculating the pre-trained probability distribution according to the echo image, completing the pre-training operation of the rainfall prediction model, and obtaining the pre-trained Encoder part and the pre-trained Encoder parameters;

[0012] S4, dividing the radar echo map data set into a training set and a prediction set according to a preset ratio;

[0013] S5, retaining the pre-trained Encoder parameters as the initial values ​​for training, inputting the training set into the rainfall prediction model to perform a model training operation, and obtaining an applicable rainfall prediction model;

[0014] S6. Input the input sequence in the prediction set into the applicable rainfall prediction model to obtain a prediction output sequence.

[0015] The present invention enables the rainfall prediction model to learn a wider range of features by performing self-supervised learning, which helps the rainfall prediction model to have good generalization ability on unseen data, thereby improving the prediction accuracy of the rainfall prediction model in different regions and conditions. At the same time, retaining the encoder parameters obtained by pre-training as the training initial values ​​of the target task helps to accelerate the convergence speed of the rainfall prediction model and improve the final prediction performance.

[0016] In a more specific technical solution, step S2 includes:

[0017] S21, adjusting the brightness and contrast of the echo image;

[0018] S22, normalizing each pixel value to a preset range;

[0019] S23, for each channel, calculating a normalized histogram of pixel values, dividing the pixel values ​​of the echo image into no less than 2 interval bins using the normalized histogram, and calculating the number of occurrences of the pixel values ​​in each interval bin to obtain the total number of pixels of the echo image;

[0020] S24, dividing each image value in the normalized histogram by the total number of pixels in the echo image to obtain the occurrence probability of each pixel value;

[0021] S25. According to the occurrence probability of each pixel value, convert the normalized histogram into a probability distribution matrix.

[0022] The present invention calculates the probability distribution of pixel values ​​so that the rainfall prediction model can directly learn rich features from the original radar echo map, which helps to improve the prediction accuracy.

[0023] In a more specific technical solution, step S3 includes:

[0024] S31. Build the Encoder part of the rainfall prediction model for pre-training, preset the initial feature map F, and use the Encoder part to process the initial feature map F ;

[0025] S32. Extract features through no less than 2 convolutions and down-sampling by maximum pooling, and use activation function layers and fully connected layers to map the probability distribution matrix to obtain a pre-trained probability distribution.

[0026] In a more specific technical solution, in step S31, the initial feature map is processed by the Encoder part according to the following logic: F :

[0027]

[0028] in, RELU is the activation function, DSconv(F) Represents the initial feature map F Perform depth-wise separable convolution operations, AtrConv(DSconv(F)) represents the automatic target recognition convolution operation on the depth-separable convolution feature map. BN (AtrConv(DSconv(F))) Represents batch normalization operation on the convolutional feature map of automatic target recognition.

[0029] In a more specific technical solution, step S5 includes:

[0030] S51. Build a rainfall prediction model. In addition to the pre-trained Encoder part, add the target task processing Decoder part and skip connection;

[0031] S52, using the mean square error MSE between the output image and the ground truth image, and the KL divergence (Kullback-Leibler, relative entropy) corresponding to the probability distribution matrix between the output image and the ground truth image to obtain a loss function;

[0032] S53. Setting rainfall prediction model parameters according to initial training values ​​to perform model training operations to obtain a suitable rainfall prediction model.

[0033] The present invention uses a self-supervised learning framework to complete the pre-training task of converting the feature map in the radar echo sequence into a probability distribution through the Encoder part of the rainfall prediction model, and uses the KL divergence to measure the similarity relationship between the output distribution and the actual distribution as a loss function to pre-train the rainfall prediction model. Furthermore, the Encoder parameters obtained by pre-training are retained as the initial parameters of the target task, and the prediction task is trained to finally obtain the optimal rainfall prediction model parameters for radar echo extrapolation, and the extrapolation results are calculated based on the rainfall prediction model parameters. The present invention can generate more accurate regional precipitation information based on the ZR relationship (the relationship between the reflectivity Z of the rain radar and the rainfall intensity R).

[0034] In a more specific technical solution, in step S51, based on the rainfall prediction model, the initial feature map is processed using the following logic: F :

[0035]

[0036] in, ReLU is the activation function, DSconv(F) Represents the initial feature map F The depth-wise separable convolution operation, AtrConv(DSconv(F)) represents the automatic target recognition convolution operation on the depth-separable convolution feature map. BN (AtrConv(DSconv(F))) Indicates batch normalization of the convolutional feature map of automatic target recognition. Indicates the activation feature. represents the average pooling feature, Indicates that an average pooling operation is performed on the activation feature.

[0037] In a more specific technical solution, in step S52, the following logic is used to obtain the mean square error MSE (MeanSquare Error) and KL divergence: :

[0038] ,

[0039] in, is the total number of pixels, It is i The true value of pixels, It is i The predicted value of pixels, is the probability distribution that the true value satisfies, in i The probability value of the pixel value, is the probability value of the probability distribution satisfied by the predicted value on the i-th pixel value, Represents the mapping operation between the true value and the predicted value, Represents the KL divergence between the true value and the predicted value, It represents the logarithm of the quotient of the probability distribution satisfied by the true value and the probability distribution satisfied by the predicted value. represents the sum of the probability distributions satisfied by the true values, It represents the sum of the squares of the differences between the true value and the predicted value.

[0040] In a more specific technical solution, in step S52, the loss function is expressed using the following logic:

[0041]

[0042] In the formula, MSE represents the mean square error between the true value and the predicted value. Represents the KL divergence between the true value and the predicted value, Loss Indicates loss.

[0043] The present invention improves the loss function, introduces probability distribution while performing target task training, and can simultaneously perform learning based on pixel value differences and feature map similarities, thereby improving the accuracy of prediction results.

[0044] In a more specific technical solution, step S6 includes:

[0045] S61, continuously performing depthwise separable convolution, dilated convolution, batch normalization, ReLu activation, and maximum pooling downsampling for no less than 2 times on the echo map to obtain a first feature map, a second feature map, a third feature map, and a fourth feature map;

[0046] S62, average pooling the first feature map, the second feature map, the third feature map, and the fourth feature map to obtain a first average pooling feature map, a second average pooling feature map, a third average pooling feature map, and a fourth average pooling feature map;

[0047] S63, performing depth-wise separable convolution, dilated convolution, batch normalization, and ReLu activation on the fourth average pooling feature map to obtain an activated feature map, and performing average pooling on the fourth average pooling feature map to obtain a fifth average pooling feature map;

[0048] S64, continuously performing bilinear interpolation upsampling for no less than 2 times on the fifth average pooling feature map, to obtain a sixth feature map, a seventh feature map, an eighth feature map, and a ninth feature map in sequence;

[0049] S65. According to the jump connection, the first average pooling feature map, the second average pooling feature map, the third average pooling feature map, and the fourth average pooling feature map are sequentially spliced ​​with the sixth feature map, the seventh feature map, the eighth feature map, and the ninth feature map, and separable convolution, dilated convolution, batch normalization, and ReLu activation are performed to obtain the sixth average pooling feature map, the seventh average pooling feature map, the eighth average pooling feature map, and the ninth average pooling feature map;

[0050] S66. Convolutionally process the ninth average pooling feature map to obtain and output a prediction map to acquire a prediction output sequence.

[0051] The present invention uses depthwise separable convolution and dilated convolution to simulate the effect of large kernel convolution. Large kernel convolution can obtain a larger receptive field, extract deeper semantic information, and improve the accuracy of subsequent prediction results.

[0052] The depth-separable convolution adopted by the present invention includes channel-by-channel convolution and point-by-point convolution, which can significantly reduce the number of model parameters, reduce the model size, and reduce the dependence on hardware devices.

[0053] In a more specific technical solution, the self-supervised short-term rainfall prediction system based on probability distribution includes:

[0054] A data set acquisition module is used to acquire and process radar echo data sets to obtain echo sequences;

[0055] A probability distribution conversion module is used to convert the echo map in each echo sequence into a probability distribution according to the pixel value, and the probability distribution conversion module is connected to the data set acquisition module;

[0056] A pre-training module is used to input a set of echo sequences into the model Encoder part, output the probability distribution of each echo map, calculate the probability distribution according to the echo map, complete the pre-training operation, and obtain the pre-training Encoder part and the pre-training Encoder parameters. The pre-training module is connected to the probability distribution conversion module;

[0057] A data set division module is used to divide the radar echo map data set into a training set and a prediction set according to a preset ratio. The data set division module is connected to the data set acquisition module.

[0058] The prediction model training module is used to retain the pre-trained Encoder parameters as the initial training values, input the training set into the rainfall prediction model to perform model training, and obtain a suitable rainfall prediction model. The prediction model training module is connected with the data set partitioning module and the pre-training module;

[0059] The rainfall prediction sequence acquisition module is used to input the input sequence in the test set into the applicable rainfall prediction model to process and obtain the prediction output sequence. The rainfall prediction sequence acquisition module is connected with the prediction model training module and the data set division module.

[0060] Compared with the prior art, the present invention has the following advantages:

[0061] The present invention enables the rainfall prediction model to learn a wider range of features by performing self-supervised learning, which helps the rainfall prediction model to have good generalization ability on unseen data, thereby improving the prediction accuracy of the rainfall prediction model in different regions and conditions. At the same time, retaining the encoder parameters obtained by pre-training as the training initial values ​​of the target task helps to accelerate the convergence speed of the rainfall prediction model and improve the final prediction performance.

[0062] The present invention first trains the rainfall prediction model by setting a pre-training task, and then fine-tunes the model parameters according to the prediction task, which enables the rainfall prediction model to fully learn a wider range of feature information in the radar echo map, train the optimal parameters of the model, and improve the prediction accuracy.

[0063] The present invention calculates the probability distribution of pixel values ​​so that the rainfall prediction model can directly learn rich features from the original radar echo map, which helps to improve the prediction accuracy.

[0064] The present invention uses a self-supervised learning framework to complete the pre-training task of converting the feature map in the radar echo sequence into a probability distribution through the Encoder part of the rainfall prediction model, and uses the KL divergence to measure the similarity relationship between the output distribution and the actual distribution as a loss function to pre-train the rainfall prediction model. Further, the Encoder parameters obtained by pre-training are retained as the initial parameters of the target task, and the prediction task is trained to finally obtain the optimal rainfall prediction model parameters for radar echo extrapolation, and the extrapolation results are calculated based on the rainfall prediction model parameters. According to the ZR relationship, the present invention can generate more accurate regional precipitation information.

[0065] The present invention improves the loss function, introduces probability distribution while performing target task training, and can simultaneously perform learning based on pixel value differences and feature map similarities, thereby improving the accuracy of prediction results.

[0066] The present invention uses depthwise separable convolution and dilated convolution to simulate the effect of large kernel convolution. Large kernel convolution can obtain a larger receptive field, extract deeper semantic information, and improve the accuracy of subsequent prediction results.

[0067] The depth-separable convolution adopted by the present invention includes channel-by-channel convolution and point-by-point convolution, which can significantly reduce the number of model parameters, reduce the model size, and reduce the dependence on hardware devices.

[0068] The present invention solves the technical problem that the calculation process cannot be parallelized and the data feature utilization rate is low in the prior art, resulting in low prediction accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 This is a schematic diagram of the basic steps of the self-supervised short-term rainfall prediction method based on probability distribution according to Example 1 of the present invention;

[0070] Figure 2 Schematic diagram of specific steps of converting to obtain a probability distribution matrix according to Embodiment 1 of the present invention;

[0071] Figure 3 This is a schematic diagram of specific steps for pre-training a rainfall prediction model according to Embodiment 1 of the present invention;

[0072] Figure 4 This is a schematic diagram of specific steps for performing model training operation on a rainfall prediction model according to Embodiment 1 of the present invention;

[0073] Figure 5 This is a schematic diagram of specific steps of obtaining a predicted output sequence of radar echoes by using an applicable rainfall prediction model according to Embodiment 1 of the present invention;

[0074] Figure 6 This is a schematic diagram of a specific connection method of a pre-trained model network according to Embodiment 1 of the present invention;

[0075] Figure 7 This is a schematic diagram of the overall structure of the model of Example 1 of the present invention;

[0076] Figure 8 Schematic diagram of the CIKM AnalytiCup competition data set prediction process according to Example 1 of the present invention. DETAILED DESCRIPTION

[0077] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in combination with the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0078] Example 1

[0079] like Figure 1 As shown, the self-supervised short-term rainfall prediction method based on probability distribution provided by the present invention includes the following basic steps:

[0080] Step S1, acquiring and processing a radar echo map data set to obtain an echo sequence;

[0081] In this embodiment, a radar echo map data set is obtained and missing value processing and data cleaning are performed;

[0082] Step S2, converting the echo map in each echo sequence into a probability distribution matrix according to the pixel value;

[0083] like Figure 2 As shown, in this embodiment, the step S2 of converting to obtain the probability distribution matrix also includes the following specific steps:

[0084] Step S21, preprocessing the echogram;

[0085] In this embodiment, the preprocessing operation includes but is not limited to: brightness adjustment and contrast adjustment;

[0086] Step S22, normalizing each pixel value to a preset range for subsequent pixel value conversion operations;

[0087] In this embodiment, the aforementioned preset range includes but is not limited to: [0,1];

[0088] Step S23, for each channel, calculate the normalized histogram of the pixel values, divide the pixel values ​​of the echo image into no less than 2 interval bins using the normalized histogram, calculate the number of occurrences of the pixel values ​​in each interval bin, to obtain the total number of pixels of the echo image;

[0089] In this embodiment, the normalized histogram is used to represent the image pixel value distribution of the echo image;

[0090] Step S24, dividing each image value in the normalized histogram by the total number of pixels in the echo image to obtain the occurrence probability of each pixel value;

[0091] Step S25: convert the normalized histogram into a probability distribution matrix according to the occurrence probability of each pixel value.

[0092] Step S3, input a set of echo sequences into the Encoder part of the rainfall prediction model, output the probability distribution matrix of each echo image, calculate the pre-trained probability distribution according to the echo image, complete the pre-training operation of the rainfall prediction model, and obtain the pre-trained Encoder part and the pre-trained Encoder parameters;

[0093] like Figure 3 As shown, in this embodiment, the step S3 of pre-training the rainfall prediction model also includes the following specific steps:

[0094] Step S31: Build the Encoder part of the rainfall prediction model for pre-training and preset the initial feature map F , use the Encoder part to process the initial feature map F ;

[0095] In this embodiment, the Encoder part of the rainfall prediction model performs the initial feature map F The processing method is as follows:

[0096]

[0097] Step S32: extract features through no less than 2 convolutions, perform maximum pooling downsampling, and use activation function layers and fully connected layers to map the probability distribution matrix to obtain a pre-trained probability distribution.

[0098] Step S4, dividing the radar echo map data set into a training set and a prediction set according to a preset ratio;

[0099] In this embodiment, the aforementioned preset ratio can be set to, for example: 8:2;

[0100] Step S5, retaining the pre-trained Encoder parameters as the initial training values, inputting the training set into the rainfall prediction model to perform a model training operation, and obtaining an applicable rainfall prediction model;

[0101] like Figure 4 As shown, in this embodiment, step S5 of performing a model training operation on the rainfall prediction model further includes the following specific steps:

[0102] Step S51, build a rainfall prediction model, add a target task processing Decoder part and a skip connection in addition to the pre-trained Encoder part;

[0103] In this embodiment, the rainfall prediction model performs the initial feature map F The processing principle is as follows:

[0104]

[0105] Step S52, using the mean square error MSE between the output image and the ground truth image, and the KL divergence (Kullback-Leibler, relative entropy) corresponding to the probability distribution matrix between the output image and the ground truth image, to obtain a loss function;

[0106] In this embodiment, the principle of calculating the mean square error MSE between the output image and the ground truth image is as follows:

[0107]

[0108] In this embodiment, the principle of calculating the KL divergence of the probability distribution between the output image and the ground truth image is as follows:

[0109]

[0110] In this embodiment, the loss is calculated as follows:

[0111]

[0112] S53. Setting rainfall prediction model parameters according to initial training values ​​to perform model training operations to obtain a suitable rainfall prediction model.

[0113] In this embodiment, the aforementioned rainfall prediction model parameters include but are not limited to: the number of features, the convolution kernel size of the depthwise separable convolution, the step size, the padding, and the dilation rate of the atrous convolution.

[0114] Step S6, inputting the input sequence in the prediction set into the applicable rainfall prediction model to obtain a prediction output sequence;

[0115] like Figure 5 , Figure 6 and Figure 7 As shown, in this embodiment, step S6 of obtaining the predicted output sequence of radar echoes by using the applicable rainfall prediction model also includes the following specific steps:

[0116] Step S61: Perform depth-wise separable convolution, dilated convolution, batch normalization, ReLu activation, and maximum pooling downsampling on the echo map for no less than 2 times in succession to obtain a first feature map, a second feature map, a third feature map, and a fourth feature map;

[0117] In this embodiment, the radar echo image is subjected to four consecutive depth-separable convolutions, dilated convolutions, batch normalization, ReLu activation, and maximum pooling downsampling; in this embodiment, after each ReLu activation operation, the first feature map, the second feature map, the third feature map, and the fourth feature map of the current layer transmitted to the next layer are obtained;

[0118] Step S62, average pooling processes the first feature map, the second feature map, the third feature map, and the fourth feature map to obtain a first average pooling feature map, a second average pooling feature map, a third average pooling feature map, and a fourth average pooling feature map;

[0119] In this embodiment, the first feature map, the second feature map, the third feature map, and the fourth feature map are subjected to average pooling without changing the feature maps to obtain a first average pooling feature map, a second average pooling feature map, a third average pooling feature map, and a fourth average pooling feature map;

[0120] Step S63, performing depth-wise separable convolution, dilated convolution, batch normalization, and ReLu activation on the fourth average pooling feature map to obtain an activated feature map, and performing average pooling on the activated feature map to obtain a fifth average pooling feature map;

[0121] Step S64: Perform bilinear interpolation upsampling on the fifth average pooling feature map for no less than 2 times in succession to obtain a sixth feature map, a seventh feature map, an eighth feature map, and a ninth feature map in sequence;

[0122] In this embodiment, the fifth average pooling feature map is subjected to four consecutive bilinear interpolation upsampling to obtain a sixth feature map, a seventh feature map, an eighth feature map, and a ninth feature map in sequence;

[0123] S65. According to the jump connection, the first average pooling feature map, the second average pooling feature map, the third average pooling feature map, and the fourth average pooling feature map are sequentially spliced ​​with the sixth feature map, the seventh feature map, the eighth feature map, and the ninth feature map, and separable convolution, dilated convolution, batch normalization, and ReLu activation are performed to obtain the sixth average pooling feature map, the seventh average pooling feature map, the eighth average pooling feature map, and the ninth average pooling feature map;

[0124] S66. Convolutionally process the ninth average pooling feature map to obtain and output a prediction map to acquire a prediction output sequence.

[0125] Example 2

[0126] In this embodiment, the CIKM AnalytiCup 2017 competition data set is taken as an example. The data set is collected and cleaned by the Shenzhen Meteorological Bureau, and the time span is 3 years. In this embodiment, the data of the first two years are used for training, and the data of the third year are used for testing.

[0127] Each radar image in the data set of this embodiment covers the radar reflectivity of a 101 km×101 km area around the target site.

[0128] In this embodiment, the radar map sequence includes but is not limited to: 15 time spans with an interval of 6 minutes, measured at 4 different altitudes, from 0.5 km to 3.5 km, with an interval of 1 km, which can provide 60 historical radar images for one sample.

[0129] like Figure 8As shown, the task content in this embodiment includes but is not limited to: predicting 5 radar images in the next half hour based on the first 10 images of 15 radar images at the same height for each sample.

[0130] For specific changes in the feature graph during model prediction, see Figure 8 , where the black dashed part is pre-trained.

[0131] In summary, the present invention enables the rainfall prediction model to learn a wider range of features through self-supervised learning, which helps the rainfall prediction model to have good generalization ability on unseen data, thereby improving the prediction accuracy of the rainfall prediction model in different regions and conditions. At the same time, retaining the encoder parameters obtained by pre-training as the initial training value of the target task helps to accelerate the convergence speed of the rainfall prediction model and improve the final prediction performance.

[0132] The present invention first trains the rainfall prediction model by setting a pre-training task, and then fine-tunes the model parameters according to the prediction task, which enables the rainfall prediction model to fully learn a wider range of feature information in the radar echo map, train the optimal parameters of the model, and improve the prediction accuracy.

[0133] The present invention calculates the probability distribution of pixel values ​​so that the rainfall prediction model can directly learn rich features from the original radar echo map, which helps to improve the prediction accuracy.

[0134] The present invention uses a self-supervised learning framework to complete the pre-training task of converting the feature map in the radar echo sequence into a probability distribution through the Encoder part of the rainfall prediction model, and uses the KL divergence to measure the similarity relationship between the output distribution and the actual distribution as a loss function to pre-train the rainfall prediction model. Further, the Encoder parameters obtained by pre-training are retained as the initial parameters of the target task, and the prediction task is trained to finally obtain the optimal rainfall prediction model parameters for radar echo extrapolation, and the extrapolation results are calculated based on the rainfall prediction model parameters. According to the ZR relationship, the present invention can generate more accurate regional precipitation information.

[0135] The present invention improves the loss function, introduces probability distribution while performing target task training, and can simultaneously perform learning based on pixel value differences and feature map similarities, thereby improving the accuracy of prediction results.

[0136] The present invention uses depthwise separable convolution and dilated convolution to simulate the effect of large kernel convolution. Large kernel convolution can obtain a larger receptive field, extract deeper semantic information, and improve the accuracy of subsequent prediction results.

[0137] The depth-separable convolution adopted by the present invention includes channel-by-channel convolution and point-by-point convolution, which can significantly reduce the number of model parameters, reduce the model size, and reduce the dependence on hardware devices.

[0138] The present invention solves the technical problem that the calculation process cannot be parallelized and the data feature utilization rate is low in the prior art, resulting in low prediction accuracy.

[0139] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A self-supervised short-term rainfall prediction method based on probability distribution, characterized in that: The method comprises: S1, acquiring and processing a radar echo map data set to obtain an echo sequence; S2, converting the echo images in each group of the echo sequences into a probability distribution matrix according to pixel values; S3, inputting a group of the echo sequences into the Encoder part of the rainfall prediction model, outputting the probability distribution matrix of each echo image, calculating the pre-trained probability distribution according to the echo image, completing the pre-training operation of the rainfall prediction model, and obtaining the pre-trained Encoder part and pre-trained Encoder parameters; S4, dividing the radar echo map data set into a training set and a prediction set according to a preset ratio; S5, retaining the pre-trained Encoder parameters as training initial values, inputting the training set into the rainfall prediction model to perform a model training operation, and obtaining an applicable rainfall prediction model; S6. Input the input sequence in the prediction set into the applicable rainfall prediction model to obtain a prediction output sequence.

2. The self-supervised short-term rainfall prediction method based on probability distribution according to claim 1 is characterized in that: The S2 includes: S21, adjusting the brightness and contrast of the echo image; S22, normalizing each pixel value to a preset range; S23, for each channel, calculating a normalized histogram of the pixel values, dividing the pixel values ​​of the echo image into no less than 2 bins using the normalized histogram, and calculating the number of occurrences of the pixel values ​​in each bin to obtain the total number of pixels of the echo image; S24, dividing each image value in the normalized histogram by the total number of pixels in the echo image to obtain the occurrence probability of each pixel value; S25. Convert the normalized histogram into the probability distribution matrix according to the occurrence probability of each pixel value.

3. The self-supervised short-term rainfall prediction method based on probability distribution according to claim 1 is characterized in that: The S3 includes: S31, construct the Encoder part of the rainfall prediction model for pre-training, and preset the initial feature map F , use the Encoder part to process the initial feature map F ; S32. Extract features through no less than 2 convolutions and maximum pooling downsampling, and use activation function layers and fully connected layers to perform mapping operations on the probability distribution matrix to obtain the pre-trained probability distribution.

4. The self-supervised short-term rainfall prediction method based on probability distribution according to claim 3 is characterized in that: In S31, according to the following logic, the Encoder part is used to process the initial feature map F : In the formula, RELU is the activation function, DSconv(F) Represents the initial feature map F Perform depth-wise separable convolution operations, AtrConv(DSconv(F)) Indicates that a dilated convolution operation is performed on the depth-separable convolutional feature map. BN(AtrConv (DSconv(F))) Indicates batch normalization operation on the dilated convolution feature map.

5. The self-supervised short-term rainfall prediction method based on probability distribution according to claim 1 is characterized in that: The S5 includes: S51, building the rainfall prediction model, adding a target task processing Decoder part and a skip connection in addition to the pre-trained Encoder part; S52, obtaining a loss function using a mean square error MSE between an output image and a ground truth image, and a KL divergence corresponding to the probability distribution matrix between the output image and the ground truth image; S53. Setting rainfall prediction model parameters according to the training initial values ​​to perform the model training operation to obtain the applicable rainfall prediction model.

6. The self-supervised short-term rainfall prediction method based on probability distribution according to claim 5 is characterized in that: In S51, based on the rainfall prediction model, the initial feature map is processed using the following logic: F : In the formula, ReLU is the activation function, DSconv(F) Represents the initial feature map F The depth-wise separable convolution operation, AtrConv(DSconv(F)) Indicates that a dilated convolution operation is performed on the depth-separable convolutional feature map. BN(AtrConv (DSconv(F))) Indicates batch normalization of the hole convolution feature map. Indicates the activation feature. represents the average pooling feature, Indicates that an average pooling operation is performed on the activation feature.

7. The self-supervised short-term rainfall prediction method based on probability distribution according to claim 5, characterized in that: In S52, the mean square error MSE and the KL divergence are calculated using the following logic: : , In the formula, is the total number of pixels, It is i The true value of the pixel, It is i The predicted value of the pixel, is the probability distribution that the true value satisfies, in i The probability value of the pixel value, is the probability value of the probability distribution satisfied by the predicted value on the i-th pixel value, represents the mapping operation between the true value and the predicted value, represents the KL divergence between the true value and the predicted value, represents the logarithm of the quotient of the probability distribution satisfied by the true value and the probability distribution satisfied by the predicted value, represents the sum of the probability distributions satisfied by the true value, represents the sum of the squares of the differences between the true value and the predicted value.

8. The self-supervised short-term rainfall prediction method based on probability distribution according to claim 5, characterized in that: In S52, the loss function is expressed using the following logic: In the formula, MSE represents the mean square error between the true value and the predicted value. represents the KL divergence between the true value and the predicted value, Loss Indicates loss.

9. The self-supervised short-term rainfall prediction method based on probability distribution according to claim 1, characterized in that: The S6 includes: S61, continuously performing depth-separable convolution, hole convolution, batch normalization BN, and ReLu activation on the echo map to obtain a first feature map; performing maximum pooling downsampling on the first feature map to obtain a first maximum pooling feature map, processing the first maximum pooling feature map to obtain a second feature map; performing the maximum pooling downsampling on the second feature map to obtain a second maximum pooling feature map, processing the second maximum pooling feature map to obtain a third feature map; performing the maximum pooling downsampling on the third feature map to obtain a third maximum pooling feature map, processing the third maximum pooling feature map to obtain a fourth feature map; S62, average pooling the first feature map, the second feature map, the third feature map and the fourth feature map to obtain a first average pooling feature map, a second average pooling feature map, a third average pooling feature map and a fourth average pooling feature map; S63, performing the maximum pooling downsampling on the fourth feature map to obtain a fourth maximum pooling feature map; performing the depthwise separable convolution, the dilated convolution, the batch normalization BN and the ReLu activation on the fourth maximum pooling feature map to obtain a fifth feature map, and performing average pooling on the fifth feature map to obtain a fifth average pooling feature map; S64, performing bilinear interpolation upsampling on the fifth average pooling feature map to obtain a sixth feature map; S65. According to the jump connection, splice the fourth average pooling feature map and the sixth feature map, and perform the depth-separable convolution, the hole convolution, the batch normalization BN and the ReLu activation to obtain a sixth average pooling feature map; perform the bilinear interpolation upsampling on the sixth average pooling feature map to obtain a seventh feature map; according to the jump connection, splice the third average pooling feature map and the seventh feature map, and perform the depth-separable convolution, the hole convolution, the batch normalization BN and the ReLu activation to obtain a seventh average pooling feature map; perform the bilinear interpolation upsampling on the seventh average pooling feature map The bilinear interpolation upsampling is performed to obtain an eighth feature map; according to the jump connection, the second average pooling feature map and the eighth feature map are spliced, and the depth-separable convolution, the hole convolution, the batch normalization BN and the ReLu activation are performed to obtain an eighth average pooling feature map; the eighth average pooling feature map is subjected to the bilinear interpolation upsampling to obtain a ninth feature map; according to the jump connection, the first average pooling feature map and the ninth feature map are spliced, and the depth-separable convolution, the hole convolution, the batch normalization BN and the ReLu activation are performed to obtain a ninth average pooling feature map; S66. Convolutionally process the ninth average pooling feature map to obtain and output a prediction map to acquire the prediction output sequence.

10. A self-supervised short-term rainfall prediction system based on probability distribution, characterized in that: The system comprises: A data set acquisition module is used to acquire and process radar echo data sets to obtain echo sequences; A probability distribution conversion module, used for converting the echo map in each group of the echo sequence into a probability distribution matrix according to pixel values, and the probability distribution conversion module is connected to the data set acquisition module; A pre-training module, used for inputting a set of the echo sequences into the Encoder part of the rainfall prediction model, outputting the probability distribution matrix of each echo image, calculating the pre-trained probability distribution according to the echo image, completing the pre-training operation of the rainfall training model, and obtaining the pre-trained Encoder part and pre-trained Encoder parameters, wherein the pre-training module is connected to the probability distribution conversion module; A data set division module, used for dividing the radar echo map data set into a training set and a prediction set according to a preset ratio, and the data set division module is connected to the data set acquisition module; A prediction model training module, used for retaining the pre-trained Encoder parameters as training initial values, inputting the training set into the rainfall prediction model to perform a model training operation to obtain a suitable rainfall prediction model, the prediction model training module being connected to the data set partitioning module and the pre-training module; The rainfall prediction sequence acquisition module is used to input the input sequence in the prediction set into the applicable rainfall prediction model to process and obtain a prediction output sequence. The rainfall prediction sequence acquisition module is connected to the prediction model training module and the data set partitioning module.