An improved deep reinforcement learning method for controlling human-following behavior of intelligent vehicles

Through an improved deep reinforcement learning method, combined with real driver behavior data and a composite reward function, the car-following behavior strategy model of smart cars is optimized, solving the problems of long training time and insufficient behavioral level, and achieving a more efficient car-following behavior strategy. training and higher user acceptance.

CN115830863BActive Publication Date: 2024-09-20JILIN UNIVERSITY
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211445665.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-18
Publication Date
2024-09-20
Estimated Expiration
2042-11-18

AI Technical Summary

Technical Problem

The existing human-like car-following behavior strategy model for smart cars based on deep reinforcement learning takes a long time to train and is difficult to converge, and it is difficult to perform behaviors that are on par with or even surpass the level of human drivers.

Method used

Using an improved deep reinforcement learning method, by constructing a composite reward function and reward evaluator, combined with real driver behavior data, the training process of the DDPG model is optimized, so that it can converge more quickly and output a high-level car-following behavior strategy.

Benefits of technology

It shortens the training time, improves the user acceptance, trust and social recognition of smart cars, and enables the car-following behavior strategy model to surpass the level of human drivers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115830863B
    Figure CN115830863B
Patent Text Reader

Abstract

The present invention provides a method for controlling the human-like following behavior of an intelligent vehicle based on improved deep reinforcement learning, including the first step of collecting the brake pedal and accelerator pedal opening data, the distance data from the preceding vehicle, the speed data of the vehicle itself and the speed data of the preceding vehicle when the real driver is following the vehicle; the second step of obtaining the action probability distribution p of the discrete brake pedal and accelerator pedal openings of the real driver's following behavior data set; the third step of constructing a following behavior strategy model; and the fourth step of training the model. The setting of the composite reward function of the present invention and the setting of dynamically adjusting the weight of the composite reward function through a reward evaluator can ensure that the human-like following behavior strategy model of the present invention has good human-like characteristics, while reducing the difference between man and machine, improving the user acceptance, trust and social recognition of the intelligent vehicle, reducing the training time of the human-like following behavior strategy model of the present invention, and improving the output effect of the model finally trained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for controlling a human-like car-following behavior of an intelligent vehicle, and in particular to a method for controlling a human-like car-following behavior of an intelligent vehicle based on an improved deep reinforcement learning method. Background Art

[0002] As the intelligent technology of automobiles continues to improve, the number of self-driving smart cars equipped with intelligent driving systems continues to increase. Car-following behavior is a core component of microscopic traffic flow, and is crucial to studying the game behavior between vehicles and the traffic flow characteristics of the lanes in which they are located. In order to improve the social recognition, user trust and acceptance of smart cars, improve traffic efficiency and reduce the risk of accidents caused by human-machine differences, smart cars should have car-following behavior strategies similar to those of humans. Deep reinforcement learning is a method that combines reinforcement learning methods with deep learning. It explores trial and error to obtain the maximum expected return and finds the optimal behavior strategy. It is a useful tool for modeling car-following behavior strategies. Through deep reinforcement learning methods, real human driver data can be combined to train human-like car-following behavior strategy models. However, the current human-like car-following behavior strategy model based on deep reinforcement learning still has some shortcomings, such as:

[0003] (1) The training time of the car-following behavior strategy model based on deep reinforcement learning is too long and difficult to converge. The existing human-like car-following behavior strategy model based on deep reinforcement learning updates its strategy through random exploration of the environment and the rewards given by the environment during training, and finally makes the strategy reach the optimal level. Due to the diversity and complexity of the car-following environment data, this random exploration process is usually relatively long and difficult to converge.

[0004] (2) The human-like car-following behavior strategies learned by the deep reinforcement learning-based human-like car-following behavior strategy model are mostly imitations of human driver behavior, and it is difficult to achieve behavior that is equal to or even exceeds the level of human drivers. The input of the existing human-like car-following behavior strategy model based on deep reinforcement learning is real human car-following behavior data. The optimization goal of model training is only to make the car-following behavior strategy more human-like. This single-goal optimization strategy that does not dynamically adjust reduces the upper limit of the output behavior of the car-following behavior strategy model, and it is difficult to achieve behavior that is equal to or even exceeds the level of human drivers.

[0005] In summary, how to effectively use deep reinforcement learning methods to develop control methods with highly human-like characteristics, short training time and the ability to provide car-following behavior that is equal to or even exceeds the level of human drivers has become a key technical problem that needs to be urgently solved in the field of intelligent vehicles. Summary of the invention

[0006] In order to solve the above technical problems, the present invention provides a method for controlling human-following behavior of an intelligent vehicle by improving deep reinforcement learning, comprising the following steps:

[0007] The first step is to collect the brake pedal and accelerator pedal opening data, the distance data from the front vehicle, the speed data of the driver's own vehicle and the speed data of the front vehicle when the driver is driving behind the car;

[0008] The second step is to obtain the action probability distribution p of the discrete brake pedal and accelerator pedal opening of the real driver's car-following behavior data set;

[0009] The third step is to build a car-following behavior strategy model, including:

[0010] Step 1: Construct the state input of the DDPG following behavior strategy model; the state space S of the model is composed of the distance s_rel between the vehicle and the front vehicle, the speed v0 of the vehicle, the speed v f As input in state space:

