Deep reinforcement learning method for reducing vehicle hyper-parameter adjustment
Through deep inverse reinforcement learning and multi-process asynchronous training, the construction of the steering stability reward function and the steering stability control of the autonomous vehicle are simplified, solving the problems in the existing technology of complex reward function settings and difficult adjustment of non-linear rewards, and achieving Safe and stable control in highway scenarios.
Patent Information
- Application Number
- CN202411023989.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
During the training process of autonomous vehicles, the setting of the handling stability reward function is complex and relies on empirical assumptions and vehicle dynamics models. In particular, the nonlinear reward function under compound operating conditions is difficult to adjust, making it difficult to adjust hyperparameters.
Using the deep inverse reinforcement learning method, by obtaining expert strategies, calculating steering stability rewards and using multi-process asynchronous training to accelerate deep inverse reinforcement learning, we design an integrated decision-making strategy in highway scenarios, simplifying the construction of the steering stability reward function and vehicle manipulation. Stability control.
It achieves effective learning and control of the vehicle handling reward function, simplifies the construction process, improves training efficiency and stability of handling control, and provides safe driving support in highway scenarios.
Smart Images

Figure CN118569350A
Abstract
Description
Technical Field
[0001] The present invention proposes a deep reinforcement learning method for reducing vehicle hyperparameter adjustment, and relates to the technical field of reducing hyperparameter adjustment of autonomous driving vehicles based on deep reinforcement learning. Background Art
[0002] With the rapid development of economic globalization and the rapid expansion of urbanization, the number of cars has increased dramatically, but the incidence of traffic accidents has also increased accordingly. Autonomous driving is expected to make significant contributions to reducing traffic accidents, improving road efficiency and alleviating traffic congestion. However, this technology faces many technical challenges in its implementation. In order to ensure the driving safety of autonomous vehicles in highway environments, it is necessary to build an algorithm based on deep reinforcement learning and design a reward function to evaluate the impact of vehicle hyperparameters during training, such as the impact of hyperparameters such as speed, yaw angle and steering wheel angle on vehicle handling stability. To ensure vehicle stability, it is also necessary to quickly achieve complex tasks such as lane keeping, lane change and overtaking. At present, most handling stability reward functions rely on empirical assumptions and vehicle dynamics models. The setting of reward functions for a large number of hyperparameters has become a problem, especially for vehicles with tires in complex working conditions. The nonlinear reward function of hyperparameters is even more difficult to adjust. Summary of the invention
[0003] In order to solve the above problems, the present invention proposes a nonlinear reward learning architecture for vehicle handling stability based on deep inverse reinforcement learning, and further proposes an integrated decision-making and control strategy for autonomous driving that combines the nonlinear handling stability reward of the vehicle with the driving rule reward in highway scenarios, thereby greatly reducing the hyperparameter setting of the vehicle handling stability reward function during the training of the integrated decision-making and control strategy.
[0004] A deep reinforcement learning method for reducing vehicle hyperparameter adjustment according to the present invention includes the following specific related steps:
[0005] Step S1: Obtain the expert strategy required for deep inverse reinforcement learning training;
[0006] Step S2: Using deep inverse reinforcement learning to obtain vehicle handling stability rewards;
[0007] Step S3: Use a multi-process asynchronous method to accelerate the training speed of deep inverse reinforcement learning;
[0008] Step S4: Integrated vehicle decision-making and control in high-speed complex scenarios.
[0009] Step S1 specifically includes the following contents:
[0010] Step S11: The original expert data is the slip rate of different vehicles at different front wheel angles, longitudinal vehicle speeds, and road friction coefficients. The corresponding vehicle handling stability evaluation value , The larger the value, the better the vehicle's handling stability. Each set of different front wheel steering angles, longitudinal vehicle speeds and fixed values of road friction coefficient is a working condition. Each working condition corresponds to a In order to obtain the expert strategy in the form of probability distribution function, the original expert data needs to be preprocessed to prevent numerical overflow. Too large, causing numerical calculation overflow, in each working condition The minimum value under the current working condition needs to be subtracted. The value is set as follows:
[0011]
[0012] Step S12: Use the softmax method to calculate the Value, converted to probability distribution , and the probability sum is 1, set the expression as shown below:
[0013]
[0014] Step S13: Use parameterized normal distribution To approximate ,Right now Normal distribution , and is the mean and variance of the normal distribution. The specific approximation method is achieved by minimizing the KL divergence. The expression is set as shown in the following formula:
[0015]
[0016] Step S14: Specific calculation parameters The method is to use the following gradient descent algorithm to complete the The optimal solution of
[0017]
[0018] In the formula is the learning rate during parameter update;
[0019] Step S15: When the probability distribution function With the original probability distribution The peak probability between the two, at the optimal slip rate When there is an error, it is necessary to Make corrections and The mean of the probability distribution is corrected to The corresponding optimal slip rate, while keeping the variance unchanged, the probability distribution after correction The final expert strategy .
[0020] Step S2 specifically includes the following contents:
[0021] Step S21: Calculate the expected features of the expert strategy and the learning strategy and , for a set of expert strategy data , set the expression as shown below:
[0022]
[0023] here Indicates Expert tracks, is the state of the vehicle, and the length of the expert trajectory is , therefore, the expected characteristic of the expert strategy is calculated as follows:
[0024]
[0025] here Discount factor , is the state characteristic, when When a certain condition is met is 1, otherwise 0, learning strategy The feature expectation of the vehicle during deep reinforcement learning training is calculated in the same way as the feature expectation of the expert strategy;
[0026] Step S22: Use deep inverse reinforcement learning to obtain the vehicle handling stability reward. The handling stability reward function is approximated by a neural network, that is, ,here are the parameters of the neural network, As the input of the neural network, the reward Parameters The problem is transformed into an optimization problem, and the expression is set as shown below:
[0027]
[0028] here Reward for stability The probability value of the parameter, the above formula is equivalent to a maximum a posteriori estimation problem, which can be regarded as the likelihood function of the expert strategy data With parameter priors A combination of
[0029]
[0030] By simplifying,
[0031]
[0032] here Reward The regularization function of the parameters, , and All from a time range If we consider , then ;
[0033] Step S23: Parameters Use the gradient descent algorithm to solve the parameters and set the expression as shown below:
[0034]
[0035] By setting the learning rate , you can get the best reward for stable operation .
[0036] Step S3 specifically includes the following contents:
[0037] Step S31: Multi-process asynchronous training makes full use of the multi-core CPU performance of a single computer and distributes the training tasks to multiple CPU cores, thereby speeding up the training speed and reducing the training time. The multi-process asynchronous training learning environment is mainly divided into two parts: the main process and the sub-process. There are multiple sub-processes, and each sub-process has two neural networks, Actor_1 strategy network and Critic_l value network ; There is only one main process, and there are two neural networks, Actor_g strategy network and Critic_g value network , these neural networks have the same structure, but the parameter update methods are different, where is the status of the vehicle, is the slip rate of the vehicle;
[0038] Step S32: Initialize the network parameters of Actor_g and Critic_g, assign the network parameters to Actor_l and Critic_l respectively, and set the number of subprocess update steps , the maximum number of training rounds , maximum capacity of experience pool , and initialize the number of action steps , the number of training rounds ;
[0039] Step S33: In each sub-process, the vehicle status at the current moment According to the strategy Select Action , calculate the vehicle state at the next moment , then through the state Calculate the reward value of the vehicle , , the data Put it into the experience pool. Every time a new piece of data is put into the experience pool, it is saved in the first position, and the original data is moved back in sequence. Indicates whether to end this round of training during the training process. If it is ended, ,otherwise , in the child process, when hour, ;
[0040] Step S34: In each subprocess, whenever , data is randomly extracted from the experience pool to calculate the Actor_l and Critic_l network loss functions, and the expressions are set as shown below:
[0041] L Actor ( x ) = [ min ( r ( x ) A , clip ( r ( x ) , 1 − ε , 1 + ε ) A ) + H π x l ]
[0042] L Critic ( w ) = [ 1 2 ( r t + γ V w l ( s t + 1 ) − V w l ( s t ) ) 2 ]
[0043] Among them , , For strategy The entropy of is the shear coefficient , Represents the shear function r ( x ) ∈ [ 1 − ε , 1 + ε ] , Discount factor ;
[0044] Step S35: Whenever the Actor_l and Critic_l loss functions are calculated, the gradients of the two networks are calculated and the Actor_g and Critic_g network parameters are updated. and , set the expression as shown below:
[0045]
[0046] Here and is the learning rate of the gradient descent algorithm. Each subprocess can independently update the parameters of the two networks in the main process, thereby realizing asynchronous update. Whenever the subprocess updates the parameters in the main process, it is necessary to Reassign the value to 0. , and the network parameters in the main process need to be assigned to the network in the subprocess that provides gradient information. , ;
[0047] Step S36: When , the training process ends. is the optimal strategy, and then Return to step S22 and add the parameters of deep inverse reinforcement learning The update process is realized by using a multi-process asynchronous method to accelerate the process of deep inverse reinforcement learning training.
[0048] Step S4 specifically includes the following contents:
[0049] Step S41: Consider the vehicle control problem in the high-speed scene as a Markov problem and use the tuple Indicates the integrated decision-making control of autonomous vehicles in high-speed scenarios. is the state space, is the action space of the autonomous vehicle, is the environmental state transition probability, is the immediate reward for the vehicle's action, is the discount factor. In the Markov decision process, the vehicle's goal is to pass the strategy Maximize your profits ;
[0050] Step S42: By designing multiple sub-rewards and calculating the linear combination of multiple sub-rewards to guide the vehicle to achieve integrated decision control, road progress reward , speed reward , heading angle reward , road center deviation reward , distance keeping reward , vehicle torque distribution reward , steering wheel angle reward , Vehicle Stability Reward , total reward ;
[0051] Step S43: Create a neural network that shares the Actor and Critic network parameters, thereby achieving a one-time output of an integrated control strategy by a neural network and the value function for evaluating the strategy , the loss function expression is as follows:
[0052] Loss = t [ L π ( ω ) − τ L V ( ω ) ]
[0053] The calculation like ,calculate like , are neural network parameters, is a hyperparameter;
[0054] Step S44: Update the neural network parameters by using the gradient descent algorithm, and set the expression as shown in the following formula:
[0055]
[0056] in is the learning rate hyperparameter.
[0057] The beneficial effects of the present invention are:
[0058] 1. A vehicle handling stability control strategy based on deep inverse reinforcement learning is proposed. Aiming at the difficulty of constructing the handling stability reward function in autonomous driving, the double-layer structure of upper-layer deep inverse reinforcement learning and lower-layer deep reinforcement learning is used to realize the learning of the vehicle handling stability reward function and the final vehicle handling stability control. This method not only simplifies the construction of the handling stability reward function and expands the research methods of vehicle handling stability control, but also provides important technical support for the safe driving of autonomous vehicles in highway scenarios.
[0059] 2. A multi-process asynchronous parallel training method is introduced. This method realizes parallel processing of data and rapid updating of control strategies by running agents on multiple CPU cores simultaneously. In this way, agents can learn and explore independently in different environment instances, which significantly improves training efficiency. In addition, the multi-process learning environment and algorithm are designed in detail to ensure the stability of the training process and the convergence of the strategy. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 Expert strategies for partial acquisition;
[0061] Figure 2 It is the overall error change between the expert strategy and the learning strategy during the deep inverse reinforcement learning training process;
[0062] Figure 3 The degree of approximation between the final partial learning strategy of deep inverse reinforcement learning and the expert strategy;
[0063] Figure 4 Training framework for multi-process asynchronous methods;
[0064] Figure 5 The training time difference of deep inverse reinforcement learning in different processes in multi-process asynchronous training;
[0065] Figure 6 To evaluate the vehicle handling stability under different vehicle driving conditions in multi-process asynchronous training;
[0066] Figure 7 A schematic diagram of the driving environment of a vehicle in a high-speed scenario;
[0067] Figure 8 Schematic diagram of the lane keeping task in a high-speed scenario;
[0068] Fig. 9 This is a schematic diagram of the lane changing and overtaking task in a high-speed scenario;
[0069] Fig.10 Integrate decision-making control algorithm neural network structure for high-speed scenarios;
[0070] Fig.11 To integrate the convergence change curve of the decision control algorithm in high-speed scenarios;
[0071] Fig.12 It is the state change curve of the vehicle in the lane keeping task in the high-speed scenario;
[0072] Fig.13 It is the state change curve of the vehicle in the lane changing and overtaking task in the high-speed scenario. DETAILED DESCRIPTION
[0073] In order to further understand the content of the present invention, the present invention is described in detail with reference to the accompanying drawings and embodiments. It should be understood that the embodiments are merely for explaining the present invention but not for limiting it.
[0074] The specific implementation steps are as follows:
[0075] Step S1: Obtain the expert strategy required for training;
[0076] Step S2: Using deep inverse reinforcement learning to obtain vehicle handling stability rewards;
[0077] Step S3: Use a multi-process asynchronous method to accelerate the training speed of deep inverse reinforcement learning;
[0078] Step S4: Integrated vehicle decision-making and control in high-speed complex scenarios.
[0079] In step S1, in order to obtain the required expert strategy, the following steps need to be performed:
[0080] Step S11: The original expert data is different front wheel angles , longitudinal speed speed, road friction coefficient mu, different vehicle slip rates The corresponding vehicle handling stability evaluation value , The larger the value, the better the vehicle's handling stability. Each set of different front wheel steering angles, longitudinal vehicle speeds and fixed values of road friction coefficient is a working condition. Each working condition corresponds to a In order to obtain the expert strategy in the form of probability distribution function, the original expert data needs to be preprocessed to prevent numerical overflow. Too large, causing numerical calculation overflow, in each working condition The minimum value under the current working condition needs to be subtracted. The value is set as follows:
[0081]
[0082] Step S12: Use the softmax method to calculate the Value, converted to probability distribution , and the probability sum is 1, set the expression as shown below:
[0083]
[0084] Step S13: Use parameterized normal distribution To approximate ,Right now Normal distribution , and is the mean and variance of the normal distribution. The specific approximation method is achieved by minimizing the KL divergence. The expression is set as shown in the following formula:
[0085]
[0086] Step S14: Specific calculation parameters The method is to use the following gradient descent algorithm to complete the The optimal solution of
[0087]
[0088] In the formula is the learning rate during parameter update;
[0089] Step S15: Figure 1 As shown, when the probability distribution function With the original probability distribution The peak probability between the two, at the optimal slip rate When there is an error, it is necessary to Make corrections and The mean of the probability distribution is corrected to The corresponding optimal slip rate, while keeping the variance unchanged, the probability distribution after correction The final expert strategy .
[0090] In step S2, deep inverse reinforcement learning is used to obtain vehicle handling stability rewards, which specifically includes the following steps:
[0091] Step S21: Calculate the expected features of the expert strategy and the learning strategy and , for a set of expert strategy data , set the expression as shown below:
[0092]
[0093] here Indicates Expert tracks, is the state of the vehicle, and the length of the expert trajectory is , therefore, the expected characteristic of the expert strategy is calculated as follows:
[0094]
[0095] here Discount factor , is the state characteristic, when When a certain condition is met is 1, otherwise 0, learning strategy The feature expectation of the vehicle during deep reinforcement learning training is calculated in the same way as the feature expectation of the expert strategy;
[0096] Step S22: Use deep inverse reinforcement learning to obtain vehicle handling reward. The handling reward function is approximated by a neural network, that is, ,here are the parameters of the neural network, As the input of the neural network, the reward Parameters The problem is transformed into an optimization problem, and the expression is set as shown below:
[0097]
[0098] here Reward for stability The probability value of the parameter, the above formula is equivalent to a maximum a posteriori estimation problem, which can be regarded as the likelihood function of the expert strategy data With parameter priors A combination of
[0099]
[0100] By simplifying,
[0101]
[0102] here Reward The regularization function of the parameters, , and All from a time range If we consider , then ;
[0103] Step S23: Parameters Use the gradient descent algorithm to solve the parameters and set the expression as shown below:
[0104]
[0105] By setting the learning rate , you can get the best handling stability reward .
[0106] like Figure 2 and Figure 3 As shown in the figure, in the final learning result, the error and approximation between the expert strategy and the learning strategy are evaluated; Figure 2 In the overall error change in , 200 samples were sampled The smaller the error and the sample size, the better the learning effect. Figure 3 In the figure, the actual degree of fit between some expert strategies and the learning strategy under different vehicle speed conditions is plotted.
[0107] In step S3, multi-process asynchronous training is used to accelerate deep inverse reinforcement learning. The specific steps are as follows:
[0108] Step S31: Multi-process asynchronous training makes full use of the multi-core CPU performance of a single computer and distributes the training tasks to multiple CPU cores, thereby speeding up the training speed and reducing the training time. The multi-process asynchronous training learning environment is mainly divided into two parts: the main process and the sub-process. There are multiple sub-processes, and each sub-process has two neural networks, Actor_1 strategy network and Critic_l Value Network , these two networks together form a sub-network; there is only one main process, and there are also two neural networks, Actor_g strategy network and Critic_g value network , together they form the main network. These neural networks have the same structure, but the parameter update methods are different. is the status of the vehicle, is the slip rate of the vehicle;
[0109] Step S32: Initialize the network parameters of Actor_g and Critic_g, assign the network parameters to Actor_l and Critic_l respectively, and set the number of subprocess update steps , the maximum number of training rounds , maximum capacity of experience pool , and initialize the number of action steps , the number of training rounds ;
[0110] Step S33: In each sub-process, the vehicle status at the current moment According to the strategy Select Action , calculate the vehicle state at the next moment , then through the state Calculate the reward value of the vehicle , , the data Put it into the experience pool. Every time a new piece of data is put into the experience pool, it is saved in the first position, and the original data is moved back in sequence. Indicates whether to end this round of training during the training process. If it is ended, ,otherwise , in the child process, when hour, ;
[0111] Step S34: In each subprocess, whenever When , data is randomly extracted from the experience pool to calculate the Actor_l and Critic_l network loss functions, and the expressions are set as shown below:
[0112] L Actor ( x ) = [ min ( r ( x ) A , clip ( r ( x ) , 1 − ε , 1 + ε ) A ) + H π x l ]
[0113] L Critic ( w ) = [ 1 2 ( r t + γ V w l ( s t + 1 ) − V w l ( s t ) ) 2 ]
[0114] Among them , , For strategy The entropy of is the shear coefficient , Represents the shear function r ( x ) ∈ [ 1 − ε , 1 + ε ] , Discount factor ;
[0115] Step S35: Whenever the Actor_l and Critic_l loss functions are calculated, the gradients of the two networks are calculated and the Actor_g and Critic_g network parameters are updated. and , set the expression as shown below:
[0116]
[0117] Here and is the learning rate of the gradient descent algorithm. Each subprocess can independently update the parameters of the two networks in the main process, thereby realizing asynchronous update. Whenever the subprocess updates the parameters in the main process, it is necessary to Reassign the value to 0. , and the network parameters in the main process need to be assigned to the network in the subprocess that provides gradient information. , , the specific multi-process asynchronous training framework is as follows Figure 4 As shown;
[0118] Step S36: When , the training process ends. is the optimal strategy, and then Return to step S22 and add the parameters of deep inverse reinforcement learning The update process can accelerate the deep inverse reinforcement learning training process using a multi-process asynchronous method.
[0119] exist Figure 5 The difference in training time of deep inverse reinforcement learning in different processes in multi-process asynchronous training is shown in Figure 2. As the number of sub-processes increases, the total time of deep inverse reinforcement learning gradually decreases. Figure 6 The 3D diagram of the vehicle's handling stability under different vehicle conditions is shown in the figure. The safety value represents the vehicle's handling stability. The larger the safety value, the better the vehicle performance.
[0120] In step S4, the vehicle integrated decision-making control in high-speed complex scenes is as follows:
[0121] Step S41: Consider the vehicle control problem in the high-speed scene as a Markov problem and use the tuple Indicates the integrated decision-making control of autonomous vehicles in high-speed scenarios. is the state space, is the action space of the autonomous vehicle, is the environmental state transition probability, is the immediate reward for the vehicle's action, is the discount factor. In the Markov decision process, the vehicle's goal is to pass the strategy Maximize your profits , where the high-speed scene environment of the vehicle is as follows Figure 7 As shown in the figure, the lane keeping task is divided into Figure 8 and lane change and overtaking tasks such as Fig. 9 , the width of each lane is 3.2m;
[0122] Step S42: By designing multiple sub-rewards and calculating the linear combination of multiple sub-rewards to guide the vehicle to achieve integrated decision control, road progress reward , speed reward , heading angle reward , road center deviation reward , distance keeping reward , vehicle torque distribution reward , steering wheel angle reward , Vehicle Handling Stability Award , total reward ;
[0123] Step S43: Create a neural network that shares the Actor and Critic network parameters such as Fig.10 , thereby realizing a neural network one-time output integrated control strategy and the value function for evaluating the strategy , the feature extraction of state information is realized in the hidden layer, and the loss function expression is shown as follows:
[0124] Loss = t [ L π ( ω ) − τ L V ( ω ) ]
[0125] The calculation like ,calculate like , are neural network parameters, is a hyperparameter; Fig.11 In the figure, the convergence of the algorithm during the training process is shown. As the number of training times increases, the return value (i.e., reward) obtained by the vehicle gradually increases and tends to converge, and the loss function gradually decreases and tends to converge;
[0126] Step S44: Update the neural network parameters by using the gradient descent algorithm, and set the expression as shown in the following formula:
[0127]
[0128] in is the learning rate hyperparameter;
[0129] like Fig.12 The following is a curve showing the state change of the vehicle in the lane keeping task at a speed of 30 m / s. The performance of the vehicle is specially added with the same training. Vehicle performance at the time; Fig.12 It can be seen that in order to counteract the deviation characteristics of the vehicle, The vehicle performs better when the vehicle is in a more stable position, both in terms of reducing lane centerline deviation and maintaining a low yaw rate.
[0130] like Fig.13 As shown in the figure, it is the state change curve of the vehicle in the lane changing and overtaking task. It can be seen that in order to implement the lane changing and overtaking task on the road, the vehicle has Its performance is better when When the vehicle is more likely to run off the track; When the vehicle's slip rate is maintained better, the tires are less likely to slip, and the acceleration changes more smoothly. The vehicle's slip rate is maintained worse, the tires are more likely to slip, and its acceleration changes are very drastic, which is not conducive to maintaining the vehicle's handling stability.
Claims
1. A deep reinforcement learning method for reducing vehicle hyperparameter adjustment, characterized in that: The method comprises the following steps: Step S1: Obtain the expert strategy required for training; Step S2: Using deep inverse reinforcement learning to obtain vehicle handling stability rewards; Step S3: Use a multi-process asynchronous method to accelerate the training speed of deep inverse reinforcement learning; Step S4: Integrated vehicle decision-making and control in high-speed complex scenarios.
2. A deep reinforcement learning method for reducing vehicle hyperparameter adjustment according to claim 1, characterized in that: The original expert data in step S1 are different vehicle slip rates at different front wheel steering angles, longitudinal vehicle speeds and road friction coefficients. The corresponding vehicle handling stability evaluation value , The larger the value, the better the vehicle's handling stability. Each set of different front wheel steering angles, longitudinal vehicle speeds and fixed values of road friction coefficient is a working condition. Each working condition corresponds to a When using the curve, the above original expert data needs to be converted into a form described by a probability distribution function, so the following processing is required: Step S11: To prevent Too large, causing numerical calculation overflow, in each working condition The minimum value under the current working condition needs to be subtracted. The value is set as follows: Step S12: Use the softmax method to calculate the Value, converted to probability distribution , and the probability sum is 1, set the expression as shown below: Step S13: Use parameterized normal distribution To approximate ,Right now Normal distribution , and is the mean and variance of the normal distribution. The specific approximation method is achieved by minimizing the KL divergence. The expression is set as shown in the following formula: Step S14: Specific calculation parameters The method is to use the following gradient descent algorithm to complete the The optimal solution of In the formula is the learning rate during parameter update; Step S15: When the probability distribution function With the original probability distribution The peak probability between the two, at the optimal slip rate When there is an error, it is necessary to Make corrections and The mean of the probability distribution is corrected to The corresponding optimal slip rate, while keeping the variance unchanged, the probability distribution after correction The final expert strategy .
3. A deep reinforcement learning method for reducing vehicle hyperparameter adjustment according to claim 1, characterized in that: The specific process of using deep inverse reinforcement learning to obtain vehicle handling stability rewards in step S2 is as follows: Step S21: Calculate the expected features of the expert strategy and the learning strategy and , for a set of expert strategy data , set the expression as shown below: here Indicates Expert tracks, is the state of the vehicle, and the length of the expert trajectory is , therefore, the expected characteristic of the expert strategy is calculated as follows: here Discount factor , is the state characteristic, when When a certain condition is met is 1, otherwise 0, learning strategy The feature expectation of the vehicle during deep reinforcement learning training is calculated in the same way as the feature expectation of the expert strategy; Step S22: Use deep inverse reinforcement learning to obtain vehicle handling reward. The handling reward function is approximated by a neural network, that is, ,here are the parameters of the neural network, As the input of the neural network, the reward Parameters The problem is transformed into an optimization problem, and the expression is set as shown below: here Reward for stability The probability value of the parameter, the above formula is equivalent to a maximum a posteriori estimation problem, which can be regarded as the likelihood function of the expert strategy data With parameter priors A combination of By simplifying, here Reward The regularization function of the parameters, , and All from a time range If we consider , then ; Step S23: Parameters Use the gradient descent algorithm to solve the parameters and set the expression as shown below: By setting the learning rate , you can get the best reward for stable operation .
4. A deep reinforcement learning method for reducing vehicle hyperparameter adjustment according to claim 1, characterized in that: The specific training process of step S3 using a multi-process asynchronous method to accelerate the training speed of deep inverse reinforcement learning is as follows: Step S31: Construct a multi-process asynchronous training learning environment. Multi-process asynchronous training fully utilizes the multi-core CPU performance of a single computer and distributes training tasks to multiple CPU cores, thereby speeding up training and reducing training time. The multi-process asynchronous training learning environment is mainly divided into two parts: the main process and the sub-process. There are multiple sub-processes, and each sub-process has two neural networks, Actor_l strategy network and Critic_l value network There is only one main process, and there are two neural networks, Actor_g strategy network and Critic_g value network , these neural networks have the same structure, but the parameter update methods are different, where is the status of the vehicle, is the slip rate of the vehicle; Step S32: Initialize the network parameters of Actor_g and Critic_g, assign the network parameters to Actor_l and Critic_l respectively, and set the number of subprocess update steps , the maximum number of training rounds , maximum capacity of experience pool , and initialize the number of action steps , the number of training rounds ; Step S33: In each sub-process, the vehicle status at the current moment According to the strategy Select Action , calculate the vehicle state at the next moment , then through the state Calculate the reward value of the vehicle , , the data Put it into the experience pool. Every time a new piece of data is put into the experience pool, it is saved in the first position, and the original data is moved back in sequence. Indicates whether to end this round of training during the training process. If it is ended, ,otherwise , in the child process, when hour, ; Step S34: In each subprocess, whenever , data is randomly extracted from the experience pool to calculate the Actor_l and Critic_l network loss functions, and the expressions are set as shown below: Among them , , For strategy The entropy of is the shear coefficient , Represents the shear function , Discount factor ; Step S35: Whenever the Actor_l and Critic_l loss functions are calculated, the gradients of the two networks are calculated and the Actor_g and Critic_g network parameters are updated. and , set the expression as shown below: Here and is the learning rate of the gradient descent algorithm. Each subprocess can independently update the parameters of the two networks in the main process, thereby realizing asynchronous update. Whenever the subprocess updates the parameters in the main process, it is necessary to Reassign the value to 0. , and the network parameters in the main process need to be assigned to the network in the subprocess that provides gradient information. , ; Step S36: When , the training process ends. is the optimal strategy, and then Return to step S22 and add the parameters of deep inverse reinforcement learning The update process is realized by using a multi-process asynchronous method to accelerate the process of deep inverse reinforcement learning training.
5. A deep reinforcement learning method for reducing vehicle hyperparameter adjustment according to claim 1, characterized in that: The specific implementation process of the vehicle integrated decision-making control in the high-speed complex scene in step S4 is as follows: Step S41: Consider the vehicle control problem in the high-speed scene as a Markov problem and use the tuple Indicates the integrated decision-making control of autonomous vehicles in high-speed scenarios. is the state space, is the action space of the autonomous vehicle, is the environmental state transition probability, is the immediate reward for the vehicle's action, is the discount factor. In the Markov decision process, the vehicle's goal is to pass the strategy Maximize your profits ; Step S42: By designing multiple sub-rewards and calculating the linear combination of multiple sub-rewards to guide the vehicle to achieve integrated decision control, road progress reward , speed reward , heading angle reward , road center deviation reward , distance keeping reward , vehicle torque distribution reward , steering wheel angle reward , Vehicle Stability Reward , total reward ; Step S43: Create a neural network that shares the Actor and Critic network parameters, thereby achieving a one-time output of an integrated control strategy by a neural network and the value function for evaluating the strategy , the loss function expression is as follows: The calculation like ,calculate like , are neural network parameters, is a hyperparameter; Step S44: Update the neural network parameters by using the gradient descent algorithm, and set the expression as shown in the following formula: in is the learning rate hyperparameter.
Citation Information
Patent Citations
Multi-model training method and device, electronic equipment and storage medium
CN112541570A
Composite working condition chassis integrated control method based on handling stability probability distribution
CN115525019A
Redundant vehicle control system based on tire sensor load estimation
CN116215559A
Lane keeping prediction control method and system for man-machine co-driving
CN117734725A
Techniques for navigating an autonomous vehicle based on perceived risk
GB202117359D0
Cited By
Intelligent traffic police robot control system and control method thereof
CN119296333A
Flexible job shop multi-target scheduling method and system based on preference driving
CN121119638A
