Driving behavior model training method, and natural driving environment reconstruction method and device

By using a driving behavior model trained based on real road environments in autonomous vehicles to predict and simulate the driving behavior of background vehicles and reconstruct the natural driving environment, it solves the difficulty of accurately testing the safety of autonomous vehicles in complex road environments with existing technology. questions, improving the accuracy and scientific nature of the test.

CN118587691AActive Publication Date: 2024-09-03TSINGHUA UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410832192.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-03
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

Existing safety tests of autonomous vehicles are difficult to accurately evaluate in real road environments with complex time and space and strong interactions, resulting in traffic accidents occurring in autonomous driving systems during actual road operations, hindering their large-scale application and commercialization.

Method used

By training the driving behavior model based on fragmented scene data collected from the real road environment, predicting the next moment state of the target vehicle, adjusting model parameters based on natural probability distribution and conditional probability distribution, reconstructing the natural driving environment, simulating the driving behavior of background vehicles, and constructing Space-time continuous testing environment.

Benefits of technology

It realizes the safety test of the behavioral capabilities of autonomous vehicles in a closed-loop, high-dimensional, complex spatio-temporal natural driving environment, improves the accuracy and scientificity of the test, and can more accurately simulate the strong interactive environment of the real world.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587691A
    Figure CN118587691A
Patent Text Reader

Abstract

The invention discloses a driving behavior model training method and a natural driving environment reconstruction method and device. A driving behavior model of a vehicle in a complex environment is trained in a data driving mode, and a time-space continuous natural driving environment is reconstructed through serial calling of the model in time and parallel calling of the model in space; a background vehicle in an automatic driving system test environment is simulated through a model driving method, real-time interaction with the tested automatic driving system is carried out, complex real road conditions can be simulated, an automobile provided with the automatic driving system is tested in a complex interaction environment, and the test efficiency is improved. The behavior of the background vehicle in the natural driving environment is effectively guaranteed to approach the behavior state of the vehicle in the real environment, and the test accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to autonomous driving technology, and more specifically, to a driving behavior model training method, a natural driving environment reconstruction method and device, and a medium. Background Art

[0002] The current development of autonomous driving faces severe safety issues. Autonomous driving cars developed by Tesla, Waymo and other companies have all encountered serious traffic accidents while operating on real roads. Frequent safety issues have fundamentally hindered the large-scale application and commercialization of autonomous driving cars.

[0003] Therefore, how to test and evaluate the safety of self-driving cars is urgent. Summary of the invention

[0004] An embodiment of the present disclosure provides a driving behavior model training method, wherein the driving behavior model is configured to output a predicted state value of a target vehicle in a scene at the next moment according to input scene data at a given moment, and the method comprises:

[0005] Based on the real road environment, multiple fragmented scenes are collected as training sets; each fragmented scene includes scene data at multiple moments, and the scene data includes: a scene map, a state value of a target vehicle and its background vehicles in the scene;

[0006] The driving behavior model is trained multiple times based on the training set; each training includes: inputting scene data into the driving behavior model, the input scene data includes a fragmented scene T selected for this training i The scene data at time T is obtained from the output of the driving behavior model. j The conditional probability distribution P of the state prediction value at time θ Based on the fragmented scene T j The scene data at time T j The state value of the target vehicle at the moment and the natural probability distribution P of the acquired state value; and, according to P and P θ The divergence between them determines the loss, and adjusts the model parameters according to the loss;

[0007] Among them, T j Time is T i The Kth moment after the moment, where K is a preset positive integer, and K is greater than or equal to 1.

[0008] An embodiment of the present disclosure further provides a vehicle state prediction method, comprising:

[0009] Inputting the scene data into a driving behavior model, wherein the driving behavior model is trained by the driving behavior model training method described in any embodiment of the present disclosure;

[0010] Obtaining a predicted state value of the target vehicle at the next moment from the output of the driving behavior model;

[0011] The input scene data includes: a scene map, and state data of a target vehicle and its background vehicles in the scene at a given moment, wherein the state data includes values ​​of state parameters of the vehicle; the target vehicle is a designated vehicle among all vehicles in the scene.

[0012] An embodiment of the present disclosure also provides a driving behavior model training device, such as Figure 3 As shown, it includes: a memory and a processor, wherein the memory stores a computer program; wherein the processor is configured to execute the computer program in the memory to implement the driving behavior model training method described in any embodiment of the present disclosure.

[0013] The above-mentioned embodiments of the present disclosure can predict the driving behavior of the target vehicle at the next moment by repeatedly training the driving behavior model based on scene data in fragmented scenes collected from real road environments, and obtain a state prediction value. The model can predict the driving behavior of the vehicle more accurately.

[0014] An embodiment of the present disclosure provides a method for reconstructing a natural driving environment, comprising:

[0015] Acquire initial scene data for reconstructing a natural driving environment, the initial scene data comprising: a scene map, and state data of a tested vehicle and N first background vehicles in the scene at time T0;

[0016] Input the initial scene data into the trained N driving behavior models respectively, specify different first background vehicles as target vehicles for different driving behavior models, and use the tested vehicle and the remaining first background vehicles as second background vehicles of the target vehicle; obtain the state prediction values ​​of the N first background vehicles at time T1 from the outputs of the N driving behavior models;

[0017] Based on the state prediction values ​​of the N first background vehicles at time T1 and the scene map, the natural driving environment of the tested vehicle at time T1 is reconstructed.

[0018] An embodiment of the present disclosure further provides a method for testing an autonomous driving system, including:

[0019] A test vehicle equipped with an autonomous driving system is tested based on the reconstructed natural driving environment to obtain test data of the test vehicle; wherein the natural driving environment is reconstructed using the natural driving environment reconstruction method described in any embodiment of the present disclosure.

