A method for reconstructing highway vehicle following behavior based on imitation learning algorithm

Through imitation learning algorithms and behavior cloning technology, it solves the problem that traditional methods are difficult to describe the specificity of vehicle following behavior, realizes the generation and application of customized car following models on different highways, and provides a highly compatible technical framework. , which can accurately reflect vehicle driving characteristics.

CN114328448BActive Publication Date: 2024-08-23CCCC SECOND HIGHWAY CONSULTANTS CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202111461186.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-01
Publication Date
2024-08-23
Estimated Expiration
2041-12-01

AI Technical Summary

Technical Problem

Traditional model-driven methods are difficult to accurately describe the specificity of vehicle following behavior in different scenarios, and the reward function in reinforcement learning is difficult to define, resulting in the behavioral characteristics learned by the agent not meeting expectations.

Method used

A highway vehicle following behavior reconstruction method based on imitation learning algorithm is adopted. Through data feature extraction and processing of highway vehicle operating data sets, the imitation learning following model is trained, and vehicle operating information in the simulation is obtained in real time to control vehicle following behavior. , use behavior cloning to implement driver behavior learning and generate a car-following model with regional characteristics.

Benefits of technology

It realizes customized input parameters on highways with different characteristics, generates accurate car-following models, reflects vehicle driving characteristics, and provides a standardized system framework with high compatibility that can automatically fit car-following models in different scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114328448B
    Figure CN114328448B
Patent Text Reader

Abstract

The present invention discloses a method for reconstructing the following behavior of a highway vehicle based on an imitation learning algorithm, comprising the following steps: taking a highway vehicle operation data set as an example, extracting and processing data features for highway operation characteristics in different regions; training a highway following behavior model using imitation learning to obtain an imitation learning following model; obtaining vehicle operation information in simulation in real time as input, and controlling the vehicle following behavior based on the output acceleration information on the basis of the imitation learning following model. The method for reconstructing the following behavior of a highway vehicle based on an imitation learning algorithm of the present invention focuses on highway scenes, provides a technical method framework for accurately reconstructing the following behavior of a vehicle based on an imitation learning algorithm, and can be transferred to highways with different characteristics by combining simulation for practical application, and can automatically fit the following models of different scenes to reflect the driving characteristics of the vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of traffic big data application, and in particular to a method for reconstructing the car-following behavior of highway vehicles based on an imitation learning algorithm. Background Art

[0002] Traffic simulation with digital twin as the core is developing rapidly, which is conducive to saving testing time and cost, avoiding the danger of road testing, etc. Therefore, how to truly describe the vehicle behavior equation (such as following, lane changing, etc.) is of far-reaching significance for the realization of traffic simulation.

[0003] Taking car-following behavior as an example, traditional model-driven methods (such as GM and IDM models) are limited by the lengthy parameter adjustment process and it is difficult to accurately describe the specificity of the vehicle-following model in different scenarios.

[0004] With the gradual deepening of big data technology in the field of transportation, emerging data-driven methods (such as machine learning, reinforcement learning, etc.) provide better ideas for describing vehicle following behavior by processing and extracting information from massive data sets.

[0005] In a large number of previous research materials, the characterization of car-following behavior based on reinforcement learning has been widely used. Algorithms are used to find the optimal strategy to maximize the cumulative reward. However, in some reinforcement learning tasks, the reward function is difficult to define, and reward feedback needs to be set manually. It is very difficult to make the behavior characteristics learned by the agent based on this reward feedback meet expectations. Summary of the invention

[0006] The purpose of the present invention is to provide a method for reconstructing the following behavior of highway vehicles based on an imitation learning algorithm, which can be migrated to highways with different characteristics, customize input parameters, and reflect vehicle driving characteristics.

[0007] To achieve the above object, the highway vehicle following behavior reconstruction method based on imitation learning algorithm designed by the present invention comprises the following steps:

[0008] Step (1), taking a highway vehicle operation data set as an example, extracting and processing data features based on highway operation characteristics in different regions;

[0009] Step (2), using imitation learning to train the highway following behavior model to obtain an imitation learning following model;

[0010] Step (3), obtaining the vehicle operation information in the simulation in real time as input, and controlling the vehicle following behavior according to the output acceleration information based on the imitation learning following model trained in step (2).

