 Original Article
 Open access
 Published:
StabilityConsidered Lane Keeping Control of Commercial Vehicles Based on Improved APF Algorithm
Chinese Journal of Mechanical Engineering volumeÂ 37, ArticleÂ number:Â 19 (2024)
Abstract
Regarding the lane keeping system, path tracking accuracy and lateral stability at high speeds need to be taken into account especially for commercial vehicles due to the characteristics of larger mass, longer wheelbase and higher mass center. To improve the performance mentioned above comprehensively, the control strategy based on improved artificial potential field (APF) algorithm is proposed. In the paper, time to lane crossing (TLC) is introduced into the potential field function to enhance the accuracy of path tracking, meanwhile the vehicle dynamics parameters including yaw rate and lateral acceleration are chosen as the repulsive force field source. The lane keeping controller based on improved APF algorithm is designed and the stability of the control system is proved based on Lyapunov theory. In addition, adaptive inertial weight particle swarm optimization algorithm (AIWPSO) is applied to optimize the gain of each potential field function. The cosimulation results indicate that the comprehensive evaluation index respecting lane tracking accuracy and lateral stability is reduced remarkably. Finally, the proposed control strategy is verified by the HiL test. It provides a beneficial reference for dynamics control of commercial vehicles and enriches the theoretical development and practical application of artificial potential field method in the field of intelligent driving.
1 Introduction
With the rapid development of highlevel highway networks and modern transportation industry, the traffic accidents of commercial vehicles are obviously increased, among which 20% of traffic accidents are caused by lane departure statistically [1, 2]. Advanced driver assistance systems (ADAS) have emerged as an efficient way of reducing traffic accidents and improving driving comfort [3,4,5], which is also an inevitable stage in the development of autonomous vehicles (AVs). As an important part of ADAS [6], lane keeping system (LKS) helps drivers to regulate driving direction automatically when lane departure is detected, thus alleviates the driving fatigue and improves the driving safety [7], which attracts more attentions of several researchers.
Path tracking control is one of the most important research aspects of LKS, in which the control aim is to ensure the lane tracking errors such as lateral deviation and course deviation approach to zero [8, 9]. Many advanced control algorithms have been applied in LKS controller to achieve accurate lane tracking, such as robust control [10, 11], model predictive control [12], sliding mode control [13], and fuzzy control [14]. Most of the algorithms mentioned above are modelbased or deviationbased algorithms. The modelbuilding errors and external input disturbance may affect the control accuracy. On the other hand, especially at high speed, above algorithms cannot function well in the aspect of path tracking due to time delay and the fragility of algorithms themselves in a complex environment.
Artificial potential field (APF) algorithm is favored by many scholars in the area of vehicle dynamics control [15, 16] due to its visualized mathematical presentation and strong control ability in complex dynamic environments. Besides, the potential field item can be increased according to the different requirements and the algorithm can be combined with the vehicle dynamics. APF algorithm has been also applied in the lane keeping control by some researchers. In Ref.Â [17], Rossetter et al. carried out the research about Lyapunov based performance guarantees for the potential field lanekeeping assistance system. In Ref.Â [18], Wang Qidong et al. proposed a lane keeping control method based on parametervarying artificial potential field. It can be found from previous researches that the gravitational field is constructed only based on the presight deviation in traditional road artificial potential field algorithm, which leads to long regulation time and poor tracking accuracy in the process of lane keeping for commercial vehicles. In addition, the lateral stability in the lane keeping process is another significant concern. There is no doubt that commercial vehicles are more prone to be instable due to higher center of mass, larger mass and longer wheelbase [19]. According to statistics, 20% of commercial vehicle accidents are caused by lateral roll and lateral instability, 66% of which occur during the turning process [20]. Therefore, it is of great significance to take above two problems into consideration comprehensively. From this viewpoint, the improved APF controller considering the stability of the commercial vehicle is designed to generate the target front wheel angle, which combines road environment information with vehicle dynamics parameters to deduce improved artificial potential field function.
In the improved artificial potential field function, the time to lane crossing (TLC) and parameters related to vehicle stability such as yaw rate and lateral acceleration are taken as repulsion potential field on the basis of gravitational potential field with the previewing lateral deviation. The improved artificial potential field function is a linear combination of the gravitational potential field and the repulsion potential field. The gains in the potential field function play an important role in system stability and lane keeping performance. In this paper, adaptive inertia weight particle swarm optimization (AIWPSO) algorithm is applied to optimize the gains in the potential field function taking the comprehensive evaluation index including path tracking accuracy and lateral stability as the optimization function, and taking the result of stability demonstration based on Lyapunov methodology as the constraints. AIWPSO algorithm is an improvement of PSO algorithm through adaptive adjustment of inertia weight, which is beneficial to realize rapid convergence of algorithm and improve global search capability [21, 22].
The paper is organized as follows. Vehicle dynamics model is constructed in Section 2. The design and stability analysis of lane keeping controller based on improved APF are carried out in Section 3. In Section 4, comprehensive evaluation index is established and the controller parameters are optimized based on AIWPSO algorithm. Simulations and HiL tests are carried out in Section 5 to verify the proposed control strategy based on improved APF algorithm. Followed are the conclusions in the Section 6.
2 Vehicle Dynamics Modeling
A threedegreeoffreedom (3 DOF) dynamics model of the commercial vehicle is built in this paper as a reference model for the controller as shown in Figure 1. In the model, the front wheel angle \(\delta_{f}\) is taken as the input variable. \(\beta\) and \(\omega_{r}\) represent the sideslip angle and yaw rate, respectively. The generalized lateral tire forces are denoted by \(F_{xi}\) and \(F_{yi}\) \((i = 1,2,3,4)\), where we have \(F_{yf} = F_{y1} + F_{y2}\) and \(F_{yr} = F_{y3} + F_{y4}\). According to the linear tire model, we have \(F_{yf} =  k_{f} \cdot \alpha_{f}\) and \(F_{yr} =  k_{r} \cdot \alpha_{r}\).
Based on parallel axis theorem, the relationship between the roll inertia moment \(I_{x}\) and the inertia moment \(I_{xeq}\) about the roll axis through the C.G. of the sprung mass \(m_{s}\) is described as \(I_{xeq} = I_{x} + m_{s} h_{g}^{2}\). To simplify the controller design, it is assumed that \(\sin \phi \approx \phi\), \(\cos \phi \approx {1}\), and \(\beta\) is small enough. Given a vehicle with total mass \(m\), yaw inertia moment \(I_{z}\) and roll inertia moment \(I_{x}\), the equations of vehicle dynamics are obtained in Eq.Â (1)[23]:
where \(k_{f} , \, k_{r}\) represent cornering stiffness of the front and rear wheel respectively, \(k\) is the equivalent roll stiffness of suspension,Â \(c\) is the equivalent damping coefficient of suspension, \(\phi\) is the roll angle, \(\dot{\phi }\) is the roll rate, \(h_{g}\) refers to the distance from center of mass to roll center.
After transformation, we have the following statespace equation
where \(\varvec{A}\), \(\varvec{B}\) are coefficient matrix, \(\delta_{f}\) is the control input variable and state variable is chosen as \(\varvec{X} = [\begin{array}{*{20}c} {v_{y} } & {\omega_{r} } & {\dot{\phi }} & \phi \\ \end{array} ]^{\rm T}\).
The coefficient matrix can be given as follows:
Considering that the 3DOF vehicle dynamics model is simplified, in order to verify the accuracy, it is compared with the Trucksim vehicle model under the condition of same input at the speed of 70 km/h. The input is sinusoidal tire angle with amplitude of 2Â° and frequency of 0.6 rad/s as shown in Figure 2. The outputs are roll angle, yaw rate and lateral acceleration as shown in Figure 3. From the comparison results, it can be seen that the 3DOF vehicle dynamics model has high accuracy, which meets the requirement of APF controller reference model.
3 StabilityConsidered Lane Keeping Control Strategy
3.1 Overall Control Strategy
The improved artificial potential field (APF) algorithm is applied to design the overall control strategy, including improved potential field function construction considering vehicle stability, establishment of comprehensive evaluation index and controller parameter optimization based on adaptive inertia weight particle swarm optimization (AIWPSO) algorithm. The time to lane crossing (TLC) is taken as the source of repulsive force field, which increases the potential field constraint. The yaw rate and lateral acceleration are introduced to improve the driving stability of the commercial vehicle. A comprehensive evaluation index is established including evaluation indexes of lateral deviation, course deviation, vehicle sideslip risk and vehicle rollover risk. The comprehensive evaluation index is taken as the optimization function to optimize parameters of the controller. The overall control schematic diagram is shown in Figure 4. The controller outputs the target front wheel angle and the electrohydraulic hybrid power steering (EHHPS) system implements the tracking of the target front wheel angle. From the steering system, the real front wheel angle is transmitted to the vehicle model in Trucksim software. The vehicle dynamics parameters and lane line information from the vehicle model are the inputs of the potential field function in the lane keeping controller and then a closedloop lane keeping control is carried out.
3.2 Design of the Improved APF Controller
As is presented in Section 2, the vehicle dynamics model can also be described as the following form:
with
In Eq. (3), the first two items \(\varvec{M}\) and \(\varvec{H}\) are related to the inherent properties of the vehicle, and the last item \(\varvec{G}_{1}\) is the control item determined by the external inputs, which is mainly composed of driver input item \(\varvec{G}_{d}\) and potential field function control item \(\varvec{G}_{v}\), in which the force of potential field is the partial derivative of each potential field with respect to the potential field variable and the direction points to the lane centerline.
When the vehicle is at the centerline, there is no lateral deviation and the potential field function control item \(\varvec{G}_{v}\) has almost no influence on the vehicle which is mainly controlled by the driver input item \(\varvec{G}_{d}\). When the vehicle departures, the controller will enable the lane keeping function, which is completely controlled by the potential field function control item \(\varvec{G}_{v}\), namely, \(\varvec{G}_{d}\)=0. By substituting the vehicle dynamics model into the potential field function, the target front wheel angle can be obtained by Eq. (4).
3.3 Establishment of Improved APF Function
As a virtual force method, the basic principle of the artificial potential field method is to construct artificial potential field function and represent the influence of vehicle risk level in the lane environment. Due to the low control accuracy of the traditional road artificial potential field and the instability of commercial vehicles, in this paper, the potential field function is improved on the basis of the traditional road APF, which introduces TLC, yaw rate \(\omega_{r}\) and lateral acceleration \(a_{y}\) into the function to construct the virtual repulsion potential field.
3.3.1 Road Artificial Potential Field Function
The road artificial potential field represents risk level of the vehicle in different areas of the lane. The motion direction of the vehicle in the artificial potential field is consistent with the declining direction of the potential fieldÂ [24, 25]. The road artificial potential field takes the lateral deviation of the preview point as the variable of potential field. The schematic of driverâ€™s preview is shown in Figure 5. When the vehicle drives, the centerline has certain gravitation on the vehicle by the potential field, and the gravitation force increases with the deviation. The gravitation force is the largest at the edge of the lane and the gravitation force is 0 at the centerline. The road artificial potential field function designed in this paper is a quadratic function shown in Eq.Â (5):
where \(c_{1}\) is the gain of artificial gravitational potential field function, \(e\) is the lateral deviation between the vehicle's center of mass and the lane centerline, \(x_{cf}\) is the distance from the center of mass to the action point of the potential field force, \(x_{la}\) is the preview distance, \(\varphi\) is heading angle.
3.3.2 TLC Artificial Potential Field Function
Time to lane crossing (TLC) is an important parameter to judge whether the vehicle will deviate the lane. In this paper, TLC is introduced to establish a potential field function shown as follows:
with
where \(c_{2}\) is the gain of artificial potential field function of TLC, \(1/\tau_{\max }\) is the threshold of TLC, which is timevarying with vehicle adjustment time \(t_{1}\), vehicle response time \(t_{2}\) and driver response time \(t_{3}\).
Due to the complexity of TLC calculation, TLC artificial potential field function is simplified and the control variable regarding TLC artificial potential field is given in Eq. (7) to facilitate the stability proof:
3.3.3 Yaw Rate Artificial Potential Field Function
In this paper, yaw rate is introduced into the artificial potential field. The limit of yaw rate \(\omega_{\mu }\) under the condition of critical instability is the potential field source to construct the repulsion field. The artificial potential field function of yaw rate is shown in Eq. (8):
with
where \(c_{3}\) is the gain of artificial potential field function of yaw rate, \(\omega_{r}\) is the yaw rate, \(\omega_{\mu }\) is the limit of yaw rate, \(\mu\) is the road adhesion coefficient.
3.3.4 Lateral Acceleration Artificial Potential Field Function
It is known that the front wheel angle has great influence on the lateral acceleration, and sharp variation of front wheel angle is likely to result in the vehicle rollover [26]. The lateral acceleration, in this paper, is introduced into the artificial potential field to avoid the vehicle rollover resulted from excessive lateral acceleration. The maximum lateral acceleration of critical rollover is the potential field source to construct the repulsion field. The artificial potential field function of lateral acceleration is presented in Eq. (9):
where \(c_{4}\) is the gain of artificial potential field function of lateral acceleration, \(a_{y\max }\) is the maximum lateral acceleration of critical rollover.
3.3.5 Lane Keeping Controller Based on APF
Combining the artificial potential field functions mentioned above, the general artificial potential field function is presented in Eq. (10):
The output of lane keeping controller is shown in Eq.Â (11):
3.4 LyapunovBased Proof of Controller Stability
Lyapunov function for the control system shown in Eqs.Â (12) andÂ (13) is constructed by the vehicleâ€™s kinetic energy and a new potential energylike term [27]:
with
where \(T_{1}\) is vehicleâ€™s kinetic energy of three free degrees of lateral, yaw and roll.
Because TLC potential field function is simplified and integrated into the controller directly, it can be ignored in the stability proof. Therefore, the new potential energylike term is constructed in Eq. (14):
where \(V_{ela1}\) is reconstructed as Eq.Â (15):
In order to implement the system stability proof, the following criteria need to be met:
Criteria I:Â \(L > 0\),
Criteria II: \(\dot{L} \le 0\).
The criteria I can be demonstrated by verifying that the kinetic energy and potential energy are both positive. It is obvious that the kinetic energy \(T\), potential energy items \(V_{\omega r}\) and \(V_{ay}\) are positive if only \(c_{3}\) and \(c_{4}\) are positive. It needs to be checked whether the potential energy item \(V_{ela1}\) is positive. Converted into the matrix format, \(V_{ela1}\) is given by \(V_{ela1} { = }\varvec{q}_{0}^{\rm T} \varvec{V}_{n} \varvec{q}_{0}\), where \(\varvec{q}_{0} = \left[ {\begin{array}{*{20}c} e & \varphi \\ \end{array} } \right]^{\rm T}\) and the matrix \(\varvec{V}_{n}\) is presented as follows:
Based on Sylvesterâ€™s theorem, a necessary and sufficient condition for a matrix to be positive definite is for all the principal minors to be strictly positive, so \(\left {\varvec{V}_{n} } \right > 0\) only if \(x_{cf} x_{la} > 0\). By definition the condition must be met when \(c_{3}\) and \(c_{4}\) are more than 0.
To meet Criteria II the derivative of Eq. (12) needs to be obtained.Â \(\dot{L}\) is divided into \(\dot{T}_{1} + \dot{V}_{ela1}\) and \(\dot{V}_{\omega r} + \dot{V}_{ay}\) to be proved respectively as is shown in Eq. (16):
with
Combining with 3DOF vehicle dynamics model, after arrangement, Eq. (17) can be obtained:
The above equation is transformed into a matrix form as shown in Eq. (18):
where \(\varvec{q}_{1} = \left[ {\begin{array}{*{20}c} {v_{y} } & {\omega_{r} } & {\dot{\phi }} & \varphi & \phi \\ \end{array} } \right]^{\rm T}\) and matrix \(\varvec{P}\) is given as:
with
Only when the matrix \(\varvec{P}\) is proved to be nonnegative definite, in other words, the determinants of every order sequential principal minors are not less than 0, \(\dot{L}_{{T_{1} + ela}} \le 0\) can be met. Owing to \(\varsigma_{p11}\) is greater than 0, namely the determinant of first order sequential principal minor is greater than 0. After the calculation, it can be found that the determinants of second and third order sequential principal minors are both greater than 0 shown as follows:
The determinant of the fourth order sequential principal minor is shown as follows:
The range of \(c_{1}\) can be obtained from Eq. (21):
The sum of yaw rate and lateral acceleration artificial potential field is shown in Eq. (22):
Given the variables are in the denominator and \(\left {\omega_{r} /\omega_{\mu } } \right \le 1\), the Taylor expansions are conducted for two terms shown in Eq. (23):
The derivative of \(V_{\omega r}\) and \(V_{ay}\) can be given by Eq. (24):
After arrangement, the sum of the derivative of \(V_{\omega r}\) and \(V_{ay}\) can be obtained and be converted into matrix form as:
where \(\varvec{q}_{2} = \left[ {\begin{array}{*{20}l} {\dot{v}_{y} } \hfill & {\omega_{r} } \hfill & {v_{y} } \hfill & {\dot{\phi }} \hfill & \phi \hfill & 1 \hfill \\ \end{array} } \right]^{\rm T}\) and the matrix \(\varvec{Q}\) is given as:
with
As long as the matrix Q is positive definite, \(\dot{V}_{\omega r} + \dot{V}_{ay}\) will be less than 0. According to the form of matrix Q, it can be seen that the positive definite of matrix Q can be proved only by the first and second order sequential principal minor.
Just need to meet following conditions:
To sum up, the Lyapunov stability of the control system is demonstrated under the conditions shown in Eq. (27) which are used for the constraints of controller parameters optimization:
4 Controller Parameters Optimization
4.1 Comprehensive Evaluation Index of Lane Keeping Control System
To evaluate the performance of lane keeping control system mentioned in this paper, a comprehensive evaluation index including path tracking accuracy and lateral stability is established. The evaluation index of path tracking accuracy includes lateral deviation index and course deviation index. The evaluation index of lateral stability is consisted of the evaluation index of vehicle sideslip risk and the evaluation index of vehicle rollover risk [28, 29].
The evaluation indexes representing path tracking accuracy are given by theÂ following expressions:
where \(J_{e}\) is the lateral deviation index, \(J_{\varphi }\) is the course deviation index, \(f\left( t \right)\) is the desired trajectory, \(y\left( t \right)\) is the actual trajectory, \(E^{*}\) is the standard threshold of trajectory error, \(t_{{\text{n}}}\) is the test time, \(\varphi \left( t \right)\) is the actual course angle, \(\varphi^{*}\) is the standard threshold of course angle deviation.
The evaluation indexes about lateral stability are given as follows.
where \(J_{\phi }\) is the evaluation index of vehicle rollover risk, \(\phi \left( t \right)\) is the roll angle, \(\hat{\phi }\) is the standard threshold value of vehicle rollover risk, \(J_{c}\) is the evaluation index of vehicle sideslip risk, \(J_{cf}\) is the evaluation index of sideslip risk of vehicle front axle, \(J_{cr}\) is the evaluation index of sideslip risk of vehicle rear axle, \(F_{{\text{ZAf}}} \left( {\text{t}} \right)\) is the lateral force on the front axle of vehicle, \(F_{{\text{ZAr}}} \left( {\text{t}} \right)\) is the lateral force on the rear axle of vehicle, \(G_{{\text{ZAf}}} \left( {\text{t}} \right)\) is the load on the front axle of vehicle, \(G_{{\text{ZAr}}} \left( {\text{t}} \right)\) is the load on the rear axle of vehicle, \(\mu^{*}\) is the standard threshold value of vehicle sideslip risk.
Combining with Eq. (28) â€“ Eq. (33), the comprehensive evaluation index of lane keeping control system is given by following expression:
where \(w_{e}\) is the weight coefficient of \(J_{e}\), \(w_{\varphi }\) is the weight coefficient of \(J_{\varphi }\),Â \(w_{\varphi }\) is the weight coefficient of \(J_{\varphi }\),Â \(w_{c}\) is the weight coefficient of \(J_{c}\). The weight coefficients of the above evaluation indexes are obtained by entropy weight method [30, 31] which determines the index weight coefficients according to the amount of information provided by the observed values of each subindex, with a sample size of 100 groups. The data source of evaluation index is to select 100 different parameter combinations by sampling different gains of potential field function and substituting them into the simulation model. Evaluation index data is obtained by Trucksim and Simulink cosimulation. The weight coefficients are calculated by Eq. (35)Â andÂ Eq. (36) and the results are shown in Table 1.
with
4.2 Parameters Optimization Based on AIWPSO Algorithm
In order to obtain the optimal controller parameters, the optimization based on AIWPSO algorithm is carried out in which the comprehensive evaluation index and the range of controller parameters are taken as fitness function and optimization constraints respectively. Compared with PSO algorithm, AIWPSO algorithm has both global and local particle swarm search capabilities due to the adaptive inertia weight w with the environment as shown in Eq. (37):
where \(w_{\max }\) and \(w_{\min }\) represent the maximum and minimum value of the inertia weight, \(f_{{{\text{avg}}}}\) and \(f_{\min }\) represent the average and minimum fitness value of all current particles.
In the algorithm, population size is set as 100 and the number of iterations is set as 100. The optimization iteration result is shown in Figure 6 in which Yaxis represents the fitness value and Xaxis represents the number of iterations. By comparison, it is obvious that the convergence rate of AIWPSO is faster than that of PSO and the AIWPSO algorithm gets smaller fitness value. The optimal parameters based on AIWPSO algorithm are shown in Table 2.
5 Simulation Analysis and Experimental Verification
5.1 Simulation Analysis of the Control Strategy
In order to verify the improved APF algorithm in lane keeping control of commercial vehicle, simulations on the TrucksimSimulink platform are conducted under straight road condition and double lane change condition with initial deviation. The vehicle parameters are shown in Table 3. The straight road condition with initial deviation is applied to validate the deviation correction ability of control algorithm. The double lane change condition including straight road and curve road is used to verify the path tracking effect and lateral stability under comprehensive road condition. Besides, the control effect of the improved APF algorithm is compared with the single point presighting driver model and traditional road APF algorithm.
Case 1: Lane keeping control simulation is conducted under straight road condition at the speed of 70 km/h. The initial lateral deviation is set as 0.5 m. The results are shown in Figure 7.
From the figures, it can be seen that the control effect under the improved APF algorithm is generally better than the single point presighting driver model and the road APF algorithm. In Figure 7(a), the average lateral deviation under the improved APF algorithm is reduced by 14.46% and 20.85% respectively compared with the single point presighting driver model and the road APF algorithm at the speed of 70 km/h. The peak overshoot of lateral deviation under the improved APF algorithm is 22.78% and 65.99% lower than the single point presighting driver model and the road APF algorithm respectively. In Figure 7(b), the average course deviation under the improved APF algorithm is reduced by 22.77% and 31.62% by comparison respectively. It can be also found the course deviation under the improved APF algorithm achieves fast convergence to zero smoothly with smaller overshoot.
Case 2: Lane keeping control simulation is carried out under double lane change condition at the speed of 70 km/h. The path of double lane change condition is shown in Figure 8 and the results are shown in Figure 9.
Under double lane change condition, four indicators are utilized to demonstrate the control effect of the improved APF algorithm, among which lateral deviation and course deviation represent the path tracking accuracy, yaw rate and roll angle represent the lateral stability of the vehicle. Among the three algorithms mentioned above, as shown in Figure 9, the fluctuating range of the indicators is largest under the road APF algorithm, which shows that the road APF algorithm may not meet the requirement of lane keeping control of commercial vehicles. The road APF algorithm only contains gravitational field based on the presight deviation without considering repulsion field and vehicle dynamics constrains, which leads to low tracking accuracy and poor lateral stability in the process of lane keeping for commercial vehicles. In detail, in Figure 9(a), (b), the average lateral deviation under the improved APF algorithm is reduced by 21.27% and 10.68% compared with the road APF algorithm and the driver model, but the average course deviation is not the lowest compared with the road APF algorithm and the driver model, which may result from the compromise to the lateral stability. The evaluation index of path tracking is reduced by 18.73% and 7.08% by comparison respectively which demonstrates the improved APF algorithm has better performance in terms of tracking accuracy and the introduction of the TLC potential field in the controller is effective. From Figure 9(c), (d), it can be seen that the vehicle has the trend of instability under the road APF algorithm when the vehicle is driving at the sharp corner. In Figure 9(c), yaw rate under the road APF algorithm is beyond the vehicle sideslip limitation of 20Â°/s at the time of 4.8 s and 7.8 s and the vehicle is in a great risk of sideslip. It is obvious that the improved APF algorithm has the remarkable effect on peak shaving of yaw rate, which decreases the risk of vehicle sideslip. Although the roll angle is under the limitation of vehicle rollover, the slightly high value affects the driving comfort. By calculation, the average peak of yaw rate is reduced by 45.16% and 18.63%, and average roll angle is reduced by 30.14% and 14.63% compared with the road APF algorithm and the driver model respectively. The evaluation index of lateral stability is reduced by 27.51% and 5.91%, which demonstrates the improved APF algorithm enhances the lateral stability significantly by introducing yaw rate and lateral acceleration into the potential field function. From the perspective of comprehensive evaluation index, the value is reduced by 23.4% and 6.5%, which reflects the improved APF algorithm improves the comprehensive performance of path tracking accuracy and lateral stability.
5.2 Experiment Verification of the Control Strategy
In order to verify the effectiveness of lane keeping control strategy based on the improved APF in the actual controller, the hardware in the loop (HiL) test for the proposed control strategy is carried out. The overall schematic diagram of HiL test is shown in Figure 10.
In the HiL test, the actual controller is connected to the virtual controlled model by communication card, which not only reduces the development cycle of electromechanical products, but also reduces the interference of some unnecessary factors on the control effect. The hardware of the HiL test platform is consisted of the upper computer, the simulator and D2P controller. The software system of the HiL test platform mainly includes controlled object model, control model and upper computer system configuration. The controlled object model is compiled in MATLAB and transferred to the simulator by the upper computer. Based on the D2P controller, the control model and project files are established, and the control model is compiled and downloaded to the D2P controller. The digital signal output from the controlled object model in the simulator is transferred to the D2P controller. Under the calculation and processing of the control algorithm, the control signal is transmitted to the controlled object model through the communication card, which forms a closedloop control.
The test is implemented under the double lane change condition at the speed of 70 km/h. The HiL test results are shown in Figure 11.
Figure 11 shows the comparison of lane keeping control effect between simulation and HiL test under double lane change condition. In Figure 11(a), (b), it can be seen from the HiL test results, the lateral deviation increases to a certain extent, and the heading angle is adjusted when the vehicle completes the second large angle steering, but the driving path is basically the same with that in the simulation. In terms of lateral stability, Figures 11(c), (d) show that the improved APF algorithm has a certain peak clipping effect on the yaw rate and roll angle at several sharp corners. Although the peak value has a certain increase, the increase range is small, and it does not exceed the stability limit, so as to ensure that it is not in the instable state.
In general, there are some differences between the HiL test results and simulation results in part which results from the delay and discrete setting of HiL test environment, and the control is continuous in the simulation while discretization preprocessing is required in HiL test. In addition, the running carrier of HIL test is different from that of simulation. The differences are yet within the reasonable range and the trend of the observed variables in HiL test is basically consistent with that in the simulation, which reflects the effectiveness and feasibility of the commercial vehicle lane keeping control based on the improved APF algorithm in the actual controller significantly.
6 Conclusions
The improved APF control algorithm is proposed for the lane keeping system in the commercial vehicle to achieve better path tracking accuracy and the lateral stability. Main conclusions are drawn as follows.