[0011] S = {s_rel, v0, v f}

[0012] Step 2: Construct the composite reward function r of the following behavior strategy model:

[0013] r=w1·r1+w2@r2

[0014] r1 is the similarity reward function, r2 is the multi-objective reward function, w1 is the weight of the similarity reward function, w2 is the weight of the multi-objective reward function, w1+w2=1, w1>0, w2>0;

[0015] Step 3: Build the reward evaluator T(R):

[0016] According to the expression of the established multi-objective reward function r2, the average reward value R2 of the brake pedal or accelerator pedal opening of the real driver's car-following behavior and the average reward R'2 of the action given by the current deep reinforcement learning strategy are calculated respectively. When R'2 ≥ R2, the value of w1 is reduced and the value of w2 is increased;

[0017] Step 4: Build the DDPG framework, including: building the DDPG Actor network μ(ω1) and its target network targetActor network Building DDPG's Critic Network and its target network target Critic network ω1, is the neural network parameter; the Actor network μ(ω1) outputs a brake pedal or accelerator pedal opening action according to the current state;

[0018] Step 5: Create Replaybuffer experience playback buffer;

[0019] Transform the state-action-reward-state quadruple {s t ,a t ,r 2,t ,s t+1} is stored in the Replaybuffer experience playback buffer until the Replaybuffer experience playback buffer collects N0 state-action-reward-state transition quadruple {s t ,a t ,r 2,t ,s t+1}, where subscript t is the time step, s t represents the state at time t, a t represents the action taken at time t, r 2,t represents the reward given by the multi-objective reward function at time t, s t+1 Represents the state at the next time t+1;

[0020] The fourth step is to train the model, including:

[0021] Step 1: Sample n quadruple {s from the Replaybuffer experience playback buffer i ,a i ,r 2,i ,s i+1} i=1,....n , the subscript i indicates that the quadruple is the i-th sampled quadruple;

[0022] Step 2: Calculate the action probability distribution q of the discrete brake pedal or accelerator pedal opening given by the DDPG network;

[0023] Step 3: Calculate the similarity reward function r1 of all sampled quadruplets;

[0024] Step 4: Calculate the composite reward function r for each quadruple i ;

[0025] Step 5: For each tuple, use the target network target Critic network Calculate the predicted value;

[0026] Step 6: Update the current Actor network and the current Critic network;

[0027] Step 7: The reward evaluator T(R) calculates the average reward value R2 of the brake pedal or accelerator pedal opening of the real driver's car-following behavior and the average reward R'2 of the action given by the current deep reinforcement learning strategy;

[0028] Step 8: Update the target network;

[0029] Repeat the above steps until the training converges.

[0030] Preferably, when collecting data in the first step, the accelerator pedal opening is recorded as a positive value, and the brake pedal opening is recorded as a negative value. The brake pedal and accelerator pedal opening data of the real driver when following the car are stored in the real driver's following behavior data set. The distance data to the vehicle in front, the speed data of the vehicle itself and the speed data of the vehicle in front are stored as status information in the real driver's following behavior data set.

[0031] As a preferred method, in the second step, the theoretical maximum value of the accelerator pedal opening is θ ymax , the theoretical maximum value of the brake pedal opening is -θ zmax , the range of the brake pedal or accelerator pedal opening θ is expressed as: θ∈[-θ zmax ,θ ymax ], where the positive value of θ represents the angle of the accelerator pedal opening. The larger the accelerator pedal opening, the larger the positive value of θ. The negative value of θ represents the angle of the brake pedal opening. The larger the brake pedal opening, the smaller the negative value of θ. Divide the value range of the brake pedal opening into N z intervals, N z is a positive integer greater than zero, dividing the range of the accelerator pedal opening into N y intervals, N y is a positive integer greater than 1, then the brake pedal or accelerator pedal opening θ in the i-th turning angle interval i The value range of is expressed as:

[0032]

[0033] i is an integer, 1≤i≤(N z +N y );

[0034] Count the number of samples Y of all brake pedal or accelerator pedal openings collected in the real driver following behavior dataset θ , count the number of times the brake pedal or accelerator pedal is opened in each turning angle opening range 1≤i≤(N z +N y ), and obtain the probability distribution of the brake pedal opening or accelerator pedal opening made by the real driver in each brake pedal opening or accelerator pedal opening interval It represents the probability that a human driver will make a brake pedal opening or accelerator pedal opening action within a certain range during the car-following behavior:

[0035]

[0036] Use the average value of the brake pedal or accelerator pedal opening in each interval Brake pedal or accelerator pedal opening angle θ within the approximate range i , the discrete brake pedal or accelerator pedal opening action probability distribution p of the real driver's car-following behavior data set is obtained and stored in the real driver's car-following behavior data set; the discrete action probability p of the ith interval i for:

[0037]

[0038] Preferably, in step 2 of the third step, the expression of the similarity reward function r1 is:

[0039]

