A downscaling method based on model-independent meta-learning and dense residual attention
Through the downscaling method based on model-independent element learning and dense residual attention, the problems of high computing resources and poor adaptability in the existing technology are solved, and efficient downscaling processing of multiple meteorological variables and multiple spatiotemporal ranges is achieved, improving the Accuracy and adaptability of meteorological physics forecasts.
Patent Information
- Application Number
- CN202410931719.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-12
AI Technical Summary
Existing downscaling methods have problems with high computational resource consumption, error accumulation, and poor adaptability to new spatiotemporal scenarios in climate simulations. Moreover, processing meteorological variables alone ignores the complex interactions between meteorological variables, affecting prediction accuracy.
A downscaling method based on model-independent meta-learning and dense residual attention is adopted. Through meta-model training of multiple downscaling tasks, combined with dense residual attention blocks and adaptive loss weight strategies, a downscaling model that can generalize is generated. , suitable for multiple meteorological variables and multiple time and space ranges.
It significantly improves the meteorological physics accuracy and detail richness of downscaling results, reduces data requirements and computational costs, and enhances adaptability and performance scalability to different spatiotemporal ranges and meteorological variables.
Smart Images

Figure CN118485923B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a downscaling method based on model-independent meta-learning and dense residual attention. Background Art
[0002] Modeling weather and climate is a ubiquitous necessity for science and society. It helps enhance our understanding of future climate change. However, the complex physical processes in climate dynamics models pose significant numerical challenges, making the cost of conducting long-term, high-resolution simulations prohibitively high. To overcome this limitation, deep learning has been introduced to accelerate the climate simulation process, leveraging the powerful reasoning capabilities of neural networks to achieve this goal. In particular, downscaling methods are widely used when processing global climate model outputs. This method can convert large-scale, low-resolution global data into small-scale, high-resolution information on local climate changes. Currently, downscaling technology plays a vital role in the field of climate analysis, providing more detailed meteorological data support for climate research, weather forecasting, and various decision-making.
[0003] Existing downscaling methods include dynamical downscaling and statistical downscaling. Dynamical downscaling is a numerical weather forecasting method that uses higher-resolution regional models based on the rough output of global climate models to refine the meteorological conditions in a specific area, thereby improving the accuracy and detail of local weather forecasts. Dynamical downscaling requires a large amount of computing resources, and the amount of computation increases exponentially with the increase in model resolution. Moreover, the dynamical downscaling effect is affected by many factors, resulting in errors and uncertainties. These errors will continue to accumulate during the long-term integration process of regional climate models, eventually causing the dynamical downscaling results to gradually deviate from the large-scale climate field that drives them, resulting in "climate drift."
[0004] Statistical downscaling models the statistical relationships between large-scale and local meteorological variables, leveraging historical data and large-scale forecast information to refine regional climate or weather forecasts. This method is relatively simple and computationally inefficient. Deep learning-based downscaling, which has emerged in recent years, belongs to this type of statistical downscaling. This data-driven approach requires large amounts of data to learn these relationships. However, constrained by historical statistical relationships, it cannot accurately describe patterns that have not occurred historically and is not applicable to regions where the correlation between large-scale and regional elements is low. Furthermore, existing deep learning-based downscaling methods tend to focus on specific spatiotemporal scales, performing well within these predefined environments. However, when faced with new spatiotemporal scenarios, these models require extensive retraining and data to achieve comparable performance. Furthermore, current deep learning-based downscaling techniques tend to treat specific meteorological variables in isolation, designing unique models for each variable. This isolated approach ignores the complex physical interactions between meteorological variables, potentially leading to an incomplete understanding of atmospheric dynamics and thus compromising forecast accuracy.
[0005] Therefore, it is necessary to provide a downscaling method based on model-independent meta-learning and dense residual attention to improve the atmospheric physics accuracy and detail richness of the downscaling results. Summary of the Invention
[0006] The present invention provides a downscaling method based on model-independent meta-learning and dense residual attention, comprising: determining a plurality of downscaling tasks, wherein at least one of a meteorological variable, a time range, and a spatial range corresponding to any two of the downscaling tasks differs; for each of the downscaling tasks, determining a downscaled sample corresponding to the downscaling task, wherein the downscaled sample includes an original meteorological map and a downscaled meteorological map corresponding to the original meteorological map; repeatedly sampling from the plurality of downscaling tasks to form a meta-batch task, and training a meta-model until the meta-model meets a preset condition; adjusting parameters of the meta-model based on the downscaling samples corresponding to a target downscaling task to generate a downscaling model corresponding to the target downscaling task; obtaining a to-be-downscaled meteorological map corresponding to the target downscaling task; and generating a downscaled meteorological map corresponding to the to-be-downscaled meteorological map based on the downscaling model corresponding to the target downscaling task.
[0007] Furthermore, the meta-model includes an input module, a first feature extraction module, a second feature extraction module, an upsampling module and an output module, wherein the second feature extraction module includes multiple dense residual attention blocks.
[0008] Furthermore, the workflow of the dense residual attention block is as follows: the input feature map is processed by a two-layer convolution layer using a dense residual connection operation to obtain the output data of the two-layer convolution layer; the output data of the two-layer convolution layer is spliced with the input feature map; the spliced feature map is input to the point-by-point convolution layer; the output data of the point-by-point convolution layer is transmitted to the attention layer; the input feature map, the output data of the two-layer convolution layer and the output data of the attention layer are fused.
[0009] Furthermore, the workflow of the attention layer is as follows: extracting the global information of the output data of the point-by-point convolutional layer through an adaptive average pooling operation; performing feature extraction on the global information through two consecutive nonlinear layers to obtain a weight vector representing the importance of each channel; and multiplying the weight vector with the input feature map.
[0010] Furthermore, repeatedly sampling from the multiple downscaling tasks to form meta-batch tasks and training the meta-model until the meta-model meets the preset conditions, including: S1, sampling from the multiple downscaling tasks to form a meta-batch task, and executing S2; S2, for each downscaling task included in the meta-batch task, performing inner loop training based on the downscaling task, updating the inner loop parameters of the meta-model, and executing S3; S3, based on the inner loop training, obtaining the cumulative test error corresponding to the meta-batch task, and updating the outer loop parameters of the meta-model based on the cumulative test error, and executing S4; S4, judging whether the cumulative test error has reached convergence, if so, completing the training, and if not, executing S1.
[0011] Furthermore, based on the downscaling task, inner loop training is performed, including: assigning an adaptive loss weight to the downscaling task; and performing multiple stochastic gradient descents based on the adaptive loss weight.
[0012] Furthermore, the inner loop parameters of the meta-model are updated based on the following formula: ;in, is the updated parameter, is the parameter before updating, is the task-level learning rate, is the metamodel before parameter update, is the loss function The gradient with respect to the parameters θ.
[0013] Furthermore, the adaptive loss weight of the downscaling task is determined based on the following formula: ; ;in, is the adaptive loss weight of the i-th downscaling task in the meta-batch task, is a meta-batch task, is the total number of downscaling tasks, is the test error of the i-th downscaling task in the meta-batch task, is the cumulative test error of the meta-batch task, are preset parameters.
[0014] Furthermore, based on the accumulated test error, an outer loop parameter update is performed on the meta-model, including: performing stochastic gradient descent based on the accumulated test error.
[0015] Furthermore, the outer loop parameters of the meta-model are updated based on the following formula: ; ;in, is the meta-learning rate.
[0016] Compared with the existing technology, the downscaling method based on model-independent meta-learning and dense residual attention provided by the present invention has at least the following beneficial effects:
[0017] 1. Fully consider the interaction process of meteorological elements and seamlessly expand its downscaling generalization capability. Only a small amount of data is needed to achieve downscaling of different spatiotemporal ranges and meteorological variables, which greatly reduces the cost of existing downscaling technology and has obvious practical significance for improving existing single downscaling technology.
[0018] 2. The downscaling system based on dense residual attention introduces a lightweight channel attention mechanism on the basis of dense residual network, which significantly enhances the performance of the meta-model in recovering local details, thereby effectively improving the overall quality of the downscaling process.
[0019] 3. Adding a loss adaptive weighting strategy. This strategy dynamically adjusts the weight distribution of the loss function for downscaling tasks, effectively preventing the metamodel from overfitting on simple tasks. This design significantly enhances the metamodel's generalization and scalability for downscaling tasks involving different spatiotemporal scales and meteorological variables. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] This specification will be further described in the form of exemplary embodiments, which will be described in detail with reference to the accompanying drawings. These embodiments are not limiting, and in these embodiments, like numbers represent like structures, wherein:
[0021] Figure 1 is a flowchart of a downscaling method based on model-independent meta-learning and dense residual attention according to some embodiments of this specification;
[0022] Figure 2is a schematic diagram of a process for training a meta-model according to some embodiments of this specification;
[0023] Figure 3 is a schematic diagram of the structure of a metamodel according to some embodiments of this specification;
[0024] Figure 4 is a schematic diagram of the structure of a dense residual attention block according to some embodiments of this specification;
[0025] Figure 5 It is a structural diagram of the attention layer shown in some embodiments of this specification. DETAILED DESCRIPTION
[0026] To more clearly illustrate the technical solutions of the embodiments of this specification, the following briefly describes the drawings required for describing the embodiments. Obviously, the drawings described below are merely examples or embodiments of this specification. Those skilled in the art can apply this specification to other similar scenarios based on these drawings without inventive effort. Unless otherwise apparent from the context or otherwise noted, the same reference numerals in the figures represent the same structure or operation.
[0027] Existing downscaling methods based on deep learning mainly focus on the downscaling of a single variable within a specific spatiotemporal range, and often ignore the interactions between multiple meteorological elements. However, they actually have the same original set of equations and come from basic physical laws, such as Newton's laws of motion of the gaseous state and the law of electromagnetic radiation. These physical laws provide basic constraints on changes in meteorological data. In practical applications, it is necessary to train an independent downscaling model for meteorological data sets of different variables and geographical regions, which increases the difficulty of implementation and computational cost, and reduces the scalability and applicability of such methods. Therefore, the present invention proposes a downscaling method based on model-independent meta-learning and dense residual attention to achieve scalable downscaling of multiple meteorological variables and multiple spatiotemporal ranges, so as to better meet the needs of downscaling in reality.
[0028] Figure 1 is a flowchart of a downscaling method based on model-independent meta-learning and dense residual attention according to some embodiments of this specification, such as Figure 1 As shown, a downscaling method based on model-independent meta-learning and dense residual attention can include the following steps.
[0029] Step 110: Determine multiple downscaling tasks.
[0030] Among them, there is a difference in at least one of the meteorological variables, time range and spatial range corresponding to any two downscaling tasks.
[0031] Specifically, meteorological variables, temporal scale, and spatial scale are considered to be the three factors that influence the downscaling task. Each transformation of these factors is considered a different downscaling task, and the distribution of downscaling tasks is called ρ(T).
[0032] For example, 18 different downscaling tasks are sampled from ρ(T) As shown in Table 1, the 18 downscaling tasks used as the meta-training set include six variables: surface temperature at a height of 2 meters, surface pressure, and total precipitation in Region A for the years 2000, 2020, and 2023. For example, downscaling task 1 corresponds to the time range of 2000, the spatial range of Region A, and the variable is the temperature at a height of 2 meters; downscaling task 2 corresponds to the time range of 2000, the spatial range of Region A, and the variable is the dew point temperature at a height of 2 meters; downscaling task 7 corresponds to the time range of 2020, the spatial range of Region A, and the variable is the dew point temperature at a height of 2 meters; and downscaling task 13 corresponds to the time range of 2023, the spatial range of Region A, and the variable is the dew point temperature at a height of 2 meters.
[0033] Specifically, the downscaling task corresponds to one variable. By treating each variable as an independent task, we can better study and understand the characteristics and changes of each variable at different spatiotemporal scales, and simplify the training and evaluation of the meta-model, making the prediction and analysis of each downscaling task clearer and more interpretable.
[0034] Table 1
[0035] Data Source Time Range Spatial range variable ERA5 2000 Area A Temperature at 2 meters ERA5 2000 Area A Dew point temperature at 2 meters height ERA5 2000 Area A Surface pressure ERA5 2000 Area A Total precipitation ERA5 2000 Area A Horizontal wind speed at 10 meters height ERA5 2000 Area A Vertical wind speed at 10 meters ERA5 2020 Area A Temperature at 2 meters ERA5 2020 Area A Dew point temperature at 2 meters height ERA5 2020 Area A Surface pressure ERA5 2020 Area A Total precipitation ERA5 2020 Area A Horizontal wind speed at 10 meters height ERA5 2020 Area A Vertical wind speed at 10 meters GFS 2023 Area A Temperature at 2 meters GFS 2023 Area A Dew point temperature at 2 meters height GFS 2023 Area A Surface pressure GFS 2023 Area A Total precipitation GFS 2023 Area A Horizontal wind speed at 10 meters height GFS 2023 Area A Vertical wind speed at 10 meters
[0036] Given that the attribute differences of each meteorological element lead to huge differences in their numerical ranges, it is necessary to normalize the data set to the range of 0-1 on a year-by-year and variable-by-variable basis in order to speed up the convergence of the model.
[0037] Step 120: For each downscaling task, determine the downscaled samples corresponding to the downscaling task.
[0038] Among them, the downscaled samples include the original meteorological map and the downscaled meteorological map corresponding to the original meteorological map.
[0039] For each downscaling task, 30 pairs of {I LR_i , I HR_i}Downscaled samples, I LR_i represents the large-scale, low-resolution weather map (i.e., the original weather map) corresponding to the i-th downscaling task, I HR_i represents the small-scale, high-resolution weather map (i.e., downscaled weather map) corresponding to the i-th downscaling task, where 15 pairs of downscaled samples serve as the support set The remaining 15 pairs of downscaled samples form the query set In addition, if I LR_i If it cannot be obtained directly from the data source, it is generated through bicubic interpolation.
[0040] Step 130 , repeatedly sampling from multiple downscaling tasks to form meta-batch tasks, and training the meta-model until the meta-model meets preset conditions.
[0041] Just as an example, three downscaling tasks are sampled from multiple downscaling tasks to form a meta-batch task.
[0042] Figure 3 This is a schematic diagram of the structure of the meta-model according to some embodiments of this specification. Figure 3 As shown, the meta-model includes an input module, a first feature extraction module, a second feature extraction module, an upsampling module, and an output module. The second feature extraction module includes multiple dense residual attention blocks. The first feature extraction module may include 3×3 convolutions, the number of dense residual attention blocks may be 8, and the upsampling module may include a 3×3 convolution, i.e., a pixel reassembly upsampling layer.
[0043] Figure 4 is a schematic diagram of the structure of the dense residual attention block shown in some embodiments of this specification, such as Figure 4 As shown in Figure 2, the workflow of the dense residual attention block is as follows:
[0044] The input feature map is processed by a two-layer convolution layer using a dense residual connection operation to obtain the output data of the two-layer convolution layer;
[0045] Concatenate the output data of the second convolutional layer with the input feature map;
[0046] Input the concatenated feature map into the point-by-point convolution layer;
[0047] Pass the output data of the point-by-point convolution layer to the attention layer;
[0048] The input feature map, the output data of the second convolutional layer, and the output data of the attention layer are fused to ensure that the hierarchical information is not lost during the channel weighting process.
[0049] Figure 5 is a schematic diagram of the structure of the attention layer according to some embodiments of this specification, such as Figure 5 As shown, in some embodiments, the workflow of the attention layer is as follows:
[0050] Extract global information from the output data of the point-by-point convolutional layer through adaptive average pooling operation;
[0051] The global information is extracted through two consecutive nonlinear layers to obtain a weight vector representing the importance of each channel;
[0052] The weight vector is multiplied by the input feature map to achieve weighting of each channel. This process implements channel attention on the feature map and enhances the meta-model's ability to focus on key meteorological information.
[0053] Figure 2 is a schematic diagram of a process for training a meta-model according to some embodiments of this specification, such as Figure 2 As shown, in some embodiments, repeatedly sampling from multiple downscaling tasks to form meta-batch tasks and training the meta-model until the meta-model meets preset conditions includes:
[0054] S1, samples from multiple downscaling tasks to form a meta-batch task and executes S2;
[0055] S2. For each downscaling task included in the meta-batch task, perform inner loop training based on the downscaling task, update the inner loop parameters of the meta-model, and execute S3.
[0056] S3. Based on the inner loop training, obtain the cumulative test error corresponding to the meta-batch task, and based on the cumulative test error, perform outer loop parameter update on the meta-model, and execute S4.
[0057] S4. Determine whether the cumulative test error has reached convergence. If so, complete the training. If not, execute S1.
[0058] Specifically, for training a single downscaling task, a small number of gradient descent iterations are performed on each downscaling task to rapidly learn the specific knowledge of each task. The inner loop uses only a small number of training samples and gradient updates to help the meta-model find model parameters that are sensitive to task changes.
[0059] In some embodiments, based on the downscaling task, inner loop training is performed, including:
[0060] Assigning adaptive loss weights to downscaling tasks;
[0061] Perform multiple stochastic gradient descents based on the adaptive loss weights.
[0062] Specifically, different meteorological downscaling tasks have varying degrees of difficulty. Since meta-learning is easily influenced by simple tasks, combining simple and difficult tasks in the same meta-batch can cause the meta-model to overfit to the simple tasks, preventing it from generalizing well to other downscaling tasks. By assigning adaptive loss weights to downscaling tasks, assigning lower loss weights to simple downscaling tasks and correspondingly higher loss weights to difficult downscaling tasks, we can prevent the meta-model from overfitting to simple tasks.
[0063] In some embodiments, the inner loop parameters of the meta-model are updated based on the following formula:
[0064] ,
[0065] in, is the updated parameter, is the parameter before updating, is the task-level learning rate, is the metamodel before parameter update, is the loss function The gradient with respect to the parameters θ.
[0066] In some embodiments, the adaptive loss weight of the downscaling task is determined based on the following formula:
[0067] ,
[0068] ,
[0069] in, is the adaptive loss weight of the i-th downscaling task in the meta-batch task, is a meta-batch task, is the total number of downscaling tasks, is the test error of the i-th downscaling task in the meta-batch task, is the cumulative test error of the meta-batch task, For preset parameters, specifically, is a very small positive integer used to prevent the denominator from being 0. The value range is .
[0070] Specifically, in the outer loop training, the physical connections between multiple downscaling tasks are obtained by training multiple downscaling tasks, so that the meta-model can form a universal and flexible internal representation, thereby enabling the meta-model to be adapted to any temporal and spatial range and meteorological variable downscaling tasks. Optimize. Relative to exist ρ( T ) is the minimum test error among the tasks sampled from .
[0071] In some embodiments, based on the accumulated test error, the outer loop parameter update of the meta-model includes:
[0072] Perform stochastic gradient descent based on the accumulated test error.
[0073] In some embodiments, the outer loop parameters of the meta-model are updated based on the following formula:
[0074] ,
[0075] ,
[0076] in, is the meta-learning rate.
[0077] Meta-training is completed and the model parameters are obtained , which will be used as the initialization parameter in the meta-test fine-tuning phase so that after a few sub-gradient steps, the model can quickly achieve significant performance on the new task.
[0078] Step 140 : Adjust parameters of the meta-model based on the downscaled samples corresponding to the target downscaling task, and generate a downscaling model corresponding to the target downscaling task.
[0079] Specifically, a small number of training data samples are randomly selected from the target downscaling task and processed according to the above preprocessing method. As the initial parameters of the downscaling model, the learning rate is set to The Adam optimizer performs a few parameter updates to obtain the model parameters of the downscaling model corresponding to the target downscaling task . Randomly sample test data from the target downscaling task to As the initial parameters of the downscaling model, the downscaling test is performed on the test data.
[0080] Step 150: Obtain the meteorological map to be downscaled corresponding to the target downscaling task.
[0081] Step 160 : generating a downscaled meteorological map corresponding to the meteorological map to be downscaled based on the downscaling model corresponding to the target downscaling task.
[0082] To further illustrate the beneficial effects of the present invention, various downscaling algorithms were trained on the datasets described in Table 1. These included two interpolation baselines: bicubic interpolation and kriging, as well as four state-of-the-art deep learning-based methods: DeepSD, EDSR (Enhanced Deep Residual Networks), PhireGAN (Physics-Informed Resolution-Enhancing GANs), and ClimateSD. Bicubic interpolation is a traditional interpolation method that downscaling is performed by smoothing the data. Kriging is a geostatistical method that exploits the spatial correlation between known points to predict the values of unknown points. DeepSD treats complex precipitation data as a single image and is the first method to apply deep learning to downscaling meteorological data. EDSR is a deep learning-based super-resolution method that improves image resolution by learning high-frequency details. PhireGAN is a downscaling method based on a GAN architecture. ClimateSD is a novel downscaling method for climate simulation that utilizes a Transformer architecture to encode geographic information. All methods were evaluated based on Peak signal-to-noise ratio (PSNR), Structural Similarity index (SSIM), Mean Absolute Error (MAE), and Pearson Correlation Coefficient (PCC).
[0083] To thoroughly evaluate the generalization capabilities of different downscaling models for data across time and space and across diverse meteorological variables, we selected meteorological data with maximum specific humidity at a height of 2 meters for Region B (36°N–71.5°N, 9°W–64.5°E) in 2017 as the evaluation task. To ensure the reliability and statistical significance of the experimental results, 100 images were randomly selected from the relevant downscaling dataset for this analysis. Twenty of these images were used for model fine-tuning, while the remaining 80 served as a test set to evaluate model performance. The experimental results, shown in Table 2, show that the proposed algorithm outperforms the other compared algorithms across multiple evaluation metrics, including PSNR, SSIM, MAE, and PCC. The difference maps corresponding to our method show the most extensive white areas, indicating that the algorithm demonstrates excellent downscaling performance and generalization capabilities when dealing with variable meteorological conditions and data from different time points.
[0084] Table 2
[0085] Methods PSNR SSIM MAE PCC Kriging 29.4750 0.8081 5.8096 0.9366 Bicubic 32.2638 0.8812 3.9109 0.9660 DeepSD 32.4112 0.8888 3.9078 0.9670 EDSR 34.5049 0.9165 3.2654 0.9796 PhireGAN 33.5393 0.9012 3.6679 0.9740 ClimateSD 32.2715 0.9094 3.4427 0.9675 This method 35.4334 0.9376 2.8984 0.9851
[0086] To evaluate the generalization capabilities of different algorithms for downscaling tasks beyond the training temporal and spatial range, surface pressure meteorological data from region C (25°N to 48.75°N, 130°W to 70.25°E) in year XX, outside the temporal and spatial range of the training dataset, were selected for evaluation. The experimental results are summarized in Table 3. These results demonstrate that the proposed method can rapidly adapt to novel temporal and spatial ranges and demonstrates excellent performance on this type of downscaling task.
[0087] Table 3
[0088] Methods PSNR SSIM MAE PCC Kriging 26.9951 0.8180 5.9096 0.9795 Bicubic 31.9997 0.8938 3.5062 0.9936 DeepSD 31.4950 0.8971 3.7532 0.9928 EDSR 35.9124 0.9453 2.8106 0.9974 PhireGAN 32.8680 0.9091 3.6205 0.9949 ClimateSD 34.6972 0.9354 2.3976 0.9966 This method 38.9693 0.9691 1.6777 0.9987
[0089] To evaluate the generalization ability of each algorithm for downscaling across meteorological elements alone, we tested it with meteorological variables outside the training dataset. Specifically, we used meteorological data for U-direction wind volume at an altitude of 100 meters in region D (25°N–48.75°N, 130°W–70.25°E) in year XX as the evaluation task. The experimental results are shown in Table 4. This method performs well in downscaling across meteorological variables.
[0090] Table 4
[0091] Methods PSNR SSIM MAE PCC Kriging 30.7556 0.7035 5.3234 0.9420 Bicubic 36.3898 0.9126 2.4989 0.9849 DeepSD 36.8890 0.9243 2.3790 0.9866 EDSR 39.7797 0.9595 2.0120 0.9929 PhireGAN 37.0393 0.9258 2.4085 0.9871 ClimateSD 35.0330 0.9357 2.1482 0.9798 This method 40.0124 0.9614 1.7525 0.9932
[0092] To validate the effectiveness of the loss-adaptive weighting function proposed in this method, we removed this module while retaining the rest of the metamodel. Experimental comparisons were conducted on the test tasks listed in Table 2. The experimental results, shown in Table 5, show that the proposed algorithm achieved significant performance improvements across all quantitative evaluation metrics. This result demonstrates the importance of the loss-adaptive weighting function proposed in this method in enhancing the generalization performance of the metamodel.
[0093] Table 5
[0094] Methods PSNR SSIM MAE PCC This method (with loss dynamic weighting function) 35.0164 0.9296 3.1370 0.9811 This method (without loss dynamic weighting function) 35.4334 0.9376 2.8984 0.9851
[0095] Finally, it should be understood that the embodiments described in this specification are intended only to illustrate the principles of the embodiments of this specification. Other variations may also fall within the scope of this specification. Therefore, by way of example and not limitation, alternative configurations of the embodiments of this specification may be considered consistent with the teachings of this specification. Accordingly, the embodiments of this specification are not limited to the embodiments explicitly described and illustrated in this specification.
Claims
1. A downscaling method based on model-independent meta-learning and dense residual attention, characterized in that include: Determining a plurality of downscaling tasks, wherein at least one of the meteorological variables, the time range, and the spatial range corresponding to any two of the downscaling tasks is different; For each of the downscaling tasks, determining a downscaling sample corresponding to the downscaling task, wherein the downscaling sample includes an original meteorological map and a downscaled meteorological map corresponding to the original meteorological map; Repeating sampling from the plurality of downscaling tasks to form a meta-batch task, and training a meta-model until the meta-model meets a preset condition; Adjusting parameters of the meta-model based on the downscaling samples corresponding to the target downscaling task to generate a downscaling model corresponding to the target downscaling task; Obtaining a downscaled meteorological map corresponding to the target downscaling task; Based on the downscaling model corresponding to the target downscaling task, a downscaled meteorological map corresponding to the meteorological map to be downscaled is generated; The meta-model comprises an input module, a first feature extraction module, a second feature extraction module, an upsampling module and an output module, wherein the second feature extraction module comprises a plurality of dense residual attention blocks; The workflow of the dense residual attention block is as follows: The input feature map is processed by a two-layer convolution layer using a dense residual connection operation to obtain the output data of the two-layer convolution layer; Concatenate the output data of the second convolutional layer with the input feature map; Input the concatenated feature map into the point-by-point convolution layer; Transmitting the output data of the point-by-point convolutional layer to the attention layer; Fusing the input feature map, the output data of the second convolutional layer, and the output data of the attention layer; The workflow of the attention layer is as follows: Extracting global information of the output data of the point-by-point convolutional layer through an adaptive average pooling operation; Performing feature extraction on the global information through two consecutive nonlinear layers to obtain a weight vector representing the importance of each channel; The weight vector is multiplied by the input feature map.
2. The downscaling method based on model-independent meta-learning and dense residual attention according to claim 1, characterized in that: Repeating sampling from the plurality of downscaling tasks to form a meta-batch task, and training a meta-model until the meta-model meets a preset condition, includes: S1, sampling from the multiple downscaling tasks to form a meta-batch task, and executing S2; S2. For each downscaling task included in the meta-batch task, perform inner loop training based on the downscaling task, update inner loop parameters of the meta-model, and execute S3; S3, based on the inner loop training, obtaining the cumulative test error corresponding to the meta-batch task, based on the cumulative test error, performing outer loop parameter update on the meta-model, and executing S4; S4. Determine whether the cumulative test error has reached convergence. If so, complete the training. If not, execute S1.
3. The downscaling method based on model-independent meta-learning and dense residual attention according to claim 2, characterized in that: Based on the downscaling task, inner loop training is performed, including: assigning an adaptive loss weight to the downscaling task; Based on the adaptive loss weights, multiple stochastic gradient descents are performed.
4. The downscaling method based on model-independent meta-learning and dense residual attention according to claim 3, characterized in that: The inner loop parameters of the metamodel are updated based on the following formula: , in, is the updated parameter, is the parameter before updating, is the task-level learning rate, is the metamodel before parameter update, is the loss function The gradient with respect to the parameters θ.
5. The downscaling method based on model-independent meta-learning and dense residual attention according to claim 4, characterized in that: The adaptive loss weight of the downscaling task is determined based on the following formula: , , in, is the adaptive loss weight of the i-th downscaling task in the meta-batch task, is a meta-batch task, is the total number of downscaling tasks, is the test error of the ith downscaling task in the meta-batch task, is the cumulative test error of the meta-batch task, are preset parameters.
6. The downscaling method based on model-independent meta-learning and dense residual attention according to claim 5, characterized in that: Based on the accumulated test error, the outer loop parameter of the meta-model is updated, including: Based on the accumulated test error, stochastic gradient descent is performed.
7. The downscaling method based on model-independent meta-learning and dense residual attention according to claim 6, characterized in that: The outer loop parameters of the metamodel are updated based on the following formula: , , in, is the meta-learning rate.
