A collaborative decision-making control method for autonomous driving vehicles at unsignalized intersections

Through the combination of V2X technology and deep reinforcement learning, the problems of low computational efficiency and insufficient safety in the decision-making control of autonomous vehicles at unsignalized intersections are solved, and an efficient and safe vehicle traffic strategy is realized to adapt to different road environments.

CN115909778BActive Publication Date: 2024-09-17CHANGSHA AUTOMOBILE INNOVATION RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211360782.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-02
Publication Date
2024-09-17
Estimated Expiration
2042-11-02

AI Technical Summary

Technical Problem

The existing decision-making control algorithm for autonomous vehicle traffic at unsignalized intersections has low computational efficiency and poor optimization performance, and it is difficult to ensure the absolute safety of vehicle driving and fairness of traffic.

Method used

Using Markov modeling and deep reinforcement learning methods based on V2X technology, by setting a reasonable state space, action space and reward function, a policy network and a value network are established, combined with the proximal policy optimization PPO for decision planning, and adding based on Formal verification and stipulation of traffic regulations ensure the absolute safety and efficient passage of cars at intersections.

Benefits of technology

It realizes collaborative decision-making control of self-driving vehicles at unsignalized intersections with high safety, high traffic efficiency and low computing overhead. It can perform personalized optimization based on differences in road environments to ensure the traffic performance and fairness of vehicle groups.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115909778B
    Figure CN115909778B
Patent Text Reader

Abstract

The present invention discloses a collaborative decision-making control method for the passage of autonomous driving vehicles at an unsignalized intersection. Compared with the prior art, the global intersection vehicle driving information is obtained through V2X technology, and the traffic strategy takes into account the traffic performance of the vehicle group; the computational overhead cost is low and the real-time control is good; the algorithm can be personalized and optimized according to the differences in the actual road environment to obtain a traffic strategy that is more suitable for the current intersection topology; formal verification and regulations based on traffic regulations are added to ensure the absolute safety of autonomous driving vehicles driving at intersections.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field related to traffic decision-making, and specifically to a collaborative decision-making control method for autonomous driving vehicles passing through an unsignalized intersection. Background Art

[0002] In recent years, with the rapid development of my country's economy, the number of cars has increased rapidly year by year, causing increasingly serious traffic congestion problems, especially in areas without signal intersections. Cars come from all directions, converge, intersect and separate, resulting in a large number of driving conflicts, leading to a large number of driving delays and traffic accidents, and having a negative impact on the safety and efficiency of the urban transportation system.

[0003] At present, the algorithms used for traffic decision control of autonomous driving vehicles at unsignalized intersections can be divided into centralized control and distributed control. Centralized control means that when a car drives to an intersection, it sends information such as the current vehicle driving status and the expected driving direction at the intersection to the roadside unit. The roadside unit receives the information sent by all vehicles, calculates the traffic strategy, and then sends the control command to each vehicle. Each vehicle drives through the intersection strictly according to the command; centralized algorithms are mostly based on fixed traffic strategies, traditional mathematical models or reinforcement learning. Typical fixed traffic strategies such as first-come, first-served (FCFS) and road right-of-way formulation usually cannot guarantee good control effects under all traffic flow conditions; traditional mathematical models such as MPC, MILP and other algorithms usually need to be based on a large amount of real-time data, set specific objective functions, and solve the maximum / minimum values ​​to obtain the optimal solution or local optimal solution, and the calculation efficiency is relatively low. Low; The deep reinforcement learning method uses a neural network model to make vehicle traffic decisions. By establishing a reasonable state space, action space and reward function, the intersection vehicle traffic problem is transformed into a deep reinforcement learning problem, using the vehicle driving state information as the input of the neural network and the vehicle control instructions as the output of the neural network; The neural network is trained in a simulation environment, and the neural network parameters are optimized by the reward value obtained by controlling the car driving under the current strategy, thereby completing one iteration, and performing multiple iterations to obtain the optimal control strategy; Since the algorithm constantly explores and tries in the environment, it is usually difficult to ensure the absolute safety of car driving; Distributed control means that there is no roadside unit for centralized scheduling, and each vehicle communicates directly to decide the vehicle's traffic plan at the intersection; Most of the control methods in existing research are centralized, because it is difficult to control the traffic efficiency of the vehicle group at the intersection in a distributed manner, and it is difficult to ensure the fairness of traffic.

[0004] Therefore, in order to solve the existing problems of low computational efficiency, poor optimization performance and lack of safety performance in vehicle traffic decision-making at road intersections, the present invention proposes a centralized collaborative decision-making planning method for autonomous driving vehicles at signal-free intersections to coordinate the driving of multiple autonomous driving vehicles at signal-free intersections. From a global perspective, the traffic performance of the vehicle group is considered to ensure good traffic efficiency and driving comfort while ensuring the safety of vehicle driving. Summary of the invention

[0005] The purpose of the present invention is to provide a collaborative decision-making control method for autonomous driving vehicles passing through unsignalized intersections to solve the problems raised in the above-mentioned background technology.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] A collaborative decision-making control method for autonomous driving vehicles passing through an unsignalized intersection comprises the following steps:

[0008] Markov modeling is performed by setting a reasonable state space, action space and reward function. The state space represents the set of all states of the environment in which the agent is located, the action space represents the set of all actions that the agent can take in the environment, and the reward function represents the corresponding result of the agent taking a certain action in a certain state;

[0009] Based on the actor-critic architecture, a policy network and a value network are established. The policy network is used to select the action that the agent needs to take based on the current environment state, and the value network is used to evaluate the corresponding result after the current action is taken;

