Traffic flow prediction method based on VMD-TSMix-Rtime

By combining VMD and TSMixer models, the optimization algorithm decomposes and predicts traffic flow data, solving the prediction accuracy problems caused by data non-stationarity and multi-scale characteristics in traditional methods, and achieving more efficient traffic flow prediction.

CN118675322APending Publication Date: 2024-09-20CHANGZHOU HAOMING INFORMATION TECH CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410722011.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Traditional traffic flow prediction methods ignore the non-stationary and multi-scale characteristics of the data, resulting in low prediction accuracy.

Method used

Combining variational mode decomposition (VMD) and the TSMixer model, the model parameters are adjusted through the optimization algorithm, the traffic flow time series is decomposed into multiple IMF subsequences with different center frequencies, and the TSMixer model is used to predict these subsequences, and finally through The reconstructed traffic flow prediction value is obtained.

Benefits of technology

It improves the accuracy and efficiency of traffic flow prediction, effectively captures the multi-scale characteristics of traffic data, and improves the scientificity and effectiveness of traffic management and planning strategies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118675322A
    Figure CN118675322A
Patent Text Reader

Abstract

The invention relates to the field of traffic flow prediction, and specifically relates to a traffic flow prediction method based on VMD-TSMix-Rtime. The method comprises the following steps: carrying out normalization processing on an original traffic flow time sequence; optimizing parameters of the VMD algorithm by using an RIME algorithm; decomposing the normalized traffic flow time sequence into m IMF subsequences with different center frequencies through an optimized VMD algorithm; adding and reconstructing the IMF subsequences with similar complexity, and remaining n feature enhanced subsequences; respectively establishing a TStool model for each feature enhanced sub-sequence, and optimizing parameters of each TStool model by using an RIME algorithm; predicting the sub-sequences of which the corresponding features are enhanced by utilizing the optimized TSMIXer model; and adding and reconstructing each prediction structure to obtain a final traffic flow prediction value. According to the method, the decomposition capability of the VMD is combined with the prediction advantage of the TSMIX model, the algorithm and model parameters are adjusted through the optimization algorithm, and the accuracy and efficiency of traffic flow prediction are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of traffic flow prediction, and in particular to a traffic flow prediction method based on VMD-TSMixer-Rime. Background Art

[0002] In the field of traffic management and planning, accurate traffic flow prediction is crucial. However, traditional prediction methods have some shortcomings, mainly because they ignore the non-stationary and multi-scale characteristics of traffic flow data, so the prediction accuracy is not high.

[0003] Therefore, there is an urgent need to design a new method that can accurately predict traffic flow. Summary of the invention

[0004] The technical problem to be solved by the present invention is to overcome the defects of the prior art and provide a traffic flow prediction method based on VMD-TSMixer-Rime, which combines the decomposition capability of VMD with the prediction advantage of the TSMixer model, adjusts the algorithm and model parameters through the optimization algorithm, and improves the accuracy and efficiency of traffic flow prediction.

[0005] In order to solve the above technical problems, the technical solution of the present invention is: a traffic flow prediction method based on VMD-TSMixer-Rime, the method comprising:

[0006] Normalize the original traffic flow time series;

[0007] Use the RIME algorithm to optimize the parameters of the VMD algorithm;

[0008] The normalized traffic flow time series is decomposed into m IMF subsequences with different central frequencies through the optimized VMD algorithm;

[0009] Reconstruct the IMF subsequences with similar complexity by adding them together, leaving n feature-enhanced subsequences, n≤m;

[0010] A TSMixer model is established for each feature-enhanced subsequence, and the parameters of each TSMixer model are optimized using the RIME algorithm;

[0011] Use the optimized TSMixer model to predict the subsequences with corresponding feature enhancements;

[0012] Each prediction structure is added and reconstructed to obtain the final traffic flow prediction value.

[0013] Furthermore, the RIME algorithm is used to optimize the parameters of the VMD algorithm; specifically:

[0014] Step A, define the parameter search space of the VMD algorithm. The parameters of the VMD algorithm include the damping coefficient α, the number of decomposition layers M and the time constant τ. The parameter sampling process is:

[0015] (α,τ,M)~Uniform(α min ,α max )×Uniform(τ min ,τ max )×Uniform(M min ,M max )

[0016] Among them, α min , α max is the minimum and maximum value of the damping coefficient, τ min , τ max is the minimum and maximum value of the time constant, M min , M max is the maximum and minimum value of the decomposition layer; Uniform() represents uniform distribution, and × represents the union of uniform distribution, that is, the joint sampling space of parameters;

[0017] Step B, use the sampled parameters α, τ, M to train the VMD algorithm. The goal of VMD is to decompose the input signal X(t) into m IMFs. The optimization problem in the decomposition process is expressed as:

[0018]

[0019] Among them, A j (t) is the magnitude of the jth IMF, ω j is the center frequency, φ j is the phase, L(A j ) is a regular term used to control the smoothness of IMF; t0 represents the starting time point of the time series; t N Represents the index of the last time point in the time series data, that is, the end time of the time series;

[0020] Step C, use TSMixer to predict IMFs and calculate the performance index P(α,τ,M) of the prediction results;

[0021] Step D, use the performance indicator P to update the meta-learning model f, the meta-learning model f is defined as:

[0022]

[0023] Where η is the learning rate, represents the gradient of VMD parameters, f old (α,τ,M) is the meta-learning model f before update, f new(α,τ,M) is the updated meta-learning model f;

[0024] Step E, using a reinforcement learning algorithm to optimize parameters based on the predictions of the meta-learning model f and the actual performance F;

[0025] Step F, repeat steps A to E until the stopping condition is met. Each iteration adjusts the parameter sampling strategy according to the new performance indicator P and the prediction of the meta-learning model f;

[0026] Step G, after the iteration, select the parameter (α * ,τ * ,M * ) as the final parameter setting of the VMD algorithm.

[0027] Furthermore, the normalized traffic flow time series is decomposed into m IMF subsequences with different center frequencies by using the optimized VMD algorithm; the decomposition method is:

[0028]

[0029] Among them, X(t) is the original traffic flow time series, A j (t) is the amplitude of the jth subsequence, t is each time point in the time series data, ω j is the center frequency, φ j It's the phase.

[0030] Furthermore, the RIME algorithm is used to optimize the parameters of each TSMixer model; specifically:

[0031] Step a, define the hyperparameter search space of the TSMixer model, the hyperparameters include learning rate, size of hidden layer, number of layers, and type of activation function;

[0032] Step b, randomly sampling in the hyperparameter space to generate a set of hyperparameters;

[0033] Step c, use the sampled hyperparameter θ to train the TSMixer model and calculate the performance index P(θ) on the validation set;

[0034] Step d: Use the meta-learning model to predict the expected performance Q(θ) given the hyperparameter θ. The meta-learning model is updated as follows: in

[0035] η is the learning rate, P(θ) is the prior distribution of the hyperparameters; f t is the meta-learning model before updating, f t+1 is the updated meta-learning model;

[0036] Step e: Based on the prediction and actual performance of the meta-learning model, the hyperparameter sampling strategy is adjusted using the reinforcement learning algorithm; specifically:

[0037] For each explored hyperparameter configuration θ, calculate a reward signal R(θ): R(θ) = w1·(P(θ)-Q(θ))+w2·Exploration Term, where w1 and w2 are weight coefficients, Q(θ) is the meta-learning model’s prediction of the performance P(θ), and Exploration Term is a term that encourages exploration.

[0038] In step f, the sampling distribution of the hyperparameters is updated according to the reward signal using the softmax function. The update method is defined as: Where w3 is a hyperparameter that controls the intensity of the sampling distribution change, Θ is the set of all possible hyperparameter configurations;

[0039] Step g, use the updated sampling distribution p'(θ) to guide the next step of hyperparameter sampling;

[0040] Step h, repeating steps b to g until a predetermined number of iterations is reached or the performance is no longer significantly improved;

[0041] In step i, after the iteration, the hyperparameters with the best performance are selected as the final hyperparameter configuration.

[0042] Furthermore, the optimized TSMixer model is used to predict the subsequences with corresponding feature enhancements; specifically:

[0043] For low-complexity subsequences, the TSMixer model is expressed as:

[0044]

[0045] For high-complexity subsequences, the TSMixer model is expressed as:

[0046]

[0047] in, and are the predicted values ​​of low complexity and high complexity subsequences, respectively, MLP low and MLP high They are multilayer perceptrons for low-complexity and high-complexity subsequences, respectively.

[0048] Furthermore, each prediction structure is added and reconstructed to obtain the final traffic flow prediction value; specifically:

[0049]

[0050] Where n is the total number of reconstructed subsequences, W j is the weight of the j-th subsequence.

[0051] Furthermore, the strategy for screening IMF subsequences of similar complexity is:

[0052] The sample entropies of m IMF subsequences are calculated respectively, and then sorted according to size. In the continuous sample entropy, if the difference between the maximum and minimum values ​​is less than the threshold, then the IMF subsequences corresponding to the continuous sample entropy are IMF subsequences with similar complexity; the calculation formula of the sample entropy is:

[0053]

[0054] Where N is the total number of points in the time series, C k (i) is the conditional probability of data point i under the template length k, l is the template length used when calculating the sample entropy, which is a fixed value. It considers the number of consecutive data points in the time series to generate the template vector of the time series.

[0055] After adopting the above technical scheme, the invention integrates variational mode decomposition VMD and TSMixer model. VMD technology can effectively decompose complex non-stationary signals into multiple intrinsic mode functions IMF, each IMF corresponds to a different frequency component, so as to better capture the multi-scale characteristics of traffic flow data; TSMixer model combines multiple prediction technologies, has high prediction accuracy and robustness, and performs well in the field of time series prediction. The present invention innovatively combines the decomposition capability of VMD with the prediction advantages of TSMixer model, and adjusts the model parameters through optimization algorithm to improve the accuracy and efficiency of traffic flow prediction. This innovative method is of great significance for solving the challenges brought by the non-stationary and multi-scale characteristics of traffic data, and helps to improve traffic management and planning strategies, and improve the scientificity and effectiveness of transportation infrastructure planning. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 It is a flow chart of the traffic flow prediction method based on VMD-TSMixer-Rime of the present invention;

[0057] Figure 2 Schematic diagram of VMD decomposition in an embodiment of the present invention;

[0058] Figure 3 It is a schematic diagram of IMF subsequences after addition and reconstruction in an embodiment of the present invention;

[0059] Figure 4 It is a diagram of the prediction results of the embodiments of the present invention and various comparative examples; wherein,

[0060] Figure 4 (a) is the prediction result diagram of comparative example 1; Figure 4 (b) is the prediction result diagram of comparative example 2; Figure 4 (c) is the prediction result diagram of comparative example 3; Figure 4 (d) is the prediction result diagram of the embodiment. DETAILED DESCRIPTION

[0061] In order to make the contents of the present invention more clearly understood, the present invention is further described in detail below based on specific embodiments in conjunction with the accompanying drawings.

[0062] Example

[0063] like Figure 1 As shown, a traffic flow prediction method based on VMD-TSMixer-Rime, the method includes:

[0064] Step S1, normalize the original traffic flow time series to eliminate the offset and scale differences in the data;

[0065] Step S2, using the RIME algorithm to optimize the parameters of the VMD algorithm to obtain the best decomposition effect;

[0066] Step S3, decompose the normalized traffic flow time series into m IMF subsequences with different center frequencies through the optimized VMD algorithm, as follows: Figure 2 As shown, m is 6;

[0067] Step S4, reconstruct the IMF subsequences with similar complexity by adding them together, leaving n feature-enhanced subsequences, as follows: Figure 3 As shown, n is 3;

[0068] Step S5, establishing a TSMixer model for each feature-enhanced subsequence, and using the RIME algorithm to optimize the parameters of each TSMixer model to improve the prediction performance of the model;

[0069] Step S6, using the optimized TSMixer model to predict the subsequences with corresponding feature enhancement;

[0070] Step S7, reconstruct each prediction structure by adding it up to obtain the final traffic flow prediction value, as shown in the following figure: Figure 4 (d) as shown.

[0071] Wherein, step S2 is specifically as follows:

[0072] Step S21, define the parameter search space of the VMD algorithm. The parameters of the VMD algorithm include the damping coefficient α, the number of decomposition levels M and the time constant τ. The parameter sampling process is:

[0073] (α,τ,M)~Uniform(α min ,α max )×Uniform(τ min ,τ max )×Uniform(M min ,M max )

[0074] Among them, α min , α max is the minimum and maximum value of the damping coefficient, τ min , τ max is the minimum and maximum value of the time constant, M min , M max is the maximum and minimum value of the decomposition layer; Uniform() represents uniform distribution, and × represents the union of uniform distribution, that is, the joint sampling space of parameters;

[0075] Step S22, using the sampled parameters α, τ, M to train the VMD algorithm. The goal of VMD is to decompose the input signal X(t) into m IMFs. The optimization problem in the decomposition process is expressed as:

[0076]

[0077] Among them, A j (t) is the magnitude of the jth IMF, ω j is the center frequency, φ j is the phase, L(A j ) is a regular term used to control the smoothness of IMF; t0 represents the starting time point of the time series; t N Represents the index of the last time point in the time series data, that is, the end time of the time series;

[0078] Step S23, the performance of the IMFs obtained by VMD decomposition is evaluated. This usually involves using TSMixer to predict the IMFs and calculate the performance index P of the prediction results, such as the mean square error where y n is the actual value, is the model prediction value, N is the number of samples;

[0079] Step S24, using the performance indicator P to update the meta-learning model f, the meta-learning model is a function approximator, such as Gaussian process regression or neural network, which learns how to predict the performance indicator based on the VMD parameters. The meta-learning model f is defined as:

[0080] Where η is the learning rate, represents the gradient of VMD parameters, fold (α,τ,M) is the meta-learning model f before update, f new (α,τ,M) is the updated meta-learning model f;

[0081] Step S25, based on the prediction of the meta-learning model f and the actual performance F, the reinforcement learning algorithm is used to optimize the parameters by calculating an optimization target U, which is defined as follows:

[0082] U(α,τ,M)=∈·P(α,τ,M)-(1-∈)·f(α,τ,M)

[0083] Among them, ∈ is a coefficient used to balance exploration and exploitation.

[0084] Step F, repeat steps A to E until the stopping condition is met. Each iteration adjusts the parameter sampling strategy according to the new performance indicator P and the prediction of the meta-learning model f;

[0085] Step G, after the iteration, select the parameter (α * ,τ * ,M * ) as the final parameter setting of the VMD algorithm.

[0086] The decomposition method in step S3 is:

[0087]

[0088] Among them, X(t) is the original traffic flow time series, A j (t) is the amplitude of the jth subsequence, t is each time point in the time series data, ω j is the center frequency, φ j It's the phase.

[0089] In step S4, the strategy for screening IMF subsequences with similar complexity is:

[0090] The sample entropies of m IMF subsequences are calculated respectively, and then sorted according to size. In the continuous sample entropy, if the difference between the maximum and minimum values ​​is less than the threshold, then the IMF subsequences corresponding to the continuous sample entropy are IMF subsequences with similar complexity; the calculation formula of the sample entropy is:

[0091]

[0092] Where N is the total number of points in the time series, C k (i) is the conditional probability of data point i under the template length k, l is the template length used when calculating the sample entropy, which is a fixed value. It considers the number of consecutive data points in the time series to generate the template vector of the time series.

[0093] The IMF subsequences of similar complexity are reconstructed by adding them together, which can not only reflect the complexity and non-periodicity of the time series, but also retain the corresponding characteristic information under the premise of eliminating certain noises.

[0094] In step S5, the parameters of each TSMixer model are optimized using the RIME algorithm; specifically:

[0095] Step S51, defining the hyperparameter search space of the TSMixer model, where the hyperparameters include learning rate, size of hidden layer, number of layers, and type of activation function;

[0096] Step S52, randomly sampling in the hyperparameter space to generate a set of hyperparameters for training the TSMixer model;

[0097] Step S53, using the sampled hyperparameter θ to train the TSMixer model, and calculating the performance index P(θ) on the validation set; Where N val is the number of samples in the validation set, y i is the true value of sample i, is the predicted value of the model trained with the hyperparameters θ.

[0098] Step S54: Use the meta-learning model to predict the expected performance Q(θ) under a given hyperparameter θ. The meta-learning model is updated as follows: in

