A vehicle optimal control method based on deep reinforcement learning

Through the vehicle optimal control method based on deep reinforcement learning, combined with pure tracking control algorithm, the problems of vehicle dynamic stability and computing resource requirements in the prior art are solved, and efficient path fit and speed control are achieved in complex environments. Ensures dynamic stability and robustness of the vehicle.

CN118372851BActive Publication Date: 2024-11-29HAINAN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410447443.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-15
Publication Date
2024-11-29
Estimated Expiration
2044-04-15

AI Technical Summary

Technical Problem

While ensuring dynamic stability, the existing vehicle optimal control method is difficult to achieve efficient path fit and speed control in a low computing resource environment, especially in complex road environments, and the computing resource requirements are high, making it difficult to achieve efficient path fit and speed control in a low computing resource environment. Run efficiently on low-performance processors.

Method used

Adoption of vehicle optimal control method based on deep reinforcement learning, by establishing a policy network and a value network, combining pure tracking control algorithms, designing reward functions, and using reinforcement learning to optimize vehicle movements in the simulation system to ensure that the vehicle is under the premise of dynamic stability The planned path is fitted at an approximate optimal speed and minimizes movement time.

Benefits of technology

It realizes efficient vehicle optimal control in a low computing resource environment, improves the performance of path fit and speed control, reduces the demand for computing resources, and ensures the dynamic stability and robustness of the vehicle in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118372851B_ABST
    Figure CN118372851B_ABST
Patent Text Reader

Abstract

The present invention discloses a vehicle optimal control method based on deep reinforcement learning, comprising the steps of: step 1, establishing a strategy network and a mutually independent value network; step 2, controlling the vehicle operation and collecting samples; step 3, converting the data s t 、a t Input the value network to obtain two value scores and take the smaller value to calculate the predicted score; t+1 Input to the policy network to get action a t+1 , the data s t+1 、a t+1 Input two value scores in two value networks respectively and determine the TD error according to the value score and the prediction score, and update the value network; step 4, update the policy network after updating the value network twice; step 5, repeat steps 2 to 4 to tune the network parameters until the policy network achieves the expected effect, and output the final updated policy network. The present invention can ensure stability in the process of optimizing the control of the vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving technology, and in particular to a vehicle optimal control method based on deep reinforcement learning. Background Art

[0002] Autonomous driving has been truly applied in our lives, and its safety and reliability have been rigorously tested. Autonomous driving requires the integration of many key technologies, such as SLAM, path planning, etc. However, autonomous driving faces complex and changeable road environment conditions, and its rules are difficult to abstract into formulas or simple logic. With the development of deep representation learning, the field of reinforcement learning has become a powerful learning framework. As a branch of machine learning, reinforcement learning aims to train intelligent agents to complete tasks through reinforcement and punishment in the process of continuous interaction between intelligent agents and unknown environments. RL has done a lot of excellent research on mobile vehicles. Some researchers have used RL for local obstacle avoidance, end-to-end autonomous driving, and automatic parking. The optimal control of vehicles focuses more on the longitudinal speed of the vehicle or the lateral control of the vehicle. However, little attention is paid to the overall optimal control of the vehicle. This patent discusses a sub-problem in motion planning, that is, controlling the vehicle to move along the planned path at an approximately optimal speed while ensuring the dynamic stability of the vehicle, and minimizing the moving time.

[0003] Ensuring the dynamic stability of the vehicle is the premise of optimal control. Dynamic stability means that the vehicle will not shift sideways, roll over, or stop moving. MPC (Model Predict Control) is widely used in vehicle control. The purpose of MPC is to stabilize the behavior of the vehicle and track the specified path. By modeling the kinematics of the vehicle, optimizing the constraint objective function, and solving the optimal control value. For example, using MPC to drive a racing car at high speed along a specific track. Predicting the future dynamics of the system, solving optimization problems, and controlling are the cyclic calculation processes of MPC at every moment. In each control cycle, MPC needs to reuse the model of the next N steps to calculate the currently executed control instructions. MPC uses a model that is much larger than the original space model (higher calculation cost) to only obtain the optimal control value of the current step, which has certain requirements for the performance of the computing hardware. Obviously, this method is not suitable for vehicles equipped with low-performance processors, such as Automated Guided Vehicle, which often uses low-performance processors.

