Adaptive Transformer wind speed forecast correction method, device and equipment

Through the adaptive Transformer wind speed forecast correction method, the Transformer feature extraction and feature fusion network are used to solve the problem of insufficient wind speed forecast adaptability and model expression ability under extreme events and rapidly changing meteorological conditions, and achieve more efficient wind speed forecast correction performance. and feature expression.

CN118568472BActive Publication Date: 2024-10-29PUBLIC METEOROLOGICAL SERVICE CENT OF CHINA METEOROLOGICAL ADMINISTRATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411053379.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-10-29
Estimated Expiration
2044-08-02

AI Technical Summary

Technical Problem

Existing wind speed correction technology has poor adaptability under extreme events or rapidly changing meteorological conditions. Models based on machine learning methods have insufficient expression capabilities, high computational complexity, and difficult parameter tuning.

Method used

The adaptive Transformer wind speed forecast correction method is used to obtain meteorological elements and terrain data, use the Transformer feature extraction network to extract deep nonlinear features, and perform meteorological feature engineering, combined with the adaptive feature fusion network for feature fusion, and finally the Transformer feature decoder Generate wind speed forecast correction results.

Benefits of technology

It improves the wind speed forecast correction performance under extreme events or rapidly changing meteorological conditions, enhances the model feature expression ability, and reduces the computational complexity and parameter tuning difficulty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568472B_ABST
    Figure CN118568472B_ABST
Patent Text Reader

Abstract

The present invention provides an adaptive Transformer wind speed forecast correction method, device and equipment, including: obtaining meteorological elements and terrain data corresponding to a target area; performing feature extraction processing on meteorological elements and terrain data through a Transformer feature extraction network to obtain deep nonlinear features, and performing meteorological feature engineering extraction processing on the deep nonlinear features to obtain statistical features, time series features, time features and spatial features; performing feature fusion processing on statistical features, time series features, time features and spatial features through an adaptive feature fusion network to obtain fused features; and generating wind speed forecast correction results corresponding to the target area based on the fused features through a Transformer feature decoder. The present invention can improve the wind speed forecast correction performance under extreme events or rapidly changing meteorological conditions, and can also effectively improve the model feature expression capability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wind speed forecast correction, and in particular to an adaptive Transformer wind speed forecast correction method, device and equipment. Background Art

[0002] Wind speed correction technology is an important means to improve the accuracy of wind speed forecasting. It aims to eliminate or reduce errors and uncertainties in the original wind speed data through a series of scientific methods and advanced technical means. Generally speaking, wind speed correction technology can be divided into two categories: methods based on meteorological principles and methods based on machine learning. However, the wind speed correction method based on meteorological principles has the problem of poor adaptability to extreme events or rapidly changing meteorological conditions, and the wind speed correction method based on machine learning has the problem of poor model expression ability. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide an adaptive Transformer wind speed forecast correction method, device and equipment, which can improve the wind speed forecast correction performance under extreme events or rapidly changing meteorological conditions, and can also effectively improve the model feature expression ability.

[0004] In a first aspect, an embodiment of the present invention provides an adaptive Transformer wind speed forecast correction method, comprising:

[0005] Obtain meteorological elements and terrain data corresponding to the target area;

[0006] Through the Transformer feature extraction network, feature extraction processing is performed on meteorological elements and terrain data to obtain deep nonlinear features, and meteorological feature engineering extraction processing is performed on deep nonlinear features to obtain statistical features, time series features, temporal features and spatial features;

[0007] Through the adaptive feature fusion network, the statistical features, time series features, temporal features and spatial features are fused to obtain the fused features;

[0008] Through the Transformer feature decoder, the wind speed forecast correction result corresponding to the target area is generated based on the fused features.

[0009] In one embodiment, before obtaining the meteorological elements and terrain data corresponding to the target area, the method further includes:

[0010] Obtain historical meteorological elements and terrain data corresponding to the target area;

[0011] Through the Transformer feature extraction network, feature extraction processing is performed on historical meteorological elements and terrain data to obtain historical deep nonlinear features, and meteorological feature engineering extraction processing is performed on historical deep nonlinear features to obtain historical statistical features, historical time series features, historical time features and historical space features;

[0012] The adaptive feature fusion network is trained by using the historical statistical features, the historical time series features, the historical time features and the historical space features, so as to obtain the historical fusion features by performing feature fusion processing on the historical statistical features, the historical time series features, the historical time features and the historical space features through the trained adaptive feature fusion network;

[0013] Through the Transformer feature decoder, the historical wind speed forecast correction results corresponding to the target area are generated based on the historical fusion features;

[0014] The Transformer feature extraction network and Transformer feature decoder are trained using the historical wind speed forecast correction results. The trained Transformer feature extraction network is then used to perform feature extraction on historical meteorological elements and terrain data to obtain new historical deep nonlinear features until the preset first model training stop condition is met.

[0015] In one implementation, the adaptive feature fusion network is trained using historical statistical features, historical temporal features, historical time features, and historical spatial features, including:

[0016] Initialize the feature fusion strategy of the adaptive feature fusion network;

[0017] A target policy change action is sampled from a plurality of policy change actions defined in an action space, so as to pre-adjust a feature fusion strategy using the target policy change action;

[0018] Through the adaptive feature fusion network, according to the pre-adjusted feature fusion strategy, the historical statistical features, historical time series features, historical time features and historical space features are fused to obtain the historical fused features under the current iteration;

[0019] Based on the historical fusion features of the current iteration, the fusion performance index corresponding to the pre-adjusted feature fusion strategy is determined, so as to formally adjust the feature fusion strategy based on the fusion performance index to obtain a new feature fusion strategy of the current iteration;

[0020] Continue to sample new target strategy change actions from the multiple strategy change actions defined in the action space to pre-adjust the new feature fusion strategy using the new target strategy change actions until the preset second model training stop condition is met to obtain a trained adaptive feature fusion network.

[0021] In one embodiment, the trained Transformer feature extraction network is further used to extract features from historical meteorological elements and terrain data to obtain new historical deep nonlinear features, including:

[0022] Based on the revised results of historical wind speed forecasts, determine the sample loss corresponding to the historical meteorological elements and terrain data at each time;

[0023] According to the sample loss, the sample weight corresponding to the historical meteorological elements and terrain data at each time is determined; among which, the sample weight is negatively correlated with the sample loss;

[0024] Using sample weights, sample weighting is performed on the historical meteorological elements and terrain data of each time period to obtain weighted historical meteorological elements and terrain data;

[0025] The trained Transformer feature extraction network is then used to extract features from the weighted historical meteorological elements and terrain data to obtain new historical deep nonlinear features.