[0010] The V2X technology is used to collect and control vehicle data in real time, obtain the vehicle's location, speed, and expected driving direction at the intersection, and determine the distance between the vehicle and the intersection, whether there is a path conflict between vehicles, and the distance between the conflict points. The preset roadside unit calculates and obtains control instructions and outputs them to each vehicle.

[0011] Proximal policy optimization PPO is used for decision planning. The agent's environmental state is used as input. The agent chooses the action to be taken according to the current strategy to obtain the environmental state of the next time step. The experienced state and action trajectory are collected for neural network training iteration. The strategy is evaluated in combination with the collected trajectory and value network. The loss function of the strategy network and the value network is calculated and used for strategy update.

[0012] As a further solution of the present invention: the step of performing Markov modeling by setting a reasonable state space, action space and reward function includes:

[0013] Performing scene modeling based on the environment state of the intersection and the motion state of the car, the scene modeling includes lane markings, lane driving rules, vehicle driving state, and the spatial relationship between the vehicles and corresponding lanes;

[0014] A Markov model is established based on state space, action space, reward function, and corresponding state transition probability and discount factor. The state transition probability is used to characterize the probability of the agent taking a certain action from a certain state to another state. When the agent takes an action in a certain state, a certain reward is given. The size of the reward is set based on the result of taking a certain action. The discount factor characterizes the importance of future rewards and short-term rewards, and is used to reward the impact of long-term future rewards on current gains.

[0015] As a further solution of the present invention: the reward function includes a step reward and a round reward;

[0016] The step reward includes a time reward, a synchronization reward for approaching the collision point, and an acceleration reward. The time reward is used to give a negative reward of a certain value at each time step. The synchronization reward for approaching the collision point is used to guide the algorithm to quickly optimize in the direction where the cars do not approach their collision points at the same time to achieve the purpose of rapid collision. The jerk reward is used to improve the driving comfort of the car under the control of the algorithm;

[0017] The round reward includes a collision reward and a pass reward. The collision reward is set based on whether a collision occurs at the end of the round, and the pass reward is calculated based on the number of cars that successfully pass the intersection at the end of the round.

[0018] As a further solution of the present invention: the strategy network and the value network both include an input layer, two hidden layers and an output layer, the input layer is used to input environmental information, i.e., vehicle driving status information, the output layer is used to output vehicle control instructions, and each of the hidden layers includes 128 neurons.

[0019] As a further solution of the present invention: the roadside unit pre-stores an intersection topology structure;

[0020] The intersection topology structure includes the intersection center coordinates, the number of roads, the number and direction of lanes, and the stop line position information. The roadside unit calculates the distance and position relationship between the vehicle and the intersection in real time based on the Cartesian coordinates of the vehicle approaching the intersection, and then determines whether the roadside unit takes over the vehicle movement;

[0021] The driving area of ​​the car when passing through the intersection can be divided into a buffer area, a core area and a departure area. The buffer area represents the area before the car enters the intersection, the core area represents the area formed by the intersection of lanes, and the departure area represents the area after the car exits the intersection and returns to the cruising speed.

[0022] As a further solution of the present invention: the steps of using the proximal strategy to optimize PPO for decision planning can be divided into:

[0023] In the process of the agent selecting actions according to the current strategy and then obtaining the environmental state of the next time step, the state and action trajectory experienced by the agent are collected, and the state of the agent is used as input to train and iterate the neural network;

[0024] In each strategy iteration, the collected states and behavior trajectories are divided into several parts, and each small batch of data is used for training. All trajectory data are reused for a preset number of training times to improve the training efficiency of the sampled trajectories. The value network is used to evaluate the quality of the current strategy to obtain the direction of iterative optimization of the strategy network.

[0025] PPO shares the parameters of the actor network and the critic network, combines the loss function of the policy network and the loss function of the value network, establishes a new loss function LOSS, and uses the gradient descent method to update the network parameters of the policy network and the value network.

[0026] As a further solution of the present invention, it also includes the steps of formal verification and regulation of vehicle driving safety, specifically:

[0027] The safety of vehicle driving is formally verified. Any pair of vehicles with path conflict is judged through the right-of-way judgment rules. When both vehicles have not passed the collision point and the distance between vehicles is less than the safety threshold, a certain deceleration is applied to the vehicle without the right of way to avoid collision. When the vehicle with the right of way passes the collision point, the vehicle without the right of way accelerates to pass.

[0028] Compared with the prior art, the beneficial effects of the present invention are: global intersection vehicle driving information is obtained through V2X technology, and the traffic strategy takes into account the traffic performance of the vehicle group; the computational overhead cost is low and the real-time control is good; the algorithm can be personalized and optimized according to the differences in the actual road environment to obtain a traffic strategy that is more suitable for the current intersection topology structure; formal verification and regulations based on traffic regulations are added to ensure the absolute safety of autonomous driving vehicles driving at intersections. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1The figure is a flowchart of a collaborative decision-making control method for autonomous driving vehicles at an unsignalized intersection.

[0030] Figure 2 The motion state of vehicles at a cross intersection is modeled in a collaborative decision-making control method for autonomous driving vehicles at unsignalized intersections.

[0031] Figure 3 Schematic diagram of the PPO network architecture in a collaborative decision-making control method for autonomous driving vehicles at unsignalized intersections.

[0032] Figure 4 It is a division of intersection driving areas in a collaborative decision-making control method for autonomous driving vehicles at unsignalized intersections.

[0033] Figure 5 Schematic diagram of the right-of-way determination rules in a collaborative decision-making control method for autonomous driving vehicles at an unsignalized intersection.

[0034] Figure 6 The vehicle trajectory selection at a cross intersection in a collaborative decision-making control method for autonomous driving vehicles at an unsignalized intersection is presented.

