Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Improved MPC for trajectory planning of self-driving cars

  • Kai Sun,

    Roles Data curation, Investigation, Methodology, Software, Validation, Visualization, Writing – original draft, Writing – review & editing

    Affiliation Electrical and Electronic Engineering, Changchun University of Technology, Changchun, Jilin Province, China

  • Niaona Zhang ,

    Roles Project administration

    zhangniaona@163.com (NZ); jch@ccut.edu.cn (CJ)

    Affiliation Electrical and Electronic Engineering, Changchun University of Technology, Changchun, Jilin Province, China

  • Zonghao Li ,

    Contributed equally to this work with: Zonghao Li

    Roles Conceptualization

    Affiliation College of Automotive Engineering, Jilin University, Changchun, Jilin Province, China

  • Haitao Ding,

    Roles Funding acquisition

    Affiliation College of Automotive Engineering, Jilin University, Changchun, Jilin Province, China

  • Heshu Zhang,

    Roles Formal analysis

    Affiliation Electrical and Electronic Engineering, Changchun University of Technology, Changchun, Jilin Province, China

  • Changhong Jiang

    Roles Funding acquisition

    zhangniaona@163.com (NZ); jch@ccut.edu.cn (CJ)

    Affiliation Electrical and Electronic Engineering, Changchun University of Technology, Changchun, Jilin Province, China

Abstract

To tackle the challenges associated with lane changes in diverse driving environments, this study introduces an Improved Model Predictive Control (IMPC) approach that integrates vehicle state and driving context to execute maneuvers effectively. Initially, a simplified model is established, incorporating vehicle position, velocity, and driving conditions. Subsequently, a Sigmoid function is utilized to restrict vehicle movements, while Finite State Machine (FSM) decision-making selects appropriate maneuvers in real time according to changing driving conditions. In addition, a discrete Simplified Dual Neural Network (SDNN) is utilized to efficiently solve Quadratic Programming (QP) problems, overcoming the slow-solving issue of traditional MPC and ensuring rapid acquisition of longitudinal and lateral accelerations for lane changes, braking, and overtaking maneuvers. Finally, the results from hardware-in-the-loop (HIL) simulation validation indicate that IMPC can efficiently address collision avoidance with surrounding dynamic vehicles across three distinct driving scenarios.

Introduction

In recent years, advancements in vehicle technology and artificial intelligence have fostered the emergence of autonomous vehicles. Data indicate that many road traffic accidents stem from driver negligence and delayed reactions. Self-driving vehicles could significantly enhance road safety, enhance passenger comfort, and decrease driver workload [1,2]. Furthermore, they can effectively mitigate these incidents. Consequently, research on autonomous vehicles has become pivotal, emphasizing collision avoidance and overtaking maneuvers under varying driving conditions. This paper introduces the IPMC method to tackle these challenges.

When performing obstacle avoidance and overtaking tasks, autonomous vehicles can determine their path by utilizing road conditions and surrounding vehicle information collected by sensors. Additionally, they adapt the planned path in response to changes in the surrounding environment [3]. Typically, completing obstacle avoidance and overtaking maneuvers comprises two main components: decision-making and control. The decision-making component generates appropriate maneuver decisions, which are subsequently transmitted to the control component. The control component executes these maneuvers while adhering to the constraints of vehicle dynamics and environmental conditions, thereby accomplishing the obstacle avoidance and overtaking tasks [4]. In summary, an obstacle avoidance and overtaking system consists of two interrelated yet independent parts: path planning and trajectory tracking.

The methods of path planning [5,6] comprise graph-based search algorithms (e.g., Dijkstra’s algorithm [7] and A * algorithm [8]), local planning algorithms (e.g., artificial potential field method [9] and dynamic window approach [10]), sampling-based algorithms (e.g., Rapidly-exploring Random Trees [11]), parameter optimization methods (e.g., Bezier curve method [12] and Sigmoid method [13]), and numerical optimization methods. This study utilizes the Improved Model Predictive Control (IMPC) methodology within numerical optimization methods. MPC [14] can integrate road boundary constraints, vehicle dynamics constraints, and drivable area constraints as unified constraints within the prediction process. Moreover, MPC can allocate weights effectively based on the lane-changing context. During the optimization process, more accurate prediction results can be obtained by adjusting the prediction model, objective function, and constraints (e.g., vehicle dynamics and physical limitations). Additionally, future output predictions can be enhanced by adjusting the prediction and control horizons [1518].

