Short-term traffic flow prediction method and system based on CEEEMDAN-SVR-SMA

By decomposing the traffic flow data into high-frequency and low-frequency components and using the SMA optimization algorithm, the problem of large number of parameters and difficulty in capturing subtle fluctuations in the existing technology is solved, and a short-term traffic flow with few parameters, fast speed and high accuracy is realized. predict.

CN118865660APending Publication Date: 2024-10-29ZHEJIANG UNIV OF SCI & TECH
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410834373.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing short-term traffic flow prediction methods have a large number of parameters and are difficult to capture subtle fluctuations in historical traffic flow data, making it difficult to improve prediction accuracy.

Method used

A method based on CEEEMDAN-SVR-SMA is used to decompose the data into high-frequency and low-frequency components, build SVR prediction models respectively, and use the SMA optimization algorithm for training to improve prediction accuracy.

Benefits of technology

It achieves a small number of parameters and fast running speed, can effectively capture subtle fluctuations in traffic flow data, improves prediction accuracy, and further improves prediction accuracy through the SMA optimization algorithm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118865660A_ABST
    Figure CN118865660A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of traffic, and particularly relates to a short-term traffic flow prediction method and system based on CEEEMDAN-SVR-SMA. The method comprises the following steps: S1, preprocessing original data; s2, performing CEEMDAN decomposition on the preprocessed data to obtain an IMF series; independently listing the IMF1 in the IMF series as a high-frequency component, and reconstructing the remaining IMF as a low-frequency component; s3, dividing the high-frequency component and the low-frequency component into a data set, a verification set and a test set; s4, respectively constructing an SVR prediction model for the high-frequency component and the low-frequency component, and introducing an SMA optimization algorithm for training; s5, using the trained SVR prediction model to respectively predict the results of the high-frequency component and the low-frequency component; and S6, reconstructing the prediction results of the high-frequency component and the low-frequency component to obtain a final prediction result. The method has the advantages that the number of parameters is small, the operation speed is high, and fine fluctuation in traffic flow data can be well captured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of traffic technology, and in particular relates to a short-term traffic flow prediction method and system based on CEEEMDAN-SVR-SMA. Background Art

[0002] Short-term traffic flow prediction is a key issue in traffic management and planning. It helps to alleviate traffic congestion, effectively utilize resources, and optimize the operation of the transportation system. The core idea is to accurately predict future short-term traffic data based on historical data through specific analytical regression models, neural networks, etc.

[0003] At present, short-term traffic flow prediction methods can be divided into traditional methods and machine learning methods according to technical methods. Traditional methods include time series analysis, regression analysis and statistical models. Traditional learning methods are usually difficult to handle complex nonlinear relationships and non-stationary data, so they have limitations in dealing with the diversity and variability in modern traffic systems. Machine learning methods such as support vector regression (SVR), recurrent neural network (RNN), long short-term memory network (LSTM), gated recurrent unit (GRU) and spatiotemporal convolutional network (TCN) have more powerful modeling capabilities through more flexible pattern recognition and machine learning techniques. In order to further improve the accuracy of prediction, some researchers have also proposed a CNN-LSTM fusion model. Since then, more and more fusion models have been proposed. Although the prediction accuracy is good, it has led to a significant expansion of the number of network parameters. These additional parameters introduce a slight improvement in performance, which does not seem to be proportional to the increased model complexity. The historical traffic flow data curve is usually rough, and its subtle fluctuations make it difficult for machine learning methods to capture, resulting in difficulty in improving prediction accuracy.

[0004] Therefore, it is very necessary to design a short-term traffic flow prediction method and system based on CEEEMDAN-SVR-SMA, which has fewer parameters, faster running speed and can better capture subtle fluctuations in traffic flow data. Summary of the invention