[0020] An embodiment of the present disclosure further provides a natural driving environment reconstruction device, comprising: a memory and a processor, wherein the memory stores a computer program; wherein the processor is configured to execute the computer program in the memory to implement the natural driving environment reconstruction method described in any embodiment of the present disclosure.

[0021] The above-mentioned embodiments of the present disclosure can simulate the driving behaviors of various background vehicles (first background vehicles) of the tested vehicle through the trained driving behavior model, and can reconstruct a spatially continuous natural driving environment in conjunction with the scene map; and the obtained prediction results can be used as input to drive each driving behavior model multiple times, and the driving behavior prediction results of each first background vehicle at multiple subsequent moments are obtained, thereby realizing the reconstruction of the natural driving environment in the time dimension. Therefore, the embodiments of the present disclosure can construct a natural driving environment that is continuous in time and space, so that the tested autonomous driving car can perform safety tests on its behavior capabilities in a closed-loop, high-dimensional, and spatiotemporally complex natural driving environment, and then obtain the required test data.

[0022] An embodiment of the present disclosure provides a computer storage medium, in which a computer program is stored. When the computer program is executed by a processor, the driving behavior model training method described in any embodiment of the present disclosure, or the vehicle state prediction method described in any embodiment of the present disclosure, or the natural driving environment reconstruction method described in any embodiment of the present disclosure, or the automatic driving system testing method described in any embodiment of the present disclosure is implemented.

[0023] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by implementing the present application. Other advantages of the present application can be realized and obtained by the schemes described in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The accompanying drawings are used to provide an understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0025] Figure 1 A flowchart of a driving behavior model training method according to an embodiment of the present disclosure;

[0026] Figure 2A schematic diagram of a training process when a deep neural network based on a Transformer structure is used as a driving behavior model in an embodiment of the present disclosure;

[0027] Figure 3 A flowchart of a vehicle state prediction method according to an embodiment of the present disclosure;

[0028] Figure 4 This is a flow chart of a method for reconstructing a natural driving environment according to an embodiment of the present disclosure;

[0029] Figure 5 A schematic diagram of predicting the state of a first background vehicle in a test scene using a driving behavior model according to an embodiment of the present disclosure;

[0030] Figure 6 This is a flow chart of a method for testing an automatic driving system according to an embodiment of the present disclosure;

[0031] Figure 7 A flowchart of a process from data collection to autonomous driving system testing according to an embodiment of the present disclosure;

[0032] Figure 8 Schematic diagram of a driving behavior model training device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0033] The present application describes multiple embodiments, but the description is exemplary rather than restrictive, and it is obvious to those skilled in the art that there may be more embodiments and implementations within the scope of the embodiments described in the present application. Although many possible feature combinations are shown in the drawings and discussed in the specific embodiments, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.

[0034] The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features and elements disclosed in the present application may also be combined with any conventional features or elements to form a unique invention scheme. Any features or elements of any embodiment may also be combined with features or elements from other invention schemes to form another unique invention scheme. Therefore, it should be understood that any feature shown and / or discussed in the present application may be implemented individually or in any appropriate combination. Therefore, except for the limitations made according to the attached claims and their equivalents, the embodiments are not subject to other restrictions. In addition, various modifications and changes may be made within the scope of protection of the attached claims.

[0035] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of the steps described herein, the method or process should not be limited to the steps in the specific order described. As will be appreciated by those of ordinary skill in the art, other orders of steps are also possible. Therefore, the specific order of the steps set forth in the specification should not be interpreted as a limitation to the claims. In addition, the claims for the method and / or process should not be limited to the steps performed in the order written, and those skilled in the art can easily understand that these orders can be changed and still remain within the spirit and scope of the disclosed embodiments.

[0036] At present, the main framework for the safety test of autonomous vehicles is "determine the design operation domain - test based on scenarios - evaluate the results". The conventional method for the safety test of autonomous vehicles is scenario-based testing, which uses a large number of real road scenarios with limited time and uses the data of each scenario to test the autonomous driving system. However, this testing framework with scenario-level testing as the main testing method is difficult to test the behavioral capabilities of autonomous vehicles in intersections, road sections and urban environments with complex time and space and strong interactions, that is, the ability of the autonomous driving system to deal with external dangers in the driving environment.

[0037] Due to the high cost of road testing, technicians usually use simulation test environments to test self-driving cars. In conventional simulation test environments, in addition to the self-driving car being tested, there are a large number of background vehicles that interact with the tested vehicle. The conventional method of controlling background vehicles by determining traffic rules, control rules, etc., on the one hand, cannot dynamically adjust the behavior of other traffic participants in the scene according to the performance of the self-driving car during the test, resulting in the inability to simulate complex real road conditions, making it difficult to describe the strong interactive environment of the real world; on the other hand, controlling the behavior of background vehicles based on traffic rules, control rules, etc. may cause the state and behavior distribution of background vehicles to be far from the real world, making the probability of most events far from the statistical results of the real world, lacking scientificity and accuracy, and making it difficult to accurately evaluate the behavioral capabilities of self-driving cars.

[0038] The disclosed embodiment proposes a method for reconstructing a natural driving environment for use in testing an autonomous driving system. The driving behavior model is used to predict the driving behavior of each background technology vehicle, and the driving behavior model is data-driven multiple times. This can construct a natural driving environment that is continuous in time and space, so that the autonomous driving vehicle being tested can be subjected to safety tests on its behavior capabilities in a closed-loop, high-dimensional, and complex-time-space natural driving environment, thereby obtaining the required test data.

[0039] An embodiment of the present disclosure provides a flowchart of a driving behavior model training method. The trained driving behavior model can be used to reconstruct a natural driving environment. The driving behavior model is configured to output a predicted state value of a target vehicle in the scene at the next moment (the next moment after the given moment) based on the input scene data at a given moment. Figure 1 As shown, the training method may include the following steps:

[0040] S101, collecting multiple fragmented scenes based on the real road environment as a training set;

[0041] Each fragmented scene may include scene data at multiple moments. The scene data may include: a scene map, and state values ​​of a target vehicle and its background vehicles in the scene. Multiple fragmented scenes may form a training data set. Scene data at multiple moments in the same fragmented scene may use the same scene map.

[0042] S102, training the driving behavior model multiple times based on the training set;

[0043] Each training may include: inputting scene data into the driving behavior model, the input scene data including a fragmented scene T selected for this training i The scene data at time T is obtained from the output of the driving behavior model. j The conditional probability distribution P of the state prediction value at time θ Based on the fragmented scene T j The scene data at time T j The state value of the target vehicle at the moment and the natural probability distribution P of the acquired state value; and, according to P and P θ The divergence between determines the loss, and adjusts the model parameters according to the loss. j Time is T i The Kth moment after the moment, K is a preset positive integer, K is greater than or equal to 1. P and P θ The divergence between them can be, for example, KL divergence (Kullback-Leibler Divergence) but is not limited thereto.

[0044] When the driving behavior model is trained in the embodiment of the present disclosure, each time a segmented scene is selected for training, T i The scene data at the time can be the scene data at any other time in the fragmented scene except the scene data at the last time. The scene data selected for inputting the model during multiple trainings can come from different fragmented scenes or from different times of the same fragmented scene. j The conditional probability distribution P of the state prediction value at time θAs the output during model training, based on T j The conditional probability distribution P of the state prediction value at time θ The target vehicle can be directly determined at T j The state prediction value at the moment, for example, for each state parameter, the state prediction value with the highest probability can be output as the final state prediction value of the state parameter. After training, the driving behavior model can only output the state prediction value at the next moment. The state value of the vehicle can have multiple values, such as speed, acceleration, etc., which are detected by sensors and can be considered as true values. The above T j The state value of the target vehicle at time t is a sequence obtained from the training data, and the natural probability distribution P is the natural probability distribution of the sequence.

[0045] In an exemplary embodiment, the scene data may also include: scene type, shape, size and type of vehicle, and weather conditions. Since the above information takes into account a series of data that may affect driving behavior in the real environment, these data can be combined with the scene map. Figure 1 It serves as static data of the scene and as input data when training and using the driving behavior model. The scene data containing the above information can make the state prediction value output by the model closer to the state value of the vehicle in the real environment. In addition, for different scene types, such as highway sections, ordinary urban roads, mountain roads, etc., this application can perform data collection and model training separately.

[0046] Different people have different driving habits, and these driving habits can also be divided into several types, some are more aggressive, some are more stable, and the corresponding risk factors are also different. In the embodiment of the present disclosure, for different testing needs, drivers with different driving habits can be selected to drive the collection vehicle to collect data during the training phase. For example, in one example, during training, a driver with more aggressive driving habits can be selected to drive the collection vehicle. When the trained driving behavior model is used for testing the autonomous driving system, it is used to predict the driving behavior of the background vehicle of the tested vehicle with the autonomous driving system, which can pose a greater challenge to the autonomous driving system. However, the present disclosure is not limited to this.

[0047] The disclosed embodiment can train the driving behavior model multiple times through scene data in fragmented scenes collected from real road scenes, predict the driving behavior of the target vehicle at the next moment through the model, obtain the state prediction value, and determine the loss of the model based on the natural probability distribution of the state value of the target vehicle and the conditional probability distribution of the state prediction value, and then adjust the model parameters based on the loss. Since the training data all come from the real road environment, the model can simulate the vehicle driving behavior more accurately and accurately predict the state of the target vehicle at the next moment.

[0048] In an exemplary embodiment, the multiple fragmented scenes in the present application can be obtained based on the data collected by the on-board sensors on the vehicle in the design operation domain (ODD). The design operation domain here can be associated with the scenario type. According to the type of test scenario of the autonomous driving system vehicle, the design operation domain with this type of scenario can be selected to collect data, so as to train a driving behavior model that is more suitable for the test requirements. Among them, the state value of the target vehicle and its background vehicles is the true value of the state parameters of the vehicle, and the state parameters may include any one or more of speed, acceleration, position and posture. In other words, the fragmented scene can be obtained by collecting real road data of the vehicle within a certain area and within a certain period of time.

