Automatic driving non-signalized intersection decision generation method based on hierarchical reinforcement learning
Through the hierarchical reinforcement learning method, combined with the AWAC and D3QN algorithms, the left turn decision at an unsignalized intersection is decomposed into longitudinal acceleration and lateral radius decisions, which solves the problem of difficult decision-making for autonomous driving in the left turn scenario at an unsignalized intersection and achieves a more comprehensive Efficient and human-like traffic decisions.
Patent Information
- Application Number
- CN202410907860.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-08
AI Technical Summary
It is difficult for autonomous driving to make decision-making and planning in left-turn scenarios at unsignalized intersections, especially the interaction with oncoming through vehicles, resulting in low traffic efficiency and poor real-time performance of the algorithm.
Using a method based on hierarchical reinforcement learning, the AWAC algorithm and the D3QN algorithm are used to decompose the decision into longitudinal acceleration and lateral left-turn radius decisions, and use real driving data to train the path and speed decision-making modules to improve computing efficiency and decision-making timeliness.
Achieving more efficient and human-like traffic decisions in left-turn scenarios at unsignalized intersections improves the traffic efficiency and safety of the autonomous driving system.
Smart Images

Figure CN118790290A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of vehicle driving decision-making, and in particular relates to a method for generating decisions at an unsignalized intersection for automatic driving based on hierarchical reinforcement learning. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] Among many driving environments, urban intersections are one of the hot spots and pain points in autonomous driving research. As a typical complex dynamic time-varying scenario, the decision-making and planning research on its crossing behavior is helpful to the implementation of autonomous driving behavior. As a special intersection traffic behavior, the left turn at an unprotected intersection is one of the most complex autonomous driving scenarios because straight-moving and left-turning vehicles share the same traffic zone and lack traffic lights. The interaction between left-turning vehicles and oncoming straight-moving vehicles during the crossing process will bring difficulties to decision-making and planning. According to statistics, more than 80% of autonomous driving failures occur at intersections, among which unprotected left-turn decisions are one of the core challenges. The interactive conflicts caused by the mixed traffic of manned / unmanned driving at urban intersections are more obvious, and the implementation of unprotected intersection decision-making and planning will face more severe challenges.
[0004] Although rule-based decision-making methods are simple in logic, easy to work, and can directly draw on human driving experience, they usually ignore the complexity of traffic, are usually too conservative, and have poor generalization. Decision-making methods based on POMDP and game theory take into account uncertainty and interaction, but are difficult to solve and have poor real-time performance. Traditional reinforcement learning decision-making methods have low utilization rates of real driving data, untimely acceleration and deceleration, rigid turning paths, and difficulty in generating human-like decisions, resulting in low traffic efficiency. Summary of the invention
[0005] In order to solve the above problems, the present invention proposes a decision-making method for unsignalized intersections in autonomous driving based on hierarchical reinforcement learning. For the left-turn task at an unsignalized intersection, the complexity of traffic is taken into account by introducing multiple intentions of oncoming vehicles, and the calculation efficiency is improved by using the AWAC algorithm and the D3QN algorithm. The real driving data is used to improve the timely setting of turning acceleration and deceleration, which is more in line with the decisions made by people.
[0006] In order to achieve the above object, the present invention adopts the following technical solution: In a first aspect, the present invention provides a method for generating decision making for an unsignalized intersection for autonomous driving based on hierarchical reinforcement learning, comprising: Obtaining the real driving environment of the vehicle and the oncoming vehicle; the driving environment includes environmental observation values and action space; The real driving environment is input into the path decision module to obtain the decision trajectory; the decision trajectory is input into the speed decision module to obtain the decision speed; the path decision module and the speed decision module are trained based on the simulated driving environment, the vehicle trajectory, the end condition and the reward function; The ego vehicle performs the left turn task according to the decision trajectory and decision speed.
[0007] Preferably, the real driving environment of the own vehicle and the oncoming vehicle is acquired while performing coordinate conversion, transforming the real driving environment from the world coordinate system to the own vehicle coordinate system; The environmental observation values include motion parameters of the vehicle and the oncoming vehicle, the intersection of the trajectory of the vehicle and the trajectory of the oncoming vehicle, and the speed range of the vehicle.
[0008] Preferably, the oncoming vehicles include a front vehicle and a rear vehicle, and the action space includes an aggressive action, a yielding action, and a normal action; The radical action is that the front vehicle moves forward, and the rear vehicle follows the front vehicle and performs the same action as the front vehicle; the self-vehicle does not perform a left turn; The yielding action is that the front vehicle slows down to a stop at the intersection, and the rear vehicle follows the front vehicle and performs the same behavior as the front vehicle; the self-vehicle performs a left turn through the intersection, and the oncoming vehicle waits; The common action is that the front vehicle moves forward, and the rear vehicle slows down to stop at the intersection; the self-vehicle turns left through the intersection, and the rear vehicle waits.
[0009] Preferably, the training process of the speed decision module is: Obtain a first driving environment and a preset trajectory of the vehicle, and input them into a speed decision module for training; calculate a first reward when a first end condition is triggered, and if the first reward value reaches a set threshold, the speed decision module training is completed; Among them, the first driving environment includes a first environmental observation value and an action space; the first environmental observation value includes motion parameters of the vehicle and the oncoming vehicle, and the intersection of the vehicle's trajectory and the oncoming vehicle's trajectory; the first termination condition includes crossing, collision and timeout failure; the first reward includes a first no-collision reward, a speed reward and a no-timeout reward.
[0010] Preferably, the training process of the path decision module is: The second driving environment and the variable trajectory of the vehicle are obtained and input into the path decision module for training; when the second end condition is triggered, the second reward is calculated, and if the second reward value reaches the set threshold, the path decision module training is completed; Among them, the second driving environment includes second environment observation values and action space; the second environment observation values include motion parameters of the vehicle and the oncoming vehicle, the intersection of the vehicle trajectory and the oncoming vehicle trajectory, and the speed range of the vehicle; the second termination condition includes crossing and collision; the second reward includes a second collision-free reward, a speed reward, a path change reward, and an termination reward.
[0011] Preferably, the speed decision module is trained based on the AWAC algorithm and the TD3 algorithm.
[0012] Preferably, the path decision module is trained based on the D3QN algorithm.
[0013] In a second aspect, the present invention provides an automatic driving unsignalized intersection decision generation system based on hierarchical reinforcement learning, comprising: An environment acquisition unit, used to acquire the real driving environment of the vehicle and the oncoming vehicle; the driving environment includes environmental observation values and action space; A decision acquisition unit is used to input the real driving environment into the path decision module to obtain a decision trajectory; input the decision trajectory into the speed decision module to obtain a decision speed; the path decision module and the speed decision module are trained based on the simulated driving environment, the vehicle trajectory, the end condition and the reward function; The decision execution unit is used for the ego vehicle to execute the left turn task according to the decision trajectory and decision speed.
[0014] In a third aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the method for generating decisions at unsignaled intersections for autonomous driving based on hierarchical reinforcement learning as described in the first aspect.
[0015] In a fourth aspect, the present invention provides a computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the method for generating decisions for unsignalized intersections in an autonomous driving based on hierarchical reinforcement learning as described in the first aspect are implemented.
[0016] Compared with the prior art, the present invention has the following beneficial effects: The present invention provides a method for generating decisions at unsignalized intersections for autonomous driving based on hierarchical reinforcement learning. The scheme decomposes the unsignalized intersection left-turn decision task into two parts: lateral decision and longitudinal decision for the unsignalized intersection left-turn scenario. The goal of the longitudinal decision is to provide a suitable acceleration for the left-turn task, and the goal of the lateral decision is to select a suitable left-turn radius for the left-turn task. The upper-layer path decision module is implemented by the D3QN algorithm, and the lower-layer speed decision module is implemented by the AWAC algorithm. More efficient and more human-like traffic can be achieved in the unsignalized intersection left-turn task.
[0017] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings constituting a part of the present disclosure are used to provide a further understanding of the present disclosure. The exemplary embodiments of the present disclosure and the description thereof are used to explain the present disclosure but do not constitute a limitation of the present disclosure.
[0019] Figure 1 A main flow chart of a method for generating decision on an unsignalized intersection for autonomous driving based on hierarchical reinforcement learning provided in the first embodiment of the present disclosure; Figure 2 A detailed flow chart of a method for generating decision at an unsignalized intersection for autonomous driving based on hierarchical reinforcement learning provided in the first embodiment of the present disclosure; Figure 3 This is a schematic diagram of the training simulation environment described in Example 1 of the present invention. DETAILED DESCRIPTION
[0020] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0021] Embodiment 1 like Figure 1 As shown, this embodiment discloses a method for generating decision on an unsignalized intersection for autonomous driving based on hierarchical reinforcement learning, comprising the following steps: S1: Acquire the real driving environment of the vehicle and the oncoming vehicle; the driving environment includes environmental observation values and action space; S2: Input the real driving environment into the path decision module to obtain the decision trajectory; input the decision trajectory into the speed decision module to obtain the decision speed; the path decision module and the speed decision module are trained based on the simulated driving environment, the vehicle trajectory, the end condition and the reward function; S3: The ego vehicle performs the left turn task according to the decision trajectory and decision speed.
[0022] This embodiment decomposes the left-turn decision task at an unsignalized intersection into two parts: lateral decision and longitudinal decision. The goal of the longitudinal decision is to provide a suitable acceleration for the left-turn task, while the goal of the lateral decision is to select a suitable left-turn radius for the left-turn task.
[0023] In the hierarchical reinforcement learning of the present invention, Figure 2 As shown in the figure, the upper-level path decision module is implemented by the D3QN algorithm, and the lower-level speed decision module is implemented by the AWAC algorithm. During the training process, the AWAC algorithm is first trained with real data sets and TD3 enhanced data. The TD3 enhanced data contains randomly generated turning radius, which not only enables the algorithm to learn speed decisions in various situations, but also better couples with the real data set. After that, the randomly generated turning radius in the fixed environment is used to control the speed of the trained AWAC algorithm, so that the D3QN algorithm can recognize the intention of the oncoming vehicle and output the appropriate large-radius left turn opportunity. After the speed and path decision modules are trained, the environmental information is first input into the path decision module to decide whether to change the turning radius, and then the result is input into the speed decision module to output the appropriate acceleration to complete the overall decision.
[0024] 1. Dataset extraction and simulation environment generation 1. Dataset Data Extraction The present invention selects the Interaction dataset as the source of real driving data, and selects the scenes numbered DR_USA_Interaction_EP0 and DR_USA_Interaction_EP1. By effectively visualizing the segmented road data in different scenes of the dataset, the left turn data of the unsignalized intersection in these scenes are screened.
[0025] After extracting the vehicle trajectory data, in order to standardize the data and facilitate its use and to establish the simulation environment, the coordinate system is transformed to obtain the trajectory data coordinate system. The center point O of the road in the environment is taken as the origin of the coordinate system, the X-axis direction is perpendicular to the right of the vehicle lane, and the Y-axis is the forward direction of the vehicle lane. The extracted data of the vehicle and the oncoming vehicle are rotated in the coordinate system, and if they do not exist, their data are filled with 0.
[0026] 2. Simulation environment generation First, the trajectory and position of the ego vehicle and other vehicles in the simulation environment are designed. The coordinate system of the simulation environment is the same as the coordinate system after the coordinate system of the trajectory data is transformed. The center point O of the road is used as the origin of the coordinate system in the coordinate transformation, and the X-axis and Y-axis are in the same direction. The ego vehicle is set as a left-turning vehicle, and two environment vehicles are set in the opposite lane, where surround1 is the front vehicle of the oncoming vehicle, and surround2 is the rear vehicle of the oncoming vehicle.
[0027] Since the present invention is mainly aimed at the decision-making part of left turn, the initial trajectory is set by splicing a straight line and a quarter circle. Figure 3 The red part in the middle is the reference trajectory of the self-driving car, which consists of three sections (entry section ab, straight ahead; left turn section semicircle bc, radius R; exit section cd). The blue part is the driving trajectory of the two oncoming vehicles. The point where the trajectory of the self-driving car intersects with the trajectory of the oncoming vehicle is point P in the figure. The straight line corresponding to A in the figure is the starting line of the self-driving car's starting road, and the straight line corresponding to B is the starting line of the oncoming vehicle's road.
[0028] After the environment is set up, this embodiment adds the interaction process between the ego vehicle and the surrounding vehicles to the environment. By analyzing the left-turn data in the Interaction dataset, this embodiment summarizes the possible reactions of vehicles in the opposite lane into the following three types: (1) Aggressive: To enable the algorithm to prevent the ego vehicle from turning left and from engaging in dangerous driving behaviors such as forcing a crossing. In this scenario, surround1 is set to drive forward regardless of the behavior of the ego vehicle, and surround2 follows surround1.
[0029] (2) Yielding type: Based on the oncoming vehicle yielding scenario existing in the real environment, surround1 will slow down and stop before intersection A when there is a left-turning vehicle, waiting for the left-turning vehicle to pass, and surround2 will follow surround1.
[0030] (3) Normal type: Through observation of real data, it is found that when a left-turning vehicle approaches or exits the lane line and has forward speed, that is, when it shows the intention to cross, surround2 usually yields, so this environment type is set. When the position of the vehicle exceeds the intersection A and has a certain speed, if surround2 can slow down to a stop before the intersection A, it will yield and realize a safe left turn. Otherwise, surround2 drives normally.
[0031] The initial positions and velocities of surround1 and surround2 in the environment are randomly generated within a certain range to improve the applicability of the algorithm.
[0032] 2. Lower-level speed decision model based on AWAC 1. AWAC algorithm The AWAC algorithm still updates the critic by minimizing the Bellman error, as shown below: (1) (2) AWAC adds implicit constraints to the actor through the following process. First, it adopts the idea similar to other offline reinforcement learning algorithms, that is, constraining the policy to be close to the policy in the prior dataset. Therefore, AWAC optimizes the policy so that the estimated Q function in each state is Maximize while constraining it to stay close to the actions observed in the data. Since optimizing the advantage function can achieve the same effect as the Q function, the advantage function A is selected for optimization in the algorithm, and the final optimization function is as follows: (3) (4) Where k is the k-th iteration, represents the possible strategy distribution in the data, β refers to the replay experience area, and the constraint below is the KL divergence.
[0033] Since directly adding hard constraints will cause offline reinforcement learning to lose the ability of subsequent fine-tuning, this embodiment adopts the KKT method to obtain the solution of the above formula, and its Lagrangian equation is as follows: (5) The analytical solution to this problem can be written as By minimizing The KL divergence with the analytical solution is used to learn the strategy. The specific method is as follows:
[0034] (6) in, is the parameter vector. If the reverse KL divergence is chosen here, an explicit penalty effect will be produced. Therefore, the algorithm chooses the forward KL here, and directly samples from β to calculate the strategy update. The update formula is as follows: (7) 2. Model design For the training of the lower-level speed decision module, it is necessary to consider the coordination with the subsequent upper-level path planning training. Therefore, in this embodiment, the bc segment of the initial reference trajectory generated by each training environment during the training process is Figure 3 The radius R shown is randomly generated in the range of [5,13.5]m, and the position of point P in the figure will change accordingly. The maximum value of the reference trajectory radius range is selected as 13.5m, which means that the left turn starts 1m before the starting line of the road. The minimum value is selected as 5m, which is obtained from the following formula for the vehicle to perform constant speed circular motion.
[0035]
[0036] Among them, R is the radius of circular motion, V is the speed of the vehicle, is the vehicle's yaw rate, K is the stability factor, is the wheelbase of the car, It is the front wheel turning angle. By calculation, it can be obtained that the minimum turning radius of the vehicle is about 5m at the maximum speed of 8m / s set in this embodiment, so 5m is selected as the minimum value here.
[0037] By making the speed decision model make left turns under different reference lines, more left turn data at different radii can be obtained, so that the lower-level speed decision model can cope with different turning radii selected by the upper-level path selection model during subsequent path selection training.
[0038] (1) State space design Assume that the ego vehicle knows the relevant information of all oncoming vehicles in the current environment. In order to enable the vehicle to obtain the status of the ego vehicle and the status of the two oncoming vehicles, and at the same time understand the conflict point between the ego vehicle and the oncoming vehicles, the first environmental observation value designed in this embodiment is: . include , represents the x and y position of the ego vehicle in the world coordinate system, and Represent the x-axis and y-axis components of the ego vehicle's velocity, respectively. Yaw is the vehicle's heading angle.
[0039] point includes , in and are the x and y positions of the intersection of the ego vehicle reference line and the center line of the oncoming road. Figure 3 The midpoint P is shown. This parameter provides the model with a potential left turn conflict point, and this parameter will also change as the generated turning radius changes.
[0040] include , representing the x position, y position, heading angle, x-axis velocity component, and y-axis velocity component of the oncoming vehicle surround1. Represents the parameters of surround2 of the oncoming vehicle. The specific type is same.
[0041] (2) Action space design The model generates the current acceleration of the vehicle. To ensure comfort, this embodiment sets the acceleration output range to [-1.5, 1.5] m / s². Since the vehicle's driving behavior is to turn left, its speed cannot be too high to meet the vehicle's kinematic requirements. By analyzing the data of left-turning vehicles extracted from the real driving data, this embodiment sets the maximum speed of the vehicle during the left turn to 8 m / s. During the training process, the vehicle moves along the preset reference line according to the following formula.
[0042]
[0043] In the formula, a represents the acceleration obtained by the algorithm, is the driving distance on the preset path, including the straight entry section, the semicircle of the left turn section, and the straight exit section; ∆t is the time interval between two frames, which is 0.1s here.
[0044] (3) Setting the end conditions of the training environment Set the vehicle to pass Figure 3 The training process ends at the end point d of the reference line. The training process will also end if a collision occurs during driving. The environment will also end automatically if the running time exceeds 20s.
[0045] (4) Reward function design The reward function design of the algorithm in this embodiment mainly considers the efficiency and safety of the vehicle and promotes the convergence of the algorithm. A no-collision reward is set, and a collision will result in a negative reward:
[0046] Simple speed rewards are used to encourage vehicles to pass through intersections quickly. The speed rewards are set as follows:
[0047] Where v is the vehicle speed in each frame, is the efficiency bonus coefficient, which is chosen to be 1 here.
[0048] In order to prevent the vehicle from staying in the same place, this embodiment sets a reward for not overtime at the end of the environment. If the vehicle can pass the end point within 20 seconds, it will be given a reward of 10. If the vehicle still fails to complete the crossing after the timeout, it will be given a penalty of -100. The details are as follows:
[0049] The final overall reward design is:
[0050] The interaction mode between the vehicle and the oncoming vehicle in the training environment is as described in the action space, where aggressive, yielding, and normal are set in a ratio of 1:1:2. The training data set is 14,620 sets of training data extracted from the Interaction data set. At the same time, in order to improve the training effect and efficiency of AWAC and to make up for the difference between the real data and the environment set in this embodiment, the data set is expanded by the training data obtained by TD3 training in the simulation environment, and finally the training data totals 100,000 sets.
[0051] The training process of the lower-level speed decision module based on AWAC in this embodiment is to take the current environmental observation value as input, then update the critic according to the formulas (1) and (2), and then update the strategy according to formula (7), and the output is the acceleration of the vehicle.
[0052] 3. Upper-layer path selection model based on D3QN 1.D3QN algorithm The full name of the D3QN algorithm is Dueling Double DQN. It combines the characteristics of Dueling DQN and Double DQN on the basis of DQN and achieves better results.
[0053] The Double DQN algorithm first selects the action corresponding to the maximum Q value through the estimation network. The formula is as follows: (8) Afterwards, the Q value of this action is calculated through the target network as follows: (9) The final Q value formula is as follows: (10) Where θ is the estimated network parameter, The target network parameters are copied to the target network at regular intervals. This update method ensures that the estimate of the true value will not change too quickly as the estimated network is continuously updated, effectively curbing the overestimation of the Q value.
[0054] Dueling DQN splits the original Q function output into two parts: the state value function V and the action advantage function A. Among them, the state value function V is defined as follows: (11) The action advantage function A is defined as follows: (12) If V and A are updated directly through the above formula, there are hidden dangers, because once the neural network trains V to a fixed value of 0, the network structure loses its original function and becomes a simple DQN network. Therefore, if A is normalized, the V value obtained by training must be the average value of all action Q values in this state, thus avoiding the above problem. This can be achieved by subtracting the average value from the A value, as shown in the following formula: (13) Where θ represents the neural parameters of the front part of the network, α and β represent the network parameters of the branch for calculating A and the branch for calculating V respectively, and N is the number of optional actions.
[0055] 2. Model design First, it is necessary to confirm under what circumstances the vehicle may change its driving path. By observing the actual left-turn data, if the oncoming vehicles all give way during the left turn, the vehicle should identify and turn left as soon as possible. At this time, a large-radius left turn can reduce the overall traffic path and increase the turning radius, so as to quickly pass the intersection. In other scenarios, if a left turn is made with a large radius, there will be a rush, which is not conducive to safety. Changing the left-turn radius during the passage will also make it difficult for oncoming vehicles to recognize the vehicle's intentions, and will also cause difficulties in coordinating with the speed decision model. Therefore, in order to ensure safety, it is not recommended to change the reference route. In order to improve the adaptability and robustness of the autonomous driving system and optimize speed and path planning, this embodiment designs a training environment with a variable reference route to train the D3QN algorithm.
[0056] (1) State space design: This embodiment assumes that the ego vehicle knows the relevant information of all oncoming vehicles in the current environment. The radius of the initial reference line segment in the environment is set to 7m, and the forward acceleration of the vehicle is controlled by the trained lower-level speed decision model based on AWAC. The second environmental observation value consists of a 19-dimensional vector: The first four observations are the same as the AWAC setting observations mentioned above. and It means that when the center of the vehicle is within this y-axis coordinate range, the output of the model can change the reference line, and a large radius left turn is more in line with the actual situation that the vehicle wants to pass quickly. Here, it is set to [-1,4] according to environmental constraints and experimental results.
[0057] (2) Action space design: The model outputs discrete variables 0 and 1. When the model outputs 1 and the vehicle is within the specified range ( < < ), the reference line will be regenerated 1m ahead of the vehicle's current position on the y-axis. If the model output is 0 or the vehicle has exceeded the specified range, the reference line remains unchanged.
[0058] (3) Setting the end condition of the training environment: When the vehicle reaches the end point d of the reference line, the training process ends. If a collision occurs during driving, the training process will also end. Since the speed in the training here is controlled by the trained lower-level speed decision model, there is no stagnation and no timeout end flag is set.
[0059] (4) Reward function design: The purpose of the algorithm here is to enable vehicles to give way to oncoming vehicles and turn left in advance, and to quickly choose to turn left with a large radius when there are still oncoming vehicles refusing to give way, thereby improving the traffic efficiency of vehicles. Therefore, the design of the reward function in this embodiment includes the efficiency of recognizing scenes and traffic safety, and at the same time sets a collision-free reward for task completion, where a collision will result in a negative reward.
[0060]
[0061] This embodiment sets the speed as a small reward to help the upper-layer algorithm change the left-turn radius at the most appropriate time, thereby obtaining the maximum speed reward, that is, the highest value in terms of efficiency:
[0062] Where v is the vehicle speed in each frame, is the efficiency bonus coefficient, which is chosen to be 0.1 here.
[0063] In order to enable the vehicle to recognize the intention of oncoming vehicles early in a dynamic environment and change the turning radius, it is necessary to design corresponding rewards for the vehicle in different environments. When the vehicle is in a yielding environment, it is considered necessary to encourage it to recognize the current state early and change the path, so it will receive a small reward every time it changes the path. If the vehicle is in other environments, it is considered that although it is not encouraged to change the path, if the gain in speed can make its total reward higher, it is allowed to explore freely. Therefore, if in other environments, the vehicle chooses to change the path, it will get a negative reward at the time of the change, and will not be punished at other times. The specific formula is as follows:
[0064] At the same time, an ending reward is set at the end of the environment. If the vehicle can successfully reach the end, a simple arrival reward will be given.
[0065]
[0066] The final overall reward design is:
[0067] In order to increase the ratio of the concession environment in the training environment and improve the training efficiency, the aggressive, concessional and normal environments are set in a ratio of 1:2:1 during training.
[0068] The process of training the upper path selection module based on the D3QN algorithm in this embodiment is as follows: inputting the second environment observation value, calculating the Q value of each action according to the formula (13); then selecting the action corresponding to the maximum Q value through the estimation network according to the formula (8), executing the action, and obtaining a new state and reward; updating the Q network according to the formula (10), and outputting whether to change the turning radius (discrete variables 0 and 1).
[0069] During the training process, the AWAC algorithm is first trained with real data sets and TD3 enhanced data. The TD3 enhanced data contains randomly generated turning radius, which not only enables the algorithm to learn speed decisions in various situations, but also better couples with the real data set. Afterwards, the randomly generated turning radius in the fixed environment allows the D3QN algorithm to identify the intention of the oncoming vehicle and output the appropriate large radius left turn timing while the trained AWAC algorithm controls the speed.
[0070] After the speed and path decision modules are trained, the real driving environment is first input into the path decision module to decide whether to change the turning radius. Then the result is input into the speed decision module to output the appropriate acceleration to complete the overall decision. The vehicle then performs the left turn task based on the decision.
[0071] In this embodiment, speed decision and path decision are trained separately, which can make the model more modular. Each model can focus on its specific task and improve the performance of the model on the task. Among them, the speed decision model focuses on learning how to select the best left turn acceleration based on the current environment and other factors, while the path decision model focuses on finding the appropriate radius for successfully completing the crossing. Since the two models are trained separately, they can be tuned and improved separately. When one of the models has problems, the other model can still maintain a certain performance, which enhances the robustness of the entire system.
[0072] In the model training phase, training the speed decision model first can provide more accurate speed information for the path decision model, so that when planning the path, the driving conditions at different speeds can be taken into account, making the path planning more reasonable and accurate. In different driving scenarios, the speed and path decisions may be different. Training the speed decision model first can make the model better adapt to the speed changes in different scenarios, while the path decision model can plan the optimal path based on these speed changes.
[0073] When making decision predictions, predicting the path decision first can provide a general driving direction and target, and then predicting the speed decision based on this path can make the speed prediction more targeted. This helps reduce unnecessary calculations and improve prediction efficiency.
[0074] Embodiment 2 This embodiment provides an automatic driving unsignalized intersection decision generation system based on hierarchical reinforcement learning, including: An environment acquisition unit, used to acquire the real driving environment of the vehicle and the oncoming vehicle; the driving environment includes environmental observation values and action space; A decision acquisition unit is used to input the real driving environment into the path decision module to obtain a decision trajectory; input the decision trajectory into the speed decision module to obtain a decision speed; the path decision module and the speed decision module are trained based on the simulated driving environment, the vehicle trajectory, the end condition and the reward function; The decision execution unit is used for the ego vehicle to execute the left turn task according to the decision trajectory and decision speed.
[0075] Embodiment 3 This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the steps in the method for generating decisions for unsignalized intersections in autonomous driving based on hierarchical reinforcement learning as described in the first embodiment above are implemented.
[0076] Embodiment 4 This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the method for generating decisions at unsignalized intersections for autonomous driving based on hierarchical reinforcement learning as described in the first embodiment above are implemented.
[0077] The steps or modules involved in the above embodiments 2 to 4 correspond to those in embodiment 1. For the specific implementation, please refer to the relevant description of embodiment 1. The term "computer-readable storage medium" should be understood as a single medium or multiple media including one or more instruction sets; it should also be understood to include any medium that can store, encode or carry an instruction set for execution by a processor and enable the processor to execute any method in the present invention.
[0078] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for generating decision-making at unsignalized intersections for autonomous driving based on hierarchical reinforcement learning, characterized in that: include: Obtain the real driving environment of the vehicle and oncoming vehicles; The driving environment includes environmental observation values and action space; The real driving environment is input into the path decision module to obtain the decision trajectory; the decision trajectory is input into the speed decision module to obtain the decision speed; the path decision module and the speed decision module are trained based on the simulated driving environment, the vehicle trajectory, the end condition and the reward function; The ego vehicle performs the left turn task according to the decision trajectory and decision speed.
2. The method for generating decision-making at an unsignalized intersection for autonomous driving based on hierarchical reinforcement learning as claimed in claim 1, characterized in that: The real driving environment of the vehicle and the oncoming vehicle is obtained and coordinate conversion is performed at the same time, so as to transform the real driving environment from the world coordinate system to the vehicle coordinate system; The environmental observation values include motion parameters of the vehicle and the oncoming vehicle, the intersection of the trajectory of the vehicle and the trajectory of the oncoming vehicle, and the speed range of the vehicle.
3. The method for generating decision-making at an unsignalized intersection for autonomous driving based on hierarchical reinforcement learning as claimed in claim 1, characterized in that: The oncoming vehicles include the front vehicle and the rear vehicle, and the action space includes aggressive actions, yielding actions, and ordinary actions; The radical action is that the front vehicle moves forward, and the rear vehicle follows the front vehicle and performs the same action as the front vehicle; The vehicle does not perform a left turn; The yielding action is that the front vehicle slows down to a stop at the road intersection, and the rear vehicle follows the front vehicle and performs the same action as the front vehicle; The vehicle performs a left turn through the intersection, and the oncoming vehicle waits; The common action is that the front vehicle moves forward and the rear vehicle slows down to a stop at the road intersection; The vehicle performs a left turn through the intersection, and the following vehicle waits.
4. The method for generating decision making for an unsignalized intersection for autonomous driving based on hierarchical reinforcement learning as claimed in claim 1, characterized in that: The training process of the speed decision module is: Obtain a first driving environment and a preset trajectory of the vehicle, and input them into a speed decision module for training; calculate a first reward when a first end condition is triggered, and if the first reward value reaches a set threshold, the speed decision module training is completed; Among them, the first driving environment includes a first environmental observation value and an action space; the first environmental observation value includes motion parameters of the vehicle and the oncoming vehicle, and the intersection of the vehicle's trajectory and the oncoming vehicle's trajectory; the first termination condition includes crossing, collision and timeout failure; the first reward includes a first no-collision reward, a speed reward and a no-timeout reward.
5. The method for generating decision-making at an unsignalized intersection for autonomous driving based on hierarchical reinforcement learning as claimed in claim 1, characterized in that: The training process of the path decision module is as follows: The second driving environment and the variable trajectory of the vehicle are obtained and input into the path decision module for training; when the second end condition is triggered, the second reward is calculated, and if the second reward value reaches the set threshold, the path decision module training is completed; Among them, the second driving environment includes second environment observation values and action space; the second environment observation values include motion parameters of the vehicle and the oncoming vehicle, the intersection of the vehicle trajectory and the oncoming vehicle trajectory, and the speed range of the vehicle; the second termination condition includes crossing and collision; the second reward includes a second collision-free reward, a speed reward, a path change reward, and an termination reward.
6. The method for generating decision making for an unsignalized intersection for autonomous driving based on hierarchical reinforcement learning as claimed in claim 1, characterized in that: The speed decision module is trained based on the AWAC algorithm and the TD3 algorithm.
7. The method for generating decision making for an unsignalized intersection for autonomous driving based on hierarchical reinforcement learning as claimed in claim 1, characterized in that: The path decision module is trained based on the D3QN algorithm.
8. A decision-making system for autonomous driving at unsignalized intersections based on hierarchical reinforcement learning, characterized in that: include: An environment acquisition unit is used to acquire the real driving environment of the vehicle and the oncoming vehicle; The driving environment includes environmental observation values and action space; A decision acquisition unit is used to input the real driving environment into the path decision module to obtain a decision trajectory; input the decision trajectory into the speed decision module to obtain a decision speed; the path decision module and the speed decision module are trained based on the simulated driving environment, the vehicle trajectory, the end condition and the reward function; The decision execution unit is used for the ego vehicle to execute the left turn task according to the decision trajectory and decision speed.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps in a method for generating decisions at unsignalized intersections for autonomous driving based on hierarchical reinforcement learning are implemented as described in any one of claims 1 to 7.
10. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the method for generating decisions at unsignalized intersections for autonomous driving based on hierarchical reinforcement learning are implemented as described in any one of claims 1-7.
Citation Information
Patent Citations
Unmanned vehicle urban intersection left turn decision-making method based on conflict resolution
CN110298122A
Automatic driving lane changing decision control method based on rule fusion reinforcement learning
CN115257745A
Collaborative decision-making control method for passage of autonomous vehicles at non-signalized intersection
CN115909778A
Unmanned driving test scene automatic generation method based on reinforcement learning
CN116680979A
Backward Anti-collision driving decision-making method for heavy commercial vehicle
US20230182725A1
Cited By
Layered vehicle driving decision-making method based on multiple time scales
CN119749589A
Implicit state representation method based on signal-free intersection automatic driving system
CN119808880A
An implicit state representation method for an autonomous driving system at signal-free intersections
CN119808880B
Non-signalized intersection left turn and afflux decision-making method and device and storage medium
CN121118690A
A method and device for left turn and merging decision at unsignalized intersection and storage medium
CN121118690B