[0005] The present invention aims to overcome the problem in the prior art that the existing short-term traffic flow prediction method has a large number of parameters and is difficult to capture subtle fluctuations in the historical data curve of traffic flow, resulting in difficulty in improving the prediction accuracy. A short-term traffic flow prediction method and system based on CEEEMDAN-SVR-SMA is provided, which has a small number of parameters, a fast running speed and can better capture subtle fluctuations in traffic flow data.

[0006] In order to achieve the above-mentioned object of the invention, the present invention adopts the following technical solutions:

[0007] The short-term traffic flow prediction method based on CEEEMDAN-SVR-SMA includes the following steps:

[0008] S1, data preprocessing: preprocessing the original data, including filling in missing values;

[0009] S2, data decomposition and reconstruction: the preprocessed data is decomposed by CEEMDAN to obtain the IMF series; IMF1 in the IMF series is listed separately as the high-frequency component, and the remaining IMFs are reconstructed into low-frequency components;

[0010] S3, data set division: divide both high-frequency components and low-frequency components into data sets, validation sets, and test sets;

[0011] S4, construct a short-term traffic flow prediction model: construct SVR prediction models for high-frequency components and low-frequency components respectively, and introduce SMA optimization algorithm for training;

[0012] S5, prediction results: Use the trained SVR prediction model to predict the results of high-frequency components and low-frequency components respectively;

[0013] S6, prediction result reconstruction: reconstruct the prediction results of the high-frequency component and the low-frequency component to obtain the final prediction result.

[0014] Preferably, in step S2, the high-frequency component contains the detail part of the data; and the low-frequency component contains the trend part of the data.

[0015] Preferably, in step S2, performing CEEMDAN decomposition on the preprocessed data to obtain an IMF series specifically includes the following steps:

[0016] S21, add white noise to the original signal x(t) to get x i (t):

[0017] x i (t) = x(t) + β0ω i (t) (1)

[0018] Where β0 is the white noise amplitude coefficient, ω i (t) is standard white noise;

[0019] S22, using empirical mode decomposition EMD for x i (t) performs the first group of decompositions and obtains the residual r1(t):

[0020]

[0021] r1(t)=x(t)-IMF1(t) (3)

[0022] Where IMF1(t) is the first-order intrinsic modal component, I is the number of tests, and IMF1 i (t) represents the first intrinsic mode function in the i-th decomposition step;

[0023] S23, use EMD to decompose IMF1(t) after adding adaptive noise to obtain the second-order modal component IMF2(t) and residual r2(t):

[0024] r1(t)+β1M1(ω i (t))=IMF2(t)+r2(t) (4)

[0025] Where M1 is the first-order natural mode component operator, and β1 is the coefficient used to adjust the influence of noise.

[0026] S24, repeat step S23 to calculate the k+1 order modal components and residuals until the residuals become a monotonic function and no further IMFs can be extracted.

[0027] Preferably, in step S4, constructing the SVR prediction model comprises the following steps:

[0028] S41, define the optimization problem:

[0029] The goal of SVR is to find an optimal hyperplane to minimize the prediction error; it is defined by the following formula, where Formula 5 is the minimization function and Formula 6 is the constraint condition:

[0030]

[0031] Where W is the weight vector, ξ i Represents the slack variable of the positive sample, which is used to measure the misclassification of the positive sample or the distance from the interval boundary. represents the slack variable of the negative class sample, which is used to measure the misclassification of the negative class sample or the distance from the interval boundary. C is the regularization parameter, ε is the tolerance parameter, and X i is the input feature vector, y i is the target value, b is the bias term, and N is the number of training samples;

[0032] S42, solve the optimization problem:

[0033] The optimization problem of step S41 is solved by quadratic programming, and finally the best hyperplane and support vector are found.

[0034] Preferably, in step S4, the SMA optimization algorithm comprises the following steps:

[0035] S43, Approach to Food:

[0036]