[0011] In one implementation, the step (1) further comprises the following steps:

[0012] Step (1.1), extracting data representing vehicle status and corresponding driver behavior based on a highway vehicle operation dataset;

[0013] Step (1.2), preprocessing the raw data representing the vehicle state and the corresponding driver behavior extracted in step (1.1).

[0014] In one implementation, in the step (1.2), the preprocessing includes field calculation and data filling, and the data filling uses a linear interpolation algorithm to fill in the missing data in certain frames.

[0015] In one implementation, in the step (1.1), obtaining the acceleration field in the field calculation includes the following steps:

[0016] Group the data according to the vehicle ID to obtain the trajectory data of a certain vehicle;

[0017] Sort the trajectory data in chronological order;

[0018] The vehicle acceleration is calculated using the vehicle speed and time in the trajectory data.

[0019] In one implementation, in the step (1.1), obtaining the preceding vehicle information field in the field calculation includes the following steps:

[0020] Group the data according to the sequence number or timestamp of the data frame to obtain all vehicle information within the acquisition range of a certain data frame;

[0021] Get the lane number of the i-th vehicle in a data frame, and filter out all vehicles with the same lane number in the data;

[0022] Sort all the vehicles with the same lane number that have been screened out by the order of their positions, record the first vehicle whose position is greater than the i-th vehicle as the front vehicle of the i-th vehicle, and record the ID value of the vehicle;

[0023] If there is no vehicle whose position is greater than that of the i-th vehicle, the preceding vehicle ID of the i-th vehicle is marked as a null value.

[0024] In one implementation, the data filling uses a linear interpolation algorithm to fill in the missing data in certain frames according to the following method:

[0025] Assuming the data sampling frequency is f, at the first moment t 1 and the second moment t 2 Time (t 1 <t 2) has missing values, according to n=f(t 2 -t 1 )-1 to calculate the number of time nodes n that need to be filled;

[0026] According to d i =d 1 +(d 2 -d 1 )i / n, i=1,2,...,n perform linear interpolation to complete the numerical filling;

[0027] Among them, d 1 and d 2 t 1 and t 2 The target amount corresponding to the moment.

[0028] In one implementation, the step (2) further comprises the following steps:

[0029] Step (2.1), filtering out the vehicle driving data in a stable following state from the data processed in step (1);

[0030] Step (2.2), extracting state-behavior pairs from the vehicle operation data in the stable following state screened in step (2.1) according to imitation learning;

[0031] Step (2.3), using behavior cloning to achieve driver behavior learning on highways, and obtain an imitation learning car-following model;

[0032] The stable following state includes that the front and rear vehicles are both small vehicles, the state / behavior value cannot be a null value, and the vehicle does not have any lane changing behavior within the behavior interval frame number;

[0033] The state-behavior pair refers to the mapping of states or observation vectors to agent behaviors in expert demonstrations.

[0034] In one implementation, in the step (2.2), the extraction of the state-behavior pairs comprises the following steps:

[0035] Step (2.2.1), extracting and processing data based on step (1);

[0036] Step (2.2.2), set the driver's reaction time and the data sampling interval to obtain the behavior interval frame number n a And the sampling interval frame number n s ;

[0037] Step (2.2.3), start collecting data from the 1st frame, and continue with the 1st+nth frame. s is a status frame, then the 1+n a +ns Frame is the corresponding behavior frame;

[0038] Step (2.2.4), for each state frame and the corresponding behavior frame, a vehicle ID set is obtained respectively, and the intersection of the vehicle ID set of each state frame and the vehicle ID set of the behavior frame corresponding to each state frame is regarded as a vehicle that may be extracted from the state-behavior pair, and the vehicle ID intersection is obtained;

[0039] Step (2.2.5), for the intersection of vehicle IDs obtained in step 2.2.4, extract the vehicle ID, front vehicle ID, speed, acceleration, and position of each vehicle, obtain the speed, acceleration, and position of the front vehicle according to the front vehicle ID, and obtain the vehicle status;

[0040] The vehicle state includes vehicle speed, acceleration, speed of the preceding vehicle, acceleration of the preceding vehicle, and inter-vehicle distance, and the acceleration of the vehicle is extracted from the behavior frame as the driver behavior.

