Adaptive Cruise Control Strategy Design with Optimized Active Braking Control Algorithm

&e braking quality is considered as the most important performance of the adaptive control system that influences the vehicle safety and ride comfort remarkably. &is research is aimed at designing an adaptive cruise control (ACC) system based on active braking algorithm using hierarchical control. Taking into account the vehicle with safety and comfort, the upper decision-making controller is designed based on model predictive control algorithm. &rottle controller and braking controller are designed with feedforward and feedback algorithms as the bottom controller, where the braking controller is designed based on the hydraulic braking model. &e whole model is simulated collaboratively with Amesim, Carsim, and Simulink. By comparison with the full deceleration model, the results show that the proposed algorithm can not only make the vehicle maintain a safe distance under the premise of following the target vehicle ahead effectively but also provide favorable driving comfort.


Introduction
In recent years, one of the most important goals in the automotive industry has been to offer passengers the highest level of safety, comfort, and efficiency by partially or completely removing driving duties from humans. Advanced Driver Assistant System (ADAS) has become a research hotspot in the field of intelligent transportation; it not only improves the road capacity [1], but also ensures the safety of drivers and vulnerable road users to some extent [2,3]. Studies have shown that the active safety systems, such as adaptive cruise control, electronic stability control, or lane keeping assistant, which are already on the automotive market, can improve safety by decreasing the number of traffic accidents, among which the ACC helps a lot to reduce the driver's work intensity; an ACC equipped vehicle uses radar or other sensors that detect the distance and speed to other preceding vehicles (downstream vehicles) on the highway. In the absence of preceding vehicles, the ACC vehicle travels at a driver-set speed. If a preceding vehicle is detected on the highway by the vehicle's radar, the ACC system determines to control the throttle and braking system so as to maintain an expected distance and acceleration from the preceding vehicle [4]. e planning and decision-making modules are the "brain" of the vehicle and have a high degree of intelligence. All response actions of the vehicle are performed according to the instructions issued by the module. By processing and calculating the real-time state information and environmental information of the vehicle, this module can plan the most reasonable vehicle movement state and send it to the execution control module [5]. e most critical parts for the ACC, the planning and decision-making module, need to decide the optimal control target according to the relative motion state between the host vehicle and the target vehicle: expected longitudinal acceleration or distance [6]. So far, the decision algorithms of the ACC mainly have the following forms: PID feedback control, model predictive control, fuzzy logic control, and optimal control [7][8][9][10].
Longitudinal control is the basic function of ACC system where the control technology is used to achieve constant speed driving of the vehicle, maintaining the distance between vehicles or the time between vehicles to follow the leading vehicle, identifying and tracking the curve of the vehicle ahead, automatic braking, and other functions. e quality of the longitudinal control effect has a direct impact on the safety and comfort of ACC system. e executive control module mainly achieves rapid response to the instructions issued by the planning and decision module and precise tracking of the expected goal through the precise control of the driving system and the braking system. ACC system in accordance with the working conditions can be divided into cruise mode, following mode, and overtaking mode [11]; the research scope of this article is car-following model, whose function is to keep an appropriate distance and speed with the leading vehicle. In order to further improve the effect of vehicle longitudinal control, dynamic model has become one of the key links in the field of vehicle longitudinal control. Among them, Zhan established a longitudinal dynamic model and braking system model for ACC system [12]. e researchers adopted longitudinal control method based on vehicle longitudinal inverse model and used vehicle inverse model to control electronic throttle and braking pressure [13,14].
With the development of ACC system, more and more working conditions involve speeds of 30 km/h and below, so the vehicle longitudinal control has experienced the development process from single throttle control to combined throttle-braking control [15]. Due to strong robustness, low accuracy requirements for controlled objects, and no need for accurate modeling, classical control methods represented by PID control and numerical look-up tables are widely used. In addition, many researchers use the modified form of PID controller to study longitudinal control of vehicles, and try to improve longitudinal control effect by improving PID controller [16,17].
Adaptive Neural Network scheme has been used in a platoon, in order to solve the traffic stability problem [18]. PID algorithm is used to directly control the accelerator pedal and the brake pedal to control the acceleration and deceleration of the vehicle to maintain the distance from the preceding vehicle [19,20]. e fuzzy logic-based ACC controller is used to make one vehicle follow another vehicle stably, having no shock during the process of the accelerator and brake switching [21,22]. e fuzzy ACC system with speed sign detection capability and synovial control is used for adaptive control system [23,24]. e change of signal light is also considered to control the driving of vehicles at intersections [25]. e prospective velocity of the preceding vehicle is estimated by a prediction model based on the measured intervehicle distance and the I2V communication to enable an anticipatory driving behavior for the controlled vehicle [26].
One can conclude from the research that the previous active braking functions of adaptive cruise-following system also did not fully consider the ride comfort and hydraulic hysteresis problem. is research is aimed at designing an ACC considering the vehicle ride and proposing an analysis model based on active braking algorithm using hierarchical control.
In this paper, considering the safety, comfort, and the physical characteristics of hydraulic braking system, by switching on and off the valve and motor start-stop, adjusting the hydraulic cylinder pressure, a new ACC control strategy based on active braking is proposed. By comparison with the full deceleration model, the proposed method can improve the braking ride comfort obviously. e remainder of this paper is structured as follows: Section 2, modeling; Section 3, control algorithm research; Section 4, simulation and discussion; Section 5, conclusions.