[0037] In the formula, vb∈[-a,a], the vc parameter gradually decreases from 1 to 0; t represents the current number of iterations; X b represents the individual position with the highest current odor concentration, that is, the position of the individual with the best current fitness; X represents the current position of the slime mold individual; X A and X B Represent two random slime mold positions respectively; W is the weight coefficient, r∈[0,1] is a random number related to p;

[0038] Among them, the update formula of p is as follows:

[0039] p=tanh|S(i)-DF| (8)

[0040] Where i∈1,2,3,…n represents the individual index in the slime mold population; S(i) represents the fitness of individual X; DF represents the best fitness obtained in all iterations;

[0041] The update formula of vb is as follows:

[0042] vb=[-a,a] (9)

[0043]

[0044] In the formula, max_t represents the maximum number of iterations;

[0045] The update formula of W is as follows:

[0046]

[0047] SmellIndex=sort(S) (12)

[0048] In the formula, r∈[0,1] is a random number, the same as in formula (7), bF represents the best fitness obtained in the current iteration; wF represents the worst fitness obtained in the current iteration; condition represents the individuals in the top half of S(i) in the population; sort(S) represents sorting the set S according to the fitness value. SmellIndex is a sequence of fitness values ​​arranged in ascending order, which is used when solving the minimum value problem.

[0049] Preferably, in step S4, the SMA optimization algorithm further comprises the following steps:

[0050] S44, Surrounding Food:

[0051] Depending on the quality of the food, the slime mold adjusts the corresponding search mode:

[0052] When the food concentration is higher than the set threshold, the corresponding area is emphasized; when the food concentration is lower than the set threshold, the weight of the area is reduced and other areas are explored instead; the formula for updating the slime mold position is as follows:

[0053]

[0054] Where UB and LB are the upper and lower bounds of the hyperparameter search, r∈[0,1] is a random number that is the same as in formula (7), rand∈[0,1] is a random value related to z, z is the control factor, and X * is the set of optimal solutions.

[0055] Preferably, in step S4, the SMA optimization algorithm further comprises the following steps:

[0056] S45, Captured Food:

[0057] Slime molds use biological oscillators to generate propagating waves that change cytoplasmic flow, which is used to find and select food resources in the environment, and adapt to different food concentrations by adjusting oscillation frequency and random exploration behavior.

[0058] The present invention also provides a short-term traffic flow prediction system based on CEEEMDAN-SVR-SMA, including:

[0059] Data preprocessing module, used to preprocess the original data, including filling in missing data values;

[0060] The data decomposition and reconstruction module is used to perform CEEMDAN decomposition on the preprocessed data to obtain the IMF series; IMF1 in the IMF series is listed separately as the high-frequency component, and the remaining IMFs are reconstructed into low-frequency components;

[0061] A data set partitioning module is used to partition both high-frequency components and low-frequency components into a data set, a validation set, and a test set;

[0062] The short-term traffic flow prediction model building module is used to build SVR prediction models for high-frequency components and low-frequency components respectively, and introduce the SMA optimization algorithm for training;

[0063] A prediction result module is used to use the trained SVR prediction model to predict the results of high-frequency components and low-frequency components respectively;

[0064] The prediction result reconstruction module is used to reconstruct the prediction results of the high-frequency component and the low-frequency component to obtain the final prediction result.

[0065] Compared with the prior art, the present invention has the following advantages: (1) the present invention decomposes historical data and divides them into high-frequency and low-frequency components, which enables the SVR model to better capture small fluctuations in the historical curve, thereby improving the accuracy of prediction; (2) when the present invention is used, only historical data needs to be input, and the model will decompose, train, predict and reconstruct the data, and the entire network has a small number of parameters and a fast running speed, which provides the possibility of implanting the network into an embedded system; (3) the present invention optimizes the hyperparameters of SVR through the SMA optimization algorithm, thereby further improving the accuracy of prediction. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 A flow chart of the short-term traffic flow prediction method based on CEEEMDAN-SVR-SMA in the present invention;