[0004] Related to MPC is pure pursuit control. Pure pursuit control is a simple geometric controller with low computing power requirements. It can run at high speed on low-performance single-board computers such as Raspberry Pi, and has become a popular path tracking algorithm for front-wheel steering vehicles. Pure pursuit is a P-type controller. If the feedforward distance is too short, it will cause lateral oscillation of the vehicle's motion, and if it is too long, it will lead to insufficient fit at the path bending point. In engineering, the feedforward distance is often increased with increasing speed. However, their performance is quite limited to relatively low speeds, and pure pursuit needs to be used in high-speed situations with a suitable speed controller. Therefore, there is an urgent need for an optimal control model with low computing resource requirements and high control rate. Since the optimal control is affected by the dynamic capabilities of the vehicle, such as acceleration, friction, centrifugal force, etc., the control model also needs to have strong robustness to ensure the stability of the vehicle during movement. Summary of the invention

[0005] In order to solve the above technical problems, the present invention proposes a vehicle optimal control method based on deep reinforcement learning, which is a reinforcement learning method based on certain prior knowledge, to ensure that the vehicle is controlled to move in accordance with the planned path at an approximately optimal speed under the premise of dynamic stability and to minimize the moving time.

[0006] In order to achieve the above object, the technical solution of the present invention is as follows:

[0007] A vehicle optimal control method based on deep reinforcement learning comprises the following steps:

[0008] Step 1: Establish a strategy network and two independent value networks, and initialize network parameters;

[0009] Step 2: In the simulation system, control the vehicle to travel along the planned path at the optimal speed and extract the current state of the vehicle s t , the state s t Input into the policy network to get the action a at time t t The vehicle interacts with the simulation system according to the action to obtain the vehicle state s at time t+1 t+1 , calculate the reward r according to the reward function t , the quaternion (s t , a t ,s t+1 , r t ) as data samples; construct an experience pool based on the data samples;

[0010] Step 3: Randomly extract data samples from the experience pool and store the data s t 、a tTwo value scores are respectively obtained from two value networks, and the smaller value is taken to calculate the predicted score at time t+1; the state s t+1 is input into the policy network to obtain the action a made by the vehicle at time t+1 t+1 , and the data s t+1 and a t+1 are respectively input into two value networks to obtain two value scores at time t+1, and the TD error is determined based on the two value scores and the predicted score at time t+1. The two value networks are updated based on the TD error;

[0011] Step 4, the policy network is updated once every two updates of the value network;

[0012] Step 5, repeat steps 2 to 4 to optimize the network parameters until the maximum number of iterations is reached or the policy network achieves the expected effect, and output the finally updated policy network.

[0013] Preferably, it further includes the following steps: using the finally updated policy network as the optimal policy for the deployment of the intelligent vehicle.

[0014] Preferably, the state, action, and reward are respectively defined as follows:

[0015] State definition: the vehicle driving speed v, the vehicle steering angle θ, and the planned path is abstracted as a series of points P={p1, p2, p3,... p n}, and the first m points are taken and denoted as P={p0, p1, p2, p3,... p m}, 3<m<n. The set of angles between the vehicle speed direction and the midpoint of the vehicle rear axle connection line and the connection lines of p0, p1, p2, p3,... p m is denoted as A={α0, α1, α2, α3,... α m}, and the distance from the midpoint of the vehicle rear axle to the planned path is denoted as d error . Combining v, θ, A, and d error to form a multi-dimensional vector as the current state vector S;

[0016] Action definition: The action is the strategy selected by the vehicle according to the current situation, which consists of acceleration, deceleration, and steering;

[0017] Reward definition: The reward formula is as follows:

[0018] R = R over + R speedup + R lengthen + R deviation + F1(α, v)+ F2(v, l d )