Many scholars have explored the challenges of lane-changing and overtaking in autonomous driving systems. Alrifaee [19] introduced two linear constraints: the Forward Collision Constraint (FCC) and the Rearward Collision Constraint (RCC). These constraints incorporate surrounding vehicles and lane boundaries as barriers within the MPC framework to define feasible driving regions for the ego vehicle. Nilsson [20,21] proposed a method that utilizes a structured environment for formulating low-complexity rolling horizon planning, effectively addressing the high computational complexity associated with trajectory planning. Coskun [22] conducted reachability analysis on surrounding vehicles using dynamic models to predict their future movements accurately. Jalalmaab [23] employed constant safety distances in constraint settings to ensure vehicle safety, although enhancing flexibility in lane-changing under complex scenarios is required. Brown [24] and Esterle [25] utilized enveloping and combinatorial reasoning methods to generate collision-free areas that involve multiple MPC controllers, ensuring stability in individual control strategies, yet necessitating enhanced computational efficiency for joint control scenarios. Combining the strengths and weaknesses of these studies, this paper introduces a function graph akin to a Sigmoid function used for overtaking trajectories. Traditionally employed for overtaking trajectories, the Sigmoid function [2629] here acts as a constraint barrier to prevent collisions, offering time-varying navigable regions for moving vehicles. A decision variable is assigned to the Sigmoid function. When overtaking is not feasible, braking and deceleration are initiated until the left lane is safely navigable. When encountering obstructed vehicles, scenarios involving both lane-changing and braking are considered, necessitating the introduction of a decision-making function. Various decision-making methods applicable to autonomous driving [30]. Markov decision processes [31] can simulate agents making stochastic decisions in environments where system states exhibit Markov properties. Q-Learning [32] optimizes agent behavior strategies through learning over state-action pairs. Finite state machines (FSM) model a discrete mathematical approach to studying a finite number of states and transitions between them. Due to their simplicity in handling basic behaviors such as lane changing and braking, FSM [33] is chosen as the decision-making algorithm for its ease of implementation, real-time responsiveness, and simplicity of application. In this study, FSM-generated activation signals are combined with the sigmoid function to impose different constraint conditions on Model Predictive Control (MPC).

During vehicle operation, prompt responses are necessary when encountering obstructed vehicles. However, the iterative optimization speed of MPC is insufficient to meet the real-time and rapid requirements of vehicle movement. The solving process of MPC fundamentally entails online solving of constrained quadratic programming problems. Enhanced MPC integrates a discretized simplified dual neural network that converts constraint intervals into set-point controls through steady-state optimization, thereby effectively reducing computational burdens. Lastly, the neural network resolves the Quadratic Programming (QP) problem, thereby significantly enhancing MPC’s solving speed.

The contributions of this paper are summarized as follows:

  1. Introducing the Sigmoid function as a constraint barrier to regulate the travel range of the autonomous vehicle. This innovation allows for travel planning without the need to generate specific travel trajectories.
  2. Integrating the activation function into MPC constraints involves generating it from the FSM decision, which governs lane changes and braking. This integration reduces the number of constraints and selects optimal maneuvers for specific driving scenarios.
  3. Introducing discrete SDNN to solve MPC reduces computation time and enhances the response time of self-driving vehicles.

The structure of this paper is depicted in Fig 1. Section 2 establishes the model. Section 3 addresses the obstacle avoidance trajectory planning problem, (1) encompassing the setup of vehicle driving conditions; (2) behavioral decision-making employing the FSM algorithm; (3) pre-optimization of parameters for the Sigmoid function; (4) establishment of constraints and objective functions; (5) Generation of Sigmoid Constraint Barriers Section 4 presents the discrete SDNN for rapid QP problem-solving. Section 5 conducts simulation analyses under three distinct scenarios. Section 6 concludes the paper and provides future perspectives.

thumbnail
Fig 1. IMPC Trajectory Planning Framework.

Green, red, and purple respectively denote the decision-making, modeling, and trajectory-planning components.

https://doi.org/10.1371/journal.pone.0320359.g001

Model development

Different vehicle models are suitable for various modeling scenarios, and the choice of model significantly influences final prediction outcomes [34]. For example, simpler scenarios require straightforward vehicle models to prevent excessive parameterization that could degrade response times. In this study, MPC is employed to predict the trajectory of the ego vehicle for collision-free overtaking planning. The prediction process focuses exclusively on the longitudinal and lateral velocity, position, and acceleration, treating both the ego vehicle and surrounding vehicles as point masses in motion. Therefore, a point mass model is employed in this study to predict the motion of both the ego vehicle and surrounding vehicles. This model simplifies vehicle dynamics by disregarding size-related information and load transfer due to longitudinal and lateral accelerations, describing vehicle motion as that of a single mass point. Such models are commonly used in the path-planning phase of autonomous vehicles, effectively reducing the computational complexity in trajectory planning [35] (Fig 2).

thumbnail
Fig 2. Automotive point mass model.

(x, y) denotes the vehicle coordinate system, while (X, Y) represents the global coordinate system.

https://doi.org/10.1371/journal.pone.0320359.g002

The kinematic equations for the point mass model are as follows:

(1)

Where, x and y represent the vehicle’s longitudinal and lateral directions in the vehicle body coordinate system, while X and Y denotes the geodetic coordinate system, with φ representing the vehicle’s heading angle. From the equation above, this system can be considered a control system with input and state variable The general form of this system can be expressed as:

(2)

Simply put:

(3)

The forward Eulerian discretization yields:

(4)

Where ,

Transforming the equation results in

(5)

The resulting state space expression is:

(6)

Where , , n represents the control variables, and m represents the state variables.

The predicted output is expressed as:

(7)

Where:

Following the discretization of the kinematic equations of the point mass model in both horizontal and vertical directions:

(8)

Where and represent the velocities of the self-vehicle in the longitudinal and transverse directions, respectively. x and y denote the positions of the self-vehicle in the lateral and longitudinal directions along the simulated road. and denote the lateral and longitudinal accelerations of the self-vehicle, while represents the sampling period. The velocity and positions of the front and left vehicles are as follows:

(9)

Where, and denote the longitudinal and transverse velocity differences between the i vehicle and the self-vehicle. and represent the longitudinal and transverse distances between the i vehicle and the self-vehicle, respectively, while and signify the accelerations of the i vehicle along the longitudinal and transverse axes.

Obstacle avoidance trajectory planning

Establishing vehicle driving conditions

Barrier-free overtaking trajectory planning necessitates the control of autonomous vehicles across varied driving conditions. Fig 3 illustrates typical real-world scenarios encountered by autonomous vehicles in everyday operations. In this scenario, Car1 is positioned ahead of the ego vehicle, while Car2 is in the adjacent left lane. The ego vehicle E modifies its actions—such as braking and overtaking—according to the behaviors of these vehicles and the surrounding conditions. The objectives of this trajectory planning include:

thumbnail
Fig 3. Vehicle driving diagram.

The red vehicle represents the ego vehicle, the green vehicle denotes the obstacle vehicle, and the red border indicates the safety zone.

https://doi.org/10.1371/journal.pone.0320359.g003

  1. Ensuring the vehicle travels along the centerline of the lane.
  2. Maintaining an appropriate travel speed.
  3. Adhering to physical and dynamic constraints.
  4. Avoid collisions with surrounding vehicles already at the lane boundary.

The architecture comprises two layers: the decision-making and trajectory-planning layers. The decision layer determines lane changes or braking and formulates these tasks as MPC constraints. A Finite State Machine (FSM) triggers specific activation functions based on constraints to execute various driving maneuvers. Throughout driving, real-time monitoring of nearby road occupancy and distances between the vehicle and the front and left vehicles ensures collision avoidance. Fig 1 illustrates that once the vehicle reaches a safe distance from the preceding vehicle, it evaluates the availability of the left lane. If clear, the vehicle changes lanes; otherwise, it remains in its current lane. In case the front vehicle decelerates beyond a safe braking distance, the vehicle initiates braking until the left lane clears, then changes lanes, returning to its original lane after overtaking, contingent on conditions, thereby completing obstacle avoidance and overtaking maneuvers. The overtaking trajectory follows an S-shaped path that adjusts dynamically to real-time road conditions. A pre-optimized Sigmoid function adjusts constraints post-sampling for optimal trajectory planning. The MPC computes appropriate outputs based on these constraints to execute optimal overtaking maneuvers. This study assumes knowledge of self-vehicle speed, positions of surrounding vehicles, and a straight road configuration.

FSM-based decision-making

The FSM (Fig 4) algorithm determines braking or overtaking actions based on surrounding information, adjusting vehicle speed or lane position to ensure safety by considering adjacent lane usage, and the distance and speed of preceding vehicles. Depending on the scenario, it generates an appropriate activation function sent to the MPC to execute the corresponding driving response. The flowchart outlining this process is depicted below.

thumbnail
Fig4. FSM flowchart.

Blue denotes the vehicle’s operational processes, while green represents the decision parameters.

https://doi.org/10.1371/journal.pone.0320359.g004

Where represents the lane change activation function; the vehicle initiates a lane change when . denotes the braking activation function; braking occurs when .This activation function guides subsequent Sigmoid constraint barriers, serves as input to the MPC for trajectory generation, and determines the transverse and longitudinal acceleration of the autonomous vehicle.

Pre-optimization of the sigmoid function

The sigmoid function possesses the properties of boundedness, continuity, differentiability, and strict monotonicity, making it widely utilized in function-based trajectory planning algorithms. In this study, the Sigmoid function serves as an overtaking barrier in trajectory planning. The formulation of the Sigmoid function is given by [2629]:

(10)

Where represents the lateral offset of the vehicle, denotes the longitudinal distance required to reach the symmetric path point (this point is selected on the path to enhance smoothness and stability during path planning), and parameter ζ formally defines the function’s curvature, where a higher value indicates sharper steering. To ensure the barrier function’s safety and precision, preprocessing of the curvature parameter (Fig 5) can be integrated into the MPC.

thumbnail
Fig 5. Pre-optimization flowchart.

The left side represents inputs, while the right side represents outputs. Green denotes the pre-optimization of curvature parameters, and purple indicates the MPC operational process.

https://doi.org/10.1371/journal.pone.0320359.g005

The optimization of curvature form parameters is as follows. The formula for calculating curvature is:

(11)

Where:

When changes minimally, it can be approximated that and .

In conclusion, the formula for curvature calculation can be rewritten as:

(12)

After calculation, the heading angle and curvature are [28]:

(13)(14)

