A method for predicting typhoon paths
By using the LSTM network and dynamic warping algorithm, the accuracy and popularity of typhoon track prediction is solved, and the typhoon track prediction on the CMA tropical cyclone data set is achieved, especially on common paths. The effect is significant, and through the sliding window width and Optimization of the number of hidden layer nodes improves prediction accuracy.
Patent Information
- Application Number
- CN202110941926.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-17
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-08-17
AI Technical Summary
Existing typhoon track prediction methods have shortcomings in accuracy and popularity. In particular, the prediction of difficult typhoon tracks is not accurate enough, and requires experienced or relevant skills to use it, so it lacks popularity.
Using the CMA tropical cyclone best path data set, an LSTM network was established for full sequence prediction. By setting the sliding window width and the number of hidden layer nodes at different time steps, the model was optimized to predict the typhoon path, and a dynamic warping algorithm was used to select similar Typhoon tracks are trained to improve prediction accuracy.
A more accurate prediction of typhoon paths has been achieved, especially in the prediction of common paths. More accurate predictions can be made when the sliding window width is 4. The dynamic warping algorithm improves the prediction accuracy of abnormal paths, and the prediction error of the model is presented. Cumulative trend, but the initial time error is small, and then the error increases.
Smart Images

Figure FT_1 
Figure FT_2 
Figure FT_3
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of typhoon path prediction, and in particular to a method for predicting a typhoon path. Background Art
[0002] my country is bordered by the Pacific Ocean to the east and is located near the Northwest Pacific Ocean region where typhoons occur most frequently in the world. Figure 1 The number of tropical cyclones in the Pacific Ocean each year from 1949 to 2018 is given in the CMA records. Tropical cyclones are generated every year, and the number of times generated is almost more than ten times. According to statistics, the tropical cyclones that landed in my country in the 20 years from 1998 to 2017 accounted for 31% of the total number of tropical cyclones generated in the northwest Pacific. Typhoons have become one of the main natural disasters affecting my country. The eastern coastal areas are relatively developed politically, economically and culturally in my country. They have been affected by typhoons for many years. The typhoons that landed every year caused huge casualties and economic losses to my country's coastal areas. How to make accurate predictions of typhoon paths, and then take precautions in advance to reduce losses has gradually become the focus of people's attention.
[0003] Many studies have been conducted on typhoon path forecasting at home and abroad, and some typhoon path forecasting methods have been established, mainly including subjective experience forecasting, objective statistical forecasting, and dynamic forecasting of numerical models. Subjective forecasting has basically withdrawn from the historical stage. Objective statistical forecasting is based on a large amount of historical data, looking for physical factors that have a strong correlation with the forecast object, using probability and statistical methods to establish the connection between physical factors and the forecast object, find out the relevant laws, and implement forecasts. The dynamic forecast of numerical models is based on atmospheric dynamics, thermodynamics, and fluid mechanics, and uses relevant principles to describe atmospheric motion, form a closed set of equations, set certain initial values and boundary conditions, and use computers to perform Numerical solutions are used to make quantitative forecasts. These methods have good effects in practical applications, but they require experienced people or people with relevant skills and knowledge to use them. In many application scenarios, the corresponding conditions are relatively lacking. After the emergence of artificial intelligence technology, artificial intelligence technology has been applied to many scientific fields, and meteorology is one of them. Both at home and abroad, a lot of research has been done on the application of artificial intelligence technology to typhoon forecasting. The research of Li and Deng pointed out that if the previous factors with specific physical meanings are selected, and they have a good correlation with the typhoons that appear later, the BP neural network can be used to train the standard data to establish a typhoon forecast model. Zhou abstracted and simplified the weather data, and used BP neural network to predict the typhoon movement direction. The generalization rate of typhoon movement categories and actual movement categories (westward, northward, northwestward) reached 97%, but the prediction of difficult typhoon paths was not very accurate and needs to be studied. Huang et al. used BP neural network as the basic model, and conducted information mining of meteorological forecast factor data by combining feature extraction of forecast factor groups and forecast factor variance contribution technology. The model research results showed that artificial neural network has strong adaptive learning and nonlinear mapping capabilities, which well reflects the nonlinear characteristics of typhoon paths. At the same time, it was also pointed out that abnormal paths would cause troubles in forecasting. Shao, Fu and others conducted path prediction research on tropical cyclones appearing along the coast of China based on BP neural network. Using typhoon data 24 hours before the forecast, the BP neural network can be used to predict the typhoon center position in the next 24 hours, 48 hours, and 72 hours, and the accuracy meets the requirements. Fang, Ji and others combined artificial intelligence technology with expert knowledge to establish an expert system and realized the intelligent automatic forecasting of typhoons. A certain researcher combined the support vector machine method with the dimensionality reduction method, which enabled it to have the ability to identify nonlinear problems and improve the prediction accuracy of typhoon path forecast. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a method for predicting typhoon paths by using the two-dimensional typhoon path data provided by the CMA tropical cyclone optimal path data set to establish a LSTM network future typhoon path forecast and to predict in a full sequence prediction manner.
[0005] The technical solution adopted by the present invention is: a method for predicting a typhoon path, characterized in that: it includes a preliminary experiment, and the preliminary experiment steps are as follows:
[0006] First, four models were established and four sequences with different time steps were used for prediction. Model 1: the full sequence was used to predict the future (4 steps) 24h path. Model 2: a sliding window width of 4 steps was set to predict the typhoon position in the next 24 hours. Model 3: the same sliding window width was used for prediction as in Model 2, but the window width of Model 3 was changed to 6 and that of Model 4 was changed to 8.
[0007] In the preliminary experiment, each model hidden layer is set with 4, 8, and 16 hidden layer nodes respectively, and the typhoon prediction effect under different set parameters is explored and analyzed, and then the model is optimized according to the experimental results.
[0008] The experimental environment of the preliminary experiment is as follows:
[0009] The CPU is Inter(R) i5-8300H, with a main frequency of 2.3GHz and a RAM of 16GB. It is based on the deep learning framework Tensorflow and the experimental programming language Python3.7.
[0010] Data sources for the preliminary experiments described:
[0011] CMA Tropical Cyclone Best Track Dataset (tcdata.typhoon.org.cn), the download version of the CMA Tropical Cyclone Best Track Dataset provides the position and intensity of tropical cyclones in the northwest Pacific (including the South China Sea, north of the equator and west of 180° east longitude) every 6 hours from 1949 to 2018.
[0012] Data processing of the preliminary experiments:
[0013] The typhoon position information from 1949 to 2018 was selected. The data was a two-dimensional time series of longitude and latitude, which was processed into a time series with tropical cyclones as units. There were 2355 typhoon position sequences in total. In order to reduce the interference of longer sequences and make the model more stable, the sequences with a time step greater than 65 were deleted. Because the typhoon path in the next 24 hours (4 steps) must be predicted, the tropical cyclone path length must be at least greater than or equal to 8, so the sequences with a time step less than 8 were deleted. The sliding window width of model 2 is 4, and the length of the tropical cyclone sequence is at least 8. When establishing model 2, the sequences with a time step less than 8 were deleted. Similarly, model 3 deleted the sequences with a sequence length less than 10, and model 4 deleted the sequences with a sequence length less than 12. The data from 1949 to 2017 were used as the training set. The data in 2018 was used as the test set. The test set had a total of 33 sequences. In order to avoid the training set from bringing in the test set information, the training set and the test set were each subjected to the most Z-score normalization after division. Z-score normalization:
[0014]
[0015]
[0016]
[0017] The last four time steps of each sequence are selected as labels (predicted values). Model 1 uses the full sequence for prediction. Since the lengths of typhoon sequences vary, Model 1 fills each sequence with 0 to the same length.
[0018] Neural network design for the preliminary experiments:
[0019] a. Input layer: The input data is 2D longitude and latitude typhoon location data. Model 1 adds a shielding layer to skip the time step filled with [0,0];
[0020] b. Hidden layer: A hidden layer can fit any function that contains a continuous mapping from one finite space to another finite space. Initial experiments have tried multi-layer hidden layer structures, and the results of the model using one hidden layer are not much different or fail to meet the basic requirements. Initial experimental results and experience show that using one LSTM layer is basically sufficient. Considering that there is only one layer, the activation function uses sigmoid and tanh functions;
[0021]
[0022] The igmoid function converts the input into a value between [0,1], where 0 means discarding everything and 1 means keeping everything. The output value simulates the state of the gate very well and is used to control the flow of information in the LSTM network.
[0023]
[0024] The tanh function outputs a value between [-1,1], which can filter the cell state and allow us to choose to add or subtract information from the cell state. The tanh function is centered at 0, which makes the model converge faster.
[0025] c. Output layer: Use linear function to directly output the result, and the output is a (4,2) matrix;
[0026] d. Other hyperparameter settings
[0027] Select the mean square error function as the loss function, mean square error:
[0028]
[0029] The loss function is used to judge the gap between the model results and the actual values. The errors of the training set and the validation set provide a basis for the optimization of the model. When the losses of the training set and the validation set both decrease and tend to overlap, the model has a better effect. Initial experiments show that as the number of training rounds increases, the losses of the training set and the validation set gradually decrease and tend to be stable and overlap. However, too many training rounds will lead to overfitting. The loss of the training set decreases, but the loss of the validation set no longer decreases or even increases, and the generalization ability of the model decreases. Therefore, the number of training rounds is set to 150, and all biases are initialized to 0. Because the selected activation functions are sigmoid and tanh, the middle part of the two functions is similar to a linear function. The weights are initialized according to the Xavier initialization method to reduce the situation where the output of the activation function is biased towards both ends, so that the activation values are distributed as widely as possible, so that the model can learn efficiently. The parameter update method is set to Adam, β1 is 0.9, β2 is 0.999, the learning rate is set to 0.0005, and 20% of the training set is used as the validation set. In order to avoid overfitting, the L2 regularization term is introduced.
[0030] Beneficial effects of the present invention:
[0031] The present invention uses the two-dimensional typhoon path data provided by the CMA tropical cyclone optimal path data set to establish an LSTM network for future typhoon path forecasting. It is feasible to use the full sequence prediction method to perform a relatively superficial prediction. Due to the different lengths of typhoon paths, information from a long time ago will be remembered during training, and the prediction accuracy is not very high. The moving direction of the typhoon can be roughly determined. The accuracy is relatively low compared to the method using a smaller sliding window prediction. When the sliding window width is 4, a more accurate prediction can be performed. When predicting multiple steps, the prediction error presents a cumulative effect over time. The initial time error is small, then the error increases, and the error of the last step is the largest. The prediction effect when the prediction step length is 1 step is smaller than the prediction error of 4 steps (24 hours), and the prediction accuracy decreases as the prediction step length increases. Different typhoon types have different prediction effects. The prediction effect of the more common path in the typhoon path is better, and the prediction effect of the abnormal path typhoon is poor. The dynamic regularization algorithm is used to select typhoons that are relatively similar to the predicted typhoon path as the test set for training. The prediction effect of the model is not much different from the actual path, but the common typhoon path is relatively stable, and a relatively similar and larger number of typhoon sequences can be found as training sets. The prediction error is small, and the predicted path is stable and without twists and turns. The typhoon path selected by the dynamic regularization algorithm for abnormal paths is difficult to be called a similar path, and the prediction error is large. Overall, the present invention mines hidden information from the path data for prediction, which improves the prediction accuracy of typhoon prediction effects with most stable paths. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 The present invention provides a method for predicting typhoon paths, which records the annual change in the number of tropical cyclones in the Pacific Ocean from CMABTS1949 to 2018.
[0033] Figure 2 A common neural network diagram (left figure) and an RNN expansion module structure (right figure) diagram of a method for predicting a typhoon path according to the present invention.
[0034] Figure 3 This is a box LSTM expansion structure diagram of a method for predicting a typhoon path according to the present invention.
[0035] Figure 4 This is a diagram of the internal structure of an LSTM of a method for predicting a typhoon path according to the present invention.
[0036] Figure 5 A tropical cyclone path map (left figure) and a tropical cyclone path length distribution map (right figure) recorded by CMABST from 1949 to 2018, which is a method for predicting typhoon paths in the present invention.
[0037] Figure 6 The present invention provides a sigmoid function image of a method for predicting a typhoon path.
[0038] Figure 7 The present invention provides a tanh function image of a method for predicting a typhoon path.
[0039] Figure 8 A neural network structure diagram of a method for predicting a typhoon path according to the present invention.
[0040] Fig. 9 This is a graph of training loss and test loss for a method for predicting a typhoon path according to the present invention.
[0041] Fig.10 This is a graph showing how the loss of the training sets and validation sets of models 2, 3, and 4 of a method for predicting typhoon paths vary with the number of nodes.
[0042] Fig.11 This is a prediction result diagram of a 16-hidden node test set of model 2 of a method for predicting a typhoon path of the present invention.
[0043] Fig.12 The present invention provides a method for predicting a typhoon path, and provides a 24-hour forecast chart for four typhoon models of MALIKSI.
[0044] Fig.13 The present invention provides a method for predicting typhoon paths, and provides a 24-hour forecast chart for four USAGI typhoon models.
[0045] Fig.14 This is a four-step error diagram of the CIMARON typhoon model prediction of a method for predicting a typhoon path in the present invention.
[0046] Fig.15The present invention discloses a method for predicting a typhoon path, and provides a 24-hour forecast chart for four CIMARON typhoon models.
[0047] Fig.16 This is an error diagram of training sets and validation sets with different sliding window widths for a method for predicting typhoon paths according to the present invention.
[0048] Fig.17 This is the error diagram of the MAKIKSL, ROMABIA, CIMARON, MANGKHUT model 2, experiments one and two, and the four-step test of the method for predicting typhoon paths of the present invention.
[0049] Fig.18 The MALIKSI typhoon, a method for predicting typhoon paths in the present invention, uses a dynamic regularization algorithm to match two sequences to obtain a cumulative distance matrix (left figure) and a regularized path diagram (right figure).
[0050] Fig.19 The present invention provides a method for predicting typhoon paths, in which typhoons MALIKSI, MANGKHOT and RUMBIA are matched with relatively similar typhoon sequence diagrams through a dynamic regularization algorithm.
[0051] Fig. 20 This is a diagram of model prediction results after using a dynamic regularization algorithm to adjust training set samples in a method for predicting a typhoon path of the present invention. DETAILED DESCRIPTION
[0052] The present invention will be further described below in conjunction with the accompanying drawings.
[0053] In order to use the two-dimensional typhoon path data provided by the CMA tropical cyclone best path data set to establish a LSTM network for future typhoon path forecasting, and to predict using a full sequence prediction method, the present invention provides a method for predicting a typhoon path as shown in the figure, which has the following functions: including preliminary experiments, the preliminary experimental steps are as follows:
[0054] First, four models were established and four sequences with different time steps were used for prediction. Model 1: the full sequence was used to predict the future (4 steps) 24h path. Model 2: a sliding window width of 4 steps was set to predict the typhoon position in the next 24 hours. Model 3: the same sliding window width was used for prediction as in Model 2, but the window width of Model 3 was changed to 6 and that of Model 4 was changed to 8.
[0055] In the preliminary experiments described in the present invention, 4, 8, and 16 hidden layer nodes are set in each model hidden layer, respectively, and the typhoon prediction effect under different set parameters is explored and analyzed, and then the model is optimized according to the experimental results.
[0056] The experimental environment of the preliminary experiment described in this invention is:
[0057] The CPU is Inter(R) i5-8300H, with a main frequency of 2.3GHz and a RAM of 16GB. It is based on the deep learning framework Tensorflow and the experimental programming language Python3.7.
[0058] The data sources of the preliminary experiments described in this invention are:
[0059] CMA Tropical Cyclone Best Track Dataset (tcdata.typhoon.org.cn), the downloadable version of the CMA Tropical Cyclone Best Track Dataset provides the positions and intensities of tropical cyclones in the northwest Pacific (including the South China Sea, north of the equator and west of 180° east longitude) every 6 hours from 1949 to 2018. Figure 5 From the tropical cyclone path map recorded by CMABST from 1949 to 2018 (left), it can be observed that the tropical cyclone paths mostly move from southeast to northwest, and tend to move northeast between 10°N-30°N. It can be predicted that this type of tropical cyclone, which is more common in the record, will have an impact on the results of the model in subsequent studies. Figure 5 The tropical cyclone path length distribution diagram (right figure) shows the path length distribution of tropical cyclones. It can be seen that the tropical cyclone length distribution is generally similar to a normal distribution, where sequences with sequence lengths between 8 and 65 account for more than 96.8% of the total records.
[0060] Data processing of the preliminary experiments described in this invention:
[0061] The typhoon position information from 1949 to 2018 was selected. The data was a two-dimensional time series of longitude and latitude, which was processed into a time series with tropical cyclones as units. There were 2355 typhoon position sequences in total. In order to reduce the interference of longer sequences and make the model more stable, the sequences with a time step greater than 65 were deleted. Because the typhoon path in the next 24 hours (4 steps) must be predicted, the tropical cyclone path length must be at least greater than or equal to 8, so the sequences with a time step less than 8 were deleted. The sliding window width of model 2 is 4, and the length of the tropical cyclone sequence is at least 8. When establishing model 2, the sequences with a time step less than 8 were deleted. Similarly, model 3 deleted the sequences with a sequence length less than 10, and model 4 deleted the sequences with a sequence length less than 12. The data from 1949 to 2017 were used as the training set. The data in 2018 was used as the test set. The test set had a total of 33 sequences. In order to avoid the training set from bringing in the test set information, the training set and the test set were each subjected to the most Z-score normalization after division. Z-score normalization:
[0062]
[0063]
[0064]
[0065] The last four time steps of each sequence are selected as labels (predicted values). Model 1 uses the full sequence for prediction. Since the lengths of typhoon sequences vary, Model 1 fills each sequence with 0 to the same length.
[0066] Neural network design for the preliminary experiments described in this invention:
[0067] a. Input layer: The input data is 2D longitude and latitude typhoon location data. Model 1 adds a shielding layer to skip the time step filled with [0,0];
[0068] b. Hidden layer: A hidden layer can fit any function that contains a continuous mapping from one finite space to another finite space. Initial experiments have tried multi-layer hidden layer structures, and the results of the model using one hidden layer are not much different or fail to meet the basic requirements. Initial experimental results and experience show that using one LSTM layer is basically sufficient. Considering that there is only one layer, the activation function uses sigmoid and tanh functions;
[0069]
[0070] The igmoid function converts the input into a value between [0,1], where 0 means discarding everything and 1 means keeping everything. The output value simulates the state of the gate very well and is used to control the flow of information in the LSTM network.
[0071]
[0072] The tanh function outputs a value between [-1,1], which can filter the cell state and allow us to choose to add or subtract information from the cell state. The tanh function is centered at 0, which makes the model converge faster.
[0073] c. Output layer: Use linear function to directly output the result, and the output is a (4,2) matrix;
[0074] d. Other hyperparameter settings
[0075] Select the mean square error function as the loss function, mean square error:
[0076]
[0077] The loss function is used to judge the gap between the model results and the actual values. The errors of the training set and the validation set provide a basis for the optimization of the model. When the losses of the training set and the validation set both decrease and tend to overlap, the model has a better effect. Initial experiments show that as the number of training rounds increases, the losses of the training set and the validation set gradually decrease and tend to be stable and overlap. However, too many training rounds will lead to overfitting. The loss of the training set decreases, but the loss of the validation set no longer decreases or even increases, and the generalization ability of the model decreases. Therefore, the number of training rounds is set to 150, and all biases are initialized to 0. Because the selected activation functions are sigmoid and tanh, the middle part of the two functions is similar to a linear function. The weights are initialized according to the Xavier initialization method to reduce the situation where the output of the activation function is biased towards both ends, so that the activation values are distributed as widely as possible, so that the model can learn efficiently. The parameter update method is set to Adam, β1 is 0.9, β2 is 0.999, the learning rate is set to 0.0005, and 20% of the training set is used as the validation set. In order to avoid overfitting, the L2 regularization term is introduced.
[0078] The initial experimental results are used to make preliminary discussions on model settings, parameter adjustments, etc., and to make basic preparations for the experimental design framework, so they are not included in the experimental results.
[0079]
[0080] Table 1: Training loss and validation loss of different hidden nodes of 4 models (training set loss on the left and validation set loss on the right)
[0081] From the perspective of the model, model 1 uses the full sequence to predict the typhoon path in the next 24 hours, and its training set loss and validation set loss are the largest among the four models. The training set loss and test set loss of the other three models remain at a low level, with the training set loss being around 0.01 and the test set loss being around 0.005.
[0082] From the perspective of the number of nodes, the training set loss is the largest when the number of hidden nodes of the four models is 4, and the loss is the smallest when the number of hidden nodes is 16. Fig.10 Only the training and validation set losses of models 2, 3, and 4 are listed. For the above three models, the training and validation set losses decrease when the number of hidden nodes increases from 4 to 16.
[0083] Four models with different hidden nodes are used to predict the test data. We still use MSE as the prediction result criticism standard. From the prediction effect, Fig.11As shown in the figure, the prediction effects of typhoons with different types of paths are different, and they can be roughly divided into two categories. One category is represented by typhoons such as BOLAVE, MALIKSI, JELAWAT, MANGKHOUT, etc. The typhoon paths are relatively stable, with fewer turns, and the actual paths within the prediction interval do not turn much compared to before the prediction. The predicted paths of this type of typhoon are closer to the actual paths, and the predicted movement direction of the typhoon is roughly the same as the actual movement direction of the typhoon, or the angle between the two is small. Moreover, the prediction effects of this type of typhoon vary little in different models, and the performance is stable ( Fig.11 Only the prediction results of model 2 when the number of hidden nodes is 16 are given, and the results of other models are similar to those of model 2. For example, the prediction results of typhoon MALIKSI in the four models basically coincide with the actual path. Taking the case of typhoon MALIKSI with 16 hidden nodes as an example, the longitude and latitude errors of the four models are relatively small. Fig.12 It can be seen that the prediction effects of the four models for Typhoon MALIKSI are basically stable. The predicted path can overlap or partially overlap with the actual path, and the predicted typhoon movement is consistent with the actual direction.
[0084] Table 2: Typhoon Maliksi Test loss
[0085]
[0086] The second category is represented by SANBA, EWINIAR, WUKONG, USAGI, etc. Compared with the first category of typhoons, these typhoons have more twists and turns in their paths, and their paths are strange. The actual paths turn greatly in the direction before and after the prediction. The predicted path of this type of typhoon is quite different from the actual path, and the prediction effect is not very ideal. Moreover, the prediction effect varies significantly in different models. For example, for the USAGI typhoon, taking the number of hidden nodes as 16, Fig.13 As shown in the figure, the typhoon's prediction effect in model 1 is poor, and the predicted path is almost perpendicular to the actual path, and the direction is completely inconsistent. The predicted paths of models 2 and 3 basically coincide with the actual paths in the first few steps, and then the predicted paths gradually deviate from the actual paths. The predicted path of model 4 is roughly parallel to the actual path, and the predicted moving direction is consistent with the actual direction.
[0087] Table 3: USAGI test loss
[0088]
[0089] From the overall prediction results, the prediction results of most typhoons in the first step are relatively close to the actual position, but then they start to deviate, and the error tends to accumulate over time, with the largest deviation in the fourth step. Fig.12 Typhoon Maliksi and Fig.13A similar trend can be seen in the prediction results of USAGI typhoons. Taking the CIMARON typhoon as an example, the prediction error of the four models with 16 hidden nodes for the CIMARON typhoon gradually increased from the first step to the fourth step, and the prediction accuracy decreased ( Fig.14 ), the predicted position and the actual position offset gradually become larger ( Fig.15 ).
[0090] Table 4: CIMARON typhoon model prediction error in four steps
[0091]
[0092] In summary, a LSTM neural network with one hidden layer can use historical typhoon paths to predict future typhoon paths. Using historical typhoon data of different step lengths for prediction will affect the prediction error. The prediction error of a 4-time-step sliding window is smaller than the prediction error of a full sequence as input. The prediction effects of different typhoons are also different. The prediction error of a typhoon with a smoother path and less fluctuation is smaller than that of a typhoon with a tortuous path and unstable path. In addition, the prediction error shows a trend of accumulation over time. The error is often small in the first step, and then the error gradually increases, and the predicted path deviates from the actual path.
[0093] Next, optimize the model:
[0094] (I) Change the sliding window width
[0095] In view of the difference between model 1 and the other three models, the number of hidden nodes is set to 16, and the new sliding windows are 12, 16, and 20. Models 5, 6, and 7 with other parameters unchanged are further discussed.
[0096] Table 5: Training set and validation set errors with different sliding window widths
[0097]
[0098] Depend on Fig.16 It can be seen that as the sliding window grows, the errors of the model's training set and test set increase simultaneously. Shorter windows basically meet the prediction requirements, and too long time series may remember useless information from a long time ago, causing the error to increase. The model should set a smaller sliding window width, and only use the typhoon path of the first 4 steps (24 hours) to predict the typhoon path in the next 24 hours with a smaller error.
[0099] (II) Changing the prediction time step
[0100] The error of the prediction results increases as time goes by. We choose model 2, set the number of hidden nodes to 16, and change it to only predict the typhoon position in the future one time step (6 hours later). We select typhoons MAKIKSL, ROMBIA, CIMARON, and MANGKHUT to set up two improved experiments for further exploration. The original experiment 2 only predicts once, with a total of four steps. The improved experiment 1 adds the prediction results to the input sequence after one step of prediction, and then slides to predict the next step, with a total of four predictions. The improved experiment 2 only slides four times, and the prediction results are no longer incorporated into the input sequence. From the results, the applicability of typhoons MAKIKSL, ROMBIA, and NAMGKHUT to the improved experiment 1 is poor. After switching to experiment 1, the prediction errors of these three typhoons are further increased compared with the prediction errors of model 2, and the expected optimization effect does not appear. The errors gradually accumulate and reach the maximum in the fourth step. In the improved experiment 2, the errors of the four time steps of the four typhoons are all at a low level, which is not obvious compared with the cumulative increase of the error of the model 2 test over time, and the errors are lower than those of model 2 and improved experiment 1. In general, as the prediction time step decreases, the test error of the typhoon decreases, and the prediction time step of 1 step (6h) is better than that of 4 steps (24h).
[0101] (III) Dynamic Warping Algorithm
[0102] The lengths and shapes of typhoon sequences are different, which makes training very difficult. During training, the relatively abnormal typhoon path information will also be learned into the model. If the typhoon path that is more similar to the predicted typhoon path can be screened out from the historical data for training, more accurate information can be learned, and the error will be further reduced. Combined with the previous results, we use the dynamic warping algorithm to further optimize the model. The dynamic warping algorithm is an algorithm for curve similarity matching. It can give the minimum distance or similarity of two sequences, thereby determining the similarity of the two sequences. The dynamic warping algorithm actually calculates the Euclidean distance. The algorithm finds the correctly corresponding points in the two sequences. A point in one sequence may correspond to multiple points in another sequence. When the points of the two sequences correspond correctly, the sum of the distances of all corresponding points is calculated. This distance is the minimum value and is the distance between the two sequences.
[0103] Dynamic regularization algorithm implementation
[0104] Suppose there are two time series P = (p1, p2, p3…p n ), T=(t1,t2,t3...t m ).
[0105] In the context of this paper, the P sequence is a typhoon path sequence in the test set, and the T sequence is a typhoon path sequence used for matching in the training set. i =(x p ,y p ), tj =(x t ,y t ).
[0106] Establish the distance matrix D of sequence P and T. The distance matrix D is a (m×n) matrix
[0107] D i,j =(x pi -x tj ) 2 +(y pi -y tj ) 2 (1≤i≤m, 1≤j≤n)
[0108] Create a cumulative distance matrix A, align the beginning ends of sequences P and T to start matching, and when each point is reached, the distances of all previous points are accumulated.
[0109] A 1,1 =0
[0110] A i,1 =D i,1 +A i-1,1 (2≤i≤m)
[0111] A 1,j =D 1,j +A 1,j-1 (2≤j≤n)
[0112] A i,j =D i-1,j-1 +min(A i,j-1 , A i-1,j , A i-1,j-1 ) (2≤i≤m, 2≤j≤n)
[0113] In the cumulative distance matrix, we can find a path, and the points on the path are the correct corresponding points, A m,n It is the distance or similarity between two sequences.
[0114] Fig.18 The figure on the left shows the matching result of Typhoon MALIKSI and Typhoon BARIJAT using the dynamic regularization algorithm. Fig.18 The right figure shows the matching results of Typhoon MALIKSI and the typhoons that are similar to it after matching. The points where the path passes are the points where the two sequences correctly correspond. For example, if the path passes through [0, 0], the first point of sequence 1 and the first point of sequence 2 correctly correspond. Fig.18 It can be seen from the comprehensive analysis that if the two sequences are highly similar, the points that the path passes through are points with smaller values in the cumulative matrix. If the two sequences are highly different, the points that the regular path passes through have larger values, making the overall distance between the two sequences larger. Fig.18 The typhoon path matched in the right figure is Fig.18 The typhoon matched in the left figure is more similar to MALIKSI. We use the dynamic regularization algorithm to match the predicted sequence with all the typhoons in the original training set, and select the typhoon path sequence with the top 1 / 3 similarity in the training set as the new training set for training. Set the number of hidden nodes of the model to 16, the sliding window to 4, and keep other parameters unchanged. Only one step is predicted (position after 6 hours). Further exploration is carried out with three typhoons: MALIKSI, MANGKHOT, and RUMBIA. Fig.19 It shows four typhoon paths that are more similar to the above four typhoons after matching with the dynamic regularization algorithm. The leftmost one is the original typhoon path, and the four figures on the right are similar typhoon paths.
[0115] like Fig. 20 As shown in the figure, we use 4 time steps to slide and predict the entire sequence. The predicted paths of the four typhoons basically coincide with the actual paths. We use the paths of typhoons that are similar to the predicted typhoons as the training set. The similarity here is based on the minimum distance obtained by dynamic regular matching of the two paths, which is different from the similarity in daily life. Therefore, after matching, we can get Fig.19 As can be seen from the above data, for typhoons like MALIKSI, a large number of typhoons similar to it can be found in the total data set. However, for typhoons with unusual paths like MANGKHUT, it is difficult to find typhoon paths similar to it in the total data set. The dynamic regularization algorithm can only find typhoon paths with a smaller distance from it, but they are almost not completely similar to the shape of the MANGKHUT typhoon path. From the prediction results ( Fig. 20 ) It can be seen that the predicted path of Typhoon MALIKSI has almost no twists and turns, and the predicted path basically coincides with the actual path. The predicted path of Typhoon MANGKHUT has more twists and turns. In addition, the training data is reduced after the dynamic regularization algorithm is selected, which will also affect the prediction results. Typhoon forecasts with abnormal paths have always been a problem for forecasting. This situation was also found in this study. One situation is that such typhoons are rare in historical data. Figure 5 From the tropical cyclone path map recorded by CMABST from 1949 to 2018 (left), it can be seen that there are many tropical cyclones similar to the path of Typhoon MALIKSI, and the prediction effect of this type of typhoon is better. Other studies have pointed out that the prediction accuracy of typhoons with abnormal paths can be improved by increasing the number of abnormal paths in the typhoon database, etc., which will not be discussed in detail here.
[0116] It is feasible to establish an LSTM network to forecast the future typhoon path using the two-dimensional typhoon path data provided by the CMA tropical cyclone best path data set. A relatively rough prediction can be made using the full sequence prediction method. Due to the different lengths of typhoon paths, information from a long time ago will be remembered during training, and the prediction accuracy is not very high. The movement direction of the typhoon can be roughly determined. The accuracy is relatively low compared to the method using a smaller sliding window prediction. A relatively accurate prediction can be made when the sliding window width is 4. When predicting multiple steps, the prediction error shows a cumulative effect over time. The initial time error is small, then the error increases, and the error in the last step is the largest. The prediction effect when the prediction step length is 1 step is smaller than that when the prediction step length is 4 steps (24 hours), and the prediction accuracy decreases as the prediction step length increases. The prediction effects of different typhoon types are different. The prediction effect of the more common path in the typhoon path is better, and the prediction effect of the typhoon with abnormal path is poor. The dynamic regularization algorithm is used to select typhoons that are relatively similar to the predicted typhoon paths as test sets for training. The prediction effect of the model is not much different from the actual path, but the common typhoon paths are relatively stable, and we can find relatively similar and larger typhoon sequences as training sets. The prediction error is small, and the predicted path is stable and without twists and turns. The typhoon path selected by the dynamic regularization algorithm for abnormal paths is difficult to be called a similar path, and the prediction error is large.
[0117] The present invention and its implementation methods are described above, which is not restrictive. The drawings show only one implementation method of the present invention, and the actual content is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design structures and embodiments similar to the technical solution without creativity, which should all fall within the protection scope of the present invention.
Claims
1. A method for predicting a typhoon path, characterized in that: Including preliminary experiments, the preliminary experimental steps are as follows: First, four models were established to predict the sequence with four different time steps. Model 1: The full sequence predicts the future (4 steps) 24h path; Model 2: Set a 4-step sliding window width to predict the typhoon position in the next 24 hours; Models 3 and 4 use the same sliding window width as Model 2 for prediction, but the window width of Model 3 is changed to 6, and the window width of Model 4 is changed to 8; In the preliminary experiment, each model hidden layer is set with 4, 8, and 16 hidden layer nodes respectively, and the typhoon prediction effect under different parameters is explored and analyzed, and then the model is optimized according to the experimental results; The training set loss of the four models is the largest when the number of hidden nodes is 4, and the loss is the smallest when the number of hidden nodes is 16; Data processing of the preliminary experiments: The typhoon position information from 1949 to 2018 was selected. The data was a two-dimensional time series of longitude and latitude, which was processed into a time series with tropical cyclones as units. There were 2355 typhoon position sequences in total. In order to reduce the interference of longer sequences and make the model more stable, the sequences with a time step greater than 65 were deleted. Because the typhoon path in the next 24 hours (4 steps) must be predicted, the tropical cyclone path length must be at least greater than or equal to 8, so the sequences with a time step less than 8 were deleted. The sliding window width of model 2 is 4, and the length of the tropical cyclone sequence is at least 8. When establishing model 2, the sequences with a time step less than 8 were deleted. Similarly, model 3 deleted the sequences with a sequence length less than 10, and model 4 deleted the sequences with a sequence length less than 12. The data from 1949 to 2017 were used as the training set. The 2018 data is used as the test set. The test set has 33 sequences. To avoid the training set from bringing in the test set information, the training set and the test set are each subjected to Z-score standardization after division. Z-score standardization: The last four time steps of each sequence are selected as labels (predicted values). Model 1 uses the full sequence for prediction. Since the lengths of typhoon sequences vary, Model 1 fills each sequence with 0 to the same length. Neural network design for the preliminary experiments: a. Input layer: The input data is 2D longitude and latitude typhoon location data. Model 1 adds a shielding layer to skip the time step filled with [0,0]; b. Hidden layer: A hidden layer can fit any function that contains a continuous mapping from one finite space to another finite space. Initial experiments have tried multi-layer hidden layer structures, and the results of the model using one hidden layer are not much different or fail to meet the basic requirements. Initial experimental results and experience show that using one LSTM layer is basically sufficient. Considering that there is only one layer, the activation function uses sigmoid and tanh functions; The igmoid function converts the input into a value between [0,1], where 0 means discarding everything and 1 means keeping everything. The output value simulates the state of the gate very well and is used to control the flow of information in the LSTM network. The tanh function outputs a value between [-1,1], which can filter the cell state and choose to add or subtract information from the cell state. The tanh function is centered at 0, which makes the model converge faster; c. Output layer: Use a linear function to directly output the result, and the output is a (4,2) matrix; d. Other hyperparameter settings select the mean square error function as the loss function, and the mean square error is: The loss function is used to judge the gap between the model results and the actual values. The errors of the training set and the validation set provide a basis for the optimization of the model. When the losses of the training set and the validation set both decrease and tend to overlap, the model has a better effect. Initial experiments show that as the number of training rounds increases, the losses of the training set and the validation set gradually decrease and tend to be stable and overlap. However, too many training rounds will lead to overfitting. The loss of the training set decreases, but the loss of the validation set no longer decreases or even increases, and the generalization ability of the model decreases. Therefore, the number of training rounds is set to 150, and all biases are initialized to 0. Because the selected activation functions are sigmoid and tanh, the middle part of the two functions is similar to a linear function. The weights are initialized according to the Xavier initialization method to reduce the situation where the output of the activation function is biased towards both ends, so that the activation values are distributed as widely as possible, so that the model can learn efficiently. The parameter update method is set to Adam, β1 is 0.9, β2 is 0.999, the learning rate is set to 0.0005, and 20% of the training set is used as the validation set. In order to avoid overfitting, the L2 regularization term is introduced; Typhoons are divided into two categories according to their paths. The paths of the first category typhoons are stable with few turns, and the actual paths within the prediction interval do not turn much compared with those before the prediction. The paths of the second category typhoons are more turning and weird, and the actual paths turn greatly before and after the prediction. The prediction effects of the four models for the first category typhoons are basically stable, the predicted paths can overlap or partially overlap with the actual paths, and the predicted typhoon movement is consistent with the actual direction. The prediction effect of model one for the second category typhoons is poor, the predicted paths are almost perpendicular to the actual paths, and the directions are completely inconsistent. The predicted paths of models two and three for the second category typhoons basically overlap with the actual paths in the first few steps, and the predicted paths gradually deviate from the actual paths in the following steps. The predicted path of model four for the second category typhoons is parallel to the actual path, and the predicted movement direction is consistent with the actual direction.
2. A method for predicting a typhoon path according to claim 1, characterized in that: The experimental environment of the preliminary experiment is as follows: The CPU is Inter(R) i5-8300H, with a main frequency of 2.3GHz and a RAM of 16GB. It is based on the deep learning framework Tensorflow and the experimental programming language Python3.
7.
3. A method for predicting a typhoon path according to claim 1, characterized in that: Data sources for the preliminary experiments described: CMA Tropical Cyclone Best Track Dataset (tcdata.typhoon.org.cn), the download version of the CMA Tropical Cyclone Best Track Dataset provides the position and intensity of tropical cyclones in the northwest Pacific (including the South China Sea, north of the equator and west of 180° east longitude) every 6 hours from 1949 to 2018.
Citation Information
Cited By
Typhoon weather forecasting method, medium and equipment
CN119535643A