[0019] R speedup =-μv 2 +μ′v-150

[0020] R lengthen =-ωld 2 +ω′ld-150

[0021]

[0022] Wherein μ, μ′, ω, ω′, ρ, ρ′ are preset constants determined by preliminary experiments; R over For road rewards; R speedup Increases bonus for speed; R lengthen Reward for longer forward sight distance; R deviation is the path fitting reward; F1(α,v) is the speed reward; F2(v,l d ) is the forward viewing distance reward, v is the vehicle speed; l d is the foresight distance; α is the path curvature, F1(α,v) and F2(v,l d ) are set based on prior experience.

[0023] Preferably, the path curvature adopts the average curvature, and the formula is as follows:

[0024]

[0025] where p i ∈P is the first m abstract points of the planned path.

[0026] Preferably, the policy network and two independent value networks are constructed based on deep reinforcement learning TD3, wherein:

[0027] The strategy network is used to discretize the angle set A using VQ to obtain a discrete vector; the discrete vector is input into the time domain convolution network to obtain a convolution vector, the activation function of the time domain convolution network adopts LekeReluactivation, and the input of each layer is centrally processed; the convolution vector is combined with [θ, v, d error ] vectors are merged and input into the fully connected layer, and the predicted action at the next moment is output;

[0028] The value network is used to discretize the angle set A using VQ to obtain a discrete vector A; the discrete vector A is compared with [θ, v, d error ,l d ,speed] vectors are merged and input into the fully connected layer to output the value score.

[0029] Preferably, the data s t 、a tInput two value networks to obtain two value scores and take the smaller value to calculate the predicted score at time t+1 The formula is as follows:

[0030]

[0031] In the formula, Q θ1 and Q θ2 is the value network, γ is the discount rate, w 1,new and w 2,new

[0032] are the parameters of the updated value network, and are respectively the current data s t 、a t value rating.

[0033] Preferably, the state s t+1 Input into the policy network to get the action a made by the vehicle at time t+1 t+1 , the data s t+1 、a t+1 Input the two value scores at time t+1 into the two value networks respectively, and determine the TD error based on the two value scores and the predicted score at time t+1. Update the two value networks based on the TD error. The specific formula is as follows:

[0034]

[0035]

[0036]

[0037] In the formula, β is the learning rate, is the prediction score for the current strategy, δ 1,j and δ 2,j is the difference between the prediction score and the value network score, Q θ1 and Q θ2 For the value network, Indicates the derivative of the parameter, w 1,now and w 2,now is the parameter of the value network, w 1,new and w 2,new are the parameters of the updated value network.

[0038] Preferably, the strategy network is updated with the following formula:

[0039]

[0040] In the formula, τ is the learning rate, It means to take the derivative of the parameter. For the strategy network, are the parameters of the policy network, is the parameter of the updated policy network, Q θ1 and Q θ2 is the value network, θ1 and θ2 are the parameters of the two value networks respectively.

[0041] Preferably, the method further includes the following steps: introducing noise into the policy network, the noise is randomly extracted from a truncated normal distribution, so that the policy network is more active in exploring unknown actions, and the formula is as follows:

[0042] a←π θ (s)+εε~clip(N(0,σ),-c,c)

[0043] Where ε represents noise, N(0,σ) represents a normal distribution with mean 0 and variance σ, clip represents the clipping operation, and -c and c represent the clipping range.

[0044] Based on the above technical solution, the beneficial effects of the present invention are as follows: the present invention proposes a RL optimal control SQ-PAO (State Quantize for Pursuit Approximate Optimal Control) method combined with a pure pursuit algorithm, which is used to drive a vehicle along a known arbitrary path at an optimal speed to fit the path. We design a reward function based on prior linear knowledge to guide the agent to learn quickly; the sequence state of the input agent is sparsely discretized using VQ to reduce the space for representing the vehicle state, and the infinite space is limited to a certain limited space. The agent outputs actions in the limited space and can also make approximate behaviors for similar states (including states outside of training). VQ reduces the behavioral output jump caused by slight changes in the state and improves the robustness of the model. The agent learns the acceleration (and deceleration) and the feedforward distance size that is adaptive with the speed, so that each point on the path can be approximately optimized to ensure dynamic stability. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 is a flow chart of a vehicle optimal control method based on deep reinforcement learning in an embodiment;

