A multi-agent driving behavior modeling method based on generative adversarial imitation learning

By generating adversarial imitation learning and a two-level driver model, combined with the Markov decision-making process and the principle of information maximization, the problem of modeling driving behavior in a multi-agent environment is solved, and multi-vehicle interaction in a traffic flow environment is realized. Simulation and control of behavior improve traffic safety and efficiency.

CN118560530BActive Publication Date: 2024-10-01HANGZHOU DIANZI UNIV
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411055513.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-10-01
Estimated Expiration
2044-08-02

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively model and simulate driving behavior in a multi-agent environment, especially the horizontal and vertical driving behavior of multi-vehicle interaction in a traffic flow environment, and there are limitations in the reward function design of deep reinforcement learning and inverse reinforcement learning. , it is difficult to imitate the behavior of real drivers.

Method used

Adopting the generative adversarial imitation learning method, by building a two-level driver model, combining the Markov decision-making process and improved generative adversarial imitation learning, introducing latent variables and information maximization principles, learn driver characteristic data, and use parameter sharing and The course learns to train policies in a multi-agent environment, generating interpretable and expressive driver behaviors.

Benefits of technology

It realizes the simulation and control of multi-vehicle interactive behavior in a complex traffic flow environment, reduces the number of model parameters, can control the driving strategies of multiple vehicles at the same time, improves traffic safety and efficiency, and adapts to personalized driving of different driving styles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118560530B_ABST
    Figure CN118560530B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of intelligent driving, and discloses a multi-agent driving behavior modeling method based on generative adversarial imitation learning, including: step 1, constructing an expert data set characterizing driver behavior; step 2, constructing a lower-level vehicle dynamics model and a model-based lateral and longitudinal controller in a two-level driver model; step 3, constructing an upper-level driver characteristic data generator model in a two-level driver model, which requires improving the Markov decision process and improving generative adversarial imitation learning; step 4, sharing the strategy parameters learned by a single agent to multiple agents, and accelerating convergence by setting course learning and reward enhancement. The present invention uses the method of generative adversarial imitation learning to simulate the traffic flow environment of multiple vehicles, learn driving behavior from real-world driving history demonstration data, and thus improve traffic safety and traffic efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of intelligent driving, and more specifically to a multi-agent driving behavior modeling method based on generative adversarial imitation learning. Background Art

[0002] With the development of intelligent driving technology, driving behavior modeling is of great significance for designing safe, comfortable and personalized autonomous driving systems. At present, people do not have a high degree of trust in autonomous driving cars, and a big reason for this is that it is difficult for autonomous driving cars to achieve human-like driving. Therefore, accurately modeling the behavior of human drivers is crucial to guiding autonomous driving cars in decision-making and control. At the same time, different drivers have different driving styles, and people hope that autonomous driving cars can drive according to their own driving style, so as to achieve personalized autonomous driving.

[0003] In addition, in a traffic flow environment, it is necessary to consider the interaction between multiple vehicles, so driving behavior modeling is essentially a multi-agent problem.

[0004] Traditional driver behavior modeling usually uses a model-based controller. By establishing a vehicle dynamics model and combining safety, efficiency and other indicators during driving, a constrained optimization method is used to control the vehicle's lateral and longitudinal directions. However, this method requires manual adjustment of parameters, which is time-consuming and labor-intensive. Deep reinforcement learning, inverse reinforcement learning and other technologies provide a new idea for driving behavior modeling, using intelligent agents and simulation environments to continuously interact and try and error to optimize driving strategies. However, at present, the reward function of deep reinforcement learning is difficult to formulate, and inverse reinforcement learning limits the category of reward functions. They are often difficult to imitate real drivers. For example, patent CN 116534055A proposes a personalized anthropomorphic lane change trajectory optimization method based on the driver's personalization. By combining the basis function with driving style recognition, the maximum entropy inverse reinforcement learning model is used to determine the coefficients of the basis function. However, this method relies on the design of the basis function and has certain limitations.