[0041] In one implementation, in step (3), the vehicle operation information in the SUMO simulation is obtained in real time through the TraCI interface as the input of the imitation learning following model trained in step 2, and the vehicle following behavior is controlled according to the output acceleration information; wherein the vehicle operation information includes vehicle position, speed, and acceleration.

[0042] The beneficial effects of the present invention are as follows: the highway vehicle following behavior reconstruction method based on imitation learning algorithm of the present invention focuses on highway scenarios, provides a technical method framework for accurately reconstructing the vehicle following behavior based on imitation learning algorithm, and combines simulation for practical application; focuses on a standardized system framework, has high compatibility, can be migrated to highways with different characteristics, customizes input parameters, and performs simple data format conversion, and can automatically fit the following models of different scenarios to reflect the vehicle driving characteristics. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic flow chart of a method for reconstructing the highway vehicle following behavior based on an imitation learning algorithm provided by an embodiment of the present invention;

[0044] Figure 2 This is a schematic diagram of behavioral cloning;

[0045] Figure 3 Behavior cloning model - multi-layer neural network diagram;

[0046] Figure 4 A technical roadmap for the imitation learning car-following model;

[0047] Figure 5 It is the simulation running interface. DETAILED DESCRIPTION

[0048] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0049] The highway vehicle following behavior reconstruction method based on imitation learning algorithm of the present invention takes highway as scene, following model as object, imitation learning as method, traffic simulation software as carrier, selects imitation learning based on expert demonstration, and adopts behavior cloning method (Behavior Cloning, BC) to directly learn the mapping of state or observation vector to agent behavior (i.e. state-behavior pair) in expert demonstration. Based on this system framework, it is only necessary to convert the format and extract information of different highway vehicle operation data sets, and then customize the input parameters, generate a following model with regional characteristics, and migrate to highways in different regions. From the simulation level, it can also be used to replace the default following model of traffic simulation software (such as SUMO) to build a more realistic simulation environment.

[0050] See also Figure 1 The highway vehicle following behavior reconstruction method based on the imitation learning algorithm of the embodiment of the present invention comprises the following steps:

[0051] Step 1: Taking the highway vehicle operation data set as an example, data feature extraction and processing are performed according to the highway operation characteristics of different regions, so as to provide customized simulation input for highway vehicle operation data sets with different characteristics.

[0052] The highway vehicle following behavior reconstruction method based on imitation learning algorithm in the embodiment of the present invention is based on an open source highway vehicle operation data set. According to the operation characteristics of highways in different regions (vehicle speed, acceleration, etc.), the input parameters can be customized to generate a following model with regional characteristics and migrate it to highways in different regions.

[0053] More specifically, step 1 further includes the following steps:

[0054] Step 1.1, extracting data representing vehicle status and corresponding driver behavior based on the highway vehicle operation dataset.

[0055] Commonly used open source datasets include: NGSIM (USA), HighD (Germany), ZenData (Japan), and UbiquitousTrafficEyes (China). The data types of highway vehicle operation datasets include vehicle trajectory data, radar data, etc., which are used to extract vehicle status and corresponding driver behavior data.

[0056] The data is required to cover most (all) vehicles on the target road, and be able to directly or indirectly obtain high-precision and continuous vehicle status and driver behavior information. The details of the status and behavior information are shown in Table 1, where the necessary information that needs to be included in the data is marked with a background color. The timestamp and vehicle ID are used as identifiers and need to be unique. Fields such as speed, acceleration, and surrounding vehicle status are not required and can be obtained through calculation.

[0057] Table 1 Data field requirements

[0058]

[0059] That is, the necessary data information includes timestamp, vehicle ID, location, and lane. Timestamp and vehicle ID are identifiers that need to be unique; location and lane are vehicle states, which can be used to calculate information such as speed, acceleration, and surrounding vehicles.

[0060] Step 1.2, preprocessing the raw data representing the vehicle state and the corresponding driver behavior extracted in step 1.1.

