A decision-making method for autonomous driving based on rule-assisted reinforcement learning
Through the method of rule-assisted reinforcement learning, combined with the reinforcement learning strategy model and hybrid reward function, combined with the rule correction strategy, the problem of misjudgment and decision uncertainty of autonomous vehicles in the target lane entry task is solved, achieving more accurate and Efficient lane entry decisions.
Patent Information
- Application Number
- CN202311134645.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-04
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-09-04
AI Technical Summary
Existing automatic driving decision-making algorithms have misjudgments and decision-making uncertainties in the target lane entry task, and cannot effectively complete the task, especially the limitations of rule-based methods, the decision-making uncertainty based on reinforcement learning methods, and the lack of relevant experience based on imitation learning.
The method based on rule-assisted reinforcement learning is used to optimize the target lane entry decision of autonomous vehicles by modeling the driving environment, designing reinforcement learning strategy models and hybrid reward functions, and combining the rule modification strategies.
It achieves excellent performance on a variety of evaluation indicators, ensuring that autonomous vehicles accurately enter the target lane, improving mission success rate and efficiency, and reducing the risk of misjudgment.
Smart Images

Figure CN117104270B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of traffic driving technology, and in particular to an automatic driving decision-making method based on rule-assisted reinforcement learning. Background Art
[0002] In modern society, problems such as frequent traffic accidents, traffic congestion and energy consumption continue to challenge the safety, efficiency and sustainability of the transportation system. Under such social needs, autonomous driving behavior decision algorithms have emerged. As the "brain" of autonomous driving vehicles, autonomous driving behavior decision algorithms are able to determine high-level driving instructions in various traffic scenarios. Specifically, in order to achieve safe and efficient driving, autonomous driving behavior decision algorithms need to make correct decisions based on perception information, such as lane changes and speed changes, and then the controller can take low-level vehicle control behaviors accordingly.
[0003] Currently, most decision-making algorithms in the field of autonomous driving research focus on three autonomous driving tasks: road following, obstacle avoidance, and efficient driving. In the road following task, the autonomous vehicle drives on the highway or main road in a safe manner by detecting road markings and the environment. In the obstacle avoidance task, the autonomous vehicle attempts to maintain a safe distance from moving objects, such as vehicles or pedestrians, and avoid collisions with stationary obstacles. In the efficient driving task, the autonomous vehicle pursues a higher speed under safe conditions by overtaking the vehicle in front or changing to an empty lane.
[0004] In real life, there is another common but less studied autonomous driving task. The present invention refers to this task as the target lane entry task. Specifically, we consider a vehicle driving along a route planned by a navigation system and needs to enter the target lane before reaching an intersection (crossroads, T-junction, roundabout, overpass, etc.), so as to smoothly switch to the next road of the planned route at the intersection. Human drivers mainly rely on the navigation system, road markings and surrounding environment to determine how to enter the appropriate lane, but they often miss the opportunity to change lanes in the following situations: 1) Human drivers may miss the lane change information mentioned in advance by the navigation system, resulting in ignoring the navigation instructions to enter the target lane. 2) Human drivers may not realize the need to change lanes to a specific target lane until the vehicle is about to reach the intersection, but these target lanes are not always available for insertion. Once the vehicle misses the target lane, the vehicle will deviate from the expected navigation route. At the same time, human drivers and passengers need longer driving time to reach their destination. Therefore, it is very important to help human drivers deal with the target lane entry task in daily driving.
[0005] Existing autonomous driving decision algorithms can be divided into two categories: rule-based and learning-based. Specifically, rule-based decision methods rely on predefined heuristic rules to change lanes or adjust speed. Learning-based methods can be subdivided into two areas: reinforcement learning methods and imitation learning methods. Among them, reinforcement learning-based decision methods select behaviors that maximize future cumulative rewards by training strategies. Imitation learning-based decision methods learn decision strategies by imitating the behaviors of human drivers. However, we found that the target lane entry task cannot be successfully completed using only rule-based, reinforcement learning-based, or imitation learning-based methods for the following reasons: (1) Rule-based methods usually force autonomous driving vehicles to enter the target lane at the beginning or end of a road segment. Such methods perform well in terms of interpretability, but are limited in selecting lane change strategies. (2) Reinforcement learning-based methods have been shown to improve various driving metrics by optimizing cumulative rewards, but cannot guarantee the successful completion of the target lane entry task due to the uncertainty of decision making. (3) Imitation learning-based methods achieve autonomous driving by observing and imitating the driving behaviors of experts. Although this method can make high use of empirical data, it is difficult to collect expert experience related to the target lane entry task. Summary of the invention
[0006] The purpose of the present invention is to provide an automatic driving decision-making method based on rule-assisted reinforcement learning.
[0007] To achieve the above object, the present invention is implemented according to the following technical solutions:
[0008] The present invention comprises the following steps:
[0009] S1: Driving environment modeling: For each simulated time step, a state matrix is constructed as the training input of the policy model;
[0010] S2: Reinforcement learning strategy model: The network structure of the strategy model includes a strategy network and a value network. The input of the strategy network is a state matrix of a time step; the output of the strategy network is the speed change actions of the three lane change actions respectively; the input of the value network is a state matrix of a time step and the discrete-continuous action pairs of the speed change actions of the three lane change actions respectively; the output of the value network is the calculation result of the value function of the speed change action pairs of the three lane change actions respectively;
[0011] S3: Design reinforcement learning reward function: including safety penalty, efficiency reward, comfort penalty and urgency;
[0012] S4: A rule-correction strategy is used to help the reinforcement learning decision model make behavioral decisions for the target lane entry task.
[0013] The beneficial effects of the present invention are:
[0014] The present invention is an autonomous driving decision-making method based on rule-assisted reinforcement learning. Compared with the prior art, the present invention conducts in-depth research and application on the target lane entry task in which the autonomous driving vehicle needs to enter the designated lane before approaching the intersection. Considering that the reinforcement learning strategy needs to understand the urgency of the vehicle entering the target lane and the difficulty of combining with the rule-based strategy, the present invention integrates the rule guidance and reinforcement learning strategies to achieve the complementary advantages of the two. In order to more accurately guide the autonomous driving vehicle to make goal-oriented driving decisions, the present invention proposes a four-item hybrid reward function including safety, efficiency, comfort and urgency. In order to further optimize the reinforcement learning-based strategy, the present invention also designs a rule revision strategy, which not only monitors the reinforcement learning driving decision strategy, but also guides the strategy to learn from the actual intervention and continuously improve. The present invention has demonstrated excellent performance in a variety of macro and micro evaluation indicators. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is the overall framework diagram of the present invention;
[0016] Figure 2 It is the network structure of the reinforcement learning strategy model of the present invention. DETAILED DESCRIPTION
[0017] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments. The illustrative embodiments and descriptions of the present invention are used to explain the present invention but are not intended to limit the present invention.
[0018] like Figure 1 and Figure 2 As shown: The present invention is an autonomous driving decision framework based on rule-assisted reinforcement learning, which provides a solution for the d lane entry task. First, the present invention transmits real-time perception information to a decision model based on reinforcement learning, which uses a mixed reward function to consider how to change lanes to the target lane. In order to enhance the training efficiency of the decision model based on reinforcement learning under the condition of the target lane, the present invention uses the idea of curriculum learning to gradually expose the trained reinforcement learning decision model to more and more complex tasks. That is, the training task is gradually converted from a road following task to an obstacle avoidance task, and finally to a target lane entry task. Then, the present invention adopts rule-based guidance to help the decision model based on reinforcement learning learn from the intervention and prevent the risk of missing the target lane. Specifically, the rule guidance will first determine whether the action needs to be corrected based on the information in the state matrix. According to the state before and after the action correction, the corrected reward is calculated using a mixed reward function.
[0019] In the driving environment modeling stage, the present invention constructs a state matrix for each simulated time step t as the training input of the decision model. The state matrix consists of two parts, namely, vehicle characteristics and target lane characteristics. First, vehicle characteristics The feature vectors of the autonomous vehicle A and the six conventional vehicles C = {C1, C2, ..., C6} around it are included. Specifically, the feature vector of a vehicle includes position features and speed features. Second, the target lane features of a k-lane road It can be expressed as in, is a k-dimensional vector indicating the distribution of the target lane; is a 2D vector that serves as auxiliary information to help the autonomous vehicle reach the target lane. For example, consider an autonomous vehicle driving on a 5-lane road and its target lanes are the two leftmost lanes. In this case, will be represented as [1,1,0,0,0], where the code of the target lane is set to 1 and the codes of other lanes are set to 0, and Indicates that the autonomous vehicle will turn right, keep going straight, or turn left at the intersection through the target lane. In addition, the behavior decision of the autonomous vehicle in the target lane entry task can be regarded as a discrete-continuous action pair. The action pair includes discrete lane change behaviors, namely, changing lanes to the left, changing lanes to the right, and lane keeping, as well as a range of [-3m / s 2 ,3m / s 2 ]'s continuous speed changing behavior.
[0020] The optimization goal of the strategy model in the network structure of the reinforcement learning strategy model of the present invention is to obtain the maximum expected cumulative reward. The network structure of the strategy model is divided into a strategy network and a value network. For the strategy network, the input of the network is a state matrix of a time step; the output of the network is the speed change action of the three lane change actions. For the value network, the input of the network is a state matrix of a time step, and the discrete-continuous action pairs of the speed change actions of the three lane change actions; the output of the network is the calculation result of the value function of the speed change action pairs of the three lane change actions.
[0021] Detailed design of the reinforcement learning reward function of the present invention: The reward function plays a vital role in guiding the optimization of the strategy. In order to solve the target lane entry task, the present invention constructs a hybrid reward function. The reward function covers four elements: 1) safety, 2) efficiency, 3) comfort and 4) urgency.
[0022] (1) In terms of safety penalty, the present invention uses the TTC of the autonomous driving vehicle to represent the safety of the behavior decision. Specifically, assuming that the speed or lane of the vehicle does not change from the current time step to the next time step, the TTC represents the remaining time before the two vehicles collide. The calculation formula for the safety penalty is as follows:
[0023]
[0024] Where δ is a time limit of δ seconds about TTC. When the autonomous vehicle collides with other vehicles, the reinforcement learning policy model will receive a penalty of -3.
[0025] (2) In terms of efficiency rewards, the present invention encourages the autonomous driving vehicle to drive as efficiently as possible within the speed limit according to its speed. The calculation formula for efficiency rewards is as follows:
[0026]
[0027] Among them, v max It is the upper limit of speed. It should be noted that the autonomous vehicle may exceed the speed limit, but this behavior will result in an efficiency reward of 0.
[0028] (3) In terms of comfort penalty, the present invention uses the speed change of the autonomous vehicle to indicate that the vehicle speed change behavior brings an unpleasant bumpy experience to the passengers. The calculation formula of the comfort penalty is as follows:
[0029]
[0030] Where A.vc is the speed of the autonomous vehicle at the corresponding time step; [-acc, +acc] refers to the limit range of the vehicle acceleration.
[0031] (4) In terms of urgency, in order to meet the target lane entry task, the present invention introduces a penalty that reflects the urgency of changing lanes to enter the target lane at the current moment. There are two main reasons for this design. First, even if the target lane has been represented in the state matrix, if there is no feedback about the target lane in the reward equation, it is difficult for the reinforcement learning strategy to notice the need for lane change to the target lane in the task during the optimization process. Second, an intuitive design for the urgency of changing lanes to the target lane is to measure the lane number of the target lane closest to the current position of the autonomous driving vehicle. However, such a design may force the autonomous driving vehicle to move to the target lane prematurely, thereby potentially affecting the reward for efficiency. This is because the urgency and difficulty of achieving the target lane entry task are different in different state matrices. Therefore, the present invention designs a penalty for urgency, and the penalty value increases when the autonomous driving vehicle is farther away from the target lane and / or closer to the intersection ahead. The calculation formula for the comfort reward is as follows:
[0032]
[0033] Among them, tl i c represents the target lane tl i ∈TL’s horizontal center position, L l Represents the total length of a road, L n Indicates the number of lanes on a road. Since all target lanes can be considered the same in the target lane entry task, the present invention uses the min function to select the shortest distance between the autonomous driving vehicle and the target lane TL.
[0034] Specific design of rule correction in the decision framework of the present invention: The present invention provides a strategy based on rule correction to help the reinforcement learning decision model make behavioral decisions for the target lane entry task. There are two motivations for the introduction of rule correction. The first motivation is about task assurance. The use of learning-based methods (such as reinforcement learning and imitation learning) alone is not sufficient to ensure the completion of the target lane entry task, and rule correction can be used as a guarantee measure to achieve the target lane entry task by changing the behavioral decisions based on the reinforcement learning output. The second motivation is about optimizing feedback. In addition to supervising and modifying the behavioral decisions of the reinforcement learning model, rule correction can also guide the training model to learn from the correction intervention through experience enhancement. Specifically, the state transition guided by the rule is also saved in the experience of the reinforcement learning model.
[0035] (1) Rule guidance. At each time, the present invention uses a process that takes into account distance judgment and lane judgment to revise the lane change-speed change action pair before it is executed. The process receives the state matrix and the action pair generated by the reinforcement learning strategy, and then outputs the revised action pair after intervention. When the autonomous driving vehicle is far away from the intersection ahead and is driving in the target lane, the rules guide the autonomous driving vehicle to keep going straight and stay in the target lane. When the autonomous driving vehicle is about to reach the intersection ahead, the rules strongly recommend that the autonomous driving vehicle change lanes to the target lane as soon as possible.
[0036] (2) Reward correction. The present invention uses experience enhancement measures to store the state transition corresponding to the action returned by the reinforcement learning strategy and the state transition corresponding to the revised action in the experience storage based on the reinforcement learning strategy. It is worth noting that in the present invention, rule guidance and reward correction are only applied during the training process, rather than during both training and testing. This means that the present invention attempts to use rule revision to guide the reinforcement learning strategy to learn from the intervention and optimize the network accordingly.
[0037] The technical solution of the present invention is not limited to the above-mentioned specific embodiments. All technical variations made according to the technical solution of the present invention fall within the protection scope of the present invention.
Claims
1. An autonomous driving decision-making method based on rule-assisted reinforcement learning, characterized in that: The following steps are involved: S1: Driving environment modeling: For each simulated time step, a state matrix is constructed as the training input of the policy model; S2: Reinforcement learning strategy model: The network structure of the strategy model includes a strategy network and a value network. The input of the strategy network is a state matrix of a time step; the output of the strategy network is the speed change actions of the three lane change actions respectively; the input of the value network is a state matrix of a time step and the discrete-continuous action pairs of the speed change actions of the three lane change actions respectively; the output of the value network is the calculation result of the value function of the speed change action pairs of the three lane change actions respectively; S3: Design reinforcement learning reward function: including safety penalty, efficiency reward, comfort penalty and urgency penalty; the calculation formula of safety penalty is as follows: Where δ is a time limit of δ seconds about TTC, which represents the time remaining before the two vehicles collide; The calculation formula for efficiency bonus is as follows: Among them, v max is the upper limit of speed; The calculation formula of comfort penalty is as follows: Where A.vc is the speed of the autonomous vehicle at the corresponding time step; [-acc, +acc] refers to the limit range of vehicle acceleration; The calculation formula of the urgency penalty is as follows: Among them, tl i c represents the target lane tl i ∈TL’s horizontal center position, L l Represents the total length of a road, L n Indicates the number of lanes on a road; S4: A rule-correction strategy is used to help the reinforcement learning policy model make behavioral decisions for the target lane entry task.
2. The autonomous driving decision-making method based on rule-assisted reinforcement learning according to claim 1, characterized in that: The state matrix in step S1 includes vehicle features and target lane features. It includes the feature vectors of the autonomous vehicle A and the six conventional vehicles C = {C1, C2, ..., C6} around it. The feature vector of a vehicle includes the position feature and speed feature, and the target lane feature of a k-lane road Expressed as in, is a k-dimensional vector indicating the distribution of the target lane; is a 2D vector that serves as auxiliary information to help the autonomous vehicle reach the target lane. The target lane feature enters the behavior decision of the autonomous vehicle in the task and is regarded as a discrete-continuous action pair, which includes discrete lane change behaviors, i.e., lane change to the left, lane change to the right, and lane keeping, and the value range is [-3m / s 2 ,3m / s 2 ]'s continuous speed changing behavior.
3. The autonomous driving decision-making method based on rule-assisted reinforcement learning according to claim 1, characterized in that: The strategy of rule modification in step S4 includes rule guidance and reward modification. The rule guidance: when the autonomous vehicle is far away from the intersection ahead and is driving on the target lane, the rule guides the autonomous vehicle to keep going straight and stay in the target lane. When the autonomous vehicle is about to reach the intersection ahead, the rule strongly recommends that the autonomous vehicle change lanes to the target lane as soon as possible. The reward correction: the state transition corresponding to the action returned by the reinforcement learning strategy model and the state transition corresponding to the revised action are stored in the experience storage based on the reinforcement learning strategy model.
Citation Information
Patent Citations
Trajectory generation
CN112955358A
Autonomous lane changing method and system fused with deep reinforcement learning
CN113682312A
Method for realizing safety decision control of autonomous vehicle
CN114644017A
Automatic driving lane changing decision control method based on rule fusion reinforcement learning
CN115257745A
Automatic driving transverse and longitudinal integrated decision-making method based on deep reinforcement learning
CN116476863A