[0067] Figure 2 A schematic diagram of the fitting of the model prediction results and the actual values ​​in the present invention. DETAILED DESCRIPTION

[0068] In order to more clearly illustrate the embodiments of the present invention, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other accompanying drawings and other implementation methods can be obtained based on these accompanying drawings without creative work.

[0069] Example:

[0070] Data sources and evaluation indicators

[0071] The experimental data used a dataset of the entrance of a highway toll station, using the total vehicle flow field with a time interval of five minutes.

[0072] In the experiment, RNN, LSTM, GRU, TCN, SVR and SVR-SMA were used to compare with the CEEMDAN-SVR-SMA of the present invention in terms of mean square error (MSE), mean absolute deviation (AbsDEV), and coefficient of determination (R 2 ) are compared with the three evaluation indicators, and the formula is as follows:

[0073]

[0074] Where: y i is the actual value, is the predicted value, is the mean of the actual values, and n is the number of samples.

[0075] like Figure 1 As shown, the present invention provides a short-term traffic flow prediction method based on CEEEMDAN-SVR-SMA, comprising the following steps:

[0076] Step 1: Data preprocessing

[0077] Due to problems such as abnormal signal transmission and sensor abnormalities, there are missing values ​​in the data. The existence of missing values ​​will affect the accuracy of the prediction, so the random forest method is used to fill the missing data.

[0078] Step 2: Data decomposition and reconstruction

[0079] Decomposing and reconstructing the data by CEEMDAN can enable the model to better learn the small fluctuations and trends in historical data. The historical data is decomposed into multiple IMFs. Multiple experiments have shown that the prediction accuracy is best when IMF1 is divided into high-frequency components and the remaining IMFs are reconstructed into low-frequency components.

[0080] In step 2, the preprocessed data is decomposed by CEEMDAN to obtain the IMF series, which specifically includes the following steps;

[0081] S21, add white noise to the original signal x(t) to get x i (t):

[0082] x i (t) = x(t) + β0ω i (t) (1)

[0083] Where β0 is the white noise amplitude coefficient, ω i (t) is standard white noise;

[0084] S22, using empirical mode decomposition EMD for x i (t) performs the first group of decompositions and obtains the residual r1(t):

[0085]

[0086] r1(t)=x(t)-IMF1(t) (3)

[0087] Where IMF1(t) is the first-order intrinsic modal component, I is the number of tests, and IMF1 i (t) represents the first intrinsic mode function in the i-th decomposition step;

[0088] S23, use EMD to decompose IMF1(t) after adding adaptive noise to obtain the second-order modal component IMF2(t) and residual r2(t):

[0089] r1(t)+β1M1(ω i (t))=IMF2(t)+r2(t) (4)

[0090] Where M1 is the first-order intrinsic modal component operator, and β1 is the coefficient used to adjust the influence of noise;

[0091] S24, repeat step S23 to calculate the k+1 order modal components and residuals until the residuals become a monotonic function and no further IMFs can be extracted.

[0092] Step 3: Dataset division

[0093] Dividing the data set helps to correctly evaluate the performance of the model and is a key step in building a robust and high-performance machine learning model. The data is divided into three parts: training set, validation set, and test set, with a division ratio of 6:2:2.

[0094] Step 4: Build a short-term traffic flow prediction model

[0095] SVR-SMA is used to build prediction models for high-frequency and low-frequency models respectively. Sliding windows are used in the model. The appropriate window size can balance the flexibility and computational cost of the model and ensure that the model can capture key time series features. In this experiment, the sliding window size is set to 12, that is, 12 data are used each time to predict the next data. The radial basis function kernel (RBF kernel) is used in both the SVR high-frequency and low-frequency models. The main feature of the RBF kernel is that it can model nonlinear relationships, allowing SVR to handle complex decision boundaries. The SMA algorithm is used to optimize the regularization parameter (C), kernel function parameter (gamma), and tolerance parameter (epsilon) of the high-frequency and low-frequency models to obtain the best SVR model performance. The population size in the SMA algorithm is 5, and the maximum number of iterations is 5. The optimal hyperparameter combination after optimization is shown in Table 1:

[0096] Table 1 Optimal hyperparameter combination data table

[0097] parameter high frequency Low Frequency C 0.01 4.24 gamma 0.409 0.061 epsilon 0 0.072

[0098] The SVR prediction in step 4 includes the following steps:

[0099] Step 1: Define the optimization problem

[0100] The goal of SVR is to find an optimal hyperplane to minimize the prediction error. This can be defined by the following optimization problem, where Equation 5 is the minimization function and Equation 6 is the constraint.

[0101]

[0102] Where W is the weight vector, ξ i Represents the slack variable of the positive sample, which is used to measure the misclassification of the positive sample or the distance from the interval boundary. represents the slack variable of the negative class sample, which is used to measure the misclassification of the negative class sample or the distance from the interval boundary. C is the regularization parameter, ε is the tolerance parameter, and X i is the input feature vector, y i is the target value, b is the bias term, and N is the number of training samples;

[0103] Step 2: Solve the optimization problem

[0104] The above optimization problem is solved by usually quadratic programming to find the best hyperplane and support vectors.

[0105] The SMA optimization algorithm in step 4 includes the following steps:

[0106] Step 1: Approach the food

[0107]

[0108] Where: vb∈[-a,a], vc parameter gradually decreases from 1 to 0; t represents the current number of iterations; X b represents the individual position with the highest current odor concentration, that is, the position of the individual with the best current fitness; X represents the current position of the slime mold individual; X A and X B Represent two random slime mold positions respectively; W is the weight coefficient, r∈[0,1] is a random number related to p;

[0109] The update formula of p is as follows:

[0110] p=tanh|S(i)-DF|(8)

[0111] Where: i∈1,2,3,…n, represents the individual index in the slime mold population; S(i) represents the fitness of individual X; DF represents the best fitness obtained in all iterations.

[0112] The update formula of vb is as follows:

[0113] vb=[-a,a] (9)

[0114]

[0115] Where: max_t represents the maximum number of iterations;

[0116] The update formula of W is as follows:

[0117]

[0118] SmellIndex=sort(S)(12)

[0119] Where: r∈[0,1] is a random number, the same as in formula (7), bF represents the best fitness obtained in the current iteration; wF represents the worst fitness obtained in the current iteration; condition represents the individuals in the top half of the population that S(i) ranks in; sort(S) represents sorting the set S according to the fitness value. SmellIndex is a sequence of fitness values ​​arranged in ascending order, which is used when solving the minimum value problem.

[0120] Step 2: Surround the food

[0121] Depending on the quality of the food, the slime mold can adjust its search pattern. When the food concentration is high, it will pay more attention to that area; when the food concentration is low, it will reduce the weight of that area and explore other areas instead. The mathematical formula for updating the position of the slime mold is as follows:

[0122]

[0123] Where: UB and LB are the upper and lower bounds of the hyperparameter search, r∈[0,1] is a random number that is the same as in formula (7), rand∈[0,1] is a random value related to z, z is the control factor, and X * is the set of optimal solutions.

[0124] Step 3: Capture the food

[0125] Slime mold uses biological oscillators to generate propagation waves to change cytoplasmic flow to find and select food resources in the environment. It adapts to different food concentrations by adjusting oscillation frequency and random exploration behavior, allowing cells to approach high-quality food sources more quickly and retain some resources for exploring other areas. The oscillation and synergy of parameters simulate the selection behavior of slime mold, enabling it to find higher-quality food sources and avoid falling into local optimal solutions. Slime mold faces various limitations in the process of propagation, but these limitations also provide opportunities for it, increasing the possibility of finding high-quality food.

