Roundabout multi-vehicle collaborative decision-making method based on safety reinforcement learning
By adopting the multi-agent reinforcement learning method of safety reinforcement learning in roundabouts, we capture the interactive dependencies between agents and conduct driving risk assessment, which solves the problem of insufficient collaboration between vehicles in single-agent reinforcement learning and improves the efficiency of circular intersections. Traffic efficiency and safety at intersections.
Patent Information
- Application Number
- CN202410801392.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-01
AI Technical Summary
In complex human-machine mixed traffic scenarios, especially unsignalized roundabouts, it is difficult for autonomous vehicles to make accurate decisions, and single-agent reinforcement learning methods suffer from insufficient collaboration between vehicles.
A multi-vehicle collaborative decision-making method for roundabouts based on safety reinforcement learning is adopted. By building a roundabout autonomous driving simulation environment, defining the state space and action space of the agent, designing the reward function, building a multi-agent reinforcement learning model, and using self-attention The force network captures the interactive dependencies between agents, outputs an attention-weighted state space, performs driving risk assessment, and optimizes the multi-agent reinforcement learning model to achieve collaborative decision-making between vehicles.
It effectively avoids the risk of collision between vehicles, improves the traffic efficiency and safety of roundabouts, promotes collaboration between vehicles, and improves the performance of the overall transportation system.
Smart Images