[0026] In one embodiment, the meteorological elements and terrain data include high-precision terrain data, meteorological element site live observation data, meteorological element grid reanalysis data, and model forecast data; the deep nonlinear features include high-precision terrain features, site live observation features, grid reanalysis live features, and model forecast features;

[0027] Through the Transformer feature extraction network, the meteorological elements and terrain data are processed to obtain deep nonlinear features, including:

[0028] Through the Transformer feature extraction network of different dimensions, high-precision terrain features corresponding to high-precision terrain data, site actual observation features corresponding to meteorological element site actual observation data, grid reanalysis actual features corresponding to meteorological element grid reanalysis data, and model forecast features corresponding to model forecast data are extracted respectively.

[0029] In one embodiment, high-precision terrain features corresponding to high-precision terrain data, site live observation features corresponding to meteorological element site live observation data, grid point reanalysis live features corresponding to meteorological element grid point reanalysis data, and model forecast features corresponding to model forecast data are extracted through Transformer feature extraction networks of different dimensions, including:

[0030] Through the two-dimensional Transformer static feature extraction network, high-precision terrain features corresponding to high-precision terrain data are extracted;

[0031] Through the one-dimensional Transformer dynamic feature extraction network, the site observation features corresponding to the site observation data of meteorological elements are extracted;

[0032] Through the two-dimensional Transformer dynamic feature extraction network, the grid reanalysis actual features corresponding to the meteorological element grid reanalysis data are extracted;

[0033] The pattern prediction features corresponding to different pattern prediction data are extracted through a parameter-sharing three-dimensional Transformer dynamic feature extraction network.

[0034] In one embodiment, the deep nonlinear features are subjected to meteorological feature engineering extraction processing to obtain statistical features, time series features, temporal features and spatial features, including:

[0035] Based on the actual observation characteristics of the station at any time, the actual characteristics of the grid reanalysis, and the model forecast characteristics, a feature sequence is constructed, and the statistical characteristics, time series characteristics, and temporal characteristics of the feature sequence are extracted; wherein the statistical characteristics include but are not limited to the minimum value, maximum value, mean, and variance; the time series characteristics include but are not limited to the lead characteristics, the lag characteristics, and the sliding window characteristics; the temporal characteristics include but are not limited to the monthly characteristics, the daily characteristics, the hour characteristics, the minute characteristics, the weekly characteristics, and the seasonal characteristics;

[0036] Furthermore, the high-precision terrain features are downscaled through a spatial-to-channel operation so that the resolution of the downscaled high-precision terrain features is consistent with the resolution of the model forecast data, and are normalized to a continuous interval through a sine function to obtain spatial features.

[0037] In one embodiment, the Transformer feature decoder includes multiple decoder subnetworks and a spatial regression subnetwork;

[0038] Through the Transformer feature decoder, the wind speed forecast correction results corresponding to the target area are generated based on the fused features, including:

[0039] After the fused features are decoded by multiple decoder sub-networks, the decoded features are converted into wind speed forecast correction results through the spatial regression sub-network.

[0040] In a second aspect, an embodiment of the present invention further provides an adaptive Transformer wind speed forecast correction device, comprising:

[0041] A data acquisition module is used to obtain meteorological elements and terrain data corresponding to the target area;

[0042] The feature extraction module is used to extract the features of meteorological elements and terrain data through the Transformer feature extraction network to obtain deep nonlinear features, and to perform meteorological feature engineering extraction on the deep nonlinear features to obtain statistical features, time series features, temporal features and spatial features;

[0043] A feature fusion module is used to perform feature fusion processing on statistical features, time series features, temporal features and spatial features through an adaptive feature fusion network to obtain fused features;

[0044] The wind speed correction module is used to generate the wind speed forecast correction result corresponding to the target area based on the fused features through the Transformer feature decoder.

[0045] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement any one of the methods provided in the first aspect.

[0046] An adaptive Transformer wind speed forecast correction method, device and equipment provided by the embodiment of the present invention first obtains the meteorological elements and terrain data corresponding to the target area; then, through the Transformer feature extraction network, the meteorological elements and terrain data are subjected to feature extraction processing to obtain deep nonlinear features, and the deep nonlinear features are subjected to meteorological feature engineering extraction processing to obtain statistical features, time series features, time features and spatial features; then, through the adaptive feature fusion network, the statistical features, time series features, time features and spatial features are subjected to feature fusion processing to obtain fused features; finally, through the Transformer feature decoder, the wind speed forecast correction result corresponding to the target area is generated based on the fused features. The above method utilizes multi-mode fusion such as the Transformer feature extraction network, the adaptive feature fusion network, and the Transformer feature decoder to improve robustness, thereby improving the wind speed forecast correction performance under extreme events or rapidly changing meteorological conditions. In addition, the embodiment of the present invention provides an intermediate layer of the deep learning network for meteorological feature engineering extraction processing, which can effectively improve the model feature expression capability.

[0047] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0048] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0050] Figure 1 A schematic diagram of a flow chart of an adaptive Transformer wind speed forecast correction method provided by an embodiment of the present invention;

[0051] Figure 2 A schematic diagram of a space-to-channel operation provided by an embodiment of the present invention;

[0052] Figure 3 A technical roadmap for an adaptive Transformer wind speed forecast correction method provided by an embodiment of the present invention;

[0053] Figure 4 A schematic diagram of the structure of an adaptive Transformer wind speed forecast correction device provided by an embodiment of the present invention;

[0054] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

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

[0056] At present, wind speed correction technology can be divided into two categories: methods based on meteorological principles and methods based on machine learning.

[0057] Corrections based on meteorological principles, such as statistical correction, terrain correction, and physical parameterization correction, have clear physical meanings, but have the following problems: (1) Statistical models based on historical data, such as linear regression and polynomial regression, can handle long-term trends and periodic changes. They are simple and easy to use, but they cannot capture complex nonlinear relationships and have poor adaptability to extreme events or rapidly changing meteorological conditions. (2) Considering the impact of terrain on wind speed can improve the accuracy of local areas, but it requires high-quality terrain data, large amounts of calculations, and limited effects in complex terrain areas. (3) Adjusting model parameters based on physical processes can improve the physical reality of the simulation, but it requires a deep understanding of meteorological processes, parameter adjustment is relatively complex, and requires a high level of physical foundation for the model.

[0058] Machine learning-based corrections, such as machine learning models such as SVM (Support Vector Machine), RF (Random Forest) and deep learning models such as convolutional networks, have good results but poor interpretability. Specifically: (1) Machine learning models such as SVM and RF require fewer samples, but have high computational complexity. Especially on large data sets, parameter tuning is difficult and requires strong feature engineering. The accuracy of corrections is also limited. (2) Deep learning models can automatically extract features and fit complex nonlinear relationships, but they require a large amount of training data and computing resources, take a long time to train, have poor model interpretability, and have a high risk of overfitting.