[0040] Among them, K1 is a proportional coefficient greater than 0, D KL (p||q) is the KL divergence between the action probability distribution p of the discrete brake pedal and accelerator pedal opening of the real driver following behavior dataset and the action probability distribution q of the discrete brake pedal or accelerator pedal opening sampled from the historical data of DDPG. The action probability distribution q is obtained during the model training process; D KL (p||q) is used to measure the difference between the action probability distribution of the discrete brake pedal or accelerator pedal opening of DDPG and the action probability distribution of the discrete brake pedal or accelerator pedal opening of the real driver's following behavior:

[0041]

[0042] The expression of the multi-objective reward function r2 is:

[0043] r2=k1·L r (s_rel)+k2·V r (|v0-v f |)

[0044] Among them, k1+k2=1, k1>0, k2>0, L r (s_rel) is the spacing reward, V r (|v0-v f |) is the speed bonus;

[0045] L r (s_rel) is expressed as:

[0046]

[0047] Where a is a reward value greater than 0, α is a proportional coefficient greater than 0, M is a proportional coefficient greater than 0, M>>a, L minis the expected minimum following distance, L max is the expected maximum following distance;

[0048] V r (|v0-v f |) is represented as:

[0049]

[0050] Where b is a reward value greater than 0, and K is a proportional coefficient greater than 0.

[0051] Preferably, in step 5 of the third step, the parameters ω1, Initialize the weights of the composite reward function to w1 = 0.9, w2 = 0.1; take the initial state of a real data set as the initial state input, run the following behavior strategy model multiple times, and convert the state-action-reward-state transfer quadruple {s t ,a t ,r 2,t ,s t+1} is stored in the Replaybuffer experience playback buffer until the Replaybuffer experience playback buffer collects N0 state-action-reward-state transition quadruple {s t ,a t ,r 2,t ,s t+1}.

[0052] Preferably, in step 2 of the fourth step, the brake pedal or accelerator pedal opening action a of each sampled quaternary group is obtained. t The theoretical maximum value of the accelerator pedal opening is θ ymax , the theoretical maximum value of the brake pedal opening is -θ zmax , then the range of the brake pedal or accelerator pedal opening θ is expressed as: θ∈[-θ zmax ,θ ymax ], where the positive value of θ represents the angle of the accelerator pedal opening. The larger the accelerator pedal opening, the larger the positive value of θ. The negative value of θ represents the angle of the brake pedal opening. The larger the brake pedal opening, the smaller the negative value of θ. Divide the value range of the brake pedal opening into N z intervals, N z is a positive integer greater than zero, dividing the range of the accelerator pedal opening into N y intervals, N y is a positive integer greater than 1, then the brake pedal or accelerator pedal opening θ in the i-th turning angle interval i The value range of is:

[0053]

[0054] i is an integer, 1≤i≤(N z +N y );

[0055] Count the number of samples R of all brake pedal or accelerator pedal openings collected from the n quaternions sampled from the Replaybuffer experience playback buffer θ , count the number of times the brake pedal or accelerator pedal is opened in each corner interval Obtain the probability distribution of the brake pedal or accelerator pedal opening given by the DDPG network in each brake pedal or accelerator pedal opening range Use the average value of the brake pedal or accelerator pedal opening in each interval Brake pedal or accelerator pedal opening angle θ within the approximate range i , write out the action probability distribution q of the discrete brake pedal or accelerator pedal opening given by the DDPG network, and the discrete action probability q of the i-th interval i for:

[0056]

[0057] Step 3: Calculate the similarity reward function r1 for all sampled quadruplets:

[0058]

[0059] D KL (p||q) is the KL divergence between the action probability distribution p of the discrete brake pedal and accelerator pedal opening of the real driver following behavior dataset and the action probability distribution q of the discrete brake pedal or accelerator pedal opening sampled from the historical data of DDPG;

[0060] Step 4: Calculate the composite reward function r for each quadruple i :

[0061] r i =w1·r1+w2·r 2,i , where 1≤i≤n, i is an integer;

[0062] r1 is the similarity reward function, r2 is the multi-objective reward function, w1 is the weight of the similarity reward function, w2 is the weight of the multi-objective reward function, w1+w2=1, w1>0, w2>0;

[0063] Step 5: For each tuple, use the target network target Critic network Calculate the predicted value:

[0064] γ is a constant less than 1 and greater than 0, and the result item y of the neural network prediction value i Part of i Instead of directly using the multi-objective reward function constructed by deep reinforcement learning as the training reward function, the weighted sum of the similarity reward function and the multi-objective reward function is used as the training reward function, so that the car-following behavior strategy model can match the driver's characteristics. The introduction of real driver behavior data can also accelerate the training of the model.

[0065] Step 6: Update the current Actor network and the current Critic network:

[0066] Calculate the minimization objective loss:

[0067]

[0068] Update the current Critic network

[0069] Calculate the sampled policy gradient:

[0070]

[0071] Update the current Actor network μ(ω1) accordingly;

[0072] Step 7: The reward evaluator T(R) calculates the average reward value R2 of the brake pedal or accelerator pedal opening of the real driver's car-following behavior and the average reward R·2 of the action given by the current deep reinforcement learning strategy;

[0073] When calculating R2, the reward of each time step is calculated using the multi-objective reward function r2 according to the brake pedal or accelerator pedal opening data, the distance data from the front vehicle, the speed data of the vehicle and the speed data of the front vehicle obtained in the first step. The rewards of all time steps are accumulated and divided by the total number of time steps to obtain the average reward value R2 of the real driver;