From the formula above, it is evident that the curvature depends on parameter ζ, allowing modification of the Sigmoid constraint barrier’s shape. Various lane-changing techniques exist with differing curvatures, yet adherence to physical and road safety constraints is paramount in vehicle travel. Thus, constraining lane change curvature within MPC involves integrating it as a set of constraints, where the curvature ρ must adhere to limits defined between minimum and maximum curvatures.

The maximum curvature is obtained at the inflection point of the Sigmoid function, specifically at . Substituting the determined inflection point x value into yields the maximum curvature value . At this point, the curvature parameter ζ also achieves its maximum value:

(15)

where is a constant determined through calculation . The maximum curvature of the safety trajectory must satisfy vehicle dynamics constraints. Steering should not exceed the maximum lateral acceleration, which is influenced by the friction between the vehicle and the road surface, as well as the front wheel steering angle. Lateral acceleration depends on the friction factor between the vehicle and the road surface, along with the front wheels’ rotation angle. The upper limit of lateral acceleration is determined by , Where determines the upper limit of yaw rate . represents the longitudinal velocity of the vehicle, μ denotes the friction factor between the car and the ground, and g stands for gravitational acceleration. For ensuring turn stability, the maximum curvature of the lane change trajectory correlates with the maximum yaw rate:

(16)

Unlike the maximum curvature , the minimum curvature considers geometric constraints, specifically ensuring that collisions are avoided during vehicle overtaking, as detailed in reference [29].

(17)

Where represents the permissible error to waypoint . Optimization of ζ can be integrated into MPC, where is treated as constraints in each rolling optimization, thereby generating standardized overtaking trajectories.

Cost function and constraints of trajectory planning

Objectives 1 and 2 involve driving along the lane centerline at an appropriate speed, formulated as a cost function:

(18)(19)

Where and . The input represents changes in the lateral and longitudinal acceleration of the vehicle. represents the cost function involving optimized slack variables, where denotes the control time domain, signifies the prediction time domain, indicates the number of surrounding vehicles, and χ stands for the weight variable

To ensure both driving comfort and adherence to physical conditions, the hard constraints are:

(20)

The vehicle’s longitudinal and lateral velocities are coupled to a certain extent. The slip angle β constrains the relationship between longitudinal and lateral velocities [29], expressed as:

(21)

According to the small-angle approximation theorem, the above equation can be approximated as . To ensure driving safety, the vehicle’s slip angle must satisfy:

(22)

In summary, the longitudinal velocity can be constrained to be:

(23)

Road traveling constraints for:

(24)

Where L is the width of the car, and are the upper and lower boundaries of the road.

Generation of sigmoid constraint barriers

In a realistic scenario of autonomous driving, each vehicle forms a Sigmoid constraint barrier. This S-type barrier function convexifies the navigable area around the ego vehicle, as illustrated in Fig 6.

thumbnail
Fig 6. Generate Sigmoid barrier.

The green region denotes the accessible area.

https://doi.org/10.1371/journal.pone.0320359.g006

For safety reasons, the autonomous vehicle must maintain a safe distance from the preceding vehicle and operate within a collision-free zone beyond the critical area. This depends on driving conditions and the decision-making module, which can be implemented through overtaking or braking maneuvers. When the ego vehicle approaches the hazardous zone of Car1, if the left lane is safe, a lane change may be executed. The feasibility of lane change is ensured by the S-shaped constraint barrier depicted in the figure. If the adjacent lane is occupied, the autonomous vehicle enters the danger zone (marked in red), making overtaking impossible (Fig 7). In such cases, it is necessary to adjust the speed and maintain a safe distance from the preceding vehicle.

thumbnail
Fig 7. Brake schematic diagram.

The ego vehicle must neither cross the safety red line nor change lanes.

https://doi.org/10.1371/journal.pone.0320359.g007

The safety zone fluctuates over time and is contingent upon the state of the autonomous vehicle and the velocities of nearby vehicles. The Sigmoid constraint barrier allows the autonomous vehicle nearing a danger zone to maneuver into a collision-free zone. This mechanism is integrated into the MPC framework and triggered by an activation signal from the decision module [14].

(25)

Where is the lateral distance that should be retained between the self and the vehicle in front, which includes the width of the vehicle, ζ denotes the pre-optimized curvature geometry parameter; and stands for the longitudinal safety distance of the workshop, as defined by references [36,37]:

(26)

Where represents the speed of the autonomous vehicle, denotes its acceleration, signifies the speed of the obstacle vehicle, indicates the obstacle vehicle’s acceleration, t denotes the reaction time for peripheral information transmission, and denotes the minimum safe distance required. It should be noted that the sign of depends on the vehicle’s lane position: it is positive when the autonomous vehicle is in the right lane and intends to change to the left lane, and negative when in the left lane changing to the right lane. Once in the overtaking lane, the vehicle can return to its original lane after ensuring a safe distance from the vehicle behind, completing the lane-change maneuver.

The FSM parameters are obtained from the following equation

(27)

Simplified dual neural network for rapid MPC solution

In the rolling optimization process of MPC, the predicted output of the model can be expressed analytically and used to derive the optimal control sequence through quadratic programming [38]. Setting allows for the reformulation of Equation (18) as:

(28)

The optimal solution to the above equation yields:

(29)

Expressed in the form of a quadratic programming problem:

(30)

where , , , if or corresponds to a one-sided inequality constraint; if and , the corresponding inequality constraint does not exist.

Based on the duality principle, the dual problem of the above equation can be formulated as:

(31)

Where is the Lagrange multiplier, setting and substituting into the above equation yields:

(32)

For the quadratic programming problem, its Karush-Kuhn-Tucker Conditions (KKT) conditions are:

The above equation can be simplified to:

(33)

Where is a piecewise linear vector function defined as follows:

(34)

According to equation (33):

(35)

Where .

Based on the above, the Simplified Dual Neural Network model (SSDN) can be constructed as follows:

State Equation:

(36)

Output equations:

(37)

Where v is the state variable; and is the scaling factor that regulates the speed of convergence of the simplified dual neural network model.

Let , and bring in the state equation can be obtained:

(38)

Where z represents neurons, denotes a nonlinear activation function and is a symmetric weight coupling matrix. In this context, SSDN can be viewed as a periodic neural network model.

The above is the continuous SDNN model, and the discrete SDNN model by the Runge-Kutta method is as follows:

State Equation:

(39)

Output equations:

(40)

Where denotes the step size and the rest of the notation is as follows:

This discretized SDNN can be applied in Model Predictive Control (MPC) for rolling optimization. Regarding the quadratic programming of J, the correspondence between the parameters of the discretized SDNN and those of the quadratic programming is as follows:

(41)

Based on the preceding discussion, the primary metric for evaluating the solution efficiency of neural networks is computational complexity, as evidenced by equations (29) and (36). The number of neurons in the SDNN is directly related to the number of bilateral inequality constraints, with W and E being known parameters. Consequently, solving the MPC using SDNN does not require operations such as matrix decomposition or inversion. In comparison to traditional solution methods, SDNN exhibits lower computational complexity, thereby demanding fewer resources and delivering superior algorithmic efficiency.

The convergence of SDNN and its relationship with the optimal solution of quadratic programming can be theorized by [38]:

Theorem I: SDNN has stability in the sense of Lyapunov and converges globally to the equilibrium point .

Theorem II: The equilibrium output of SDNN is the optimal solution of quadratic programming, where is the equilibrium state point of SDNN.

The comparison of solution speeds between SDNN and traditional methods under varying conditions is presented in Fig 8(a). As the number of iterations increases, the performance gap in solution speed between conventional methods and SDNN becomes more apparent. This is primarily attributed to the increased computational complexity of matrix inversion and decomposition in conventional methods. The use of SDNN leads to a substantial improvement in solution speed. As shown in Fig 8(b), compared to other variant solution methods, SDNN exhibits superior speed in solving the MPC, regardless of whether the system is single-input or multi-input, provided the step size remains fixed.

thumbnail
Fig 8. (a) Comparison between SDNN and Traditional Methods. The horizontal axis represents the prediction horizon, while the vertical axis denotes computation time; red denotes traditional methods, and blue represents SDNN. (b) Comparison of different algorithms under different inputs. The horizontal axis represents algorithm type and total surrounding computation speed, with red lines indicating single input and blue lines representing multiple inputs.

https://doi.org/10.1371/journal.pone.0320359.g008

Simulation analysis

This study employs a hardware-in-the-loop (HIL) setup based on the National Instruments LabVIEW RT platform to validate the effectiveness of the proposed IMPC further. The IPC2 is integrated with the environment simulation software SCANeR, which facilitates the driving environment. Veristand-RT invokes individual submodules, establishes connections between sub-signals, and deploys the model onto the lower computer. The real-time version of CarSim-RT, provided by CarSim, operates in real-time through frequency synchronization with the lower computer, closely approximating actual vehicle dynamics. CarSim-RT updates the vehicle’s position, speed, and acceleration, and displays HIL simulation imagery. The lower computer encodes signals in CAN format for data transmission, and the Controller Area Network (CAN) bus facilitates data exchange between the various platforms. This HIL experiment sets the control cycle to 10 ms, with the CAN bus baud rate configured at 500 kbps. Vehicle parameters and driving information are provided in Tables 1 and 2.

This study examines four distinct scenarios of dual-lane driving to demonstrate the feasibility of the proposed method, which not only achieves overtaking objectives but also satisfies constraints on slip angle β and yaw rate φ to ensure lateral stability (Fig 9).

thumbnail
Fig 9. Hardware in the loop experimental platform.

Showcasing our team’s ongoing hardware in the loop experiment process.

https://doi.org/10.1371/journal.pone.0320359.g009

Simulation parameters are presented in the following Table 1.

The simulated vehicle driving environment information is presented in Table 2.

Driving information of the ego vehicle relative to surrounding vehicles in three driving scenarios.

  1. There is a slower vehicle ahead, and a faster vehicle occupies the left lane.