[0059] Based on this, the present invention provides an adaptive Transformer wind speed forecast correction method, device and equipment, which can effectively improve the problems existing in the methods based on meteorological principles and the methods based on machine learning. The embodiments of the present invention have at least the following characteristics: improving the wind speed forecast correction performance under extreme events or rapidly changing meteorological conditions, and effectively improving the model feature expression capability.

[0060] To facilitate understanding of this embodiment, firstly, an adaptive Transformer wind speed forecast correction method disclosed in an embodiment of the present invention is described in detail, see Figure 1 The flowchart of an adaptive Transformer wind speed forecast correction method shown in FIG. 1 mainly includes the following steps S102 to S108:

[0061] Step S102, obtaining meteorological elements and terrain data corresponding to the target area.

[0062] Among them, meteorological elements and terrain data include high-precision terrain data, real-time observation data of meteorological element sites, grid reanalysis data of meteorological elements, and model forecast data.

[0063] Step S104, through the Transformer feature extraction network, feature extraction processing is performed on the meteorological elements and terrain data to obtain deep nonlinear features, and meteorological feature engineering extraction processing is performed on the deep nonlinear features to obtain statistical features, time series features, time features and spatial features.

[0064] Among them, the deep nonlinear characteristics include high-precision terrain characteristics, site real-time observation characteristics, grid reanalysis real-time characteristics, and model forecast characteristics.

[0065] In one example, Transformer feature extraction networks of different dimensions can be constructed for site actual observation data, high-precision terrain data, grid reanalysis actual data, and different model forecast data, and then the Transformer feature extraction networks of corresponding dimensions can be used to extract features of high-precision terrain data, site actual observation data of meteorological elements, grid reanalysis data of meteorological elements, and model forecast data to obtain Transformer deep nonlinear features such as high-precision terrain features, site actual observation features, grid reanalysis actual features, and model forecast features.

[0066] In one example, meteorological feature engineering extraction processing includes: further extracting statistical features, time series features, and temporal features from site actual observation features, grid reanalysis actual features, and model forecast features, and extracting spatial features from high-precision terrain features.

[0067] Step S106, performing feature fusion processing on the statistical features, time series features, temporal features and spatial features through an adaptive feature fusion network to obtain fused features.

[0068] In one example, the adaptive feature fusion network is configured with a feature fusion strategy, which is established through reinforcement learning network structure search technology. According to the feature fusion strategy, statistical features, time series features, temporal features and spatial features can be fused to obtain fused features.

[0069] Step S108, generating a wind speed forecast correction result corresponding to the target area based on the fused features through the Transformer feature decoder.

[0070] In one example, the Transformer feature decoder includes multiple decoder sub-networks and a spatial regression sub-network. The fused features can be decoded through multiple decoder sub-networks, and then the decoded features are input into the spatial regression sub-network, which converts the decoded features into wind speed forecast correction results.

[0071] The adaptive Transformer wind speed forecast correction method provided in the embodiment of the present invention utilizes multi-mode fusion such as Transformer feature extraction network, adaptive feature fusion network, Transformer feature decoder, etc., which can improve robustness and thus improve the wind speed forecast correction performance under extreme events or rapidly changing meteorological conditions. In addition, the embodiment of the present invention provides an intermediate layer of a deep learning network for meteorological feature engineering extraction processing, which can effectively improve the model feature expression capability.

[0072] For ease of understanding, an embodiment of the present invention provides a specific implementation of an adaptive Transformer wind speed forecast correction method.

[0073] Before executing the aforementioned steps S102 to S108, the Transformer feature extraction network, the adaptive feature fusion network, and the Transformer feature decoder need to be trained in advance. The training process can be seen in the following steps 1 to 5:

[0074] Step 1: Obtain historical meteorological elements and terrain data corresponding to the target area.

[0075] Among them, historical meteorological elements and terrain data include historical high-precision terrain data, historical meteorological element site real-time observation data, historical meteorological element grid reanalysis data, and historical model forecast data. The collected historical model forecast data include but are not limited to the China Meteorological Administration Wind and Solar Medium-Term Model Forecast (CMA-WSP), the European Center for Medium-Term Weather Forecasts Numerical Model Forecast (ECMWF), the China Meteorological Administration Mesoscale Numerical Forecast (CMA-MESO), and the National Center for Environmental Prediction Model Forecast (NCEP). The meteorological elements obtained include but are not limited to wind speed, wind direction, temperature, relative humidity, air pressure, etc. Through multi-model feature extraction and fusion, the sudden change in wind speed of extreme events or turning weather can be effectively captured.

[0076] The actual observation data of historical meteorological elements at the station is recorded as , the historical high-precision terrain data is , the historical meteorological element grid reanalysis data is , the historical model forecast data is .in, and Indicates the size of the target area. represents the number of observation stations, Indicates the number of factors such as temperature, humidity, wind speed, etc. Indicates the number of vertical height layers, Indicates the number of models predicted by different numerical models. The collected samples are arranged in chronological order, and the first 70% of the samples are selected as the training set, and the last 30% are selected as the validation set.

[0077] Step 2: Through the Transformer feature extraction network, feature extraction is performed on historical meteorological elements and terrain data to obtain historical deep nonlinear features, and meteorological feature engineering extraction is performed on the historical deep nonlinear features to obtain historical statistical features, historical time series features, historical time features and historical space features.

[0078] In one example, the process of extracting features from historical meteorological elements and terrain data to obtain historical deep nonlinear features through a Transformer feature extraction network is as follows: through Transformer feature extraction networks of different dimensions, historical high-precision terrain features corresponding to historical high-precision terrain data, historical site live observation features corresponding to historical meteorological element site live observation data, historical grid point reanalysis live features corresponding to historical meteorological element grid reanalysis data, and historical pattern forecast features corresponding to historical pattern forecast data are extracted respectively. In an embodiment of the present invention, Transformer feature extraction networks of different dimensions are constructed for historical meteorological element site live observation data, historical high-precision terrain data, historical meteorological element grid reanalysis data, and different historical pattern forecast data. The feature extraction network based on Transformer can efficiently process long-term spatial and temporal dependencies, effectively extract the nonlinear relationship between wind speed and multiple meteorological elements such as temperature, humidity, air pressure, wind direction, and the interactive influence between adjacent locations in space. The Transformer feature extraction network based on historical high-precision terrain data can effectively mine the influence of terrain on wind speed and improve the accuracy of complex terrain areas. The parameter-sharing feature extraction network can reduce the consumption of training data and computing resources, effectively reducing the long training time and the risk of overfitting.

[0079] In the specific implementation, the following operations (a1) to (a4) may be used:

[0080] (a1) Through the two-dimensional Transformer static feature extraction network, the historical high-precision terrain features corresponding to the historical high-precision terrain data are extracted; (a2) Through the one-dimensional Transformer dynamic feature extraction network, the historical site actual observation features corresponding to the historical meteorological element site actual observation data are extracted; (a3) ​​Through the two-dimensional Transformer dynamic feature extraction network, the historical grid reanalysis actual features corresponding to the historical meteorological element grid reanalysis data are extracted; (a4) Through the parameter-sharing three-dimensional Transformer dynamic feature extraction network, the historical pattern forecast features corresponding to different historical pattern forecast data are extracted.

[0081] In the embodiment of the present invention, the real-time observation data of historical meteorological elements are Constructing a one-dimensional Transformer dynamic feature extraction network , for historical high-precision terrain data Constructing a 2D Transformer static feature extraction network , for historical meteorological element grid reanalysis data Constructing a 2D dynamic feature extraction network , for different historical model forecast data Construct parameter-sharing 3D dynamic feature extraction networks respectively The extracted historical site actual observation characteristics, historical high-precision terrain characteristics, historical grid point reanalysis actual characteristics, and historical model forecast characteristics are , , , .

[0082] In one example, the process of extracting historical deep nonlinear features through meteorological feature engineering to obtain historical statistical features, historical time series features, historical time features and historical space features is as follows: Meteorological feature engineering is performed on the extracted Transformer deep nonlinear features, and the extracted features include but are not limited to historical statistical features, historical time features, historical time series features, historical space features, etc. Historical statistical features are frequency statistics of historical occurrence states, which can effectively characterize the average state of historical meteorological elements; historical time series features can effectively describe the similarity between meteorological elements at the most recent moment; historical space features can effectively extract the spatial correlation around the target area; historical time features can characterize the periodicity of meteorological elements. This improves the interpretability of model feature extraction.

[0083] In the specific implementation, the following operations (b1) to (b2) may be used:

[0084] (b1) Construct a historical feature sequence for the actual observation characteristics of historical stations, the actual characteristics of historical grid reanalysis, and the historical model forecast characteristics at any time, and extract the historical statistical characteristics, historical time series characteristics, and historical time characteristics of the historical feature sequence; among which, the historical statistical characteristics include but are not limited to the minimum value, maximum value, mean, and variance; the historical time series characteristics include but are not limited to the lead characteristics, the lag characteristics, and the sliding window characteristics; the historical time characteristics include but are not limited to the monthly characteristics, daily characteristics, hourly characteristics, minute characteristics, weekly characteristics, and seasonal characteristics.

[0085] Specifically, the historical feature sequence composed of any time features extracted by Transformer ,in , , calculate its historical statistical features, including but not limited to minimum value, maximum value, mean value, variance, etc. The minimum feature is defined as , the maximum feature is defined as , the mean feature is defined as , the variance characteristic is defined as .in, Indicates the target time. represents the statistical interval, .

[0086] Specifically, the historical feature sequence composed of any time features extracted by Transformer ,in , , calculate its historical time series features, which include but are not limited to leading features, lagging features, sliding window features, etc. Among them, It only contains historical and current weather conditions and extracts only lagged features. It includes both historical forecasts and future forecasts, and can extract lag features, lead features, and sliding window features. The lead feature is defined as , the hysteresis characteristic is defined as , the sliding window feature is defined as The concat operation means concatenating the included features according to the feature dimension.

[0087] Specifically, the historical feature sequence composed of any time features extracted by Transformer ,in , , extract historical time features including but not limited to month, day, hour, minute, week, season, etc., and normalize them to a continuous interval through a sine function. That is, the monthly feature is expressed as , the daily feature is expressed as , when the feature is expressed as , the features are expressed as , the weekly feature is expressed as , the seasonal characteristics are expressed as .

[0088] (b2) Downscaling the historical high-precision terrain features through a spatial-to-channel operation so that the resolution of the downscaled historical high-precision terrain features is consistent with the resolution of the historical model forecast data, and normalizing them to a continuous interval through a sine function to obtain the historical spatial features.

[0089] The historical high-precision terrain features extracted by Transformer are downscaled to the same spatial resolution as the target area model forecast data through the spatial conversion channel operation, which is denoted as , such as Figure 2 A schematic diagram of a space-to-channel operation is shown in FIG. Moreover, the longitude and latitude of any position are normalized to a continuous interval through a sine function, that is, , .

[0090] Step 3, using historical statistical features, historical time series features, historical time features and historical space features, the adaptive feature fusion network is trained to fuse the historical statistical features, historical time series features, historical time features and historical space features through the trained adaptive feature fusion network to obtain historical fused features.

[0091] In one example, the process of training the adaptive feature fusion network using historical statistical features, historical time series features, historical time features, and historical space features is as follows: The optimal feature fusion strategy is established by using the reinforcement learning network structure search technology for the extracted historical statistical features, historical time series features, historical time features, and historical space features. Adaptive feature fusion based on reinforcement learning does not require a large amount of meteorological priors, and can achieve automatic fusion based on target driving, thereby improving the generalization and performance of the model.

[0092] On this basis, the adaptive feature fusion network can be trained according to the following steps 3.1 to 3.5:

[0093] Step 3.1, initialize the feature fusion strategy of the adaptive feature fusion network. For example, the initialized feature fusion strategy is: all features adopt the "addition" fusion strategy.

[0094] Step 3.2, sample a target strategy change action from the multiple strategy change actions defined in the action space, and use the target strategy change action to pre-adjust the feature fusion strategy. For example, the target strategy change action is: adjust the feature fusion strategy between feature 1 and feature 2 to a "weighted average" fusion strategy.

[0095] Step 3.3, through the adaptive feature fusion network, according to the pre-adjusted feature fusion strategy, feature fusion processing is performed on the historical statistical features, historical time series features, historical time features and historical space features to obtain the historical fused features under the current iteration.

[0096] Step 3.4, based on the historical fusion features in the current iteration, determine the fusion performance index corresponding to the pre-adjusted feature fusion strategy, so as to formally adjust the feature fusion strategy based on the fusion performance index to obtain a new feature fusion strategy in the current iteration. For example, the accuracy rate corresponding to the pre-adjusted feature fusion strategy is calculated based on the historical fusion features. If the accuracy rate is higher than a preset threshold, the pre-adjusted feature fusion strategy is retained, that is, it is used as the new feature fusion strategy in the current iteration; if the accuracy rate is lower than the preset threshold, the pre-adjusted feature fusion strategy is not retained.

[0097] Step 3.5, continue to sample new target strategy change actions from the multiple strategy change actions defined in the action space, and use the new target strategy change actions to pre-adjust the new feature fusion strategy until the preset second model training stop condition is met, thereby obtaining a trained adaptive feature fusion network.

