A vehicle traffic decision-making planning method, system and device for an unsignalized intersection
By constructing a combination of steering vehicle decision-motion planning framework and RA-SAC algorithm in an unsignalized intersection scenario, the high cost and complexity problems of hierarchical reinforcement learning methods in complex driving tasks are solved, achieving safer and more efficient results. vehicle traffic decisions.
Patent Information
- Application Number
- CN202410150462.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-02
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-02-02
AI Technical Summary
The hierarchical reinforcement learning method in the existing technology requires separate training at different levels in unsignalized intersection scenarios, which increases training and operating costs, and is difficult to apply to complex and changeable driving task scenarios.
The steering vehicle decision-motion planning framework under multi-vehicle interaction conditions is adopted, the expected vehicle speed is obtained through the particle swarm algorithm, and the reward and punishment strategy training of the risk perception coefficient is combined with the RA-SAC algorithm to build a vehicle decision-making motion planning model to realize continuous driving actions. decision making.
It reduces the complexity and cost of vehicle movement planning, improves driving safety and efficiency in unsignalized intersection scenarios, and can more accurately assess and respond to complex traffic environments.
Smart Images

Figure CN118212808B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent transportation technology, and in particular to a vehicle traffic decision-making planning method, system and equipment for an unsignalized intersection. Background Art
[0002] In recent years, with the rapid development of intelligent networked vehicle technology, it has gradually shown good potential in reducing traffic conflicts, improving traffic operation efficiency and economic benefits. Based on the collaborative perception, integration and interaction of all-time and space traffic information, the realization of vehicle group collaborative decision-making and intelligent control, and the promotion of China's development route of autonomous driving based on vehicle-road collaboration have become the strategic development content of my country's intelligent transportation. Intelligent networked vehicles send and collect environmental information through V2I (Vehicle to Infrastructure) equipment, realize holographic perception of the road, and make the road and vehicles form an interconnected whole. Especially for irregular flat intersection road scenes such as unsignalized intersections, network technology can reduce the negative impact of imperfect information collection on driving safety, and provide conditions for avoiding traffic conflicts, improving traffic efficiency and driver and passenger experience.
[0003] However, it will take a long transition period from the current situation where manned vehicles account for the majority to the popularization of autonomous vehicles. In this process, manned and autonomous vehicles will coexist in road scenes, and heterogeneous traffic groups will increase the complexity of the driving environment at unsignalized intersections, which will pose a major challenge to the perception, decision-making and control technologies of autonomous vehicles. How to quantify the motion characteristics of manned vehicles and incorporate them into the motion planning factors of autonomous vehicles is one of the important tasks to promote intelligence. In addition, unlike signalized intersections, in unsignalized scenarios, it is necessary not only to consider the speed and acceleration of vehicles before the stop line to ensure traffic efficiency, but also to plan the movement of vehicles in the conflict area inside the intersection to avoid collisions, which poses a considerable challenge to driving behaviors such as left turns that require planning of vehicle speed and steering angle at the same time. Therefore, from the perspective of driving safety, how to take into account driving risks and the driving styles of other manned vehicles in heterogeneous environments, and build a left-turn motion planning model for multi-vehicle interactive conditions, is an urgent problem to be solved by intelligent connected vehicles in unsignalized intersection scenarios.
[0004] At present, the application of reinforcement learning methods to study autonomous driving decision-making in unsignaled intersection scenarios is aimed at safety, efficiency and comfort. For safety goals, only whether a collision occurs is taken into account. For example, a reward function is formulated for vehicle collision situations. Few studies take potential collision risks into account. There are the same disadvantages as using low-frequency accident data as evaluation criteria, such as small sample size and difficulty in reflecting the risk change process. Assuming that the vehicle is already in an accident critical state without a collision, it is difficult to reflect its dynamic driving safety based solely on collision events. Common hierarchical reinforcement learning methods require separate training at different levels, which increases training costs, high network complexity, and increased operating costs, making it difficult to apply to complex and changeable driving task scenarios. Summary of the invention
[0005] The purpose of the present invention is to address the deficiencies of the above-mentioned prior art and provide a method, system and device for vehicle traffic decision planning at an unsignalized intersection, so as to solve the problem that the common hierarchical reinforcement learning method in the prior art requires separate training of different levels, which increases the training cost, the network complexity is high, and the operating cost is increased, making it difficult to apply to complex and changeable driving task scenarios.
[0006] The present invention specifically provides the following technical solution: a vehicle traffic decision-making planning method for an unsignalized intersection, comprising the following steps:
[0007] Constructing a networked unsignalized intersection modeling scenario, and constructing a steering vehicle decision-making-motion planning framework under multi-vehicle interaction conditions based on the networked unsignalized intersection modeling scenario;
[0008] Perform driving risk perception through the steering vehicle decision-motion planning framework, define risk levels according to the perceived severity of the accident, and obtain risk perception coefficients at different risk levels;
[0009] Calculating the traffic gap according to the relative states of the interacting vehicles, obtaining the traffic strategy through the traffic gap, and using the particle swarm algorithm to obtain the expected speed of each vehicle in the traffic strategy;
[0010] Select the target path point based on each vehicle position and the global path, and use the pure tracking algorithm to match the expected vehicle speed with the target path point to obtain the driving decision of the continuous driving action;
[0011] Using the RA-SAC algorithm to train the risk perception coefficient on a reward and punishment strategy, changing the gradient update amplitude of the driving decision by the trained risk perception coefficient, and obtaining a vehicle decision motion planning model;
[0012] The vehicle decision motion planning model is used to make decisions on the passage of each vehicle.
[0013] Preferably, the turning vehicle decision-motion planning framework includes: a networked unsignalized intersection environment, a perception and decision module, and a vehicle motion planning module.
[0014] Preferably, the perceived accident severity defines the risk level, and obtaining the risk perception coefficient at different risk levels comprises the following steps:
[0015] The risk level of traffic conflict events is divided according to the collision avoidance acceleration threshold, and the conditional probability under different risk levels is calculated;
[0016] Bayesian theory is used to derive the risk perception coefficient under each given state.
[0017] Preferably, the risk level of traffic conflict events is divided according to the collision avoidance acceleration threshold, and the conditional probability under different risk levels is calculated. The specific expression is:
[0018]
[0019]
[0020]
[0021] Among them, D s , D r and D d are the rDRAC thresholds for safety, risk and dangerous events, σ represents a random variable; τ is the risk level, represented by the values 0, 1, and 2, corresponding to the safety, risk and dangerous levels, respectively. The specific expression is: τ={0,1,2}.
[0022] Preferably, the Bayesian theory is used to obtain the risk perception coefficient under each given state, and the specific expression is:
[0023]
[0024]
[0025] Among them, ε is the risk perception coefficient, P(τ|D) is the posterior probability of being at a certain risk level τ, P(τ) is the prior probability of the risk level, and P(D|τ) is the conditional probability at different risk levels.
[0026] Preferably, the step of selecting a target path point based on each vehicle position and the global path, and matching the expected vehicle speed with the target path point using a pure tracking algorithm comprises the following steps:
[0027] The vehicle steering tracking function module is designed based on the pure tracking algorithm and PID controller, and the target path point is selected based on the current vehicle position and the global path, and the vehicle steering angle is adjusted by combining the pure tracking algorithm and PID controller;
[0028] The basic forward-looking distance parameters in the pure tracking algorithm are decided according to the current vehicle state, the expected vehicle speed and the target path point are matched, and the target path point is tracked.
[0029] Preferably, the obtaining of the driving decision of the driving continuous action comprises the following steps:
[0030] The vehicle traffic process at an unsignalized intersection is defined as a Markov decision process;
[0031] Through the deep reinforcement learning method based on Markov decision process, the two basic parameters of motion control, namely the forward vision distance and the throttle / brake pedal, are decided;
[0032] Obtain rewards through actions taken under each decision, and obtain the relationship between continuous driving actions and the current environment and vehicle state through the rewards;
[0033] The driving decision of the driving continuous action is obtained through the relationship between the driving continuous action and the current environment and the vehicle state.
[0034] Preferably, the use of the RA-SAC algorithm to train the risk perception coefficient with a reward and punishment strategy, and changing the gradient update amplitude of the driving decision by the trained risk perception coefficient, comprises the following steps:
[0035] Change the intensity of rewards and penalties through risk perception coefficients to identify potential collision risks during training;
[0036] Evaluate the current vehicle driving decision in the corresponding environment to obtain reward and punishment results that are more in line with the impact of the vehicle's actions on the actual environment;
[0037] The gradient update amplitude is changed according to the potential collision risk of the current vehicle driving, and different degrees of feedback are obtained according to the amplitude;
[0038] The optimal continuous driving action is obtained through the feedback and reward and punishment results, and the driving decision is updated through the optimal continuous driving action.
[0039] Preferably, the present invention further provides a vehicle traffic decision-making planning system for an unsignalized intersection, comprising:
[0040] A framework construction module, used to construct a networked unsignalized intersection modeling scenario, and to construct a steering vehicle decision-making-motion planning framework under a multi-vehicle interaction condition based on the networked unsignalized intersection modeling scenario;
[0041] A risk acquisition module, used to perceive driving risks through the steering vehicle decision-motion planning framework, define risk levels according to perceived accident severity, and obtain risk perception coefficients at different risk levels;
[0042] A vehicle speed acquisition module is used to calculate the traffic gap according to the relative state of the interacting vehicles, obtain the traffic strategy through the traffic gap, and use the particle swarm algorithm to obtain the expected speed of each vehicle in the traffic strategy;
[0043] The state acquisition module is used to select the target path point based on each vehicle position and the global path, and use the pure tracking algorithm to match the expected vehicle speed with the target path point to obtain the driving decision of the continuous driving action;
[0044] A decision model building module, used to use the RA-SAC algorithm to train the reward and punishment strategy for the risk perception coefficient, and to change the gradient update amplitude of the driving decision by the trained risk perception coefficient to obtain a vehicle decision motion planning model;
[0045] The vehicle decision module is used to make decisions on the passage of each vehicle using the vehicle decision motion planning model.
[0046] Preferably, the present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of a method for decision-making and planning of vehicle traffic at an unsignalized intersection.
[0047] Compared with the prior art, the present invention has the following significant advantages:
[0048] The present invention proposes a vehicle decision-making-motion planning framework for unsignalized intersections. By combining the risk perception method with the deep reinforcement learning algorithm, the risk level and risk perception coefficient, clearance, expected vehicle speed, vehicle position and target path points are obtained, the work of continuous driving actions is constructed, the state of the vehicle in the environment is changed, feedback is completed through environmental information transmission, and closed-loop control of vehicle motion planning is realized; at the same time, a mechanism RA-SAC algorithm for adjusting the reward strategy based on the risk level is designed, through which the current driving decision of the vehicle is put into the corresponding environment for evaluation, so that the reward and punishment results are more in line with the impact of the vehicle action on the actual environment, and no training at different levels is required, so that the vehicle motion planning is more accurate and the cost is lower, and it can effectively evaluate the intelligent connected vehicles at unsignalized intersections, and has strong operability. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a motion planning framework diagram for intelligent connected vehicles;
[0050] Figure 2 It is a schematic diagram of an unsignalized intersection in a connected environment;
[0051] Figure 3 It is a flow chart of decision making in the order of passage;
[0052] Figure 4 It is a schematic diagram of the trajectory change process;
[0053] Figure 5 It is the flow chart of particle swarm algorithm;
[0054] Figure 6 It is the framework diagram of vehicle motion planning;
[0055] Figure 7 It is a schematic diagram of the geometric relationship of the pure tracking algorithm;
[0056] Figure 8 It is a steering controller based on a pure tracking algorithm;
[0057] Fig. 9 It is the network structure diagram of RA-SAC algorithm;
[0058] Fig.10 It is the simulation experiment flow chart;
[0059] Fig.11 (a) is the reward curve diagram of RA-SAC training process, (b) is the reward curve diagram of SAC training process;
[0060] Fig.12 (a) is the reward curve of the TD3 training process, and (b) is the reward curve of the DDPG training process. DETAILED DESCRIPTION
[0061] The following is a clear and complete description of the technical solutions of the embodiments of the present invention in conjunction with the drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0062] refer to Figure 1 , an embodiment of the present application provides a vehicle traffic decision-making planning method for an unsignalized intersection, comprising the following steps:
[0063] Step S1: Construct a networked unsignalized intersection modeling scenario, and construct a steering vehicle decision-making-motion planning framework under multi-vehicle interaction conditions based on the networked unsignalized intersection modeling scenario.
[0064] A modeling scenario for a networked unsignalized intersection is constructed, and the characteristics and basic assumptions of the scenario are explained in detail. Then, a steering vehicle decision-making-motion planning framework is proposed under the multi-vehicle interaction condition at an unsignalized intersection, such as Figure 1 .
[0065] (1) The present invention uses a T-shaped intersection as a prototype to establish a scene, and the road geometric features are as follows: Figure 2 As shown, the T-intersection road line is irregular, and the road section is located in the suburbs, with low traffic density, high speed, and high driving risk, which is in line with the research scenario setting of the present invention. The participants in the multi-vehicle interactive working condition include 1 intelligent connected vehicle (Connected Automated Vehicle, CAV) and 2 connected human-driving vehicles (Connected Human-driving Vehicle, CHV).
[0066] Due to the complex road environment of unsignalized intersections in reality, in order to reduce the interference of other unstable factors in the modeling process, the present invention makes the following assumptions for the research scenario:
[0067] 1) From the time a vehicle enters the observation area to the time it leaves the intersection, there is no communication delay between all intelligent on-board units and roadside units.
[0068] 2) Each vehicle is the leading vehicle in the lane in that direction, and there is no following behavior during driving in the upstream transition area.
[0069] 3) There are no pedestrians crossing the road, and there are no parked vehicles starting their journey, which interferes with the movement of vehicles.
[0070] (2) Vehicle Decision-Making-Motion Planning Framework
[0071] Intelligent networked vehicle control can be divided into four stages: environmental perception, behavioral decision-making, trajectory planning, and path tracking. In a networked unsignalized intersection where vehicles of different degrees of automation are mixed, CAV needs to perceive risks, make reasonable traffic decisions, and then plan vehicle movement. The overall framework of the present invention includes three parts: a networked unsignalized intersection environment, a perception and decision-making module, and a vehicle movement planning module.
[0072] 1) In the mixed traffic scene of the connected unsignalized intersection, intelligent connected vehicles and manually driven connected vehicles are mixed. Sensing terminals need to be deployed on the roadside to receive basic information such as the position and speed of the vehicle sent by vehicles within the intersection in real time, and send status information of other traffic units to vehicles within the communication range to realize the interconnection of vehicle and road information. The information in the scene is the basis of driving decision-making and motion planning, and also provides feedback on control effects. Features such as Figure 1 (a) shown.
[0073] 2) It is an important prerequisite for intelligent connected vehicles to make reasonable driving decisions based on a correct understanding of the traffic environment. In the framework setting scenario, the vehicle needs to assess the risk level of the driving environment in which the vehicle is located and adjust the driving strategy based on the premise of perceiving the motion state, relative acceleration and distance of the interactive object vehicle. The present invention designs a risk perception submodule, such as Figure 1 As shown in (b), by calculating the rDRAC (relative Deceleration Rate to Avoid the Crash) values of the vehicle and the surrounding vehicles, the probability of different risk levels is estimated to calculate the risk perception coefficient, which reflects the current driving risk level of the vehicle. Figure 1 As shown in (c), this module makes decisions on the speed of the vehicle from the upstream of the intersection to the arrival at the intersection. The main vehicle's passage process at the intersection is regarded as a multi-objective planning problem. First, the vehicles from different directions are mapped to the virtual queue, and the critical gap is used to determine whether to accept the current passage gap, thereby determining the passage order of the vehicle. After the vehicle determines the passage order, the particle swarm algorithm is used to solve the expected speed, which is passed to the underlying controller as a sub-goal.
[0074] 3) Vehicle control module such as Figure 1 As shown in (d), longitudinal and steering control are decoupled and parallel, and the key parameters of the two controllers are decided by the reinforcement learning agent. Among them, the intensity of rewards and punishments in the training process is based on the risk level obtained by the current module (b). The longitudinal control module adjusts the throttle / brake pedal pressure signal according to the expected vehicle speed of module (c). The adjustment process determines the safety and comfort of the driver and passengers. The steering control module consists of a pure tracking algorithm and a PID controller. The vehicle selects the target point based on the current position and the global path, adjusts the front wheel steering angle, and realizes path tracking control.
[0075] Step S2: Perform driving risk perception by turning to the vehicle decision-making-motion planning framework, define the risk level according to the perceived severity of the accident, and obtain the risk perception coefficient under different risk levels.
[0076] Specifically, in order to make correct motion planning guidance strategies for different road conditions, the present invention Figure 1 In the risk perception module shown in (b), the risk level of traffic conflict events is divided according to the collision avoidance acceleration threshold, the conditional probability under different risk levels is calculated, and the risk perception coefficient under each given state is obtained using Bayesian theory, which is driving risk perception.
[0077] 1) Risk level classification
[0078] According to the severity of the vehicle collision, it is divided into minor (no casualties and property damage), moderate (only property damage), and severe (endangering the safety of drivers and passengers). The three different degrees correspond to three levels: safe, risky, and dangerous, which are defined as the level set Ω:
[0079] Ω={safe,risky,dangerous}={s,r,d} (1)
[0080] The risk level τ is represented by the values 0, 1, and 2, corresponding to the safety, risk, and danger levels, respectively, as shown in formula (2):
[0081] τ∈Ω={0,1,2} (2)
[0082] The rDRAC between the host vehicle and the interactive environment vehicle is represented by the symbol D. For any rDRAC value, the conditional probabilities at different risk levels are:
[0083]
[0084]
[0085]
[0086] Where D s , D r and D d are the rDRAC thresholds for safety, risk, and dangerous events, respectively, which are obtained according to the distribution of the inD data set, and σ represents a random variable. When D is larger, the probability of a high risk level is greater, and the probability of a low risk level is smaller, and vice versa.
[0087] 2) Driving risk estimation
[0088] Driving risk estimation is based on Bayesian theory, which uses prior information about parameter values and current data (or possibilities) at hand to obtain a posterior estimate of the parameter value, that is, based on the prior probabilities and current conditional probabilities of different risk levels, the posterior probability of being at a certain risk level is obtained.
[0089] For a given state, the posterior probability of being at a certain risk level τ is:
[0090]
[0091] In the formula, P(τ) is the prior probability of the risk level. By statistically analyzing the inD data set, the prior probabilities of different risk levels are shown in Table 1. P(D|τ) is the conditional probability under different risk levels.
[0092] Table 1 Prior probabilities at different risk levels
[0093] Risk Level 0 1 2 Probability 0.748 0.239 0.013
[0094] Combining all risk levels, the risk assessment results are converted into a quantifiable continuous value, which is defined as the risk perception coefficient ε. The calculation is shown in formula (5):
[0095]
[0096] The risk perception coefficient ε is the output result of the risk perception module. As a policy parameter of the deep reinforcement learning algorithm in vehicle motion planning, the intelligent agent adjusts the model reward strategy according to the coefficient ε, thereby affecting the update of network parameters and improving the training method of the intelligent agent.
[0097] Step S3: Calculate the clearance gap according to the relative states of the interacting vehicles, obtain the traffic strategy through the clearance gap, and use the particle swarm algorithm to obtain the expected speed of each vehicle in the traffic strategy.
[0098] Specifically, the speed decision module first calculates the expected time interval based on the relative state of the interacting vehicles in front, and determines the order of the vehicle's passage based on the acceptable passage gap; then, guided by safety and efficiency, the particle swarm algorithm is used to solve the expected speed of the vehicle; finally, it is sent to the bottom layer as a control sub-goal to complete the throttle / pressure pedal adjustment. Compared with the agent directly controlling the acceleration based on environmental information, the expected speed can play a guiding role and thus simplify the speed adjustment task of the reinforcement learning agent.
[0099] 1) Intersection traffic model
[0100] According to my country's road traffic regulations, the maximum speed of the upstream lane of an intersection without traffic signals and speed limit signs shall not exceed 50km / h. When the vehicle speed is less than 12.4km / h, the vehicle fuel economy will be greatly reduced, so v lower Set to 12.4km / h. The terminal time t before reaching the intersection f , the vehicle speed should satisfy the following boundary constraints:
[0101]
[0102] The boundary values of acceleration satisfy the maximum positive and negative acceleration in the inD data set:
[0103]
[0104] In an independent conflict event, the difference in the time it takes for two vehicles to pass through the conflict area is generally represented by the safety alternative indicator GT (Gap Time). The smaller the GT, the smaller the time gap between the front vehicle and the rear vehicle passing through the conflict area, and the higher the potential collision risk. Therefore, the size of the GT value is used as the basis for the safety indicator. Assuming that there are m vehicles in the scene and the vehicle's passing order is n, the sub-objective function f1 is established, as shown in formula (8):
[0105]
[0106] In the formula, GT (m-1,m) (t) is the GT value of the vehicle at time t when the vehicle is in order m and the adjacent vehicle m-1. If the vehicle is in order m-1 and passes between two vehicles (m-2 and m), then f1 is the sum of the GT values of the vehicle and the two adjacent vehicles in front and behind.
[0107] The relative speed of the two vehicles during the interaction reflects the relative motion state at this time. When the two vehicles are in the upstream stage, if the speed difference is too large, it means that one of them may be idling, which affects the driving experience of the occupants and is likely to have a negative impact on the internal traffic of the intersection. When the two vehicles are near the intersection, if the speed difference is too large, it means that one of them is driving too fast, the safety reaction time is short, and the potential collision risk will increase further with the speed change of either party. Therefore, the speed difference between the vehicle and the adjacent vehicle during the passage process should be as small as possible. Assuming that the adjacent two vehicles are numbered m and m-1 respectively, the sub-objective function f2 is shown in formula (9):
[0108]
[0109] While ensuring the safety of drivers, allowing vehicles to pass through intersections as quickly as possible can reduce travel delays and speed up the time to handle a single conflict event, which has a positive impact on road traffic efficiency and fuel economy. The efficiency sub-objective function f3 is shown in formula (10):
[0110]
[0111] Where V m (t) is the speed of vehicle m at time t, v lower 、v upper These are the minimum and maximum speed limits at the intersection, respectively.
[0112] Taking into account the performance indicators of speed decision-making in many aspects and combining the vehicle's motion state constraints, the above different objective functions are integrated into an overall objective function f, as shown in formula (11):
[0113] f=f1+f2+f3 (11)
[0114] 2) Traffic order decision
[0115] Virtual lanes are a concept that converts a two-dimensional intersection scene into a one-dimensional queue. The queue order of the virtual lane represents the conflict-free right-of-way allocation plan for vehicles, and the headway of vehicles in the queue can be converted into the clearance in the intersection area. Rotating and projecting vehicles in lanes of different directions onto virtual lanes and building a model for virtual queues is a common collaborative control method for unsignalized intersections. Through centralized control of virtual queues, vehicles can be prevented from arriving at the intersection at the same time, eliminating negative effects such as traffic congestion and uncoordinated teaming at multi-lane intersections, and improving traffic operation efficiency.
[0116] Based on the acceptance of the critical gap, the present invention designs a traffic decision scheme, the process is as follows: Figure 3 shown.
[0117] 3) Expected speed decision
[0118] After obtaining the order of vehicles passing, the main vehicle needs to plan its speed according to the estimated time of arrival of other vehicles at the intersection to avoid overlapping with the trajectory of the surrounding vehicles or too close arrival time. It is worth noting that the traffic strategy is not output additionally, and the expected speed reflects the yield / passing strategy and speed planning results.
[0119] In view of the problem of expected vehicle speed planning, the present invention uses a particle swarm algorithm to solve the objective function proposed above. The particle swarm algorithm originates from the study of bird flock predation behavior. Each iteration records the fitness of the particle's location as experience, and relies on its own experience and memory to adjust its own moving direction. By continuously moving to find the optimal fitness, the particle iteration optimization is completed.
[0120] The position of a particle is represented by a solution vector. If a solution of the objective function consists of D independent variables, then the position of a particle is a D-dimensional space, and the position of the i-th particle is represented by:
[0121]
[0122] The value obtained by substituting the position of the particle into the objective function is the fitness. The fitness of each particle position in an iteration is recorded through the historical fitness, and the quality of the position is judged according to the size of the fitness. The fitness of the particle is recorded as:
[0123]
[0124] In general, the smaller the fitness value, the better. Assume that the i-th particle iterates d times in total. In the n-th iteration, when the fitness of the position reached by the particle after moving is better than the historical fitness, the position replaces the previous historical best position, and the fitness of the position is recorded as the individual historical best fitness. By the d-th iteration, the individual historical best fitness is recorded as:
[0125]
[0126] The sum of the fitness of each particle is the fitness of the particle swarm, which is expressed as:
[0127]
[0128] By the dth iteration, the best fitness of the group history is recorded as:
[0129]
[0130] Each time a particle changes its position, it moves at a certain speed. The moving speed of the i-th particle is recorded as:
[0131]
[0132] The speed of the particle in the dth step is the sum of its own speed inertia, self-cognition and social cognition in the previous step, expressed as:
[0133]
[0134] Where C1 is the individual learning factor of the particle. The larger the factor, the more the particle tends to move to its own historical optimal position. The value is generally 2. C2 is the social learning factor of the particle. The larger the factor, the more the particle tends to move to the historical optimal position of other particles. The value is generally 2. r1 and r2 are random functions with a value range of [0,1], which are used to increase the randomness of the search. w is the inertia weight, a non-negative number, which is used to adjust the search range of the solution space.
[0135] In order to avoid the situation where the vehicle is too close to the vehicle in front or behind, the unsafe time t is defined. unsafe , indicating that the distance between the vehicle and the adjacent vehicle is too close when the vehicle arrives at the intersection within this time range; the safety time t safe It means that when arriving at the intersection within this time range, the vehicle can stagger with the neighboring vehicle for a certain period of time to ensure vehicle safety. The schematic diagram of vehicle intersection passage is as follows Figure 4 shown.
[0136] After initializing the particle position, calculate the expected arrival time of each feasible solution and the front and rear vehicles, and filter out the expected arrival time within t unsafe The solution is to keep the algorithm within the safe range t safe The feasible solution is optimized to avoid the situation where the desired speed represented by some extreme particles causes the vehicle to ignore safety and blindly pursue efficiency. Combining the particle swarm algorithm with the above discussion, the desired speed decision algorithm is finally obtained. The flow chart is as follows: Figure 5 .
[0137] In summary, HV (Human-driving Vehicle) formulates a traffic strategy based on the expected arrival events of surrounding vehicles, and can reasonably decide the expected vehicle speed to safely pass through the intersection.
[0138] The steering tracking function module of this vehicle is designed based on pure tracking algorithm and PID (Proportional-Integral-Derivative Control) controller.
[0139] Step S4: Select the target path point based on each vehicle position and the global path, and use the pure tracking algorithm to match the expected vehicle speed with the target path point to obtain the driving decision for the continuous driving action. Construct a complete vehicle decision-motion planning framework, define the vehicle's passage process at an unsignalized intersection as a Markov decision process, obtain the relationship between the vehicle action and the current environment and vehicle state, and use deep reinforcement learning methods to make decisions on continuous driving actions.
[0140] Specifically:
[0141] Through the deep reinforcement learning method based on the Markov decision process, decisions are made on the two basic parameters of motion control, the foresight distance and the throttle / brake pedal. The risk measurement method is introduced to design a training mechanism in which the intensity of rewards and punishments of the intelligent agent changes with the degree of risk, and the RA-SAC (Risk Awareness-Soft Actor-Critic) algorithm is proposed.
[0142] 1) The vehicle motion planning framework consists of a decision maker based on a reinforcement learning agent and a low-level tracker. The low-level tracker includes a speed control module and a steering control module. The structural diagram is shown in Figure 6 As shown. The speed control module is responsible for controlling the longitudinal acceleration of the vehicle. The reinforcement learning agent makes decisions on the throttle / brake pedal pressure signal of the vehicle, which is converted by the speed control module and connected to the vehicle dynamics model to complete the speed control. The steering control module selects the target path point based on the current vehicle position and the global path, and uses a pure tracking algorithm and a PID controller to adjust the vehicle steering angle. Among them, the agent makes decisions on the basic foresight distance parameters in the pure tracking algorithm according to the current vehicle state to adapt to the current vehicle speed and target path point, and realize the tracking of the target path point.
[0143] The complete workflow of the vehicle motion planning part is as follows: HV obtains other vehicle information from the environment, including X / Y coordinates, speed, etc.; receives risk perception and expected vehicle speed results from the decision-making layer. After the vehicle perceives the environmental information, the reinforcement learning agent makes motion planning decisions, including throttle / brake pedal pressure signals and front wheel steering angles. The results are used as inputs to the vehicle dynamics model to control the vehicle to complete the specified motion. The action execution changes the state of the vehicle in the environment, and feedback is completed through the transmission of environmental information to achieve closed-loop control of vehicle motion planning.
[0144] 2) Steering tracking control module
[0145] During the driving process of the main vehicle, in addition to adjusting the speed, it is also necessary to output a reasonable steering angle to track the global path, which mainly involves the design of the steering control model and the tracker. The steering model includes a geometric model, a vehicle dynamics tracking model, etc. The steering geometry model used in the present invention is a pure pursuit algorithm.
[0146] 1. Pure tracking algorithm
[0147] The pure tracking algorithm is a path tracking control strategy based on a geometric model. Its basic principle is to control the turning radius R of the vehicle so that the rear axle center control point can reach the front sight distance l along the arc. d The reference path point is used to calculate the front wheel steering angle δ required for control based on the Ackerman model. The geometric relationship diagram is shown in Figure 7 shown.
[0148] according to Figure 7 The variables in the equation are obtained by the law of sines, and the radius R and l are obtained by the law of sines. d The corresponding relationship is shown in formula (19):
[0149]
[0150] The curvature κ of the path is:
[0151]
[0152] Considering the lateral error e, we get:
[0153]
[0154] From the rear axle kinematics of the vehicle model, the steering angle can be determined as:
[0155]
[0156] Where, L w is the vehicle wheelbase, l dis the forward sight distance, and its value is related to the forward sight coefficient k, vehicle speed V, and forward sight distance basic value l c The expression is shown in formula (23):
[0157] l d = k·V+l c (twenty three)
[0158] Combining equations (21), (22) and (23), the steering angle calculation formula is:
[0159]
[0160] The pure tracking algorithm has a simple structure and good robustness to road curvature disturbances. It is suitable for path tracking control under low vehicle speeds and small lateral accelerations.
[0161] 2. Steering control design
[0162] Based on the geometric model, the pure tracking algorithm is used as the basic method of steering tracking. Since direct control through the output angle will cause large tracking errors and slow heading deviation recovery speed, the pure tracking algorithm is optimized in combination with the PID controller, so that the vehicle's control angle changes continuously in the front and rear control cycles, reducing the heading error during the tracking process. Design a steering tracking controller, such as Figure 8 shown.
[0163] PID controller is a widely used controller with the advantages of simple structure, good stability, reliable operation and convenient adjustment. PID regulation is a linear combination of proportional, integral and differential regulation rules. It absorbs the advantages of fast response of proportional regulation, elimination of static error by integral regulation and predictability of differential regulation, and improves the response, accuracy and dynamic performance of control. Its control law is shown in Equation 25:
[0164]
[0165] Where e(k) is the system error of the kth step, k p , k i and k d are the parameters for proportional, integral and derivative control respectively.
[0166] 3) Motion planning based on reinforcement learning
[0167] In the hierarchical decision-making and planning structure of the autonomous driving system, higher-level behavioral decisions (such as lane changing, overtaking, joining a team, leaving a team, etc.) are expressed as discrete states that convert to each other, while lower-level execution actions (such as acceleration, deceleration, etc.) are expressed as continuous action sequences. The behavioral decision layer determines the discrete driving behavior states such as lane changing, overtaking, left / right turns, and their transformation rules. After making behavioral decisions, the motion planning layer is responsible for providing a safe, comfortable, and feasible continuous action sequence to achieve the driving behavior selected by the decision-making system. Reinforcement learning agents can gradually adapt to the environment through continuous trial and error, reducing the initial modeling cost. In addition, reinforcement learning can show greater advantages at the level of anthropomorphic driving under the guidance of reasonable rewards.
[0168] 1. Markov Decision Process
[0169] Reinforcement learning agents can interact with their environment to obtain the maximum cumulative reward and come up with the next action. The action taken is only related to the current state and has nothing to do with the historical state. Therefore, it is usually modeled based on Markov decision processes (MDPs).
[0170] The Markov decision process is described by a tuple (S, A, P, R, γ), where S represents a finite set of possible states in a dynamic environment, A represents the set of available actions for the agent in a specific state, P represents the state transition probability matrix, which provides the probability of the system transitioning between each pair of states, and R represents the reward obtained by taking a certain action in a specific state, which indicates how good the environmental feedback is after the agent takes an action. γ takes a value in the interval [0,1), which represents the discount factor, reflecting the importance of future rewards to current rewards, and ensuring the convergence of overall returns.
[0171] The agent makes decisions in the environment according to the strategy π(a|s). The strategy refers to the probability distribution of the actions taken by the agent in a certain state s in the environment. The calculation method is:
[0172] π(a|s)=p[A t =a|S t =s] (26)
[0173] The rewards obtained by the agent at each step are accumulated, and the total amount of rewards is called return, which is calculated as follows:
[0174]
[0175] When k takes an infinite value, the task can be regarded as a continuous task, where R t+1 For state S tTransfer to S t+1 The agent needs to constantly adjust actions or action selection strategies to maximize the reward. The value function of state s under strategy π is recorded as v π (s), the expected probability of reward obtained by the agent under the strategy π is shown in formula (28):
[0176]
[0177] The reward obtained by taking a specific action a under strategy π is shown in formula (29). The reward obtained for each specific action reflects the pros and cons of the action in relation to the current environment and state.
[0178]
[0179] When driving at an unsignalized intersection, the driving behavior that the vehicle needs to complete at the current moment is only related to the current road traffic conditions and has nothing to do with all past states. The driving process obeys the Markov property. The present invention designs the main vehicle control model based on the deep reinforcement learning method of the Markov decision process.
[0180] Step S5: Use the RA-SAC algorithm to train the reward and punishment strategy for the risk perception coefficient, change the gradient update amplitude of the driving decision through the trained risk perception coefficient, and obtain the vehicle decision motion planning model.
[0181] The design combines the method of adjusting the reward and punishment strategy based on risk perception results with the basic SAC algorithm and is named the RA-SAC algorithm. The Soft Actor-Critic (SAC) algorithm is a deep reinforcement learning algorithm that combines offline strategies, Actor-Critic structures, and Maximum Entropy. Compared with simply finding an optimal strategy that maximizes the cumulative return, SAC requires that the entropy of each output action of the selected strategy is maximized, which ensures the task results while improving the randomness of the strategy. The main network structure of SAC includes an Actor network and four Critic networks. The main network structure is as follows: Fig. 9 As shown. The strategy optimization objective function of SAC is:
[0182]
[0183] In the formula, h(π(·|s t )) is entropy, and its calculation method is shown in formula (31). α is the temperature coefficient, which determines the importance of entropy to the reward. This parameter can be adjusted to control the strategy agent to favor the reward or entropy value, thereby controlling the randomness of the agent's exploration.
[0184] h(π(·|s t))=-logπ(a t |s t ) (31)
[0185] The Actor network outputs the action probability distribution parameters, and obtains the agent action based on probability sampling. The VCritic network output is v(s t ), representing the estimation of state value, and the output of QCritic network is q(a,s), representing the estimation of action-value. The VCritic network and QCritic network are composed of their own value estimation Critic network and target strategy Critic network respectively. The data sampled from the experience pool (s i ,a i ,r i ,s i+1 ) is used to update the QCritic network parameter ω, which is obtained as s based on the optimal Bellman equation t The true value of the state is estimated by:
[0186]
[0187] In the formula, E π is the expected cumulative return of the current state.
[0188] The QCritic network samples batch data B and updates it by gradient descent. The update method is:
[0189]
[0190] The data sampled by the VCritic network from the experience pool (s i ,a i ,r i ,s i+1 ) updates the network parameter θ, and the true value of the output is:
[0191]
[0192] In the formula, A(s i ) is the set of all possible actions under strategy π, a′ i For a predicted action, logπ θ (a′ i |s i ) is the entropy under the predicted action. The update method of VCritic network is:
[0193]
[0194] SAC updates the two target strategy Critic networks according to the hyperparameter ρ. The update method is:
[0195] φ tj ←ρφ tj +(1-ρ)φ j ,j={1,2} (36)
[0196] The essence of updating the Actor network parameters is to minimize the KL divergence, that is, to minimize the relative entropy. The update method of the Actor network is as follows:
[0197]
[0198] In the formula, It means taking the minimum output value of the two target network estimates, which can effectively prevent overestimation, logπ θ (a i |s i ) is the entropy under the selected action.
[0199] The coefficient ε obtained by the risk measurement method is used in the present invention to change the feedback of the intelligent agent under different risk levels. According to the risk perception coefficient ε and the basic reward r, a reward R based on risk estimation is obtained. The calculation method is as shown in formula (38). In high-risk situations, safe driving behavior can get greater rewards. Conversely, aggressive driving behavior will result in greater penalties.
[0200] R(s,a)=(1+ε)·r(s,a)(38)
[0201] The change of reward will affect the update of network parameters. At this time, the estimated value of QCritic network is:
[0202]
[0203] The present invention combines the method of adjusting the reward and punishment strategy based on the risk awareness results with the basic SAC algorithm, and names it the RA-SAC algorithm. The purpose of changing the intensity of rewards and punishments by the risk perception coefficient is to enable the intelligent agent to identify potential collision risks during the training process, and to evaluate the current driving decisions of the vehicle in the corresponding environment, so that the reward and punishment results are more in line with the impact of the vehicle's actions on the actual environment. By changing the gradient update amplitude by the current driving risk size, the intelligent agent can receive different degrees of feedback according to the degree of risk. The pseudo code of the RA-SAC algorithm is shown in Table 2.
[0204] Table 2 RA-SAC algorithm pseudo code
[0205]
[0206]
[0207] Design of state space, action space, and reward function:
[0208] 1) State Space
[0209] The state is the observation of the environment space of the intelligent agent, and it is also the basis for making decisions. The design of the state space runs through the entire process of intelligent agent training. For the unsignaled intersection scenario studied in this invention, the state space that accurately fits the intelligent agent's own attributes and benefit changes is designed. It is related to whether the model training can converge, the convergence speed and the final performance. Therefore, the reasonable selection of the state is very critical to the training of the intelligent agent.
[0210] The state space is generally composed of internal attributes and external attributes. For an intelligent connected vehicle traveling at an unsignalized intersection, the internal attributes are the position coordinates, motion state, expected speed, and lateral path error of the vehicle, and the external attributes are the relevant information of the surrounding vehicles. The state space set expression is shown in formula (40):
[0211]
[0212] In the formula, s HV is the state of the main vehicle, representing the internal properties of the state space, defined as s HV =(x, y, v, a, v goal , e), is the state set of the environment vehicle i, defined as The meaning of each state set is shown in Table 3.
[0213] Table 3 Vehicle state space at unsignalized intersection
[0214]
[0215]
[0216] Since the data dimensions of the state space are different, it is easy to interfere with feature extraction, causing the intelligent agent to always approach the boundary value when selecting actions. In this paper, the z-score normalization method is used to normalize the state space data. For a set of data X = {x1, x2, ..., x n}, the normalization method is:
[0217]
[0218] In the formula, x′ i is the i-th data after normalization, X mean is the average value of the group of data, X std is the standard deviation of this set of data.
[0219] 2) Action Space
[0220] The agent makes decisions on the parameters of longitudinal speed and steering tracking control. The goal of longitudinal control is to adjust the acceleration according to the current road environment and the expected speed. The action design is the output value of the throttle opening and the brake pedal pressure signal. The goal of steering control is to adjust the basic forward distance according to the current speed to obtain a reasonable front wheel turning angle. The action design is the basic forward distance of the pure tracking algorithm. The action space is defined as shown in formula (42):
[0221] a=(u,l c ) (42)
[0222] Where u is the output value of the throttle / brake pedal, l c is the basic foresight distance parameter of the pure tracking algorithm. The specific information of the action space variables is shown in Table 4.
[0223] Table 4 Main vehicle action space
[0224]
[0225]
[0226] In order to avoid the unreasonable phenomenon that the throttle pedal and the brake pedal are output at the same time when the vehicle is adjusting the speed, the present invention judges the value of the action u and then converts it before outputting it. The conversion method is shown in formula (43):
[0227]
[0228] Where throttle is the throttle pedal output pressure, and brake is the brake pedal output pressure. The output value u needs to be converted into the input parameter of the vehicle dynamics model in the simulation environment, that is, multiplied by the corresponding basic unit quantity so that the action changes linearly to the specific range of the input parameter. Among them, the basic unit quantity of throttle is 100 (%), and the basic unit quantity of brake is 150 (Bar).
[0229] 3) Reward Function
[0230] One of the purposes of reward function design is to guide the agent to gradually complete the tasks expected by the designer. The unreasonable design of reward function will lead to interference between different goals, causing the agent to fall into a state of "losing one thing while focusing on another". For example, in order to avoid the penalty caused by too large acceleration changes during the speed adjustment process, the vehicle would rather choose to stay in place and be satisfied with only idling penalties; or be satisfied with speeding penalties and always rush to the finish line in a greatly accelerated state to avoid long-term cumulative penalties at normal speeds. For the intelligent networked vehicles studied in the present invention, the main task in the unsignaled intersection scenario is to ensure the driving safety of the vehicle while tracking the global path. The speed control range, driving comfort and efficiency are all additional goals based on the main task. The reward and punishment weights need to be adjusted according to the importance of the goals to avoid misleading the agent. Combined with prior knowledge and experimental debugging, the reward function is divided into two parts: vehicle driving state reward and interactive safety reward.
[0231] 3.1) Driving Status Rewards
[0232] The driving state reward is mainly based on the rationality of the vehicle's own state during driving, which is reflected in whether the vehicle complies with driving regulations, whether the tracking and control of driving decisions are completed, and whether the speed changes smoothly. This paper designs the driving state reward function based on the following four points.
[0233] 3.1.1) Speed limit
[0234] The speed of the vehicle during driving must comply with road regulations. Refer to the speed limit requirements on the actual road. In the upstream stage of the scene, the maximum speed limit of the lane is v upper , the value is 50km / h, about 13.89m / s; the minimum speed limit is v lower , the value is 3.44m / s. The speed reward of the vehicle in the transition zone and the departure zone is r ve l1, the calculation method is shown in formula (44):
[0235]
[0236] Where V is the current vehicle speed. Since speeding will have a negative impact on vehicle driving safety, this paper assigns different rewards and punishments to different situations, with a greater penalty for speeding. For vehicles inside the intersection, parking and idling may occur, and speeding behavior needs to be punished. The speed reward for vehicles in the conflict area of the intersection is r vel2 , the calculation method is shown in formula (45):
[0237]
[0238] In the formula, v limitThe speed limit at the intersection is 30km / h, which is approximately 8.33m / s.
[0239] Combined with the above discussion, the speed reward is composed of the rewards r when in the import lane and when leaving the lane vel1 and the reward r when inside the intersection vel2 The composition is shown in formula (46):
[0240] r vel =r vel1 +r vel2 (46)
[0241] 3.1.2) Vehicle speed tracking
[0242] After the decision layer obtains the expected speed in the transition zone, the bottom-level controller needs to adjust the speed based on the speed as the target. In order to guide the vehicle to track the target speed, the reward function r is set. track_vel As shown in formula (47):
[0243] r track_vel =-|Vv goal | (47)
[0244] Where V is the current vehicle speed, v goal is the target desired vehicle speed.
[0245] 3.1.3) Path tracking
[0246] The vehicle needs to complete tracking driving according to the preset global path. In order to reflect the path tracking situation during training, the reward function r is set track_path As shown in formula (48):
[0247] r track_path =-e (48)
[0248] Where e is the path tracking lateral error.
[0249] 3.1.4) Comfort
[0250] The acceleration change rate jerk represents the change of acceleration per unit time and has a direct impact on driving comfort. The larger the jerk, the more drastic the change in vehicle speed and the worse the driving experience. Conversely, the smaller the jerk, the smoother the change in vehicle speed. It is often used as a measure of driving comfort. Assuming J represents jerk, this paper gives a comfort reward r jerk The definition of is shown in formula (49):
[0251] r jerk =-J 2 (49)
[0252] Combined with the above ①~④ rewards, the vehicle driving status reward rdrive It is expressed as:
[0253] r drive =ω1r vel +ω2r track_vel +ω3r track_path +ω4r jerk (50)
[0254] Where ω1, ω2, ω3, and ω4 are the weighting factors of each reward respectively.
[0255] 3.2) Driving Safety Rewards
[0256] The main basis for driving safety reward is whether the vehicle's interaction with the surrounding vehicles during driving is safe. In addition to whether a collision occurs, the present invention also designs an interactive safety reward function based on the potential collision risk indicator Gap Time. When the main vehicle collides with the surrounding vehicle, the collision reward is r collision , the value is shown in formula (51):
[0257] r collision =-100 (51)
[0258] When the Gap Time between the main vehicle and the surrounding vehicle is less than a certain threshold, the estimated arrival time at the conflict area with the surrounding vehicle is too close, and the potential collision risk is high. The reward r is set. gap As shown in formula (52):
[0259]
[0260] Combined with collision With r gap , get the interactive safety reward r safe , as shown in formula (53):
[0261] r safe =r collision +r gap (53)
[0262] In order to define the reward value interval within a reasonable range, drive Use linear change to a reasonable range. Set the driving state reward r drive With safety rewards safe Combined, we get the agent training reward function r, and the calculation method is shown in formula (54):
[0263] r=λ1r drive +λ2r safe (54)
[0264] Where λ1 and λ2 are driving status reward and driving safety reward coefficients respectively.
[0265] Step S6: using the vehicle decision motion planning model to make decisions on the passage of each vehicle.
[0266] Based on the above methods and discussions, the present invention provides a vehicle traffic decision-making planning system for an unsignalized intersection, including a framework construction module, a risk acquisition module, a vehicle speed acquisition module, a vehicle status acquisition module, a decision model construction module and a networked vehicle decision module.
[0267] Among them, the framework construction module is used to construct a modeling scenario of a connected unsignalized intersection, and based on the modeling scenario of a connected unsignalized intersection, construct a steering vehicle decision-motion planning framework under multi-vehicle interaction conditions; the risk acquisition module is used to perceive driving risks through the steering vehicle decision-motion planning framework, define the risk level according to the perceived severity of the accident, and obtain the risk perception coefficient under different risk levels; the vehicle speed acquisition module is used to calculate the clearance according to the relative state of the interacting vehicles, obtain the traffic strategy through the clearance, and use the particle swarm algorithm to obtain the expected speed of each vehicle in the traffic strategy; the vehicle state acquisition module is used to select the target path point based on the position of each vehicle and the global path, and use the pure tracking algorithm to match the expected speed with the target path point to obtain the driving decision of the continuous driving action; the decision model construction module is used to use the RA-SAC algorithm to train the reward and punishment strategy for the risk perception coefficient, change the gradient update amplitude of the driving decision through the trained risk perception coefficient, and obtain the vehicle decision motion planning model; the connected vehicle decision module is used to make decisions for each vehicle using the vehicle decision motion planning model.
[0268] The present invention also provides a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the vehicle decision-making planning method for an unsignalized intersection.
[0269] Example simulation results and analysis: The construction of a joint simulation platform, in which a networked simulation scenario based on the unsignalized intersection in the inD dataset is constructed, including road modeling, trajectory calibration of environmental vehicles, collision detection settings, etc.; the basic motion control module of the vehicle is improved, the basic framework of vehicle reinforcement learning is built, and the main vehicle motion planning decision layer is embedded in the previous perception and decision content to conduct reinforcement learning training. Finally, the vehicle control effect is verified in the scenario, and compared with other reinforcement learning algorithms suitable for continuous action tasks to evaluate the performance of the method of the present invention.
[0270] 1. On the basis of the joint simulation platform, the unsignalized intersection multi-vehicle operating scenario of the present invention is built, the vehicle control module is embedded and the reinforcement learning model is designed. The experimental process is as follows: Fig.10 As shown, the steps are as follows:
[0271] Simulation scenario construction: Road parameters are set according to the road line shape of the unsignalized intersection, where the upstream and downstream sections of the intersection are both 200 meters long; vehicle models are selected for the main vehicle and the environment vehicle, and the basic control interface of the vehicle is generated in Simulink. The driving path, initial speed and expected speed change of the environment vehicle are calibrated to complete the construction of the simulation road environment.
[0272] Vehicle decision-making and control module design: Design functional functions to process the basic status information of the vehicle and complete the definition of the decision-making layer such as risk perception coefficient and expected vehicle speed; design the steering control module based on the pure tracking algorithm and PID controller, and set the longitudinal and steering control interfaces; add collision detection modules, interaction stage judgment modules, etc. to the scene as auxiliary training for reinforcement learning environment condition judgment.
[0273] Reinforcement learning model design: Build a reinforcement learning agent based on RL Agent in the Simulink environment, define the state, action, reward function and training termination conditions. Define the values of the agent state and action, build the network structure, and set the agent parameters and training parameters.
[0274] Model evaluation: Complete the agent reinforcement learning training and compare the performance of this invention with other algorithms.
[0275] 2. Algorithm training results and analysis,The Critic and Actor network settings of the RA-SAC algorithm are shown in Table 5 and Table 6 respectively. The Critic network consists of 1 input layer, 3 fully connected layers and 1 output layer. The input size of the input layer depends on the number of states and actions. The middle layer uses a fully connected network, and its input and output size is the number of neurons. Too many neurons will cause the gradient to disappear during the training process. Therefore, this paper mainly uses 64 and 32 neurons as the input size of the fully connected layer.
[0276] The Actor network consists of 1 input layer, 2 fully connected layers, and 2 output layers. The input size of the input layer depends on the number of states. The fully connected layer uses Relu as the activation function, and the output layers 1 and 2 output two actions u and l respectively. c , Relu is used as the activation function.
[0277] Table 5 Critic network settings
[0278] name Input size Activation Function Output size Input Layer 14 / 14 Fully connected layer 14 Relu 64 Fully connected layer 64 Relu 32 Fully connected layer 32 Relu 16 Output Layer 16 / 1
[0279] Table 6 Actor network settings
[0280] name Input size Activation Function Output size Input Layer 12 / 12 Fully connected layer 12 Relu 64 Fully connected layer 64 Relu 32 Output layer 1(u) 32 Relu 1 <![CDATA[Output layer 2 (l c )]]> 32 Relu 1
[0281] After designing the RA-SAC network structure, the agent parameters and training parameters are set. The model hyperparameter information is shown in Table 7. The reinforcement learning training is completed in the constructed simulation environment.
[0282] Table 7 RA-SAC algorithm training hyperparameters
[0283]
[0284]
[0285] TD3 and DDPG are deterministic strategy algorithms. They explore the action space by adding noise to randomly adjust the action. The exploration degree can be adjusted by adjusting the noise variance. The present invention uses SAC, TD3 and DDPG algorithms as comparison methods. The results of training average reward and number of steps are shown in Table 8. It is worth noting that the other three comparison algorithms do not set up a perception decision layer, and there is no risk perception coefficient and expected speed decision result. The training reward change curve of each algorithm is shown in Figures 11-12 shown.
[0286] From the training results in Table 4.8, we can see that the average reward of RA-SAC is 10.39% higher than that of the original SAC algorithm, and the average number of steps of the vehicle in the training environment is reduced by 31.06%, indicating that the training performance of the model has been significantly improved with the design of vehicle speed guidance and risk perception. Compared with TD3 and DDPG, the average reward of this method is 13.32% lower than that of TD3, and the average number of steps is 16.20% more; compared with DDPG, the average reward is 48.67% higher and the average number of steps is 65.17% less.
[0287] Table 8 Training results of different algorithms
[0288] algorithm RA-SAC SAC TD3 DDPG Average Reward -190.36 -212.42 -167.99 -370.82 Average number of steps 495 718 426 1421
[0289] The convergence speed of the RA-SAC algorithm and the SAC algorithm is significantly higher than that of the TD3 and DDPG algorithms, which shows that the stochastic policy gradient has certain advantages in the actual model application and can adapt to complex training environments more quickly. A person of ordinary skill in the art can understand that all or part of the steps of the above method embodiment can be completed by hardware or software systems related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above method embodiment are executed: and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media for storing program codes.
[0290] The above content is a further detailed description of the present invention in combination with a specific preferred embodiment. For technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as belonging to the protection scope of the present invention.
Claims
1. A vehicle traffic decision-making planning method for unsignalized intersections. It is characterized in that The steps include: Constructing a networked unsignalized intersection modeling scenario, and constructing a steering vehicle decision-making-motion planning framework under multi-vehicle interaction conditions based on the networked unsignalized intersection modeling scenario; Perform driving risk perception through the steering vehicle decision-motion planning framework, define risk levels according to the perceived severity of the accident, and obtain risk perception coefficients at different risk levels; Calculating the traffic gap according to the relative states of the interacting vehicles, obtaining the traffic strategy through the traffic gap, and using the particle swarm algorithm to obtain the expected speed of each vehicle in the traffic strategy; Select the target path point based on each vehicle position and the global path, and use the pure tracking algorithm to match the expected vehicle speed with the target path point to obtain the driving decision of the continuous driving action; Using the RA-SAC algorithm to train the risk perception coefficient on a reward and punishment strategy, changing the gradient update amplitude of the driving decision by the trained risk perception coefficient, and obtaining a vehicle decision motion planning model; Using the vehicle decision motion planning model to make decisions on the passage of each vehicle; Defining the risk level according to the perceived severity of the accident and obtaining the risk perception coefficient at different risk levels includes the following steps: The risk level of traffic conflict events is divided according to the collision avoidance acceleration threshold, and the conditional probability under different risk levels is calculated; the specific expression is: Among them, D s , D r and D d are the rDRAC thresholds for safety, risk and dangerous events, respectively; D is the rDRAC between the main vehicle and the interactive environment vehicle; σ represents a random variable; τ is the risk level, represented by the values 0, 1, and 2, corresponding to the safety, risk and dangerous levels, respectively. The specific expression is: τ = {0, 1, 2}; Bayesian theory is used to derive the risk perception coefficient under each given state.
2. A vehicle traffic decision-making planning method for an unsignalized intersection as claimed in claim 1, It is characterized in that The steering vehicle decision-motion planning framework includes: a networked unsignalized intersection environment, a perception and decision module, and a vehicle motion planning module.
3. A vehicle traffic decision-making planning method for an unsignalized intersection as claimed in claim 1, It is characterized in that The Bayesian theory is used to obtain the risk perception coefficient under each given state, and the specific expression is: Among them, ε is the risk perception coefficient, P(τ|D) is the posterior probability of being at a certain risk level τ, P(τ) is the prior probability of the risk level, and P(D|τ) is the conditional probability at different risk levels.
4. A vehicle traffic decision-making planning method for an unsignalized intersection as claimed in claim 1, It is characterized in that The method of selecting a target path point based on each vehicle position and the global path and matching the expected vehicle speed with the target path point using a pure tracking algorithm includes the following steps: The vehicle steering tracking function module is designed based on the pure tracking algorithm and PID controller, and the target path point is selected based on the current vehicle position and the global path, and the vehicle steering angle is adjusted by combining the pure tracking algorithm and PID controller; The basic forward-looking distance parameters in the pure tracking algorithm are decided according to the current vehicle state, the expected vehicle speed and the target path point are matched, and the target path point is tracked.
5. A vehicle traffic decision-making planning method for an unsignalized intersection as claimed in claim 1, It is characterized in that The step of obtaining the driving decision of the driving continuous action comprises the following steps: The vehicle traffic process at an unsignalized intersection is defined as a Markov decision process; Through the deep reinforcement learning method based on Markov decision process, the two basic parameters of motion control, namely the forward vision distance and the throttle / brake pedal, are decided; Obtain rewards through actions taken under each decision, and obtain the relationship between continuous driving actions and the current environment and vehicle state through the rewards; The driving decision of the driving continuous action is obtained through the relationship between the driving continuous action and the current environment and the vehicle state.
6. A vehicle traffic decision-making planning method for an unsignalized intersection as claimed in claim 1, It is characterized in that The method of using the RA-SAC algorithm to train the risk perception coefficient on a reward and punishment strategy, and changing the gradient update amplitude of the driving decision by the trained risk perception coefficient, comprises the following steps: Change the intensity of rewards and penalties through risk perception coefficients to identify potential collision risks during training; The current vehicle driving decision is evaluated in the corresponding environment to obtain reward and punishment results that are consistent with the impact of the vehicle's actions on the actual environment; The gradient update amplitude is changed according to the potential collision risk of the current vehicle driving, and different degrees of feedback are obtained according to the amplitude; The optimal continuous driving action is obtained through the feedback and reward and punishment results, and the driving decision is updated through the optimal continuous driving action.
7. A vehicle traffic decision-making and planning system for unsignalized intersections. It is characterized in that include: A framework construction module, used to construct a networked unsignalized intersection modeling scenario, and to construct a steering vehicle decision-making-motion planning framework under a multi-vehicle interaction condition based on the networked unsignalized intersection modeling scenario; A risk acquisition module, used to perceive driving risks through the steering vehicle decision-motion planning framework, define risk levels according to perceived accident severity, and obtain risk perception coefficients at different risk levels; A vehicle speed acquisition module is used to calculate the traffic gap according to the relative state of the interacting vehicles, obtain the traffic strategy through the traffic gap, and use the particle swarm algorithm to obtain the expected speed of each vehicle in the traffic strategy; The state acquisition module is used to select the target path point based on each vehicle position and the global path, and use the pure tracking algorithm to match the expected vehicle speed with the target path point to obtain the driving decision of the continuous driving action; A decision model building module, used to use the RA-SAC algorithm to train the reward and punishment strategy for the risk perception coefficient, and to change the gradient update amplitude of the driving decision by the trained risk perception coefficient to obtain a vehicle decision motion planning model; A vehicle decision module, used to make a decision on the passage of each vehicle using the vehicle decision motion planning model; Defining the risk level according to the perceived severity of the accident and obtaining the risk perception coefficient at different risk levels includes the following steps: The risk level of traffic conflict events is divided according to the collision avoidance acceleration threshold, and the conditional probability under different risk levels is calculated; the specific expression is: Among them, D s , D r and D d are the rDRAC thresholds for safety, risk and dangerous events, respectively; D is the rDRAC between the main vehicle and the interactive environment vehicle; σ represents a random variable; τ is the risk level, represented by the values 0, 1, and 2, corresponding to the safety, risk and dangerous levels, respectively. The specific expression is: τ = {0, 1, 2}; Bayesian theory is used to derive the risk perception coefficient under each given state.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of a method for decision-making and planning for vehicle traffic at an unsignalized intersection as described in any one of claims 1 to 6.