The ego vehicle travels at 30 m/s. An obstacle vehicle in the left lane travels faster than the ego vehicle. The vehicle ahead moves slower than the ego vehicle, preventing safe overtaking. Initially, the ego vehicle applies brakes and waits for the left lane to clear before attempting to overtake. During overtaking, it first decelerates to 25 m/s without changing lanes. Once the left lane is clear, the ego vehicle changes lanes, ensuring a safe distance between vehicles ahead and behind. It then returns to its original lane and resumes traveling at 30 m/s, as illustrated in the ego vehicle trajectory diagram (Figs 10, 11, 12).

thumbnail
Fig 10. Schematic diagram of the overtaking process.

Illustration depicting the changes in the ego vehicle’s state relative to surrounding vehicles during the overtaking process.

https://doi.org/10.1371/journal.pone.0320359.g010

thumbnail
Fig 11. Diagram of driving trajectory and steering angle.

The figures sequentially depict the trajectory, heading angle, and slip angle throughout the overtaking maneuver.

https://doi.org/10.1371/journal.pone.0320359.g011

thumbnail
Fig 12. Graph of acceleration, velocity, and angle change rate.

From top to bottom, the figures depict the images of yaw rate, velocity, lateral acceleration, and longitudinal acceleration during the overtaking process.

https://doi.org/10.1371/journal.pone.0320359.g012

  1. The preceding vehicle is obstructing, while the left lane remains vacant.

The vehicle travels at a speed of 30 m/s. The vehicle ahead decelerates, and the left lane is clear. When the vehicle approaches too closely to the preceding vehicle, it reduces its speed from 30 m/s to 28.89 m/s in preparation for overtaking. Upon entering the left lane, the vehicle maintains a safe following distance before merging back into the original lane and restoring its initial speed (Figs 13, 14, 15).

thumbnail
Fig 13. Schematic diagram of the overtaking process.

Illustration depicting the changes in the ego vehicle’s state relative to surrounding vehicles during the overtaking process.

https://doi.org/10.1371/journal.pone.0320359.g013

thumbnail
Fig 14. Diagram of driving trajectory and steering angle.

The figures sequentially depict the trajectory, heading angle, and slip angle throughout the overtaking maneuver.

https://doi.org/10.1371/journal.pone.0320359.g014

thumbnail
Fig 15. Graph of acceleration, velocity, and angle change rate.

From top to bottom, the figures depict the images of yaw rate, velocity, lateral acceleration, and longitudinal acceleration during the overtaking process.

https://doi.org/10.1371/journal.pone.0320359.g015

  1. There is a slower vehicle ahead, and a slower vehicle occupies the left lane.

The vehicle starts off traveling at 25 m/s. Encountering slower traffic ahead, it notices a faster but distant obstacle in the left lane when approaching too closely. The vehicle accelerates to 30 m/s to pass the slower traffic safely, then returns to its original lane, maintaining a speed of 30 m/s (Figs 16, 17, 18).

thumbnail
Fig 16. Schematic diagram of the overtaking process.

Illustration depicting the changes in the ego vehicle’s state relative to surrounding vehicles during the overtaking process.

https://doi.org/10.1371/journal.pone.0320359.g016

thumbnail
Fig 17. Diagram of driving trajectory and steering angle.

The figures sequentially depict the trajectory, heading angle, and slip angle throughout the overtaking maneuver.

https://doi.org/10.1371/journal.pone.0320359.g017

thumbnail
Fig 18. Graph of acceleration, velocity, and angle change rate.

From top to bottom, the figures depict the images of yaw rate, velocity, lateral acceleration, and longitudinal acceleration during the overtaking process.

https://doi.org/10.1371/journal.pone.0320359.g018

  1. There is a slower vehicle ahead, and a faster vehicle occupies the left lane.(Wet and slippery road surface on rainy days)

The subject vehicle is traveling at a speed of 30 m/s. In the left lane, an obstacle vehicle is traveling at a speed greater than that of the subject vehicle. The vehicle ahead is traveling at a slower speed than the subject vehicle, preventing the subject vehicle from overtaking safely. The subject vehicle first applies the brakes and waits until the left lane is clear before attempting to overtake. The trajectory of the subject vehicle is depicted in the figure. During the overtaking maneuver, the subject vehicle first reduces its speed to 25 m/s and refrains from changing lanes. Once the left lane is clear, the subject vehicle changes lanes. After confirming a safe distance between the subject vehicle and the vehicles in front and behind, the subject vehicle returns to its original lane and resumes a speed of 30 m/s. Compared to normal weather conditions, controlling the subject vehicle’s speed during acceleration and deceleration is more challenging, and the speed curve becomes more pronounced (Figs 1921).

thumbnail
Fig 19. Schematic diagram of the overtaking process.

Illustration depicting the changes in the ego vehicle’s state relative to surrounding vehicles during the overtaking process.

https://doi.org/10.1371/journal.pone.0320359.g019

thumbnail
Fig 20. Diagram of driving trajectory and steering angle.

The figures sequentially depict the trajectory, heading angle, and slip angle throughout the overtaking maneuver.

https://doi.org/10.1371/journal.pone.0320359.g020

thumbnail
Fig 21. Graph of acceleration, velocity, and angle change rate.