[0098] In practical applications, the adaptive feature fusion of reinforcement learning network structure search includes four basic environment definitions, namely state, action, reward and termination condition. The specific definitions of the embodiment of the present invention are as follows: define the feature fusion strategy as a state variable, including but not limited to weighted average fusion, splicing fusion, etc.; define special fusion state changes (also known as strategy change actions) as actions, including but not limited to adding features, removing features, changing feature fusion weights, etc.; define model fusion performance indicators as rewards, including but not limited to accuracy, error, etc.; define the maximum number of iterations of the model training process or the optimal performance of the model as the termination condition (that is, the second model training stop condition).

[0099] The embodiment of the present invention uses DQN (Deep Q-Network) as a reinforcement learning algorithm. First, the initial state space and action space are defined based on historical statistical features, historical temporal features, historical time features, and historical spatial features. Second, the initial state is arbitrarily selected from the initial state space, and the following operations are performed cyclically: (1) sampling feature fusion actions from the action space; (2) performing feature fusion operations; (3) calculating feature fusion rewards; (4) updating the state; and (5) updating the model parameters. Until the model reaches the termination condition. The features after the above-mentioned optimal automatic search fusion are denoted as .

[0100] Step 4: Through the Transformer feature decoder, the historical wind speed forecast correction results corresponding to the target area are generated based on the historical fusion features, realizing wind speed forecast correction based on multi-source data fusion.

[0101] In one example, the process of generating the wind speed forecast correction result corresponding to the target area based on the fused features through the Transformer feature decoder is as follows: after the fused features are decoded by multiple decoder sub-networks, the decoded features are converted into the wind speed forecast correction results through the spatial regression sub-network.

[0102] Due to a series of feature extraction and aggregation operations, the spatial resolution of the feature map obtained is coarser than the original data. In order to achieve refined wind speed correction, high-resolution reconstruction is required through the Transformer feature decoder. The Transformer feature decoder consists of a series of decoder subnetworks and spatial regression subnetworks. The decoder subnetwork has the same structure as the Transformer feature extraction network. The spatial regression subnetwork consists of several stacked deconvolution layers and ReLU activation function layers. In order to achieve high-resolution wind speed correction, the fused feature Upsampled by deconvolution layer and transformed into features ,in Correct the duration for the forecast.

[0103] Step 5: Use the historical wind speed forecast correction results to train the Transformer feature extraction network and Transformer feature decoder, and continue to use the trained Transformer feature extraction network to extract features from historical meteorological elements and terrain data to obtain new historical deep nonlinear features until the preset first model training stop condition is met.

[0104] In addition, in order to achieve efficient model training, a self-paced learning mechanism is introduced in the entire model parameter update process. The dual relationship between the sample feature loss size and the sample difficulty is used to weight the samples through latent variables to characterize the importance of sample features and achieve global sample adaptive model learning from easy to difficult. Specifically, it includes the following steps 5.1 to 5.4:

[0105] Step 5.1, based on the historical wind speed forecast correction result, determine the sample loss corresponding to the historical meteorological elements and terrain data at each time. In one example, a preset loss function can be used to determine the sample loss corresponding to the historical meteorological elements and terrain data at each time based on the historical wind speed forecast correction result.

[0106] Step 5.2: According to the sample loss, determine the sample weight corresponding to the historical meteorological elements and terrain data at each time. The sample weight is negatively correlated with the sample loss.

[0107] Sample weight According to the sample loss during each training process Defined as:

[0108] ;

[0109] in, is an adaptive threshold, when the sample loss The larger the value, the more difficult the historical meteorological elements and terrain data corresponding to that time are. The smaller the value, the smaller the value, and vice versa. Therefore, the model can fully consider the difficulty of the sample during the training process and learn to update the model accordingly.

[0110] Step 5.3, using sample weights, perform sample weighting processing on the historical meteorological elements and terrain data of each time period to obtain weighted historical meteorological elements and terrain data.

[0111] Step 5.4, continue to extract features from the weighted historical meteorological elements and terrain data through the trained Transformer feature extraction network to obtain new historical deep nonlinear features. Please refer to the above step 2, which will not be described in detail in this embodiment of the present invention.

[0112] Repeat steps 2 to 5 until the model meets the requirements or reaches the preset number of iterations, then stop training to obtain the required Transformer feature extraction network, adaptive feature fusion network, and Transformer feature decoder.

[0113] Based on this, the embodiment of the present invention can utilize the trained Transformer feature extraction network, adaptive feature fusion network, Transformer feature decoder, and fixed model weights to realize the correction of wind speed forecast at any location based on the real-time high-precision terrain data collected in the target area, the actual observation data of meteorological element sites, the meteorological element grid reanalysis data, and the model forecast data. Figure 3 The technical roadmap of an adaptive Transformer wind speed forecast correction method shown in FIG. 1 includes: collecting model forecast data (such as CMA-WSP, ECMWF, NCEP, CAM-MESO), the point reanalysis data, the site actual data, and high-precision terrain data, and performing pattern feature extraction Transformer, grid feature extraction Transformer, site feature extraction Transformer, and terrain feature extraction Transformer on the above data respectively, performing meteorological feature engineering on the extracted features to obtain statistical features, time features, time series features, and spatial features, performing adaptive feature fusion and feature decoding Transformer on the four types of features, and obtaining the final wind speed forecast correction result.

[0114] For the aforementioned step S104, an embodiment of the present invention provides a specific implementation method for performing feature extraction processing on meteorological elements and terrain data through a Transformer feature extraction network to obtain deep nonlinear features, including: extracting high-precision terrain features corresponding to high-precision terrain data, site actual observation features corresponding to meteorological element site actual observation data, grid reanalysis actual features corresponding to meteorological element grid reanalysis data, and model forecast features corresponding to model forecast data through Transformer feature extraction networks of different dimensions.

[0115] Specifically, high-precision terrain features corresponding to high-precision terrain data are extracted through a two-dimensional Transformer static feature extraction network; site actual observation features corresponding to meteorological element site actual observation data are extracted through a one-dimensional Transformer dynamic feature extraction network; grid point reanalysis actual features corresponding to meteorological element grid point reanalysis data are extracted through a two-dimensional Transformer dynamic feature extraction network; and pattern forecast features corresponding to different pattern forecast data are extracted through a parameter-sharing three-dimensional Transformer dynamic feature extraction network. For details, please refer to (a1) to (a4) in the aforementioned step 2, which will not be described in detail in the embodiment of the present invention.