[0046] Figure 2 is a schematic diagram of a two-dimensional plane model of a vehicle in an embodiment;

[0047] Figure 3 is a schematic diagram of a strategy network structure in an embodiment;

[0048] Figure 4 is a schematic diagram of the structure of a value network in one embodiment;

[0049] Figure 5 is a speed reward space diagram in one embodiment, showing the relationship between speed v, path curvature α and reward;

[0050] Figure 6 1 is a diagram of the foresight distance reward space in one embodiment, showing the relationship between the foresight distance ld, speed v and reward. DETAILED DESCRIPTION

[0051] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0052] like Figures 1 to 4 As shown, this embodiment provides a vehicle optimal control method based on deep reinforcement learning. It includes the following specific steps:

[0053] Step 1: Establish a policy network and two independent value networks, and initialize the network parameters.

[0054] In this embodiment, a policy network and two independent value networks are established according to the TD3 framework. The policy network obtains a certain action by inputting state variables, and the established neural network structure is as follows: the input of the neural network is the state of the environment, and the output of the neural network is the action to be taken by the agent. The input of the value network and the value network are both the state variables of the simulation environment and the action taken in the last decision. The output is Q(s,a), which refers to the score reward value obtained under the corresponding simulation environment state and action conditions. The network parameters are initialized randomly.

[0055] The policy network π θ The structure uses VQ to discretize the angle set A related to the input model and path, and the discretized A is sent to the time domain convolutional network (TCN) for processing, and finally sent to the fully connected layer for behavior output. The number of hidden layer channels of TCN is [32,32,32,1], and Dilated is [1,2,4,8] respectively. For the gradient disappearance of Relu in TCN, LekeRelu activation is used in Block instead, and the input of each layer is centered. Take the 8-dimensional data output of the last layer of TCN and [θ,v,d error ] are merged on the channel and sent to the fully connected network for behavior output. Finally, the steering and speed actions are applied to the vehicle. The formula for the vehicle steering angle is:

[0056]

[0057] Where L is the distance from the front axle to the rear axle, e y(k) is the lateral error between the feedforward point and the vehicle's forward direction at time k, and the forward distance l d is the distance between the feedforward point and the center of the rear axle of the vehicle.

[0058] The structure of the value network is to remove the TCN block of the strategy network and separate the discretized A and [θ, v, d error ,l d ,speed] are merged and sent to the fully connected network to obtain the approximate Q(s,a) output.

[0059] Step 2: Control the vehicle to run and collect data samples. In the simulation system, control the vehicle to drive along the planned path at the optimal speed and extract the current state of the vehicle s t , the state s t Input into the policy network to get the action a at time t t The vehicle interacts with the simulation system according to the action to obtain the vehicle state s at time t+1 t+1 , calculate the reward r according to the reward function t , the quaternion (s t , a t ,s t+1 , r t ) as data samples; build an experience pool based on the data samples.

[0060] In this embodiment, see Figure 3 According to the vehicle driving conditions, a simulator is selected for simulation to control the vehicle to drive along the planned path at the optimal speed while ensuring the stability of the vehicle. t , and the state s t Input into the policy network to get action a t , let the vehicle make this action. After a discrete time step t, the vehicle state s is obtained from the simulator again. t+1 , and calculate the reward r according to the reward function t Then, s t , a t ,s t+1 , r t Form an array and store it in experience pool B.

[0061] The states, actions, and rewards are defined as follows:

[0062] State definition: vehicle speed v, vehicle steering angle θ. The planned path is abstracted into a series of points P = {p1, p2, p3, .... p n}, take the first 17 points and record them as P = {p0,p1,p2,p3,....p 16}, then the vehicle speed direction and the midpoint of the line connecting the vehicle rear axle are respectively 16 The set of angles between the connecting lines is recorded as A = {α0, α1, α2, α3, .... α 16 The distance between the midpoint of the vehicle's rear axle and the planned path is denoted as d error Finally, v, θ, A, d error Form a 20-dimensional vector as the current state vector S.

[0063] Action definition: The action is the strategy selected by the vehicle based on the current situation, which consists of acceleration, deceleration and steering.

[0064] Reward definition: The reward formula is as follows:.

[0065] R=R over +R speedup +R lengthen +R deviation +F1(α,v)+F2(v,l d )

[0066] R speedup =-0.0205v 2 +4.368v-150

[0067] R lengthen =-0.1252ld 2 +8.9663ld-150

[0068]

[0069] The coefficients of the function are determined based on multiple experimental results. over The road reward is used to evaluate whether the vehicle deviates too far from the planned path. If the deviation is too large, a reward of -500 is given and the round ends. In order to increase the vehicle's driving speed, we set a speed increase reward R speedup And the forward sight distance becomes longer reward R lengthen . Where R speedup To encourage the increase of speed, at low speed, R speedup takes effect. lengthen To encourage an increase in the forward sight distance to adapt to high-speed scenarios, and when the forward sight distance is too short, R lengthen Effective. deviation The path fitting reward is used to evaluate whether the current vehicle fits the planned path. The more similar the vehicle's route is to the planned route, the higher the reward.

[0070] F1(α,v) is the speed reward, which is set based on our prior experience. The vehicle's empirical speed is set according to the curvature of the path ahead. When the vehicle speed is higher or lower than a certain range of the empirical speed, the vehicle is penalized. F2(v,l d ) is the forward sight distance reward, which is also set based on prior experience. The vehicle speed is set according to the forward sight distance. Vehicles that are too fast or too slow will also be penalized.

[0071] The speed bonus and foresight distance bonus set by experience are as follows Figure 5 , Figure 6 The speed reward is a function of the speed and the curvature of the path ahead, where the path curvature is replaced by the mean curvature.

[0072]

[0073] where p i ∈P is the first m abstract points of the planned path.

[0074] Figure 5 The top line in the graph represents the linear empirical relationship V = f1(α) between the mean curvature α of the path and the empirical speed V. The function f1(α) is then used as a threshold to distinguish between high-speed and low-speed penalties, and Rv = F1(α, v) represents the reward surface associated with high and low speeds.

[0075] Foresight distance bonus F2(v,l d ) is the relationship between vehicle speed v and forward sight distance l d The function between . Figure 6 The top line in the figure represents the vehicle speed v and the empirically predicted distance L. d The linear relationship between d = f2(v). Then f2(v) is used as a threshold to distinguish between too long and too short foresight distances, and R ld =F2(v,l d ) represents the reward surface associated with this foresight distance deviation.

[0076] Step 3: Update the value network. Randomly extract a quadruple from the experience pool and update the data s t 、a t Input two value networks to obtain two value scores respectively and take the smaller value to calculate the predicted score at time t+1; t+1 Input into the policy network to get the action a made by the vehicle at time t+1 t+1 , the data s t+1 、a t+1 The two value scores at time t+1 are respectively input into the two value networks, and the TD error is determined according to the two value scores at time t+1 and the predicted score, and the two value networks are updated based on the TD error.

[0077] Specifically, a quadruple (s t , a t ,s t+1 , r t ). Then let the two value networks be based on s t , a t Make a prediction and calculate the prediction score at time t+1 based on the smaller of the two prediction values The formula is as follows:

[0078]

[0079] In the formula, Q θ1 and Q θ2 is the value network, γ is the discount rate, w 1,new and w 2,new

[0080] are the parameters of the updated value network, and are respectively the current data s t 、a t 's rating.

[0081] Let the policy network be based on S t+1 Predict the action a at time t+1 t+1 , and then let the two value networks be based on s t+1 、a t+1 Make a prediction and calculate the TD error based on the smaller of the two predicted values. Use the TD error to update the two value networks. The formula is as follows:

[0082]

[0083]

[0084] In the formula, β is the learning rate, is the prediction score for the current strategy, δ 1,j and δ 2,j is the difference between the predicted score and the value network score, Q θ1 and Q θ2 For the value network, Indicates the derivative of the parameter, w 1,now and w 2,now is the parameter of the value network, w 1,new and w 2,new are the parameters of the updated value network.

[0085] Step 4: Update the policy network. In this embodiment, after updating the value network twice, the policy network is updated once. Randomly select n quadruplets (st , a t ,s t+1 , r t ), respectively input into the policy network to score them, and then use the score to update the policy network. The specific formula is as follows:

[0086]

[0087] In the formula, τ is the learning rate, It means to take the derivative of the parameter. Strategy Network, are the parameters of the policy network, is the parameter of the updated policy network, Q θ1 and Q θ2 is the value network, θ1 and θ2 are the parameters of the two value networks respectively.

[0088] Step 5, repeat steps 2 to 4, continuously update the parameters of each network until the maximum number of iterations is reached or the policy network achieves the expected effect, and use the final updated policy network as the optimal policy for the deployment of smart cars.

[0089] In one embodiment, a vehicle optimal control method based on deep reinforcement learning also includes a process of adjusting the policy network, and the process includes the following steps:

[0090] In the policy network π θ Noise is introduced in the network, and the noise is randomly extracted from the truncated normal distribution, which makes the policy network more actively explore unknown actions. The formula is as follows:

[0091] a←π θ (s)+ε ε~clip(N(0,σ),-c,c)

[0092] Where ε represents noise, N(0,σ) represents a normal distribution with mean 0 and variance σ, clip represents the clipping operation, and -c and c represent the clipping range.

[0093] It should be understood that, although the various steps in the above-mentioned flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flow chart may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0094] The above is only a preferred implementation of a vehicle optimal control method based on deep reinforcement learning disclosed by the present invention, and is not intended to limit the protection scope of the embodiments of this specification. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the embodiments of this specification shall be included in the protection scope of the embodiments of this specification.