[0049] For example, according to the design operation domain, key intersections and sections are selected to determine the data collection area of ​​the driving behavior model, and roadside sensors are set up at these intersections and sections, or sensors are deployed on manually driven vehicles for data collection to obtain the original natural driving data within the design operation domain. The original natural driving data is then cleaned and calibrated. Data cleaning can include deleting invalid data (error data caused by sensor failure, etc.), and data calibration can be to coordinate the original data information. Through data cleaning and calibration, a natural driving data set can be obtained. (Where: X R,i is a data instance, N is the total number of data instances in the natural driving dataset, and R can represent a certain scene type. Serves as the scene data source for the training model in this application.

[0050] In some embodiments, the data collected by the vehicle-mounted sensor can be used as the standard mode. The data instance obtained after data cleaning and calibration is used as a fragmented scene. The specific format of the scene is as follows:

[0051] Collect the state values ​​of the vehicle and its surrounding vehicles at multiple times. The interval between adjacent moments is a time step Δt. Δt is a pre-set parameter. The state values ​​of all vehicles at each moment can be combined with the scene map to form the scene data at that moment.

[0052] Collect map information around the vehicle, which can be represented as a set of M points. Each point has information such as location and category (such as double yellow line, solid white line), which may affect the driving behavior of the vehicle in the scene. The map information can be collected from external sources such as map service providers or municipal departments.

[0053] In an exemplary embodiment, the natural probability distribution of the vehicle state values ​​at multiple moments in the fragmented scene can be described as: P(X)=P(X0, XΔt , ..., X T , ...), where Δt is the length of the time step, that is, the duration between two adjacent moments. Here, it is assumed that the initial moment is 0, and the fragmented scene has a total length of T time steps. The subsequent moments after the initial moment can be expressed as: Δt, 2Δt, ..., T-ΔT, T.

[0054] In order to train the model, the vehicle state prediction value predicted by the driving behavior model can be fitted based on the collected vehicle state value, and the natural probability distribution of the vehicle state value in the fragmented scene can be equivalent, that is, P(X) = P(X0)P(X Δt |X0)...P(X T |X0,...,X T-Δt ). Taking the target vehicle as an example, it can be used The natural probability distribution of the state value of the target vehicle at time T in the corresponding fragmented scene, represents the state value of the target vehicle at time T, X0,...,X T-Δt represents the state value of the target vehicle and its background at the time before time T. The conditional probability distribution of the state prediction value of the target vehicle at time T output by the driving behavior model can be expressed as in Represents the state prediction value of the target vehicle at time T. In actual training, it is not necessary to use the state values ​​of the target vehicle and its background at all times before time T as model input to estimate the state prediction value of the target vehicle at time T. In one example, a time before time T (T-Δt) can be used as a given time, and the state values ​​of the target vehicle and its background vehicles at the given time can be used as input to the driving behavior model. From the model output, the state prediction value of the target vehicle at the next time (T) and its conditional probability distribution can be obtained. In some examples, the state values ​​of the target vehicle and its background vehicles at more than two moments can also be used as the input data of the model. For example, the state values ​​of the target vehicle and its background vehicles at a given moment (T-Δt) and the previous moment (T-2Δt) can be used as the input data of the model. The state prediction value of the target vehicle at the next moment (T) and its conditional probability distribution can be obtained from the model output.

[0055] In an exemplary embodiment, T j Time is T iThe first moment after the moment. That is, when the model is trained once, only one driving behavior model currently being trained is driven once based on the scene data at a given moment in the training set to obtain the state prediction value of the target vehicle at the next moment. At this time, the collection vehicle in the scene can be designated as the target vehicle, which is a vehicle equipped with on-board sensors to collect training data. The state value of the collection vehicle can be read directly from the driving system, which is more accurate, and the driver of the collection vehicle can be selected as needed, such as a driver with a certain type of driving habits can be selected to drive the collection vehicle, so as to facilitate the training of the desired driving behavior model.

[0056] In an exemplary embodiment, T j Time is T i The K'th moment after the moment, K' ≥ 2. Inputting the scene data into the driving behavior model is to convert a fragmented scene T selected for this training into i The scene data at each moment is input into M driving behavior models respectively, and different target vehicles are assigned to different driving behavior models, where M is the total number of vehicles in the scene data.

[0057] Among them, the target vehicle in the scene is obtained from the output of the driving behavior model. j The conditional probability distribution P of the state prediction value at time θ , which may include:

[0058] Step 1: Get the outputs of M driving behavior models for all M vehicles in the scene at T. i+1 The predicted value of the state at the moment;

[0059] Step 2: Determine whether all vehicles in the scene have been obtained at T j-1 The predicted state value at the moment, if yes, execute step 4, otherwise execute step 3;

[0060] Step 3: Input the latest state prediction value of each vehicle in the scene and the scene map of the fragmented scene into one of the driving behavior models respectively, and specify different target vehicles for different driving behavior models; obtain the state prediction value of all vehicles in the scene at the next moment from the output of the driving behavior model, and return to step 2;

[0061] Step 4: Move all vehicles in the scene to the T j-1 The state prediction value at time T and the scene map of the fragmented scene are input into a driving behavior model, and the collected vehicle in the scene is taken as the target vehicle; the target vehicle at T is obtained from the output of the driving behavior model. j The conditional probability distribution P of the state prediction value at time θ ;

[0062] The adjusting the model parameters according to the loss is to synchronously adjust the parameters of all driving behavior models used in training according to the loss.

[0063] In an example of this embodiment, it is assumed that a fragmented scene includes scene data at five moments, T1-T5, and there are five vehicles in the scene. When training the driving behavior model once, the scene data at moment T1 is used as the input of the five driving behavior models. The state prediction values ​​of all vehicles in the scene at moment T2 can be obtained from the output of the five driving behavior models. Then, the state prediction values ​​of all vehicles in the scene at moment T2 and the scene map are input into the five driving behavior models, and the state prediction values ​​of all vehicles in the scene at moment T3 can be obtained. Similarly, after the state prediction values ​​of all vehicles in the scene at moment T4 are obtained from the model output, the collection vehicle can be taken as the target vehicle, and the state prediction values ​​of all vehicles at moment T4 and the scene map are input into one of the driving behavior models. The state prediction value of the target vehicle (such as the collection vehicle) at moment T5 is obtained from the output of the driving behavior model. At this time, the conditional probability distribution P of the state prediction value of the target vehicle at moment T5 is used. θ The loss of this training is calculated with the natural probability distribution P of the state value of the target vehicle at time T5 in the training set. The parameters of all five driving behavior models are updated synchronously based on the calculated loss.

[0064] In this embodiment, in a training process, the driving behavior model is driven multiple times using the scene data or prediction results to obtain the state prediction values ​​of the vehicle at multiple moments. When calculating the loss, the acquisition vehicle can be used as the target vehicle, and only the target vehicle at T is considered. j The conditional probability distribution P of the state prediction value at time θ The divergence between the natural probability distribution P of the state value and the previous moments P θ The divergence between T and P can also be reflected in j Time P θ and P. However, the embodiment of the present disclosure is based on P θ The divergence between P and T does not mean that only the target vehicle can be used in T j The conditional probability distribution P of the state prediction value at time θ The loss is calculated based on the natural probability distribution P of the state value. For example, in other examples, the loss can be calculated based on T i+1 Time to T j The loss is calculated by taking the average or cumulative value of the divergence between the conditional probability distribution of the target vehicle's state prediction value at the moment and the natural probability distribution of the state value.

[0065] During a training process of this embodiment, if one or more vehicles travel outside the preset target area at a certain moment, such as being too far away from the collection vehicle, the status of these vehicles at subsequent moments may no longer be predicted, and the number of driving behavior models used may be reduced accordingly.

[0066] In an exemplary embodiment, the driving behavior model is a deep neural network model, and the deep neural network model may adopt a Transformer architecture. However, the present disclosure is not limited thereto, and other machine learning models may also be used.

[0067] In an exemplary embodiment, the training method may further include: when the training of the driving behavior model meets a preset convergence condition, verifying the prediction accuracy of the driving behavior model based on a verification set, and obtaining a trained driving behavior model after the verification passes. The convergence condition may include: according to P and P θ The loss determined by the divergence between them is less than a preset loss threshold. The validation set here can be a fragmented scene collected based on a real road environment, or it can be a validation set used in some standards, and the present disclosure is not limited to this. If the convergence condition is not met, the training continues based on the scene data of the subsequent moment of the current fragmented scene or the scene data in the new fragmented scene, and the scene data input for each training is different. If the convergence condition is still not met after reaching the set maximum number of training times, the structure or initialization parameters of the model can be adjusted and the training can be restarted.

[0068] The Transformer architecture is a deep learning architecture that can include modules such as encoders and decoders. Specifically, they can work closely together through the attention mechanism. The encoder processes the input of the source language (such as the relevant data of the target vehicle and the surrounding background vehicles) and generates a semantic vector, and the decoder uses the semantic vector to generate the output of the target language (the state prediction value of the target vehicle).

[0069] Figure 2 A schematic diagram of the training process of the driving behavior model in the embodiment of the present disclosure using a deep neural network based on the Transformer architecture is shown. The driving behavior model may include: a first mapping module, a second mapping model, an encoding module, and a decoding module. Among them:

[0070] The first mapping module 10 is configured to map the input scene data into latent variables (corresponding feature vectors), and the input scene data includes the state data of all vehicles in the scene at a given time and the scene map; the vehicle state data here can be the collected vehicle state value, the vehicle state prediction value output by the model, or other values ​​of the state parameters, such as the set value, which is not limited to the present disclosure.

[0071] The second mapping module 20 is configured to map the state data of the target vehicle in the input scene data into a latent variable; for all the vehicles in the scene, any one of them can be designated as the target vehicle.

[0072] The Transformer encoding module 30 is configured to encode (feature extraction) the latent variables output by the first mapping module and output a semantic vector (context representation);

[0073] The Transformer decoding module 40 is configured to decode the semantic vector output by the encoding module, output the state prediction value of the target vehicle at the next moment, and also output the conditional probability distribution of the state prediction value of the target vehicle at the next moment during training.

[0074] The above neural network model sets up two mapping modules, one of which is used to convert the sequence of state data of all vehicles into latent variables for encoding, and the other mapping is used to specifically convert the state data of the target vehicle into latent variables for encoding. In this way, the target vehicle can be specified and the simulation prediction of the target vehicle can be more effective.

[0075] The driving behavior model training method of the above-mentioned embodiment of the present disclosure can be based on a training set collected from a real road environment, and can use a data-driven approach to train the driving behavior model of a vehicle in a complex environment, thereby effectively ensuring that the behavior of background vehicles in a natural driving environment is close to the behavior state of vehicles in a real environment.

[0076] Figure 3 : is a flow chart of a vehicle state prediction method according to an embodiment of the present disclosure. This embodiment predicts the vehicle state based on the above-mentioned trained driving behavior model. The prediction method may include the following steps:

[0077] S301, inputting scene data into a driving behavior model, wherein the driving behavior model is trained by the driving behavior model training method of any embodiment of the present disclosure;

[0078] Among them, the input scene data includes: a scene map, and the state data of the target vehicle and its background vehicles in the scene at a given time, and the state data includes the value of the vehicle's state parameter; as mentioned above, the value of the state parameter here can be the value obtained by detection, that is, the state value, or it can be the state prediction value output by the model, or it can be the initial value set for the background vehicle in the test, etc., and the present disclosure is not limited to this.

[0079] S302, obtaining a predicted state value of the target vehicle at the next moment from the output of the driving behavior model, wherein the target vehicle is a designated vehicle among all vehicles in the scene.

[0080] Different vehicles can be designated as target vehicles in different application scenarios. For example, when training a driving behavior model, the captured vehicle in the scene can be designated as the target vehicle, or a background vehicle of the captured vehicle can be designated as the target vehicle; during the test of the autonomous driving system, the background vehicle of the tested vehicle can be designated as the target vehicle to use the driving behavior model to simulate the driving behavior of the background vehicle.

[0081] When conducting simulation tests on an autonomous driving system, the vehicle equipped with the autonomous driving system to be tested may be referred to as the tested vehicle, and the other vehicles in the test scene except the tested vehicle are the background vehicles of the tested vehicle, in order to distinguish them from the background vehicles of the target vehicle in the driving behavior model. In this embodiment, the background vehicles of the tested vehicle in the test scene are referred to as the first background vehicles, and the background vehicles of the target vehicle specified in the scene data input into the driving behavior model are referred to as the second background vehicles. It is easy to understand that during testing, the first background vehicle can be designated as the target vehicle that needs to be predicted by the driving behavior model, and the tested vehicle can be used as the second background vehicle of the target vehicle.

[0082] The embodiments of the present disclosure are not limited to use in the testing of autonomous driving systems. In situations where the tested vehicle itself is tested, such as in a collision test, the natural driving environment can also be reconstructed based on the method of the embodiments of the present disclosure.

[0083] An embodiment of the present disclosure provides a method for reconstructing a natural driving environment, which reconstructs a natural driving environment based on a trained driving behavior model. Figure 4 As shown, the reconstruction method includes:

[0084] S401, obtaining initial scene data for reconstructing a natural driving environment.

[0085] The initial scene data may include: a scene map, and state data of a tested vehicle and N first background vehicles in the scene at time T0, that is, the total number of vehicles in the initial scene is N+1. The input initial scene data may be collected from a real road environment, or may be data set by a tester through a simulation system during a simulation test, or data automatically generated by a simulation system, etc.

[0086] S402, input the initial scene data into the trained N driving behavior models respectively, specify different first background vehicles as target vehicles for different driving behavior models, and use the tested vehicle and the remaining first background vehicles as second background vehicles of the corresponding target vehicles, and obtain the state prediction values ​​of the N first background vehicles at time T1 from the outputs of the N driving behavior models.

[0087] This step takes time T0 as a given time, inputs the scene data at the given time into the driving behavior model, and obtains the state prediction value of the target vehicle at the next time (ie, time T1).

[0088] S403, reconstructing the natural driving environment of the tested vehicle at time T1 based on the state prediction values ​​of the N first background vehicles at time T1 and the scene map.

[0089] For example, the vehicles in the initial scene include: the tested vehicle and 10 first background vehicles. Then, 10 driving behavior models correspond to 10 first background vehicles respectively, and 1 first background vehicle is designated as the target vehicle for each of the 10 driving behavior models. For example, for the first driving behavior model, when the first background vehicle A is designated as the target vehicle, the tested vehicle and the other 9 first background vehicles are used as the second background vehicles in the first driving behavior model. Similarly, for the second driving behavior model, when the first background vehicle B is designated as the target vehicle, the tested vehicle and the other 9 first background vehicles (including the first background vehicle A) are used as the second background vehicles in the second driving behavior model, and so on.

[0090] By simulating all the first background vehicles in the test scene based on the simulation, the natural driving environment can be actually reconstructed in a continuous space. This embodiment can also use the state prediction value of the first background vehicle output by the driving behavior model at the previous moment and other data to drive the driving behavior model multiple times, thereby reconstructing the natural driving environment in a continuous time.

[0091] In an exemplary embodiment, the present application can be implemented in the following manner according to the reconstructed T l Reconstruction of the natural driving environment at every moment l+1 Time (T l The natural driving environment at the next moment (the moment after the moment), where l is an integer greater than or equal to 1:

[0092] Get T l The scene data at time T includes: l Status data at time T, N' first background vehicles l State prediction value and scene map at the moment.

[0093] T l The scene data at the time instant are input into N' driving behavior models respectively. Different first background vehicles are designated as target vehicles for different driving behavior models, and the tested vehicle and the remaining first background vehicles except the target vehicle are all used as the second background vehicles of the target vehicle. The N' first background vehicles at T are obtained from the outputs of the N' driving behavior models. l+1 The state prediction value at time T is based on the N' first background vehicles at Tl+1 the predicted state value at a moment and the scenario map, and reconstruct the natural driving environment of the vehicle under test at time T l+1 moment.

[0094] During the test, some background vehicles may drive to a position too far from the vehicle under test, that is, out of the area that needs to be concerned. At this time, these background vehicles can no longer be simulated. At this time, the number N' of the first background vehicles in the subsequent driving simulation is < N, so as to simplify the calculation. However, in other embodiments, all the first background vehicles can also be simulated all the time, or when no first background vehicle drives out of the area that needs to be concerned, N' = N.

[0095] Figure 5 The process schematic diagram shows the process of predicting the states of 10 first background vehicles simultaneously using 10 trained driving behavior models. At time T l the state data of each target vehicle (i.e., each first background vehicle) and the second background vehicles (including the vehicle under test) around it at a moment are respectively input into the corresponding driving behavior model to predict the states of each target vehicle at time T l+1 moment, and the predicted state values of each target vehicle at time T l+1 are obtained. Then, based on the predicted state values of the 10 first background vehicles at time T l+1 and the scenario map, the natural driving environment of the vehicle under test at time T l+1 moment is reconstructed.

[0096] In an example of this embodiment, the N driving behavior models are all driving behavior models trained by using the driving behavior model training method of the present disclosure embodiment. Among them, the above state data may include the values of the state parameters of the vehicle, and the state parameters include any one or more of speed, acceleration, position, and attitude. The values of the state parameters in the state data may be the state values in the real environment, the state prediction values output by the model, or the values set or generated by the simulation system. The present disclosure does not limit this. However, in another example of this embodiment, when reconstructing the spatio-temporally continuous natural driving environment, the driving behavior model used may not be the driving behavior model trained by using the driving behavior model training method of the present disclosure embodiment, and other driving behavior models may be used, and the spatio-temporally continuous natural driving environment can still be reconstructed.

[0097] The natural driving environment reconstruction method of the above-mentioned embodiment of the present disclosure reconstructs a natural driving environment that is continuous in time and space by serially calling the driving behavior model in time and parallelly calling it in space; the background vehicles in the automatic driving system test environment are simulated by a model-driven method, and real-time interaction is performed with the automatic driving system under test, so as to simulate complex real road conditions and test the car equipped with the automatic driving system in a complex interactive environment, effectively ensuring that the behavior of the background vehicles in the natural driving environment is close to the behavior state of the vehicles in the real environment, thereby improving the accuracy of the test.

[0098] An embodiment of the present disclosure also provides a method for testing an autonomous driving system. Figure 6 As shown, the test method includes:

[0099] Step S601, reconstructing a natural driving environment, wherein the natural driving environment is reconstructed using a natural driving environment reconstruction method according to any embodiment of the present disclosure;

[0100] Step S602: testing a tested vehicle equipped with an automatic driving system based on the reconstructed natural driving environment to obtain test data of the tested vehicle.

[0101] See also Figure 7 . A schematic diagram showing the overall process of an embodiment of the present disclosure from data collection in a real environment to the testing process of an autonomous driving vehicle, including:

[0102] The first step is data collection;

[0103] This step can collect vehicle and road related data based on roadside sensors or vehicle-mounted sensors.

[0104] The second step is to obtain the natural driving dataset;

[0105] This step can process the collected data, which may include: cleaning invalid data, unifying data formats, aligning data coordinate systems, etc., to obtain a natural driving data set.

[0106] The third step is to obtain the scene data of the fragmented scene;

[0107] In this step, the data in the natural driving data set can be fragmented to obtain scene data of multiple fragmented scenes, and each fragmented scene may include scene data at multiple moments.

[0108] The fourth step is to learn the natural driving distribution based on the driving behavior model;

[0109] This step uses the scene data of the fragmented scene as input to train the driving behavior model so that it learns the natural driving distribution, such as simulating the driving behavior of the collected vehicle, so that the conditional probability distribution of the state prediction value of the target vehicle at the next moment output by the model is close to the natural probability distribution of the state value of the target vehicle at the next moment.

[0110] Step 5: Perform distribution consistency assessment;

[0111] In this step, a part of the fragmented scenes in the natural driving data set can be used as a validation set to evaluate the distribution consistency of the trained driving behavior model. For example, the KL divergence between the natural probability distribution of the state value of the target vehicle at a certain moment and the conditional probability distribution of the state prediction value at that moment can be used as an indicator of distribution consistency for evaluation.

[0112] Step 6: If the evaluation is passed and the training is completed, the driving behavior model can be used to reconstruct the natural driving environment of the tested vehicle through simulation testing of the autonomous driving system based on the test platform;

[0113] Step 7: Get the test results;

[0114] Step 8: Evaluate the behavioral capabilities of the autonomous driving system based on the test results.

[0115] Therefore, the present application utilizes a data-driven approach to obtain a driving behavior model of a vehicle in a complex environment, and reconstructs a natural driving environment that is continuous in time and space through serial calls in time and parallel calls in space of the model. The background vehicles in the natural driving environment are used to interact in real time with the autonomous driving system under test through a model-driven approach, simulating complex real road conditions, and testing autonomous vehicles in a complex interactive environment, effectively ensuring that the behavior of background vehicles in the natural driving environment is close to the behavior state of vehicles in the real environment, thereby improving the accuracy of the test.

[0116] An embodiment of the present disclosure also provides a driving behavior model training device, such as Figure 8 As shown, it includes: a memory 50 and a processor 60, wherein the memory 50 stores a computer program; wherein the processor 60 is configured to execute the computer program in the memory to implement the driving behavior model training method described in any embodiment of the present disclosure.

[0117] An embodiment of the present disclosure also provides a vehicle state prediction device, see Figure 8 , comprising: a memory and a processor, wherein the memory stores a computer program; wherein the processor is configured to execute the computer program in the memory to implement the vehicle state prediction method described in any embodiment of the present disclosure.

[0118] An embodiment of the present disclosure also provides a natural driving environment reconstruction device, see Figure 8 , comprising: a memory and a processor, wherein the memory stores a computer program; wherein the processor is configured to execute the computer program in the memory to implement the natural driving environment reconstruction method described in any embodiment of the present disclosure.

[0119] An embodiment of the present disclosure also provides a testing device for an autonomous driving system. Figure 8 , comprising: a memory and a processor, wherein the memory stores a computer program; wherein the processor is configured to execute the computer program in the memory to implement the testing method of the autonomous driving system described in any embodiment of the present disclosure.

[0120] An embodiment of the present disclosure also provides a storage medium, on which computer executable commands are stored, and the computer executable commands are used to execute the driving behavior model training method, or the vehicle state prediction method, or the natural driving environment reconstruction method, or the automatic driving system testing method as described in any one of the above embodiments.

[0121] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term "computer storage medium" includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0122] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0123] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, and replace the above embodiments within the scope of the present application.