Modeling
is paper is aimed at designing a control scheme that could guarantee safety considering the vehicle characteristic and ensure braking comfort at all times. As shown in Figure 1, the vehicle longitudinal dynamics model, the hydraulic braking system, and the control mechanism are included in the proposed research model. e main idea of the controller model is as follows: (1) e real-time safety distance according to the vehicle speed and the actual distance and relative speed between leader vehicle and follower vehicle are obtained as the controller input. (2) e limitation of the acceleration and relative distance of the follower vehicle is calculated by the longitudinal dynamics model. (3) e expected acceleration of the follower vehicle is calculated and the optimized brake pressure is transmitted to the executive agency including active brake controller and active throttle controller. (4) e braking pressure is produced by the hydraulic braking system, and the vehicle speed slows down. In this process, the brake pressure information is also transmitted to the longitudinal dynamics model.

Vehicle Dynamics Model.
In this paper, Carsim software is used to build vehicle dynamics model for collaborative simulation. e vehicles are four-wheel drive B-class hatchback with the engine power of 125 kW, and with the hydraulic ABS braking system. e vehicle model includes 7 subsystems: the body, aerodynamics input, transmission system, braking system, steering system, suspension system, and the tire. e parameters of the vehicles are shown in Table 1. e output of the model includes the longitudinal velocity v, acceleration a, engine speed ω e , and position S.

Vehicle Reverse Longitudinal Dynamics
Model. In the ACC system, the control command from the host controller is a desired vehicle acceleration that needs to be shifted to the desired throttle opening and brake pressure by the vehicle reverse longitudinal dynamic model, which then transmitted to the vehicle longitudinal dynamics model to control the vehicle acceleration, deceleration, or uniform motion in order to achieve the function of the car adaptive cruise system [27,28].

Mode Switch.
To the vehicle dynamics system, acceleration and braking are separate movements. When braking, the car should first release the accelerator pedal, using engine drag, wind resistance, and rolling resistance and other ways to brake. If the above action still cannot meet the needs of vehicle deceleration, then depress the brake pedal, applying brake force to increase vehicle deceleration. Besides, taking into account the driving comfort and the reliability of the corresponding parts of the vehicle, the designing process should avoid frequent switching between acceleration control and braking control.
It is easy to directly measure the maximum deceleration value a max at different speeds in Carsim software, as shown in Figure 2. In order to improve the driving comfort of the vehicle, the width of the transition area is set on the upper and lower sides of the switching curve, which is generally taken from experience. e expected acceleration of the vehicle is defined as a fdes . According to the switching curve, when a fdes ≥ a max , the car switches to acceleration control. On the contrary, when a fdes ≤ a max , the car switches to braking control.

Acceleration Control.
If the vehicle switches to acceleration control mode, it is necessary to do as the expected acceleration requires. e expected torque is calculated from    the expected acceleration, and then the desired throttle opening can be checked through the engine mapping. Without considering the conversion quality of rotating parts, the longitudinal dynamic analysis of the vehicle is analyzed and the vehicle longitudinal dynamics model is as follows: where a fdes is the expected acceleration, m is the vehicle mass, F t is the driving force, F xb is the braking force, F(v) is the sum of the resistances, C D is the air resistance coefficient, A is the frontal area, ρ is the air density, v is the car speed, g is the gravitational acceleration, and f is the rolling resistance coefficient. Regardless of the elastic deformation of the transmission system, the driving force can be calculated as follows: where η is the mechanical efficiency, T e is the engine torque, ω t is the torque converter turbine speed, ω e is the engine speed, i g is the transmission gear ratio, i 0 is the main gear ratio, τ(ω t /ω e ) is a torque converter characteristic function, r is the wheel rolling radius, and K d is a variable that can be observed in real time: When the vehicle is accelerating, F xb � 0. And the expected engine output torque can be obtained according to the transmission gear ratio and speed ratio: It is easy to get the throttle opening of the engine from the mapping by taking the throttle opening required to output different torques at different speeds. e values are expressed as follows:

Braking Control.
If the car switches to braking control mode, it is necessary to do as the expected deceleration requires. e desired braking force can be calculated according to the desired acceleration, and the braking pressure can be obtained through the braking reverse model [29].
In this case, the engine output torque is terminated, T e � 0; according to equation (2), it can be seen that F t � 0; the vehicle longitudinal force can be shown as e braking force and braking pressure can be approximated as a linear relationship as follows: where K b is a constant. It is not hard to calculate the braking pressure from equations (6) and (7):

Active Braking Hydraulic System
Model. e expected acceleration got from upper-level decision controller is transformed by the inverse vertical dynamic model into the desired braking pressure or desired throttle opening to the underlying accelerator and brake actuator. Active braking objective is archived by controlling the plunger pump and valves to start or stop to achieve the object hydraulic oil pressure, thereby controlling the brake calipers.

Designing of the Active Braking Principle.
e simplified hydraulic structure of active braking system is shown in Figure 3. e working principle is as follows. If the system switches into the active braking mode, there are three active modes: booster, packing, and decompression. When pressure increases, high-pressure directional valve 6 and directional valve 5 are opened and the pump motor is started. Brake fluid flows through high-pressure valve 6 and motor pump and then through the inlet valve 12 into the wheel cylinder, then pushing the piston of wheel cylinder to slow down the wheel rotate speed. When braking force reaches a certain intensity, active braking system switches into the pressure hold-on mode, directional valve 5 is opened, pump motor and high-pressure valve 6 are closed, and wheel cylinder pressure keeps constant at this state. When pressure decreases, the high-pressure valve 6 is opened, directional valve 5 and the motor are closed, and the braking fluid flows into the low-pressure accumulator 9, increasing the braking fluid storage of the accumulator. In the process of the new pressure increase case, plunger pump 8 works, and the braking fluid flows out of the low-pressure accumulator 9 and then through inlet valve 12 to the wheel cylinder.

Modeling of the Hydraulic Braking System
(1) Accumulator model e pressure and volume of the accumulator follow the idea gas law. e mathematical model is as follows: where P A and V A are the inflation pressure and accumulator capacity, respectively, P 1 and P 2 are the highest and the lowest pressure values of the accumulator, and V 1 and V 2 are the highest and the lowest volume values of the accumulator. Considering that the braking process could be seen as adiabatic, n � 1.4. Apart from these, P A should meet the requirement that 0.25P 1 ＜P A ＜0.9P 2 .
(2) Motor pump model e motor starts to work when the accumulator pressure is below the lower limit and stops when the accumulator pressure reaches the upper limit. e mathematical model is as follows [30]: (i) where Q b is the oil pump flow rate, V c is the pump displacement, ω is the motor speed, P out and P in are the output and input of pump pressure, respectively, E is the bulk modulus of braking fluid, and α is the pump pressure factor. (3) High-speed switch solenoid switch model For the on-off action of the solenoid switch that is controlled by the input voltage, there will be a certain delay phenomenon. In addition, inertia of the spool can also cause delay. e mathematical model of the high-speed on-off valve with the second-order delay is as follows: where K 1 is the current gain, ω is the valve frequency, and ξ is the equivalent damping ratio of the valve. (4) Restrictor model e restrictor controls the flow rate by the order of system pressure, and the mathematical model is as follows: where q is the hydraulic medium flow, A is the effective circulation area of valves, χ is the hydraulic diameter, ρ is the fluid density, Δp is the valve's pressure difference, ] is the sports viscosity, and Re is the critical Reynolds number. (5) Braking model e braking model is as follows: where m is the brake caliper mass, b is the brake caliper displacement, P is the hydraulic cylinder braking pressure, C eq is the equivalent damping, K m is the spring stiffness, x 0 is the spring initial position, and S is the area of hydraulic cylinder cross section.