[0035] Figure 7 This is a diagram of vehicle driving trajectories and collision points at a Y-shaped intersection in a collaborative decision-making control method for autonomous driving vehicles at an unsignalized intersection.

[0036] Figure 8 The experimental results before formalization of a cross intersection scenario for a collaborative decision-making control method for autonomous driving vehicles at unsignalized intersections.

[0037] Fig. 9 The experimental results after formalization of a cross intersection scenario in a collaborative decision-making control method for autonomous driving vehicles at unsignalized intersections.

[0038] Fig.10 These are the experimental results for a Y-shaped intersection scenario in a collaborative decision-making control method for autonomous driving vehicles at an unsignalized intersection. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0040] The specific implementation of the present invention is described in detail below in conjunction with specific embodiments.

[0041] like Figure 1The above-mentioned embodiment of the present invention provides a collaborative decision-making control method for autonomous driving vehicles passing through an unsignalized intersection, comprising the following steps:

[0042] S10, Markov modeling is performed by setting reasonable state space, action space and reward function, wherein the state space represents the set of all states of the environment in which the agent is located, the action space represents the set of all actions that the agent can take in the environment, and the reward function represents the corresponding result of the agent taking a certain action in a certain state.

[0043] S20, establishing a policy network and a value network based on the actor-critic architecture, wherein the policy network is used to select the action that the agent needs to take based on the current environment state, and the value network is used to evaluate the corresponding result after the current action is taken.

[0044] S30 collects and controls vehicle data in real time through V2X technology, obtains the vehicle's position, speed and expected driving direction at the intersection, and determines the distance between the vehicle and the intersection, whether there is a path conflict between vehicles and the distance between the conflict points. The control instructions are calculated and output to each vehicle through the preset roadside unit.

[0045] S40, using proximal strategy optimization PPO for decision planning, taking the state of the environment in which the agent is located as input, the agent chooses the action to be taken according to the current strategy, and then obtains the state of the environment in the next time step, and collects the experienced state and action trajectory for neural network training iteration, evaluates the strategy in combination with the collected trajectory and value network, calculates the loss function of the strategy network and the value network and uses it for strategy update.

[0046] In this embodiment, the purpose is to develop a decision-making control method that uses V2X technology to globally coordinate vehicles passing through unsignalized intersections, and to implement a centralized, high-safety, high-traffic efficiency, and low-computational-overhead collaborative decision-making planning method for autonomous driving vehicles at unsignalized intersections based on vehicle-road collaboration. Vehicles approaching an intersection use V2X technology to send information such as their own driving status and the desired driving direction at the intersection to the intersection roadside unit in real time. The roadside unit uses a deep reinforcement learning method - proximal strategy optimization PPO to perform global planning of vehicle movement, and adds formal verification and regulations based on traffic regulations to further ensure the driving safety of the car. V2X can make up for the inherent limitations of the perception system carried by traditional single vehicles. The decision unit can obtain more comprehensive and accurate information about the surrounding environment, and V2X technology can effectively overcome the impact of bad weather or road environment on sensor accuracy. The existing decision-making and planning methods for autonomous driving vehicles at unsignalized intersections can usually only guarantee good control under certain conditions, or can only obtain better traffic control effects, rather than the optimal traffic strategy; for example, in centralized control algorithms, the first-come-first-served strategy can obtain better control performance under non-saturated traffic flow conditions, but the performance is average under saturated conditions, and it is impossible to formulate the optimal traffic plan based on actual traffic conditions; traditional mathematical model algorithms such as MPC usually The computational efficiency is low, and the high real-time requirements of control instructions cannot be met in urban roads with rapidly changing traffic environments. The control method based on reinforcement learning is a continuous exploration and experimentation in the environment. Therefore, after the algorithm is trained to be stable, although it can ensure safe and efficient driving in most cases, it is difficult to ensure the absolute safety of car driving. Since the distributed algorithm does not consider the vehicle's traffic performance from a global perspective, it cannot guarantee the excellent traffic performance of the vehicle group, and the fairness of vehicle traffic efficiency is difficult to ensure. Compared with the existing vehicle traffic decision-making and planning method for unsignaled intersections, the method disclosed in the present invention has the following advantages: global intersection vehicle driving information is obtained through V2X technology, and the traffic strategy considers the traffic performance of the vehicle group; the computational overhead cost is low and the control real-time performance is good; the algorithm can be personalized and optimized according to the differences in the actual road environment to obtain a traffic strategy that is more suitable for the current intersection topology; formal verification and regulations based on traffic regulations are added to ensure the absolute safety of autonomous driving vehicles driving at intersections.

[0047] As another preferred embodiment of the present invention, the step of performing Markov modeling by setting a reasonable state space, action space and reward function includes:

[0048] The scene modeling is performed based on the environment state of the intersection and the motion state of the car, and the scene modeling includes lane markings, lane driving rules, vehicle driving states, and the spatial relationship between the vehicles and corresponding lanes.

[0049] A Markov model is established based on state space, action space, reward function, and corresponding state transition probability and discount factor. The state transition probability is used to characterize the probability of the agent taking a certain action from a certain state to another state. When the agent takes an action in a certain state, a certain reward is given. The size of the reward is set based on the result of taking a certain action. The discount factor characterizes the importance of future rewards and short-term rewards, and is used to reward the impact of long-term future rewards on current gains.

[0050] Furthermore, the reward function includes a step reward and a round reward;