Claims

1. A method for training a driving behavior model, wherein the driving behavior model is configured to output a predicted state value of a target vehicle in a scene at the next moment based on input scene data at a given moment. include: Based on the real road environment, multiple fragmented scenes are collected as training sets; Each fragmented scene includes scene data at multiple moments, and the scene data includes: a scene map, state values ​​of a target vehicle and its background vehicles in the scene; The driving behavior model is trained multiple times based on the training set; each training includes: inputting scene data into the driving behavior model, the input scene data includes a fragmented scene T selected for this training i The scene data at time T is obtained from the output of the driving behavior model. j The conditional probability distribution P of the state prediction value at time θ Based on the fragmented scene T j The scene data at time T j The state value of the target vehicle at the moment and the natural probability distribution P of the acquired state value; and, according to P and P θ The divergence between them determines the loss, and adjusts the model parameters according to the loss; Among them, T j Time is T i The Kth moment after the moment, where K is a preset positive integer, and K is greater than or equal to 1.

2. The method according to claim 1, Features: The multiple fragmented scenarios are obtained based on data collected by onboard sensors on the vehicle in the designed operation domain; The state value is the real value of the state parameter of the vehicle, and the state parameter includes any one or more of speed, acceleration, position and posture.

3. The method according to claim 2, Features: T j Time is T i The first moment after moment; The inputting of scene data into the driving behavior model is to input a fragmented scene T selected for this training into the driving behavior model. i The scene data at the moment is input into one of the driving behavior models, and the collected vehicle in the scene is taken as the target vehicle.