[0116] For the aforementioned step S104, the embodiment of the present invention also provides a specific implementation method for extracting deep nonlinear features through meteorological feature engineering to obtain statistical features, time series features, temporal features and spatial features, including: constructing a feature sequence for the actual observation features of the site at any time, the actual features of the grid reanalysis, and the model forecast features, and extracting the statistical features, time series features, and time features of the feature sequence; wherein the statistical features include but are not limited to the minimum value, maximum value, mean, and variance, the time series features include but are not limited to the leading features, the lagging features, and the sliding window features, and the time features include but are not limited to the monthly features, the daily features, the hour features, the minute features, the weekly features, and the seasonal features; and, downscaling the high-precision terrain features through a spatial conversion channel operation so that the resolution of the downscaled high-precision terrain features is consistent with the resolution of the model forecast data, and normalizing to a continuous interval through a sine function to obtain the spatial features. For details, please refer to (b1) to (b2) in the aforementioned step 2, which will not be described in detail in the embodiment of the present invention.

[0117] For the aforementioned step S108, the embodiment of the present invention further provides a specific implementation method of generating a wind speed forecast correction result corresponding to the target area based on the fused features through a Transformer feature decoder, including: after the fused features are decoded by multiple decoder sub-networks, the decoded features are converted into wind speed forecast correction results through a spatial regression sub-network. For details, please refer to the aforementioned step 4, which will not be described in detail in the embodiment of the present invention.

[0118] The embodiment of the present invention provides an application example of an adaptive Transformer wind speed forecast correction method. In the Hebei test area, the model is trained using the first 25 days of each month from January to December 2022, and the model is verified using data after the 25th. The model correction effect is shown in Table 1 below:

[0119] Table 1

[0120]

[0121] In the Guangdong test area, the model MAE and RMSE indicators are better than the RMAPS, CMA-GD, and WRF models. The specific indicators are shown in Table 2 below:

[0122] Table 2

[0123]

[0124] In summary, the adaptive Transformer wind speed forecast correction method provided by the embodiment of the present invention has at least the following characteristics:

[0125] (1) A wind speed correction technology based on multi-model forecast fusion is proposed. Through multi-model fusion, the robustness can be improved and the wind speed forecast correction performance under transitional weather conditions can be improved.

[0126] (2) A feature engineering method based on a deep nonlinear feature layer is proposed. Traditional feature engineering based on prior knowledge operates on the raw data layer. Direct feature engineering processing is performed on observable data, which requires strong meteorological prior knowledge. The embodiment of the present invention performs feature engineering in the middle layer of the deep learning network, which can improve the model feature expression capability.

[0127] (3) A spatial conversion channel strategy for high-precision terrain features is proposed. The spatial resolution of high-precision terrain information and features is often much higher than that of meteorological model forecasts or actual observation data. Traditional methods usually use direct sampling or upscaling to perform spatial matching, resulting in the loss of key information. The spatial conversion channel strategy proposed in the embodiment of the present invention achieves a unified resolution of terrain features and model data features while retaining spatial correlation information.

[0128] (4) A feature adaptive fusion strategy based on reinforcement learning is proposed. Existing feature fusion strategies such as weighted fusion and splicing fusion are limited to the fusion of limited features in limited feature layers, which greatly limits the performance of feature fusion. The adaptive feature fusion strategy proposed in the embodiment of the present invention can automatically plan the optimal feature fusion strategy in the infinite feature fusion space based on the feedback mechanism of reinforcement learning, thereby improving the feature fusion performance.

[0129] Based on the above embodiments, the present invention provides an adaptive Transformer wind speed forecast correction device, see Figure 4 The schematic diagram of the structure of an adaptive Transformer wind speed forecast correction device is shown in FIG. 1 , and the device mainly includes the following parts:

[0130] The data acquisition module 402 is used to acquire the meteorological elements and terrain data corresponding to the target area;

[0131] The feature extraction module 404 is used to perform feature extraction processing on meteorological elements and terrain data through a Transformer feature extraction network to obtain deep nonlinear features, and perform meteorological feature engineering extraction processing on the deep nonlinear features to obtain statistical features, time series features, time features and spatial features;

[0132] The feature fusion module 406 is used to perform feature fusion processing on the statistical features, time series features, temporal features and spatial features through an adaptive feature fusion network to obtain fused features;

[0133] The wind speed correction module 408 is used to generate a wind speed forecast correction result corresponding to the target area based on the fused features through the Transformer feature decoder.

[0134] The adaptive Transformer wind speed forecast correction device provided in the embodiment of the present invention utilizes multi-mode fusion such as Transformer feature extraction network, adaptive feature fusion network, Transformer feature decoder, etc., which can improve robustness and thus improve the wind speed forecast correction performance under extreme events or rapidly changing meteorological conditions. In addition, the embodiment of the present invention provides an intermediate layer of a deep learning network for meteorological feature engineering extraction processing, which can effectively improve the model feature expression capability.

[0135] In one embodiment, a model training module is further included, which is used to:

[0136] Obtain historical meteorological elements and terrain data corresponding to the target area;

[0137] Through the Transformer feature extraction network, feature extraction processing is performed on historical meteorological elements and terrain data to obtain historical deep nonlinear features, and meteorological feature engineering extraction processing is performed on historical deep nonlinear features to obtain historical statistical features, historical time series features, historical time features and historical space features;

[0138] The adaptive feature fusion network is trained by using the historical statistical features, the historical time series features, the historical time features and the historical space features, so as to obtain the historical fusion features by performing feature fusion processing on the historical statistical features, the historical time series features, the historical time features and the historical space features through the trained adaptive feature fusion network;

[0139] Through the Transformer feature decoder, the historical wind speed forecast correction results corresponding to the target area are generated based on the historical fusion features;

[0140] The Transformer feature extraction network and Transformer feature decoder are trained using the historical wind speed forecast correction results. The trained Transformer feature extraction network is then used to perform feature extraction on historical meteorological elements and terrain data to obtain new historical deep nonlinear features until the preset first model training stop condition is met.

[0141] In one embodiment, the model training module is specifically used to:

[0142] Initialize the feature fusion strategy of the adaptive feature fusion network;

[0143] A target policy change action is sampled from a plurality of policy change actions defined in an action space, so as to pre-adjust a feature fusion strategy using the target policy change action;

[0144] Through the adaptive feature fusion network, according to the pre-adjusted feature fusion strategy, the historical statistical features, historical time series features, historical time features and historical space features are fused to obtain the historical fused features under the current iteration;

[0145] Based on the historical fusion features of the current iteration, the fusion performance index corresponding to the pre-adjusted feature fusion strategy is determined, so as to formally adjust the feature fusion strategy based on the fusion performance index to obtain a new feature fusion strategy of the current iteration;