[0051] The step reward includes a time reward, a synchronization reward for approaching the collision point, and an acceleration reward. The time reward is used to give a negative reward of a certain value at each time step. The synchronization reward for approaching the collision point is used to guide the algorithm to quickly optimize in the direction where the cars do not approach their collision points at the same time to achieve the purpose of rapid collision. The jerk reward is used to improve the driving comfort of the car under the control of the algorithm.

[0052] The round reward includes a collision reward and a pass reward. The collision reward is set based on whether a collision occurs at the end of the round, and the pass reward is calculated based on the number of cars that successfully pass the intersection at the end of the round.

[0053] In this embodiment, a cross intersection is taken as an example to model the intersection and the movement of vehicles. Figure 2 As shown, at a cross intersection formed by the intersection of two-way two-lane roads for right-hand traffic, the lanes are respectively recorded as lane NORTH (N), lane EAST (E), lane SOUTH (S), lane WEST (W), and the lane width is w lane , with the center point of the intersection as the origin of the Cartesian coordinate system; cars traveling on each lane are allowed to turn left, go straight, or turn right; at time t, vehicle V i The speed is v i (t), acceleration is a i (t), the jerk is j i (t), the position of the vehicle is represented by the coordinates of the center of the rear axle of the vehicle (hereinafter referred to as the center of the vehicle); the vehicle V i The distance from the center to the intersection entrance is Vehicle V i The distance from the center to the midpoint of its desired path in the intersection is Vehicle V i Distance from the vehicle V j The distance of the collision point is Vehicle V i With vehicle V j The distance between them is dij , vehicle V i The distance from the center to the rear end of the vehicle body is The total number of vehicles approaching the intersection is N, and the number of vehicle pairs with collision points on the expected path is M.

[0054] The Markov decision process consists of a five-element tuple {S, A, P, R, γ}; S is a set of finite states of the agent in the environment, s represents a state of the agent, s∈S; the present invention represents the state space as:

[0055] S=[S 1 , S 2 , ..., S i ]

[0056]

[0057] In the cross-shaped intersection scene, For vehicle V i The distance from the midpoint of the expected path in the intersection; in the Y-shaped intersection scenario, For vehicle V i The distance from the intersection of its lane and other lanes; v i For vehicle V i driving speed.

[0058] A is a finite set of actions, which represents a series of actions that the agent can take in a certain state s. a represents an action taken by the agent, a∈A. The present invention represents the action space as:

[0059] A=[a 1 , a 2 , ..., a i ]

[0060] where a i For vehicle V i The maximum longitudinal acceleration is (-5m / s 2 , 5m / s 2 ). The present invention only controls the longitudinal acceleration of the vehicle.

[0061] P is the state transition probability, which indicates the probability that the agent takes action a in state s and transfers to state s′; R is the reward function, and the agent will get a certain reward after taking action a in state s, and the size of the reward indicates the quality of the agent taking action a in state s; the reward function of the cross intersection scene and the Y-shaped intersection scene is set as follows; the reward function setting of the present invention is divided into step reward and round reward; step reward includes time reward, synchronization reward close to the collision point, and acceleration reward; round reward includes collision reward and pass reward.

[0062] The time reward is a negative reward of a certain value given at each time step, denoted as R timestep , taking -0.15, is used to guide the algorithm towards higher traffic efficiency optimization; the synchronization reward close to the collision point is calculated by the time when each pair of cars with a collision point on the expected path approaches their collision point, recorded as k TTC is the synchronization reward coefficient for approaching the collision point; when both cars have not passed the collision point, k TTC =k ttc ; When any of the two cars has passed the collision point, k TTC is 0; the synchronization reward for approaching the collision point is used to guide the algorithm to quickly optimize in the direction where the cars are not approaching their collision points at the same time, so as to achieve the purpose of rapid collision avoidance; the acceleration reward is calculated based on the car's jerk, recorded as k j is the acceleration reward coefficient; when the car does not pass the intersection, k j =k jerk ; When the car has passed the intersection, k j is 0; the setting of acceleration reward is used to improve the driving comfort of the car under algorithm control; collision reward R col The reward is determined by whether there is a collision at the end of the round. If there is no collision at the end of the round, the collision reward is 0; if there is a collision at the end of the round, the collision reward is -50. The passing reward is calculated based on the number of cars that successfully pass the intersection at the end of the round. Assume that the number of cars that successfully pass the intersection is N. 1 , when not all cars have passed, 0≤N 1 ≤N-1, the collision reward is R pass =10N 1 ; When all cars have passed, N 1 =N,R pass =10N 1 +50; by setting a progressive reward to guide the algorithm towards the performance of safe driving for all vehicles.

[0063] γ is the discount factor, which takes values ​​in [0,1] and indicates the importance of future rewards compared to recent rewards. It is used to reduce the impact of long-term future rewards on current gains. The Markov decision process introduces a policy, which indicates the probability distribution of the agent taking an action a from the action set at time t and state s. The mathematical expression is:

[0064] π(a|s)=P[A t =a|S t =s]

[0065] In the Markov decision process, the agent's choice of action based on the strategy has nothing to do with history, but only with the current state. The cumulative reward for completing this (s, a) sequence from a certain state to the final time step state is called the return, and its mathematical expression is:

[0066]

[0067] The (s, a) sequence from the initial state to the final time step state is called an episode. In the simulation environment constructed by the present invention, when a car collides or all cars pass through the intersection, the episode ends and enters the next episode.

[0068] V π (s) is the state value function based on strategy π, which represents the expected return obtained by following strategy π at a certain state s until the end of the round. The mathematical expression is:

[0069] V π (s)=E[G t |S t =s]

[0070] The action value function based on strategy π is introduced to describe the value of taking different actions in a certain state, that is, the expected return obtained by taking action a in state s until the end of the round. The mathematical expression is:

[0071] Q π (s, a) = E[G t |S t =s,A t =a]

[0072] The goal of reinforcement learning is to find the best strategy that maximizes the gains of the entire process during the interaction between the agent and the environment. Therefore, the process of reinforcement learning is to constantly compare the pros and cons of strategies and finally find the best strategy. There are two ways to find the best strategy:

[0073] The optimal state value function (Optimal Value Function), under state s, selects the strategy corresponding to the state with the largest value function, that is:

[0074]

[0075] Optimal Action-Value Function: In state s, select the strategy corresponding to the action with the largest action-value function, that is:

[0076]

[0077] For the purpose of modeling and algorithm design of simulation experiments, the simulation experiments of the present invention all rely on the following basic assumptions: the lateral control of the car is provided by an independent path tracking module, the desired path of the car is determined by an advanced path planning algorithm, each car is equipped with V2X communication equipment, ignoring communication failures and loss of software packages, the position and speed of the vehicle can be measured in real time.

[0078] like Figure 3 As shown, as another preferred embodiment of the present invention, the strategy network and the value network both include an input layer, two hidden layers and an output layer, the input layer is used to input environmental information, i.e., vehicle driving status information, the output layer is used to output vehicle control instructions, and each of the hidden layers includes 128 neurons.

[0079] Furthermore, the roadside unit pre-stores an intersection topology structure, which includes the center coordinates of the intersection, the number of roads, the number and direction of lanes, and the stop line position information. The roadside unit calculates the distance and position relationship between the vehicle and the intersection in real time based on the Cartesian coordinates of the vehicle approaching the intersection, and then determines whether the roadside unit takes over the vehicle movement.

[0080] The driving area of ​​the car when passing through the intersection can be divided into a buffer area, a core area and a departure area. The buffer area represents the area before the car enters the intersection, the core area represents the area formed by the intersection of lanes, and the departure area represents the area after the car exits the intersection and returns to the cruising speed.

[0081] In this embodiment, the roadside unit at the intersection uses V2X technology to collect the vehicle's position, speed and expected driving direction information at the intersection in real time, and calculates the distance of the vehicle from the intersection, whether there is a path conflict between vehicles and the distance from the conflict point, and determines whether the vehicle is in the area taken over by the roadside unit. When the vehicle is in the area taken over by the roadside unit, the roadside unit sends the calculated control instructions to each vehicle in real time, and each vehicle drives through the intersection according to the control instructions.

[0082] The intersection topology (information such as intersection center coordinates, number of roads, number and direction of lanes, and stop line position) is stored in advance in the intersection roadside unit. The roadside unit calculates the distance and position relationship between the vehicle and the intersection in real time based on the Cartesian coordinates of the vehicle approaching the intersection, and determines whether the roadside unit should take over the vehicle movement.

[0083] The driving area of ​​a car passing through an intersection can be divided into three areas: a buffer area, a core area, and a departure area. The buffer area is the area before the car enters the intersection. The driver usually slows down in the buffer area and observes the movement status of other road users and the geometric information of the intersection; the core area is the area formed by the intersection of lanes. Cars may have driving conflicts in the core area, and the driver needs to control the vehicle to avoid collisions; the departure area is the area where the car returns to the cruising speed after exiting the intersection. The driver usually only needs to keep a distance from the car in front and accelerate smoothly to the target speed. In this invention, the roadside unit only takes over and controls the cars traveling in the buffer area and the core area. After the car enters the departure area, it accelerates to the cruising speed and maintains a constant speed. Taking the cross intersection and Y-shaped intersection as examples, the area division is as follows Figure 4 , the X area represents the buffer area, the Y area represents the core area, and the Z area represents the departure area.

[0084] As another preferred embodiment of the present invention, the steps of using the proximal strategy to optimize PPO for decision planning can be divided into:

[0085] In the process of the agent selecting actions to take according to the current strategy and then obtaining the environmental state of the next time step, the state and action trajectory experienced by the agent are collected, and the neural network is trained and iterated with the state of the agent as input.

[0086] In each strategy iteration, the collected states and behavior trajectories are divided into several parts, and each small batch of data is used for training. All trajectory data are reused for a preset number of training times to improve the training efficiency of the sampled trajectories. The value network is used to evaluate the quality of the current strategy to obtain the direction of iterative optimization of the strategy network.

[0087] PPO shares the parameters of the actor network and the critic network, combines the loss function of the policy network and the loss function of the value network, establishes a new loss function LOSS, and uses the gradient descent method to update the network parameters of the policy network and the value network.

[0088] In this embodiment, deep reinforcement learning uses the agent's environmental state s (i.e., the state described in step one) as input. The agent selects an action a (i.e., the action described in step one) to be taken according to the current strategy, and then obtains the environmental state s′ at the next time step. The experienced states and action trajectories (s, a, s′, ...) are collected for training and iteration of the neural network.

[0089] The proximal strategy optimization PPO method is used to train the neural network. The loss function of the value network is:

[0090]

[0091] Where V(s t ) is the fitted state s t Discount reward to the end point, ∑ t′>t γ t′-t r t′ is the actual discounted sampling reward, obtained by the Generalized Advantage Estimator method.

[0092] PPO shares the parameters of the actor network and the critic network, so it combines the loss function of the policy network and the loss function of the value network to establish a new loss function LOSS, and uses the gradient descent method to update the network parameters.

[0093] Calculate the advantage function A θ :

[0094]

[0095] A θ Indicates that in state s t Take action a t , the advantage of the actual discounted reward over the fitted discounted reward.

[0096] Calculate the change ratio between the new and old strategies:

[0097]