[0005] Generative adversarial imitation learning does not require explicit modeling of reward functions, but generates similar behavior strategies by learning directly from expert examples. This makes generative adversarial imitation learning easier to implement. For example, patent CN 114148349A proposes a vehicle personalized following control method based on generative adversarial imitation learning to solve the technical problem that the existing following control technology based on deep reinforcement learning cannot objectively and comprehensively reflect the driver's driving habits by formulating a reward function. However, this method only studies the longitudinal control of a single vehicle, and is trained and learned in a single-agent environment. In the entire traffic scene, the interactive behavior of multiple vehicles is very important to the intelligence of a single vehicle. Therefore, how to model the driving behavior of multiple agents to better adapt to the lateral and longitudinal driving behaviors generated by the interaction of multiple vehicles in actual driving scenarios is a technical problem that needs to be solved urgently. Summary of the invention

[0006] The purpose of this application is to overcome the defects of the prior art and to use the generative adversarial imitation learning method to solve the problem of learning driving behavior from real-world driving history demonstration data in a traffic flow environment with multiple vehicles, thereby improving traffic safety and efficiency.

[0007] Specifically, the present invention proposes a multi-agent driving behavior modeling method based on generative adversarial imitation learning, and the multi-agent driving behavior modeling method based on generative adversarial imitation learning comprises the following steps:

[0008] Step 1: Construct an expert dataset that characterizes driver behavior and preprocess the dataset;

[0009] Step 2: construct the lower vehicle dynamics model in the two-level driver model and the model-based lateral and longitudinal controllers;

[0010] Step 3: Constructing the upper driver characteristic data generator model in the two-level driver model requires improving the Markov decision process and improving generative adversarial imitation learning;

[0011] Step 4: Share the policy parameters learned by a single agent to multiple agents, and accelerate convergence by setting up curriculum learning and reward enhancement.

[0012] In step 3, the following steps are also included:

[0013] Step 3.1, redefine the Markov decision process, including the state space S, the driver characteristic data space K, the state transition probability distribution P, the augmented distance d between the occupancy distribution generated by the model and the expert occupancy distribution, and the discount factor γ;

[0014] Step 3.2, improve the generative adversarial imitation learning, which combines the model-based controller and model-free imitation learning to produce interpretable and expressive driver behaviors;

[0015] Step 3.3, an improved generative adversarial imitation learning strategy for generating a driver model of a controller for controlling the model;

[0016] Step 3.4: Based on the driver's control characteristic data, latent variables are introduced to enhance strategy learning, and multiple strategies that can generate driver characteristic data reflecting individual driving style are obtained.

[0017] Furthermore, in step 1, the following steps are also included:

[0018] Step 1.1: Extract the real-world highway driving dataset NGSIM, such as following and lane changing, of real vehicles;

[0019] Step 1.2, generating trajectory data information based on driving behaviors such as following a vehicle and changing lanes, wherein the trajectory data information includes a set of state perception information and driving decision action information in a time sequence;

[0020] Step 1.3, using data indicators such as average speed, number of lane changes, and following distance as the basis for classifying a driver's style, the driver trajectory styles in the expert dataset E are divided into conservative, balanced, and aggressive types through clustering method;

[0021] Step 1.4: Place the constructed vehicle into the simulation environment.

[0022] Furthermore, in step 2, the following steps are also included:

[0023] Step 2.1, use the vehicle three-degree-of-freedom single-track model to describe the vehicle dynamics;

[0024] Step 2.2: Longitudinal control uses the intelligent driver model to generate the acceleration of the host vehicle and obtain the longitudinal controller;

[0025] Step 2.3: Lateral control The PD controller generates the front wheel steering angle of the main vehicle and obtains the lateral controller.

[0026] Furthermore, in step 4, the following steps are also included:

[0027] Step 4.1: Scale the imitation learning method to multiple agents through parameter sharing, and represent multi-agent driving as a Markov game consisting of multiple agents and an unknown reward function.

[0028] Step 4.2, generate a strategy for the driver characteristic data corresponding to each agent by defining a multi-agent curriculum as a multinomial distribution of the number of agents and gradually adjusting its parameters during the training process;

[0029] Step 4.3: Design an external penalty mechanism during agent training.

[0030] Step 4.4: Initialize the strategy of the driver characteristic data, gradually increase the proportion of controlled agents in each iteration of training, until all agents are controlled by the strategy of the driver characteristic data, generate a strategy for controlling multiple cars at the same time, and simulate the entire traffic scenario.

