A short-term rainfall prediction method
By extracting the temporal features of the rainfall image sequence and utilizing the temporal feature constrainer, encoder and decoder, the short-term rainfall prediction network model solves the problems of data acquisition difficulties and gradient explosion in the existing technology, and achieves effective short-term rainfall prediction. optimization of performance and computing resources.
Patent Information
- Application Number
- CN202310881739.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-18
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-07-18
AI Technical Summary
Existing rainfall prediction methods require a large amount of meteorological data and are difficult to obtain. Dynamic models and statistical models have difficulty in data acquisition. Deep learning methods such as fully convolutional and time series methods are not effective in longer time step predictions. Moreover, the complex structure of the time series network leads to gradient explosion and large computing resource problems.
A short-term rainfall prediction method is proposed. By obtaining the first p frame data of the rainfall image sequence and predicting the subsequent q frame data, the rainfall short-term prediction network model of the temporal feature constrainer, encoder and decoder is used to extract the temporal features and perform prediction. Processing, avoiding network calculations and reducing gradient explosion and computing resource issues.
It achieves effective prediction of rainfall without requiring a large amount of meteorological data, reduces prediction deviations, reduces computing resource requirements, and reduces the gradient explosion problem based on full convolution in the short-term rainfall prediction network, improving prediction performance. Effect.
Smart Images