[0146] Continue to sample new target strategy change actions from the multiple strategy change actions defined in the action space to pre-adjust the new feature fusion strategy using the new target strategy change actions until the preset second model training stop condition is met to obtain a trained adaptive feature fusion network.

[0147] In one embodiment, the model training module is specifically used to:

[0148] Based on the revised results of historical wind speed forecasts, determine the sample loss corresponding to the historical meteorological elements and terrain data at each time;

[0149] According to the sample loss, the sample weight corresponding to the historical meteorological elements and terrain data at each time is determined; among which, the sample weight is negatively correlated with the sample loss;

[0150] Using sample weights, sample weighting is performed on the historical meteorological elements and terrain data of each time period to obtain weighted historical meteorological elements and terrain data;

[0151] The trained Transformer feature extraction network is then used to extract features from the weighted historical meteorological elements and terrain data to obtain new historical deep nonlinear features.

[0152] In one embodiment, the meteorological elements and terrain data include high-precision terrain data, meteorological element site real-time observation data, meteorological element grid reanalysis data, and model forecast data; the deep nonlinear features include high-precision terrain features, site real-time observation features, grid reanalysis real-time features, and model forecast features; the feature extraction module 404 is specifically used to:

[0153] Through the Transformer feature extraction network of different dimensions, high-precision terrain features corresponding to high-precision terrain data, site actual observation features corresponding to meteorological element site actual observation data, grid reanalysis actual features corresponding to meteorological element grid reanalysis data, and model forecast features corresponding to model forecast data are extracted respectively.

[0154] In one implementation, the feature extraction module 404 is specifically used to:

[0155] Through the two-dimensional Transformer static feature extraction network, high-precision terrain features corresponding to high-precision terrain data are extracted;

[0156] Through the one-dimensional Transformer dynamic feature extraction network, the site observation features corresponding to the site observation data of meteorological elements are extracted;

[0157] Through the two-dimensional Transformer dynamic feature extraction network, the grid reanalysis actual features corresponding to the meteorological element grid reanalysis data are extracted;

[0158] The pattern prediction features corresponding to different pattern prediction data are extracted through a parameter-sharing three-dimensional Transformer dynamic feature extraction network.

[0159] In one implementation, the feature extraction module 404 is specifically used to:

[0160] Based on the actual observation characteristics of the station at any time, the actual characteristics of the grid reanalysis, and the model forecast characteristics, a feature sequence is constructed, and the statistical characteristics, time series characteristics, and temporal characteristics of the feature sequence are extracted; wherein the statistical characteristics include but are not limited to the minimum value, maximum value, mean, and variance; the time series characteristics include but are not limited to the lead characteristics, the lag characteristics, and the sliding window characteristics; the temporal characteristics include but are not limited to the monthly characteristics, the daily characteristics, the hour characteristics, the minute characteristics, the weekly characteristics, and the seasonal characteristics;

[0161] Furthermore, the high-precision terrain features are downscaled through a spatial-to-channel operation so that the resolution of the downscaled high-precision terrain features is consistent with the resolution of the model forecast data, and are normalized to a continuous interval through a sine function to obtain spatial features.

[0162] In one embodiment, the Transformer feature decoder includes multiple decoder subnetworks and a spatial regression subnetwork; the wind speed correction module 408 is specifically used to:

[0163] After the fused features are decoded by multiple decoder sub-networks, the decoded features are converted into wind speed forecast correction results through the spatial regression sub-network.

[0164] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0165] An embodiment of the present invention provides an electronic device. Specifically, the electronic device includes a processor and a storage device. The storage device stores a computer program, and when the computer program is executed by the processor, it executes the method described in any one of the above-mentioned implementation methods.

[0166] Figure 5 A structural diagram of an electronic device provided in an embodiment of the present invention, the electronic device 100 includes: a processor 50, a memory 51, a bus 52 and a communication interface 53, wherein the processor 50, the communication interface 53 and the memory 51 are connected via the bus 52; the processor 50 is used to execute an executable module stored in the memory 51, such as a computer program.

[0167] The memory 51 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 53 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0168] The bus 52 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0169] Among them, the memory 51 is used to store programs, and the processor 50 executes the program after receiving the execution instruction. The method executed by the device for flow process definition disclosed in any embodiment of the above-mentioned embodiment of the present invention can be applied to the processor 50 or implemented by the processor 50.

[0170] The processor 50 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 50. The above processor 50 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor to be executed, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 51, and the processor 50 reads the information in the memory 51 and completes the steps of the above method in combination with its hardware.

[0171] The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be referred to the previous method embodiments, which will not be repeated here.

[0172] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0173] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. An adaptive Transformer wind speed forecast correction method, characterized in that: include: Obtain meteorological elements and terrain data corresponding to the target area; Through the Transformer feature extraction network, the meteorological elements and terrain data are subjected to feature extraction processing to obtain deep nonlinear features, and the deep nonlinear features are subjected to meteorological feature engineering extraction processing to obtain statistical features, time series features, time features and spatial features; wherein the meteorological elements and terrain data include high-precision terrain data, meteorological element site actual observation data, meteorological element grid reanalysis data, and model forecast data; the deep nonlinear features include high-precision terrain features, site actual observation features, grid reanalysis actual features, and model forecast features; Through an adaptive feature fusion network, the statistical feature, the temporal feature, the time feature and the spatial feature are subjected to feature fusion processing to obtain fused features; Generate a wind speed forecast correction result corresponding to the target area based on the fused features through a Transformer feature decoder; Through the Transformer feature extraction network, the meteorological elements and terrain data are subjected to feature extraction processing to obtain deep nonlinear features, including: through the Transformer feature extraction networks of different dimensions, high-precision terrain features corresponding to the high-precision terrain data, site live observation features corresponding to the meteorological element site live observation data, grid point reanalysis live features corresponding to the meteorological element grid point reanalysis data, and model forecast features corresponding to the model forecast data are respectively extracted; The deep nonlinear features are subjected to meteorological feature engineering extraction processing to obtain statistical features, time series features, temporal features and spatial features, including: According to the actual observation characteristics of the site, the actual characteristics of the grid reanalysis, and the model forecast characteristics at any time, a feature sequence is constructed, and the statistical characteristics, time series characteristics, and temporal characteristics of the feature sequence are extracted; wherein the statistical characteristics include minimum value, maximum value, mean value, and variance; the time series characteristics include leading characteristics, lagging characteristics, and sliding window characteristics; and the temporal characteristics include monthly characteristics, daily characteristics, hourly characteristics, minute characteristics, weekly characteristics, and seasonal characteristics; Furthermore, the high-precision terrain features are downscaled through a space-to-channel operation so that the resolution of the downscaled high-precision terrain features is consistent with the resolution of the model forecast data, and are normalized to a continuous interval through a sine function to obtain spatial features.