[0061] Since the driver has reaction time, the vehicle acceleration after a certain period of time is needed to represent the driver's behavior (as shown in Table 1). Therefore, it is necessary to ensure that the data has a certain degree of continuity (for example, there is vehicle status information at time t, when the reaction time is 1, the data needs to contain the driving behavior information corresponding to time t+1). Due to limited technical capabilities, incomplete fields and missing data are inevitable during data collection and transmission. Therefore, the original data needs to be preprocessed before the state-behavior pair is extracted. The preprocessing of the original data mainly includes field calculation, data filling, etc. The specific methods are as follows:

[0062] Field calculation is mainly for data that does not directly contain key state quantities (vehicle speed, acceleration, etc.). For example, Japan's ZenData data only contains the vehicle speed field but lacks the acceleration field. The specific method for obtaining the acceleration field is as follows:

[0063] Step 1.2.1, group the data according to the vehicle ID to obtain the trajectory data of a certain vehicle;

[0064] Step 1.2.2, sort the trajectory data in chronological order;

[0065] Step 1.2.3, calculate the vehicle acceleration using the vehicle speed and time in the trajectory data.

[0066] Due to the high sampling frequency (10hz), it can be assumed that the vehicle is moving with uniform acceleration. The difference between two adjacent speed records in the trajectory data is divided by the time interval to get the vehicle's acceleration. This method is only applicable to data with high sampling frequency. The lower the sampling frequency, the greater the randomness of the vehicle's behavior between adjacent sampling intervals, and the greater the error caused.

[0067] For the last speed record, since the vehicle is subsequently out of the data collection range and its status is unknown, its acceleration is recorded as a null value.

[0068] The method for obtaining surrounding vehicle information is as follows. Taking car-following behavior learning as an example, it is necessary to obtain the ID of the vehicle in front of the target vehicle. Some data already contains this field (NGSIM, HighD, etc.). For data that does not contain this field (ZenData, UbiquitousTrafficEyes), it is necessary to extract this field. The specific method for obtaining the information of the vehicle in front is as follows:

[0069] Step 1.2.4, grouping the data according to the sequence number (or timestamp) of the data frame to obtain all vehicle information within the data collection range of a certain frame;

[0070] Step 1.2.5, for the i-th vehicle in the data frame, obtain its lane number, and filter out all vehicles with the same lane number in the data;

[0071] Step 1.2.6, sort the vehicles in the order of their positions. For the sorted vehicles, the first vehicle whose position is greater than the i-th vehicle is the preceding vehicle of the i-th vehicle, and the ID value of the vehicle is recorded;

[0072] Step 1.2.7, if there is no vehicle with a position greater than the i-th vehicle in the lane in the frame, it indicates that the i-th vehicle is the leading vehicle in the lane, there is no other vehicle in front of it, and its leading vehicle ID is marked as null.

[0073] When some frames of data are missing, the data needs to be filled. Considering that the sampling frequency of existing devices is relatively high, a linear interpolation algorithm is used. Assuming that the data sampling frequency is f, when the first moment t 1 and the second moment t 2 Time (t 1 <t 2 ) When there are missing values, the data filling algorithm is as follows: Calculate the number of time nodes that need to be filled: n = fΔt-1, Δt = t 2 -t 1 ; Linear interpolation to complete the numerical filling: d i =d 1 +(d 2 -d 1)i / n,i=1,2,...,n. Among them, d 1 and d 2 t 1 and t 2 The target amount corresponding to the moment.

[0074] Step 2: Use imitation learning to train the highway following behavior model.

[0075] Imitation learning is based on expert demonstration, directly learning the mapping of state or observation vector to agent behavior in expert demonstration. Based on the basic assumption that the strategy adopted by the expert is the best, it avoids the difficulty of defining the strategy itself in traditional reinforcement learning. Expert demonstration is represented by the letter τ, which is also called expert trajectory and is the result of continuous decision-making of the agent. Expert demonstration can be divided into several state-behavior pairs τ 1 ,τ 2 ,...,τ n (or observation action pairs). Vehicle following behavior is the most basic micro-driving behavior, describing the interaction between two adjacent vehicles in a platoon on a one-way road with restricted overtaking.

[0076] Furthermore, step 2 specifically includes the following steps:

[0077] Step 2.1, after data preprocessing in step 1, filter out vehicle operation data in a stable following state: the front and rear vehicles are both small vehicles; the state / behavior quantity cannot be a null value; the vehicle does not have any lane changing behavior within the behavior interval frame number.

[0078] Step 2.2, based on the basic principles of imitation learning, extract the state-behavior pairs of the vehicle operation data in the stable following state screened in step 2.1.

[0079] The state-behavior pair refers to the mapping of the state or observation vector to the agent behavior in the expert demonstration. For highway following model learning, the state of the highway following model mainly includes the driving state and distance layer (vehicle speed, vehicle distance, acceleration, etc.) of the vehicle itself and the vehicle in front, and the behavior of the highway following model includes the acceleration of the vehicle after a certain reaction time. The extraction process of the state-behavior pair is as follows:

[0080] Step 2.2.1, based on the data preprocessing method in step 1, perform field calculation, unit unification (such as speed unit km / h and distance unit m), value filling and other operations.

[0081] Step 2.2.2, set the core parameter values.

[0082] The core parameter values ​​include the driver's response time and the data sampling interval (simulation update time).

[0083] Since the filled time is a continuous equidistant time node, the two times are multiplied by the frequency corresponding to the data to get the behavior interval frame number n a And the sampling interval frame number n s .

[0084] Step 2.2.3, start collecting data from the first frame, take the first frame as the status frame, then the 1+nth frame a Frame is the corresponding behavior frame; the 1st+nth s is a status frame, then the 1+n a +n s The frame is the corresponding behavior frame, and so on. Table 2 shows the selection method of the state-behavior frame.

[0085] Table 2 Schematic diagram of the selection method of state-behavior frame

[0086]

[0087] In step 2.2.4, for each state frame and the corresponding behavior frame, a vehicle ID set is obtained respectively. The intersection of the vehicle ID set of each state frame and the vehicle ID set of the behavior frame corresponding to each state frame is regarded as a possible vehicle to extract the state-behavior pair, and the vehicle ID intersection is obtained.

[0088] Step 2.2.5, for the intersection of vehicle IDs obtained in step 2.2.4, extract the vehicle ID, front vehicle ID, speed, acceleration, and position for each vehicle, and obtain the speed, acceleration, and position of the front vehicle based on the front vehicle ID, and finally obtain the vehicle status.

[0089] The vehicle state includes vehicle speed, acceleration, front vehicle speed, front vehicle acceleration, and inter-vehicle distance. In the behavior frame, the acceleration of the vehicle is extracted as the driver behavior.

[0090] Step 2.3, use behavior cloning to achieve driver behavior learning on highways.

[0091] The behavior cloning (BC) model is a model that directly learns the mapping of state or observation vectors to agent behaviors in expert demonstrations. In practical applications, considering factors such as cost and safety, it is difficult to manually calibrate the actual operating results of the agent (vehicle), so behavior cloning is used to achieve highway driving behavior learning. The diagram of behavior cloning is shown in the figure. Figure 4 As shown, it mainly consists of the following two parts:

[0092] Step 2.3.1, extract the state-behavior pairs from the NGSIM high-speed data collected at the location numbered "I80" (abbreviated as NGSIM-I80).

[0093] The state is represented by speed, front vehicle speed, inter-vehicle distance and acceleration, the driver reaction time is 1s, and the sampling interval is 1s. After data processing, a total of 803,773 state-behavior pairs were extracted from the NGSIM-I80 data, and two decimal places were retained for each physical quantity.

[0094] Step 2.3.2, use neural network training to obtain the imitation learning car-following model.

[0095] The extracted state-behavior pairs are input into a neural network with three hidden layers for training, and an imitation learning car-following model is obtained. The neural network graph structure of the behavior cloning model with three hidden layers is shown in the figure below: Figure 3 As shown in the figure, the input vector dimension is 4 (speed, front vehicle speed, vehicle-to-vehicle distance and acceleration), the output vector dimension is 1 (acceleration), and the mapping relationship between the two is obtained through training. The middle layer has 16, 32, and 16 neurons respectively, and the Leaky ReLU activation function is used between layers.

[0096] The Leaky ReLU function is shown in formula (1). In the test case, α i =0.3;

[0097]