From top to bottom, the figures depict the images of yaw rate, velocity, lateral acceleration, and longitudinal acceleration during the overtaking process.

https://doi.org/10.1371/journal.pone.0320359.g021

Conclusion

This paper proposes a collision-free trajectory planning method integrated with a decision-making process. The method utilizes an Improve Model Predictive Control framework; the Sigmoid function serves as a constraint barrier for vehicle dynamics. During the decision-making process, Finite State Machine parameters dynamically enable or disable constraints. Furthermore, the optimization of decision parameters and Sigmoid parameters is integrated into Model Predictive Control. Finally, Discrete Simplified Dual Neural Network is employed for rapid Quadratic Programming problem solution in MPC, obtaining optimal lateral and longitudinal accelerations, significantly simplifying the solving process. This approach enables timely driving decisions to prevent accidents.Additionally, the proposed method demonstrates adaptability and flexibility in various real-world driving scenarios. Simulation results validate method effectiveness in diverse driving environments, promising future real-time testing on actual vehicles.As the complexity of surrounding driving environments increases, challenges of obstacle avoidance and overtaking escalate. To address this, future work could explore priority-based algorithms in trajectory planning. Further investigations aim to enhance system performance and robustness.

Acknowledgments

We would like to express our gratitude to Professor Haitao Ding for his laboratory simulation work. We express our gratitude to Professor Nianna Zhang for her support. We would like to extend our sincere appreciation to the editor and reviewers for their anticipated feedback and valuable suggestions on this manuscript.