Control Algorithms
Due to the complex conditions of the vehicle following, the former researches have shown that the ACC system should both control the vehicle speed and adapt to external interference such as the leading vehicle's velocity [31,32]. Independent hierarchical control method is used in the proposed ACC model. And the control method is divided into the upper controller (decision-making controller) module and the bottom controller (underlying executive module controller). e upper controller determines the expected acceleration a fdes based on the driving information provided by the sensors and the driver's settings at this time. Based on the output from the upper controller, the bottom controller makes the vehicle dynamics system to achieve the desired acceleration.

Establishment of the Follower Model.
Car-following model is built based on the driver desired distance and the vehicle dynamic characteristic. Equation (14) describes the driver desired distance [33], and equation (15) shows the relationship of the vehicle dynamic: where d des is the expect distance, T h is the time headway, v f is the velocity of the following vehicle, and d 0 is the minimum safe distance when the two vehicles stop. It is clear that the distance error and the velocity difference can be as follows: where d is the factual distance, Δ d is the distance error, v l is the velocity of the leading vehicle, and Δv is the velocity difference.
A simulation system is built to analyze the vehicle dynamic relationship. e frequency response method is adopted to identify the system input and output characteristics, and finally the transfer function is obtained as equation (18): where K is the gain and T is the time delay. Combining equations (16)- (19), the car-following model can be as follows: where x is the system status variable; u is the system input; λ is the disturbance of the input, which is the preceding vehicle's acceleration a p here; A ′ , B ′ , and G ′ are the coefficient matrix of the input.

Performance Index Design
(1) Following performance index e ACC system needs to control the vehicle following the leading vehicle steadily, and the following performance is manifested in the performance index of speed and the safety index [34][35][36].
e square sum of the speed error Δv(k) and the distance error Δ d(k) is taken as the following performance index: ,w Δ d and w Δv are the distance error weight and speed error weight, s f is the displacement of the front car, and s h is the distance of the car traveled. e following performance index in the forecast time domain is as follows: (2) Safety index e vehicle should keep a safe distance to avoid collision. Meanwhile, the distance between the two vehicles should avoid being too large to avoid accidental vehicle insertion. e vehicle should also keep an appropriate speed difference to ensure safety and to increase traffic efficiency. And the velocity error between two vehicles should not be too large. e optimization problem is solved subject to desired intervehicle distance and acceleration limitation, which are incorporated as constraints.
erefore, the constraints of the vehicle distance error and speed error are as follows: (3) System prediction optimization Based on the index functions and constraints established before, the integrated index for the optimization problem is established as follows: where P is the length of the predictive sample time. System constraints are as follows: From the above analysis, the objective optimization problem of the system can be described as follows: subject to

Bottom Controller Design.
e bottom controller is the system that ensures the vehicle response is constant with the expected value calculated by the upper controller as much as possible. e desired acceleration from the upper controller is translated into the desired braking pressure or throttle opening to the braking controller and the throttle controller via the inverse longitudinal braking model.

rottle Controller.
e PID algorithm is adopted in the throttle controller to ensure the system is working in robust and reliable condition. e algorithm takes the linear combination of the error's proportion (P), integral (I), and differential (D) as control variables and controlling object.
e PID control law is as follows: where ε is the difference between the expected acceleration a des and the actual car acceleration a, K p is the proportional gain, T I is the integration time constant, and T D is the derivative time constant. e conversion to transfer function is as follows:

Braking
Controller. e purpose of the braking pressure controller is to make the real braking pressure and the expected as close as possible so as to follow up the desired acceleration. Due to inertial links (mechanical system inertia, electrical system inertia, and control system inertia) of the active braking control system, real-time control value cannot act on the control system timely. Even if the parameters of the classical discrete PID algorithm are optimized, the control result still has serious lag and overshoot, which cannot meet the control requirements. e ideas for solving these problems will be given in the next paragraph.
By using proportional feedback control, it is easy to double the interference noise in feedback acceleration, which is not conducive to the stability. Feedback control structure is used to make the actual pressure follow the target pressure. And the feedforward control structure is used to improve the controller execution response to recuperate the time lag of the feedback controller. e cooperation of the feedback and feedforward controller is used to eliminate the static error and improve the accuracy of acceleration control. e overall structure of the braking controller is shown in Figure 4.
Feedforward compensator uses the look-up table method. According to the pressure difference between the actual pressure and the ideal pressure of the hydraulic cylinder, the system controls the duty cycle signal of the increasing and reducing valve so as to control the pressure change rate of the hydraulic cylinder, precisely controlling the hydraulic cylinder pressure.
When the pressure difference is active, the system will select a larger duty cycle in order to quickly increase or reduce hydraulic cylinder pressure. When the pressure difference is positive, the system will choose a smaller duty cycle to accurately track the ideal pressure, and to improve the wheel pressure accuracy and robustness [37,38], specifically as listed in Table 2, where X is the pressure difference, Y1 is the valve duty signal of the booster valve, and Y2 is the duty cycle of the valve control signal of the pressure reducing valve.
Similar to the throttle controller, the PID algorithm is used in the braking controller. e difference between the expected braking pressure and the actual braking pressure is taken as the target control variable. From the design process, one can conclude that the designs of the feedforward compensator and the feedback compensator do not affect each other and can be performed independently.

