Prediction and allocation method of steering weight coefficients for human-machine co-driving based on deep reinforcement learning
By combining deep reinforcement learning with LSTM and DDPG algorithms, the steering weight coefficient of human-machine co-driving vehicles is predicted and assigned, which solves the problem of failing to consider the impact of driver physiological characteristics and modeling errors in the existing technology, and achieves efficient and safe driving. Vehicle control.
Patent Information
- Application Number
- CN202410024719.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-08
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-01-08
AI Technical Summary
Existing driver behavior prediction models fail to effectively consider the driver's physiological characteristics, and the human-machine co-driving authority allocation technology is highly dependent on model accuracy and is easily affected by modeling errors, resulting in low adaptability of decision-making algorithms and deep reinforcement learning. The learning process is time-consuming and difficult to update in real time.
Using a method based on deep reinforcement learning, combined with LSTM and DDPG algorithms, it obtains road conditions and driver information through recognition equipment, predicts the steering weight coefficient in the next second, and makes real-time decisions through the optimal steering module and risk assessment module to ensure vehicle safety sex.
It improves the accuracy of driver behavior prediction and the accuracy of human-machine co-driving authority allocation, realizes continuous and dynamic allocation of decision-making rights, reduces the impact of modeling errors, saves computing resources, and ensures safe and efficient vehicle control. .
Smart Images