References

  1. 1. Badue C, Guidolini R, Carneiro RV, Azevedo P, Cardoso VB, Forechi A, et al. Self-driving cars: A survey. Expert Systems with Applications. 2021;165:113816.
  2. 2. Eskandarian A. Advanced Methods and Algorithms for Selected Connected Autonomous Vehicles (CAVs) Benefits. IEEE Trans Intell Transport Syst. 2024;25(4):405–42.
  3. 3. Zhu H, Yuen K-V, Mihaylova L, Leung H. Overview of Environment Perception for Intelligent Vehicles. IEEE Trans Intell Transport Syst. 2017;18(10):2584–601.
  4. 4. Liao Y, Yu G, Chen P, Zhou B, Li H. Integration of Decision-Making and Motion Planning for Autonomous Driving Based on Double-Layer Reinforcement Learning Framework. IEEE Trans Veh Technol. 2024;73(3):3142–58.
  5. 5. Li A, Jiang Y, Sun X, Chi H, Niu C, Liu G. Research Status of Intelligent Electric Vehicle Trajectory Planning and Its Key Technologies: A Review. Electrochem. 2022;3(4):688–98.
  6. 6. Dixit S, Fallah S, Montanaro U, Dianati M, Stevens A, Mccullough F, et al. Trajectory planning and tracking for autonomous overtaking: State-of-the-art and future prospects. Annual Reviews in Control. 2018;45:76–86.
  7. 7. Nagarajan U, Kantor G, Hollis R. Integrated motion planning and control for graceful balancing mobile robots. The International Journal of Robotics Research. 2013;32(9–10):1005–29.
  8. 8. Yin C, Tan C, Wang C, Shen F. An Improved A-Star Path Planning Algorithm Based on Mobile Robots in Medical Testing Laboratories. Sensors (Basel). 2024;24(6):1784. pmid:38544046
  9. 9. Zhang W, Xu G, Song Y, Wang Y. An obstacle avoidance strategy for complex obstacles based on artificial potential field method. Journal of Field Robotics. 2023;40(5):1231–44.
  10. 10. Dobrevski M, Skočaj D. Dynamic Adaptive Dynamic Window Approach. IEEE Trans Robot. 2024;40:3068–81.
  11. 11. Zhang R, Chai R, Chai S, Xia Y, Tsourdos A. Design and Practical Implementation of a High Efficiency Two-Layer Trajectory Planning Method for AGV. IEEE Trans Ind Electron. 2024;71(2):1811–22.
  12. 12. Chen T, Cai Y, Chen L, Xu X. Trajectory and Velocity Planning Method of Emergency Rescue Vehicle Based on Segmented Three-Dimensional Quartic Bezier Curve. IEEE Trans Intell Transport Syst. 2023;24(3):3461–75.
  13. 13. Fang Y, Hu J, Liu W, Shao Q, Qi J, Peng Y. Smooth and time-optimal S-curve trajectory planning for automated robots and machines. Mechanism and Machine Theory. 2019;137:127–53.
  14. 14. Ammour M, Orjuela R, Basset M. A MPC Combined Decision Making and Trajectory Planning for Autonomous Vehicle Collision Avoidance. IEEE Trans Intell Transport Syst. 2022;23(12):24805–17.
  15. 15. Dixit S, Montanaro U, Dianati M, Oxtoby D, Mizutani T, Mouzakitis A, et al. Trajectory Planning for Autonomous High-Speed Overtaking in Structured Environments Using Robust MPC. IEEE Trans Intell Transport Syst. 2020;21(6):2310–23.
  16. 16. Guo H, Shen C, Zhang H, Chen H, Jia R. Simultaneous Trajectory Planning and Tracking Using an MPC Method for Cyber-Physical Systems: A Case Study of Obstacle Avoidance for an Intelligent Vehicle. IEEE Trans Ind Inf. 2018;14(9):4273–83.
  17. 17. Chen Y, Yu H, Zhang J, Cao D. Lane-Exchanging Driving Strategy for Autonomous Vehicle via Trajectory Prediction and Model Predictive Control. Chin J Mech Eng. 2022;35(1).
  18. 18. Zuo Z, Yang X, Li Z, Wang Y, Han Q, Wang L, et al. MPC-Based Cooperative Control Strategy of Path Planning and Trajectory Tracking for Intelligent Vehicles. IEEE Trans Intell Veh. 2021;6(3):513–22.
  19. 19. Alrifaee B, Abel D, Ament C. Networked model predictive control for vehicle collision avoidance. Computer Science. 2017.
  20. 20. Nilsson J, Falcone P, Ali M, Sjöberg J. Receding horizon maneuver generation for automated highway driving. Control Engineering Practice. 2015;41:124–33.
  21. 21. Nilsson J, Ali M, Falcone P, Sjoberg J. Predictive manoeuvre generation for automated driving. 16th International IEEE Conference on Intelligent Transportation Systems (ITSC 2013). 2013.
  22. 22. Coskun S. Autonomous overtaking in highways: A receding horizon trajectory generator with embedded safety feature. Engineering Science and Technology, an International Journal. 2021;24(5):1049–58.
  23. 23. Jalalmaab M, Fidan B, Jeon S, Falcone P. Model predictive path planning with time-varying safety constraints for highway autonomous driving. 2015 International Conference on Advanced Robotics (ICAR). 2015:213–7.
  24. 24. Brown M, Funke J, Erlien S, Gerdes JC. Safe driving envelopes for path tracking in autonomous vehicles. Control Engineering Practice. 2017;61:307–16.
  25. 25. Esterle K, Hart P, Bernhard J, Knoll A. Spatiotemporal Motion Planning with Combinatorial Reasoning for Autonomous Driving. 2018 21st International Conference on Intelligent Transportation Systems (ITSC). 2018.
  26. 26. Malayjerdi E, Sell R, Malayjerdi M, Udal A, Bellone M. Practical path planning techniques in overtaking for autonomous shuttles. Journal of Field Robotics. 2022;39(4):410–25.
  27. 27. Huang X, Zhang W, Li P. A Path Planning Method for Vehicle Overtaking Maneuver Using Sigmoid Functions. IFAC-PapersOnLine. 2019;52(8):422–7.
  28. 28. Ammour M, Orjuela R, Basset M. Trajectory Reference Generation and Guidance Control for Autonomous Vehicle Lane Change Maneuver. 2020 28th Mediterranean Conference on Control and Automation (MED). 2020:13–8.
  29. 29. Ben-Messaoud W, Basset M, Lauffenburger J-P, Orjuela R. Smooth Obstacle Avoidance Path Planning for Autonomous Vehicles. 2018 IEEE International Conference on Vehicular Electronics and Safety (ICVES). 2018:1–6.
  30. 30. Wang W, Qie T, Yang C, Liu W, Xiang C, Huang K. An Intelligent Lane-Changing Behavior Prediction and Decision-Making Strategy for an Autonomous Vehicle. IEEE Trans Ind Electron. 2022;69(3):2927–37.
  31. 31. Zheng K, Yang H, Liu S, Zhang K, Lei L. A Behavior Decision Method Based on Reinforcement Learning for Autonomous Driving. IEEE Internet Things J. 2022;9(24):25386–94.
  32. 32. Chen L, Hu X, Tang B, Cheng Y. Conditional DQN-Based Motion Planning With Fuzzy Logic for Autonomous Driving. IEEE Trans Intell Transport Syst. 2022;23(4):2966–77.
  33. 33. Nguyen HD, Choi M, Han K. Risk-informed decision-making and control strategies for autonomous vehicles in emergency situations. Accid Anal Prev. 2023;193:107305. pmid:37741202
  34. 34. Danquah B, Riedmaier S, Lienkamp M. Potential of statistical model verification, validation and uncertainty quantification in automotive vehicle dynamics simulations: a review. Vehicle System Dynamics. 2020;60(4):1292–321.
  35. 35. Chen C, Niemeier D. A mass point vehicle scrappage model. Transportation Research Part B: Methodological. 2005;39(5):401–15.
  36. 36. Yanfeng Cong, Sawodny O, Hong Chen, Zimmermann J, Lutz A. Motion planning for an autonomous vehicle driving on motorways by using flatness properties. 2010 IEEE International Conference on Control Applications. 2010:908–13.
  37. 37. Pan D, Zheng Y. Velocity difference control based on dynamic tracking of safe following distance in the process of vehicle following. IET Intelligent Trans Sys. 2014;8(3):232–43.
  38. 38. Zhang Y, Wang J. A dual neural network for convex quadratic programming subject to linear equality and inequality constraints. Physics Letters A. 2002;298(4):271–8.