Abstract
In recent years, with the indepth research on driverless technology, model predictive control theory was extensively applied in the field of vehicle control. In order to improve the accurate tracking of reference trajectories by driverless vehicles, a model predictive control trajectory tracking controller for driverless vehicles optimized by an improved sparrow search algorithm is proposed. Firstly, an objective function with constraints is added to the model predictive control trajectory tracking controller by establishing the vehicle dynamics model; Secondly, the improved sparrow search algorithm is enhanced to speed up convergence and expand the program's search capabilities; Then, in order to discover the best value, the model predictive control trajectory tracking controller's prediction time domain and control time domain are optimized using the improved sparrow search algorithm; Finally, to confirm the method's viability, collaborative simulations in Simulink/Carsim were completed. The simulation results show that the lateral errors generated by the improved sparrow search algorithm-based optimized model predictive control trajectory tracking controller are reduced by 53.53% and 65.44%, respectively, when the vehicle speed is 36 km/h, compared with the traditional model predictive control trajectory tracking controller. When the vehicle speed is 54 km/h, the lateral deviations are reduced by 81.08% and 86.76%, respectively. In addition, the optimized model predictive control trajectory tracking controller improves the accuracy and at the same time, the driving stability of the control vehicle is significantly improved.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.Avoid common mistakes on your manuscript.
1 Introduction
In the reform and development of the transportation industry, the emergence of driverless technology is of epoch-making significance. As technology in Artificial Intelligence has developed, driverless technology has received increasing attention from researchers. The Society of Automotive Engineers (SAE) has identified six degrees of driving automation for driverless vehicles, ranging from L0 to L5. Many academics and professionals in relevant disciplines are focusing their research on achieving L5 level of fully autonomous vehicles. The driverless system is an intelligent control system that integrates various advanced theoretical technologies such as environment perception, high precision positioning, path planning and trajectory tracking [1]. The main requirement for safe operation of driverless vehicles is environment perception technology, which depends on on-board sensors to generate the surrounding environment as well as the vehicle status [2,3,4]. In the constructed perception system, different sensors demonstrate their individual benefits and provide the necessary conditions for the subsequent trajectory tracking work [5, 6].
A key component of autonomous technology, trajectory tracking technology strives to preserve the stability of the vehicle's lateral and longitudinal control [7, 8]. Currently, the commonly used trajectory tracking control methods are PID control, sliding mode control, model predictive control (MPC), fuzzy control, etc. [9, 10]. Among the above four control methods, PID control provides the widest range of applications. Out of the four control strategies mentioned above. PID control is utilized to control the vehicle longitudinal motion in trajectory tracking by decoupling the vehicle motion, which to some extent increases tracking accuracy [11]. Since, there is a certain time delay in the vehicle steering, then using PID control in the steering motion can offset this disturbance [12]. Although PID control has some superiority in improving the trajectory tracking accuracy and anti-jamming, PID control is a linear control method with limitations, so its application to complex nonlinear systems will decrease the controller's regulation accuracy. Sliding mode control belongs to the nonlinear control method, which is how it differs from PID control. By evenly dividing the driving torque of the wheels during steering, the sliding mode control for vehicle steering can effectively lower the danger of vehicle rollover [13]. The vehicle steering stability was improved by using the Kalman filter to determine the tire sideslip angle, while taking the road adhesion coefficient into account [14]. The wheel slip rate does not soon converge to the ideal value when the vehicle is abruptly braked, so the sliding mode control does not guarantee the resilience of the system [15]. By its essence, fuzzy control does not only mean nonlinear control, but also belongs to the category of intelligent control. By establishing a fuzzy control rule base, the corresponding parameters are dynamically adjusted in the trajectory tracking controller to secure the flexibility and safety of vehicle driving [16]. Likewise, fuzzy control is applied to the vehicle steering, and the lateral stability of the vehicle can be greatly improved by designing a torque distribution control system [17, 18]. The vehicle's tracking accuracy will be decreased by the fuzzy control system's incompleteness, since there will be several unanticipated disturbances in its trajectory.
It is important to note that in the tracking trajectory control, not only the kinematic and dynamic constraints of the vehicle model should be considered, but also the control variables output by the controller should satisfy the above constraints [19]. While, model predictive control, a traditional control approach, has a strong capability to handle constraints, the aforementioned three methods nevertheless have significant limits in how they handle constraints. This method can predict the future output of the multi-constrained system based on the existing model, the current state of the system, and the future control variables [20]. Model predictive control theory relies on its distinct advantages to be ideally adapted for both technologies, whether it is path planning or trajectory tracking [21].
Among them, in terms of path planning, adding reinforcement learning algorithms to MPC controllers enables real-time path planning [22, 23]. Efficiency of the MPC controller was significantly improved with the addition of a planning algorithm to the MPC trajectory tracking controller [24, 25].
In vehicle trajectory tracking control, MPC trajectory tracking controller analyzes the vehicle stability and sets reasonable constraints by optimizing the function, which makes it widely used for trajectory tracking of driverless vehicles [26, 27]. By linearizing the processing vehicle model, the vehicle can reach the steady state in time during the tracking trajectory to avoid the phenomenon of vehicle overspeed and control saturation [28]. In transverse and longitudinal coupled control, the differential game theory is used to enable each MPC trajectory tracking controller to generate an adapted control based the corresponding cost, and to continuously correct the driving trajectory during each control cycle [29]. For longitudinal control in which multiple objectives are considered, oversimplification of the vehicle longitudinal motion model can cause velocity oscillations, and real time control of the on-board electronic control unit is further achieved by transforming these problems into MPC optimization solutions [30]. In the transverse control of the vehicle, a preview model to output the optimal front wheel angle and speed is created, which can achieve the steadiness in vehicles [31, 32]. When the vehicle driving environment is in extreme conditions, the Kalman filter algorithm is utilized to predict the road surface grip coefficient in time, and the vehicle speed corresponded with different road surface grip coefficients is gotten by plotting the vehicle mass lateral deflection angle and lateral deflection angle velocity phase plane stability diagram, so that the vehicle can be kept stable under extreme conditions [33]. Although the driving stabilization and convenience of the vehicle were strengthen with the processing of the model and the coupled control of the vehicle motion in the above study, the accuracy of the tracking trajectory was not further improved.
Currently, regarding the improvement of trajectory tracking accuracy, the MPC controller cost weights can be adaptively adjusted using fuzzy control, which improves the tracking accuracy and ensures vehicle steadiness [34]. In the MPC trajectory tracking controller, the corresponding weights are dynamically adjusted, while considering the curvature of the reference trajectory to better the accurate trajectory tracking [35]. The vehicle's tire stability will decrease when it is driven on a slick surface. By restraining the tire slip angle, the MPC trajectory tracking controller can optimize the slip angle in time and reduce the vehicle steering error [36, 37]. On the basis of the least squares method, the corresponding parameters in the MPC controller are estimated according to the recursive idea as a way to improve the tracking accuracy [38]. By estimating as well as dynamically adjusting some parameters, the error is reduced, but the computational effort is slightly increased, and most importantly, the optimized of objective function is not considered. In complex nonlinear vehicle control systems, intelligent optimization algorithms combined with intelligent fuzzy modeling will further improve the performance of trajectory tracking controllers [39, 40].
The key to the optimization of the objective function in the MPC trajectory tracking controller is the selection of the prediction time domain and control time domain, because the values of different time domains determine the accuracy of the vehicle tracking trajectory [41]. In previous studies, the values of these two parameters often depended on personal experience. This method is inefficient and has large errors. In the current study, control time domain is adjusted using matrix chunking and applied to the quadratic solution. This method only considers the choice of the control time domain and ignores the adjustment of the prediction time domain [42]. In fact, use of intelligent optimization algorithms is a good choice in terms of objective function optimization. Based on the dynamics model, the optimal time domain is obtained by optimizing the objective function through the particle swarm optimization (PSO) algorithm, but the PSO algorithm tends to fall into local optimal solutions and does not guarantee global convergence [43]. In contrast to the PSO algorithm, sparrow search algorithm (SSA) as an emerging heuristic optimization algorithm, has shown excellent results in function optimization [44]. In addition to the function optimization function, the algorithm can be applied to robot path planning to find the optimal path [45, 46]. Although the sparrow search algorithm is simple in structure and easy to implement, the algorithm itself has some randomness and slow convergence speed.
In this research, an enhanced sparrow search algorithm-based optimization approach of MPC trajectory tracking controller for unmanned vehicles is proposed to address the issues raised by the aforementioned study. The key contributions of this study, as compared to earlier ones, are as follows.
(1) To implement the unmanned vehicle trajectory tracking, the vehicle's dynamics model is established, as well an objective function with restrictions, and a full MPC trajectory tracking controller are built.
(2) Throughout and beyond this paper, traditional SSA has been improved in three ways. The improved algorithm accelerates the convergence speed and enhances the search capability.
(3) Using improved sparrow search algorithm to optimize the objective function in MPC trajectory tracking controller. Solving for the prediction time domain and control time domain corresponding to the optimal fitness value. The simulation demonstrates that the proposed method reduces the deviation from real trajectory and reference trajectory of the vehicle.
Essay is structured like below. In Sect. 2, the dynamics model of the vehicle is established to prepare for subsequent trajectory tracking. Section 3 constructs the MPC trajectory tracking controller. The sparrow search algorithm is initially introduced in Sect. 4, followed by a discussion of its drawbacks and suggestions for improvements, and lastly, the introduction of the optimization process. Section 5 simulates and verifies the method proposed in this paper and analyzes the results. The paper is shown in Sect. 6.
2 Vehicle Dynamics Model
When the driverless vehicle tracks the reference trajectory, the vehicle motion must conform to the actual situation and satisfy the vehicle dynamics constraints. A vehicle dynamics model is developed in this study to represent the reality of vehicle motion, which is shown in Fig. 1.
Equations for the dynamics of the vehicle are.
Among them, \(m\) is the body mass, \(\varphi\) represents the yaw angle, \({C}_{lf}\) and \({C}_{lr}\) represent the longitudinal cornering stiffness of the front and rear tires, \({C}_{cf}\) and \({C}_{cr}\) is the lateral cornering stiffness of the front and rear tires, \({l}_{f}\) and \({l}_{r}\) denotes the distance from the center of mass of the vehicle to the front and rear axles, \(I\) represents the rotational inertia, \(\delta\) indicates the wheel turning angle. \({s}_{f}\) and \({s}_{r}\) represent the slip rate of the front and rear tires of the wheel.
Under Eq. (1), it suffices to known that the system state quantity \(\xi ={\left[\dot{y},\dot{x},\varphi ,\dot{\varphi },Y,X \right]}^{T}\), and the control quantity \(u=\updelta\)[47]. Its ordinary form is:
The forward Eulerian discretization of Eq. (2) is applied to obtain.
where T is the system sampling time.
Linearize Eq. (3) and let it expand at the point \(\left({\xi }_{0},{u}_{0}\right)\)
Let \(\frac{\partial F}{\partial \xi }{|}_{{\widetilde{\xi }}_{0}\left(k\right),{u}_{0}\left(k\right)}={A}_{k,0}\), \(\frac{\partial F}{\partial u}{|}_{{\widetilde{\xi }}_{0}\left(k\right),{u}_{0}\left(k\right)}={B}_{k,0}\).
Then Eq. (5) can be rewritten as
Equation (6) minus Eq. (4) yields
The above is the expansion at the point \(\left({\xi }_{0},{u}_{0}\right)\), now choose any point \(\left({\xi }_{t},{u}_{t}\right)\) to obtain the expansion.
Let \(\widehat{\xi}\left(k+1\right)=\left[\begin{array}{c}\xi (k+1)\\u(k)\end{array}\right]\), we can get
A new linear time-varying prediction model with control increments can be constructed from the above Eq. (9). As shown.
Among them, \(\widehat{A}=\left[\begin{array}{cc}{A}_{k,t}& {B}_{k,t}\\ 0& 1\end{array}\right]\), \(\widehat{B}=\left[\begin{array}{c}{B}_{k,t}\\ 1\end{array}\right]\).
3 Design of MPC Trajectory Tracking Controller
3.1 Design Objective Function
Through continuous iterative inference Eq. (10), a system output expression with prediction time domain (\({N}_{p}\)) and control time domain (\({N}_{c}\)) can be obtained:
In Eq. (11):
It is worth noting that the MPC trajectory tracking controller are design to ensure that actual trajectory of the vehicle movement should be as close as possible to the reference trajectory. For this reason, it is necessary to add the optimization of the biases of the state quantities and the control quantities in the established objective function.
where, on the right side of the equation, the first part represents the accuracy of the vehicle tracking a known trajectory, the second item represents the stationarity of the vehicle tracking a known trajectory, and the third item is the soft constraint, the purpose of which is to prevent the system from appearing a zero solution phenomenon. \(\eta\) is an actual state quantity generated by the actual motion of the vehicle, \({\eta }_{ref}\) represents the reference state quantity, \(\Delta U\) is control increment, \(Q\) and \(R\) are the weight matrix, \(\rho\) represents the weight coefficient, \(\varepsilon\) is the relaxation factor.
3.2 Design Constraints
Within the motion of the vehicle, the main consideration is the control quantity and the control increment constraints. The expressions of the two constraints are:
In the above inequalities, \({k}_{a}=\text{0,1},2,\cdots ,{N}_{c}-1\).
The change of front wheel steering angle in driverless vehicle trajectory tracking is critical to the stability of the vehicle driving. To ensure that vehicles are safe while in motion, the front wheel turning angle need to are constrained:
Since, the model are solved to obtain the control increments, for which corresponding constraints must also contain control increments, converting the objective function to quadratic form is required.
By Eq. (11), let\(Y={\left[\begin{array}{cc}\eta (t+1)& \begin{array}{cc}\eta (t+2)& \begin{array}{cc}\cdots & \eta (t+{N}_{p})\end{array}\end{array}\end{array}\right]}^{T}\), \(Y_{ref} = \left[ {\begin{array}{*{20}c} {\eta_{ref} (t + 1)} & {\begin{array}{*{20}c} {\eta_{ref} (t + 2)} & {\begin{array}{*{20}c} \cdots & {\eta_{ref} (t + N_p )} \\ \end{array} } \\ \end{array} } \\ \end{array} } \right]^T\), and Eq. (12) can be reduced to:
Among them, \(\overline{Q} = \left[ {\begin{array}{*{20}c} Q & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & Q \\ \end{array} } \right]_{N_p \times N_p }\), \(\overline{R} = \left[ {\begin{array}{*{20}c} R & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & R \\ \end{array} } \right]_{N_c \times N_c }\).
Bringing Eq. (11) into Eq. (15), we get
Let \(E = Y_{ref} - { }\Psi \xi - {\Gamma }\phi\).
And so
Constructing Eq. (17) into quadratic form as
Among them, \(H = \left[ {\begin{array}{*{20}c} {2\Theta^T \overline{Q}\Theta + 2\overline{R}} & 0 \\ 0 & {2\rho } \\ \end{array} } \right]\), \(f = \left[ {\begin{array}{*{20}c} { - 2e^T \overline{Q}\Theta } & 0 \\ \end{array} } \right]^T\), \(e\) represents the tracking error in the prediction time domain.
4 Optimized MPC Trajectory Tracking Controller
4.1 Vehicle Tracking Trajectory Simulation Comparison in Different Time Domains
In the constructed objective function, prediction time domain and control time domain affect accuracy of the vehicle tracking reference trajectory. For these two parameters, the traditional method is to adjust and select relatively appropriate values through personal experience, but this method is too inefficient and may cause larger errors.
Taking the circular trajectory as an example, as seen in Fig. 2, different prediction time domains and control time domains have a great impact on the tracking of the reference trajectory of the driverless vehicle. When \(N_p = 12\), \(N_c = 5\), the vehicle driving trajectory will have large fluctuations, the tracking effect will become worse, and the vehicle stability will be reduced. Similarly, when \(N_p = 10\), \(N_c = 3\), the vehicle trajectory is still very volatile and has a large tracking error. Therefore, selecting the suitable prediction time domain and control time domain are important for the trajectory tracking of driverless vehicles.
4.2 Sparrow Search Algorithm
Sparrow search algorithm is an emerging optimization algorithm that simulates the scavenging and anti-predation behavior in sparrows through continuously updating individual positions. The sparrow search algorithm features fewer control parameters, a simpler structure, and better local search performance than the conventional optimization algorithm [44]. It performs better than some classic algorithms in a few distinct search areas and is somewhat superior to them. Figure 3 depicts the algorithm's optimization procedure.
In the figure below, the producer indicates that in the process of searching, it will preferentially find food and provide all scroungers with a foraging area and direction. Its position update formula is:
In Eq. (19), \(t\) refers to the iteration count of current, \(X_{i,j}^t\) represents positions at the j-th dimension of the i-th sparrow on t-th generation, \(\alpha \in (0,1)\), \(I_{max}\) is total number of optimization process iterations, and \(AV\) denotes warning value, \(ST\) indicates security value, \(r_1\) represents one random number, \(L\) denotes a \(1 \times d\) matrix, and \(d\) represents the dimension.
Scroungers will constantly be spying on producers, and as they find that producers have found great food, they will compete for the food. Its position update formula is:
where \(X_p \left( {t + 1} \right)\) represents position with an optimum fitness value in current finder, \(x_w \left( t \right)\) denotes the position with the worst global fitness, \(A\) represents a column vector with the same dimension as the individual sparrow, and \(n\) represents the population quantity.
Vigilantes will quickly move towards the safe area when aware of the danger to get a position in better. Its position optimization equation is:
Among them, \(X_b \left( t \right)\) represents current global optimal position, \(\beta\) indicates step size, \(K \in [ - 1,1]\), \(f_i\) denotes the fitness value assigned to the current sparrow individually. \(f_g\) and \(f_w\) are the current global best and worst fitness values respectively, \(\varepsilon\) indicates a small constant to prevent zeros in denominators.
4.3 Improved Good Point-Set
Traditional SSA populations are initialized with a high degree of randomness. This randomness often represents an uncertainty and the population is not uniformly distributed in space. Optimizing sparrow positions using good point set to enhance global search capability for algorithms.
Among them, \(1 < j < n\), \(i = 1,2,3, \cdots ,m\), \(n\) denotes the spatial dimension, \(m\) is the number of populations, \(r_j\) shows the good point, \(P_n\) means good point collection, \(a_j\) indicates the upper limit of the current dimension, \(b_j\) is the lower limit of the current dimension。
Since, the value of good points in the set of good points is determined by \(p\) and the value is not fixed. If the value of the good point is too large, the population will disperse to the spatial edge, and if the value of the good point is too small, the population will be clustered to the spatial center. For this reason, the range of values of good points is improved in this paper as follows.
where, \(t\) represents the current number of iterations.
As the number of iterations increases, the populations are gradually distributed over the space.
4.4 Improved Producer Position Updates
During the conventional sparrow search algorithm location update when \(AV \ge ST\), the producer enters the search mode, and the parameter a in its position update formula has randomness, and the size of its value directly influences the speed of convergence as well algorithm accuracy.
To increase the convergence speed of algorithms, a larger value of \(\alpha\) can expand search range of the sparrow in preliminary iterations with algorithm, and the value of \(\alpha\) needs to be reduced in the late iteration in order to increase the convergence speed of traditional algorithm. Then, the improved \(\alpha\):
In the above equation, \(t\) refers to the iteration count of current, \(I_{max}\) is total number of optimization process iterations, \(\varepsilon\) indicates constant, the purpose is to prevent zero solution.
In addition, with the increase of the number of iterations, the local search ability of producers in sparrow population will be reduced, which will lead to the decline of population optimization ability. Therefore, the local search ability should be strengthened in the later iteration of the producer position update entering the search mode. Then, combined with formula (19), the improved finder position update formula is:
4.5 Improved Vigilante Position Updates
When the sparrow realizes the danger, it must immediately approach the safe area. Due to randomness of the moving step length \(K\), the sparrow moves slowly and the short step length will lead to the decrease of the sparrow fitness value at the current position. The sparrow moves fast and the increase of the step length will lead to the decrease of the accuracy of the algorithm. In order to meet the need for location updates in different periods and to take into account the global search as well as the local search capability of the algorithm, Then, the improved \(K\):
In Eq. (28), \(a\) and \(b\) are the upper and lower population limits, respectively, and \(T\) is the number of iterations. When the algorithm optimization enters the late iteration, the value of \(K\) gradually decreases and the algorithm global search as well as local search capability will be gradually enhanced. The complete formula is as follows.
4.6 Algorithm Combination
An optimization method of MPC trajectory tracking controller for driverless vehicles based on improved sparrow search algorithm is proposed in this paper. By using the optimization ability of the improved sparrow search algorithm, the objective function in the MPC trajectory tracking controller is optimized and the prediction time domain and control time domain corresponding to the optimal fitness value are obtained. The specific combination process is shown in Fig. 4.
Step 1: Generate an initial population and assign initial values.
Step 2: Initialization of sparrow positions and calculation with corresponding fitness assigns sparrow positions in each dimension to \(Np\) and \(Nc\) accordingly.
Step 3: Run the system model.
Step 4: The sum of position and yaw angle deviation between the reference trajectory and the actual trajectory output by the system is taken as the fitness value.
Step 5: It is judged whether the end condition is satisfied, and if yes, it ends; otherwise, steps (6) to (7) are executed.
Step 6: Iteratively update the position of the producer, scrounger, and vigilante.
Step 7: The new fitness value is calculated and sparrow position is updated, continue with steps (2) to (5).
5 Simulation Experiments and Analysis
5.1 Co-simulation of Carsim and Simulink
This paper chooses using Carsim and simulink in collaborative simulations. The simulation platform are shown in Fig. 5. Firstly, build the MPC trajectory tracking controller in Simulink and determine the inputs and outputs of the system to satisfy the vehicle motion; Then, build a vehicle model in Carsim and select inputs and outputs that match the MPC trajectory tracking controller. The front wheel steering angle and speed are output by the MPC trajectory tracking controller, which controls the vehicle tracking reference trajectory in Carsim. For better verification of the method proposed for this paper, the double lane change trajectory and the lane change trajectory are specially selected as the reference trajectory to verify the feasibility on the method. The system framework is shown in Fig. 6. The main parameters are shown in Table 1.
5.2 Algorithm Performance Test Comparison
The optimization capability of ISSA must be tested before conducting joint simulations. In Table 2\(F_1 \sim F_3\) are single-peaked benchmark functions with only one optimal value, whose main investigation is the global search ability of the optimization algorithm. \(F_4 \sim F_6\) are multi-peaked benchmark functions, which contain multiple optimal values and are designed to evaluate the local search capability of the optimization algorithm.
Figure 7 compares the optimization capability of ISSA with PSO, SSA and the whale optimization algorithm (WOA) [48]. Among them, Fig. 7a–c show the comparison of the results of three optimization algorithms to optimize \(F_1 \sim F_3\), respectively, and it can be seen that ISSA can effectively find the minimum value and has a better global search capability. Figure 7d–f shows the comparison of the results of three optimization algorithms to optimize \(F_4 \sim F_6\), respectively. It can be seen that ISSA can quickly reach the convergence state and find the optimal value with better local search ability. In summary, it can be seen that ISSA has better global search and local search ability after testing and comparison.
5.3 Track Double Lane Change Trajectories
Figure 8a shows the optimal values obtained by ISSA optimally solving the MPC trajectory tracking control model. The optimal value in Fig. 8a when the curve reaches convergence is 0.0773. Figure 8b represent the prediction time domain and control time domain obtained by ISSA to optimize the objective function. It should be particularly noted that the values of the \(N_p\) and \(N_c\) must be positive integers. Throughout the optimization iteration, when the curve reaches the final convergence state and stabilizes, the values should be taken according to the “rounding” rule. From the figure, the ISSA optimization objective function obtains the \(N_p = 16\), \(N_c = 3\).
Figure 9a–d represent, comparison of MPC and ISSA + MPC tracking reference trajectory at vehicle speed of 36 km/h. \(N_p = 12\) and \(N_c = 3\) selected for MPC controller. In addition, this paper also designs and compares an MPC trajectory tracking controller based on neural network (NN-MPC) optimization. The optimization results of this method are \(N_p = 35\), \(N_c = 5\). The lateral trajectory generated by the MPC controller in Fig. 9a generated oscillations in the 7 ~ 15 s interval. The ISSA + MPC controller generates a smoother lateral trajectory. The lateral errors generated by MPC controller and NN-MPC controller in Fig. 9b and c as well as the wheel turning angle still fluctuate considerably, and the lateral acceleration shown in Fig. 9d is extremely unstable. However, the lateral error and lateral acceleration generated by ISSA + MPC gradually converge to zero, and the steering control is more stable.
When the speed is increased to 54 km/h, the lateral trajectory generated by MPC controller in Fig. 9e still has fluctuations, and the lateral trajectory generated by ISSA + MPC controller is smoother and has a better tracking effect in the straight line interval. The lateral error and lateral acceleration generated by the ISSA + MPC controller in Fig. 9f and h do not fluctuate, and the lateral error is stable in the \(\pm 0.5\) m interval and tends to zero after 6s. The vehicle turning angle generated by the ISSA + MPC controller in Fig. 9g remains smooth. However, the lateral error, front wheel turning angle, and lateral acceleration generated by the MPC controller fluctuate continuously as the speed increases. The lateral error results generated by the three controllers are shown in Table 3.
5.4 Track Lane Change Trajectories
The optimal value in Fig. 10a when the curve reaches convergence is 0.0229817. Throughout the optimization iteration, when the curve reaches the final convergence state and stabilizes, the values should be taken according to the “rounding” rule. From the figure, the ISSA optimization objective function obtains the \(N_p = 13\), \(N_c = 13\). The optimization results of the NN-MPC controller are the same as those in Sect. 5.2.
Also, in this simulation the MPC controller is still chosen for \(N_p = 12\) and \(N_c = 5\). The lateral trajectory generated by the MPC controller in Fig. 11a at a vehicle speed of 36 km/h produced oscillations in the 15 ~ 20 s interval. The lateral trajectory generated by the ISSA + MPC controller remains smooth. The lateral errors generated by the MPC controller in Fig. 11b and c as well as the wheel turning angle still fluctuate considerably, and the lateral acceleration shown in Fig. 11d is extremely unstable. The lateral error generated by the NN-MPC controller is larger. Nevertheless, the lateral error and lateral acceleration generated by ISSA + MPC gradually converge to zero, and the steering control is more stabilized.
While, the velocity increases to 54 km/h, the lateral trajectory generated by the MPC controller in Fig. 11e still fluctuates, and the lateral trajectory generated by the ISSA + MPC controller is flatter during the whole tracking process. The lateral acceleration of the lateral error generated by the ISSA + MPC controller in Fig. 11f and h does not fluctuate, and the lateral error stabilizes in the \(\pm 0.1\) m interval and tends to zero after 10 s. The vehicle turning angle generated by the ISSA + MPC controller in Fig. 11g is still smooth. Therefore, the lateral error, front wheel angle, and lateral acceleration generated by the MPC controller still fluctuate as the speed increases. The lateral error results generated by the three controllers are shown in Table 4.
6 Conclusion
In this paper, the effects of prediction time domain and control time domain in MPC trajectory tracking controller on vehicle trajectory tracking accuracy are investigated. By improving the traditional sparrow search algorithm and designing the performance evaluation function, an MPC trajectory tracking controller optimization method based on the improved sparrow search algorithm is proposed to improve the trajectory tracking accuracy. Through simulation analyzes, to draw the below concluded:
(1)In order to improve the convergence speed and search capability of the algorithm, the traditional sparrow search algorithm is improved. The simulation comparison of the tested optimized benchmark functions shows that ISSA outperforms SSA and WOA in function optimization.
(2)The simulation results show that when the vehicle speed is 36 km/h, the lateral error of the ISSA optimized MPC trajectory tracking controller is reduced by 68.98% and 81.08% compared with the MPC controller, and by 67.95% and 76.94% compared with the NN-MPC controller, respectively. When the vehicle speed is 54 km/h, the lateral error of the MPC controller is reduced by 65.44% and 86.76%, respectively, and that of the NN-MPC controller is reduced by 78.43% and 72.35%. The results show that the ISSA improved MPC trajectory tracking controller is superior to the traditional MPC controller and NN-MPC controller in terms of tracking accuracy.
References
Gong, J.; Gong, C.; Lin, Y.; Li, Z.; Lv, C.: Review on machine learning methods for motion planning and control policy of intelligent vehicles. Trans. Beijing Inst. Technol. 42(7), 665–674 (2022). https://doi.org/10.15918/J.TBIT1001-0645.2022.095
Thukral, R.; Arora, A S.; Kumar, A. et al.: Denoising of thermal images using deep neural network, In: Proceedings of International Conference on Recent Trends in Computing: ICRTC 2021. Singapore: Springer Nature Singapore, pp. 827–833, (2022).
Maini, D.S.; Aggarwal, A.K.: Camera position estimation using 2D image dataset. Int. J. Innov. Eng. Technol. 10(2), 199–203 (2018)
Aggarwal, A K.: A Hybrid Approach to GPS Improvement in Urban Canyons. (2023).
Hu, Y.; Wang, X.; Hu, J.; Gong, J.; Wang, K.; Li, G.; Mei, C.: An overview on unmanned vehicle technology in off-road environment. Trans. Beijing Inst. Technol. 41(11), 1137–1144 (2021). https://doi.org/10.15918/j.tbit1001-0645.2020.144
Chen, Q.; Xie, Y.; Guo, S.; Bai, J.; Shu, Q.: Sensing system of environmental perception technologies for driverless vehicle: A review of state of the art and challenges. Sens. Actuators A. Phys. (2021). https://doi.org/10.1016/j.sna.2021.112566
Ma, H.; Pei, W.; Zhang, Q.: Research on path planning algorithm for driverless vehicles. Mathematics 10(15), 2555 (2022). https://doi.org/10.3390/math10152555
Ma, H.; Pei, W.; Zhang, Q.: Battery energy consumption analysis of automated vehicles based on MPC trajectory tracking control. Electrochem 3(3), 337–346 (2022). https://doi.org/10.3390/electrochem3030023
Farag, W.: Complex trajectory tracking using PID control for autonomous driving. Int. J. Intell. Transp. Syst. Res. 18(2), 356–366 (2019). https://doi.org/10.1007/s13177-019-00204-2
Gambhire, S.J.; Kishore, D.R.; Londhe, P.S.; Pawar, S.N.: Review of sliding mode based control techniques for control system applications. Int. J. Dynam. Control. 9(1), 363–378 (2020)
Peicheng, S.; Li, L.; Ni, X.; Yang, A.: Intelligent vehicle path tracking control based on improved MPC and hybrid PID. IEEE Access 10, 94133–94144 (2022). https://doi.org/10.1109/ACCESS.2022.3203451
Chi, H.; Zhu, Z.: Research on Ackerman driverless vehicle control strategy based on IMU steering calibration and inverted parabolic speed control. IEEE Int. Conf. Consumer Electron. Computer Eng. 2021, 67–74 (2021). https://doi.org/10.1109/ICCECE51280.2021.9342314
Sabiha, A.D.; Kamel, M.A.; Said, E.; Hussein, W.M.: ROS-based trajectory tracking control for autonomous tracked vehicle using optimized backstepping and sliding mode control. Robot. Autonom. Syst. (2022). https://doi.org/10.1016/j.robot.2022.104058
Yang, K.; Dong, D.; Ma, C.; Tian, Z.; Chang, Y.; Wang, G.: Stability control for electric vehicles with four in-wheel-motors based on sideslip angle. World Elect. Vehicle J. 12(1), 42 (2021). https://doi.org/10.3390/wevj12010042
Wang, H.; Wu, S.; Wang, Q.: Global sliding mode control for nonlinear vehicle antilock braking system. IEEE Access 9, 40349–40359 (2021). https://doi.org/10.1109/ACCESS.2021.3064960
Li, C.: Research on control strategy of steer-by-wire system for the in-wheel motor electric vehicle based on double fuzzy control, In: Proceedings of China SAE Congress 2020: Selected Papers. Lecture Notes in Electrical Engineering, vol. 769. https://doi.org/10.1007/978-981-16-2090-4_52.
Zhang, C.; Gao, G.; Zhao, C.; Li, L.; Li, C.; Chen, X.: Research on 4WS agricultural machine path tracking algorithm based on fuzzy control pure tracking model. Machines 10(7), 597 (2022). https://doi.org/10.3390/machines10070597
Chen, L.; Li, Z.; Yang, J.; Song, Y.: Lateral stability control of four-wheel-drive electric vehicle based on coordinated control of torque distribution and ESP differential braking. Actuators 10(6), 135 (2021). https://doi.org/10.3390/act10060135
Wu, Y.; Li, S.; Zhang, Q.; Sun-Woo, K.; Yan, L.: Route planning and tracking control of an intelligent automatic unmanned transportation system based on dynamic nonlinear model predictive control. IEEE Trans. Intell. Transp. Syst. 23(9), 16576–16589 (2022). https://doi.org/10.1109/TITS.2022.3141214
Rokonuzzaman, M.; Mohajer, N.; Nahavandi, S.: Effective adoption of vehicle models for autonomous vehicle path tracking: a switched MPC approach. Veh. Syst Dyn. (2022). https://doi.org/10.1080/00423114.2022.2071300
Messaoud, K.; Yahiaoui, I.; Verroust-Blondet, A.; Nashashibi, F.: Attention based vehicle trajectory prediction. IEEE Trans. Intell. Vehicles 6(1), 175–185 (2021). https://doi.org/10.1109/TIV.2020.2991952
Kim, Y.; Pae, D.-S.; Jang, S.-H.; Kang, S.-W.; Lim, M. -T.: Reinforcement learning for autonomous vehicle using MPC in highway situation, In: 2022 International Conference on Electronics, Information, and Communication (ICEIC), pp. 1–4, https://doi.org/10.1109/ICEIC54506.2022.9748810.
Aggarwal, A K.: Digital preservation of cultural heritage for future generations, In: Interdisciplinary Digital Preservation Tools and Technologies. IGI Global, pp. 242–255 (2017).
Liu,Y.; Wang, P.: An autonomous parking algorithm based on A-star algorithm correction and MPC path tracking, In: International Conference on Signal Processing and Communication Technology (SPCT 2021) , vol. 12178, pp. 544–549, (2022), https://doi.org/10.1117/12.2631818.
Chu, D.; Li, H.; Zhao, C.; Zhou, T.: Trajectory tracking of autonomous vehicle based on model predictive control with PID feedback. IEEE Trans. Intell. Transp. Syst. (2022). https://doi.org/10.1109/TITS.2022.3150365
Rokonuzzaman, M.; Mohajer, N.; Nahavandi, S.; Mohamed, S.: Model predictive control with learned vehicle dynamics for autonomous vehicle path tracking. IEEE Access 9, 128233–128249 (2021). https://doi.org/10.1109/ACCESS.2021.3112560
Du, Q.; Zhu, C.; Li, Q.; Tian, B.; Li, L.: Optimal path tracking control for intelligent four-wheel steering vehicles based on MPC and state estimation. Proc. Inst. Mech. Eng. Part D J. Autom. Eng. 236(9), 1964–1976 (2021). https://doi.org/10.1177/09544070211054318
Wu, H.; Si, Z.; Li, Z.: Trajectory tracking control for four-wheel independent drive intelligent vehicle based on model predictive control. IEEE Access 8, 73071–73081 (2020). https://doi.org/10.1109/ACCESS.2020.2987812
Choi, Y.-M.; Park, J.-H.: Game-based lateral and longitudinal coupling control for autonomous vehicle trajectory tracking. IEEE Access 10, 31723–31731 (2022). https://doi.org/10.1109/ACCESS.2021.3135489
Dong, H.; Xi, J.: Model predictive longitudinal motion control for the unmanned ground vehicle with a trajectory tracking model. IEEE Trans. Veh. Technol. 71(2), 1397–1410 (2022). https://doi.org/10.1109/TVT.2021.3131314
Zhai, L.; Wang, C.; Hou, Y.; Liu, C.: MPC-based integrated control of trajectory tracking and handling stability for intelligent driving vehicle driven by four hub motor. IEEE Trans. Vehicular Technol. 71(3), 2668–2680 (2022). https://doi.org/10.1109/TVT.2022.3140240
Xia, Q.; Chen, L.; Xu, X.; Cai, Y.; Chen, T.: Coordination control method of autonomous ground electric vehicle for simultaneous trajectory tracking and yaw stability control. Proc. Inst. Mech. Eng. Part D J. Autom. Eng. (2022). https://doi.org/10.1177/09544070221087485
Zhang, S.; Li, G.; Wang, L.: Trajectory tracking control of driverless racing car under extreme conditions. IEEE Access 10, 36778–36790 (2022). https://doi.org/10.1109/ACCESS.2022.3161625
Wang, H.; Liu, B.; Ping, X.; An, Q.: Path tracking control for autonomous vehicles based on an improved MPC. IEEE Access 7, 161064–161073 (2019). https://doi.org/10.1109/ACCESS.2019.2944894
Li, P.; Yang, Z.; Chen, Y.: Research on MPC trajectory tracking under variable weight matrix. Mach. Tool Hydraulics 50(7), 62–68 (2022). https://doi.org/10.3969/j.issn.1001-3881.2022.07.011
Liu, Z.; Ye, X.; Qian, T.; Yu, L.: Research on unmanned vehicle trajectory tracking control strategy based on model predictive control, In: MEMAT 2022; 2nd International Conference on Mechanical Engineering, Intelligent Manufacturing and Automation Technology, (pp. 1–5), (2022).
Ge, L.; Zhao, Y.; Ma, F.; Guo, K.: Towards longitudinal and lateral coupling control of autonomous vehicles using offset free MPC. Control Eng. Practice (2022). https://doi.org/10.1016/j.conengprac.2022.105074
Zhang, K.; Sun, Q.; Shi, Y.: Trajectory tracking control of autonomous ground vehicles using adaptive learning MPC. IEEE Trans. Neural Netw. Learn. Syst. 32(12), 5554–5564 (2021). https://doi.org/10.1109/TNNLS.2020.3048305
Qiu, J.; Ji, W.; Lam, H K.: A new design of fuzzy affine model-based output feedback control for discrete-time nonlinear systems. IEEE Trans. Fuzzy Syst. (2022).
Bi, Y.; Wang, T.; Qiu, J., et al.: Adaptive decentralized finite-time fuzzy secure control for uncertain nonlinear CPSs under deception attacks. IEEE Trans. Fuzzy Syst., (2022).
Fan, X.; Peng, Y.; Zhong, C.: Trajectory tracking control of autonomous vehicles based on adaptive MPC. J. Fuzhou Univ. (Natural Science Edition) 49(4), 500–507 (2021). https://doi.org/10.7631/issn.1000-2243.20405
Xie, X.; Wang, Y.; Jin, L.; Guo, B.; Wei, Q.; He, Y.: MPC trajectory tracking control based on changing the control time domain time step. J. Jilin Univ. (2022). https://doi.org/10.13229/j.cnki.jdxbgxb20220542
Wan, P.; Shi, P.; Liang, T.; Yin, Z.: Research on model predictive control of lane keeping based on particle swarm optimization. Mach. Des. Res. 38(1), 38–50 (2022). https://doi.org/10.13952/j.cnki.jofmdr.2022.0086
Xue, J.; Shen, B.: A novel swarm intelligence optimization approach: sparrow search algorithm. Syst. Sci. Control Eng. 8(1), 22–34 (2020). https://doi.org/10.1080/21642583.2019.1708830
Zhang, Z.; He, R.; Yang, K.: A bioinspired path planning approach for mobile robots based on improved sparrow search algorithm. Adv. Manuf. 10(1), 114–130 (2021). https://doi.org/10.1007/s40436-021-00366-x
Zhang, G.; Zhang, E.: An improved sparrow search based intelligent navigational algorithm for local path planning of mobile robot. J. Ambient Intell. Human. Comput. 14, 1–13 (2022). https://doi.org/10.1007/s12652-022-04115-1
Gong, J.; Liu, K.; Qi, J.: Kinematic model-based trajectory tracking control, In: Model Predictive Control for Self-driving Vehicles, 2nd ed. China: Beijing Institute of Technology Press, ch. 4, sec. 2, pp. 84–89 (2020).
Meng, X.; Cai, C.: A whale optimization algorithm based on elite backward learning and Lévy flight. Electron. Measure. Technol. 44(20), 82–87 (2021). https://doi.org/10.19651/j.cnki.emt.2107650
Acknowledgements
This research was funded by National Natural Science Foundation of China, Grant Number 62203271; Shandong Provincial Natural Science Foundation, Grant Number ZR2020QF059, ZR2021MF131; Shandong Province Transportation Science and Technology Program Project, Grant Number 2023BJN06.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Ma, H., Pei, W. & Zhang, Q. Optimal Design of MPC Autonomous Vehicle Trajectory Tracking Controller Considering Variable Time Domain. Arab J Sci Eng (2024). https://doi.org/10.1007/s13369-024-09370-2
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s13369-024-09370-2