[0031] Furthermore, in step 3.2, the objective of the improved generative adversarial imitation learning is changed to:

[0032] ;

[0033] represents the driving control characteristic strategy generator, MC is the model-based lateral and longitudinal controller, D is the discriminator, is the driver trajectory style dataset, represents the probability distribution of the trajectory generated by MC in the state-action space, represents the probability distribution of the expert trajectory in the state-action space;

[0034] Using the Driving Control Characteristics Strategy Generator To estimate the driver's control characteristics K = ( , b, c, T, , , , , p), where represents the congestion distance, b represents the maximum acceleration, c represents the maximum deceleration, T represents the expected time interval, represents the expected speed, Represents the speed index in IDM, represents the position control gain, represents the heading control gain, and p represents the target lane index of the PD controller.

[0035] Furthermore, in step 3.4, a latent variable z is introduced to enhance policy learning, and the goal is to maximize the latent variable z and the generated trajectory The mutual information between the state-action pair (s, a) is:

[0036] ;

[0037] Represents the latent variable z and three style trajectories The mutual information between represents the entropy of the latent variable z; Indicates that in the known conservative, balanced, radical The conditional entropy of the latent variable z under the condition of .

[0038] Furthermore, in step 3.4, a variational lower bound is introduced ( ,Q) to approximate the mutual information:

[0039] ;

[0040] in, represents the variational lower bound, which is used to approximate the original mutual information , Indicates that in a given strategy The logarithmic variational posterior distribution of all possible z and corresponding actions a under the prior distribution p(z) of the latent variable Take the weighted average, is the true posterior distribution P( ) Approximation of .

[0041] Furthermore, in step 3.4, in the information maximization generative adversarial imitation learning, the objective function is modified and a mutual information regularization term is added to promote the driver characteristic data generator Learning to exploit latent variables z:

[0042] ;

[0043] This formula introduces the variational lower bound based on step 3.2 ( ,Q), where Minimization is a strategy for and the variational posterior distribution , is a hyperparameter of the information maximization regularization term, which is used to balance the importance of the imitation learning objective and the mutual information regularization term.

[0044] Furthermore, in step 4.3, the external penalty mechanism defines the penalty function as:

[0045] ;

[0046] represents the penalty function, Indicates punishment, represents the minimum distance from the ego vehicle to any other vehicle on the road, represents the shortest distance from the ego vehicle to the edge of the road, Indicates acceleration.

[0047] The beneficial effects achieved by the present invention are:

[0048] The present invention proposes a two-level hybrid driver model that integrates data-driven learning strategies and physical model-based methods. In this model, the upper layer is a deep neural network, which is responsible for generating driver characteristic data that reflects individual driving style. These data include but are not limited to maximum acceleration, reaction time, acceleration preference, etc. The lower layer uses a model-based lateral and longitudinal controller to synthesize specific driving actions, such as vehicle acceleration and steering angle.

[0049] The present invention adopts a new type of imitation learning technology, namely information maximization generative adversarial imitation learning, to deal with the potential variability in driving demonstration data. This technology introduces latent variables to characterize the driving styles of different drivers, and uses variational inference and mutual information maximization principles to learn the distribution of these latent variables. Then, by setting up curriculum learning, the training difficulty is gradually increased, thereby training a hybrid driver model with reward enhancement.

[0050] The present invention combines the parameter sharing trust domain strategy optimization method with generative adversarial imitation learning to realize imitation learning in a multi-agent environment, greatly reducing the number of parameters of the model. It can simultaneously control the driving strategies of multiple vehicles in traffic flow, thereby simulating the interactive behavior of multiple vehicles in a complex traffic flow environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 is a schematic flow chart of a multi-agent driving behavior modeling method based on generative adversarial imitation learning provided in an embodiment of the present application;

[0052] FIG2 (a) is a schematic diagram of a scene simulation provided for an embodiment of the present application;

[0053] FIG2( b ) is a diagram showing an example of a training scenario and a data set provided for an embodiment of the present application;

[0054] Figure 3 is a schematic diagram of a two-level driving behavior control provided for an embodiment of the present application;

[0055] Figure 4 This is a schematic diagram of a neural network structure generated by a strategy provided in an embodiment of the present application;