2. The adaptive Transformer wind speed forecast correction method according to claim 1, characterized in that: Before obtaining the meteorological elements and terrain data corresponding to the target area, the method further includes: Obtain historical meteorological elements and terrain data corresponding to the target area; Through the Transformer feature extraction network, the historical meteorological elements and terrain data are subjected to feature extraction processing to obtain historical deep nonlinear features, and the historical deep nonlinear features are subjected to meteorological feature engineering extraction processing to obtain historical statistical features, historical time series features, historical time features and historical space features; Using the historical statistical features, the historical time series features, the historical time features and the historical space features, an adaptive feature fusion network is trained, so that the historical statistical features, the historical time series features, the historical time features and the historical space features are subjected to feature fusion processing by the trained adaptive feature fusion network to obtain historical fused features; Generate a historical wind speed forecast correction result corresponding to the target area based on the historical fused features through a Transformer feature decoder; The Transformer feature extraction network and the Transformer feature decoder are trained using the historical wind speed forecast correction results, and the trained Transformer feature extraction network is continued to perform feature extraction processing on the historical meteorological elements and terrain data to obtain new historical deep nonlinear features until the preset first model training stop condition is met.

3. The adaptive Transformer wind speed forecast correction method according to claim 2, characterized in that: Using the historical statistical features, the historical time series features, the historical time features, and the historical space features, training an adaptive feature fusion network includes: Initializing a feature fusion strategy of the adaptive feature fusion network; Sampling a target strategy change action from a plurality of strategy change actions defined in an action space, so as to pre-adjust the feature fusion strategy using the target strategy change action; Through the adaptive feature fusion network, according to the pre-adjusted feature fusion strategy, feature fusion processing is performed on the historical statistical features, the historical time series features, the historical time features and the historical space features to obtain the historical fusion features under the current iteration; Based on the historical fused features in the current iteration, determine the fusion performance index corresponding to the pre-adjusted feature fusion strategy, so as to formally adjust the feature fusion strategy based on the fusion performance index to obtain a new feature fusion strategy in the current iteration; Continue to sample new target strategy change actions from the multiple strategy change actions defined in the action space, and use the new target strategy change actions to pre-adjust the new feature fusion strategy until the preset second model training stop condition is met, thereby obtaining a trained adaptive feature fusion network.

4. The adaptive Transformer wind speed forecast correction method according to claim 2, characterized in that: The trained Transformer feature extraction network is used to extract features from the historical meteorological elements and terrain data to obtain new historical deep nonlinear features, including: Based on the revised result of the historical wind speed forecast, determine the sample loss corresponding to the historical meteorological elements and terrain data at each time; According to the sample loss, determine the sample weight corresponding to the historical meteorological elements and terrain data at each time; wherein the sample weight is negatively correlated with the sample loss; Using the sample weights, sample weighting processing is performed on the historical meteorological elements and terrain data at each time to obtain weighted historical meteorological elements and terrain data; The trained Transformer feature extraction network is continued to perform feature extraction processing on the weighted historical meteorological elements and terrain data to obtain new historical deep nonlinear features.

5. The adaptive Transformer wind speed forecast correction method according to claim 1, characterized in that: Through the Transformer feature extraction network of different dimensions, the high-precision terrain features corresponding to the high-precision terrain data, the site live observation features corresponding to the meteorological element site live observation data, the grid point reanalysis live features corresponding to the meteorological element grid point reanalysis data, and the model forecast features corresponding to the model forecast data are respectively extracted, including: Extracting high-precision terrain features corresponding to the high-precision terrain data through a two-dimensional Transformer static feature extraction network; Extracting the site live observation features corresponding to the site live observation data of the meteorological element through a one-dimensional Transformer dynamic feature extraction network; Extracting the grid reanalysis actual features corresponding to the meteorological element grid reanalysis data through a two-dimensional Transformer dynamic feature extraction network; The pattern prediction features corresponding to the different pattern prediction data are extracted through a parameter-sharing three-dimensional Transformer dynamic feature extraction network.

6. The adaptive Transformer wind speed forecast correction method according to claim 1 or 2, characterized in that: The Transformer feature decoder includes multiple decoder subnetworks and a spatial regression subnetwork; The wind speed forecast correction result corresponding to the target area is generated based on the fused features through the Transformer feature decoder, including: After the fused features are decoded by the multiple decoder sub-networks, the decoded features are converted into wind speed forecast correction results through the spatial regression sub-network.

7. An adaptive Transformer wind speed forecast correction device, characterized in that: include: A data acquisition module is used to obtain meteorological elements and terrain data corresponding to the target area; A feature extraction module is used to perform feature extraction processing on the meteorological elements and terrain data through a Transformer feature extraction network to obtain deep nonlinear features, and perform meteorological feature engineering extraction processing on the deep nonlinear features to obtain statistical features, time series features, time features and spatial features; wherein the meteorological elements and terrain data include high-precision terrain data, meteorological element site live observation data, meteorological element grid reanalysis data, and model forecast data; the deep nonlinear features include high-precision terrain features, site live observation features, grid reanalysis live features, and model forecast features; A feature fusion module, used to perform feature fusion processing on the statistical feature, the temporal feature, the time feature and the spatial feature through an adaptive feature fusion network to obtain a fused feature; A wind speed correction module, used to generate a wind speed forecast correction result corresponding to the target area based on the fused features through a Transformer feature decoder; The feature extraction module is specifically used to extract high-precision terrain features corresponding to the high-precision terrain data, site live observation features corresponding to the meteorological element site live observation data, grid point reanalysis live features corresponding to the meteorological element grid point reanalysis data, and model forecast features corresponding to the model forecast data through Transformer feature extraction networks of different dimensions; The feature extraction module is specifically used for: According to the actual observation characteristics of the site, the actual characteristics of the grid reanalysis, and the model forecast characteristics at any time, a feature sequence is constructed, and the statistical characteristics, time series characteristics, and temporal characteristics of the feature sequence are extracted; wherein the statistical characteristics include minimum value, maximum value, mean value, and variance; the time series characteristics include leading characteristics, lagging characteristics, and sliding window characteristics; and the temporal characteristics include monthly characteristics, daily characteristics, hourly characteristics, minute characteristics, weekly characteristics, and seasonal characteristics; Furthermore, the high-precision terrain features are downscaled through a space-to-channel operation so that the resolution of the downscaled high-precision terrain features is consistent with the resolution of the model forecast data, and are normalized to a continuous interval through a sine function to obtain spatial features.

8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Deep learning meteorological data forecasting method and device based on microtopography

    CN117950082A

  • Multi-source meteorological element rainfall prediction method and system based on space-time perception mechanism

    CN118094487A