4. The method according to claim 2, Features: T j Time is T i The K'th moment after the moment, K' ≥ 2; The inputting of scene data into the driving behavior model is to input a fragmented scene T selected for this training into the driving behavior model. i The scene data at each moment are respectively input into M driving behavior models, and different target vehicles are assigned to different driving behavior models, where M is the total number of vehicles in the scene data; The target vehicle in the scene is obtained from the output of the driving behavior model at T j The conditional probability distribution P of the state prediction value at time θ ,include: Step 1: Obtain the T values ​​of all M vehicles in the scene from the outputs of the M driving behavior models. i+1 The predicted value of the state at the moment; Step 2: Determine whether all vehicles in the scene have been obtained at T j-1 The predicted state value at the moment, if yes, execute step 4, otherwise execute step 3; Step 3: Input the latest state prediction value of each vehicle in the scene and the scene map of the fragmented scene into one of the driving behavior models respectively, and specify different target vehicles for different driving behavior models; obtain the state prediction value of all vehicles in the scene at the next moment from the output of the driving behavior model, and return to step 2; Step 4: Move all vehicles in the scene to the T j-1 The state prediction value at time T and the scene map of the fragmented scene are input into a driving behavior model, and the collected vehicle in the scene is taken as the target vehicle; the target vehicle at T is obtained from the output of the driving behavior model. j The conditional probability distribution P of the state prediction value at time θ ; The adjusting the model parameters according to the loss is to synchronously adjust the parameters of all driving behavior models used in training according to the loss.