[0099] η is the learning rate, P(θ) is the prior distribution of the hyperparameters; f t is the meta-learning model before updating, f t+1 is the updated meta-learning model;

[0100] Step S55, using a reinforcement learning algorithm to adjust the hyperparameter sampling strategy based on the prediction and actual performance of the meta-learning model; specifically:

[0101] For each explored hyperparameter configuration θ, calculate a reward signal R(θ): R(θ) = w1·(P(θ)-Q(θ))+w2·Exploration Term, where w1 and w2 are weight coefficients, Q(θ) is the meta-learning model’s prediction of the performance P(θ), and Exploration Term is a term that encourages exploration.

[0102] Step S56, using the softmax function to update the sampling distribution of the hyperparameters according to the reward signal, the update method is defined as: Where w3 is a hyperparameter that controls the intensity of the sampling distribution change, Θ is the set of all possible hyperparameter configurations;

[0103] Step S57, using the updated sampling distribution p'(θ) to guide the next step of hyperparameter sampling;

[0104] Step S58, repeating steps S52 to S57 until a predetermined number of iterations is reached or the performance is no longer significantly improved;

[0105] Step S59, after the iteration is completed, the hyperparameter with the best performance is selected as the final hyperparameter configuration.

[0106] Among them, in step S6, the optimized TSMixer model is used to predict the subsequence with corresponding feature enhancement; specifically:

[0107] For low-complexity subsequences, the TSMixer model is expressed as:

[0108]

[0109] For high-complexity subsequences, the TSMixer model is expressed as:

[0110]

[0111] in, and are the predicted values ​​of low complexity and high complexity subsequences, respectively, MLP low and MLP high They are multi-layer perceptrons for low-complexity and high-complexity subsequences respectively. low It has fewer hidden layers and neurons because the data pattern of low-complexity subsequences is relatively simple and does not require a too complex model to capture its characteristics. MLP for high-complexity subsequences high Having more hidden layers and neurons, and adopting more sophisticated techniques such as residual connections or regularization techniques, can capture complex data patterns of high-complexity subsequences.

[0112] In step S7, each prediction structure is added and reconstructed to obtain the final traffic flow prediction value; specifically:

[0113]

[0114] Where n is the total number of reconstructed subsequences, W j is the weight of the j-th subsequence.

[0115] The data decomposition in step S3 and the reconstruction of the prediction results in step S7 both use the same trigonometric function form. This is because the VMD algorithm itself decomposes the signal based on sine and cosine functions. When reconstructing, in order to keep the form of the signal unchanged, it is reasonable to continue to use the same mathematical form.

[0116] In addition, in terms of physical meaning, in the VMD algorithm, each IMF represents an oscillation mode of the signal. During the reconstruction process, we hope to preserve these physical meanings, so we use the same frequency and phase information to combine the predicted values.

[0117] In terms of consistency in signal processing, in signal processing, decomposition and reconstruction usually need to maintain the consistency of mathematical form to ensure that the structure of the signal is not lost during the processing.

[0118] Comparative Example 1

[0119] A traffic flow prediction method based on VMD-TSMixer-Rime, the method comprising:

[0120] Step S1, normalize the original traffic flow time series to eliminate the offset and scale differences in the data;

[0121] Step S2, decomposing the normalized traffic flow time series into m IMF subsequences with different center frequencies by VMD algorithm;

[0122] Step S3, establishing a TSMixer model for each IMF subsequence and predicting the corresponding IMF subsequence;

[0123] Step S4, each prediction structure is reconstructed by adding and reconstructing to obtain the final traffic flow prediction value. The prediction structure is as follows: Figure 4 (a) shown.

[0124] Comparative Example 2

[0125] Step S1, normalize the original traffic flow time series to eliminate the offset and scale differences in the data;

[0126] Step S2, establish a TSMixer model, and use the RIME algorithm to optimize the parameters of the TSMixer model;

[0127] Step S3, use the optimized TSMixer model to predict the normalized data. The prediction results are as follows: Figure 4 (b) as shown.

[0128] Comparative Example 3

[0129] Step S1, normalize the original traffic flow time series to eliminate the offset and scale differences in the data;