Figure CN117829256B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent driving technology, and in particular to a method for predicting and allocating steering weight coefficients for human-machine co-driving based on deep reinforcement learning. Background Art
[0002] At present, co-driving human-machine integrated driving is in the exploratory stage, in which humans and machines are both control subjects. The core of control lies in the dynamic allocation of driving rights. During the control process, the controlled objects of both parties are cross-linked and coupled, and the state transfer is mutually constrained. It has a dual-loop parallel control structure, which uses the respective advantages of human intelligence and machine intelligence to form a "1+1>2" human-machine cooperative hybrid intelligent system, which can not only promote the development of automotive intelligence, but also play a strong supporting role in the development of my country's automobile industry and artificial intelligence industry.
[0003] In the existing driver behavior prediction models, most of them are based on empirical formulas, and some scholars have proposed feedforward neural networks to predict driver behavior, but they do not consider the physiological characteristics of the driver. On this basis, some scholars have proposed a multi-feature fusion neural network model, which takes into account the driver's physiological factors such as head rotation, and uses feedforward neural networks to predict driver behavior. In this paper, the long short-term memory network (LSTM) in deep learning is used to predict driver behavior, which solves the short-term memory problem of recurrent neural networks and is more suitable for processing and predicting time series data.
[0004] In the existing human-machine co-driving authority allocation technology, the allocation problem is highly dependent on the accuracy of the model, and the allocation result is easily affected by modeling errors. Aiming at the problem of continuous dynamic allocation of decision-making power during human-machine co-driving and solving the problem of low adaptability of decision-making algorithms caused by modeling errors, this paper will use the Deep Deterministic Policy Gradient (DDPG) agent to allocate human-machine driving authority.
[0005] In existing deep reinforcement learning technology, the learning process takes a certain amount of time. Combined with practical problems, it is difficult to update the deep reinforcement learning output data in real time. Summary of the invention
[0006] To this end, the present invention provides a method for predicting and allocating steering weight coefficients for human-machine co-driving based on deep reinforcement learning to solve the problems raised in the background technology.
[0007] In order to achieve the above-mentioned purpose, the present invention provides the following technical solutions: a method for predicting and allocating steering weight coefficients of human-machine co-driving vehicles based on deep reinforcement learning, which is applicable to the prediction and allocation of steering weight coefficients of human-machine co-driving vehicles, and uses recognition equipment to obtain road condition information and driver information. The prediction and allocation method includes the following steps:
[0008] S1: Based on the traffic information, the fifth-order polynomial is used to obtain the sequential planning turn prediction data within the next t seconds;
[0009] S2: Establish an LSTM deep neural network, train the neural network through big data, and then obtain the driver's steering prediction data in the next t seconds based on the driver information;
[0010] S3: Establish a DDPG deep reinforcement learning network, set the initial strategy of the DDPG agent, obtain the prediction data of the temporal steering weight coefficient within the next t seconds, input it into the human-machine co-driving weight allocation module to obtain the temporal steering data within the next t seconds, and input it into the simulation module, evaluate it through the preset reward evaluation function, update the initial strategy of the DDPG agent, and finally obtain the optimal steering weight allocation coefficient in the future t time period The sequential data is used as the optimal strategy;
[0011] S4: Combine the output data of S1, S2, and S3, and obtain the optimal steering action at each moment in the next t seconds through the optimal steering module; the risk assessment module calculates the risk value of the optimal steering action based on the current road condition information;
[0012] S5: The action decision module makes a decision based on the risk assessment value obtained by the risk assessment module. If the risk value meets the preset safety conditions, the action decision module inputs the optimal steering action into the human-machine co-driving vehicle; if it does not meet the preset safety conditions, the action decision module executes the preset braking action to ensure vehicle safety.
[0013] Preferably, step S1 includes the following steps:
[0014] Step S1-1: Use on-board radar, sensors and other identification equipment to obtain road condition information, including: the speed of the vehicle; the speed of the vehicle in front of the vehicle in the lane and the longitudinal distance to the vehicle; the speed of vehicles in the left and right lanes and the lateral and longitudinal distances to the vehicle, etc.
[0015] Step S1-2: Calculate the maximum lane change time based on the empirical formula Where D is the distance between the front bumper of the vehicle and the rear bumper of the vehicle in front of it in the lane; L is the wheelbase of the vehicle; u s is the vehicle speed; u f It is the speed of the preceding vehicle in the lane.
[0016] Step S1-3: Using a quintic polynomial Get the relationship between the vehicle's lateral acceleration and time in the next t seconds, where a i (i=1,2,3,4,5) is the coefficient to be determined;
[0017] Step S1-4: Based on the empirical formula in step S2-3, the relationship between the front wheel angle and time in the next t seconds is obtained: where δ f is the front wheel turning angle; is the yaw angle; β is the sideslip angle of the center of mass; l f , l r are the distances from the center of mass to the front and rear axles respectively; u s is the vehicle speed.
[0018] Step S1-5: Discretize the relationship between the front wheel angle and time in the future t seconds, with a step size of N = 0.01s, and obtain the relationship matrix between the front wheel angle and time in the future t seconds: E(δ f_i |t i ), where i = 1, 2, 3…n,
[0019] Preferably, step S2 includes the following steps:
[0020] Step S2-1: Obtain the driver's steering wheel angle information using vehicle-mounted radar, sensors and other identification equipment.
[0021] Step S2-2: Based on the Tensorflow deep learning framework, use Python programming to create a custom LSTM model and use mean square error as the loss function.
[0022] Step S2-3: Organize the known big data information, including the speed of the front vehicle and the vehicle itself, the distance between the vehicle and the front vehicle, the steering wheel angle, and the front wheel angle of the vehicle itself, and perform normalization to obtain the corresponding matrix. The data is divided into two parts, one for training the model and the other for testing the model. After 100 rounds of training with the training data, the test data is used for testing to verify the feasibility of the neural network.
[0023] Step S2-4: Output the relationship matrix between the front wheel steering angle and time output by the driver: E(δ driver_i |t i ).
[0024] Preferably, step S3 comprises the following steps:
[0025] Step S3-1: The DDPG deep reinforcement learning network includes a driving rights allocation agent and an interactive environment, wherein the interactive environment includes a human-machine co-driving rights allocation module, a simulation environment module, and a reward evaluation function. The DDPG algorithm is used as a driving rights allocation agent, and its observation space includes vehicle trajectories and vehicle-road environment states; the action space is the steering weight allocation coefficient μ;
[0026] Step S3-2: Regarding the reward function setting problem in the deep reinforcement learning algorithm framework, under the premise of considering the driver's control comfort and combining the risk field, a comprehensive evaluation index is proposed to establish a reward function and select the optimal DDPG action as the output of the DDPG agent.
[0027] Preferably, in step S3-1, the DDPG algorithm is used as the driving right allocation agent, the agent receives the state observation S of the environment, and outputs the action A, i.e., the machine driving weight μ, to the environment, and the environment enters the next state S * , and at the same time generate a benefit R to obtain the optimal output action; a driving right allocation agent is constructed based on the Actor-Critic architecture. The Actor-Critic architecture includes four networks: online Actor, target Actor, online Critic, and target Critic. All four use convolutional neural networks for function approximation. The Actor generates the driving right allocation result based on the observation; the Critic calculates the return, that is, the cumulative benefit, based on the current state and allocation weight. During the driving right allocation training process, the driving right allocation Actor-Critic architecture based on DDP G is used to update the above four network parameter vectors.
[0028] Preferably, the Actor-Critic architecture for driving rights allocation based on DDPG is implemented as follows:
[0029] Step S3-1-1: The online Actor calculates the corresponding driving right allocation μ(S) based on the current environmental state observation S;
[0030] Step S3-1-2: Execute the driving rights allocation result and obtain the corresponding benefit R and the next state observation S * , and store the experience {SARS *}, where A is the environment output action;
[0031] Step S3-1-3: Sample M groups of experience from the experience cache and calculate the output R of the target critic for each group of experience Critic_j ;
[0032]
[0033] Among them, R j is the benefit of the jth group of experience under the current state; λ is the discount factor; A is the state observation of the next step of the j-th group of experience; * Output action for the target Actor network; is the target Critic network parameter; The network parameters of the target Actor; is the target critic's expected return; Output the driving weight that optimizes the reward for the target Actor;
[0034] Step S3-1-4: Update the parameters of the online critic by minimizing the loss of all sampled experiences;
[0035] Step S3-1-5: Update online Actor parameters using sampled policy gradients to maximize cumulative benefits;
[0036] Step S3-1-6: The target actor and target critic use a linear weighted method to update parameters based on the online actor and online critic;
[0037] Step S3-1-7: Finally, the optimal prediction weight coefficient matrix is obtained: E1(μ i |t i ), E2(1-μ i |t i );
[0038] in E1(μ i |t i ) is the driver weight distribution coefficient time series matrix, E2(1-μ i |t i ) is the temporal matrix of machine driving weight allocation coefficients; μ i t i Driver weight distribution coefficient, 1-μ i t i The machine driving weight distribution coefficient.
[0039] Preferably, in step S3-2, the reward function is: R = ω s R s +ω c R c , where ω s ,ω c is the corresponding weight coefficient; R s is the risk reward function; R c is the comfort reward function.
[0040] Preferably, the risk reward function is expressed as follows:
[0041]
[0042] Where G is the gravitational constant, k1 is the distance factor constant; r i represents the distance vector between the position of the preceding vehicle and the position of the vehicle; M iis the equivalent mass of the moving obstacle; L i is the road impact factor; i = 1, 2, 3…n, k2 is the sports risk influencing factor; u s is the vehicle speed; u o is the speed of other vehicles; x, y are the horizontal and vertical distances between other vehicles and this vehicle respectively.
[0043] Preferably, the comfort reward function is expressed as follows:
[0044] R c =σ1∫a+σ2∫β;
[0045] Among them, σ1, σ2 are normalization coefficients, a is the relationship function between lateral acceleration and time; β is the relationship function between the center of mass sideslip angle and time.
[0046] Preferably, in step S4, the output data of S1, S2, and S3 are combined, and the optimal steering action at each moment in the next t seconds is obtained through the optimal steering module:
[0047]
[0048] Among them, δ driver_i is the front wheel steering angle output by the driver, δ f_i The front wheel turning angle output by the machine;
[0049] The risk assessment module combines the current road condition information to determine t i Optimal steering action safety at all times;
[0050] In the risk assessment module, based on the driving risk field and combined with the road condition information obtained in step S1, a risk assessment function is set: Among them, E R is the driving potential energy field strength, E V It is the field strength of driving kinetic energy;
[0051] On the strength E of the driving potential energy field in the risk assessment function R Defined as:
[0052]
[0053] Where G is the gravitational constant, k1 is the distance factor constant, Indicates that at t i+10 The distance vector between the position of the stationary obstacle j and the position of the vehicle at the moment, M j is the equivalent mass of the stationary obstacle, R j is the road influencing factor.
[0054] On the kinetic energy field E in the risk assessment function VStrong definition is:
[0055]
[0056] Where G is the gravitational constant, k1 is the distance factor constant, Indicates that at t i+10 The distance vector between the position of the moving obstacle j and the position of the vehicle at the moment, M j is the equivalent mass of the moving obstacle, R j is the road impact factor, k2 is the movement risk impact factor, u j is the speed of the moving obstacle, θ j is the speed direction of the moving obstacle and The angle of
[0057] The risk assessment values are:
[0058] Preferably, in step S5, the action decision module makes a decision based on the risk assessment value obtained by the risk assessment module:
[0059]
[0060] If the risk value Meet the preset safety condition Φ, that is The action decision module executes Action_1, which inputs the optimal steering action into the human-machine co-driving vehicle; if the preset safety conditions are not met, The action decision module will execute the preset braking action Action_2 to ensure vehicle safety.
[0061] The present invention discloses a method for predicting and allocating steering weight coefficients for human-machine co-driving based on deep reinforcement learning. Through vehicle-side equipment, road condition information and driver information are obtained. The planning module and the LSTM neural network predict the planned steering data and the driver steering data within the next second. Then, the optimal allocation coefficient is obtained through DDPG. The optimal steering module combines the outputs of the first three to obtain the optimal steering action within the next second. The risk assessment module performs real-time risk assessment on the optimal steering action. The action decision module makes a decision on the final action, which is input into the human-machine co-driving vehicle, and the road condition information and the driver information are updated to realize a closed loop.
[0062] The present invention also discloses a device, which includes an experience storage device, a vehicle-side controller deployed on the vehicle-side, and a sensing device deployed on the vehicle-side; the device is used to execute the steps of the above method when running executable instructions.
[0063] The present invention has the following advantages:
[0064] 1. The present invention predicts driver behavior by using the long short-term memory network in deep learning. Compared with the prior art, it solves the short-term memory problem of recurrent neural networks, takes into account the physiological characteristics of the driver himself, and is more suitable for processing and predicting time series data.
[0065] 2. The present invention allocates human-machine driving rights by using a deep deterministic policy gradient (DDPG) agent. Compared with the prior art, it solves the problem that the allocation problem is highly dependent on model accuracy and the allocation results are easily affected by modeling errors. It aims at the problem of continuous dynamic allocation of decision-making rights during human-machine collaborative driving and solves the problem of low adaptability of decision-making algorithms caused by modeling errors.
[0066] 3. The present invention predicts the planned steering data and the driver's steering data within the next seconds through the planning module and LSTM, obtains the optimal allocation coefficient through DDPG, and the optimal steering module combines the outputs of the first three to obtain the optimal steering action within the next seconds. The risk assessment module performs real-time risk assessment on the optimal steering action, and the action decision module makes a decision on the final action, which is input into the human-machine co-driving vehicle. Compared with the prior art, the present method can predict the optimal steering action within the next t seconds in advance, and perform risk assessment in real time, and then control the human-machine co-driving vehicle, saving computing resources of the on-board computer, and safely and efficiently controlling the intelligent vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 A flow chart of a method for predicting and allocating steering weight coefficients for human-machine co-driving based on deep reinforcement learning provided by the present invention;
[0068] Figure 2 This is a structural diagram of the DDPG agent provided by the present invention. DETAILED DESCRIPTION
[0069] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0070] Example 1
[0071] The present invention provides a method for predicting and allocating steering weight coefficients for human-machine co-driving based on deep reinforcement learning. The method is applicable to predicting and allocating steering weight coefficients for human-machine co-driving vehicles. The method uses an identification device to obtain road condition information and driver information. The prediction and allocation method includes the following steps:
[0072] S1: Based on the traffic information, the fifth-order polynomial is used to obtain the sequential planning turn prediction data within the next t seconds through the planning module;
[0073] Use on-board radar, sensors and other identification equipment to obtain road condition information, including: the speed of the vehicle; the speed of the vehicle in front of the vehicle in the lane and the longitudinal distance from the vehicle; the speed of vehicles in the left and right lanes and the lateral and longitudinal distances from the vehicle, etc.
[0074] Calculate the maximum lane change time based on the empirical formula Where D is the distance between the front bumper of the vehicle and the rear bumper of the vehicle in front of it in the lane; L is the wheelbase of the vehicle; u s is the vehicle speed; u f It is the speed of the preceding vehicle in the lane.
[0075] Using the quintic polynomial Get the relationship between the vehicle's lateral acceleration and time in the next t seconds, where a i (i=1,2,3,4,5) is the coefficient to be determined;
[0076] According to the empirical formula, on the basis of step S2-3, the relationship between the front wheel angle and time in the next t seconds is obtained: where δ f is the front wheel turning angle; is the yaw angle; β is the sideslip angle of the center of mass; l f , l r are the distances from the center of mass to the front and rear axles respectively; u s is the vehicle speed.
[0077] Discretize the relationship between the front wheel angle and time in the future t seconds, with a step size of N = 0.01s, and obtain the relationship matrix between the front wheel angle and time in the future t seconds: E(δ f_i |t i ), where i = 1, 2, 3…n,
[0078] S2: Establish an LSTM deep neural network, train the neural network through big data, and then obtain the driver's steering prediction data in the next t seconds based on the driver information;
[0079] The driver's steering wheel angle information is obtained by using on-board radar, sensors and other identification devices.
[0080] Based on the Tensorflow deep learning framework, Python programming is used to create a custom LSTM model, using mean square error as the loss function.
[0081] The known big data information is sorted, including the speed of the front vehicle and the vehicle itself, the distance between the vehicle itself and the front vehicle, the steering wheel angle, and the front wheel angle of the vehicle itself, and normalized to obtain the corresponding matrix. The data is divided into two parts, one for training the model and the other for testing the model. After 100 rounds of training with the training data, the test data is used for testing to verify the feasibility of the neural network.
[0082] The output is the relationship matrix between the front wheel steering angle and time output by the driver: E(δ driver_i |t i ).
[0083] S3: Establish a DDPG deep reinforcement learning network, set the initial strategy of the DDPG agent, obtain the prediction data of the temporal steering weight coefficient within the next t seconds, input it into the human-machine co-driving weight allocation module to obtain the temporal steering data within the next t seconds, and input it into the simulation module, evaluate it through the preset reward evaluation function, update the initial strategy of the DDPG agent, and finally obtain the optimal steering weight allocation coefficient in the future t time period The sequential data is used as the optimal strategy;
[0084] The DDPG deep reinforcement learning network includes a driving rights allocation agent and an interactive environment, where the interactive environment includes a human-machine co-driving rights allocation module, a simulation environment module, and a reward evaluation function. The DDPG algorithm is a driving rights allocation agent, and its observation space includes vehicle trajectories and vehicle-road environment states; the action space is the steering weight allocation coefficient μ;
[0085] Aiming at the problem of setting the reward function in the deep reinforcement learning algorithm framework, a comprehensive evaluation index is proposed based on the risk field, under the premise of considering the driver's control comfort, to establish the reward function and select the optimal DDPG action as the output of the DDPG agent.
[0086] The DDPG algorithm is used as the driving right allocation agent. The agent receives the state observation S of the environment and outputs the action A, i.e., the machine driving weight μ, to the environment. The environment enters the next state S * , and at the same time generate a benefit R to obtain the optimal output action; a driving right allocation agent is constructed based on the Actor-Critic architecture. The Actor-Critic architecture includes four networks: online Actor, target Actor, online Critic, and target Critic. All four use convolutional neural networks for function approximation. The Actor generates the driving right allocation result based on the observation; the Critic calculates the return, that is, the cumulative benefit, based on the current state and allocation weight. During the driving right allocation training process, the DDPG-based driving right allocation Actor-Critic architecture is used to update the above four network parameter vectors.
[0087] Specific implementation of the Actor-Critic architecture for driving rights allocation based on DDPG:
[0088] The online actor calculates the corresponding driving right allocation μ(S) based on the current environmental state observation S;
[0089] Execute the driving rights allocation result and obtain the corresponding benefit R and the next state observation S * , and store the experience {SARS *}, where A is the environment output action;
[0090] Sample M groups of experience from the experience cache and calculate the output R of the target critic for each group of experience Critic_j ;
[0091]
[0092] Among them, R j is the benefit of the jth group of experience under the current state; λ is the discount factor; A is the state observation of the next step of the j-th group of experience; * Output action for the target Actor network; is the target Critic network parameter; The network parameters of the target Actor; is the target critic's expected return; Output the driving weight that optimizes the reward for the target Actor;
[0093] Update the parameters of the online critic by minimizing the loss of all sampled experiences;
[0094] Update online Actor parameters using sampled policy gradients to maximize cumulative benefits;
[0095] The target actor and target critic use a linear weighted method to update parameters based on the online actor and online critic.
[0096] Finally, the optimal prediction weight coefficient matrix is obtained: E1(μ i |t i ), E2(1-μ i |t i );
[0097] in E1(μ i |t i ) is the driver weight distribution coefficient time series matrix, E2(1-μ i |t i) is the temporal matrix of machine driving weight allocation coefficients; μ i t i Driver weight distribution coefficient, 1-μ i t i The machine driving weight distribution coefficient.
[0098] The reward function is: R = ω s R s +ω c R c , where ω s ,ω c is the corresponding weight coefficient; R s is the risk reward function; R c is the comfort reward function.
[0099] The risk reward function is expressed as follows:
[0100]
[0101] Where G is the gravitational constant, k1 is the distance factor constant; r i represents the distance vector between the position of the preceding vehicle and the position of the vehicle; M i is the equivalent mass of the moving obstacle; L i is the road impact factor; i=1,2,3...n, k2 is the sports risk influencing factor; u s is the vehicle speed; u o is the speed of other vehicles; x, y are the horizontal and vertical distances between other vehicles and this vehicle respectively.
[0102] The comfort reward function is expressed as follows:
[0103] R c =σ1∫a+σ2∫β;
[0104] Among them, σ1, σ2 are normalization coefficients, a is the relationship function between lateral acceleration and time; β is the relationship function between the center of mass sideslip angle and time.
[0105] S4: Combine the output data of S1, S2, and S3, and use the optimal steering module to obtain the optimal steering action at each moment in the next t seconds:
[0106] Among them, δ driver_i is the front wheel steering angle output by the driver, δ f_i The front wheel turning angle output by the machine;
[0107] The risk assessment module combines the current road condition information to determine t i Optimal steering action safety at all times;
[0108] In the risk assessment module, based on the driving risk field and combined with the road condition information obtained in step S1, a risk assessment function is set: Among them, E R is the driving potential energy field strength, E V It is the field strength of driving kinetic energy;
[0109] On the strength E of the driving potential energy field in the risk assessment function R Defined as:
[0110]
[0111] Where G is the gravitational constant, k1 is the distance factor constant, Indicates that at t i+10 The distance vector between the position of the stationary obstacle j and the position of the vehicle at the moment, M j is the equivalent mass of the stationary obstacle, R j is the road influencing factor.
[0112] On the kinetic energy field E in the risk assessment function V Strong definition is:
[0113]
[0114] Where G is the gravitational constant, k1 is the distance factor constant, Indicates that at t i+10 The distance vector between the position of the moving obstacle j and the position of the vehicle at the moment, M j is the equivalent mass of the moving obstacle, R j is the road impact factor, k2 is the movement risk impact factor, u j is the speed of the moving obstacle, θ j is the speed direction of the moving obstacle and The angle of
[0115] The risk assessment values are:
[0116] S5: The action decision module makes a decision based on the risk assessment value obtained by the risk assessment module. If the risk value meets the preset safety conditions, the action decision module inputs the optimal steering action into the human-machine co-driving vehicle; if it does not meet the preset safety conditions, the action decision module executes the preset braking action to ensure vehicle safety.
[0117] The action decision module makes decisions based on the risk assessment value obtained by the risk assessment module:
[0118]
[0119] If the risk value Meet the preset safety condition Φ, that is The action decision module executes Action_1, which inputs the optimal steering action into the human-machine co-driving vehicle; if the preset safety conditions are not met, The action decision module will execute the preset braking action Action_2 to ensure vehicle safety.
[0120] The present invention discloses a method for predicting and allocating steering weight coefficients for human-machine co-driving based on deep reinforcement learning. Through vehicle-side equipment, road condition information and driver information are obtained. The planning module and the LSTM neural network predict the planned steering data and the driver steering data within the next second. Then, the optimal allocation coefficient is obtained through DDPG. The optimal steering module combines the outputs of the first three to obtain the optimal steering action within the next second. The risk assessment module performs real-time risk assessment on the optimal steering action. The action decision module makes a decision on the final action, which is input into the human-machine co-driving vehicle, and the road condition information and the driver information are updated to realize a closed loop.
[0121] The present invention also discloses a device, which includes an experience storage device, a vehicle-side controller deployed on the vehicle-side, and a sensing device deployed on the vehicle-side; the device is used to execute the steps of the above method when running executable instructions.
[0122] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.
Claims
1. Based on the deep reinforcement learning method for predicting and allocating steering weight coefficients for human-machine co-driving, the recognition device is used to obtain road condition information and driver information, which is characterized by: The predictive allocation method includes the following steps: S1: Based on the traffic information, the fifth-order polynomial is used to obtain the sequential planning turn prediction data within the next t seconds through the planning module; S2: Establish an LSTM deep neural network, train the neural network through big data, and then obtain the driver's steering prediction data in the next t seconds based on the driver information; S3: Establish a DDPG deep reinforcement learning network, set the initial strategy of the DDPG agent, obtain the prediction data of the temporal steering weight coefficient within the next t seconds, input it into the human-machine co-driving weight allocation module to obtain the temporal steering data within the next t seconds, and input it into the simulation module, evaluate it through the preset reward evaluation function, update the initial strategy of the DDPG agent, and finally obtain the optimal steering weight allocation coefficient in the future t time period The sequential data is used as the optimal strategy; Step S3 includes the following steps: Step S3-1: The DDPG deep reinforcement learning network includes a driving rights allocation agent and an interactive environment, wherein the interactive environment includes a human-machine co-driving rights allocation module, a simulation environment module, and a reward evaluation function. The DDPG algorithm is used as a driving rights allocation agent, and its observation space includes vehicle trajectories and vehicle-road environment states; the action space is the steering weight allocation coefficient μ; In step S3-1, a driving right allocation agent is constructed based on the Actor-Critic architecture. The Actor-Critic architecture includes four networks: online Actor, target Actor, online Critic, and target Critic. The Actor generates the driving right allocation result based on the observation; the Critic calculates the return, i.e., the accumulated benefit, based on the current state and the allocation weight. During the driving right allocation training process, the driving right allocation Actor-Critic architecture based on DDPG is used to update the online Actor, target Actor, online Critic, and target Critic. Specific implementation of the Actor-Critic architecture for driving rights allocation based on DDPG: Step S3-1-1: The online Actor calculates the corresponding driving right allocation μ(S) based on the current environmental state observation S; Step S3-1-2: Execute the driving rights allocation result and obtain the corresponding benefit R and the next state observation S * , and store the experience {SARS * }, where A is the environment output action; Step S3-1-3: Sample M groups of experience from the experience cache and calculate the output R of the target critic for each group of experience Critic_j : Among them, R j is the benefit of the jth group of experience under the current state; λ is the discount factor; A is the state observation of the next step of the j-th group of experience; * Output action for the target Actor network; is the target Critic network parameter; The network parameters of the target Actor; is the target critic's expected return; Output the driving weight that optimizes the reward for the target Actor; Step S3-1-4: Update the parameters of the online critic by minimizing the loss of all sampled experiences; Step S3-1-5: Update online Actor parameters using sampled policy gradients to maximize cumulative benefits; Step S3-1-6: The target actor and target critic use a linear weighted method to update parameters based on the online actor and online critic; Step S3-1-7: Finally, the optimal prediction weight coefficient matrix is obtained: E1(μ i |t i ), E2(1-μ i |t i );in E1(μ i |t i ) is the driver weight distribution coefficient time series matrix, E2(1-μ i |t i ) is the temporal matrix of machine driving weight allocation coefficients; μ i t i Driver weight distribution coefficient, 1-μ i t i The machine driving weight distribution coefficient; Step S3-2: For the reward function setting problem in the deep reinforcement learning algorithm framework, under the premise of considering the driver's control comfort, combined with the risk field, a reward function is established, and the optimal DDPG action is selected as the output of the DDPG agent; In step S3-2, the reward function is: R = ω s R s +ω c R c , where ω s ,ω c is the corresponding weight coefficient; R s is the risk reward function; R c is the comfort reward function; The risk reward function is expressed as follows: Where G is the gravitational constant, k1 is the distance factor constant; r i represents the distance vector between the position of the preceding vehicle and the position of the vehicle; M i is the equivalent mass of the moving obstacle; L i is the road impact factor; i = 1, 2, 3…n, k2 is the sports risk influencing factor; u s is the vehicle speed; u o is the speed of other vehicles; x and y are the horizontal and vertical distances between other vehicles and the vehicle respectively; The comfort reward function is expressed as follows: R c =σ1∫a+σ2∫β; Among them, σ1, σ2 are normalization coefficients, a is the relationship function between lateral acceleration and time; β is the relationship function between the center of mass sideslip angle and time; S4: Combine the output data of S1, S2, and S3, and obtain the optimal steering action at each moment in the next t seconds through the optimal steering module; the risk assessment module calculates the risk value of the optimal steering action based on the current road condition information; S5: The action decision module makes a decision based on the risk assessment value obtained by the risk assessment module. If the risk value meets the preset safety conditions, the action decision module inputs the optimal steering action into the human-machine co-driving vehicle; if it does not meet the preset safety conditions, the action decision module executes the preset braking action to ensure vehicle safety.
2. The method for predicting and allocating steering weight coefficients for human-machine co-driving based on deep reinforcement learning according to claim 1, characterized in that: In step S4, the output data of S1, S2, and S3 are combined and the optimal steering module is used to obtain the optimal steering action at each moment in the next t seconds: Among them, δ driver_i is the front wheel steering angle output by the driver, δ f_i The front wheel turning angle output by the machine; The risk assessment module combines the current road condition information to determine t i Optimal steering action safety at all times; In the risk assessment module, based on the driving risk field and combined with the road condition information obtained in step S1, a risk assessment function is set: Among them, E R is the driving potential energy field strength, E V It is the field strength of driving kinetic energy; On the strength E of the driving potential energy field in the risk assessment function R Defined as: Where G is the gravitational constant, k1 is the distance factor constant, Indicates that at t i+10 The distance vector between the position of the stationary obstacle j and the position of the vehicle at the moment, M j is the equivalent mass of the stationary obstacle, R j is the road impact factor; About the driving kinetic energy field E in the risk assessment function V Strong definition is: Where G is the gravitational constant, k1 is the distance factor constant, Indicates that at t i+10 The distance vector between the position of the moving obstacle j and the position of the vehicle at the moment, M j is the equivalent mass of the moving obstacle, R j is the road impact factor, k2 is the movement risk impact factor, u j is the speed of the moving obstacle, θ j is the speed direction of the moving obstacle and The angle of The risk assessment values are:
3. The method for predicting and allocating steering weight coefficients for human-machine co-driving based on deep reinforcement learning according to claim 1, characterized in that: In step S5, the action decision module makes a decision based on the risk assessment value obtained by the risk assessment module: If the risk value Meet the preset safety condition Φ, that is The action decision module executes Action_1, which inputs the optimal steering action into the human-machine co-driving vehicle; if the preset safety conditions are not met, The action decision module will execute the preset braking action Action_2 to ensure vehicle safety.
Citation Information
Patent Citations
Vehicle driving risk assessment method and device
CN111204336A
Personalized driver steering behavior assistance method of man-machine co-driving control system
CN111775949A
Unmanned vehicle intelligent decision-making method based on motivation and risk assessment
CN112242059A
Automatic driving transverse control method in vehicle-road cooperation environment
CN112896170A
Man-vehicle cooperative steering control method based on reinforcement learning corner weight distribution
CN115062539A