Claims

1. A vehicle optimal control method based on deep reinforcement learning, characterized in that: The steps include: Step 1: Establish a strategy network and two independent value networks, and initialize network parameters; Step 2: In the simulation system, control the vehicle to travel along the planned path at the optimal speed and extract the current state of the vehicle s t , the state s t Input into the policy network to get the action a at time t t The vehicle interacts with the simulation system according to the action to obtain the vehicle state s at time t+1 t+1 , calculate the reward r according to the reward function t , the quaternion (s t , a t ,s t+1 , r t ) as data samples; construct an experience pool based on the data samples; Step 3: Randomly extract data samples from the experience pool and store the data s t 、a t Input two value networks to obtain two value scores and take the smaller value to calculate the predicted score at time t+1; t+1 Input into the policy network to get the action a made by the vehicle at time t+1 t+1 , the data s t+1 、a t+1 Input the two value scores at time t+1 into the two value networks respectively, determine the TD error based on the two value scores at time t+1 and the predicted score, and update the two value networks based on the TD error; Step 4: Update the strategy network once after updating the value network twice; Step 5: Repeat steps 2 to 4 to tune the network parameters until the maximum number of iterations is reached or the policy network achieves the expected effect, and then output the final updated policy network. The states, actions, and rewards are defined as follows: State definition: vehicle driving speed v, vehicle steering angle θ, and abstract the planned path as a series of points P = {p1, p2, p3,.... p n}, take the first m points from them and denote as P = {p0, p1, p2, p3,.... p m}, 3 < m < n, the set of angles between the vehicle speed direction and the midpoint of the vehicle rear axle connection line and the connection lines of p0, p1, p2, p3,.... p m is denoted as A = {α0, α1, α2, α3,.... α m}, the distance from the midpoint of the vehicle rear axle to the planned path is denoted as d error , combine v, θ, A, d error to form a multi-dimensional vector as the current state vector S; Action definition: The action is the strategy selected by the vehicle based on the current situation, which consists of acceleration, deceleration and steering; Reward definition: The reward formula is as follows: R=R over +R speedup +R lengthen +R deviation +F1(α,v)+F2(v,l d ) R speedup =-μv 2 +μ′v-150 R lengthen =-ωld 2 +ω′ld-150 Wherein μ, μ′, ω, ω′, ρ, ρ′ are preset constants determined by preliminary experiments; R over For road rewards; R speedup Bonus for speed increase; R lengthen Reward for longer forward sight distance; R deviation is the path fitting reward; F1(α,v) is the speed reward; F2(v,l d ) is the forward viewing distance reward, v is the vehicle speed; l d is the foresight distance; α is the path curvature, F1(α,v) and F2(v,l d ) are set based on prior experience.