[0130] Step S2, decomposing the normalized traffic flow time series into m IMF subsequences with different center frequencies by VMD algorithm;

[0131] Step S3, reconstructing IMF subsequences with similar complexity by adding them together, leaving n feature-enhanced subsequences;

[0132] Step S4, establishing a TSMixer model for each feature-enhanced subsequence;

[0133] Step S5, using the TSMixer model to predict the subsequences with corresponding feature enhancement;

[0134] Step S6, add and reconstruct each prediction structure to obtain the final traffic flow prediction value. Figure 4 (c) as shown.

[0135] The original traffic flow time series used in the three comparative examples and the embodiment are the same, and the specific operations of each step in the three comparative examples are also consistent with the embodiment. In general, for the TSMixer model, the learning rate is set to 1e-3, the batch size is set to 64, the number of hidden layers is set to 3, and the Relu activation function is used. For the VMD model, the number of intrinsic mode functions IMF is set to 6, the damping factor is set to 2000, and the time constant is set to 1e-6.

[0136] The difference between Example 1 and the embodiment is that in Example 1, the VMD algorithm and the TSMixer model are not optimized, and the IMF subsequences of similar complexity are not reconstructed by addition. The difference between Example 2 and the embodiment is that in Example 2, the normalized data is not decomposed. The difference between Example 3 and the embodiment is that in Example 3, the VMD algorithm and the TSMixer model are not optimized. Figure 4 (The red curve represents the actual traffic flow, and the other colored curves represent the predicted traffic flow) It can be clearly seen that the accuracy of the prediction results of the embodiment is higher than that of the three comparative examples.

[0137] Based on the above ideal embodiments of the present invention, the relevant staff can make various changes and modifications without departing from the technical concept of the present invention through the above description. The technical scope of the present invention is not limited to the contents of the specification, and its technical scope must be determined according to the scope of the claims.

Claims

1. A traffic flow prediction method based on VMD-TSMixer-Rime, characterized in that: Methods include: Normalize the original traffic flow time series; Use the RIME algorithm to optimize the parameters of the VMD algorithm; The normalized traffic flow time series is decomposed into m IMF subsequences with different central frequencies through the optimized VMD algorithm; Reconstruct the IMF subsequences with similar complexity by adding them together, leaving n feature-enhanced subsequences, n≤m; A TSMixer model is established for each feature-enhanced subsequence, and the parameters of each TSMixer model are optimized using the RIME algorithm; Use the optimized TSMixer model to predict the subsequences with corresponding feature enhancements; Each prediction structure is added and reconstructed to obtain the final traffic flow prediction value.

2. The traffic flow prediction method based on VMD-TSMixer-Rime according to claim 1 is characterized in that: The RIME algorithm is used to optimize the parameters of the VMD algorithm; specifically: Step A, define the parameter search space of the VMD algorithm. The parameters of the VMD algorithm include the damping coefficient α, the number of decomposition layers M and the time constant τ. The parameter sampling process is: (a,t,M)~Uniform(a min ,a max )×Uniform(t min ,t max )×Uniform(M min ,M max ) Among them, α min , α max is the minimum and maximum value of the damping coefficient, τ min , τ max is the minimum and maximum value of the time constant, M min , M max is the maximum and minimum value of the decomposition layer; Uniform() represents uniform distribution, and × represents the union of uniform distribution, that is, the joint sampling space of parameters; Step B, use the sampled parameters α, τ, M to train the VMD algorithm. The goal of VMD is to decompose the input signal X(t) into m IMFs. The optimization problem in the decomposition process is expressed as: Among them, A j (t) is the magnitude of the jth IMF, ω j is the center frequency, φ j is the phase, L(A j ) is a regular term used to control the smoothness of IMF; t0 represents the starting time point of the time series; t N Represents the index of the last time point in the time series data, that is, the end time of the time series; Step C, use TSMixer to predict IMFs and calculate the performance index P(α,τ,M) of the prediction results; Step D, use the performance indicator P to update the meta-learning model f, the meta-learning model f is defined as: Where η is the learning rate, represents the gradient of VMD parameters, f old (α,τ,M) is the meta-learning model f before update, f new (α,τ,M) is the updated meta-learning model f; Step E, using a reinforcement learning algorithm to optimize parameters based on the predictions of the meta-learning model f and the actual performance F; Step F, repeat steps A to E until the stopping condition is met, and adjust the parameter sampling strategy according to the new performance indicator P and the prediction of the meta-learning model f in each iteration; Step G, after the iteration, select the parameter (α * ,τ * ,M * ) as the final parameter setting of the VMD algorithm.