Simulation and Discussion
A collaborative simulation model is built by Matlab/ Simulink, Carsim, and Amesim to validate the proposed algorithm. e simulation parameters and restrictions are defined, as shown in Table 3.
Simulation    4.1. S-1 Follow Distance Adjustment. During the time 0 − 5 s, the actual distance between the two vehicles is greater than the desired distance; the system judges the condition is safe. e upper controller instructs the bottom controller to accelerate to shorten the distance to improve the traffic efficiency. e braking controller is on the standby mode, and the throttle is in a small opening. As the velocity increases, the expected distance also increases.

S-2 Follow Velocity Adjustment.
As the velocity of the follower vehicle increases, the expected distance increases also. e actual distance is shortened as the velocity difference increases; the system judges the condition is in danger. e upper controller instructs the bottom controller to decelerate to lengthen the distance to improve the safety. e throttle controller is on the standby mode; the braking controller opens valves 5 and 6 and starts the brake pump ( Figure 3); and the braking pressure is increased. And then, the vehicle deceleration increases, and the velocity of the follower vehicle decreases near the velocity of the leading vehicle.

S-3 Follow with the Leading Vehicle.
As the leading vehicle accelerates during 15-25 s and decelerates during 35-42 s, the follower vehicle changes the throttle opening and braking pressure, keeping the desired distance and speed. As can be seen from Figure 7, although the acceleration of the vehicle has slight fluctuation, the acceleration falls in a narrow range of − 3 to 2 m/s 2 , which ensures the ride comfort. As can be seen in Figure 8, the target pressure follows the change of the desired acceleration response quickly and steadily with less hysteresis.
To illustrate purposes and evaluate results conveniently, a comparison with a state-of-the-art ACC used in the automotive industry research is analyzed [39]. In this paper, the safety and comfort are evaluated and provided directly. e full declaration method is used in the mode which presents detailed simulation results for one considered scenario. e results show that the velocity of the leading vehicle accelerates from 10 m/s-15 m/s and the acceleration of follower vehicle falls in a width range of − 10 − 5 m/s 2 . e jerk caused by application of full braking results in uncomfortable driving.
By comparison, the proposed strategy results show that the acceleration of the vehicle has slight fluctuation and fast response, which implies comfortable driving without jerky maneuvers. e ability of keeping intervehicle distance as close as possible to safe distance shows good tracking performance. In this way, both safety and comfort are achieved by utilizing the proposed model based on optimization of active braking strategy.

Conclusions
is research is aimed at proposing an ACC strategy considering the safety and comfort based on the active braking where the system hysteresis problem is included. For this purpose, vehicle dynamics model, vehicle reverse longitudinal dynamics model, and active hydraulic braking system model are proposed. And the models are simulated in Carsim, MATLAB/Simulink, and Amesim collaboratively. e control algorithm is proposed and optimized to improve the ride comfort. From the results, it can be seen that the velocity and distance values are preserved in the specified comfortable range although the vehicle velocity changes obviously: (1) e control algorithm based on the model predictive control algorithm can be optimized by considering the multivariable constraints simultaneously; that is to say, the cruise-following control safety can be ensured and the ride comfort can be satisfied. (2) e proposed algorithm is evaluated by comparison with using full deceleration simulation, and it shows active performance on position and velocity tracking. us, we can conclude that the proposed approach guarantees safety and comfort for ACCequipped vehicles in low velocity conditions.
is study only focuses on the occupant kinematics during the pre-crash period; the occupant kinematics and injury indexes within the in-crash phase of such typical scenario require subsequent study.

Data Availability
All data included in this study are available upon request to the corresponding author.

Conflicts of Interest
e authors declare no conflicts of interest.