[0074] When calculating R'2, the multi-objective reward r of each of the n sampled quadruple is obtained 2,i , where 1≤i≤n, the multi-objective rewards of each quadruple are accumulated and divided by n to obtain the average reward R'2 of the action given by the current sampled deep reinforcement learning strategy;

[0075] When R2≤R'2, it is considered that the level of action given by the current deep reinforcement learning strategy is better than the average level of the real driver's action. The weight w1 of the similar reward function is reduced, and the weight w2 of the multi-objective reward function is increased. The learning focus of deep reinforcement learning is shifted from approaching human behavior to obtaining better comfort and safety, so as to ultimately achieve the goal of surpassing the human action level. Therefore, T(R) adjusts the weights w1 and w2 of the composite reward function r=w1·r1+w2·r2:

[0076]

[0077] Where β is a constant;

[0078] Step 8: Update the target network:

[0079]

[0080]

[0081] Among them, 0<τ<1, which is a constant;

[0082] Repeat the above steps until the training converges.

[0083] Beneficial effects of the present invention:

[0084] The present invention provides an intelligent automobile human-like following behavior control method based on an intelligent automobile human-like following behavior strategy model of an improved deep reinforcement learning method. A composite reward function is introduced. Instead of directly using a multi-objective reward function constructed by deep reinforcement learning as a training reward function, the human-like behavior degree of the following model is evaluated based on real driver behavior data as a similarity reward function, and a weight w1 is assigned to it. A weight w2 is assigned to the multi-objective reward function of deep reinforcement learning. Both are used together as reward functions for model training, so that the following behavior strategy model can match the driver's characteristics, reduce the human-machine difference, and increase the user acceptance, trust and social recognition of the intelligent automobile. The introduction of the composite reward function enables the established intelligent automobile human-like following behavior strategy model to pay attention to both the real driver behavior data and the multiple goals set by deep reinforcement learning, thereby making the random exploration during training more purposeful and shortening the time of the random exploration process. The present invention introduces variable reward function weights. During the model training process, the weight w1 of the first part of the composite reward function, the weight w2 of the second part, the multi-objective reward, can change, so that the following behavior strategy model can focus on both the human-like degree of the following behavior and the comfort, safety and other multiple goals of the following behavior, further improving the upper limit of the output behavior of the following behavior strategy model. The present invention introduces a reward evaluator, which calculates the multi-objective rewards of the current deep neural network and compares them with the multi-objective rewards of the evaluated real driver behavior data, so as to guide the change direction of the variable reward function weight, accelerate the model training process, and improve the final output effect of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0085] Figure 1 Schematic diagram of the process of establishing the human-following behavior strategy model of the intelligent vehicle of the present invention.

[0086] Figure 2 The figure is a schematic diagram of the training process of the human-following behavior strategy model of the intelligent vehicle of the present invention. DETAILED DESCRIPTION

[0087] Combined with Figure 1 and 2 As shown, the present invention provides a method for controlling human-following behavior of an intelligent vehicle based on an improved deep reinforcement learning method, comprising the following steps:

[0088] The first step is to collect the brake pedal and accelerator pedal opening data, the distance data from the front vehicle, the speed data of the own vehicle and the speed data of the front vehicle when the real driver is following the car. When collecting, the accelerator pedal opening is recorded as a positive value, and the brake pedal opening is recorded as a negative value. The brake pedal and accelerator pedal opening data of the real driver when following the car are stored in the real driver following behavior data set, and the distance data from the front vehicle, the speed data of the own vehicle and the speed data of the front vehicle are stored as state information in the real driver following behavior data set;

[0089] The second step is to obtain the action probability distribution p of the discrete brake pedal and accelerator pedal opening of the real driver's car-following behavior dataset:

[0090] The theoretical maximum value of the accelerator pedal opening is θ ymax , the theoretical maximum value of the brake pedal opening is -θ zmax , then the range of the brake pedal or accelerator pedal opening θ is expressed as: θ∈[-θ zmax ,θ ymax ], where the positive value of θ represents the angle of the accelerator pedal opening. The larger the accelerator pedal opening, the larger the positive value of θ. The negative value of θ represents the angle of the brake pedal opening. The larger the brake pedal opening, the smaller the negative value of θ. Divide the range of the brake pedal opening into N z intervals, N z is a positive integer greater than zero, dividing the range of the accelerator pedal opening into N y intervals, N y is a positive integer greater than 1, then the brake pedal or accelerator pedal opening θ in the i-th turning angle interval i The value range of can be expressed as:

[0091]

[0092] i is an integer, 1≤i≤(N z +N y );

[0093] Count the number of samples Y of all brake pedal or accelerator pedal openings collected in the real driver following behavior dataset θ , count the number of times the brake pedal or accelerator pedal is opened in each turning angle opening range 1≤i≤(N z +N y ), and obtain the probability distribution of the brake pedal opening or accelerator pedal opening made by the real driver in each brake pedal opening or accelerator pedal opening interval It represents the probability that a human driver will make a brake pedal opening or accelerator pedal opening action within a certain range during the car-following behavior:

[0094]