3. The traffic flow prediction method based on VMD-TSMixer-Rime according to claim 1 is characterized in that: The normalized traffic flow time series is decomposed into m IMF subsequences with different center frequencies by using the optimized VMD algorithm; the decomposition method is: Among them, X(t) is the original traffic flow time series, A j (t) is the amplitude of the jth subsequence, t is each time point in the time series data, ω j is the center frequency, φ j It's the phase.

4. The traffic flow prediction method based on VMD-TSMixer-Rime according to claim 1 is characterized in that: Use the RIME algorithm to optimize the parameters of each TSMixer model; specifically: Step a, define the hyperparameter search space of the TSMixer model, the hyperparameters include learning rate, hidden layer size, number of layers, and activation function type; Step b, randomly sampling in the hyperparameter space to generate a set of hyperparameters; Step c, use the sampled hyperparameter θ to train the TSMixer model and calculate the performance index P(θ) on the validation set; Step d: Use the meta-learning model to predict the expected performance Q(θ) given the hyperparameter θ. The meta-learning model is updated as follows: in η is the learning rate, P(θ) is the prior distribution of the hyperparameters; f t is the meta-learning model before updating, f t+1 is the updated meta-learning model; Step e: Based on the prediction and actual performance of the meta-learning model, the hyperparameter sampling strategy is adjusted using the reinforcement learning algorithm. Specifically: For each explored hyperparameter configuration θ, calculate a reward signal R(θ): R(θ) = w1·(P(θ)-Q(θ))+w2·Exploration Term, where w1 and w2 are weight coefficients, Q(θ) is the meta-learning model’s prediction of the performance P(θ), and Exploration Term is a term that encourages exploration. In step f, the sampling distribution of the hyperparameters is updated according to the reward signal using the softmax function. The update method is defined as: Where w3 is a hyperparameter that controls the intensity of the sampling distribution change, Θ is the set of all possible hyperparameter configurations; Step g, use the updated sampling distribution p'(θ) to guide the next step of hyperparameter sampling; Step h, repeating steps b to g until a predetermined number of iterations is reached or the performance is no longer significantly improved; In step i, after the iteration, the hyperparameters with the best performance are selected as the final hyperparameter configuration.

5. The traffic flow prediction method based on VMD-TSMixer-Rime according to claim 1 is characterized in that: The optimized TSMixer model is used to predict the subsequences with corresponding feature enhancements; specifically: For low-complexity subsequences, the TSMixer model is expressed as: For high-complexity subsequences, the TSMixer model is expressed as: in, and are the predicted values ​​of low complexity and high complexity subsequences, respectively, MLP low and MLP high They are multilayer perceptrons for low-complexity and high-complexity subsequences, respectively.

6. The traffic flow prediction method based on VMD-TSMixer-Rime according to claim 1 is characterized in that: Each prediction structure is reconstructed by adding it to obtain the final traffic flow prediction value; specifically: Where n is the total number of reconstructed subsequences, W j is the weight of the j-th subsequence.

7. The traffic flow prediction method based on VMD-TSMixer-Rime according to claim 1 is characterized in that: The strategy for screening IMF subsequences of similar complexity is: The sample entropies of m IMF subsequences are calculated respectively, and then sorted according to size. In the continuous sample entropy, if the difference between the maximum and minimum values ​​is less than the threshold, then the IMF subsequences corresponding to the continuous sample entropy are IMF subsequences with similar complexity; the calculation formula of the sample entropy is: Where N is the total number of points in the time series, C k (i) is the conditional probability of data point i under the template length k, l is the template length used when calculating the sample entropy, which is a fixed value. It considers the number of consecutive data points in the time series to generate the template vector of the time series.

Citation Information

Cited By

  • Induction signal phase duration prediction method based on TSpixel

    CN120726830A