[0056] Figure 5 This is a schematic diagram of the discriminant neural network structure provided for the embodiment of the present application. DETAILED DESCRIPTION

[0057] The technical solution of the present invention is described in more detail below in conjunction with the accompanying drawings. The present invention includes but is not limited to the following embodiments.

[0058] like Figure 1 As shown, this embodiment provides a multi-agent driving behavior modeling method based on generative adversarial imitation learning, including:

[0059] Step 1: Construct an expert dataset that characterizes driver behavior and preprocess the dataset. At the same time, establish a complete driving simulation environment, as shown in Figure 2 (a), which includes road models, main vehicles, and side vehicles. This simulation environment will be used to simulate various driving scenarios and can provide realistic traffic conditions and road conditions.

[0060] Further, step 1 is implemented by:

[0061] Step 1.1: Extract the real-world highway driving dataset NGSIM, such as following and lane changing, of real vehicles;

[0062] Step 1.2, as shown in Figure 2 (b), the specific trajectory data information includes a set of state perception information S and driving decision action information A in a time sequence , Indicates the state perception information obtained by the camera at the first moment, including the X and Y values ​​of the vehicle acquisition area coordinate system and vehicle speed information, Indicates the driver's decision action information obtained at the first moment, including vehicle acceleration and steering wheel angle information. , Represents the state perception information and driver decision action information at the tth moment, and saves the trajectory data information in the trajectory expert dataset E;

[0063] Step 1.3: Use data indicators such as average speed, number of lane changes, and following distance as the basis for classifying a driver's style. Use clustering methods to classify the driver trajectory styles in the expert dataset E into conservative, balanced, and aggressive types, and save them as :

[0064] ;

[0065] is the driver trajectory style dataset, is a conservative style dataset. To balance the style dataset, It is a radical style dataset;

[0066] Step 1.4: Place the constructed vehicles into the established simulation environment. In the subsequent training process, one vehicle is selected as the main vehicle to be controlled by the agent, while the remaining vehicles are controlled by the intelligent driver model (IDM).

[0067] Step 2: construct the lower vehicle dynamics model in the two-level driver model and the model-based lateral and longitudinal controllers;

[0068] Furthermore, step 2 is implemented by:

[0069] Step 2.1: Use the vehicle three-degree-of-freedom single-track model to describe the vehicle dynamics. The specific expression is:

[0070] ;

[0071] It is the body mass. is the heading angle, is the force in the x direction on the front tire, is the force in the x direction on the rear tire, is the force in the y direction on the front tire, is the force in the y direction on the rear tire, is the moment of inertia of the vehicle, o and q represent the distances from the center of mass of the vehicle to the front and rear axles, respectively;

[0072] Step 2.2: Longitudinal control uses the intelligent driver model (IDM) to generate the acceleration of the host vehicle:

[0073] ;

[0074] is the current host vehicle speed, is the relative speed of the main vehicle to the preceding vehicle, is the distance from the main vehicle to the vehicle in front, the minimum distance from the main vehicle to the vehicle in front , is the expected time gap from the main vehicle to the position of the vehicle in front, b and c are the maximum acceleration and deceleration capabilities of the main vehicle, respectively. is the desired speed of the host vehicle, It is a speed index that describes how the acceleration decreases when the host vehicle speed approaches the desired speed. It indicates the safe distance from the vehicle in front at the current speed. Therefore, the lower acceleration control of the main vehicle can be obtained from this formula ;

[0075] Step 2.3: Lateral control The PD controller generates the front wheel steering angle of the main vehicle:

[0076] ;

[0077] in, is the lateral position of the host vehicle relative to the centerline of the target lane, is the current lane heading, is the main vehicle heading, is the position control gain, is the heading control gain, p is the target lane index, is the wheelbase. Therefore, the lower front wheel steering angle control of the main vehicle can be obtained from this formula .

[0078] Step 3: Constructing the upper driver characteristic data generator model in the two-level driver model requires improving the Markov decision process and improving generative adversarial imitation learning;

[0079] Furthermore, step 3 is implemented by:

[0080] Step 3.1. Redefine the Markov decision process (MDP) as (S, K, P, d, γ), where S is the state space, K is the driver characteristic data space, P is the state transition probability distribution, d is the augmented distance between the occupancy distribution generated by the model and the expert occupancy distribution, and γ is the discount factor. Train the driver characteristic data generation strategy to solve the reconstructed MDP and maximize the probability that the trajectory generated by the lower-level controller is the expert trajectory;

[0081] Step 3.2: Improve GAIL. The improved generative adversarial imitation learning combines the model-based controller and model-free imitation learning to produce interpretable and expressive driver behaviors.

[0082] The original goal of Generative Adversarial Imitation Learning (GAIL) is to learn a policy generator , which mimics the expert strategy GAIL has a discriminator D to distinguish between expert and non-expert behavior, and a policy generator Trying to learn policies to mimic expert behavior, the original GAIL goal is thus:

[0083] ;

[0084] in, is the strategy generator, D is the discriminator, represents the distribution of state-action pairs generated by the expert strategy, which is the real driver trajectory data obtained from step 1 ,and Indicates distribution according to expert strategy Compute state-action pairs expectations. represents the state-action pair generated by the policy generator π The distribution of Represents distribution according to strategy generator π Compute state-action pairs expectations.

[0085] In this step, the present invention improves GAIL. The improved generative adversarial imitation learning combines the model-based controller and model-free imitation learning to generate interpretable and expressible driver behaviors. Therefore, the learning objective is changed to:

[0086] ;

[0087] represents the driving control characteristic strategy generator, MC represents the model-based lateral and longitudinal controller in step 2; The real driver trajectory data in step 1; use the driving control characteristics strategy generator To estimate the driver's control characteristics K = ( , b, c, T, , , , , p), where represents the congestion distance, b represents the maximum acceleration, c represents the maximum deceleration, T represents the expected time interval, represents the expected speed, Represents the speed index in IDM, represents the position control gain, represents the heading control gain, and p represents the target lane index of the PD controller. Driving Control Characteristics Strategy Generator The position, speed, acceleration and other information of the self-vehicle and surrounding vehicles are used as state input, and the average value of the driver's control characteristics is output. and standard deviation , the driver control characteristic data is from the normal distribution N ( ), where i represents the i-th parameter in the driver’s control characteristic space K, ;

[0088] Step 3.3: Set up the generator of the generative adversarial network and the discriminator , generator is a convolutional neural network (CNN), as shown in Figure 4, including an input layer, multiple hidden layers, an activation layer, and an output layer. The dimensions of the input layer and the output layer are , suitable for processing state information from the environment and generating corresponding driver characteristics, and the hidden layer contains Neural network units, these neurons are activated by the Maxout activation function. It is also a convolutional neural network, such as Figure 5 As shown in the figure, it consists of an input layer, a hidden layer, an activation layer, and an output layer. The activation function is a sigmoid function, which is used to evaluate the probability that the state-action pair (s, a) belongs to an expert behavior.