[0126] Step 5: Make predictions

[0127] The test set data is used to verify the model training results and obtain the prediction results of high and low frequency components respectively.

[0128] Step 6: Reconstruct prediction results

[0129] The high and low frequency components are reconstructed to obtain the final prediction result.

[0130] CEEMDAN is an improvement on empirical mode decomposition (EMD) and ensemble empirical mode decomposition (EEMD). It improves the effect of signal decomposition, especially in noisy environments and when better frequency component extraction is required. It can separate the details and trends in historical data into multiple IMFs, allowing deep models to better capture the details and trend changes of historical curves.

[0131] As a machine learning method, SVR has the advantages of fast training speed, fewer parameters and applicability to large-scale data compared to methods such as RNN, LSTM, GRU and TCN. In addition, under the characteristics of high-noise data, since deep models are sensitive to noise, SVR has a certain degree of robustness and therefore has better prediction accuracy.

[0132] In addition, in order to make SVR obtain the best prediction results. The present invention introduces the SMA optimization algorithm, which imitates the biological characteristics of slime mold foraging, applies the adaptive search behavior of slime mold to the optimization algorithm, and makes its hyperparameter search have powerful global search ability, adaptability, flexibility, balanced exploration and utilization, and multi-objective optimization ability. Compared with other commonly used optimization algorithms, such as the marine predator algorithm (MPA) and the salp optimization algorithm (SSA), the SMA algorithm has more superior accuracy and stability.

[0133] Experimental results analysis

[0134] Among the evaluation indicators, the smaller the MSE and AbsDEV, the better the prediction effect. 2 The closer it is to 1, the higher the prediction accuracy. The experimental visualization results are as follows Figure 2 , the evaluation indicators are shown in Table 2.

[0135] Table 2 Comparison data of CEEMDAN-SVR-SMA and other models

[0136]

[0137] It can be seen from Table 2 that compared with the deep neural network, even with the addition of the SMA optimization process and the process of separate prediction of high and low frequency components, the training and prediction speed of SVR is faster, and its prediction accuracy does not decrease, which reflects the superiority of the SVR network on the traffic flow dataset. 2 The above indicators are the best, among which MSE is reduced by 182.016 on average, AbsDEV is reduced by 2.202 on average, and R 2 The average increase was 3.5%.

[0138] After adding the SMA optimization algorithm to the SVR model, its MSE and AbsDEV decreased significantly. 2The MSE and AbsDEV of the CEEMDAN-SVR-SMA model after decomposition of the original signal decreased by 63.503 and 1.339 respectively compared with the SVR-SMA model without decomposition, indicating that decomposition and prediction can significantly improve the prediction accuracy. Figure 2 It can also be seen that the prediction curve obtained by the present invention is close to the true value.

[0139] In summary, the traffic prediction effect of CEEMDAN-SVR-SMA is closer to the real data.

[0140] The present invention also provides a short-term traffic flow prediction system based on CEEEMDAN-SVR-SMA, including:

[0141] Data preprocessing module, used to preprocess the original data, including filling in missing data values;

[0142] The data decomposition and reconstruction module is used to perform CEEMDAN decomposition on the preprocessed data to obtain the IMF series; IMF1 in the IMF series is listed separately as the high-frequency component, and the remaining IMFs are reconstructed into low-frequency components;

[0143] A data set partitioning module is used to partition both high-frequency components and low-frequency components into a data set, a validation set, and a test set;

[0144] The short-term traffic flow prediction model building module is used to build SVR prediction models for high-frequency components and low-frequency components respectively, and introduce the SMA optimization algorithm for training;

[0145] A prediction result module is used to use the trained SVR prediction model to predict the results of high-frequency components and low-frequency components respectively;

[0146] The prediction result reconstruction module is used to reconstruct the prediction results of the high-frequency component and the low-frequency component to obtain the final prediction result.

