A short-term ship traffic flow prediction method based on EEMD-PE-LSTM
The EEMD-PE-LSTM method is used to decompose and reconstruct ship traffic flow, and is combined with the LSTM model for prediction, which solves the problem of too long calculation time in the existing technology and improves the prediction accuracy and efficiency.
Patent Information
- Application Number
- CN202211406560.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-10
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-11-10
AI Technical Summary
After the existing LSTM-based ship traffic flow prediction model introduces the EMD-like ensemble empirical mode decomposition algorithm, the model prediction steps are too complex due to the excessive decomposition components, and the calculation time is too long.
The short-term ship traffic flow prediction method based on EEMD-PE-LSTM is used to decompose the ship traffic flow sequence through the EEMD algorithm to obtain the intrinsic module function components and residuals, and the PE algorithm is used to reconstruct the phase space of the components and decompose them. For high-frequency and low-frequency components, the residuals are input into the LSTM model for prediction, which improves the prediction accuracy and shortens the calculation time.
It not only improves the accuracy of short-term ship traffic flow prediction, but also solves the problem of long calculation time and achieves a more efficient prediction process.
Smart Images

Figure CN115828736B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of waterway short-term ship traffic flow prediction, and in particular to a short-term ship traffic flow prediction method based on EEMD-PE-LSTM. Background Art
[0002] In recent years, compared with traditional parametric models such as the Autoregressive Integrated Moving Average (ARIMA) model and the Grey Model (GM) and traditional non-parametric models such as the K-nearest neighbor non-parametric regression and the Radial Basis Function (RBF) network, the Long Short Term Memory (LSTM) model in deep learning has shown good nonlinear time series fitting ability. It is not only widely used in the fields of magnetotelluric time series denoising, machine learning time prediction and multi-task feature classification of pulmonary nodules, but also has achieved excellent results in the field of ship traffic flow prediction.
[0003] A ship traffic flow prediction model combining convolutional neural network (CNN) model, LSTM model and BDLSTM model and CNN model has been constructed, and examples have been used to verify that the LSTM-like model is suitable for the field of ship traffic flow prediction; Wang Kai et al. proposed a VMD-DTW-LSTM combined prediction model for the nonlinear and non-stationary characteristics of ship traffic flow, and verified that the empirical mode decomposition (EMD)-like model can effectively reduce the impact of nonlinearity and non-stationarity of ship traffic flow; Liu Jingxian et al. proposed a CNN-LSTM combined ship prediction model to improve the accuracy of ship traffic flow prediction, and collected ship traffic flow data on a monthly basis for example verification. The results show that the model has high prediction accuracy. However, the existing technologies disclosed in the above documents only study the prediction accuracy of the model, and do not consider the impact of the actual operation time of the model on the short-term ship traffic flow prediction. As a result, after the existing LSTM-based ship traffic flow prediction model introduces the Ensemble Empirical Mode Decomposition (EEMD) algorithm in the EMD class, the prediction steps of the model are too complicated due to the excessive decomposition of components, resulting in a problem of too long operation time. Summary of the invention
[0004] The present invention provides a short-term ship traffic flow prediction method based on EEMD-PE-LSTM to overcome the problem that the existing ship traffic flow prediction model has a long operation time.
[0005] In order to achieve the above object, the technical solution of the present invention is:
[0006] A short-term ship traffic flow prediction method based on EEMD-PE-LSTM includes the following steps:
[0007] S1. Establish ship traffic flow sequence x(t) based on LSTM model of deep learning theory;
[0008] S2, using the EEMD algorithm to decompose the ship traffic flow sequence x(t) to obtain n intrinsic mode function components and a residual;
[0009] S3, reconstructing the phase space of the n intrinsic mode function components by using the PE algorithm, obtaining the entropy value corresponding to each intrinsic mode function component, and dividing the entropy value into a high-frequency component and a low-frequency component;
[0010] S4, respectively inputting the high-frequency component, the low-frequency component and the residual into the LSTM model for prediction, obtaining a high-frequency component prediction value, a low-frequency component prediction value and a residual prediction value, and superimposing the three prediction values to obtain a final prediction result of short-term ship traffic flow;
[0011] S5. Perform error verification on the final prediction result to obtain an error index, calculate the operation time of each model, and conduct a comprehensive evaluation of each model based on the error index and the operation time.
[0012] Furthermore, the step S2 comprises the following steps:
[0013] S21, adding m white noises n with standard normal distribution to the ship traffic flow sequence x(t) i (t)(i=1,2,…,m), get m new time series X i (t), expressed as:
[0014] X i (t) = x(t) + n i (t);
[0015] S22, respectively, for the m new time series X i (t) Perform EMD decomposition, and obtain n intrinsic mode function components c for each sequence ij (t)(i=1,2,…,m;j=1,2,…,n) and a residual r i (t)(i=1,2,…,m), expressed as:
[0016]
[0017] S23, for a total of m×n eigenmode function components c ij (t) Perform ensemble average operation to complete EEMD decomposition and obtain n intrinsic mode function components c i and a residual r, expressed as:
[0018]
[0019]
[0020] Furthermore, step S3 includes the following steps:
[0021] S31, for the n eigenmode function components c j Reconstruct the phase space and obtain the reconstruction matrix:
[0022]
[0023] In the matrix: λ is the delay time, m is the embedding dimension, and K is the number of reconstructed components;
[0024] S32, arranging the reconstructed components of each row in the reconstructed matrix in ascending order according to the value of the elements. If the values of two elements in a reconstructed component are equal, arranging them in ascending order according to the value of the column index, a set of reconstructed components consisting of the column index of the position of each element in the component can be obtained, which is expressed as:
[0025] S K ={j 1 ,j 2 ,…,j t}, where: j t (t=1,2,…,m) is the value of the column index;
[0026] S33, calculating the probability P of each reconstructed component appearing 1 ,P 2 ,…,P n , where n is less than or equal to the factorial of m, based on the fact that all probabilities sum to 1, the eigenmode function component c can be obtained i The entropy value definition expression is:
[0027]
[0028] S34, the eigenmode function component c i The entropy value is normalized and expressed as a decimal between 0 and 1 to obtain a quantifiable entropy value;
[0029] S35. Calculate the size of the quantifiable and comparable entropy value through the PE algorithm, and reconstruct the n intrinsic mode function components into high and low frequency components.
[0030] Furthermore, in step S4, the predicted values obtained after inputting the high-frequency and low-frequency components into the LSTM model are Y hf and Y lf , the predicted value obtained by inputting the residual r into the LSTM model is Y r , the final prediction result expression obtained by superimposing the predicted values is:
[0031] Y=Y hf +Y lf +Y r .
[0032] Furthermore, the error verification in step S5 adopts a linear regression statistical method, and the linear regression statistical method includes: a root mean square error method and a mean absolute error method;
[0033] The expression of the root mean square error method is:
[0034]
[0035] The expression of the mean absolute error method is:
[0036]
[0037] In formulas (1) and (2), k is the number of samples of the predicted value, Y pre is the predicted value, Y real is the true value.
[0038] Furthermore, the models for comprehensive evaluation in step S5 include: LSTM model, EEMD-LSTM model and EEMD-PE-LSTM model; the comprehensive evaluation adopts the entropy weighted good and bad solution distance method to calculate the comprehensive evaluation value of each model, and the entropy weighted good and bad solution distance method includes the following calculation steps:
[0039] S51, assuming that there are x evaluation models and y evaluation indicators, in this case, the evaluation model x=3, the evaluation indicator y=3, and the evaluation indicators include: RMSE 、E MAE And model operation time, the initial decision matrix constructed is:
[0040]
[0041] In formula (3): a ij is the model indicator result, i is the model number, and j is the indicator number;
[0042] S52, performing attribute convergence processing on the indicator results, including:
[0043] Positive processing of high-quality indicators:
[0044]
[0045] Reverse processing of low-quality indicators:
[0046]
[0047] In formulas (4) and (5): a max is the maximum value of the column index, a min The minimum value of the column index.
[0048] S53, calculating the information entropy of the evaluation index according to the processed index results, and determining the entropy weight corresponding to each model;
[0049] The information entropy calculation formula of the indicator is:
[0050]
[0051] In formula (6):
[0052]
[0053] The calculation formula of entropy weight corresponding to each model is:
[0054]
[0055] In formula (7):
[0056] S54, constructing a standardized decision matrix according to the entropy weights corresponding to each model:
[0057]
[0058] In formula (8): c ij =w j ×b ij ;
[0059] S55, determining the best and worst models according to the standardized decision matrix; the best model is composed of the maximum value of each column in the decision matrix C, and C + Indicates; the worst model consists of the minimum value of each column in the decision matrix C, denoted by C - Indicates that the expression is:
[0060] C + =(maxc 1 ,maxc 2 ,…,maxc y );
[0061] C - =(minc 1 ,minc 2 ,…,minc y );
[0062] S56. Calculate the Manhattan distance s between each model and the best and worst model i + and i - , the expression is:
[0063]
[0064]
[0065] S57, calculating the comprehensive evaluation value E of each model according to the Manhattan distance i , the expression is:
[0066]
[0067] Beneficial effect: The present invention introduces the PE algorithm into the ship traffic flow prediction model based on EEMD-LSTM, reconstructs the phase space of the intrinsic mode function components decomposed by the EEMD algorithm, reconstructs them into high-frequency components and low-frequency components according to the entropy value, and then inputs the high-frequency and low-frequency components and the residuals into the LSTM model for prediction. This not only improves the accuracy of short-term ship traffic flow prediction, but also solves the problem of long operation time of the existing short-term ship traffic flow prediction model. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor.
[0069] Figure 1 Constructing a general flow chart for the prediction model of the method of the present invention;
[0070] Figure 2 It is a decomposition flow chart of the EEMD algorithm used in the method of the present invention;
[0071] Figure 3 It is a phase space reconstruction flow chart using the PE algorithm in the method of the present invention;
[0072] Figure 4 A flowchart of error verification and comprehensive evaluation in the method of the present invention;
[0073] Figure 5 4392 groups of ship traffic flow sequence diagrams statistically analyzed by the method of the present invention;
[0074] Figure 6 It is a sequence diagram of the ship traffic flow model after decomposition by the EEMD algorithm according to the method of the present invention;
[0075] Figure 7 It is a high frequency sequence diagram after phase space reconstruction by the method of the present invention;
[0076] Figure 8 It is a low-frequency sequence diagram after phase space reconstruction by the method of the present invention;
[0077] Fig. 9 It is a residual sequence diagram after phase space reconstruction by the method of the present invention;
[0078] Fig.10 Schematic diagram of the comparison between the LSTM model and the true value;
[0079] Fig.11 Schematic diagram of the comparison between the EEMD-LSTM model and the true value;
[0080] Fig.12 It is a schematic diagram for comparing the EEMD-PE-LSTM model of the present invention with the true value. DETAILED DESCRIPTION
[0081] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. 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.
[0082] Example 1
[0083] This embodiment provides a short-term ship traffic flow prediction method based on EEMD-PE-LSTM. Figure 1 As shown, the following steps are included:
[0084] S1. Establish ship traffic flow sequence x(t) based on long short-term memory of deep learning theory;
[0085] S2, using the EEMD algorithm to decompose the ship traffic flow sequence x(t) to obtain n intrinsic mode function components and a residual;
[0086] S3, reconstructing the phase space of the n intrinsic mode function components by using the PE algorithm, obtaining the entropy value corresponding to each intrinsic mode function component, and reconstructing the n intrinsic mode function components into high-frequency components and low-frequency components according to the entropy values;
[0087] S4, respectively inputting the high-frequency component, the low-frequency component and the residual into the LSTM model for prediction, obtaining a high-frequency component prediction value, a low-frequency component prediction value and a residual prediction value, and superimposing the three prediction values to obtain a final prediction result of short-term ship traffic flow;
[0088] S5. Perform error verification on the final prediction result to obtain an error index, calculate the operation time of each model, and conduct a comprehensive evaluation of each model based on the error index and the operation time.
[0089] In this embodiment, if Figure 2 As shown, step S2 includes the following steps:
[0090] S21, adding m white noises n with standard normal distribution to the ship traffic flow sequence x(t) i (t)(i=1,2,…,m), get m new time series X i (t), expressed as:
[0091] X i (t) = x(t) + n i (t);
[0092] S22, respectively, for the m new time series X i (t) Perform EMD decomposition, and obtain n intrinsic mode function components c for each sequence ij (t)(i=1,2,…,m;j=1,2,…,n) and a residual r i (t)(i=1,2,…,m), expressed as:
[0093]
[0094] S23, for a total of m×n eigenmode function components c ij (t) Perform ensemble average operation to complete EEMD decomposition and obtain n intrinsic mode function components c i and a residual r, expressed as:
[0095]
[0096]
[0097] In this embodiment, if Figure 3 As shown, step S3 includes the following steps:
[0098] S31, for the n eigenmode function components c j Reconstruct the phase space and obtain the reconstruction matrix:
[0099]
[0100] In the matrix: λ is the delay time, m is the embedding dimension, and K is the number of reconstructed components;
[0101] S32, arranging the reconstructed components of each row in the reconstructed matrix in ascending order according to the value of the elements. If the values of two elements in a reconstructed component are equal, arranging them in ascending order according to the value of the column index, a set of reconstructed components consisting of the column index of the position of each element in the component can be obtained, which is expressed as:
[0102] S K ={j 1 ,j 2 ,…,j t}, where: j t (t=1,2,…,m) is the value of the column index;
[0103] S33, calculating the probability P of each reconstructed component appearing 1 ,P 2 ,…,P n , where n is less than or equal to the factorial of m, based on the fact that all probabilities sum to 1, the eigenmode function component c can be obtained i The entropy value definition expression is:
[0104]
[0105] S34, the eigenmode function component c i The entropy value is normalized and expressed as a decimal between 0 and 1 to obtain a quantifiable entropy value, expressed as:
[0106]
[0107] S35. Calculate the size of the quantifiable and comparable entropy value through the PE algorithm, and reconstruct the n intrinsic mode function components into high and low frequency components.
[0108] In this embodiment, in step S4, the predicted values obtained after the high-frequency and low-frequency components are input into the LSTM model are Y hf and Y lf , the predicted value obtained by inputting the residual r into the LSTM model is Y r , the final prediction result expression obtained by superimposing the predicted values is:
[0109] Y=Y h x+Y lf +Yr .
[0110] Specifically, in order to verify that the EEMD-PE-LTSM model proposed in this embodiment has certain advancement, the traffic flow of the main channel of Qingdao Port from 0:00 on September 20, 2021 to 24:00 on September 20, 2022 is taken as an example. The ship traffic flow is mainly provided based on AIS historical data. Corresponding to step S1, the extracted AIS historical data is counted at intervals of every two hours. The ship traffic flow passing the set threshold can be divided into 4392 groups, namely the ship traffic flow sequence x(t), and the collected ship traffic flow data are numbered 1-4392 and visualized. The results are as follows Figure 5 shown.
[0111] Specifically, corresponding to step S2, the collected ship traffic flow sequence x(t) is decomposed using the EEMD algorithm, such as Figure 2 As shown, according to the method from step S21 to step S23, 11 intrinsic mode function components and one residual are finally obtained. The result is as follows Figure 6 shown. Figure 6 The horizontal axis is the ship traffic flow data number 1-4392, where the bottom row is the residual, the top row is the original ship traffic flow data, and the middle row is the 1 to c 11 There are 11 groups of IMF components obtained by decomposition. The advantage of using EEMD ensemble empirical mode decomposition over EMD empirical mode decomposition is that it can solve the modal aliasing phenomenon in the EMD algorithm.
[0112] Specifically, corresponding to step S3, the PE algorithm is used to calculate the entropy values of 11 groups of IMF components, such as Figure 3 As shown, according to the method of step S31 to step S35, the calculation results are shown in Table 1. Since the entropy value of each IMF component can realize phase space reconstruction, it is generally believed that when the entropy value is greater than 0.6, it indicates that the component is relatively random. On the contrary, when the entropy value is less than 0.6, it indicates that the component is relatively regular. Therefore, it can be seen from Table 1 that c 1 Group and c 2 The entropy values of the components are relatively large, 0.956 and 0.671 respectively, indicating that the components are highly random and fluctuate greatly over time, reflecting the impact of external random factors such as sudden weather conditions and policies on ship traffic flow. Therefore, c 1 and c 2 The components are reconstructed into high-frequency sequences; c 3 Group to c 11The fluctuation frequency of the component weights decreases in turn, indicating that the components are less affected by external random factors and fluctuate more gently over time, reflecting the joint effect of external non-random factors such as seasonal changes in navigation water levels and climatic conditions on ship traffic flow. Therefore, c in the ship traffic flow prediction model x(t) is 3 to c 11 The components are reconstructed into low-frequency sequences. The PE algorithm is used to extract the characteristics of short-term ship traffic flow. The component phase space is reconstructed by analyzing the complexity of each component, so that the problem of too many components decomposed by the original EEMD algorithm causing the model operation time to be too long is solved. The introduction of the PE algorithm can greatly shorten the model operation time. The sequence after reconstruction of the ship traffic flow prediction model x(t) is as follows Figure 7 , Figure 8 , Fig. 9 As shown, Figure 7 is the reconstructed high frequency sequence, Figure 8 is the reconstructed low-frequency sequence, Fig. 9 is the reconstructed residual sequence.
[0113] Quantity <![CDATA[c 1 ]]> <![CDATA[c 2 ]]> <![CDATA[c 3 ]]> <![CDATA[c 4 ]]> <![CDATA[c 5 ]]> <![CDATA[c 6 ]]> <![CDATA[c 7 ]]> <![CDATA[c 8 ]]> <![CDATA[c 9 ]]> <![CDATA[c 10 ]]> <![CDATA[c 11 ]]> Entropy 0.956 0.671 0.433 0.309 0.225 0.176 0.142 0.126 0.116 0.112 0.108
[0114] Table 1
[0115] Specifically, corresponding to step S4, the obtained high-frequency sequence, low-frequency sequence and residual sequence are all input into the LSTM model, EEMD-LSTM model and EEMD-PE-LSTM model for prediction, and the obtained prediction values are superimposed to obtain the final prediction results of short-term ship traffic flow under the three models, and 1 / 6 of the total sample is selected as the test sample to compare with the true value. The comparison results are as follows: Fig.10 , Fig.11 and Fig.12 As shown, it can be seen from the figure that the three models have a high degree of conformity with the true value, which shows that the method of the present invention has certain scientificity and accuracy.
[0116] Example 2
[0117] This embodiment provides a short-term ship traffic flow prediction method based on EEMD-PE-LSTM, and the error verification in step S5 adopts a linear regression statistical method, and the linear regression statistical method includes: a root mean square error method and a mean absolute error method;
[0118] The expression of the root mean square error method is:
[0119]
[0120] The expression of the mean absolute error method is:
[0121]
[0122] In formulas (1) and (2), k is the number of samples of the predicted value, Y pre is the predicted value, Y real is the true value.
[0123] In this embodiment, the models for comprehensive evaluation in step S6 include: LSTM model, EEMD-LSTM model and EEMD-PE-LSTM model; the comprehensive evaluation uses the entropy weighted superior and inferior solution distance method to calculate the comprehensive evaluation value of each model, such as Figure 4 As shown, the entropy weighted superiority and inferiority solution distance method includes the following calculation steps:
[0124] S51, assuming that there are x evaluation models and y evaluation indicators, in this case, the evaluation model x=3, the evaluation indicator y=3, and the evaluation indicators include: RMSE 、E MAE And model operation time, the initial decision matrix constructed is:
[0125]
[0126] In formula (3): a ij is the model indicator result, i is the model number, and j is the indicator number;
[0127] S52, performing attribute convergence processing on the indicator results, including:
[0128] Positive processing of high-quality indicators:
[0129]
[0130] Reverse processing of low-quality indicators:
[0131]
[0132] In formulas (4) and (5): a max is the maximum value of the column index, a min The minimum value of the column index.
[0133] S53, calculating the information entropy of the evaluation index according to the processed index results, and determining the entropy weight corresponding to each model;
[0134] The information entropy calculation formula of the indicator is:
[0135]
[0136] In formula (6):
[0137]
[0138] The calculation formula of entropy weight corresponding to each model is:
[0139]
[0140] In formula (7):
[0141] S54, constructing a standardized decision matrix according to the entropy weights corresponding to each model:
[0142]
[0143] In formula (8): c ij =w j ×b ij ;
[0144] S55, determining the best and worst models according to the standardized decision matrix; the best model is composed of the maximum value of each column in the decision matrix C, and C + Indicates; the worst model consists of the minimum value of each column in the decision matrix C, denoted by C - Indicates that the expression is:
[0145] C + =(maxc 1 ,maxc 2 ,…,maxc y );
[0146] C - =(minc 1 ,minc 2 ,…,minc y );
[0147] S56. Calculate the Manhattan distance s between each model and the best and worst model i + and i - , the expression is:
[0148]
[0149]
[0150] S57, calculating the comprehensive evaluation value E of each model according to the Manhattan distance i , the expression is:
[0151]
[0152] Specifically, in order to scientifically and accurately verify the advancedness of the EEMD-PE-LSTM model proposed in the present invention, the linear regression statistical method is used to verify the error of the final result predicted by the model, specifically the root mean square error method (RMSE) and the mean absolute error method (MAE), and their expressions are:
[0153] The expression of the root mean square error method is:
[0154]
[0155] The expression of the mean absolute error method is:
[0156]
[0157] In formulas (1) and (2), k is the number of samples, Y pre is the predicted value, Y real is the true value.
[0158] Specifically, the LSTM model, EEMD-LSTM model and the EEMD-PE-LSTM model of the present invention are selected for comparison. The prediction error index and operation time of each model are shown in Table 2. It can be seen that when the three models are used to explore the short-term ship traffic flow change law at the time level, from the perspective of prediction error index, the prediction error of LSTM is the largest, indicating that the non-stationary ship traffic flow sequence will have a greater impact on the prediction accuracy of the LSTM model; and compared with the LSTM model, the EEMD-LSTM model has a higher prediction error than the LSTM model. RMSE The relative improvement was 6.45%, E MAE The relative improvement is 5.37%, indicating that the EEMD-LSTM model is less affected by non-stationary data; while the EEMD-PE-LSTM model is better than the EEMD-LSTM model. RMSE The relative improvement was 12.12%, E MAE The relative improvement is 12.23%, indicating that the EEMD-PE-LSTM model has higher prediction accuracy and can more accurately identify the spatiotemporal relationship of short-term ship traffic flow changes. From the perspective of operation time, the operation time of each model mainly depends on the number of components input to the model. Since the LSTM model only needs one component to complete the prediction, its operation time is the shortest; since the EEMD algorithm decomposes the most components, which are 11 IMF components and 1 residual, the subsequent model operation time is relatively long; and the EEMD-PE-LSTM model uses the PE algorithm to classify and reorganize the components decomposed by EEMD according to the complexity, and finally only obtains one high-frequency component, one low-frequency component and one residual, which greatly saves the model operation time.
[0159] Model <![CDATA[E RMSE ]]> <![CDATA[E MAE ]]> Operation time / s LSTM 6.2383 4.866 323 EEMD-LSTM 5.8605 4.6179 1592 EEMD-PE-LSTM 5.2266 4.1148 454
[0160] Table 2
[0161] Specifically, the entropy weighted superior and inferior solution distance method (Technique for Order Preference by Similarity to Ideal Solution, TOPSIS) is used to comprehensively evaluate Table 2, such as Figure 4 As shown, according to the method of steps S61 to S67, the number of evaluation models is determined to be 3, the evaluation index is 3, and the initial decision matrix is constructed; the index is subjected to attribute convergence processing to eliminate the influence of the dimension on the evaluation result, and the high-quality index is subjected to positive processing according to the maximum and minimum values of the column index, and the low-quality index is subjected to reverse processing; then the information entropy of each index is calculated, and the entropy weight corresponding to each model is determined according to the information entropy; a standardized decision matrix is constructed according to the entropy weight corresponding to each model; the best and worst models are determined according to the standardized decision matrix, where the best model is composed of the maximum value of each column in the decision matrix, and the worst model is composed of the maximum value of each column in the decision matrix, and the worst model is composed of the maximum value of each column in the decision matrix. The minimum value of each column in is calculated; the Manhattan distance between each model and the best and worst model is calculated; the comprehensive evaluation value of each model is calculated according to the Manhattan distance, and finally the optimal model ranking can be solved, as shown in Table 3. It can be seen from Table 3 that on the basis of comprehensively considering the two factors of model error evaluation index and model operation time, the comprehensive evaluation value of the EEMD-PE-LSTM model is the highest, indicating that among the three prediction models, the EEMD-PE-LSTM model has the best prediction performance and is most suitable for the field of short-term ship traffic flow prediction, because the model can ensure that the prediction accuracy is sufficiently accurate and can also shorten the model operation time.
[0162] Model <![CDATA[Optimal model distance s i + > <![CDATA[Worst model distance s i - > <![CDATA[Comprehensive evaluation value E i > Best model ranking LSTM 0.509 0.281 0.356 2 EEMD-LSTM 0.434 0.179 0.292 3 EEMD-PE-LSTM 0.029 0.568 0.951 1
[0163] Table 3
[0164] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A short-term ship traffic flow prediction method based on EEMD-PE-LSTM, characterized in that: The following steps are involved: S1. Establish ship traffic flow sequence x(t) based on LSTM model of deep learning theory; S2, using the EEMD algorithm to decompose the ship traffic flow sequence x(t) to obtain n intrinsic mode function components and a residual; The step S2 comprises the following steps: S21, adding m white noises n with standard normal distribution to the ship traffic flow sequence x(t) i (t), i = 1, 2, ..., m, and obtain m new time series X i (t), expressed as: X i (t)=x(t)+n i (t); S22, respectively, for the m new time series X i (t) Perform EMD decomposition, and obtain n intrinsic mode function components c for each sequence ij (t), i = 1, 2, ..., m; j = 1, 2, ..., n, and a residual r i (t), i = 1, 2, ..., m, expressed as: S23, for a total of m×n eigenmode function components c ij (t) Perform ensemble average operation to complete EEMD decomposition and obtain n intrinsic mode function components c i and a residual r, expressed as: S3, reconstructing the phase space of the n intrinsic mode function components by using the PE algorithm, obtaining the entropy value corresponding to each intrinsic mode function component, and reconstructing the n intrinsic mode function components into high-frequency components and low-frequency components according to the entropy values; S4, respectively inputting the high-frequency component, the low-frequency component and the residual into the LSTM model for prediction, obtaining a high-frequency component prediction value, a low-frequency component prediction value and a residual prediction value, and superimposing the three prediction values to obtain a final prediction result of short-term ship traffic flow; S5, performing error verification on the final prediction result to obtain an error index, calculating the operation time of each model, and performing a comprehensive evaluation on each model based on the error index and the operation time; The models for comprehensive evaluation in step S5 include: LSTM model, EEMD-LSTM model and EEMD-PE-LSTM model; the comprehensive evaluation uses the entropy weighted good and bad solution distance method to calculate the comprehensive evaluation value of each model, and the entropy weighted good and bad solution distance method includes the following calculation steps: S51, assuming that there are x evaluation models and y evaluation indicators, in this case, the evaluation model x=3, the evaluation indicator y=3, and the evaluation indicators include: RMSE 、E MAE And model operation time, the initial decision matrix constructed is: In formula (3): a ij is the model indicator result, i is the model number, and j is the indicator number; S52, performing attribute convergence processing on the indicator results, including: Positive processing of high-quality indicators: Reverse processing of low-quality indicators: In formulas (4) and (5): a max is the maximum value of the column index, a min The minimum value of the column index. S53, calculating the information entropy of the evaluation index according to the processed index results, and determining the entropy weight corresponding to each model; The information entropy calculation formula of the indicator is: In formula (6): The calculation formula of entropy weight corresponding to each model is: Formula (7): S54, constructing a standardized decision matrix according to the entropy weights corresponding to each model: In formula (8): c ij =w j ×b ij ; S55, determining the best and worst models according to the standardized decision matrix; the best model is composed of the maximum value of each column in the decision matrix C, and C + Indicates; the worst model consists of the minimum value of each column in the decision matrix C, denoted by C - Indicates that the expression is: C + =(maxc1,maxc2,…,maxc y ); C - =(minc1,minc2,…,minc y ); S56. Calculate the Manhattan distance s between each model and the best and worst model i + and i - , the expression is: S57, calculating the comprehensive evaluation value E of each model according to the Manhattan distance i , the expression is:
2. According to claim 1, a short-term ship traffic flow prediction method based on EEMD-PE-LSTM is characterized in that: The step S3 comprises the following steps: S31, for the n eigenmode function components c j Reconstruct the phase space and obtain the reconstruction matrix: In the matrix: λ is the delay time, m is the embedding dimension, and K is the number of reconstructed components; S32, arranging the reconstructed components of each row in the reconstructed matrix in ascending order according to the value of the elements. If the values of two elements in a reconstructed component are equal, arranging them in ascending order according to the value of the column index, a set of reconstructed components consisting of the column index of the position of each element in the component can be obtained, which is expressed as: S K ={j1,j2,…,j t }, where: j t (t=1,2,…,m) is the value of the column index; S33, calculate the probability P1, P2, ..., P of each reconstructed component appearing n , where n is less than or equal to the factorial of m, based on the fact that all probabilities sum to 1, the eigenmode function component c can be obtained i The entropy value definition expression is: S34, the eigenmode function component c i The entropy value is normalized and expressed as a decimal between 0 and 1 to obtain a quantifiable entropy value; S35. Calculate the size of the quantifiable and comparable entropy value through the PE algorithm, and reconstruct the n intrinsic mode function components into high and low frequency components.
3. The short-term ship traffic flow prediction method based on EEMD-PE-LSTM according to claim 1 is characterized in that: In step S4, the predicted values obtained after the high and low frequency components are input into the LSTM model are Y hf and Y lf , the predicted value obtained by inputting the residual r into the LSTM model is Y r , the final prediction result expression obtained by superimposing the predicted values is: Y=Y hf +Y lf +Y r 。 4. The short-term ship traffic flow prediction method based on EEMD-PE-LSTM according to claim 1 is characterized in that: The error verification in step S5 adopts a linear regression statistical method, which includes: a root mean square error method and a mean absolute error method; The expression of the root mean square error method is: The expression of the mean absolute error method is: In formulas (1) and (2), k is the number of samples of the predicted value, Y pre is the predicted value, Y real is the true value.
Citation Information
Patent Citations
Ship flow prediction method based on deep learning
CN111241466A
Method and system for predicting gas content in transformer oil based on joint model
US20210350050A1