5. The method according to any one of claims 1 to 4, Features: The driving behavior model is a deep neural network model, and the deep neural network model adopts a Transformer architecture; The method further includes: when the training of the driving behavior model meets a preset convergence condition, verifying the prediction accuracy of the driving behavior model based on a fragmented scene for verification, and obtaining a trained driving behavior model after the verification passes; the convergence condition includes: according to P and P θ The loss determined by the divergence between them is less than a preset loss threshold.

6. A vehicle state prediction method, include: Inputting the scene data into a driving behavior model, wherein the driving behavior model is trained by the driving behavior model training method according to any one of claims 1 to 5; Obtaining a predicted state value of the target vehicle at the next moment from the output of the driving behavior model; The input scene data includes: a scene map, and state data of a target vehicle and its background vehicles in the scene at a given moment, wherein the state data includes values ​​of state parameters of the vehicle; the target vehicle is a designated vehicle among all vehicles in the scene.

7. A method for reconstructing a natural driving environment, include: Acquire initial scene data for reconstructing a natural driving environment, the initial scene data comprising: a scene map, and a tested vehicle and N first background vehicles in the scene at T 0 Status data at the moment; The initial scene data are respectively input into the trained N driving behavior models, different first background vehicles are designated as target vehicles for different driving behavior models, and the tested vehicle and the remaining first background vehicles are all used as second background vehicles of the corresponding target vehicles; the N first background vehicles are obtained from the outputs of the N driving behavior models at T 1 The predicted value of the state at the moment; Based on the N first background vehicles at T 1 The state prediction value at time T and the scene map are used to reconstruct the tested vehicle at T 1 Natural driving environment at all times.