[0098] By limiting the update change ratio of the strategy through the clip function, the strategy network loss function of PPO is:

[0099] L CLIP (θ) = E t [min(r t (θ)A t ,clip(r t (θ), 1-∈, 1+∈)A t )]

[0100] Here ∈ is a hyperparameter, usually set to 0.2.

[0101] Combining the loss functions of the value network and the policy network, we establish the loss function LOSS of the actor-critic network:

[0102] LOSS=L CLIP (θ)+0.5*L t VF (θ)

[0103] Use the gradient descent method to update the network parameters:

[0104]

[0105]

[0106] In the above algorithm, the network parameters θ are first used 0 Initialize the actor-critic network π 0 , set the network parameter update learning rate α, discount factor γ, cropping range ∈, total time step T, data batch size B, minimum data batch size MB, data batch training number U, and use the current strategy π in each policy iteration k Interact with the environment and collect a set of trajectories D of B time steps k ={τ i}, store it in the experience pool, use the PPO data training method, divide the data in the experience pool into B / MB parts, and use each minimum data batch for training, calculate the expected value function based on the collected trajectory data, use the generalized advantage estimation method to calculate the advantage estimate, use the clip function to limit the update change ratio of the new and old strategies, calculate the loss function of the actor network, and use the mean square error regression fitting method to calculate the loss function of the critic network. Since PPO uses the actor-critic network architecture, a new loss function LOSS is constructed, and the actor-critic network parameters are updated using the Adam optimizer. Repeat the above steps, use all the trajectory data collected U times for training, get a new strategy, enter the next iteration, and stop sampling when the total time step of trajectory sampling reaches T.

[0107] As another preferred embodiment of the present invention, the steps of formal verification and regulation of vehicle driving safety are also included, specifically:

[0108] The safety of vehicle driving is formally verified. Any pair of vehicles with path conflict is judged through the right-of-way judgment rules. When both vehicles have not passed the collision point and the distance between vehicles is less than the safety threshold, a certain deceleration is applied to the vehicle without the right of way to avoid collision. When the vehicle with the right of way passes the collision point, the vehicle without the right of way accelerates to pass.

[0109] In this embodiment, the safety of vehicle driving is formally verified. When a vehicle is about to collide, the vehicle is formally regulated based on regulations to ensure the safety of vehicle driving. Since reinforcement learning guides the algorithm to control the vehicle to pass through the intersection with better performance through exploration, trial and reward mechanisms, but the algorithm does not include safety as a constraint, there is still a certain probability that the vehicle will collide after the algorithm is trained to convergence. Even if the probability is very small, the occurrence of collision should be avoided as much as possible in practical applications. Formal regulation refers to establishing safety constraints between vehicles in a formula and digital form according to certain specific traffic rules, and adding them to the algorithm to ensure the safe driving of the car.

[0110] Refer to traffic regulations to formulate the right of way determination rules. If one car is going straight and the other is turning, the straight-moving car has the right of way; if both cars are going straight or turning, the car on the right has the right of way. Figure 5 For example, Figure 5 (a) The direction of the straight-moving vehicle is SN, and the direction of the right-turning vehicle is EN. According to the principle of giving way to straight-moving vehicles, the straight-moving vehicle has the right of way; Figure 5 In (b), the direction of the left-turning vehicle is WN, and the direction of the right-turning vehicle is EN. According to the principle of the left side giving way to the right side, the right-turning vehicle has the right of way first.

[0111] The specific implementation method of the proposed formal verification and specification is as follows: Vehicle V i and vehicle V j Under the control of PPO, the two vehicles enter the intersection at the same time, and there is a path conflict between the two vehicles. Assume that according to the right of way judgment rule established above, the vehicle V i For vehicles without right of way, vehicle V j For vehicles with right of way, when the rear ends of the two vehicles have not passed the conflict point and the distance between the two vehicles is d ij Less than the safety distance d safe When the two vehicles are judged to be about to collide, the safety of the vehicles needs to be regulated immediately; the implementation method of the regulation is as follows: i Imposition The acceleration of the vehicle V j Give way, For vehicle V i The minimum deceleration that can be achieved, here is -5m / s 2 , when the vehicle Vj After the rear of the vehicle leaves the conflict point, the conflict between the two vehicles disappears and the V i The PPO will continue to take over the vehicle V i The traffic decision of vehicle V i Accelerate and continue to pass the intersection. The algorithm predicts that the vehicle V i The formal verification and specification formulas for passing through intersections are as follows:

[0112]

[0113] The present invention provides a collaborative decision-making control method for autonomous driving vehicles at an unsignalized intersection, and sets up an experimental environment and conducts experimental simulation verification. During the verification, the proposed method is tested for performance using cross intersection and Y-shaped intersection scenarios. The test is based on the autonomous driving simulation software Carla-0.9.13 (windows10) for environment configuration. The proposed method is implemented based on python3. The specific experimental verification process is as follows:

[0114] Experimental setting: Cross intersection scenario: This scenario is a typical two-way two-lane intersection without signalization in an urban road section. Each road connecting the intersection is represented in the figure by its direction, namely lane NORTH (N), lane EAST (E), lane SOUTH (S) and lane WEST (W). Vehicles on each road can take a left turn, go straight or turn right at the cross intersection. Table 1 shows the driving trajectory of vehicles at the intersection, which is divided into 12 cases, represented by the entry and exit lanes, namely NW, NS, NE, WN, WE, WS, SW, SN, SE, ES, EW, EN.

[0115] Trajectory Track Description NW Turn right from north to west NS Go straight from north to south NE Turn left from north to east WN Turn left from both directions to the north WE From west to east WS Turn right from west to south SW Turn left from the south to the west SN From south to north SE Turn right from south to east ES Turn left from east to south EW From east to west EN Turn right from east to north