Figure CN118722718A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of multi-vehicle collaborative decision-making for autonomous driving, and in particular to a multi-vehicle collaborative decision-making method for a roundabout based on safety reinforcement learning. Background Art
[0002] Decision planning is one of the key parts of autonomous driving technology. It receives upper-level perception information, analyzes the current environment status, and makes behavioral decisions. It has a vital impact on the safe and efficient passage of autonomous vehicles. However, in complex human-machine mixed traffic scenarios, especially unsignaled roundabouts, autonomous vehicles still face many challenges in making decisions.
[0003] Unsignalized roundabouts are a typical scenario on urban roads. At present, the decision-making methods applied to unsignalized roundabouts can be roughly divided into rule-based and learning-based methods. The rule-based method uses heuristic and hard-coded rules to guide autonomous vehicles, which can cope with many common driving scenarios. However, complex and irregular situations are inevitable in real traffic environments, making it difficult for this method to make accurate decisions in unsignalized roundabout scenarios. Learning-based decision-making methods have obvious advantages and great development potential in solving decision-making and planning problems in complex traffic scenarios. The decision-making method based on deep reinforcement learning (DRL) has strong autonomy and adaptability to unknown environments. This is mainly because during the learning process, the intelligent agent can fully interact with the environment and adjust its own strategy based on the reward function to adapt to the complex and changing road and traffic environment.
[0004] Most existing DRL-based decision-making methods adopt a single-agent paradigm, which has a serious problem of insufficient inter-vehicle collaboration in the weaving area of a roundabout. Single-agent reinforcement learning only focuses on the optimal decision of its own vehicle and lacks effective collaboration with surrounding vehicles. Summary of the invention
[0005] In view of this, the present invention provides a multi-vehicle collaborative decision-making method for a roundabout based on safety reinforcement learning to solve the above problems.
[0006] The present invention provides a method for multi-vehicle collaborative decision-making at a roundabout based on safety reinforcement learning, comprising: building a roundabout automatic driving simulation environment according to the design requirements of urban road intersections; defining the state space and action space of an intelligent agent, designing a reward function, building an action network and a critic network, and constructing a multi-agent reinforcement learning model; each intelligent agent obtains its own vehicle state information and the state information of other surrounding vehicles within the perception range through the roundabout automatic driving simulation environment; constructing a self-attention network, capturing the interactive dependency relationship between the self-agent and other intelligent agents through the self-attention network, taking the state space of each intelligent agent as input, and outputting the state space weighted by attention; inputting the state space weighted by attention into the action network and the critic network, and outputting the execution actions of all intelligent agents; performing driving risk assessment on the execution actions of all intelligent agents based on the roundabout vehicle passage priority list to obtain revised safe actions; continuing to optimize the multi-agent reinforcement learning model based on the revised safe actions until it is fully converged; and applying the fully converged multi-agent reinforcement learning model to perform multi-vehicle collaborative decision-making at a roundabout.
[0007] In another implementation of the present invention, the multi-vehicle collaborative decision-making method for a roundabout based on safety reinforcement learning also includes: defining a vehicle traffic priority rule for the roundabout, performing a priority calculation based on the priority rule, and obtaining a vehicle traffic priority list for the roundabout.
[0008] In another implementation of the present invention, the traffic priority rule includes a lane priority rule, a distance priority rule and an attention weight priority rule.
[0009] The lane priority rule assigns lane priorities to vehicles in the order of inner lane of roundabout > outer lane of roundabout > outer lane of roundabout entrance > inner lane of roundabout entrance.
[0010] The distance priority rule determines the priority based on the distance of the vehicle from the merging center point of the roundabout. The closer the distance to the merging center point, the higher the priority. The roundabout is divided into 4 areas and the distance priority is calculated separately. When a vehicle enters the next area from the previous area, the distance priority will be recalculated.
[0011] Attention weight priority: The self-attention network outputs the attention weight of the vehicle to the surrounding vehicles. In the interactive environment, the sum of the attention weights of the vehicles is calculated. The larger the sum of the attention weights of the vehicles, the higher the priority of the vehicle.
[0012] In another implementation of the present invention, it is characterized in that the priority index p of the agent i i It is expressed as:
[0013] p i =α l p l +α d p d +α a p a
[0014] Among them, α l ,α d ,α a They are lane priority index p l , distance priority index p d , attention weight priority index p a The weight coefficient of .
[0015] The lane priority index p l It is expressed as:
[0016]
[0017] Among them, lane 1 is the inner channel of the roundabout, lane 2 is the outer channel of the roundabout, lane 3 is the outer channel of the roundabout entrance, and lane 4 is the inner channel of the roundabout entrance.
[0018] The distance priority index p d It is expressed as:
[0019]
[0020] Wherein, d is the straight-line distance from the vehicle to the merging center point, and D is the straight-line distance between the previous merging center point and the current merging center point.
[0021] The attention weight priority index p a It is expressed as:
[0022]
[0023] in, is the sum of the attention weights of all autonomous vehicles on vehicle j, j = [1, 2, …, v], Obtained from the attention matrix output by the self-attention network layer.
[0024] In another implementation of the present invention, the driving risk assessment of the execution actions of all intelligent agents based on the roundabout vehicle traffic priority list to obtain a revised safe action includes: judging whether the spacing between trajectory points at the same time step is less than a preset threshold by predicting the future trajectory of the vehicle in the state space; if the spacing between trajectory points at the same time step is less than the preset threshold, it indicates that the action executed by the intelligent agent is an unreasonable action, and the driving risk assessment is performed on other actions of the intelligent agent, and a safe action set is screened out, and a safe action is randomly selected from the safe action set to replace the unreasonable action; if the spacing between trajectory points at the same time step is greater than the preset threshold, the action executed by the intelligent agent is a safe action; until the spacing between trajectory points at all steps at the same time is greater than the preset threshold, the driving risk assessment is completed, and a revised safe action is obtained.
[0025] The multi-vehicle collaborative decision-making method for roundabouts based on safety reinforcement learning of the present invention is based on a multi-agent reinforcement learning framework, and adopts a self-attention network to output the attention-weighted state space and the corresponding attention matrix; defines the vehicle passage priority rules for the roundabout, obtains a priority list according to the priority rules, and performs driving risk assessment on the agent execution actions in turn based on the priority list. If the assessment value is less than the set threshold, the unreasonable action is replaced, and the assessment is continued until the list evaluation is completed, and finally the final execution action of all agents is output; based on the multi-agent reinforcement learning model, the present invention combines the self-attention mechanism to capture the interactive dependency relationship between the self-agent and other agents, and performs driving risk assessment through the priority list, effectively avoiding dangerous driving behavior of vehicles, reducing the risk of collision between vehicles, and promoting cooperation between vehicles, thereby improving the overall traffic efficiency and safety of the roundabout. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. By reading the detailed description of the following implementations, the advantages and benefits of the solutions become clear to those skilled in the art. The drawings are only used to illustrate the preferred implementations and are not to be considered as limiting the present invention.
[0027] In the attached picture:
[0028] Figure 1 The present invention is a flowchart of a method for multi-vehicle collaborative decision-making at a roundabout based on safety reinforcement learning according to an embodiment of the present invention.
[0029] Figure 2 A schematic diagram of a control structure area of a two-lane roundabout according to an embodiment of the present invention.
[0030] Figure 3The figure is a schematic diagram of the area division of a roundabout according to an embodiment of the present invention.
[0031] Figure 4 FIG. 4 is a schematic diagram of a collision risk area according to an embodiment of the present invention.
[0032] Figure 5 The figure is a schematic diagram of lane priority sorting at a roundabout according to an embodiment of the present invention.
[0033] Figure 6 The figure is a schematic diagram of the roundabout distance priority sorting according to an embodiment of the present invention.
[0034] Figure 7 A schematic diagram of the priority sorting of attention weights at a roundabout according to an embodiment of the present invention. DETAILED DESCRIPTION
[0035] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be described clearly and in detail below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in the field based on the embodiments in the embodiments of the present invention should fall within the scope of protection of the embodiments of the present invention.
[0036] Figure 1 A flowchart of a multi-vehicle collaborative decision-making method for a roundabout based on safety reinforcement learning is provided in an embodiment of the present invention, such as Figure 1 As shown, this embodiment mainly includes:
[0037] S101. Build a roundabout autonomous driving simulation environment based on the design requirements of urban road intersections.
[0038] For example, taking the construction of a roundabout autonomous driving simulation environment based on SUMO as an example, the roundabout scene is designed in accordance with the requirements of the "Urban Road Intersection Design Code CJ152-2010", manually driven vehicles and intelligent connected vehicles are set in the simulation environment, and traffic flows of different densities are defined.
[0039] Among them, the manually driven vehicle drives according to the built-in driving model of SUMO. The intelligent connected vehicle is taken over by the multi-agent deep reinforcement learning MADDPG model at 30m away from the entrance of the roundabout to control the vehicle to pass through the roundabout. After exiting the roundabout, it is controlled by the built-in driving model of SUMO. Figure 2 As shown, the yellow vehicle is a manually driven vehicle, and the red vehicle is an intelligent connected vehicle.
[0040] S102. Define the state space and action space of the agent, design the reward function, build the action network and critic network, and construct a multi-agent reinforcement learning model.
[0041] Exemplarily, a multi-agent deep reinforcement learning MADDPG model is constructed. MADDPG is based on the Actor-Critic framework. The execution actions and state spaces of all agents are aggregated into a shared Critic network for training. The Critic network provides guidance to the Actor network of each agent during the training process. During execution, the Actor network of each agent outputs execution actions completely independently.
[0042] During training, the parameters of each Actor network are θ i , updated by the policy gradient of each agent's expected benefit, expressed as:
[0043]
[0044] Where D is the experience replay pool for storing data, and each stored data is in the form of (S, A, R, S').
[0045] The parameters of the Critic network for centralized training are ω i , updated through the loss function, expressed as:
[0046]
[0047] Among them, the state space O of agent i i Define the state information of the vehicle and the state information of all observable vehicles within the perception range, O i It is a matrix with dimension N×F, where N is the number of all observable vehicles of agent i (including the self-vehicle) and F is the number of features of the vehicle state.
[0048] The feature vector of vehicle k is expressed as:
[0049] F k =[ispresent k ,x k ,y k ,v k ,ψ k ,lane_id k ]
[0050] Among them, ispresent k Indicates whether the vehicle is observable by itself, x k is the lateral position of the vehicle, y k is the longitudinal position of the vehicle, v k is the speed of the vehicle, ψk is the heading angle of the vehicle, lane_id k The lane id of the vehicle.
[0051] The global state space S is defined as the joint state space of all agents within the control range of the roundabout, expressed as:
[0052] S=O 1 ×O 2 ×…×O ν
[0053] Among them, O ν represents the state space of the νth vehicle, and ν represents the number of all controlled vehicles.
[0054] The action space A of agent i i Defined as a set of high-level behavioral decisions, including right lane change, left lane change, maintaining speed, accelerating, and decelerating.
[0055] The global action space A is defined as the combination of actions of all agents within the control range of the roundabout, expressed as:
[0056] A=A 1 ×A 2 ×…×A ν
[0057] Among them, A ν represents the execution action of the νth vehicle, and ν represents the number of all controlled vehicles.
[0058] The reward function of agent i at time step t is defined as:
[0059] r i,t =r c +r a +κ e r e +κ s r s +κ j r j
[0060] Among them, κ e ,κ s ,κ j The efficiency reward r e 、Safety Reward s and comfort bonus j The weight coefficient of .
[0061] Collision Reward c It is expressed as:
[0062]
[0063] Rewardsa It is expressed as:
[0064]
[0065] Efficiency Reward e It is expressed as:
[0066]
[0067] Among them, v ego is the vehicle speed, v max is the maximum speed limit of the roundabout, and the minimum speed limit v in the roundabout min Defined as 0.
[0068] Due to the particularity of roundabouts, such as Figure 3 As shown in the figure, the roundabout is divided into the roundabout weaving area and the roundabout loop area, and the safety reward function is defined for each of them. The safety reward r s It is expressed as:
[0069]
[0070] When vehicles are in the weaving area of a roundabout:
[0071] In view of the particularity of the intersection, such as Figure 4 As shown, a vehicle collision risk area is established, and expansion processing is performed in the lateral and longitudinal directions of the vehicle.
[0072] The vehicle collision risk area is established based on the ellipse model, and the collision risk area is expressed as:
[0073]
[0074] Where a is the major axis, a = σ 1 L / 2; b is the minor axis, b = σ 2 W / 2;σ 1 , σ 2 are the longitudinal and lateral expansion coefficients respectively. The expansion coefficient increases with the increase of vehicle speed, that is, the collision risk area expands with the increase of vehicle speed. L is the vehicle length, W is the vehicle width, and x ν ,y ν are the horizontal and vertical coordinates of the vehicle center respectively.
[0075] Penalty is imposed by judging whether the collision risk areas between two vehicles overlap, which can be expressed as:
[0076]
[0077] When the vehicle is in the roundabout area:
[0078]
[0079] Among them, TTC is the collision time, and the penalty starts when TTC is less than 3s.
[0080] Comfort Rewards j It is expressed as:
[0081]
[0082] Among them, a t is the acceleration at the current moment, a t-1 is the acceleration at the previous moment, a max ,a min are the maximum and minimum acceleration respectively.
[0083] In contrast, multi-agent reinforcement learning can more comprehensively consider the cooperation between vehicles and reduce the potential risk of collision between vehicles. Agents can effectively exchange information to coordinate their actions, thereby improving overall traffic efficiency and safety. When solving autonomous driving decision-making problems, the collaborative ability of multi-agent reinforcement learning will bring greater advantages to the transportation system.
[0084] S103. Each intelligent agent obtains its own vehicle status information and status information of other surrounding vehicles within the perception range through the roundabout autonomous driving simulation environment.
[0085] Exemplarily, based on an autonomous driving simulation environment, each agent's own vehicle status information and the status information of other surrounding vehicles within the perception range are obtained, where the vehicle status information includes the vehicle's lateral position, longitudinal position, speed, heading angle, and lane identifier; the multi-agent deep reinforcement learning MADDPG model outputs execution actions that are executed by the simulation environment.
[0086] S104. Construct a self-attention network to capture the interactive dependencies between the self-agent and other agents through the self-attention network, take the state space of each agent as input, and output the state space weighted by attention.
[0087] Exemplarily, a self-attention network is constructed to capture the interactive dependencies between the self-agent and other agents. The state space of each agent is taken as input. The network outputs the attention-weighted state space, which is passed to the action network and the critic network, and outputs the corresponding attention matrix for attention weight priority calculation.
[0088] The self-attention network consists of three modules: encoder module, multi-head self-attention module and decoder module.
[0089] Specifically, the encoder module transforms the state space O of agent i intoi The input is encoded into a high-dimensional vector χ i , expressed as:
[0090] χ i =MLP(O i )
[0091] The high-dimensional vector χ i Input into the self-attention module composed of N attention heads stacked, and the attention weight of agent i to the surrounding vehicles is calculated through the multi-head self-attention module; in the multi-head self-attention module, the vehicle itself is used as the query value Query, and the attention vector is calculated through the encoded query value Query, key value Key and value Value. and attention weights It is expressed as:
[0092]
[0093] Among them, σ is the soft max function, d k is the encoder output dimension, Q i is the query value Query, K i is the key value Key, V i is the value Value; the outputs of N attention heads are combined into a linear layer, and the attention matrix at i It is expressed as:
[0094]
[0095] in, represents the attention weight of agent i to surrounding vehicles j, Satisfies the cumulative sum relationship: By i Used for subsequent attention weight priority calculation; the attention vector Input to the decoder module, output the attention-weighted state space S′ i , to capture the interactive dependencies between the self-agent and other agents.
[0096] The constructed self-attention network is embedded into the actor network and critic network to achieve the above functions.
[0097] S105. Input the attention-weighted state space into the action network and the critic network, and output the execution actions of all agents.
[0098] Exemplarily, a multi-agent reinforcement learning MADDPG model is trained by building a roundabout autonomous driving simulation environment; the state space of each agent is obtained through the simulation environment, the state space processed by the self-attention network is input into the multi-agent reinforcement learning MADDPG model, and the model outputs the execution actions of all agents.
[0099] S106: Perform driving risk assessment on the execution actions of all intelligent agents based on the roundabout vehicle passage priority list to obtain corrected safe actions.
[0100] S107. Continue to optimize the multi-agent reinforcement learning model based on the corrected safety actions until it is fully converged.
[0101] Exemplarily, the safety action is input into the simulation environment, the state at the next moment is obtained, and the model is continuously trained until it is fully converged.
[0102] S108. Apply a fully converged multi-agent reinforcement learning model to make collaborative decisions among multiple vehicles at roundabouts.
[0103] The multi-vehicle collaborative decision-making method for roundabouts based on safety reinforcement learning of the present invention is based on a multi-agent reinforcement learning framework, and adopts a self-attention network to output the attention-weighted state space and the corresponding attention matrix; defines the vehicle passage priority rules for the roundabout, obtains a priority list according to the priority rules, and performs driving risk assessment on the agent execution actions in turn based on the priority list. If the assessment value is less than the set threshold, the unreasonable action is replaced, and the assessment is continued until the list evaluation is completed, and finally the final execution action of all agents is output; based on the multi-agent reinforcement learning model, the present invention combines the self-attention mechanism to capture the interactive dependency relationship between the self-agent and other agents, and performs driving risk assessment through the priority list, effectively avoiding dangerous driving behavior of vehicles, reducing the risk of collision between vehicles, and promoting cooperation between vehicles, thereby improving the overall traffic efficiency and safety of the roundabout.
[0104] In another implementation of the present invention, the multi-vehicle collaborative decision-making method for a roundabout based on safety reinforcement learning also includes: defining a vehicle traffic priority rule for the roundabout, performing a priority calculation based on the priority rule, and obtaining a vehicle traffic priority list for the roundabout.
[0105] In another implementation of the present invention, the traffic priority rule includes a lane priority rule, a distance priority rule and an attention weight priority rule.
[0106] Lane priority rules such as Figure 5As shown, the lane priorities of vehicles are assigned in the order of inner channel of roundabout > outer channel of roundabout > outer channel of roundabout entrance > inner channel of roundabout entrance.
[0107] The distance priority rule is as follows Figure 6 As shown, the priority is determined based on the distance of the vehicle from the merging center point of the roundabout. The closer the distance to the merging center point, the higher the priority. The roundabout is divided into four areas and the distance priorities are calculated separately. When a vehicle enters the next area from the previous area, the distance priority will be recalculated.
[0108] Attention weight priority is as follows Figure 7 As shown, the self-attention network outputs the attention weights of the vehicle to the surrounding vehicles, and in the interactive environment, the sum of the attention weights of the vehicles is calculated. The larger the sum of the attention weights of the vehicles, the higher the priority of the vehicle.
[0109] In another implementation of the present invention, it is characterized in that the priority index p of the agent i i It is expressed as:
[0110] p i =α l p l +α d p d +α a p a
[0111] Among them, α l ,α d ,α a They are lane priority index p l , distance priority index p d , attention weight priority index p a The weight coefficient of .
[0112] The lane priority index p l It is expressed as:
[0113]
[0114] Among them, lane 1 is the inner channel of the roundabout, lane 2 is the outer channel of the roundabout, lane 3 is the outer channel of the roundabout entrance, and lane 4 is the inner channel of the roundabout entrance.
[0115] The distance priority index p d It is expressed as:
[0116]
[0117] Wherein, d is the straight-line distance from the vehicle to the merging center point, and D is the straight-line distance between the previous merging center point and the current merging center point.
[0118] The attention weight priority index p a It is expressed as:
[0119]
[0120] in, is the sum of the attention weights of all autonomous vehicles on vehicle j, j = [1, 2, …, v], Obtained from the attention matrix output by the self-attention network layer.
[0121] In another implementation of the present invention, the driving risk assessment of the execution actions of all intelligent agents based on the roundabout vehicle traffic priority list to obtain a revised safe action includes: judging whether the spacing between trajectory points at the same time step is less than a preset threshold by predicting the future trajectory of the vehicle in the state space; if the spacing between trajectory points at the same time step is less than the preset threshold, it indicates that the action executed by the intelligent agent is an unreasonable action, and the driving risk assessment is performed on other actions of the intelligent agent, and a safe action set is screened out, and a safe action is randomly selected from the safe action set to replace the unreasonable action; if the spacing between trajectory points at the same time step is greater than the preset threshold, the action executed by the intelligent agent is a safe action; until the spacing between trajectory points at all steps at the same time is greater than the preset threshold, the driving risk assessment is completed, and a revised safe action is obtained.
[0122] For example, in each simulation step, the lane information and position information of all CAVs are obtained through the simulation environment, and the lane priority index p is calculated according to the lane priority and distance priority formula. l and the distance priority index p d ; The attention matrix of each agent is output through the self-attention network layer in the multi-agent reinforcement learning MADDPG model, and the attention weight priority index p is calculated according to the attention weight priority formula a ; According to the weighted sum of the above three priority indices, the priority index p of each agent is obtained i , according to the priority index p i Arrange them in order from large to small to get the priority list L of the CAV at the roundabout. Vehicles with high priority will make decisions first, while vehicles with low priority need to make decisions based on the decisions of vehicles with high priority.
[0123] According to the agent's priority index p iGet the priority list L of CAV, select agents in turn according to the priority list L to perform driving risk assessment on their actions, if the assessment value is lower than the set threshold, correct the unreasonable action, where the threshold can be set to 2.7; continue to select agents from the priority list L to perform driving risk assessment until the priority list L is checked, and output the corrected global action space A′, the driving risk assessment includes the following steps:
[0124] Agent i predicts the trajectory of the future time step T based on the executed actions. The CAV in the state space of agent i predicts the trajectory of the future time step T based on the executed actions at the previous moment. The artificially driven vehicle predicts the trajectory of the future time step T based on the physical model (such as CTRA, CSAV, CSAA model) combined with historical information.
[0125] By calculating whether the distance between trajectory points at the same time step is less than the threshold, it is determined whether the future trajectory of agent i conflicts with other vehicles. If there is a conflict, the current action A is changed. i Replace with safe action A′ i ; Safety action A′ i According to the driving risk assessment of the remaining action sets, the safe action set is screened out , according to the security action set Randomly select a safe action A′ i , if there is no conflict, agent i performs the current action and the driving risk assessment ends.
[0126] Continue to select the next agent from the priority list L for driving risk assessment. When performing trajectory prediction, if the state space of agent i+1 contains agent i, the execution action of agent i is replaced by the action corrected by the driving risk assessment, and the driving risk assessment is continued until all agents in the list have completed the assessment.
[0127] Thus far, specific embodiments of the present invention have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims may be performed in a different order and still achieve the desired results. Additionally, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing may be advantageous.
[0128] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0129] In the description of the present invention, the terms "first" and "second" are only used to facilitate the description of different components or names, and cannot be understood as indicating or implying a sequential relationship, relative importance, or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features.
[0130] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0131] It should be noted that although the specific embodiments of the present invention are described in detail in conjunction with the accompanying drawings, it should not be understood as limiting the scope of protection of the present invention. Within the scope described in the claims, various modifications and variations that can be made by those skilled in the art without creative work still belong to the scope of protection of the present invention.
[0132] The examples of the embodiments of the present invention are intended to concisely illustrate the technical features of the embodiments of the present invention so that those skilled in the art can intuitively understand the technical features of the embodiments of the present invention, and are not intended to be improper limitations of the embodiments of the present invention.
[0133] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A multi-vehicle collaborative decision-making method for roundabouts based on safety reinforcement learning, characterized in that: include: According to the design requirements of urban road intersections, a simulation environment for automatic driving at roundabout intersections is built; Define the state space and action space of the agent, design the reward function, build the action network and critic network, and construct a multi-agent reinforcement learning model; Each intelligent agent obtains its own vehicle state information and state information of other surrounding vehicles within the perception range through the roundabout autonomous driving simulation environment; Constructing a self-attention network, capturing the interactive dependency between the self-agent and other agents through the self-attention network, taking the state space of each agent as input, and outputting the state space weighted by attention; Input the attention-weighted state space into the action network and the critic network, and output the execution actions of all agents; Based on the priority list of vehicles passing through the roundabout, the driving risk of all agents' execution actions is evaluated to obtain the corrected safe actions; Continuing to optimize the multi-agent reinforcement learning model based on the corrected safety action until it is fully converged; A fully converged multi-agent reinforcement learning model is used to make multi-vehicle collaborative decisions at roundabouts.
2. The method according to claim 1, characterized in that Also includes: A vehicle traffic priority rule for a roundabout is defined, and priority calculation is performed based on the priority rule to obtain a vehicle traffic priority list for the roundabout.
3. The method according to claim 2, characterized in that The traffic priority rules include lane priority rules, distance priority rules and attention weight priority rules; Lane priority rule: assign lane priority to vehicles in the order of inner lane of roundabout > outer lane of roundabout > outer lane of roundabout entrance > inner lane of roundabout entrance; Distance priority rule: Priority is determined based on the distance of the vehicle from the center point of the roundabout. The closer the distance to the center point, the higher the priority. The roundabout is divided into four areas and the distance priority is calculated separately. When a vehicle enters the next area from the previous area, the distance priority will be recalculated. Attention weight priority: The self-attention network outputs the attention weight of the vehicle to the surrounding vehicles. In the interactive environment, the sum of the attention weights of the vehicles is calculated. The larger the sum of the attention weights of the vehicles, the higher the priority of the vehicle.
4. The method according to claim 3, characterized in that The priority index p of the agent i i It is expressed as: p i =a l p l +a d p d +a a p a Among them, α l ,α d ,α a They are lane priority index p l , distance priority index p d , attention weight priority index p a The weight coefficient of The lane priority index p l It is expressed as: Among them, lane 1 is the inner channel of the roundabout, lane 2 is the outer channel of the roundabout, lane 3 is the outer channel of the roundabout entrance, and lane 4 is the inner channel of the roundabout entrance; The distance priority index p d It is expressed as: Where d is the straight-line distance from the vehicle to the merging center, and D is the straight-line distance from the previous merging center to the current merging center; The attention weight priority index p a It is expressed as: in, is the sum of the attention weights of all autonomous vehicles on vehicle j, j = [1, 2, …, v], Obtained from the attention matrix output by the self-attention network layer.
5. The method according to claim 2, characterized in that: The driving risk assessment of the execution actions of all intelligent agents based on the roundabout vehicle passing priority list is performed to obtain the corrected safe actions, including: By predicting the future trajectory of the vehicle in the state space, it is determined whether the distance between trajectory points at the same time step is less than a preset threshold; If the distance between trajectory points at the same time step is less than a preset threshold, it means that the action performed by the agent is unreasonable. The driving risk of other actions of the agent is evaluated, and a safe action set is screened out. A safe action is randomly selected from the safe action set to replace the unreasonable action. If the distance between trajectory points at the same time step is greater than the preset threshold, the action performed by the agent is a safe action; Until the distances between all step trajectory points are greater than the preset threshold at the same time, the driving risk assessment is completed and the corrected safety action is obtained.
Citation Information
Cited By
Decision-making method and device for multi-vehicle reinforcement learning, storage medium and equipment
CN119807896A
Method for identifying traffic conflicts in roundabout based on curve driving behaviors
CN119964370A
Automatic driving scene generation method and system based on multi-agent reinforcement learning
CN122433785A
Method and system for generating autonomous driving scene based on multi-agent reinforcement learning
CN122433785B
Automatic driving collaborative risk avoiding method based on cross attention
CN122704212A