[0095] Use the average value of the brake pedal or accelerator pedal opening in each interval Brake pedal or accelerator pedal opening angle θ within the approximate range i , the action probability distribution p of the discrete brake pedal or accelerator pedal opening of the real driver's car-following behavior data set is obtained and stored in the real driver's car-following behavior data set; specifically, the discrete action probability p of the i-th interval i for:

[0096]

[0097] The third step is to build a car-following behavior strategy model, including:

[0098] Step 1: Construct the state input of the DDPG following behavior strategy model. The state space S of the model is composed of the distance s_rel between the ego vehicle and the front vehicle, the speed v0 of the ego vehicle, and the speed v f As input in state space:

[0099] S = {s_rel, v0, v f}

[0100] Step 2: Construct the composite reward function r of the car-following behavior policy model, which is the weighted sum of the similarity reward function r1 and the multi-objective reward function r2:

[0101] r=w1·r1+w2·r2

[0102] Among them, w1 is the weight of the similarity reward function, w2 is the weight of the multi-objective reward function, w1+w2=1,w1>0,w2>0;

[0103] Specifically, the expression of the similarity reward function r1 is:

[0104]

[0105] Among them, K1 is a proportional coefficient greater than 0, D KL (p||q) is the KL divergence between the action probability distribution p of the discrete brake pedal and accelerator pedal opening of the real driver following behavior dataset and the action probability distribution q of the discrete brake pedal or accelerator pedal opening sampled from the historical data of DDPG. The action probability distribution q is obtained during the model training process; D KL (p||q) is used to measure the difference between the action probability distribution of the discrete brake pedal or accelerator pedal opening of DDPG and the action probability distribution of the discrete brake pedal or accelerator pedal opening of the real driver's following behavior:

[0106]

[0107] Specifically, the expression of the multi-objective reward function r2 is:

[0108] r2=k1·L r (s_rel)+k2·V r (|v0-v f |)

[0109] Among them, k1+k2=1, k1>0, k2>0, L r (s_rel) is the spacing reward, V r (|v0-v f |) is the speed bonus;

[0110] L r (s_rel) is expressed as:

[0111]

[0112] Where a is a reward value greater than 0, α is a proportional coefficient greater than 0, M is a proportional coefficient greater than 0, M>>a, L min is the expected minimum following distance, L max is the expected maximum following distance;

[0113] V r (|v0-v f |) is represented as:

[0114]

[0115] In the formula, b is a reward value greater than 0, and K is a proportional coefficient greater than 0;

[0116] Step 3: Construct a reward evaluator T(R). The reward evaluator T(R) calculates the average reward value R2 of the brake pedal or accelerator pedal opening of the real driver's car-following behavior and the average reward R'2 of the action given by the current deep reinforcement learning strategy according to the expression of the established multi-objective reward function r2. When R'2 ≥ R2, reduce the value of w1 and increase the value of w2.

[0117] Step 4: Build DDPG's Actor network μ(ω1) and its target network target Actor network Building DDPG's Critic Network and its target network target Critic network ω1, is the neural network parameter; the Actor network μ(ω1) outputs a brake pedal or accelerator pedal opening action according to the current state;

[0118] Step 5: Create Replaybuffer experience playback buffer;

[0119] Randomly initialize the neural network parameters ω1, Initialize the weights of the composite reward function to w1 = 0.9, w2 = 0.1; take the initial state of a real data set as the initial state input, run the following behavior strategy model multiple times, and convert the state-action-reward-state transfer quadruple {s t ,a t ,r 2,t ,s t+1} is stored in the Replaybuffer experience playback buffer until the Replaybuffer experience playback buffer collects N0 state-action-reward-state transition quadruple {s t ,a t ,r 2,t ,s t+1}, where subscript t is the time step, s t represents the state at time t, a t represents the action taken at time t, r 2,t represents the reward given by the multi-objective reward function at time t, s t+1 Represents the state at the next time t+1;

[0120] The fourth step is to train the model, including:

[0121] Step 1: Sample n quadruple {s from the Replaybuffer experience playback buffer i ,a i ,r 2,i ,s i+1} i=1,....n , the subscript i indicates that the quadruple is the i-th sampled quadruple;

[0122] Step 2: Calculate the action probability distribution q of the discrete brake pedal or accelerator pedal opening given by the DDPG network:

[0123] Get the brake pedal or accelerator pedal opening action a of each sampled quaternion t The theoretical maximum value of the accelerator pedal opening is θ ymax , the theoretical maximum value of the brake pedal opening is -θ zmax , then the range of the brake pedal or accelerator pedal opening θ is expressed as: θ∈[-θ zmax ,θ ymax ], where the positive value of θ represents the angle of the accelerator pedal opening. The larger the accelerator pedal opening, the larger the positive value of θ. The negative value of θ represents the angle of the brake pedal opening. The larger the brake pedal opening, the smaller the negative value of θ. Divide the value range of the brake pedal opening into N zintervals, N z is a positive integer greater than zero, dividing the range of the accelerator pedal opening into N y intervals, N y is a positive integer greater than 1, then the brake pedal or accelerator pedal opening θ in the i-th turning angle interval i The value range of is:

[0124]

[0125] i is an integer, 1≤i≤(N z +N y );