[0116] Figure 1: Vehicle driving trajectory at a cross intersection

[0117] In order to simplify the research problem and ensure the complexity of the working conditions, this study selected 8 driving trajectories from all driving trajectories, including NS, NE, WN, WE, SN, SE, EW, and ES. Figure 6 As shown; such a trajectory setting includes all types of driving conflicts. Two cars are set to drive towards the intersection on each road, totaling eight cars. Each car has its designated driving trajectory, of which four cars choose to go straight and four cars choose to turn left or right. There are a large number of conflict points on the driving path. To ensure the universality of the algorithm, the driving speed of each car is random within a certain range.

[0118] Y-shaped intersection scenario: This scenario uses a signal-free Y-shaped intersection formed by four lanes intersecting in pairs, which is commonly seen in the merging section of the main road and the ramp. The four lanes are represented by A, B, C, and D respectively. Figure 7 As shown, a vehicle travels along the lane line in the lane and merges with a vehicle in another lane. The intersection of lane A and lane C, the intersection of lane B and lane D, and the intersection of lane B and lane C are the conflict points of vehicle travel.

[0119] The possible forms of collisions that may occur to cars at a Y-shaped intersection are merging collisions and cross collisions. There is a possibility of merging collisions between vehicles in lane A and lane C, and between lane B and lane D. Since this experiment selected a Y-shaped intersection where four lanes intersect in pairs, cars in lane B and lane C may have cross collisions when driving in the intersection.

[0120] To ensure the difficulty of the working conditions, two cars are set to drive towards the intersection in each lane, for a total of eight cars. To ensure the universality of the algorithm, the driving speed of each car is random within a certain range.

[0121] The simulation experiment parameters designed for the cross intersection scene and the Y-shaped intersection scene are as follows:

[0122]

[0123] Figure 2

[0124] Experimental results: The proposed method is compared with the traditional MPC method to verify the performance of the proposed method.

[0125] (1) Cross intersection scene:

[0126] A. Vehicle traffic decision algorithm based on MPC: The traditional model predictive control (MPC) method is used to perform intersection vehicle traffic decision control in the same scenario, and the following experimental results are obtained. Since the mechanism of the MPC algorithm is to find a solution that meets the set conditions, there are two possibilities for the control results of the MPC algorithm in a certain scenario. One is that a solution that meets the set conditions can be found, and the vehicle can be successfully controlled to pass through the intersection safely. The other is that a solution that meets the set conditions cannot be found, and control information cannot be output to the vehicle. After testing, under the settings of this experiment, the MPC algorithm can find the local optimal solution. The average travel time for vehicles to pass through the intersection is 23.8s, and the average time interval for the output of control commands is 1.57s.

[0127] B. Vehicle traffic decision algorithm based on PPO: The proposed method is tested multiple times and the experimental data are averaged to obtain the following Figure 8As shown in the curve; it can be seen that at the beginning of the algorithm training, the vehicle collided very quickly, so the reward value obtained by the algorithm was very low, the round length was very short, the collision rate of the vehicle was very high, and the jerk was also at a high level; subsequently, due to the setting of the reward function, the algorithm will be optimized towards obtaining a higher reward value, that is, the vehicle driving is safer and more comfortable. Therefore, after about 30 iterative updates, the algorithm successfully controlled the vehicle to avoid collision, the reward value rose rapidly, the round length increased significantly, and the collision rate and jerk decreased rapidly; next, the algorithm further iterated and updated in the direction of shorter round length and smaller jerk, so the reward value slowly increased, the round length slowly decreased, the collision rate further decreased, the jerk also gradually decreased, and finally the training reached stability.

[0128] Although the minimum collision rate of the vehicle can reach 0 under the control of the algorithm, there is still a certain collision rate in most iterations. In order to further reduce the collision rate of the vehicle and improve the safety of vehicle driving under the control of the algorithm, formal verification and specification based on traffic regulations are added on the basis of stable algorithm training. Then, the algorithm is simulated for a period of time. The experimental results are shown in Table 3. It can be seen that the collision rate of the algorithm is stable at 0, which ensures the safety of vehicle driving. Since the formal specification makes the car driving more conservative, the reward value, round length and acceleration are slightly reduced compared with before.

[0129] By comparing the experimental results of the two methods, it can be found that both the algorithm proposed in this study and the MPC algorithm can ensure the safe driving of vehicles at cross intersections, but the algorithm has higher traffic efficiency, and the travel time is stabilized at 9.14s, which is 61.6% shorter than that of MPC. The average output interval of control instructions is 0.1s, which is 93.6% shorter than that of MPC.

[0130] MPC PPO+Formal Specification Performance Improvements Collision rate 0 0 0 Travel time 23.8s 9.14s 61.6% Average output interval of control instructions 1.57s 0.1s 93.6%

[0131] Figure 3 Comparison of simulation experimental data of cross intersection scene

[0132] (2) Y-shaped intersection scenario

[0133] After multiple tests on the proposed method, we obtained Fig. 9 The curve graph shown is similar to the results of the cross intersection scenario. In the early stage of the algorithm, reinforcement learning obtained a poor reward value. At this time, the vehicle collided soon after the start of the round and failed to pass the intersection safely. Then, around the 90th iteration, the reward value increased significantly and the round length increased significantly. At this time, the algorithm tended to control the car to drive slowly until it learned how to control the car to avoid collisions. However, the traffic decision at this time was too conservative, resulting in low traffic efficiency. The algorithm then continued to optimize, ensuring the safe driving of the vehicle while obtaining higher traffic efficiency and better comfort.