[0147] The present invention decomposes historical data and divides them into high-frequency and low-frequency components, so that the SVR model can better capture the small fluctuations in the historical curve, thereby improving the accuracy of the prediction; when using the present invention, only historical data needs to be input, and the model will decompose, train, predict and reconstruct it, and the entire network has a small number of parameters and a fast running speed, which provides the possibility of implanting it into an embedded system; the present invention optimizes the hyperparameters of SVR through the SMA optimization algorithm, thereby further improving the accuracy of the prediction.

[0148] The above description is only a detailed description of the preferred embodiments and principles of the present invention. For ordinary technicians in this field, according to the ideas provided by the present invention, there will be changes in the specific implementation methods, and these changes should also be regarded as the protection scope of the present invention.

Claims

1. The short-term traffic flow prediction method based on CEEEMDAN-SVR-SMA is characterized by: The steps include: S1, data preprocessing: preprocessing the original data, including filling in missing values; S2, data decomposition and reconstruction: the preprocessed data is decomposed by CEEMDAN to obtain the IMF series; IMF1 in the IMF series is listed separately as the high-frequency component, and the remaining IMFs are reconstructed into low-frequency components; S3, data set division: divide both high-frequency components and low-frequency components into data sets, validation sets, and test sets; S4, construct a short-term traffic flow prediction model: construct SVR prediction models for high-frequency components and low-frequency components respectively, and introduce SMA optimization algorithm for training; S5, prediction results: Use the trained SVR prediction model to predict the results of high-frequency components and low-frequency components respectively; S6, prediction result reconstruction: reconstruct the prediction results of the high-frequency component and the low-frequency component to obtain the final prediction result.

2. The short-term traffic flow prediction method based on CEEEMDAN-SVR-SMA according to claim 1 is characterized in that: In step S2, the high-frequency component contains the detail part of the data; and the low-frequency component contains the trend part of the data.

3. The short-term traffic flow prediction method based on CEEEMDAN-SVR-SMA according to claim 1 is characterized in that: In step S2, the pre-processed data is decomposed by CEEMDAN to obtain an intrinsic mode function (IMF), which specifically includes the following steps: S21, add white noise to the original signal x(t) to get x i (t): x i (t)=x(t)+β0ω i (t) (1) Where β0 is the white noise amplitude coefficient, ω i (t) is standard white noise; S22, using empirical mode decomposition EMD for x i (t) performs the first group of decompositions and obtains the residual r1(t): r1(t)=x(t)-IMF1(t) (3) Where IMF1(t) is the first-order intrinsic modal component, I is the number of tests, and IMF1 i (t) represents the first intrinsic mode function in the i-th decomposition step; S23, use EMD to decompose IMF1(t) after adding adaptive noise to obtain the second-order modal component IMF2(t) and residual r2(t): r1(t)+β1M1(ω i (t))=IMF2(t)+r2(t) (4) Where M1 is the first-order intrinsic modal component operator, and β1 is the coefficient used to adjust the influence of noise; S24, repeat step S23 to calculate the k+1 order modal components and residuals until the residuals become a monotonic function and no further IMFs can be extracted.

4. The short-term traffic flow prediction method based on CEEEMDAN-SVR-SMA according to claim 3 is characterized in that: In step S4, constructing an SVR prediction model includes the following steps: S41, define the optimization problem: The goal of SVR is to find an optimal hyperplane to minimize the prediction error; it is defined by the following formula, where Formula 5 is the minimization function and Formula 6 is the constraint condition: Where W is the weight vector, ξ i Represents the slack variable of the positive sample, which is used to measure the misclassification of the positive sample or the distance from the interval boundary; represents the slack variable of negative samples, which is used to measure the misclassification of negative samples or the distance from the interval boundary; C is the regularization parameter, ε is the tolerance parameter, and X i is the input feature vector, y i is the target value, b is the bias term, and N is the number of training samples; S42, solve the optimization problem: The optimization problem of step S41 is solved by quadratic programming, and finally the best hyperplane and support vector are found.