[0126] Count the number of samples R of all brake pedal or accelerator pedal openings collected from the n quaternions sampled from the Replaybuffer experience playback buffer θ , count the number of times the brake pedal or accelerator pedal is opened in each corner interval Obtain the probability distribution of the brake pedal or accelerator pedal opening given by the DDPG network in each brake pedal or accelerator pedal opening range Use the average value of the brake pedal or accelerator pedal opening in each interval Brake pedal or accelerator pedal opening angle θ within the approximate range i , write out the action probability distribution q of the discrete brake pedal or accelerator pedal opening given by the DDPG network. Specifically, the discrete action probability q of the i-th interval i for:

[0127]

[0128] Step 3: Calculate the similarity reward function r1 for all sampled quadruplets:

[0129]

[0130] Step 4: Calculate the composite reward function r for each quadruple i :

[0131] r i =w1·r1+w2·r 2,i , where 1≤i≤n, i is an integer;

[0132] Step 5: For each tuple, use the target network target Critic network Calculate the predicted value:

[0133] γ is a constant less than 1 and greater than 0, and the result item y of the neural network prediction value i Part ofi Instead of directly using the multi-objective reward function constructed by deep reinforcement learning as the training reward function, the weighted sum of the similarity reward function and the multi-objective reward function is used as the training reward function, so that the car-following behavior strategy model can match the driver's characteristics. The introduction of real driver behavior data can also accelerate the training of the model.

[0134] Step 6: Update the current Actor network and the current Critic network:

[0135] Calculate the minimization objective loss:

[0136]

[0137] Update the current Critic network

[0138] Calculate the sampled policy gradient:

[0139]

[0140] Update the current Actor network μ(ω1) accordingly;

[0141] Step 7: The reward evaluator T(R) calculates the average reward value R2 of the brake pedal or accelerator pedal opening of the real driver's car-following behavior and the average reward R·2 of the action given by the current deep reinforcement learning strategy;

[0142] When calculating R2, the reward of each time step is calculated using the multi-objective reward function r2 according to the brake pedal or accelerator pedal opening data, the distance data from the front vehicle, the speed data of the vehicle and the speed data of the front vehicle obtained in the first step. The rewards of all time steps are accumulated and divided by the total number of time steps to obtain the average reward value R2 of the real driver;

[0143] When calculating R'2, the multi-objective reward r of each of the n sampled quadruple is obtained 2,i , where 1≤i≤n, the multi-objective rewards of each quadruple are accumulated and divided by n to obtain the average reward R'2 of the action given by the current sampled deep reinforcement learning strategy;

[0144] When R2≤R'2, it is considered that the level of action given by the current deep reinforcement learning strategy is better than the average level of the real driver's action. The weight w1 of the similar reward function is appropriately reduced, and the weight w2 of the multi-objective reward function is increased, so that the learning focus of deep reinforcement learning is shifted from approaching human behavior to obtaining better comfort and safety, so as to ultimately achieve the goal of surpassing the human action level. Therefore, T(R) adjusts the weights w1 and w2 of the composite reward function r=w1·r1+w2@r2:

[0145]

[0146] Where β is a constant;

[0147] Step 8: Update the target network:

[0148]

[0149]

[0150] Among them, 0<τ<1, which is a constant;

[0151] Repeat the above steps until the training converges.

[0152] The setting of the composite reward function and the setting of dynamically adjusting the weight of the composite reward function through the reward evaluator can ensure that the human-like car-following behavior strategy model described in the present invention has good human-like characteristics. While reducing the human-machine difference, it improves the user acceptance, trust and social recognition of smart cars, reduces the training time of the human-like car-following behavior strategy model described in the present invention, and improves the output effect of the model finally trained.

Claims

1. A method for controlling human-like car-following behavior of intelligent vehicles based on improved deep reinforcement learning, characterized in that: The following steps are involved: The first step is to collect the brake pedal and accelerator pedal opening data, the distance data from the front vehicle, the speed data of the driver's own vehicle and the speed data of the front vehicle when the driver is driving behind the car; The second step is to obtain the action probability distribution p of the discrete brake pedal and accelerator pedal opening of the real driver's car-following behavior data set; The third step is to build a car-following behavior strategy model, including: Step 1: Construct the state input of the deep deterministic policy gradient algorithm DDPG car-following behavior policy model; the state space S of the model is composed of the distance s_rel between the vehicle and the front vehicle, the speed v0 of the vehicle, and the speed v f As input in state space: S={s_rel,v0,v f } Step 2: Construct the composite reward function r of the following behavior strategy model: r=w1·r1+w2·r2 r1 is the similarity reward function, r2 is the multi-objective reward function, w1 is the weight of the similarity reward function, w2 is the weight of the multi-objective reward function, w1+w2=1, w1>0, w2>0; Step 3: Build the reward evaluator T(R): According to the expression of the established multi-objective reward function r2, the average reward value R2 of the brake pedal or accelerator pedal opening of the real driver's car-following behavior and the average reward R'2 of the action given by the current deep reinforcement learning strategy are calculated respectively. When R'2 ≥ R2, the value of w1 is reduced and the value of w2 is increased; Step 4: Build the DDPG framework, including: building the DDPG Actor network μ(ω1) and its target network target Actor network Building DDPG's Critic Network and its target network target Critic network ω1, is the neural network parameter; the Actor network μ(ω1) outputs a brake pedal or accelerator pedal opening action according to the current state; Step 5: Create Replaybuffer experience playback buffer; Transform the state-action-reward-state quadruple {s t ,a t ,r 2,t ,s t+1 } is stored in the Replaybuffer experience playback buffer until the Replaybuffer experience playback buffer collects N0 state-action-reward-state transition quadruple {s t ,a t ,r 2,t ,s t+1 }, where subscript t is the time step, s t represents the state at time t, a t represents the action taken at time t, r 2,t represents the reward given by the multi-objective reward function at time t, s t+1 Represents the state at the next time t+1; The fourth step is to train the model, including: Step 1: Sample n quadruple {s from the Replaybuffer experience playback buffer i ,a i ,r 2,i ,s i+1 } i=1,....n , the subscript i indicates that the quadruple is the i-th sampled quadruple; Step 2: Calculate the action probability distribution q of the discrete brake pedal or accelerator pedal opening given by the DDPG network; Step 3: Calculate the similarity reward function r1 of all sampled quadruplets; Step 4: Calculate the composite reward function r for each quadruple i ; Step 5: For each tuple, use the target network target Critic network Calculate the predicted value; Step 6: Update the current Actor network and the current Critic network; Step 7: The reward evaluator T(R) calculates the average reward value R2 of the brake pedal or accelerator pedal opening of the real driver's car-following behavior and the average reward R'2 of the action given by the current deep reinforcement learning strategy; Step 8: Update the target network; Repeat the above steps until the training converges.