2. The vehicle optimal control method based on deep reinforcement learning according to claim 1, characterized in that: The method also includes the following steps: using the finally updated strategy network as the optimal strategy for the deployment of smart cars.

3. The vehicle optimal control method based on deep reinforcement learning according to claim 1, characterized in that: The path curvature adopts the average curvature, and the formula is as follows: where p i ∈P is the first m abstract points of the planned path.

4. The vehicle optimal control method based on deep reinforcement learning according to claim 1, characterized in that: The strategy network and two independent value networks are constructed based on deep reinforcement learning TD3, where: The strategy network is used to discretize the angle set A using VQ to obtain a discrete vector; the discrete vector is input into the time domain convolution network to obtain a convolution vector, the activation function of the time domain convolution network adopts LekeReluactivation, and the input of each layer is centrally processed; the convolution vector is combined with [θ, v, d error ] vectors are merged and input into the fully connected layer, and the predicted action at the next moment is output; The value network is used to discretize the angle set A using VQ to obtain a discrete vector A; the discrete vector A is compared with [θ, v, d error ,l d ,speed] vectors are merged and input into the fully connected layer to output the value score.

5. The vehicle optimal control method based on deep reinforcement learning according to claim 4 is characterized in that: The data t 、a t Input two value networks to obtain two value scores and take the smaller value to calculate the predicted score at time t+1 The formula is as follows: In the formula, Q θ1 and Q θ2 is the value network, γ is the discount rate, w 1,new and w 2,new are the parameters of the updated value network, and are respectively the current data s t 、a t value rating.

6. The vehicle optimal control method based on deep reinforcement learning according to claim 5 is characterized in that: The state s t+1 Input into the policy network to get the action a made by the vehicle at time t+1 t+1 , the data s t+1 、a t+1 Input the two value scores at time t+1 into the two value networks respectively, and determine the TD error based on the two value scores and the predicted score at time t+1. Update the two value networks based on the TD error. The specific formula is as follows: In the formula, β is the learning rate, is the prediction score for the current strategy, δ 1,j and δ 2,j is the difference between the prediction score and the value network score, Q θ1 and Q θ2 For the value network, Indicates the derivation of the parameter, w 1,now and w 2,now is the parameter of the value network, w 1,new and w 2,new are the parameters of the updated value network.

7. The vehicle optimal control method based on deep reinforcement learning according to claim 6 is characterized in that: The strategy network is updated with the following formula: In the formula, τ is the learning rate, It means to take the derivative of the parameter. For the strategy network, are the parameters of the policy network, is the parameter of the updated policy network, Q θ1 and Q θ2 is the value network, θ1 and θ2 are the parameters of the two value networks respectively.

8. The vehicle optimal control method based on deep reinforcement learning according to claim 7 is characterized in that: The following steps are also included: Noise is introduced into the policy network. The noise is randomly extracted from the truncated normal distribution, which makes the policy network more actively explore unknown actions. The formula is as follows: a←π θ (s)+ε ε~clip(N(0,σ),-C,C) Where ε represents noise, N(0,σ) represents a normal distribution with mean 0 and variance σ, clip represents the clipping operation, and -c and c represent the clipping range.

Citation Information

Patent Citations

  • AEB control method and system based on DDPG deep reinforcement learning

    CN115123159A

  • Intelligent vehicle driving method based on reinforcement learning

    CN117270394A