8. The method according to claim 7, It is characterized in that Also includes: According to the reconstructed T l Reconstruction of the natural driving environment at every moment l+1 Natural driving environment at all times: Get T l The scene data at time T includes: the scene data of the tested vehicle at time T obtained from the tested vehicle l Status data at time T, N' first background vehicles 1 The state prediction value at the moment and the scene map, N'≤N; The T l The scene data at each time point are input into the N' driving behavior models respectively, and different first background vehicles are designated as target vehicles for different driving behavior models, and the tested vehicle and the remaining first background vehicles are designated as second background vehicles of the target vehicle; The N' first background vehicles are obtained from the outputs of the N' driving behavior models at T l+1 The state prediction value at time T is based on the N' first background vehicles at T l+1 The state prediction value at time T and the scene map are used to reconstruct the tested vehicle at T l+1 Natural driving environment at all times.

9. The method according to claim 7, It is characterized in that Also includes: The N trained driving behavior models all adopt the trained driving behavior model as claimed in claim 5; The state data includes values ​​of state parameters of the vehicle, and the state parameters include any one or more of speed, acceleration, position and posture.

10. A method for testing an autonomous driving system. include: A test vehicle equipped with an automatic driving system is tested based on the reconstructed natural driving environment to obtain test data of the test vehicle; wherein the natural driving environment is reconstructed using the method described in any one of claims 7 to 9.

11. A driving behavior model training device, include: A memory and a processor, wherein the memory stores a computer program; wherein the processor is configured to execute the computer program in the memory to implement the driving behavior model training method as described in any one of claims 1-5.

12. A natural driving environment reconstruction device, include: A memory and a processor, wherein the memory stores a computer program; wherein the processor is configured to execute the computer program in the memory to implement the natural driving environment reconstruction method as described in any one of claims 7 to 9.

13. A computer storage medium, wherein a computer program is stored in the computer storage medium, and when the computer program is executed by a processor, the driving behavior model training method as described in any one of claims 1 to 5, or the vehicle state prediction method as described in claim 6, or the natural driving environment reconstruction method as described in any one of claims 7 to 9, or the automatic driving system testing method as described in claim 10 is implemented.

Citation Information

Patent Citations

  • Unmanned vehicle lane changing decision-making method, system, equipment and medium

    CN113911136A

  • Intelligent agent control method and device, intelligent agent and computer readable storage medium

    CN114355936A