[0134] From the experimental results, it can be seen that the collision rate of the algorithm is stable at 0, which ensures the safety of vehicle driving. This shows that the method proposed in the present invention can ensure the safe driving of vehicles at the Y-shaped intersection.

[0135] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0136] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the disclosure in the specification and examples. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0137] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A collaborative decision-making control method for autonomous driving vehicles at an unsignalized intersection, characterized in that: The following steps are involved: Markov modeling is performed by setting a reasonable state space, action space and reward function. The state space represents the set of all states of the environment in which the agent is located, the action space represents the set of all actions that the agent can take in the environment, and the reward function represents the corresponding result of the agent taking a certain action in a certain state; Based on the actor-critic architecture, a policy network and a value network are established. The policy network is used to select the action that the agent needs to take based on the current environment state, and the value network is used to evaluate the corresponding result after the current action is taken; The V2X technology is used to collect and control vehicle data in real time, obtain the vehicle's location, speed, and expected driving direction at the intersection, and determine the distance between the vehicle and the intersection, whether there is a path conflict between vehicles, and the distance between the conflict points. The preset roadside unit calculates and obtains control instructions and outputs them to each vehicle. Proximal policy optimization PPO is used for decision planning. The agent's environmental state is used as input. The agent chooses the action to be taken according to the current strategy to obtain the environmental state of the next time step. The experienced state and action trajectory are collected for neural network training iteration. The strategy is evaluated in combination with the collected trajectory and value network. The loss function of the strategy network and the value network is calculated and used for strategy update.

2. The method for cooperative decision-making and control of autonomous driving vehicles at unsignalized intersections according to claim 1 is characterized in that: The steps of performing Markov modeling by setting a reasonable state space, action space and reward function include: Performing scene modeling based on the environment state of the intersection and the motion state of the car, the scene modeling includes lane markings, lane driving rules, vehicle driving state, and the spatial relationship between the vehicles and corresponding lanes; A Markov model is established based on state space, action space, reward function, and corresponding state transition probability and discount factor. The state transition probability is used to characterize the probability of the agent taking a certain action from a certain state to another state. When the agent takes an action in a certain state, a certain reward is given. The size of the reward is set based on the result of taking a certain action. The discount factor characterizes the importance of future rewards and short-term rewards, and is used to reward the impact of long-term future rewards on current gains.

3. The method for cooperative decision-making and control of autonomous driving vehicles passing through an unsignalized intersection according to claim 2 is characterized in that: The reward function includes a step reward and a round reward; The step reward includes a time reward, a synchronization reward for approaching the collision point, and an acceleration reward. The time reward is used to give a negative reward of a certain value at each time step. The synchronization reward for approaching the collision point is used to guide the algorithm to quickly optimize in the direction where the cars do not approach their collision points at the same time to achieve the purpose of rapid collision. The acceleration reward is used to improve the driving comfort of the car under the control of the algorithm; The round reward includes a collision reward and a pass reward. The collision reward is set based on whether a collision occurs at the end of the round, and the pass reward is calculated based on the number of cars that successfully pass the intersection at the end of the round.

4. The method for cooperative decision-making and control of autonomous driving vehicles passing through an unsignalized intersection according to claim 3 is characterized in that: The strategy network and the value network both include an input layer, two hidden layers and an output layer. The input layer is used to input environmental information, namely, vehicle driving status information, and the output layer is used to output vehicle control instructions. Each of the hidden layers includes 128 neurons.

5. The method for cooperative decision-making and control of autonomous driving vehicles passing through an unsignalized intersection according to claim 4 is characterized in that: The roadside unit pre-stores an intersection topology structure; The intersection topology structure includes the intersection center coordinates, the number of roads, the number and direction of lanes, and the stop line position information. The roadside unit calculates the distance and position relationship between the vehicle and the intersection in real time based on the Cartesian coordinates of the vehicle approaching the intersection, and then determines whether the roadside unit takes over the vehicle movement; The driving area of ​​the car when passing through the intersection can be divided into a buffer area, a core area and a departure area. The buffer area represents the area before the car enters the intersection, the core area represents the area formed by the intersection of lanes, and the departure area represents the area after the car exits the intersection and returns to the cruising speed.

6. The method for cooperative decision-making and control of autonomous driving vehicles passing through an unsignalized intersection according to claim 5 is characterized in that: The steps of using the proximal strategy to optimize PPO for decision planning can be divided into: In the process of the agent selecting actions according to the current strategy and then obtaining the environmental state of the next time step, the state and action trajectory experienced by the agent are collected, and the state of the agent is used as input to train and iterate the neural network; In each strategy iteration, the collected states and behavior trajectories are divided into several parts, and each small batch of data is used for training. All trajectory data are reused for a preset number of training times to improve the training efficiency of the sampled trajectories. The value network is used to evaluate the quality of the current strategy to obtain the direction of iterative optimization of the strategy network. PPO shares the parameters of the actor network and the critic network, combines the loss function of the policy network and the loss function of the value network, establishes a new loss function LOSS, and uses the gradient descent method to update the network parameters of the policy network and the value network.

7. The method for cooperative decision-making and control of autonomous driving vehicles passing through an unsignalized intersection according to claim 6 is characterized in that: It also includes the formal verification and specification steps of vehicle driving safety, specifically: The safety of vehicle driving is formally verified. Any pair of vehicles with path conflict is judged through the right-of-way judgment rules. When both vehicles have not passed the collision point and the distance between vehicles is less than the safety threshold, a certain deceleration is applied to the vehicle without the right of way to avoid collision. When the vehicle with the right of way passes the collision point, the vehicle without the right of way accelerates to pass.