Figure CN116992231B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of rainfall prediction, and in particular relates to a short-term rainfall prediction method. Background Art
[0002] Rainfall is a common meteorological phenomenon and an important part of the hydrological process. It can directly reflect the climate change and hydrological process in the region. Since rainfall changes are closely related to human activities, such as ecological problems and flood disasters, rainfall prediction research has important practical significance.
[0003] At present, the main prediction methods of meteorological agencies for rainfall prediction are: dynamic model, statistical model, and ensemble model. However, these methods require a large amount of meteorological data, and these meteorological data are difficult to obtain. The prediction methods based on deep learning include full convolution methods (such as FCN) and time series methods (such as ConvLSTM). The full convolution method has a good prediction effect within the prediction of 1 or 2 frames in the future due to the powerful spatial information mining ability of the full convolution network, but the full convolution network itself does not have the ability to obtain time series information, and the prediction effect is extremely poor in a longer time step. Although the time series method can extract time series information, the time series network structure is relatively complex, resulting in problems such as gradient explosion and occupying a large amount of computing resources when the network depth increases. Summary of the invention
[0004] The purpose of the present invention is to solve the problems raised in the background technology and to propose a short-term rainfall prediction method.
[0005] To achieve the above object, the technical solution adopted by the present invention is:
[0006] A short-term rainfall prediction method proposed by the present invention comprises:
[0007] S1. Obtain rainfall image sequence data, and use the first p frames of rainfall image sequence data to predict the pre-prediction result of the last q frames of rainfall image sequence data.
[0008] S2. Perform data preprocessing on the pre-prediction result data of the first p frames and the last q frames to obtain rainfall data corresponding to each frame.
[0009] S3. Input the rainfall data of the first p frames and the rainfall data of the pre-forecast results of the last q frames into the constructed and trained rainfall short-term prediction network model to obtain the final rainfall prediction result. The rainfall short-term prediction network model includes a time series feature constraint, an encoder and a decoder.
[0010] Preferably, the pre-prediction result of using the first p frames of the rainfall image sequence to predict the last q frames of data in S1 includes:
[0011] S1.1. Obtain the last three frames of data x in the first p frames of the rainfall image sequence n-2 、x n-1 、x n .
[0012] S1.2, three frames of data x n-2 、x n-1 、x n The difference between the two frames of adjacent time steps in the image is used to obtain the residual frame res1 = x n-1 -x n-2 and res2 = x n -x n-1 .
[0013] S1.3, then res1 is moved within a preset area with τ upper and lower pixels and τ left and right pixels, and the displacements on the horizontal and vertical coordinates are trans_x and trans_y respectively.
[0014] S1.4, the horizontal and vertical coordinates of res2 are obtained by moving trans_x and trans_y to obtain the predicted first residual frame res3', and then res3' is added with x n Get the first frame data z in the pre-prediction result n+1 .
[0015] S1.5, then modify the three frames of data in S1.1 to x n-1 、x n 、z n+1 , repeat S1.2-S1.4, and iterate repeatedly until the pre-prediction result of the last q frames of the rainfall image sequence is obtained.
[0016] Preferably, in S2, the pre-prediction result data of the first p frames of data and the last q frames of data are subjected to data preprocessing operations to obtain rainfall data corresponding to each frame, including:
[0017] The rainfall data is obtained by standardizing each frame of data, and the formula for standardization is as follows:
[0018] u = x * (4783 / 100) * 12;
[0019] Among them, x represents all pixels of an image, u represents the rainfall corresponding to each pixel of an image, and the unit of u is mm / h.
[0020] Preferably, the rainfall short-term prediction network model in S3 includes a temporal feature constraint, an encoder and a decoder, including:
[0021] The temporal feature constraint includes two computing modules, one of which includes a global average pooling layer, a first fully connected layer, a ReLU activation, and a second fully connected layer arranged in sequence, and the other computing module includes a global maximum pooling layer, a first fully connected layer, a ReLU activation, and a second fully connected layer arranged in sequence.
[0022] The encoder consists of five layers, each of which includes a first convolutional layer, a normalization layer, a ReLU activation function, and a maximum pooling layer, which are arranged in sequence.
[0023] The decoder consists of five layers, each of which includes an interpolation layer, a second convolutional layer, a normalization layer, and a ReLU activation function, which are arranged in sequence.
[0024] Preferably, in S3, the rainfall data of the first p frames of data and the rainfall data of the pre-forecast result of the last q frames of data are input into the constructed and trained rainfall short-term forecast network model to obtain the final rainfall forecast result, including:
[0025] S3.1. Input rainfall data of the pre-prediction results of the latter q frames of data into two calculation modules respectively, and then add the results of the two calculation modules to obtain a first calculation result.
[0026] S3.2, inputting the rainfall data of the previous p frames into two calculation modules respectively, and then adding the results of the two calculation modules to obtain a second calculation result.
[0027] S3.3. Subtract the first calculation result from the second calculation result to obtain a third calculation result, fully connect the third calculation result, expand the data dimension of the fully connected result, and connect it with the rainfall data of the previous p frames to obtain a constraint result.
[0028] S3.4. Input the constraint result and the rainfall data of the pre-prediction result of the latter q frames into the encoder for feature data extraction, and then input the extracted feature data into the decoder for decoding to obtain preliminary predicted rainfall data.
[0029] S3.5. Finally, the rainfall data of the pre-prediction result of the latter q frames of data and the preliminary predicted rainfall data are added together to obtain the final rainfall prediction result.
[0030] Preferably, S1.4 further includes performing Gaussian blur processing on the pre-prediction result of the latter q frames of data.
[0031] Compared with the prior art, the present invention has the following beneficial effects:
[0032] The present short-term rainfall prediction method uses the first p frames of rainfall image sequence to predict the pre-prediction results of the last q frames, and extracts the temporal features of the rainfall image sequence. The entire process does not require network calculation, thereby avoiding the problems of gradient explosion and large computing resources. The rainfall data of the first p frames and the rainfall data of the pre-prediction results of the last q frames are input into the rainfall short-term prediction network model to obtain the final rainfall prediction results, thereby realizing the prediction of rainfall. A temporal feature constraint is used in the rainfall short-term prediction network model to constrain the temporal features of the rainfall data of the pre-prediction results of the last q frames, so that it has similar temporal features to the real rainfall image data, thereby reducing the prediction deviation. At the same time, the present short-term rainfall prediction network model is based on full convolution to reduce the problem of gradient explosion. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a flow chart of the method for short-term rainfall prediction of the present invention;
[0034] Figure 2 It is a module block diagram of the short-term rainfall prediction method of the present invention;
[0035] Figure 3 It is a module block diagram of the timing characteristic constraint of the present invention;
[0036] Figure 4 is a schematic diagram of a rainfall image in S1 of the present invention;
[0037] Figure 5 It is a first schematic diagram of the CSI evaluation index of the present invention changing with time;
[0038] Figure 6 A second schematic diagram of the CSI evaluation index of the present invention changing over time;
[0039] Figure 7 A third schematic diagram of the CSI evaluation index of the present invention changing over time
[0040] Figure 8 is a fourth schematic diagram of the CSI evaluation index of the present invention changing over time;
[0041] Fig. 9 It is a first schematic diagram of the change of the evaluation index of HSS of the present invention over time;
[0042] Fig.10 A second schematic diagram of the change of the evaluation index of the HSS of the present invention over time;
[0043] Fig.11 is a third schematic diagram of the change of the evaluation index of HSS of the present invention over time;
[0044] Fig.12This is a fourth schematic diagram showing changes in the evaluation index of HSS of the present invention over time. DETAILED DESCRIPTION
[0045] 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.
[0046] It should be noted that when a component is referred to as being "connected" to another component, it may be directly connected to the other component or there may be an intermediate component. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0047] like Figure 1-4 As shown, a short-term rainfall prediction method comprises:
[0048] S1. Obtain rainfall image sequence data, and use the first p frames of rainfall image sequence data to predict the pre-prediction result of the last q frames of rainfall image sequence data.
[0049] Specifically, the pre-prediction result of using the first p frames of the rainfall image sequence to predict the last q frames of data includes:
[0050] S1.1. Obtain the last three frames of data x in the first p frames of the rainfall image sequence n-2 、x n-1 、x n .
[0051] In this embodiment, each rainfall image sequence includes 18 frames, and p+q=18, the values of p and q are variable. This embodiment is described by taking p as 6 and q as 12 as an example, then the rainfall image sequence is represented as {x1, x2,,,x 18}, the first 6 frames of data of the rainfall image sequence are expressed as {x1, x2,,, x6}, and the last three frames of data of the first 6 frames of data of the rainfall image sequence are expressed as x4, x5, x6 (where the number of the last three frames is preset), and the last 12 frames of data of the rainfall image sequence are expressed as {x7, x8,,, x9}. 18}.
[0052] S1.2, three frames of data x n-2 、x n-1 、x nThe difference between the two frames of adjacent time steps in the image is used to obtain the residual frame res1 = x n-1 -x n-2 and res2 = x n -x n-1 .
[0053] S1.3, then res1 is moved within a preset area with τ upper and lower pixels and τ left and right pixels, and the displacements on the horizontal and vertical coordinates are trans_x and trans_y respectively.
[0054] In this embodiment, according to the experimental results, the value of τ is about 10% of the length and width of the acquired rainfall image. In this embodiment, the value of τ is set to 30. res1 moves trans_x and trans_y (such as Figure 2 The motion frame in the image is almost equal to res2.
[0055] S1.4, the horizontal and vertical coordinates of res2 are obtained by moving trans_x and trans_y to obtain the predicted first residual frame res3', and then res3' is added with x n Get the first frame data z in the pre-prediction result n+1 .
[0056] In this embodiment, z n+1 The value of res3'=z n+1 -x n Get, z n+1 is the first frame data in the pre-prediction result of the next q frames of data, expressed as x7'. At the same time, in this step, Gaussian blur processing is performed on the pre-prediction result of the next q frames of data to reduce image noise and reduce the level of detail. Figure 4 Shown are image examples of x4, x5, x6, x7, x8 in the rainfall image sequence, x7', x8' in the pre-prediction results of the post-q frame data, and residual frames res1, res2, res3'.
[0057] S1.5, then modify the three frames of data in S1.1 to x n-1 、x n 、z n+1 , repeat S1.2-S1.4, and iterate repeatedly until the pre-prediction result of the last q frames of the rainfall image sequence is obtained.
[0058] In this embodiment, the iteration is repeated until the pre-prediction result z of the last q frames of the rainfall image sequence is obtained. n+1 、z n+2 ,,,z n+12 , the number is 12 frames, which is represented by {x7',x8',,,x 18 '}, and the pre-prediction result includes time series features.
[0059] It should be noted that the significance of the residual frame is to obtain the difference area between two frames of adjacent time steps. These difference areas can be specifically manifested in semantics as the changing trend of the moving direction of the rainfall area and the rainfall intensity. In this embodiment, through the Taylor freezing assumption, in steady convection, the movement trend will not oscillate and change significantly in a short time. Therefore, assuming that the movement trend remains unchanged in a short time, the subsequent frame data can be predicted based on the motion displacement, but as time goes by, the prediction deviation becomes larger.
[0060] S1.1-S1.5 can be used to extract the temporal features of rainfall image sequence data. This process is a physical application and does not involve the problems of gradient explosion and large computing resources caused by obtaining temporal features through a temporal network. It also solves the defect that the full convolutional network itself does not have the ability to obtain temporal information.
[0061] S2. Perform data preprocessing on the pre-prediction result data of the first p frames and the last q frames to obtain rainfall data corresponding to each frame.
[0062] Specifically, each frame of data is standardized to obtain rainfall data (the standardization of each frame of data is to obtain the rainfall corresponding to each pixel in each frame), and the formula for the standardization is as follows:
[0063] u = x * (4783 / 100) * 12;
[0064] Where x represents a pixel of an image, u represents the rainfall corresponding to each pixel of an image, and the unit of u is mm / h. The formula for standardization is based on the existing literature Trebing K, T,MehrkanoonS.Smaat-unet: Precipitation nowcasting using asmall attention-unetarchitecture[J].Pattern Recognition Letters, 2021,145:178-186. Come.
[0065] S3. Input the rainfall data of the first p frames and the rainfall data of the pre-forecast results of the last q frames into the constructed and trained rainfall short-term prediction network model to obtain the final rainfall prediction result. The rainfall short-term prediction network model includes a time series feature constraint, an encoder and a decoder.
[0066] Specifically, the temporal feature constraint includes two computing modules, one of which includes a global average pooling layer, a first fully connected layer, a ReLU activation, and a second fully connected layer (such as Figure 3), and another computing module includes a global maximum pooling layer, a first fully connected layer, a ReLU activation, and a second fully connected layer (such as Figure 3 ), and the number of features of each first fully connected layer is 6, the number of output features is 64, the number of input features of each second fully connected layer is 64, and the number of output features is 12.
[0067] It should be noted that the structure of the temporal features constraint (TFC) is as follows Figure 3 As shown, Figure 3 The numbers 1 and 2 in the figure represent calculation modules. In S1.1-S1.5, as the time increases, the prediction deviation increases. Therefore, a timing feature constraint is used to constrain the timing features of the rainfall data of the pre-prediction results of the subsequent q frames of data, so that the timing features are as close as possible to the rainfall data of the real image sequence.
[0068] The encoder consists of five layers, each of which includes a first convolutional layer, a normalization layer, a ReLU activation function, and a maximum pooling layer, which are arranged in sequence. The convolution kernel size of the first convolutional layer is 3*3, the step size is 1, and the padding is 1. The size of the maximum pooling layer is 2*2, the step size is 2, and the number of channels of the five layers of the encoder are 64, 128, 256, 512, and 512, respectively.
[0069] The decoder includes five layers, each of which includes an interpolation layer, a second convolutional layer, a normalization layer and a ReLU activation function, which are arranged in sequence. The size of the interpolation layer is 2*2, the convolution kernel size of the second convolutional layer is 3*3, the step size is 1, and the padding is 1. The number of channels of the five layers of the decoder are 256, 128, 64, 64 and 12 respectively (the number of channels of the last layer is 12 because 12 frames of prediction results need to be output in this embodiment).
[0070] The rainfall data of the first p frames and the rainfall data of the pre-forecast results of the last q frames are input into the constructed and trained rainfall short-term forecast network model to obtain the final rainfall forecast results, including:
[0071] S3.1. Input rainfall data of the pre-prediction results of the latter q frames of data into two calculation modules respectively, and then add the results of the two calculation modules to obtain a first calculation result.
[0072] Specifically, the two calculation modules of the time series feature constraint are used to calculate the rainfall data of the pre-prediction results of the subsequent q frames of data (i.e., 12 frames, and Figure 3The pre-prediction results in the algorithm are subjected to global average pooling and global maximum pooling to obtain features in two time series dimensions respectively, and then are input into the first fully connected layer of each computing module respectively to further extract time series features, and then are linearly changed through the ReLU activation function in each computing module respectively, and finally are respectively subjected to the first fully connected layer in each computing module to extract time series features, and then the two time series features (the number of features is 12) are added together to obtain the first calculation result (the number of features is 12).
[0073] S3.2, inputting the rainfall data of the previous p frames into two calculation modules respectively, and then adding the results of the two calculation modules to obtain a second calculation result.
[0074] Specifically, the two calculation modules of the temporal feature constraint are used to calculate the first p frames (i.e., the first 6 frames, and Figure 3 The rainfall data of the observation values in the data are subjected to global average pooling and global maximum pooling to obtain features in two time series dimensions respectively, and then are input into the first fully connected layer of each computing module to further extract the time series features, and then are linearly changed through the ReLU activation function in each computing module respectively, and finally are respectively passed through the first fully connected layer in each computing module to extract the time series features, and then the two time series features (the number of features is 12) are added to obtain the second calculation result (the number of features is 12).
[0075] S3.3. Subtract the first calculation result from the second calculation result to obtain a third calculation result, fully connect the third calculation result, expand the data dimension of the fully connected result, and connect it with the rainfall data of the previous p frames to obtain a constraint result.
[0076] Specifically, the time series feature constraint expects the value after subtracting the first calculation result from the second calculation result to be as small as possible, and the smaller the value, the closer the time series features of the first calculation result and the second calculation result are. The time series features of the third calculation result are fed back to the rainfall data of the pre-prediction results of the subsequent q frames of data, and the time series features of the rainfall data of the pre-prediction results of the subsequent q frames of data are constrained, thereby reducing the prediction deviation of the subsequent frames. In this step, the purpose of expanding the data dimension of the result of full connection (the input feature number of the full connection is 12, and the output feature number is 12) is to obtain data features with the same dimension as the rainfall data of the previous p frames of data, and then splicing (i.e., connection or connection) can be performed.
[0077] S3.4. Input the constraint result and the rainfall data of the pre-prediction result of the latter q frames into the encoder for feature data extraction, and then input the extracted feature data into the decoder for decoding to obtain preliminary predicted rainfall data.
[0078] S3.5. Finally, the rainfall data of the pre-prediction result of the latter q frames of data and the preliminary predicted rainfall data are added together to obtain the final rainfall prediction result.
[0079] This short-term rainfall prediction network model is based on full convolution to reduce the problem of gradient explosion.
[0080] In the process of training the rainfall short-term prediction network model, several radar echo images are collected as data sets, and the pixels of each image are 288×288. The collected data sets are divided into training sets, test sets and validation sets, wherein the training set includes 4000 sequences, the test set includes 1557 sequences, and the validation set includes 1734 sequences. The rainfall short-term prediction network model is trained using the training set, and the loss is obtained by verifying the validation set each time the training is performed. The short-term prediction network model is initialized with random weights. In this embodiment, a total of 200 complete trainings are performed, and the learning rate is 0.0001. The final rainfall prediction result is compared with the rainfall data of the last q frames of the rainfall image sequence in the validation set (i.e., the real rainfall data, and the last q frames of the rainfall image sequence also need to be preprocessed to obtain the rainfall data of the last q frames). The loss is calculated (the loss function used is the MSE loss function, and the Adam algorithm is used to minimize the loss function). The obtained loss is fed back to the rainfall short-term prediction network model, and the parameters of the rainfall short-term prediction network model are optimized and adjusted, and the optimal short-term prediction network model is saved as the training output.
[0081] The test set is used to conduct an accuracy evaluation test on the short-term rainfall prediction method. The final rainfall prediction results are compared with the corresponding real rainfall data in the test set. The effect is evaluated by calculating two binary indicators and two non-binary indicators respectively. The binary indicator will binarize the true value result and the predicted result according to a specific rainfall intensity threshold, and the non-binary indicator will evaluate the similarity between the predicted result and the observed true value from different angles.
[0082] The binary indicators are the Critical Success Index (CSI) and the Heidke Skill Score (HSS). The CSI measures the ratio of correctly predicted observations to predicted events, and the HSS measures the ratio of the probability of success to the probability of false alarms. The binary indicators are based on the four indicators of True Positives (TP), True Negatives (TN), False Positives (FP), and False Negatives (FN). The calculation methods of CSI and HSS are as follows:
[0083]
[0084]
[0085] In this embodiment, 0.5 mm / h, 2 mm / h, 5 mm / h and 10 mm / h (corresponding to rainfall levels of no rain, light rain, light rain to moderate rain, moderate rain and heavy rain and above) are used as specific rainfall intensity thresholds, so as to perform binary division between the true value result and the predicted result. For the CSI and HSS indicators, the larger the value, the better the evaluation result.
[0086] Due to the extreme imbalance of rainfall data sets, that is, the number of heavy rains and the coverage area are much smaller than the number of light rains and the coverage area, the non-binary index introduces the balanced mean square error (Balance-MSE, B-MSE) and the balanced mean absolute error (Balance-MAE, B-MAE), and assigns corresponding weights to rainfall areas of different intensities to achieve the purpose of balancing the evaluation results. The specific calculation formula of the weight matrix w(u) is as follows:
[0087]
[0088] Among them, for B-MSE and B-MAE, the lower the index value, the better the evaluation effect, that is, the closer the prediction result is to the observed true value.
[0089] The schematic diagram of the curve comparison of the CSI and HSS evaluation indicators corresponding to the present short-term rainfall prediction network model (2PNet, i.e. the model in the present short-term rainfall prediction method) and the existing model under a specific rainfall threshold as the prediction time step increases is shown in the figure. Figure 5-12 As shown, the existing models in this embodiment are ConvLSTM (Convolutional Long Short-Term Memory Network), PredRNN (Recurrent Neural Network for Spatiotemporal Predictive Learning), PredRNN++ (an enhanced version of PredRNN), and MIM (Memory in Memory Learning of High-order Nonlinear Spatiotemporal Dynamic Neural Network). Figure 4 It can be seen that 2PNet performs better than existing models in all time steps (within 60 minutes) and different rainfall levels.
[0090] The CSI, HSS, B-MSE and B-MAE values of this rainfall short-term prediction network model (2PNet) and the existing model under different rainfall intensities are shown in Table 1:
[0091] Table 1
[0092]
[0093] According to Table 1, 2PNet outperforms the existing models in all rainfall intensities.
[0094] The present short-term rainfall prediction method uses the first p frames of rainfall image sequence to predict the pre-prediction results of the last q frames, and extracts the temporal features of the rainfall image sequence. The entire process does not require network calculation, thereby avoiding the problems of gradient explosion and large computing resources. The rainfall data of the first p frames and the rainfall data of the pre-prediction results of the last q frames are input into the rainfall short-term prediction network model to obtain the final rainfall prediction results, thereby realizing the prediction of rainfall. A temporal feature constraint is used in the rainfall short-term prediction network model to constrain the temporal features of the rainfall data of the pre-prediction results of the last q frames, so that it has similar temporal features to the real rainfall image data, thereby reducing the prediction deviation. At the same time, the present short-term rainfall prediction network model is based on full convolution to reduce the problem of gradient explosion.
[0095] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0096] The above-described embodiments only express the more specific and detailed embodiments described in this application, but they cannot be understood as limiting the scope of the patent application. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of this application, which all belong to the protection scope of this application. Therefore, the protection scope of the patent application shall be based on the attached claims.
Claims
1. A short-term rainfall prediction method, Features: The short-term rainfall prediction method comprises: S1, obtaining rainfall image sequence data, and using the first p frames of rainfall image sequence data to predict the pre-prediction result of the last q frames of rainfall image sequence data; S1.
1. Obtain the last three frames of data x in the first p frames of the rainfall image sequence n-2 、x n-1 、x n ; S1.2, three frames of data x n-2 、x n-1 、x n The difference between the two frames of adjacent time steps in the image is used to obtain the residual frame res1 = x n-1 -x n-2 and res2 = x n -x n-1 ; S1.3, then res1 is moved within a preset area with τ pixels above and below and τ pixels left and right, and the displacements on the horizontal and vertical coordinates are trans_x and trans_y respectively; S1.4, the horizontal and vertical coordinates of res2 are obtained by moving trans_x and trans_y to obtain the predicted first residual frame res3', and then res3' is added with x n Get the first frame data z in the pre-prediction result n+1 ; S1.5, then modify the three frames of data in S1.1 to x n-1 、x n 、z n+1 , repeat S1.2-S1.4, and iterate repeatedly until the pre-prediction result of the latter q frames of the rainfall image sequence is obtained; S2, performing data preprocessing on the pre-prediction result data of the first p frames and the last q frames to obtain rainfall data corresponding to each frame; S3, inputting the rainfall data of the first p frames of data and the rainfall data of the pre-forecast result of the last q frames of data into the constructed and trained rainfall short-term prediction network model to obtain the final rainfall prediction result, wherein the rainfall short-term prediction network model includes a temporal feature constraint, an encoder and a decoder; The temporal feature constraint includes two computing modules, one of which includes a global average pooling layer, a first fully connected layer, a ReLU activation, and a second fully connected layer arranged in sequence, and the other computing module includes a global maximum pooling layer, a first fully connected layer, a ReLU activation, and a second fully connected layer arranged in sequence; The encoder includes five layers, each of which includes a first convolutional layer, a normalization layer, a ReLU activation function, and a maximum pooling layer arranged in sequence; The decoder comprises five layers, each of which comprises an interpolation layer, a second convolutional layer, a normalization layer and a ReLU activation function arranged in sequence; S3.1, inputting the rainfall data of the pre-prediction result of the latter q frames of data into two calculation modules respectively, and then adding the results of the two calculation modules to obtain a first calculation result; S3.2, inputting the rainfall data of the previous p frames of data into two calculation modules respectively, and then adding the results of the two calculation modules to obtain a second calculation result; S3.3, subtracting the first calculation result from the second calculation result to obtain a third calculation result, fully connecting the third calculation result, expanding the data dimension of the fully connected result and connecting it with the rainfall data of the previous p frames of data to obtain a constraint result; S3.4, inputting the constraint result and the rainfall data of the pre-prediction result of the latter q frames of data into the encoder for feature data extraction, and then inputting the extracted feature data into the decoder for decoding to obtain preliminary predicted rainfall data; S3.
5. Finally, the rainfall data of the pre-prediction result of the latter q frames of data and the preliminary predicted rainfall data are added together to obtain the final rainfall prediction result.
2. The short-term rainfall prediction method according to claim 1, Features: In S2, the pre-prediction result data of the first p frames and the next q frames are pre-processed to obtain rainfall data corresponding to each frame, including: The rainfall data is obtained by standardizing each frame of data, and the formula for standardization is as follows: u = x * (4783 / 100) * 12; Among them, x represents all pixels of an image, u represents the rainfall corresponding to each pixel of an image, and the unit of u is mm / h.
3. The short-term rainfall prediction method according to claim 1, Features: The S1.4 also includes performing Gaussian blur processing on the pre-prediction result of the subsequent q frames of data.
Citation Information
Patent Citations
Rainfall prediction method and device based on radar echo map
CN114325880A
Short-time rainfall prediction method based on deep learning
CN114881286A