2. The method for controlling the human-following behavior of an intelligent vehicle based on improved deep reinforcement learning according to claim 1, characterized in that: When collecting data in the first step, the accelerator pedal opening is recorded as a positive value, and the brake pedal opening is recorded as a negative value. The brake pedal and accelerator pedal opening data of the real driver during following driving are stored in the real driver following behavior dataset, and the distance data to the leading vehicle, the speed data of the own vehicle and the speed data of the leading vehicle are stored as status information in the real driver following behavior dataset.

3. The method for controlling the human-following behavior of an intelligent vehicle based on improved deep reinforcement learning according to claim 1, characterized in that: In the second step, the theoretical maximum value of the accelerator pedal opening is θ ymax , the theoretical maximum value of the brake pedal opening is -θ zmax , the value range of the brake pedal or accelerator pedal opening θ is expressed as: θ∈[-θ zmax ,θ ymax ], where the positive value of θ represents the angle of the accelerator pedal opening. The larger the accelerator pedal opening, the larger the positive value of θ. The negative value of θ represents the angle of the brake pedal opening. The larger the brake pedal opening, the smaller the negative value of θ. Divide the value range of the brake pedal opening into N z intervals, N z is a positive integer greater than zero, dividing the range of the accelerator pedal opening into N y intervals, N y is a positive integer greater than 1, then the brake pedal or accelerator pedal opening θ in the i-th turning angle interval i The value range of is expressed as: i is an integer, 1≤i≤(N z +N y ); Count the number of samples Y of all brake pedal or accelerator pedal openings collected in the real driver following behavior dataset θ , count the number of times the brake pedal or accelerator pedal is opened in each turning angle opening range 1≤i≤(N z +N y ), and obtain the probability distribution of the brake pedal opening or accelerator pedal opening made by the real driver in each brake pedal opening or accelerator pedal opening interval It represents the probability that a human driver will make a brake pedal opening or accelerator pedal opening action within a certain range during the car-following behavior: Use the average value of the brake pedal or accelerator pedal opening in each interval As the brake pedal or accelerator pedal opening angle θ in the interval i , the discrete brake pedal or accelerator pedal opening action probability distribution p of the real driver's car-following behavior data set is obtained and stored in the real driver's car-following behavior data set; the discrete action probability p of the ith interval i for:

4. The method for controlling the human-following behavior of an intelligent vehicle based on improved deep reinforcement learning according to claim 3, characterized in that: In step 2 of the third step, the expression of the similarity reward function r1 is: Among them, K1 is a proportional coefficient greater than 0, D KL (p||q) is the KL divergence between the action probability distribution p of the discrete brake pedal and accelerator pedal opening of the real driver following behavior dataset and the action probability distribution q of the discrete brake pedal or accelerator pedal opening sampled from the historical data of DDPG. The action probability distribution q is obtained during the model training process; D KL (p||q) is used to measure the difference between the action probability distribution of the discrete brake pedal or accelerator pedal opening of DDPG and the action probability distribution of the discrete brake pedal or accelerator pedal opening of the real driver's following behavior: The expression of the multi-objective reward function r2 is: r2=k1·L r (s_rel)+k2·V r (|v0-v f |) Among them, k1+k2=1, k1>0, k2>0, L r (s_rel) is the spacing reward, V r (|v0-v f |) is the speed bonus; L r (s_rel) is expressed as: Where a is a reward value greater than 0, α is a proportional coefficient greater than 0, M is a proportional coefficient greater than 0, M>>a, L min is the expected minimum following distance, L max is the expected maximum following distance; V r (|v0-v f |) is represented as: Where b is a reward value greater than 0, and K is a proportional coefficient greater than 0.