[0098] Step 3, real-time acquisition of vehicle operation information in the simulation as input, based on the imitation learning following model trained in step 2, the vehicle following behavior is controlled according to the output acceleration information.

[0099] Through the TraCI interface, the vehicle operation information in the SUMO simulation can be obtained in real time as the input of the imitation learning car-following model trained in step 2, and the vehicle's car-following behavior is controlled according to the output acceleration information. The vehicle operation information includes vehicle position, speed, and acceleration.

[0100] The specific flow chart is as follows Figure 4 As shown, step 3 specifically includes the following steps:

[0101] Step 3.1, build a simulation scene.

[0102] Establish a road network, set the initial traffic flow, and apply the imitation learning following model trained in step 2 to the vehicle control of SUMO.

[0103] In terms of road network construction, you can use the API provided by SUMO to import the existing real road network on the open source map software OpenStreetMap, or edit the road network yourself in the netedit road network editor built into SUMO to generate a .net.xml road network file.

[0104] Combined with the measured traffic data, a .rou.xml file is generated to define vehicles, traffic flows and their paths in the simulation.

[0105] By generating a .sumocfg configuration file, the .net.xml road network file and the .rou.xml vehicle, traffic flow and path files are called.

[0106] Step 3.2, controlling the vehicle following behavior based on the simulation scenario.

[0107] For vehicles running in the simulation scenario, the TraCI interface is used to obtain their running information in real time, including vehicle speed, speed of the preceding vehicle, acceleration, and vehicle-to-vehicle distance.

[0108] Similar to the need to filter the car-following behavior data in the training data set, in the actual simulation operation, it is also necessary to filter the stable car-following state through the same principle. In other cases, the default behavior model of SUMO's underlying layer is used: the Krauss car-following model and the LC2013 lane-changing model.

[0109] Based on the stable following state, the operating information extracted by TraCI is input into the imitation learning following model based on the multi-layer neural network trained in step 2, and the acceleration output by the imitation learning following model is applied to vehicle control in real time through the TraCI interface.

[0110] During the simulation, the vehicle operation status (speed, acceleration, etc.) can be continuously tracked to facilitate data analysis and model evaluation. The simulation operation interface is as follows Figure 5 The above shows and describes the basic principle and main process of the highway vehicle following behavior reconstruction method based on imitation learning algorithm of the present invention.

[0111] Compared with the prior art, the highway vehicle following behavior reconstruction method based on imitation learning algorithm of the present invention has the following advantages: Since the proportion of stable following behavior on highways is higher, the present invention focuses on highway scenes, provides a technical method framework for accurately reconstructing the vehicle following behavior based on imitation learning algorithm, and combines simulation for practical application. The highway vehicle following behavior reconstruction method based on imitation learning algorithm of the present invention focuses on a standardized system framework, has high compatibility, can be migrated to highways with different characteristics, customizes input parameters, and performs simple data format conversion, and can automatically fit the following model of different scenes to reflect the vehicle driving characteristics.

