A radar return extrapolation method
By combining the conditional diffusion model and the Transformer spatiotemporal feature encoder-decoder with reanalysis environmental field data, the problems of insufficient accuracy and timeliness of radar echo extrapolation methods are solved, and more accurate and longer-term radar echo extrapolation is achieved.
Patent Information
- Application Number
- CN202410134791.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-31
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-01-31
AI Technical Summary
Existing radar echo extrapolation methods have poor accuracy and short response time, which cannot meet the needs of the industry.
By employing a conditional diffusion model and combining the temporal and spatial feature encoder and decoder of Transformer, and using environmental field data from reanalysis as conditional input, the radar echo data distribution is learned through the conditional diffusion model to generate more accurate and longer-term radar echo extrapolation results.
It improves the accuracy and timeliness of radar echo extrapolation, enabling more accurate prediction of future weather phenomena.
Smart Images

Figure CN117911715B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a radar echo extrapolation method, belonging to the field of meteorological radar technology. Background Technology
[0002] Radar echo extrapolation is a forecasting method based on radar observation data, primarily used for short-term precipitation forecasting. Compared to traditional numerical weather prediction methods, radar echo extrapolation can achieve faster and more accurate forecasts. Existing radar echo extrapolation methods use statistical approaches to train models using historical observation data, and extrapolate predictions by establishing the relationship between radar echo data and future weather phenomena. Due to the complexity and dynamic changes of meteorological targets, as well as limitations in data processing and algorithm design, existing radar echo extrapolation methods suffer from poor accuracy and short timeliness, failing to meet industry needs. Summary of the Invention
[0003] The purpose of this disclosure is to overcome the shortcomings of the prior art and provide a radar echo extrapolation method with higher accuracy and longer timeliness.
[0004] To achieve the above objectives, this disclosure employs the following technical solution:
[0005] Firstly, this disclosure provides a radar echo extrapolation method, including,
[0006] Acquire radar echo reflectivity factor data for the first time period and radar echo reflectivity factor data for the second time period, which is closer to the current time than the first time period;
[0007] The input conditions are obtained based on the radar echo reflectivity factor data and environmental field data from the first time period and the reanalysis data.
[0008] Noise is added to the radar echo reflectivity factor data for the second time period to generate the original input;
[0009] Train the conditional diffusion model based on the conditional input and the original input;
[0010] Input pure noise into the trained conditional diffusion model to generate radar echo extrapolation sequences.
[0011] In some embodiments of the first aspect, a method for acquiring radar echo reflectivity factor data includes,
[0012] Obtain radar echo reflectivity factors from multiple radars and at multiple elevation angles, and eliminate non-meteorological echoes;
[0013] Interpolate to a Cartesian coordinate system on a 3km contour surface;
[0014] The interpolated radar echo reflectivity factor was mosaicked to obtain radar echo reflectivity factor data with a 3km contour surface, a spatial resolution of 1km, and a temporal resolution of 6 minutes.
[0015] In some embodiments of the first aspect, a method for acquiring reanalysis data environmental field data includes,
[0016] Collect environmental field grid data for the same region as the radar echo reflectivity factor data in the ERA5 reanalysis data;
[0017] Temporal and spatial interpolation algorithms are used to process the environmental field grid data to obtain reanalysis environmental field data with spatiotemporal resolution consistent with radar echo reflectivity factor data.
[0018] In some embodiments of the first aspect,
[0019] A Transformer-based spatiotemporal feature encoder and spatiotemporal feature decoder are pre-built;
[0020] The step of obtaining conditional inputs based on radar echo reflectivity factor data and reanalysis environmental field data for the first time period includes: inputting radar echo reflectivity factor data and reanalysis environmental field data for the first time period into the spatiotemporal feature encoder, and using the encoded conditional feature map as conditional inputs.
[0021] Adding noise to the radar echo reflectivity factor data of the second time period to generate the original input includes: inputting the radar echo reflectivity factor data of the second time period into the spatiotemporal feature encoder, and gradually adding Gaussian noise, and using the encoded noise feature map as the original input;
[0022] The spatiotemporal feature decoder is used to decode the radar echo extrapolation sequence output by the conditional diffusion model to normal dimensions.
[0023] In some embodiments of the first aspect, the spatiotemporal feature encoder includes a 3D patch embedding and multiple dual attention modules, the dual attention modules being composed of spatial multihead attention and channelgroup attention;
[0024] The spatiotemporal feature decoder includes a 3D patch embeddingback module and a linear layer.
[0025] In some embodiments of the first aspect,
[0026] The conditional diffusion model is constructed based on modifications to the network architecture of the UNet model. The methods for modifying the network architecture of the UNet model include:
[0027] Obtain the original UNet model;
[0028] The 2D convolutions in the original UNet structure were replaced with 3D convolutions;
[0029] The cross-attention mechanism module couples the network with conditional input features.
[0030] In some embodiments of the first aspect, training the conditional diffusion model based on the conditional input and the original input includes,
[0031] The conditional feature map and noise feature map are input into the conditional diffusion model for training. The loss function of the conditional diffusion model is:
[0032] ;
[0033] In the formula, L CLDM Let ε be the loss function, N(0,I) be the random noise following a Gaussian distribution, I be the standard deviation, s be the order of denoising steps, and S be the total number of steps in the conditional diffusion model denoising process. θ For the UNet model with modified network architecture, z s This is a noise feature map. This is a conditional feature map.
[0034] Secondly, this disclosure provides a radar echo extrapolation device, comprising,
[0035] Acquisition module: used to acquire radar echo reflectivity factor data for the first time period and radar echo reflectivity factor data for the second time period, which is closer to the current time than the first time period;
[0036] Input module: used to obtain conditional input based on radar echo reflectivity factor data and environmental field data from the first time period and reanalysis data; also used to add noise to the radar echo reflectivity factor data from the second time period to generate the original input;
[0037] Training module: Used to train the conditional diffusion model based on the conditional input and the original input;
[0038] Inference module: Used to input pure noise into a trained conditional diffusion model to generate radar echo extrapolation sequences.
[0039] Thirdly, this disclosure provides an electronic device, characterized in that it includes a processor and a storage medium connected to the processor, wherein a computer program is stored in the storage medium, and when the computer program is executed by the processor, it performs the steps of the method as described in any embodiment of the first aspect.
[0040] Fourthly, this disclosure provides a computer-readable storage medium having a computer program stored thereon, characterized in that, when the program is executed by a processor, it implements the steps of the method described in any embodiment of the first aspect.
[0041] Compared with the prior art, the beneficial effects achieved by this disclosure are as follows:
[0042] This disclosure provides a radar echo extrapolation method that uses the environmental field of reanalysis data as the conditional input of a conditional diffusion model. The conditional diffusion model is used to learn the data distribution of radar echoes, thereby constraining the extrapolation results and producing more accurate and longer-term echo extrapolation results.
[0043] We construct a spatiotemporal feature encoder and a spatiotemporal feature decoder based on Transformer, and introduce window spatial attention mechanism and group channel attention mechanism as feature encoders for radar echo sequences and environmental field data of reanalysis data. This enhances the long-term temporal dependence of radar echo sequences and can effectively extract local and global spatial features of radar echo sequences. By introducing environmental field features of reanalysis data as prior knowledge, we can improve the forecast accuracy of extreme weather.
[0044] The radar echo extrapolation device, electronic device, and computer-readable storage medium provided in this disclosure have the same beneficial effects. Attached Figure Description
[0045] To more clearly illustrate the technical solutions in this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0046] Figure 1 This is a flowchart of the radar echo extrapolation method provided in this disclosure;
[0047] Figure 2 This is a schematic diagram of the spatiotemporal feature encoder in the radar echo extrapolation method provided in this disclosure;
[0048] Figure 3 This is a schematic diagram of the spatiotemporal feature decoder in the radar echo extrapolation method provided in this disclosure;
[0049] Figure 4 This is a flowchart of the steps for training the conditional diffusion model in the radar echo extrapolation method provided in this disclosure;
[0050] Figure 5 This is a flowchart of the inference stage in the radar echo extrapolation method provided in this disclosure;
[0051] Figure 6 This is a schematic diagram of the conditional diffusion model in the radar echo extrapolation method provided in this disclosure;
[0052] Figure 7 This is a schematic diagram of the input / output of the conditional diffusion model in the radar echo extrapolation method provided in this disclosure. Detailed Implementation
[0053] The technical solution of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the embodiments and specific features in the embodiments are detailed descriptions of the technical solution of the present application, rather than limitations thereof. In the absence of conflict, the embodiments and technical features in the embodiments can be combined with each other.
[0054] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0055] Example 1:
[0056] Figure 1 This is a flowchart of a radar echo extrapolation method according to Embodiment 1 of the present invention. This flowchart only illustrates the logical sequence of the method described in this embodiment. Provided there are no conflicts, different methods may be used in other possible embodiments of the present invention. Figure 1 Complete the steps shown or described in the order indicated.
[0057] The radar echo extrapolation method provided in this embodiment can be applied to a terminal and can be executed by a radar echo extrapolation device. This device can be implemented in software and / or hardware and can be integrated into the terminal, for example, any computer device with radar echo extrapolation capabilities. See also... Figure 1 The method implemented in this way specifically includes the following steps:
[0058] Obtain radar echo reflectivity factor data for the first time period and radar echo reflectivity factor data for the second time period, which is closer to the current time than the first time period.
[0059] The input conditions are obtained based on the radar echo reflectivity factor data and environmental field data from the first time period and the reanalysis data.
[0060] The first time period and the second time period are generally two consecutive time periods, such as the first time period being 8-10 am and the second time period being 10-12 pm. The method for obtaining radar echo reflectivity factor data and reanalysis environmental field data in the first time period can be as follows: within the first time period, basic reflectivity factor data of radar echoes from multiple radars and multiple elevation angles within a specified area are collected, quality controlled, and preprocessed to obtain radar reflectivity network mosaic data within the specified area (i.e., radar echo reflectivity factor data in the first time period). At the same time, multiple environmental field data from reanalysis data within the same area as the radar echo reflectivity factor data are collected and preprocessed to obtain multiple environmental field data with the same spatiotemporal resolution as the radar reflectivity network mosaic data. Based on the input and forecast duration (e.g., 2 hours), a sequence dataset for radar echo extrapolation is constructed. This sequence dataset has a fixed time interval (e.g., 6 minutes) and includes radar echo reflectivity factor data and reanalysis environmental field data from the first time period, which can be used as the conditional input for the conditional diffusion model. The environmental field data sources include ERA5 (European Centre for Medium-Range Weather Forecasts, fifth generation global reanalysis data).
[0061] Noise is added to the radar echo reflectivity factor data for the second time period to generate the original input. The method for obtaining the radar echo reflectivity factor data for the second time period is the same as that for the radar echo reflectivity factor data for the first time period.
[0062] The conditional diffusion model is trained based on the conditional input and the original input. Once trained, the conditional diffusion model is used to predict the evolution sequence of radar echoes over a future period.
[0063] Input pure noise into the trained conditional diffusion model to generate radar echo extrapolation sequences.
[0064] Optionally, in this embodiment, a more specific implementation case is as follows: Radar echo reflectivity factor data and reanalysis environmental field data (radar echo reflectivity factor data can be obtained from radar echo maps) are acquired from 8-10 AM and processed into conditional inputs that can be used for training the conditional diffusion model; radar echo reflectivity factor data from 10-12 AM is acquired, and noise (optionally, Gaussian noise in this embodiment) is added to the radar echo reflectivity factor data, processed into the original inputs that can be used for training the conditional diffusion model. A conditional diffusion model is constructed, and the original inputs and conditional inputs are fed into the conditional diffusion model for training. The weights of the conditional diffusion model are continuously trained and optimized based on the comparison between the predicted noise of the conditional diffusion model and the noise actually added to the radar echo reflectivity factor data for the second time period. The noise restoration capability of the conditional diffusion model is trained, and the trained diffusion model is used as a conditional image generator; noise is input into the conditional image generator, and the conditional image generator generates a radar echo extrapolation sequence (including predicted radar echo extrapolation images) from 12-14 AM by restoring the noise. The time periods of 8-10, 10-12 and 10-12 mentioned above are only examples for explanation. 8-10 refers to 8:00-10:00, and so on.
[0065] Optionally, in this embodiment, the process of processing radar echo reflectivity factor data includes quality control to remove non-meteorological echoes, interpolating to a Cartesian coordinate system with a 3km contour surface, and then mosaicking the interpolated data from multiple radars to obtain radar reflectivity network mosaic data with a 3km contour surface, a spatial resolution of 1km, and a temporal resolution of 6 minutes within a specified area. The process of processing environmental field data from reanalysis data includes collecting environmental field grid data from the same area as the radar reflectivity data in the ERA5 reanalysis data, and interpolating it using temporal and spatial interpolation algorithms to obtain environmental field data with the same spatiotemporal resolution as the radar reflectivity network mosaic data. The 10-12 hour period is divided into sequences according to the input and forecast duration. The sequence length L, the number of input factors N, the length W of the data grid, and the height H of the data grid are defined. Each sequence segment is a 4-dimensional array (T×H×W×C). Since it has time dimension, spatial dimension, and channel dimension, the dimensionality of this 4-dimensional array is relatively high.
[0066] Generally, radar reflectivity factor maps of 3km contour surfaces can reflect precipitation processes well. Therefore, radar reflectivity factor maps of 3km contour surfaces are usually extrapolated. However, the resolution of existing S-band radar echo data commonly used in gas phase is 6 minutes.
[0067] The radar echo extrapolation method provided in this embodiment can be used continuously and in a rolling manner. For example, when it is necessary to predict the radar echo from 12:00 to 14:00, the radar echo extrapolation sequence from 12:00 to 14:00 is generated using twenty radar echo images from 8:00 to 10:00 and their corresponding analysis data environmental field data, as well as the conditional diffusion model trained on twenty radar echo images from 10:00 to 12:00 with added noise. When further prediction is needed, the radar echo extrapolation sequence from 14:00 to 16:00 is generated using twenty radar echo images from 10:00 to 12:00 and their corresponding analysis data environmental field data, as well as the conditional diffusion model trained on twenty radar echo images from 12:00 to 14:00 with added noise. And so on, the future radar echo extrapolation sequence is predicted periodically over time.
[0068] The radar echo extrapolation method provided in this embodiment improves the convergence speed of the conditional diffusion model by introducing environmental field data from reanalysis as part of the conditional input. It uses the conditional diffusion model to learn the data distribution of radar echoes, thereby constraining the extrapolation results.
[0069] Example 2:
[0070] This embodiment provides a radar echo extrapolation method, which is an improvement on the first embodiment. For details not covered, please refer to the first embodiment.
[0071] Example 1 mentions the specific acquisition of conditional input and original input. However, the conditional input and original input acquired in Example 1 have high dimensionality, which may lead to high computational resource consumption and decreased model stability. Optionally, in this example, a Transformer spatiotemporal feature encoder and spatiotemporal feature decoder based on a self-attention mechanism neural network model are constructed. The spatiotemporal feature encoder is used to reduce the dimensionality of the conditional input and original input. The spatiotemporal feature encoder encodes the input data sequence into low-dimensional latent features. When the trained conditional diffusion model restores the input pure noise to generate a radar echo extrapolation sequence, the spatiotemporal feature decoder maps the latent spatiotemporal features back to the original data space. The spatiotemporal feature decoder is used to decode the generated radar echo extrapolation sequence to restore the dimensionality. In this example, both the conditional input and original input for training the spatiotemporal feature encoder are encoded and reduced in dimensionality by the spatiotemporal feature encoder. Therefore, the low-dimensional radar echo extrapolation sequence output by the trained spatiotemporal feature encoder needs to be upgraded and decoded by the spatiotemporal feature decoder to obtain a normal-dimensional radar echo extrapolation sequence. In Example 2, the low-dimensional radar echo extrapolation sequence output by the trained spatiotemporal feature encoder can optionally be a feature map.
[0072] Based on Transformer, a spatiotemporal feature encoder and a spatiotemporal feature decoder are constructed. The spatiotemporal feature encoder mainly functions to perform spatiotemporal dimensionality reduction and spatiotemporal feature extraction. The spatiotemporal feature decoder decodes and upscales the encoded content output by the conditional feature model to the normal dimension before encoding or other highly readable dimensions.
[0073] As mentioned in Example 1, the condition input is obtained based on the radar echo reflectivity factor data and the environmental field data of the reanalysis data in the first time period. In this example, the radar echo reflectivity factor data and the environmental field data of the reanalysis data in the first time period are input into the spatiotemporal feature encoder, and the encoded conditional feature map is used as the condition input.
[0074] As mentioned in Example 1, noise is added to the radar echo reflectivity factor data of the second time period to generate the original input. In this example, the radar echo reflectivity factor data of the second time period is input into the spatiotemporal feature encoder, and Gaussian noise is added step by step. The encoded noise feature map is used as the original input. When the trained conditional diffusion model is processed to input pure noise, the input pure noise is Gaussian noise.
[0075] Optionally, in this embodiment, the spatiotemporal feature encoder includes a 3D patch embedding and multiple dual attention modules, wherein the dual attention modules consist of spatial multihead attention and channel group attention; the spatiotemporal feature decoder includes a 3D patch embedding module and a linear layer.
[0076] Optionally, in this embodiment, the main purpose of the spatiotemporal feature encoder is to perform spatiotemporal dimensionality reduction and spatiotemporal feature extraction on radar echo reflectivity factor data to obtain encoded spatiotemporal feature vectors. The model structure of the spatiotemporal feature encoder is as follows: Figure 2 As shown, Z represents the sequence data of the input spatiotemporal feature encoder. The sequence data includes radar echo reflectivity factor data and reanalysis environmental field data. Z is four-dimensional data (T×H×W×C), where T represents the time step, H is the grid height, W is the grid width, and C is the number of channels. 3D patch embedding involves cutting the input data sequence into fixed-size patches in the time and spatial dimensions H×W. The time dimension refers to the time step T. The patch size is generally 4×4×4, and these patches are stacked in the channel dimension C. Position encoding is performed on these patches to obtain the dimensionality-reduced vector. Then The inputs are sequentially fed into the spatial window self-attention module, the layer normalization and feedforward neural network module Norm&FFN, the channel group self-attention module, and Norm&FFN to obtain the spatiotemporal feature vector after spatiotemporal feature extraction. The spatiotemporal feature vector It can be used as a conditional feature map, where the conditional feature map refers to the conditional input. Using Transformer as the basic architecture, a window spatial attention mechanism and a group channel attention mechanism are introduced as feature encoders for radar echo sequences and reanalysis environmental field data. This enhances the long-term temporal dependencies of the radar echo sequences and can effectively extract local and global spatial features of the radar echo sequences. Environmental field features from the reanalysis data are introduced as prior knowledge.
[0077] Optionally, in this embodiment, the spatiotemporal feature decoder mainly increases the dimensionality of the encoded feature vectors and maps them back to the original data space size, as shown in the following structure. Figure 3 As shown, The resulting spatiotemporal feature vector, after dimensionality reduction, has a spatiotemporal feature encoding part with the same structure as the encoder. It is obtained after another round of spatiotemporal feature encoding. After restoration by the 3D patch Embdingback module and linear projection, Restore the original data space, i.e., Z(T×H×W×C).
[0078] The conditional diffusion model mentioned in Example 1 can be constructed by modifying the network architecture of the UNet model. The UNet model is a deep learning model used for image segmentation. Optionally, in this example, the method for modifying the network architecture of the UNet model, i.e., the key steps in constructing the conditional diffusion model in this example, includes:
[0079] Obtain the original UNet model;
[0080] The 2D convolutions in the original UNet structure were replaced with 3D convolutions;
[0081] The cross-attention mechanism module couples the network with conditional input features.
[0082] Further explanation of some of the steps involved in using the radar echo extrapolation method:
[0083] During the training phase of training the conditional diffusion model based on conditional inputs and raw inputs, radar echo reflectivity factor data and reanalysis environmental field data from the first time period are input into the spatiotemporal feature encoder to obtain the encoded conditional feature map. The first time period can be understood as a past period, where the radar echo reflectivity factor data is the radar echo sequence, and the reanalysis data environmental field data is the environmental field sequence. The radar echo reflectivity factor data for the second time period is input into a spatiotemporal feature encoder, and random Gaussian noise is gradually added to obtain the noise feature map z. s ,Will With z s The data is input into the conditional diffusion model for training; the second time period can be understood as a future period, the radar echo reflectivity factor data can be understood as a radar echo sequence, and the noise feature map can be understood as the original noise map. The loss function of the conditional diffusion model is:
[0084] ;
[0085] In the formula, L CLDM Let ε be the loss function, N(0,I) be the random noise following a Gaussian distribution, I be the standard deviation, s be the order of denoising steps, and S be the total number of steps in the conditional diffusion model denoising process. θ For the UNet model with modified network architecture, z s This is a noise feature map. This is a conditional feature map.
[0086] Optionally, in this embodiment, reference is made to... Figure 6 The conditional diffusion model includes a downsample block, which consists of a residual block (Res block), an attention block, a Res block, and a 3D convolution (Conv3D). The conditional diffusion model also includes an upsample block, which consists of a Res block, an attention block, a Res block, and a 3D transpose convolution (ConvTranspose3D).
[0087] Optionally, in this embodiment, the training phase process is as follows: Figure 4 As shown, the radar echo reflectivity factor data X for the first time period is... -T:0 And reanalysis of environmental field data Y -T:0 Input into the spatiotemporal feature encoder TransformerEncoder to obtain the encoded conditional feature map. The first time period can be understood as a past period, corresponding to the input duration, i.e., the time period from -T:0. The radar echo reflectivity factor data for the second time period is then X... 1:S The input is encoded into a feature map Z0 in the Transformer Encoder; the second time period can be understood as a future period, corresponding to the prediction duration, i.e., the time period of 1:S; and noise is gradually added, i.e., the AddNoise Process in the figure, to obtain the noise feature map z of the second time period. s ,Will With z s The input is fed into the Diffusion Mode conditional diffusion model for training, resulting in a trained conditional diffusion model. Figure 4 In this context, "condition" refers to the condition, "calculate loss" refers to the loss calculation, which is a process of training the conditional diffusion model, "DeNoise Process" refers to denoising, and "Train Step" refers to the number of training steps.
[0088] Training phase, such as Figure 7 As shown, the UNet model with modified network architecture, i.e., the conditional diffusion model, is input with a noise feature map z that follows a Gaussian distribution of random noise ε. s and conditional feature maps The random noise is a pure Gaussian noise feature vector. The UNet model, after network architecture modification, predicts the added noise. Calculate and predict the added noise The loss between the actual added random noise ε that follows a Gaussian distribution, i.e. Figure 4 In the middle stage, calculate the loss, backpropagate to update the model, and save the trained model weights. During the inference phase, random noise ε following a Gaussian distribution and conditional feature maps are used. The modified UNet model with the pre-trained network architecture is input to reconstruct the predicted radar feature map vector. Then, the feature vector is mapped back to the original data space by a Transformer-based spatiotemporal feature decoder to obtain the radar echo extrapolation sequence. The random noise is randomly sampled Gaussian noise, and the modified UNet model is a conditional diffusion model.
[0089] Optionally, in this embodiment, reference is made to... Figure 5 During the inference phase, when the trained conditional diffusion model is used, the radar echo reflectivity factor data X from the first time period is used. -T:0 And reanalysis of environmental field data Y -T:0 The input spatiotemporal feature encoder is used to obtain the encoded conditional feature map. The pure Gaussian noise feature vector ε is used as the original input. Note that the original input here is different from the noise feature map z used in the training phase. s Using the trained conditional diffusion model as the original input, the radar echo extrapolation sequence X is generated by reconstructing the pure Gaussian noise feature vector ε. 1:S In the diagram, Interference Step refers to adding noise to the model's predictions during training, Trained DiffusionModel is the trained conditional diffusion model, and Z... predict The output feature map of the conditional diffusion model needs to be decoded by a spatiotemporal feature decoder to obtain the radar echo extrapolation sequence X. 1:S '.
[0090] Therefore, in this embodiment, in the step of "inputting pure noise into the trained conditional diffusion model to generate radar echo extrapolation sequence", a spatiotemporal feature encoder based on Transformer is still needed to assist in processing the generation of conditional input and original input.
[0091] The main difference between the training and inference phases lies in the original input; during the training phase, the original input consists of a noisy feature map z. s The noise addition is known; the conditional diffusion model during training continuously predicts the noise and compares the predicted noise with the noise feature map z. s The actual noise is compared to adjust the weights of each parameter in the conditional diffusion model, and the conditional diffusion model is trained. During the training phase, the sequence data of the first and second time periods are known. For example, the first time period is 8-10 am and the second time period is 10-12 pm. The sequence data of the first and second time periods are obtained at 12 pm. During the inference phase, the original input is pure noise. The conditional diffusion model trained during the training phase restores the pure noise to radar echo reflectivity factor data based on the conditional input. The radar echo reflectivity factor data can be organized into a radar echo extrapolation sequence. During the inference phase, the time period corresponding to the conditional input is a past period, such as 8-10 am, 10-12 pm, or 8-12 pm. At 12 pm, the conditional feature map and pure noise of the past period are input to the trained conditional diffusion model, i.e., the conditional input and the original input. The trained conditional diffusion model outputs multiple radar echo prediction maps of different future time points from 12-2 pm (or longer), i.e., the radar echo extrapolation sequence.
[0092] The radar echo extrapolation method provided in this embodiment takes the constructed radar echo and the corresponding environmental field sequence as input, trains a neural network model based on Transformer and conditional diffusion model, and predicts the radar echo evolution sequence. Transformer can better model the sequence data, that is, it has a better ability to model long-range dependencies of sequence data, which is more conducive to long-term radar echo extrapolation. By introducing environmental field data from reanalysis data as conditions, the conditional diffusion model is used to learn the data distribution of radar echoes, and then the extrapolation results are constrained, which can produce more accurate and longer-term echo extrapolation results.
[0093] Example 3:
[0094] This embodiment provides a radar echo extrapolation device, the device comprising:
[0095] Acquisition module: used to acquire radar echo reflectivity factor data for the first time period and radar echo reflectivity factor data for the second time period, which is closer to the current time than the first time period;
[0096] Input module: used to obtain conditional input based on radar echo reflectivity factor data and environmental field data from the first time period and reanalysis data; also used to add noise to the radar echo reflectivity factor data from the second time period to generate the original input;
[0097] Training module: Used to train the conditional diffusion model based on the conditional input and the original input;
[0098] Inference module: Used to input pure noise into a trained conditional diffusion model to generate radar echo extrapolation sequences.
[0099] The radar echo extrapolation device provided in this embodiment of the invention can execute the radar echo extrapolation method provided in any embodiment of the invention, for example... Figure 1 The radar echo extrapolation method shown has the corresponding functional modules and beneficial effects of the execution method.
[0100] This invention also provides an electronic device, including a processor and a storage medium;
[0101] The storage medium is used to store instructions;
[0102] The processor is configured to operate according to the instructions to perform the steps of the following method:
[0103] Acquire radar echo reflectivity factor data for the first time period and radar echo reflectivity factor data for the second time period, which is closer to the current time than the first time period;
[0104] The input conditions are obtained based on the radar echo reflectivity factor data and environmental field data from the first time period and the reanalysis data.
[0105] Noise is added to the radar echo reflectivity factor data for the second time period to generate the original input;
[0106] Train the conditional diffusion model based on the conditional input and the original input;
[0107] Input pure noise into the trained conditional diffusion model to generate radar echo extrapolation sequences.
[0108] The electronic device provided in the embodiments of the present invention can execute the radar echo extrapolation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.
[0109] This invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the following method:
[0110] Acquire radar echo reflectivity factor data for the first time period and radar echo reflectivity factor data for the second time period, which is closer to the current time than the first time period;
[0111] The input conditions are obtained based on the radar echo reflectivity factor data and environmental field data from the first time period and the reanalysis data.
[0112] Noise is added to the radar echo reflectivity factor data for the second time period to generate the original input;
[0113] Train the conditional diffusion model based on the conditional input and the original input;
[0114] Input pure noise into the trained conditional diffusion model to generate radar echo extrapolation sequences.
[0115] When the radar echo extrapolation method stored in the computer-readable storage medium provided in the embodiments of the present invention is executed, it has the corresponding beneficial effects of the execution method.
[0116] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage media, CD-ROMs, optical storage media, etc.) containing computer-usable program code.
[0117] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0118] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0119] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0120] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
[0121] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined with "first," "second," etc., may explicitly or implicitly include one or more of that feature. In the description of this invention, unless otherwise stated, "a plurality of" means two or more.
[0122] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art will understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0123] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A radar echo extrapolation method, characterized in that, include, Acquire radar echo reflectivity factor data for the first time period and radar echo reflectivity factor data for the second time period, which is closer to the current time than the first time period; The input conditions are obtained based on the radar echo reflectivity factor data and environmental field data from the first time period and the reanalysis data. Noise is added to the radar echo reflectivity factor data for the second time period to generate the original input; Train the conditional diffusion model based on the conditional input and the original input; Input pure noise into a trained conditional diffusion model to generate a radar echo extrapolation sequence; It also includes pre-constructing a Transformer-based spatiotemporal feature encoder and spatiotemporal feature decoder; The step of obtaining conditional inputs based on radar echo reflectivity factor data and reanalysis environmental field data for the first time period includes: inputting radar echo reflectivity factor data and reanalysis environmental field data for the first time period into the spatiotemporal feature encoder, and using the encoded conditional feature map as conditional inputs. Adding noise to the radar echo reflectivity factor data of the second time period to generate the original input includes: inputting the radar echo reflectivity factor data of the second time period into the spatiotemporal feature encoder, and gradually adding Gaussian noise, and using the encoded noise feature map as the original input; The spatiotemporal feature decoder is used to decode the radar echo extrapolation sequence output by the conditional diffusion model to normal dimensions; The spatiotemporal feature encoder includes a 3D patch embedding and multiple dual attention modules, wherein the dual attention modules consist of spatial multi-head attention and channel group attention; The spatiotemporal feature decoder includes a 3D patch module and a linear layer.
2. The radar echo extrapolation method according to claim 1, characterized in that, Methods for obtaining radar echo reflectivity factor data include, Obtain radar echo reflectivity factors from multiple radars and at multiple elevation angles, and eliminate non-meteorological echoes; Interpolate to a Cartesian coordinate system on a 3km contour surface; The interpolated radar echo reflectivity factor was mosaicked to obtain radar echo reflectivity factor data with a 3km contour surface, a spatial resolution of 1km, and a temporal resolution of 6 minutes.
3. The radar echo extrapolation method according to claim 1, characterized in that, Methods for obtaining environmental field data for reanalysis include, Collect environmental field grid data for the same region as the radar echo reflectivity factor data in the ERA5 reanalysis data; Temporal and spatial interpolation algorithms are used to process the environmental field grid data to obtain reanalysis environmental field data with spatiotemporal resolution consistent with radar echo reflectivity factor data.
4. The radar echo extrapolation method according to claim 1, characterized in that, The conditional diffusion model is constructed based on modifications to the network architecture of the UNet model. The methods for modifying the network architecture of the UNet model include: Obtain the original UNet model; Replace the 2D convolutions in the original UNet structure with 3D convolutions; The cross-attention mechanism module couples the network with conditional input features.
5. The radar echo extrapolation method according to claim 4, characterized in that, The training of the conditional diffusion model based on conditional input and original input includes, The conditional feature map and noise feature map are input into the conditional diffusion model for training. The loss function of the conditional diffusion model is: ; In the formula, Let be the loss function, ε be the random noise following a Gaussian distribution, N(0,I) be a Gaussian distribution with a mean of 0 and a standard deviation of 1, I be the standard deviation, s be the order of denoising steps, and S be the total number of steps in the conditional diffusion model denoising process. This is the UNet model with modified network architecture. This is a noise feature map. This is a conditional feature map.
6. A radar echo extrapolation device, characterized in that, include, Acquisition module: used to acquire radar echo reflectivity factor data for the first time period and radar echo reflectivity factor data for the second time period, which is closer to the current time than the first time period; Input module: used to obtain conditional input based on radar echo reflectivity factor data and environmental field data from the first time period and reanalysis data; also used to add noise to the radar echo reflectivity factor data from the second time period to generate the original input; Training module: Used to train the conditional diffusion model based on the conditional input and the original input; Inference module: Used to input pure noise into the trained conditional diffusion model and generate radar echo extrapolation sequences; It also includes pre-constructing a Transformer-based spatiotemporal feature encoder and spatiotemporal feature decoder; The step of obtaining conditional inputs based on radar echo reflectivity factor data and reanalysis environmental field data for the first time period includes: inputting radar echo reflectivity factor data and reanalysis environmental field data for the first time period into the spatiotemporal feature encoder, and using the encoded conditional feature map as conditional inputs. Adding noise to the radar echo reflectivity factor data of the second time period to generate the original input includes: inputting the radar echo reflectivity factor data of the second time period into the spatiotemporal feature encoder, and gradually adding Gaussian noise, and using the encoded noise feature map as the original input; The spatiotemporal feature decoder is used to decode the radar echo extrapolation sequence output by the conditional diffusion model to normal dimensions; The spatiotemporal feature encoder includes a 3D patch embedding and multiple dual attention modules, wherein the dual attention modules consist of spatial multi-head attention and channel group attention; The spatiotemporal feature decoder includes a 3D patch module and a linear layer.
7. An electronic device, characterized in that, The method includes a processor and a storage medium connected to the processor, wherein a computer program is stored in the storage medium, and when the computer program is executed by the processor, the steps of the method as described in any one of claims 1 to 5 are performed.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps of the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Strong convective weather nowcasting method and system based on thunderstorm high voltage analysis
CN115201938A
Multi-meteorological-element rainfall prediction method, device and equipment and storage medium
CN115220133A