[0089] The strategy π of the entire two-level hybrid driver model represents a combined model, strategy Includes a driving control characteristics policy generator parameterized by K and a model-based controller MC that outputs the agent’s actions ,π(a|s):=MC(a| (K|(s)); Driver characteristic data generator : S→K maps the state information to the human driver characteristic data space, MC: K→A receives the driver characteristic data parameters and outputs the lateral and longitudinal driving actions in step 2;

[0090] Discriminator During the training process, the discriminator We attempt to distinguish between non-expert behavior produced by the generator and true expert behavior. Try to deceive the discriminator , making it impossible to distinguish the generated behavior from the real behavior. This adversarial training process forces the generator The data it generates is continuously optimized to get closer to the behavioral characteristics of real drivers.

[0091] Step 3.4: In the expert dataset obtained from step 1, the driving trajectories show significant differences due to the differences in the inherent potential change factors between individuals. In order to learn the strategy of generating trajectories corresponding to these potential factors, information maximization generative adversarial imitation learning is introduced. Expert strategy is a hybrid strategy consisting of three style expert strategies, namely . Expert Track The generation process of is defined as a series of probability distributions, including the initial state ~ , latent variables z~p(z), strategy selection ~p( ∣z), action selection ~π( ∣ ) and state transfer ~P( ∣ , ). The variable z is designed as a discrete latent variable, which is used to select a specific strategy from the mixed distribution of expert strategies (the distribution is unknown and needs to be learned). Each z value corresponds to a specific driving style (such as conservative, balanced, aggressive, etc.), which is extracted from the expert dataset obtained in step 1.3, and p(z) is the known prior distribution of the latent variable z. In the traditional GAIL framework, there is no incentive strategy to separate and disentangle the variability in the data. To solve this problem, the present invention introduces a latent variable z to enhance policy learning. The goal is to maximize the correlation between the latent variable z and the generated trajectory. The mutual information between the state-action pair (s, a) is:

[0092] ;

[0093] Represents the latent variable z and three style trajectories The mutual information between z and The amount of information shared, represents the entropy of the latent variable z, that is, in the absence of information about the trajectory When any information is given, the randomness of z is Indicates that in a known trajectory Under the condition of , the conditional entropy of the latent variable z, that is, given the trajectory After obtaining the information, z still has uncertainty.

[0094] This formula indicates that mutual information captures the The amount of information about the latent variable z obtained in . However, directly calculating the mutual information requires knowing the posterior probability distribution P(z| ) , which is difficult to obtain in practice, so a variational lower bound is introduced ( ,Q) to approximate the mutual information:

[0095] ;

[0096] in, represents the variational lower bound, which is used to approximate the original mutual information , Indicates that in a given strategy The logarithmic variational posterior distribution of all possible z and corresponding actions a under the prior distribution p(z) of the latent variable Take the weighted average, is the true posterior distribution P( )In information maximization generative adversarial imitation learning, the objective function is modified and a mutual information regularization term is added to promote the driver characteristic data generator in step 3.2. Learning to exploit latent variables z:

[0097] ;

[0098] This formula introduces the variational lower bound based on step 3.2 ( ,Q), where Minimization is a strategy for and the variational posterior distribution , is a hyperparameter of the information maximization regularization term, which is used to balance the importance of the imitation learning objective and the mutual information regularization term. In the framework of generative adversarial imitation learning, the generator receives state information s as input, and combines it with the latent variable z to output the driver's control characteristic data K. These control characteristic data reflect the driving styles of different drivers, and multiple strategies that can generate driver characteristic data reflecting individual driving styles are obtained. This means that, given a state s, the policy generator will select the corresponding driving style according to the value of the latent variable z and generate the corresponding action a. These generated data can guide the lower-level lateral and longitudinal controllers to simulate the driving behaviors of different drivers, such as Figure 3 shown.

[0099] Step 4: Share the policy parameters learned by a single agent to multiple agents, and accelerate convergence by setting up curriculum learning and reward enhancement;

[0100] Furthermore, step 4 is implemented by:

[0101] Step 4.1. The goal of the present invention is to simulate not only the behavior of a single vehicle, but also the entire traffic scenario, so as to be able to create driving behaviors caused by interactions between agents. However, when evaluated in a multi-agent environment, the strategies learned through single-agent imitation cannot exhibit realistic behaviors, making them unsuitable for simulation. Parameter sharing enables the imitation learning method to be extended to multiple agents, and multi-agent driving is represented as a Markov game consisting of M agents and an unknown reward function. Combining the advantages of parameter sharing with direct policy search, an algorithm called parameter-sharing trust region policy optimization is introduced. This algorithm can generate decentralized parameter-sharing neural network strategies that exhibit emergent cooperative behaviors in the absence of explicit communication between agents, while maintaining sample efficiency and alleviating the problem of non-stationary learning dynamics. For the strategies mentioned in step 3.3 (Depend on and MC), introduce parameter θ, and form a strategy , update the policy parameters θ:

[0102] ;

[0103] in, Indicates that in the current strategy The expected value of state s and action a, c represents the current number of iterations, represents the expected value of state s, is an advantage function that quantifies the difference between the value of taking action a in response to an observation s and the baseline value estimated for s, is the KL divergence between the two policy distributions, is the step size parameter that controls the maximum change of the strategy in each optimization step;

[0104] Step 4.2: In the training of the multi-agent system, since each agent is updating its strategy, the learning environment is not stable. In order to improve the training stability, we adopt the curriculum learning method, starting from controlling a small number of agents, and gradually increase the proportion of controlled agents until all agents are controlled by our strategy. Therefore, we define a multi-agent curriculum C as a multinomial distribution of the number of agents, and gradually adjust its parameters during the training process to achieve a gradual increase in the number of controlled agents. Specifically, during the training process of step 4.1, a strategy is obtained after c iterations. ,Will for a certain number of controlled agents and after every c iterations, a fixed number of controlled agents is added, in which case C(c) is a deterministic function of iteration c;

[0105] Step 4.3. In order to provide domain-specific knowledge and improve the learning of the policy, a reward enhancement mechanism is designed to provide external penalties during the training of step 4.4, such as penalties for bad driving behaviors such as leaving the road, emergency braking, and collisions with other vehicles. These penalties help the agent avoid potential collision states. The reward enhancement penalizes three different behaviors. The first is to give a large penalty R to each vehicle involved in the collision; the second is to impose the same large penalty R on the vehicle that leaves the road; the third is to perform hard braking (acceleration less than -4m / ) is penalized by R / 4, and the penalty function is defined as:

[0106] ;

[0107] represents the minimum distance from the ego vehicle to any other vehicle on the road, represents the shortest distance from the ego vehicle to the edge of the road, represents acceleration;

[0108] Step 4.4: At the beginning of training, initialize the strategy in step 3.4 Then, in each iteration, in order to improve the training stability, the curriculum learning method in step 4.2 is adopted. At the beginning, a small number of agents are controlled to generate trajectories using the shared strategy θ, and then the proportion of controlled agents is gradually increased until all agents are controlled by the strategy Control, and use step 4.3 to provide external penalties during training, which helps the agent avoid potential collision states, and finally use the shared trust region optimization algorithm (PS-TRPO) in step 4.1 to update the policy parameters θ, and use the Adam optimization algorithm to update the parameters of the discriminator. In this way, the method of the present invention can generate a strategy for controlling multiple cars at the same time and achieve a stable simulation of the entire traffic scene.

[0109] The present invention is not limited to the above-mentioned specific implementation modes. A person skilled in the art may implement the present invention in various other specific implementation modes according to the embodiments and the disclosure of the drawings. Therefore, any design that adopts the design structure and concept of the present invention and makes some simple transformations or changes shall fall within the scope of protection of the present invention.

Claims

1. A multi-agent driving behavior modeling method based on generative adversarial imitation learning, It is characterized in that The multi-agent driving behavior modeling method based on generative adversarial imitation learning comprises the following steps: Step 1: Construct an expert dataset that characterizes driver behavior and preprocess the dataset; Step 2: construct the lower vehicle dynamics model in the two-level driver model and the model-based lateral and longitudinal controllers; Step 3: Constructing the upper driver characteristic data generator model in the two-level driver model requires improving the Markov decision process and improving generative adversarial imitation learning; Step 4: Share the policy parameters learned by a single agent to multiple agents, and accelerate convergence by setting up curriculum learning and reward enhancement; In step 3, the following steps are also included: Step 3.1, redefine the Markov decision process, including the state space S, the driver characteristic data space K, the state transition probability distribution P, the augmented distance d between the occupancy distribution generated by the model and the expert occupancy distribution, and the discount factor γ; Step 3.2, improve the generative adversarial imitation learning, which combines the model-based controller and model-free imitation learning to produce interpretable and expressive driver behaviors; Step 3.3, an improved generative adversarial imitation learning strategy for generating a driver model of a controller for controlling the model; Step 3.4, based on the driver's control characteristic data, latent variables are introduced to enhance strategy learning, and multiple strategies that can generate driver characteristic data reflecting individual driving style are obtained; In step 3.4, a latent variable z is introduced to enhance policy learning. The goal is to maximize the latent variable z and the generated trajectory The mutual information between the state-action pair (s, a) is: ; Represents the latent variable z and three style trajectories The mutual information between represents the entropy of the latent variable z; Indicates that in the known conservative, balanced, radical , , Conditional entropy of latent variable z under the condition of; In step 3.4, the variational lower bound is introduced To approximate the mutual information: ; in, represents the variational lower bound, which is used to approximate the original mutual information , Indicates that in a given strategy and the prior distribution of the latent variable Under this condition, the logarithmic variational posterior distribution of all possible z and corresponding actions a is Take the weighted average, is the true posterior distribution Approximation of .

2. According to the multi-agent driving behavior modeling method based on generative adversarial imitation learning according to claim 1, It is characterized in that In step 1, the following steps are also included: Step 1.1: Extract the following and lane-changing driving behaviors of real vehicles from the highway driving dataset NGSIM collected from the real world; Step 1.2, generating trajectory data information based on the following vehicle and lane changing driving behaviors, wherein the trajectory data information includes a set of state perception information and driving decision action information in a time sequence; Step 1.3, using the average speed, number of lane changes, and following distance data indicators as the basis for classifying a driver's style, the driver trajectory styles in the expert dataset E are divided into conservative, balanced, and aggressive types through clustering method; Step 1.4: Place the constructed vehicle into the simulation environment.

3. According to the multi-agent driving behavior modeling method based on generative adversarial imitation learning as claimed in claim 2, It is characterized in that In step 2, the following steps are also included: Step 2.1, use the vehicle three-degree-of-freedom single-track model to describe the vehicle dynamics; Step 2.2: Longitudinal control uses the intelligent driver model to generate the acceleration of the host vehicle and obtain the longitudinal controller; Step 2.3: Lateral control The PD controller generates the front wheel steering angle of the main vehicle and obtains the lateral controller.

4. According to claim 1, the multi-agent driving behavior modeling method based on generative adversarial imitation learning, It is characterized in that In step 4, the following steps are also included: Step 4.1: Scale the imitation learning method to multiple agents through parameter sharing, and represent multi-agent driving as a Markov game consisting of multiple agents and an unknown reward function. Step 4.2, generate a strategy for the driver characteristic data corresponding to each agent by defining a multi-agent curriculum as a multinomial distribution of the number of agents and gradually adjusting its parameters during the training process; Step 4.3: Design an external penalty mechanism during agent training. Step 4.4: Initialize the strategy of the driver characteristic data, gradually increase the proportion of controlled agents in each iteration of training, until all agents are controlled by the strategy of the driver characteristic data, generate a strategy for controlling multiple cars at the same time, and simulate the entire traffic scenario.

5. According to claim 1, the multi-agent driving behavior modeling method based on generative adversarial imitation learning, It is characterized in that In step 3.2, the goal of the improved generative adversarial imitation learning is changed to: ; represents the driving control characteristic strategy generator, MC is the model-based lateral and longitudinal controller, D is the discriminator, is the driver trajectory style dataset, represents the probability distribution of the trajectory generated by MC in the state-action space, represents the probability distribution of the expert trajectory in the state-action space; Using the Driving Control Characteristics Strategy Generator To estimate the driver's control characteristics ,in, represents the congestion distance, b represents the maximum acceleration, c represents the maximum deceleration, T represents the expected time interval, represents the expected speed, Represents the speed index in IDM, represents the position control gain, represents the heading control gain, and p represents the target lane index of the PD controller.

6. According to claim 1, the multi-agent driving behavior modeling method based on generative adversarial imitation learning, It is characterized in that In step 3.4, in the information maximization generative adversarial imitation learning, the objective function is modified and a mutual information regularization term is added to promote the driver characteristic data generator Learning to exploit latent variables z: ; This formula introduces the variational lower bound based on step 3.2 ,in, Minimization is a strategy for and the variational posterior distribution , is a hyperparameter of the information maximization regularization term, which is used to balance the importance of the imitation learning objective and the mutual information regularization term.

7. According to claim 4, the multi-agent driving behavior modeling method based on generative adversarial imitation learning, It is characterized in that In step 4.3, the external penalty mechanism defines the penalty function as: ; represents the penalty function, Indicates punishment, represents the minimum distance from the ego vehicle to any other vehicle on the road, represents the shortest distance from the ego vehicle to the edge of the road, Indicates acceleration.

Citation Information

Patent Citations

  • Vehicle personalized following control method based on generative adversarial imitation learning

    CN114148349A

  • Personalized driver-based anthropomorphic lane changing trajectory optimization method

    CN116534055A

  • Takeover cruising method and system based on automatic reasoning mechanism

    CN109318897A

  • Unmanned vehicle lane changing decision-making method and system based on adversarial imitation learning

    CN111483468A

  • Safe driving decision-making method for highly human-like automatic driving commercial vehicle

    CN114407931A