[0112] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A highway vehicle following behavior reconstruction method based on imitation learning algorithm, characterized in that: The following steps are involved: Step (1), taking a highway vehicle operation data set as an example, extracting and processing data features based on highway operation characteristics in different regions; Step (2), using imitation learning to train the highway following behavior model to obtain an imitation learning following model; Step (3), obtaining the vehicle operation information in the simulation in real time as input, and controlling the vehicle following behavior according to the output acceleration information based on the imitation learning following model trained in step (2); The step (1) further comprises the following steps: Step (1.1), extracting data representing vehicle status and corresponding driver behavior based on a highway vehicle operation dataset; Step (1.2), preprocessing the raw data representing the vehicle state and the corresponding driver behavior extracted in step (1.1); The step (2) further comprises the following steps: Step (2.1), filtering out the vehicle driving data in a stable following state from the data processed in step (1); Step (2.2), extracting state-behavior pairs from the vehicle operation data in the stable following state screened in step (2.1) according to imitation learning; Step (2.3), using behavior cloning to achieve driver behavior learning on highways, and obtain an imitation learning car-following model; The stable following state includes that the front and rear vehicles are both small vehicles, the state / behavior value cannot be a null value, and the vehicle does not have any lane changing behavior within the behavior interval frame number; The state-behavior pair refers to the mapping of the state or observation vector to the agent behavior in the expert demonstration; In the step (2.2), the extraction of the state-behavior pairs comprises the following steps: Step (2.2.1), extracting and processing data based on step (1); Step (2.2.2), set the driver's reaction time and the data sampling interval to obtain the behavior interval frame number n a And the sampling interval frame number n s ; Step (2.2.3), start collecting data from the 1st frame, and continue with the 1st+nth frame. s is a status frame, then the 1+n a +n s Frame is the corresponding behavior frame; Step (2.2.4), for each state frame and the corresponding behavior frame, a vehicle ID set is obtained respectively, and the intersection of the vehicle ID set of each state frame and the vehicle ID set of the behavior frame corresponding to each state frame is regarded as a vehicle that may be extracted from the state-behavior pair, and the vehicle ID intersection is obtained; Step (2.2.5), for the intersection of vehicle IDs obtained in step 2.2.4, extract the vehicle ID, front vehicle ID, speed, acceleration, and position of each vehicle, obtain the speed, acceleration, and position of the front vehicle according to the front vehicle ID, and obtain the vehicle status; The vehicle state includes vehicle speed, acceleration, speed of the preceding vehicle, acceleration of the preceding vehicle, and inter-vehicle distance, and the acceleration of the vehicle is extracted from the behavior frame as the driver behavior.

2. The highway vehicle following behavior reconstruction method based on imitation learning algorithm as claimed in claim 1, characterized in that: In the step (1.2), the preprocessing includes field calculation and data filling, and the data filling uses a linear interpolation algorithm to fill in the missing data in certain frames.

3. The highway vehicle following behavior reconstruction method based on imitation learning algorithm as claimed in claim 2, characterized in that: In the step (1.1), obtaining the acceleration field in the field calculation includes the following steps: Group the data according to the vehicle ID to obtain the trajectory data of a certain vehicle; Sort the trajectory data in chronological order; The vehicle acceleration is calculated using the vehicle speed and time in the trajectory data.

4. The highway vehicle following behavior reconstruction method based on imitation learning algorithm as claimed in claim 2, characterized in that: In the step (1.1), obtaining the front vehicle information field in the field calculation includes the following steps: Group the data according to the sequence number or timestamp of the data frame to obtain all vehicle information within the acquisition range of a certain data frame; Get the lane number of the i-th vehicle in a data frame, and filter out all vehicles with the same lane number in the data; Sort all the vehicles with the same lane number that have been screened out by the order of their positions, record the first vehicle whose position is greater than the i-th vehicle as the front vehicle of the i-th vehicle, and record the ID value of the vehicle; If there is no vehicle whose position is greater than that of the i-th vehicle, the preceding vehicle ID of the i-th vehicle is marked as a null value.

5. The highway vehicle following behavior reconstruction method based on imitation learning algorithm as claimed in claim 2, characterized in that: The data filling adopts a linear interpolation algorithm to fill the missing data in some frames according to the following method: Assuming that the data sampling frequency is f, when there are missing values ​​between the first time t1 and the second time t2 and t1<t2, the number of time nodes n that need to be filled is calculated according to n=f(t2-t1)-1; according to d i =d1+(d2-d1)i / n, i=1, 2, ..., n, perform linear interpolation to complete the numerical filling; Among them, d1 and d2 are the target quantities corresponding to the times t1 and t2.

6. The highway vehicle following behavior reconstruction method based on imitation learning algorithm as claimed in claim 1, characterized in that: In the step (3), the vehicle operation information in the SUMO simulation is obtained in real time through the TraCI interface as the input of the imitation learning following model trained in the step 2, and the vehicle following behavior is controlled according to the output acceleration information; wherein the vehicle operation information includes vehicle position, speed, and acceleration.

Citation Information

Patent Citations

  • Driving behavior model building method, device and system

    CN108694367A

  • Quick imitation learning method, system and equipment for robot skill learning

    CN113408621A

  • Interactive data set reproduction method and system based on simulation platform

    CN113536612A

  • Automatic driving dynamic obstacle avoidance simulation test method

    CN113641175A

  • Training saliency

    US20200097754A1