5. The method for controlling the human-following behavior of an intelligent vehicle based on improved deep reinforcement learning according to claim 4, characterized in that: In step 5 of the third step, the parameters of the neural network are randomly initialized ω1, Initialize the weights of the composite reward function to w1 = 0.9, w2 = 0.1; take the initial state of a real data set as the initial state input, run the following behavior strategy model multiple times, and convert the state-action-reward-state transfer quadruple {s t ,a t ,r 2,t ,s t+1 } is stored in the Replaybuffer experience playback buffer until the Replaybuffer experience playback buffer collects N0 state-action-reward-state transition quadruple {s t ,a t ,r 2,t ,s t+1 }.

6. The method for controlling human-like car-following behavior of an intelligent vehicle based on improved deep reinforcement learning according to claim 4, characterized in that: In step 2 of the fourth step, the brake pedal or accelerator pedal opening action a of each sampled quaternary group is obtained. t The theoretical maximum value of the accelerator pedal opening is θ ymax , the theoretical maximum value of the brake pedal opening is -θ zmax , then the range of the brake pedal or accelerator pedal opening θ is expressed as: θ∈[-θ zmax ,θ ymax ], where the positive value of θ represents the angle of the accelerator pedal opening. The larger the accelerator pedal opening, the larger the positive value of θ. The negative value of θ represents the angle of the brake pedal opening. The larger the brake pedal opening, the smaller the negative value of θ. Divide the value range of the brake pedal opening into N z intervals, N z is a positive integer greater than zero, dividing the range of the accelerator pedal opening into N y intervals, N y is a positive integer greater than 1, then the brake pedal or accelerator pedal opening θ in the i-th turning angle interval i The value range of is: i is an integer, 1≤i≤(N z +N y ); Count the number of samples R of all brake pedal or accelerator pedal openings collected from the n quaternions sampled from the Replaybuffer experience playback buffer θ , count the number of times the brake pedal or accelerator pedal is opened in each corner interval Obtain the probability distribution of the brake pedal or accelerator pedal opening given by the DDPG network in each brake pedal or accelerator pedal opening range Use the average value of the brake pedal or accelerator pedal opening in each interval As the brake pedal or accelerator pedal opening angle θ in the interval i , write out the action probability distribution q of the discrete brake pedal or accelerator pedal opening given by the DDPG network, and the discrete action probability q of the i-th interval i for: Step 3: Calculate the similarity reward function r1 for all sampled quadruplets: D KL (p||q) is the KL divergence between the action probability distribution p of the discrete brake pedal and accelerator pedal opening of the real driver following behavior dataset and the action probability distribution q of the discrete brake pedal or accelerator pedal opening sampled from the historical data of DDPG; Step 4: Calculate the composite reward function r for each quadruple i : r i =w1·r1+w2·r 2,i , where 1≤i≤n, i is an integer; r1 is the similarity reward function, r2 is the multi-objective reward function, w1 is the weight of the similarity reward function, w2 is the weight of the multi-objective reward function, w1+w2=1, w1>0, w2>0; Step 5: For each tuple, use the target network target Critic network Calculate the predicted value: γ is a constant less than 1 and greater than 0, and the result item y of the neural network prediction value i Part of i Instead of directly using the multi-objective reward function constructed by deep reinforcement learning as the training reward function, the weighted sum of the similarity reward function and the multi-objective reward function is used as the training reward function, so that the car-following behavior strategy model can match the driver's characteristics. The introduction of real driver behavior data can also accelerate the training of the model. Step 6: Update the current Actor network and the current Critic network: Calculate the minimization objective loss: Update the current Critic network Calculate the sampled policy gradient: Update the current Actor network μ(ω1) accordingly; Step 7: The reward evaluator T(R) calculates the average reward value R2 of the brake pedal or accelerator pedal opening of the real driver's car-following behavior and the average reward R'2 of the action given by the current deep reinforcement learning strategy; When calculating R2, the reward of each time step is calculated using the multi-objective reward function r2 according to the brake pedal or accelerator pedal opening data, the distance data from the front vehicle, the speed data of the vehicle and the speed data of the front vehicle obtained in the first step. The rewards of all time steps are accumulated and divided by the total number of time steps to obtain the average reward value R2 of the real driver; When calculating R'2, the multi-objective reward r of each of the n sampled quadruple is obtained 2,i , where 1≤i≤n, the multi-objective rewards of each quadruple are accumulated and divided by n to obtain the average reward R'2 of the action given by the current sampled deep reinforcement learning strategy; When R2≤R'2, it is considered that the level of action given by the current deep reinforcement learning strategy is better than the average level of the real driver's action, reducing the weight w1 of the similar reward function and increasing the weight w2 of the multi-objective reward function. Therefore, T(R) adjusts the weights w1 and w2 of the composite reward function r=w1·r1+w2·r2: Where β is a constant; Step 8: Update the target network: Among them, 0<τ<1, which is a constant; Repeat the above steps until the training converges.

Citation Information

Patent Citations

  • Anthropomorphic automatic driving car-following model based on deep reinforcement learning

    CN109733415A

  • Driving collision avoidance optimization method based on deep reinforcement learning in car-following state

    CN113901718A

  • Methods and systems for a parking assist system

    US20210280062A1