(1)
In this paper, the dynamics model of vehicle in MATLAB/Simulink is constructed and verified by the comparison with Trucksim vehicle model. TLC, yaw rate and lateral acceleration are introduced into the traditional road artificial field function to establish the improved artificial field function.

(2)
The stability of the improved APF control system is proved based on Lyapunov theory and the ranges of the controller parameters are determined. Comprehensive evaluation index is established and the controller parameters are optimized based on AIWPSO algorithm.

(3)
The simulations and HiL tests are carried out. From the results, it can be seen that the accuracy of path tracking is improved by introducing the TLC potential field. In terms of lateral stability, the introduction of yaw rate and lateral acceleration as repulsive force field not only guarantees the path tracking accuracy, but also improves the lateral stability especially under the condition of sharp corner.

(4)
This paper only considers the lateral control of the vehicle during the path tracking. In the future, we shall put more efforts in the coordination of the lateral and longitudinal control to improve the control effect of the lane keeping system especially under severe conditions.
Data availability
The data are available from the corresponding author on reasonable request.
References
FARS Encyclopedia. Vehicles involved in single and twovehicle fatal crashes by vehicle maneuver. Washington, D. C.: National Highway Traffic Safety Administration, 2016: 8788.
C Satterfield, H W McGee, F R Hanscom. Lowcost safety improvements for horizontal curves: A new FHWA publication highlights proven, costeffective treatments that help reduce runoffroad and roadway departure crashes on rural roads. Public Roads, 2009, 72(5): 3031, 3335.
R L Hammond, S A Soccolich, R J Hanowski. The impact of driver distraction in tractortrailers and motorcoach buses. Accident Analysis and Prevention, 2019, 126: 1016.
X J Han, W D Zhao, H Y Zheng, et al. Research on lanekeeping control strategy for bus. International Journal of Heavy Vehicle Systems, 2019, 26 (34): 291314.
A T Nguyen, C Sentouh, J C Popieul. Sensor reduction for driverautomation shared steering control via an adaptive authority allocation strategy. IEEEASME Transactions on Mechatronics, 2018, 23(1): 516.
C Hu, Y C Qin, H T Cao, et al. Lane keeping of autonomous vehicles based on differential steering with adaptive multivariable supertwisting control. Mechanical Systems and Signal Processing, 2019, 125: 330346.
Y G Bian, J Y Ding, M J Hu, et al. An advanced lanekeeping assistance system with switchable assistance modes. IEEE Transactions on Intelligent Transportation Systems, 2020, 21(1): 385396.
W Jeon, A Zemouche, R Rajamani. Tracking of vehicle motion on highways and urban roads using a nonlinear observer. IEEEASME Transactions on Mechatronics, 2019, 24(2): 644655.
J P Vasconez, D Carvajal, F A Cheein. On the design of a humanrobot interaction strategy for commercial vehicle driving based on human cognitive parameters. Advances in Mechanical Engineering, 2019, 11(7).
Y S Son, W Kim, S H Lee, et al. Robust multirate control scheme with predictive virtual lanes for lanekeeping system of autonomous highway driving. IEEE Transactions on Vehicular Technology, 2014, 64(8): 33783391.
W W Chen, L F Zhao, H R Wang, et al. Parallel distributed compensation/h(infinity)control of lanekeeping system based on the takagisugeno fuzzy model. Chinese Journal of Mechanical Engineering, 2020, 33: 61.
Z Li, G J Cui, S S Li, et al. Lane keeping control based on model predictive control under region of interest prediction considering vehicle motion states. International Journal of Automotive Technology, 2020, 21(4): 10011011.
C Hu, Z F Wang, Y C Qin, et al. Lane keeping control of autonomous vehicles with prescribed performance considering the rollover prevention and input saturation. IEEE Transactions on Intelligent Transportation Systems, 2020, 21(7): 30913103.
H B Wang, W Cui, Z Xia, et al. Vehicle lane keeping system based on TSK fuzzy extension control. Proceedings of the Institution of Mechanical Engineers Part DJournal of Automobile Engineering, 2020, 234(23): 762773.
Y Rasekhipour, A Khajepour, S K Chen, et al. A potential fieldbased model predictive pathplanning controller for autonomous road vehicles. IEEE Transactions on Intelligent Transportation Systems, 2017, 18(5): 12551267.
U OrozcoRosas, O Montiel, R Sepulveda. Mobile robot path planning using membrane evolutionary artificial potential field. Applied Soft Computing, 2019, 77: 236251.
E J Rossetter, J C Gerdes. Lyapunov based performance guarantees for the potential field lanekeeping assistance system. Journal of Dynamic Systems Measurement and ControlTransactions of the ASME, 2006, 128(3): 510522.
Q D Wang, Z Y Wei, W W Chen, et al. Lane keeping coordination control based on parametervarying artificial potential field. Journal of Mechanical Engineering, 2018, 54(18): 105114. (in Chinese)
Y Marumo, T Yokota, A Aoki. Improving stability and lanekeeping performance for multiarticulated vehicles using vector follower control. Vehicle System Dynamics, 2020, 58(12): 18591872.
A S Trigell, M Rothhamel, J Pauwelussen, et al. Advanced vehicle dynamics of heavy trucks with the perspective of road safety. Vehicle System Dynamics, 2017, 55(10): 15721617.
A A Nagra, F Han, Q H Ling. An improved hybrid selfinertia weight adaptive particle swarm optimization algorithm with local search. Engineering Optimization, 2019, 51(71): 1151132.
X Tian ,Y L Gao. A new improved adaptive hybrid particle swarm optimization algorithm. Applied Mechanics and Materials, 2013, 427: 17101713.
T Chen, L Chen, X Xu, et al. Passive faulttolerant path following control of autonomous distributed drive electric vehicle considering steering system fault. Mechanical Systems and Signal Processing, 2019, 123: 298315.
Y J Huang, H T Ding, Y B Zhang, et al. A motion planning and tracking framework for autonomous vehicles based on artificial potential field elaborated resistance network approach. IEEE Transactions on Industrial Electronics, 2020, 67(2): 13761386.
Y Rasekhipour, A Khajepour , S K Chen, et al. A potential fieldbased model predictive pathplanning controller for autonomous road vehicles. IEEE Transactions on Intelligent Transportation Systems, 2017, 18(5): 12551267.
W Z Zhao, X X Qin, C Y Wang. Yaw and lateral stability control for fourwheel steerbywire system. IEEEASME Transactions on Mechatronics, 2018, 23(6): 26282637.
L Liu, S H Ding, L Ma, et al. A novel secondorder sliding mode control based on the Lyapunov method. Transactions of the Institute of Measurement and Control, 2019, 41(4): 10681078.
S D Liu, Z S Hou, T T Tian, et al. Path tracking control of a selfdriving wheel excavator via an enhanced datadriven modelfree adaptive control approach. IET Control Theory and Applications, 2020, 14(2): 220232.
W L Zhang, L Drugge, M Nybacka, et al. Active camber for enhancing path following and yaw stability of overactuated autonomous electric vehicles. Vehicle System Dynamics, 2021, 59(5): 800821.
M Muqeem, A F Sherwani, M Ahmad, et al. Application of the Taguchi based entropy weighted TOPSIS method for optimisation of diesel engine performance and emission parameters. International Journal of Heavy Vehicle Systems, 2019, 26(1): 6994.
S Balasubramaniyan, T Selvaraj. Application of integrated Taguchi and TOPSIS method for optimization of process parameters for dimensional accuracy in turning of EN25 steel. Journal of the Chinese Institute of Engineers, 2017, 40(4): 267274.
Acknowledgements
Not applicable.
Funding
Supported by National Natural Science Foundation of China (Grant Nos. 51605199, U20A20333,Â 52225212), Six Talent Peak Funding Projects in Jiangsu Province of ChinaÂ (Grant No. 2019GDZB084), Key Science and Technology Support Program in Taizhou City of ChinaÂ (Grant No. TG202307).
Author information
Authors and Affiliations
Contributions
BT, ZL and ZX were in charge of the whole trial; BT and ZY wrote the manuscript; BT and HJ conceived and designed the research; ZH assisted with sampling and laboratory analyses. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Competing Interests
The authors declare no competing financial interests.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Tang, B., Yang, Z., Jiang, H. et al. StabilityConsidered Lane Keeping Control of Commercial Vehicles Based on Improved APF Algorithm. Chin. J. Mech. Eng. 37, 19 (2024). https://doi.org/10.1186/s10033024009910
Received:
Revised:
Accepted:
Published:
DOI: https://doi.org/10.1186/s10033024009910