5. The short-term traffic flow prediction method based on CEEEMDAN-SVR-SMA according to claim 4 is characterized in that: In step S4, the SMA optimization algorithm includes the following steps: S43, Approach to Food: In the formula, vb∈[-a,a], the vc parameter gradually decreases from 1 to 0; t represents the current number of iterations; X b represents the individual position with the highest current odor concentration, that is, the position of the individual with the best current fitness; X represents the current position of the slime mold individual; X A and X B Represent two random slime mold positions respectively; W is the weight coefficient; r∈[0,1] is a random number and is related to the parameter p; Among them, the update formula of parameter p is as follows: p=tanh|S(i)-DF| (8) Where i∈1,2,3,…n represents the individual index in the slime mold population; S(i) represents the fitness of individual X; DF represents the best fitness obtained in all iterations; The update formula of vb is as follows: vb=[-a,a] (9) In the formula, max_t represents the maximum number of iterations; The update formula of W is as follows: SmellIndex=sort(S) (12) Where r∈[0,1] is a random number, bF represents the best fitness obtained in the current iteration; wF represents the worst fitness obtained in the current iteration; condition represents the individuals in the top half of the population that are S(i); sort(S) represents sorting the set S according to the fitness value; SmellIndex is a sequence of fitness values ​​arranged in ascending order, which is used to solve the minimum value problem.

6. The short-term traffic flow prediction method based on CEEEMDAN-SVR-SMA according to claim 5 is characterized in that: In step S4, the SMA optimization algorithm further includes the following steps: S44, Surrounding Food: Depending on the quality of the food, the slime mold adjusts the corresponding search mode: When the food concentration is higher than the set threshold, the corresponding area is emphasized; when the food concentration is lower than the set threshold, the weight of the area is reduced and other areas are explored instead; the formula for updating the slime mold position is as follows: Where UB and LB are the upper and lower bounds of the hyperparameter search; r∈[0,1] is a random number; rand∈[0,1] is a random value and is related to z; z is the control factor; X * is the set of optimal solutions.

7. The short-term traffic flow prediction method based on CEEEMDAN-SVR-SMA according to claim 6 is characterized in that: In step S4, the SMA optimization algorithm further includes the following steps: S45, Captured Food: Slime molds use biological oscillators to generate propagating waves that change cytoplasmic flow, which is used to find and select food resources in the environment, and adapt to different food concentrations by adjusting oscillation frequency and random exploration behavior.

8. A short-term traffic flow prediction system based on CEEEMDAN-SVR-SMA, used to implement the short-term traffic flow prediction method based on CEEEMDAN-SVR-SMA according to any one of claims 1 to 7, characterized in that: The short-term traffic flow prediction system based on CEEEMDAN-SVR-SMA includes: Data preprocessing module, used to preprocess the original data, including filling in missing data values; The data decomposition and reconstruction module is used to perform CEEMDAN decomposition on the preprocessed data to obtain the IMF series; IMF1 in the IMF series is listed separately as the high-frequency component, and the remaining IMFs are reconstructed into low-frequency components; A data set partitioning module is used to partition both high-frequency components and low-frequency components into a data set, a validation set, and a test set; The short-term traffic flow prediction model building module is used to build SVR prediction models for high-frequency components and low-frequency components respectively, and introduce the SMA optimization algorithm for training; A prediction result module is used to use the trained SVR prediction model to predict the results of high-frequency components and low-frequency components respectively; The prediction result reconstruction module is used to reconstruct the prediction results of the high-frequency component and the low-frequency component to obtain the final prediction result.

Citation Information

Cited By

  • Expressway short-time traffic flow prediction method and device based on support vector regression

    CN119229658A

  • Intelligent traffic flow real-time prediction method

    CN120148252A