Automatic driving decision control method, device, system, equipment and storage medium
By self-collecting real vehicle driving samples and sample expansion to generate synthetic risk driving samples, the autonomous driving decision-making model is optimized, which solves the problem of model performance differences in different environments and improves its generalization ability and applicability.
Patent Information
- Application Number
- CN202410834416.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-26
AI Technical Summary
The performance differences of autonomous driving decision-making models in different environments and scenarios lead to limited generalization capabilities and difficulty in directly transferring them to application environments, affecting their applicability in practical applications.
By obtaining the autonomous driving decision model, we use self-collected real vehicle driving samples to extract risky driving data, perform sample expansion to generate synthetic risky driving samples, adjust the parameters of the model, and optimize the model to adapt to different environments.
The generalization ability of the autonomous driving decision-making model is improved, allowing it to adapt to the application environment and deploy applications more quickly, and improve the applicability and generalization to unknown new scenarios.
Smart Images

Figure CN118393900B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving technology, and in particular to autonomous driving decision control methods, devices, systems, equipment and storage media. Background Art
[0002] Autonomous driving technology is a technical field that integrates environmental perception, decision-making planning, control execution, etc. In the current transportation field, the research goal of autonomous driving technology is to enable vehicles to be free from human control and achieve automatic and safe driving, thereby improving the level of intelligent road traffic.
[0003] In recent years, solutions to provide solutions for autonomous driving decision-making have been continuously introduced through machine learning methods, such as reinforcement learning methods. Although the application of reinforcement learning algorithms can achieve the goal of autonomous driving to a certain extent, since the direction of model optimization mainly depends on environmental feedback information, the performance of the same model in different environments and scenarios may vary significantly, resulting in limited generalization ability. As a result, when the trained autonomous driving decision model is migrated to the application environment, its performance in the training environment is difficult to directly migrate to the application environment.
[0004] Improving the generalization ability of the autonomous driving decision-making model and enabling the autonomous driving solution to play a practical application value in the application environment is a technical problem that technical personnel in this field need to solve. Summary of the invention
[0005] The objective of the present invention is to provide an autonomous driving decision control method, device, system, equipment and storage medium for improving the model generalization capability of the autonomous driving decision model.
[0006] In order to solve the above technical problems, the present invention provides an automatic driving decision control method, comprising:
[0007] Obtain the autonomous driving decision model;
[0008] The target vehicle movement is controlled by using the autonomous driving decision model, and the autonomous driving decision model is optimized according to the interaction process between the target vehicle and the driving environment. During the optimization process, vehicle risk driving data is extracted from the first collected real vehicle driving sample as a risk driving sample, the risk driving sample is expanded to generate a synthetic risk driving sample, and the model parameters of the autonomous driving decision model are adjusted by using the first real vehicle driving sample and the synthetic risk driving sample;
[0009] After reaching the end condition of model optimization, the optimized autonomous driving decision model is obtained;
[0010] The optimized automatic driving decision model is used to control vehicle driving.
[0011] On the one hand, extracting vehicle risk driving data from the collected first real vehicle driving sample as a risk driving sample includes:
[0012] The first real vehicle driving sample is subjected to risk analysis based on at least one of the vehicle driving operation type, vehicle motion state parameters, vehicle fault information detection results, vehicle driving trajectory, and driving environment data, and the vehicle risk driving data that meets the risk assessment conditions is extracted as the risk driving sample.
[0013] On the other hand, performing risk analysis on the first real vehicle driving sample according to the vehicle driving operation type to extract the vehicle risk driving data includes:
[0014] If at least one of the following conditions is met: the frequency of sudden acceleration operations is higher than the threshold number of sudden acceleration operations, the frequency of sudden braking operations is higher than the threshold number of sudden braking operations, and the frequency of sudden steering operations is higher than the threshold number of sudden steering operations, then the corresponding first real vehicle driving sample is determined to be the vehicle risk driving data.
[0015] On the other hand, performing risk analysis on the first real vehicle driving sample according to the vehicle motion state parameter to extract the vehicle risk driving data includes:
[0016] If at least one of the following conditions is met: the time during which the vehicle running speed is greater than the first speed threshold exceeds the first speeding threshold, and the vehicle running speed is greater than the second speed threshold, the corresponding first real vehicle driving sample is determined to be the vehicle risk driving data;
[0017] The first rate threshold is smaller than the second rate threshold.
[0018] On the other hand, performing risk analysis on the first real vehicle driving sample according to the vehicle fault information detection result to extract the vehicle risk driving data includes:
[0019] Accessing the vehicle automatic diagnosis interface to obtain the vehicle fault information detection result;
[0020] If a vehicle failure event exists in the vehicle failure information detection result, the corresponding first real vehicle driving sample is determined to be the vehicle risk driving data.
[0021] On the other hand, performing risk analysis on the first real vehicle driving sample according to the vehicle driving trajectory to extract the vehicle risk driving data includes:
[0022] Acquiring the vehicle's driving trajectory through a vehicle-mounted positioning module;
[0023] Detecting the smoothness of the vehicle's driving trajectory and the overlap between the vehicle's driving trajectory and a non-driving area;
[0024] If at least one of the following conditions is met: the trajectory smoothness of the vehicle driving trajectory does not meet the trajectory smoothness condition and the number of path points in the vehicle driving trajectory located in the non-driving area reaches an overlapping threshold, the corresponding first real vehicle driving sample is determined to be the vehicle risk driving data.
[0025] On the other hand, performing risk analysis on the first real vehicle driving sample according to the driving environment data to extract the vehicle risk driving data includes:
[0026] Acquiring at least one of the driving environment data of weather condition parameters, road condition parameters, traffic flow parameters and traffic density parameters;
[0027] If the weather condition parameter is a risky weather type, determining the corresponding first real vehicle driving sample as the vehicle risky driving data;
[0028] If the road flatness in the road condition parameter does not meet the flatness condition, the obstacle index in the road condition parameter meets the obstacle threshold, and the road condition parameter has at least one of the construction environment parameters, then the corresponding first real vehicle driving sample is determined to be the vehicle risk driving data;
[0029] If at least one of the following conditions is met: the traffic flow parameter is greater than the traffic flow threshold, and the traffic density parameter is greater than the traffic density threshold, the corresponding first real vehicle driving sample is determined to be the vehicle risk driving data.
[0030] On the other hand, collecting the first real vehicle driving sample includes:
[0031] Using a driving state encoding module to encode the collected vehicle driving state perception data at the current moment to obtain a driving state parameter at the current moment and input it into the automatic driving decision model;
[0032] Using the automatic driving decision model to select driving action parameters according to the driving state parameters at the current moment, and using the selected driving action parameters to drive the vehicle to move;
[0033] In the process of driving the target vehicle to move and interact with the driving environment, collecting environmental feedback information to calculate environmental reward parameters;
[0034] Using the driving state encoding module to encode the collected vehicle driving state perception data at the next moment to obtain the driving state parameters at the next moment;
[0035] The first real vehicle driving sample is constructed with a set of driving state parameters, driving action parameters, environmental reward parameters at the current moment and driving state parameters at the next moment.
[0036] On the other hand, the driving state encoding module is used to encode the collected vehicle driving state perception data to obtain driving state parameters, including:
[0037] The pre-trained driving state encoding module is used to perform dimensionality reduction processing on the collected vehicle driving state perception data and output driving state parameters that meet the preset distribution.
[0038] On the other hand, the pre-training step of the driving state encoding module includes:
[0039] Obtain vehicle driving data;
[0040] Extracting vehicle state information and environment state information from the vehicle driving data to construct multimodal state perception data to obtain a driving state data set;
[0041] A symmetric convolutional neural network structure is used to build a driving state encoding network and a driving state decoding network;
[0042] Extracting encoder training samples from the driving state data set to train the driving state encoding network and the driving state decoding network; during the training process, inputting the encoder training samples into the driving state encoding network to extract the sample data distribution of the encoder training samples; sampling from the sample data distribution of the encoder training samples to obtain sample distribution feature codes; inputting the sample distribution feature codes into the driving state decoding network to output reconstructed samples; maximizing the likelihood of the reconstructed samples and the corresponding encoder training samples and minimizing the relative entropy between the potential representation distribution of the encoder training samples and the standard normal distribution as the training objectives; performing loss optimization training on the driving state encoding network and the driving state decoding network;
[0043] After the driving state encoding module training end condition is reached, the driving state encoding module is obtained.
[0044] On the other hand, the training loss function of the driving state encoding module is:
[0045]
[0046] ;
[0047] in, is the training loss function of the driving state encoding module, Parameters of the driving state encoding network, Parameters of the driving state decoding network, is the encoder training sample, is the number of encoder training samples, is the sample data distribution of the encoder training samples, is the standard normal distribution, is the KL divergence between the sample data distribution of the encoder training sample and the standard normal distribution, M is the number of distribution variables drawn from the standard normal distribution, is the reconstruction sample, is the encoder training sample, is the square of the two-norm calculation, For the n The variance of the encoder training samples, For the n The mean of the encoder training samples.
[0048] On the other hand, the risky driving sample is expanded to generate a synthetic risky driving sample, including:
[0049] The synthetic risky driving sample having the same sample distribution as the risky driving sample is generated by using a diffusion model.
[0050] On the other hand, the step of collecting the driving state parameters in the first real vehicle driving sample includes:
[0051] During the interaction between the target vehicle and the driving environment, vehicle state information of the target vehicle and environmental state information of the driving environment are collected to obtain multimodal state perception data;
[0052] The pre-trained driving state encoding module is used to reduce the dimension of the multimodal state perception data and output driving state parameters that meet the preset distribution.
[0053] On the other hand, the training step of the diffusion model includes:
[0054] Iteratively training the denoiser network, wherein in each iteration, denoising training samples are extracted from the risky driving samples, noise is added to the denoising training samples according to a preset noise level schedule to obtain noisy samples, the denoiser network is used to denoise the noisy samples to obtain denoised samples, and a difference loss value of the denoiser network is calculated using an error between the denoised samples and the corresponding denoised training samples, and back propagation is performed to update the model parameters of the denoiser network;
[0055] When the denoiser iteration termination condition is met, the diffusion model is obtained.
[0056] On the other hand, the training step of the diffusion model includes:
[0057] Initialize the network parameters of the denoiser network ;
[0058] Calculate the distribution standard deviation based on the denoised sample data set consisting of the risky driving samples ;
[0059] Randomly extract a small batch of denoising training samples from the denoising sample dataset ;
[0060] Set the noise based on a lognormal distribution ,according to Add noise to the denoised training samples to obtain noisy samples ;
[0061] according to , the denoiser network is used to deduce the noisy samples Perform denoising processing; wherein, is the output of the denoiser network i the denoised samples;
[0062] according to Calculating a difference loss value between the denoised sample and the corresponding denoised training sample;
[0063] Updating the network parameters of the denoiser network using a back-propagation method to reduce the difference loss value;
[0064] Repeat the above steps until the denoiser iteration end condition is reached, and the diffusion model is obtained;
[0065] in, is the number of denoising training samples, For the i The denoising training samples, For the i The noisy samples, For the i The denoised samples, For noise, is the distribution standard deviation of the denoised sample data set, is the standard deviation of the noise distribution, is the difference loss value between the denoised sample and the corresponding denoised training sample, is the denoised sample, x is the denoising training sample, E[·] is the difference loss calculation, The square of the 2-norm.
[0066] On the other hand, the step of generating the synthetic risky driving sample having the same sample distribution as the risky driving sample by using a diffusion model includes:
[0067] The noise level schedule and sampling factor are set according to the following formula:
[0068] ;
[0069] ;
[0070] Based on noise level Sampling generates random noise samples as initial input ;
[0071] according to and , for any t Noise samples during the iteration , with noise samples Random sampling is performed at the center; is random noise;
[0072] Using the diffusion model Calculate the t The denoising score value of the iteration process;
[0073] According to the noise sample of the next iteration step ; Among them, if ,but ;
[0074] like , then according to Calculate the t +1 denoising score value of the iteration process;
[0075] If the sampling end condition is met, it is determined that the generation of the synthetic risky driving sample is completed, and the synthetic risky driving sample is output;
[0076] If the sampling end condition is not met, then return to the t Noise samples during the iteration , with noise samples Steps for random sampling for the center;
[0077] in, is the diffusion model t The noise level scheduling of the iterative process, is the control coefficient of noise level scheduling, is the standard deviation of the distribution of the maximum noise level, is the standard deviation of the distribution of the minimum noise level;
[0078] is the diffusion model t The sampling coefficient of the iteration process, is the preset diffusion sampling step number, , is the noise sampling amplitude, is the lower limit of the noise level, is the upper limit of noise level;
[0079] , , are random sampling coefficients, and ;
[0080] For the t The sampling noise of the iterative process is For the t The noise sample input in the iteration process, For noise samples is the sampling noise sample obtained by random sampling from the center, For The random noise sampled from is a multidimensional standard normal distribution, I is the identity matrix;
[0081] is the sampled noise sample The denoising score value, is the sampled noise sample The denoised output obtained by inputting the denoiser model;
[0082] For the t +1 Noise sample input during the iteration, is the noise sample t +1 Noise level scheduling for the iteration process;
[0083] is the noise sample The denoising score value, is the noise sample The denoised output of the input denoiser model.
[0084] On the other hand, the step of generating the synthetic risky driving sample having the same sample distribution as the risky driving sample by using a diffusion model includes:
[0085] During the optimization process of the autonomous driving decision model, when a diffusion model update condition is met, the model parameters of the diffusion model are updated using the currently collected risky driving samples, and then the synthetic risky driving samples are generated using the updated diffusion model;
[0086] Among them, the diffusion model update condition is that the autonomous driving decision model has undergone a first preset number of iterations and / or the cumulative data volume of the risky driving samples has reached a first preset data volume since the model parameters of the diffusion model were last updated.
[0087] On the other hand, the autonomous driving decision model is a model pre-trained in an autonomous driving simulation system;
[0088] Using the first real vehicle driving sample and the synthetic risk driving sample to adjust model parameters of the automatic driving decision model includes:
[0089] The automatic driving decision model is fine-tuned by model migration during the interaction between the target vehicle and the driving environment.
[0090] In order to solve the above technical problems, the present invention also provides an automatic driving decision control system, comprising: a cloud server, an on-board edge server provided in a target vehicle, and an automatic driving controller provided in the target vehicle;
[0091] Among them, the on-board edge server is used to obtain an autonomous driving decision model, and optimize the autonomous driving decision model in the process of using the autonomous driving decision model to control the interaction between the target vehicle movement and the driving environment. During the optimization process, vehicle risk driving data is extracted from the first collected real vehicle driving sample as a risk driving sample, and the risk driving sample is sent to the cloud server, and the cloud server performs sample expansion on the risk driving sample to generate a synthetic risk driving sample, and the model parameters of the autonomous driving decision model are adjusted using the first real vehicle driving sample and the synthetic risk driving sample; after the model optimization end condition is reached, the optimized autonomous driving decision model is obtained; and the autonomous driving decision model is used to control the target vehicle movement through the autonomous driving controller.
[0092] In order to solve the above technical problems, the present invention also provides an automatic driving decision control device, comprising:
[0093] A model updating module is used to obtain an autonomous driving decision model; use the autonomous driving decision model to control the movement of a target vehicle, and optimize the autonomous driving decision model according to an interaction process between the target vehicle and a driving environment. During the optimization process, vehicle risk driving data is extracted from a first real vehicle driving sample collected as a risk driving sample, and the model parameters of the autonomous driving decision model are adjusted using the first real vehicle driving sample and a synthetic risk driving sample generated by sample expansion based on the risk driving sample; after the model optimization end condition is met, an optimized autonomous driving decision model is obtained;
[0094] A data synthesis module, used for performing sample expansion on the risky driving sample to generate the synthetic risky driving sample;
[0095] A decision control unit is used to perform vehicle driving control using the optimized automatic driving decision model.
[0096] In order to solve the above technical problems, the present invention further provides an automatic driving decision control device, comprising:
[0097] Memory for storing computer programs;
[0098] A processor is used to execute the computer program, and when the computer program is executed by the processor, the steps of the automatic driving decision control method as described in any one of the above items are implemented.
[0099] In order to solve the above technical problems, the present invention also provides a non-volatile storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the autonomous driving decision control method as described in any one of the above items are implemented.
[0100] In order to solve the above technical problems, the present invention also provides a computer program product, including a computer program / instructions, which, when executed by a processor, implement the steps of the autonomous driving decision control method as described in any one of the above items.
[0101] The autonomous driving decision control method provided by the present invention has the beneficial effect of addressing the problem that the applicability of the autonomous driving decision model decreases due to significant changes in vehicle driving scenarios when the autonomous driving technology is put into application. When the autonomous driving decision model is used to control the movement of the target vehicle, the autonomous driving decision model is optimized according to the interaction process between the target vehicle and the driving environment. During the optimization process, a first real vehicle driving sample is collected, and vehicle risk driving data is extracted from the first real vehicle driving sample as a risk driving sample. The risk driving sample is expanded to generate a synthetic risk driving sample. The model parameters of the autonomous driving decision model are adjusted using the first real vehicle driving sample and the synthetic risk driving sample, so as to achieve targeted fine-tuning of the model for risky driving behavior with a smaller environmental interaction cost based on the prior experience of autonomous driving, support the autonomous driving decision control system to quickly adapt to the application environment and deploy applications, and improve the applicability and generalization of the autonomous driving decision control system for unknown new scenarios.
[0102] The present invention also provides an automatic driving decision control device, system, equipment, non-volatile storage medium and computer program product, which have the above-mentioned beneficial effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0103] In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0104] Figure 1 An architecture diagram of an autonomous driving decision control system provided by an embodiment of the present invention;
[0105] Figure 2 A flowchart of an automatic driving decision control method provided by an embodiment of the present invention;
[0106] Figure 3 A schematic diagram of the structure of a driving state encoding network and a driving state decoding network provided by an embodiment of the present invention;
[0107] Figure 4 A structural schematic diagram of a diffusion model provided by an embodiment of the present invention;
[0108] Figure 5 A flowchart of a training process of an autonomous driving decision model provided by an embodiment of the present invention;
[0109] Figure 6 A flowchart of a model migration fine-tuning process of an autonomous driving decision model provided by an embodiment of the present invention;
[0110] Figure 7 A schematic diagram of the structure of an automatic driving decision control device provided by an embodiment of the present invention;
[0111] Figure 8 A schematic diagram of the structure of an automatic driving decision control device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0112] The core of the present invention is to provide an autonomous driving decision control method, device, system, equipment and storage medium for improving the model generalization capability of the autonomous driving decision model.
[0113] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0114] To facilitate understanding of the technical solution provided by the embodiment of the present invention, some key terms used in the embodiment of the present invention are explained here:
[0115] Reinforcement Learning (RL), also known as reinforcement learning, evaluation learning or enhanced learning, is one of the paradigms and methodologies of machine learning. It is used to describe and solve the problem of how an agent can maximize rewards or achieve specific goals through learning strategies during its interaction with the environment.
[0116] Bird's Eye View (BEV) is a perspective of viewing an object or scene from above, just like a bird looking down at the ground in the air. In the field of autonomous driving and robotics, data obtained by sensors (such as radars and cameras) are usually converted into BEV representations to better perform tasks such as object detection and path planning. BEV can simplify complex three-dimensional environments into two-dimensional images, which is particularly important for efficient computing in real-time systems. In an embodiment of the present invention, a BEV diagram or a BEV image is a bird's-eye view.
[0117] The Actor-Critic Algorithm is a reinforcement learning method that combines policy gradient and temporal difference learning, including an actuator network and a critic network. The actuator network obtains the highest possible reward through learning strategies, which is used to generate actions and interact with the environment. The critic network is used to evaluate the quality of the actuator network through the reward function, that is, to evaluate the quality of the actuator and guide the actuator's actions in the next stage.
[0118] Hidden variables, or latent variables, are unobservable random variables that can be inferred from observed data through mathematical models. Hidden variables are related to some factors in reality. Measuring these factors is theoretically feasible, but difficult in practice. One of the benefits of using hidden variables is that they can be used to reduce the dimension of data. A large number of observed variables can be integrated into a hidden variable to represent deep concepts, making observed data easier to understand.
[0119] Markov Decision Process (MDP) is a mathematical model of sequential decision, which is used to simulate the random strategies and rewards that can be achieved by intelligent agents in an environment where the system state has Markov properties. Markov decision process is built based on a set of interacting objects, namely intelligent agents and environments, and its elements include state, action, strategy and reward. In the simulation of Markov decision process, the intelligent agent will perceive the current system state, take actions on the environment according to the strategy, thereby changing the state of the environment and receiving rewards. The accumulation of rewards over time is called reward. Markov decision process is used to model reinforcement learning problems in machine learning. By using methods such as dynamic programming and random sampling, Markov decision process can solve the intelligent agent strategy that maximizes the reward, and has been applied in topics such as automatic control and recommendation systems.
[0120] Vehicle to everything (V2X) wireless communication technology refers to the information exchange between vehicles and the outside world, which enables vehicles to communicate with each other, vehicles to base stations, and base stations to base stations, thereby obtaining a series of traffic information such as real-time traffic conditions, road information, and pedestrian information.
[0121] Relative entropy, also known as the Kullback-Leibler divergence (KL divergence) or information divergence, is an asymmetric measure of the difference between two probability distributions. In information theory, relative entropy is equivalent to the difference in the Shannon entropy of two probability distributions.
[0122] With the rapid development of artificial intelligence and machine learning technologies, autonomous driving technology has become a research hotspot in the global transportation field. By integrating advanced sensors, high-speed computer processing systems and complex algorithms, autonomous vehicles have the potential to solve a series of problems such as traffic congestion, reduce traffic accidents and improve travel efficiency. However, in the process of moving towards widespread application, autonomous driving technology faces multiple challenges. On the technical level, autonomous driving systems must be able to navigate and make decisions efficiently in complex and changing traffic environments. This requires the system to be able to handle not only static road structures and traffic rules, but also dynamic traffic flows, pedestrian behaviors, emergencies, etc. Although traditional rule-based planning methods can achieve this goal to a certain extent, they are stretched when dealing with the dynamic nature of real-world scenarios. Such methods usually rely on pre-set rules and parameters and are difficult to adapt to the ever-changing traffic environment. In addition, rule-based planning methods also face the problem of parameter adjustment. Small parameter changes may have a significant impact on system behavior, resulting in inefficient and costly system adjustments.
[0123] In recent years, modern machine learning methods, especially reinforcement learning, have provided a new solution for the development of autonomous driving technology. Reinforcement learning algorithms allow agents to learn through trial and error in the environment and autonomously optimize decision-making strategies, which is expected to improve the performance of autonomous driving systems.
[0124] However, in practical applications, reinforcement learning also faces many limitations. Since the guidance of the model optimization direction mainly depends on environmental feedback information, this determines that the model performance is closely related to its exploration ability during the interaction process. Therefore, the performance of the same model in different environments and scenarios may vary significantly, resulting in limited generalization ability. For example, some models perform well in simple scenarios such as highway driving, but have difficulty coping with complex urban traffic environments. In addition, the model also has the problem of scene migration, that is, the performance in the training environment is often difficult to directly migrate to the application environment. This problem limits the generalization ability of the model in practical applications, making the widespread application of autonomous driving technology challenging.
[0125] In view of the problem that the applicability of the autonomous driving decision model decreases due to significant changes in vehicle driving scenarios when the autonomous driving technology is put into use, an embodiment of the present invention provides an autonomous driving control solution. When the autonomous driving decision model is used to control the movement of a target vehicle, the autonomous driving decision model is optimized according to the interaction process between the target vehicle and the driving environment. During the optimization process, a first real vehicle driving sample is collected, and vehicle risk driving data is extracted from the first real vehicle driving sample as a risk driving sample. The risk driving sample is expanded to generate a synthetic risk driving sample. The model parameters of the autonomous driving decision model are adjusted using the first real vehicle driving sample and the synthetic risk driving sample, so as to achieve targeted fine-tuning of the model for risky driving behavior with a smaller environmental interaction cost based on the prior experience of autonomous driving, support the autonomous driving decision control system to quickly adapt to the application environment and deploy applications, and improve the applicability and generalization of the autonomous driving decision control system for unknown new scenarios.
[0126] Figure 1 An architectural diagram of an autonomous driving decision control system provided in an embodiment of the present invention.
[0127] To facilitate understanding, the system architecture to which the present invention is applicable is first introduced.
[0128] The automatic driving decision control system provided by the embodiment of the present invention comprises: a cloud server, an on-board edge server provided in a target vehicle, and an automatic driving controller provided in the target vehicle;
[0129] Among them, the on-board edge server is used to obtain the autonomous driving decision model, and optimize the autonomous driving decision model in the process of using the autonomous driving decision model to control the interaction between the target vehicle movement and the driving environment. During the optimization process, the vehicle risk driving data is extracted from the first collected real vehicle driving sample as the risk driving sample, and the risk driving sample is sent to the cloud server. The cloud server performs sample expansion on the risk driving sample to generate a synthetic risk driving sample, and the model parameters of the autonomous driving decision model are adjusted using the first real vehicle driving sample and the synthetic risk driving sample; after the model optimization end conditions are met, the optimized autonomous driving decision model is obtained; and the autonomous driving decision model is used to control the target vehicle movement through the autonomous driving controller.
[0130] like Figure 1 As shown, the automatic driving decision control system provided by the embodiment of the present invention may also include an automatic driving simulation system composed of a computer terminal and a server. The automatic driving simulation system may be deployed in a real vehicle or a simulation environment. Figure 1The online interactive learning process of the data-enhanced autonomous driving decision model shown in , for the randomly initialized autonomous driving decision network, it may be necessary to significantly adjust the model parameters. In the online training process of such autonomous driving decision models, an autonomous driving simulation interaction function can be built on the computer side. During the data collection stage of model training, the vehicle driving state perception data (bird's eye view) is read through the application program interface of the autonomous driving simulation interaction function and transmitted to the server via Ethernet. The server generates driving state parameters based on the bird's eye view, uses the driving state parameters as input to generate decision control actions, and collects real vehicle driving samples online to update model parameters.
[0131] In the embodiment of the present invention, the data synthesis module is used to expand the samples during the model migration and fine-tuning process. This principle can also be used in the online learning process of the autonomous driving decision model based on the randomly initialized autonomous driving decision network. Figure 1 The online interactive learning process of the data-enhanced autonomous driving decision model shown in the figure can generate synthetic driving samples from the real vehicle driving samples collected during the online learning process through the data synthesis module. The real vehicle driving samples and the synthetic driving samples are sampled proportionally to obtain mixed samples, and the mixed samples are sampled in batches to update the model parameters of the autonomous driving decision model based on the decision control module. The model is loaded to generate decision control actions based on the input driving state parameters. The driving state parameters, the driving action parameters generated by the decision, and the environmental feedback information read by the computer through the application program interface are collected to construct the real vehicle driving samples.
[0132] like Figure 1 The pre-training process of the driving state encoding module shown in the figure can reduce the computational complexity of the online training stage and the model migration fine-tuning stage of the autonomous driving decision model. The dimensionality reduction processing of the multimodal state perception data obtained by the autonomous driving simulation interaction can be achieved by pre-training the driving state encoding module, and the driving state data set is constructed using the multimodal state perception data to pre-train the driving state encoding module as the upstream data support of the autonomous driving decision model.
[0133] like Figure 1The model migration fine-tuning process for the target application scenario shown in the figure loads the autonomous driving decision model previously trained in the simulation environment to the vehicle edge server, uses the autonomous driving controller to execute the generated decision control action to drive the vehicle, and collects the vehicle driving state perception data. The autonomous driving controller communicates with the vehicle edge server through the controller area network (CAN), and the vehicle edge server communicates with the cloud server through Ethernet. During the model fine-tuning process of the autonomous driving decision model, the vehicle edge server collects the first real vehicle driving sample, performs risk analysis to extract risk driving samples, transmits the risk driving samples to the cloud server through Ethernet, uses the data synthesis module to generate synthetic risk driving samples based on the risk driving samples, and transmits the synthetic sample set to the vehicle edge server through Ethernet. On the vehicle edge server, the first real vehicle driving sample and the synthetic risk driving sample are respectively sampled in proportion to obtain a mixed sample, and the mixed sample is batch sampled to update the model parameters of the autonomous driving decision model.
[0134] In the automatic driving decision control system provided in the embodiment of the present invention, the vehicle driving state perception data can be collected by using the vehicle-mounted sensor module. The types of the vehicle-mounted sensor modules can include at least one of radar and camera for providing environmental perception data to the vehicle-mounted edge server, the vehicle-mounted control unit for providing vehicle control signals to the vehicle-mounted edge server, and at least one of inertial measurement unit (IMU) and global positioning navigation system (GPS) for providing vehicle motion status to the vehicle-mounted edge server.
[0135] The vehicle edge server may also be provided with a data preprocessing module for preprocessing vehicle driving state perception data such as environmental perception data, vehicle control signals and vehicle motion status provided by the vehicle sensor module. The data preprocessing module includes a timestamp alignment module and a multimodal data processing module. The timestamp alignment module is used to perform timestamp alignment processing on a variety of vehicle driving state perception data, and the multimodal data processing module is used to perform multimodal data fusion processing on a variety of vehicle driving state perception data after timestamp alignment to obtain a BEV image. The BEV image is sent to the cloud server and stored in the storage module of the cloud server to construct a driving state data set.
[0136] Based on the above architecture, the automatic driving decision control method provided by an embodiment of the present invention is described below with reference to the accompanying drawings.
[0137] Figure 2 A flowchart of an automatic driving decision control method provided by an embodiment of the present invention.
[0138] like Figure 2 As shown, the automatic driving decision control method provided by the embodiment of the present invention includes:
[0139] S201: Obtain an autonomous driving decision model.
[0140] S202: Using the autonomous driving decision model to control the movement of the target vehicle, and optimizing the autonomous driving decision model according to the interaction process between the target vehicle and the driving environment. During the optimization process, extracting vehicle risk driving data from the first collected real vehicle driving sample as a risk driving sample, expanding the risk driving sample to generate a synthetic risk driving sample, and adjusting the model parameters of the autonomous driving decision model using the first real vehicle driving sample and the synthetic risk driving sample.
[0141] S203: After the model optimization end conditions are met, an optimized autonomous driving decision model is obtained.
[0142] S204: Using the optimized autonomous driving decision model to control vehicle driving.
[0143] In the process of training the autonomous driving decision network to obtain the autonomous driving decision model, since the autonomous driving decision model can only improve the strategy based on the experience samples generated by the interaction between the strategy and the environment, and is limited by the model's exploration ability, within a certain training time or number of training steps, the model can only explore a limited area of the driving state space, and it is difficult to cover all driving situations in complex traffic. On the other hand, due to limited hardware computing and storage resources, the set playback buffer cannot store all sample data generated by the interaction of the training interval. Therefore, each update of the autonomous driving decision model can only be performed on the most recently collected experience data, and the historical data from a longer time ago will be forgotten, although there may be many high-value samples among them. The above two aspects will lead to insufficient sample diversity, low sample utilization efficiency, and thus affect the model learning performance and final performance.
[0144] In response to the above problems, in an embodiment of the present invention, a large amount of driving expert demonstration data can be collected and behaviors can be extracted from the data through offline learning methods, or the expert demonstration data can be added to the online learning process for guidance. However, when the collected data does not match the application environment, the model performance will fail.
[0145] Therefore, in an embodiment of the present invention, during the model migration and fine-tuning process of the autonomous driving decision model, a risk analysis is performed on the collected first real vehicle driving samples, sample expansion is performed on the extracted risk driving samples to generate synthetic risk driving samples, and the model parameters of the autonomous driving decision model are updated using a mixed sample consisting of the first real vehicle driving samples and the synthetic risk driving samples. That is, by reusing the online learning experience of the collected first real vehicle driving samples, the number of samples of the risk driving data therein is expanded in a targeted manner by generating, which not only increases the number of samples that the autonomous driving decision model can learn and enhances the model exploration capability of the autonomous driving decision model, but also does not generate too much cost for collecting real vehicle driving samples through environmental interaction, and enables the autonomous driving decision model to be more adaptable to the actual driving environment.
[0146] In an embodiment of the present invention, a driving state encoding module, a model updating module, a decision control module, a skill generation module and a data synthesis module can be deployed to realize online learning of the autonomous driving decision model in the autonomous driving decision control method and the model migration fine-tuning step.
[0147] Among them, the driving state encoding module is used to encode the collected vehicle driving state perception data as the input of the decision control module.
[0148] In the online learning process of the autonomous driving decision model, the autonomous driving decision network can be constructed based on the actuator network-evaluator network architecture, and the model parameters of the autonomous driving decision network can be trained and updated using the first model update module to obtain the autonomous driving decision model. Used to fit decision control strategies, evaluator (Critic) network Used to evaluate strategy performance. In the model migration fine-tuning process of the autonomous driving decision model, the model parameters of the autonomous driving decision model are updated slightly to better adapt to the actual driving environment of the target vehicle.
[0149] The decision control module is used to make decisions based on the autonomous driving decision network during training or the autonomous driving decision model obtained through training, and select driving action parameters according to the input driving state parameters.
[0150] The skill generation module is used to generate a vehicle running trajectory according to the driving action parameters provided by the decision control module to control the vehicle movement.
[0151] The data synthesis module is used to expand the samples based on the real vehicle driving samples to obtain synthetic driving samples with the same sample feature distribution as the real vehicle driving samples. For example, in an embodiment of the present invention, the data synthesis module is used to generate synthetic risk driving samples with the same sample feature distribution as the risk driving samples based on the risk driving samples.
[0152] In the embodiment of the present invention, depending on the application scenario, an autonomous driving simulation system can be used to implement online training of the autonomous driving decision model, or an autonomous driving decision control system composed of an actual vehicle and a cloud server can be used to implement online training of the autonomous driving decision model.
[0153] If the method of building an autonomous driving simulation system is adopted to realize online training of the autonomous driving decision model, the autonomous driving simulation system can be composed of a computer (PC) terminal and a server, wherein the computer end is used to build a simulated traffic environment to simulate the vehicle edge server, and the server can perform online training of the autonomous driving decision model under the Ubuntu system, and data communication between the computer end and the server can be carried out through Ethernet.
[0154] If an autonomous driving decision control system is used to realize online training of the autonomous driving decision model, the driving state encoding module and the decision control module can be deployed on the on-board edge server of the actual vehicle, and the data synthesis module can be deployed on the cloud server. Data communication between the on-board edge server and the cloud server can be carried out through Ethernet.
[0155] Introducing the data synthesis module into the online learning process of the autonomous driving decision model can help expand the training data set and improve the generalization and robustness of the model. During the online learning process of the autonomous driving decision model, the first real vehicle driving sample generated by the interaction between the vehicle and the driving environment can be uploaded to the cloud server at regular intervals. The data synthesis module will update its own network parameters based on the new driving data and generate the first synthetic driving sample to expand the scale and diversity of training samples required for the autonomous driving decision model, help the autonomous driving decision model better adapt to diverse environments and scenarios, accelerate the training process, and reduce online interaction costs.
[0156] The model training termination condition of the autonomous driving decision model may be reaching a preset number of iterations or reaching a preset convergence condition. When the autonomous driving decision model trained by the online training method provided by the embodiment of the present invention is deployed on the target vehicle to realize the vehicle autonomous driving control, since the autonomous driving decision model has learned the real vehicle driving knowledge in multiple scenarios and is learned on the basis of sample expansion of risk driving samples, the model exploration capability is effectively improved, so that it can be more adaptable to the complex and changeable actual driving environment.
[0157] During the driving process of the vehicle, various types of data that may cause safety hazards or increase the risk of accidents can be collected in real time. These data usually cover multiple aspects such as the driver's behavior, the vehicle's status, and the driving environment. They will be used as risky driving samples to provide detailed information on the various risks that the vehicle may encounter in actual operation.
[0158] In an embodiment of the present invention, a driving risk analysis module can be deployed in the target vehicle to analyze and extract vehicle risk driving data in real time. Extracting vehicle risk driving data from the collected first real vehicle driving sample as a risk driving sample in S202 may include: performing risk analysis on the first real vehicle driving sample according to at least one of the vehicle driving operation type, vehicle motion state parameters, vehicle fault information detection results, vehicle driving trajectory, and driving environment data, and extracting vehicle risk driving data that meets the risk assessment conditions as a risk driving sample.
[0159] Among them, performing risk analysis on the first real vehicle driving sample according to the vehicle driving operation type to extract vehicle risk driving data may include: if at least one of the following conditions is met: the frequency of sudden acceleration operation is higher than the sudden acceleration operation quantity threshold, the frequency of sudden braking operation is higher than the sudden braking operation quantity threshold, and the frequency of sudden steering operation is higher than the sudden steering operation quantity threshold, then the corresponding first real vehicle driving sample is determined to be vehicle risk driving data. That is, if there are sudden acceleration, the number and frequency of sudden braking, and frequent or sudden steering actions, and if the frequency of such behavior is higher than a certain threshold, it indicates that the stability of the system in controlling the vehicle speed is insufficient under the current driving situation.
[0160] Performing risk analysis on the first real vehicle driving sample according to the vehicle motion state parameters to extract vehicle risk driving data may include: if at least one of the following conditions is met: the time during which the vehicle running speed is greater than the first speed threshold exceeds the first speeding threshold, and the vehicle running speed is greater than the second speed threshold, then determining the corresponding first real vehicle driving sample as vehicle risk driving data; wherein the first speed threshold is less than the second speed threshold. That is, if the vehicle is speeding or driving at high speed for a long time, it indicates that the vehicle has illegal driving behavior under the current circumstances, which will increase the probability of accident risk.
[0161] Performing risk analysis on the first real vehicle driving sample according to the vehicle fault information detection result to extract vehicle risk driving data may include: accessing the on-board diagnostic interface (OBD) to obtain the vehicle fault information detection result; if there is a vehicle fault event in the vehicle fault information detection result, then determining the corresponding first real vehicle driving sample as vehicle risk driving data. That is, if the vehicle itself has a fault, it indicates that the safety performance of the vehicle is low and there are safety hazards.
[0162] Performing risk analysis on the first real vehicle driving sample according to the vehicle driving trajectory to extract vehicle risk driving data may include: obtaining the vehicle driving trajectory through the vehicle positioning module; detecting the trajectory smoothness of the vehicle driving trajectory and the overlap between the vehicle driving trajectory and the non-driving area; if at least one of the following conditions is met: the trajectory smoothness of the vehicle driving trajectory does not meet the trajectory smoothness condition, and the number of path points in the vehicle driving trajectory located in the non-driving area reaches the overlap threshold, then determining that the corresponding first real vehicle driving sample is vehicle risk driving data. Through the above judgment conditions, it can be determined whether the vehicle often drives on dangerous roads or performs high-risk operations.
[0163] Performing risk analysis on the first real vehicle driving sample according to the driving environment data to extract vehicle risk driving data may include:
[0164] Acquiring at least one driving environment data of weather condition parameters, road condition parameters, traffic flow parameters and traffic density parameters;
[0165] If the weather condition parameter is a risky weather type, determining the corresponding first real vehicle driving sample as vehicle risky driving data;
[0166] If the road flatness in the road condition parameter does not meet the flatness condition, the obstacle index in the road condition parameter meets the obstacle threshold, and the road condition parameter has at least one of the construction environment parameters, then the corresponding first real vehicle driving sample is determined to be vehicle risk driving data;
[0167] If at least one of the following conditions is met: the traffic flow parameter is greater than the traffic flow threshold, and the traffic density parameter is greater than the traffic density threshold, the corresponding first real vehicle driving sample is determined to be vehicle risk driving data.
[0168] Bad weather can reduce the observation accuracy of vehicle sensor equipment, affect system reliability, and lead to low driving safety. Bad road conditions can lead to low vehicle route safety and high accident risks. High-density traffic flow and complex traffic conditions can increase the difficulty of vehicle control and the risk of accidents. These situations can be considered to involve risky driving factors.
[0169] In actual applications, the corresponding risky driving samples can be collected into the risk sample buffer, uploaded to the cloud server at regular intervals, and the data synthesis module can be iteratively updated to capture the distribution of driving data under different risk behavior conditions, thereby expanding the risk sample library. Using the updated data synthesis module, a large number of diverse synthetic risky driving samples can be generated to cover various possible driving risks, and then the synthetic risky driving samples can be sent to the on-board edge server, providing strong support for the fine-tuning learning of the decision control model. By learning these risk samples, the decision control model can continuously improve its ability to cope with risks, improve driving safety and stability, and decision-making capabilities in complex environments.
[0170] Based on the above embodiment, the embodiment of the present invention further describes the driving state encoding module.
[0171] It should be noted that, in each embodiment of the present invention, the real vehicle driving sample may include one of the real vehicle driving samples collected during the online learning process of the autonomous driving decision model, the first real vehicle driving sample collected during the model migration fine-tuning process of the autonomous driving decision model, and the obtained offline expert driving sample, and the specific selection depends on the task requirements.
[0172] In S202, the model migration fine-tuning process of the autonomous driving decision model can be divided into two stages: data collection and model update. In the data collection stage, the actuator network samples the decision action according to the input driving state parameters and generates driving action parameters. After using the driving action parameters to control the vehicle operation and the interaction with the environment, the environmental feedback data of the driving environment is collected, and the environmental reward parameters are calculated based on this. At this time, the vehicle enters the next state.
[0173] The collecting of the first real vehicle driving sample in S202 may include:
[0174] The driving state encoding module is used to encode the collected vehicle driving state perception data at the current moment to obtain the driving state parameters at the current moment and input them into the automatic driving decision model;
[0175] Using the automatic driving decision model to select driving action parameters according to the current driving state parameters, and using the selected driving action parameters to drive the vehicle to move;
[0176] In the process of driving the target vehicle to interact with the driving environment, environmental feedback information is collected to calculate the environmental reward parameters;
[0177] The driving state encoding module is used to encode the collected vehicle driving state perception data at the next moment to obtain the driving state parameters at the next moment;
[0178] A first real vehicle driving sample is constructed with a set of current driving state parameters, driving action parameters, environmental reward parameters and next moment driving state parameters.
[0179] In an embodiment of the present invention, the collected vehicle driving state perception data may be multimodal driving perception data including vehicle state information of the target vehicle and environmental state information of the driving environment.
[0180] The driving state encoding module is used to encode the collected vehicle driving state perception data as the input of the autonomous driving decision model. In the process of training the autonomous driving decision model, human expert drivers can be used to control the vehicle in complex driving scenarios, and the on-board sensor module can be used to collect multimodal driving perception data and synthesize them into the form of BEV graphs, which can be uploaded to the cloud server to build a driving state data set.
[0181] The driving state encoding module can be designed with a symmetric network structure and unsupervised pre-trained based on the driving state dataset in the cloud server. After pre-training, the encoder network in the driving state encoding module is retained as upstream data support for subsequent tasks.
[0182] In an embodiment of the present invention, a large amount of driving data is collected by using an on-board sensor module on the vehicle side, and timestamp alignment and multimodal data fusion are performed in the on-board edge server to establish a driving state data set. Then, a driving state encoding model is constructed and learned in the cloud server to extract the potential distribution structure of the driving state and generate a low-dimensional, meaningful potential representation as the input state of the decision model. In general, the driving state encoding module can be pre-trained in advance, or it can be combined with the decision control module for end-to-end online training. The actual application can depend on the input data dimension and task complexity. In order to reduce the difficulty of online learning of the autonomous driving decision model, the training task of the driving state encoding module can be separated from the training task of the autonomous driving decision model, and the driving state encoding module can be trained separately.
[0183] The pre-training of the driving state encoding module requires the use of on-board sensor equipment to collect a large amount of diverse driving data, including vehicle sensor data (such as radar, lidar, camera, etc.), vehicle control signals (such as steering angle, throttle, brake, etc.) and vehicle driving trajectory, etc. The above driving data is aligned according to timestamps in the on-board edge server, and then synthesized into a BEV image with multi-channel semantic information using a multimodal data processing method to obtain multimodal driving perception data.
[0184] During the pre-training stage of the driving state encoding module, the simulator application programming interface (API) can be used directly on the computer to obtain the vehicle motion state, road topology, surrounding environment and traffic flow data, and then synthesize them into a BEV image with multi-channel semantic information.
[0185] In some optional implementations of the embodiments of the present invention, encoding the collected vehicle driving state perception data using the driving state encoding module to obtain driving state parameters may include: using the driving state encoding module to perform dimensionality reduction processing on the collected vehicle driving state perception data to obtain the driving state parameters. By using the driving state encoding module to perform dimensionality reduction processing in the process of converting multimodal driving perception data into driving state parameters, the multimodal driving perception data is converted into a low-dimensional representation, thereby reducing the difficulty of online learning of the autonomous driving decision model.
[0186] In some other optional implementations of the embodiments of the present invention, using a driving state encoding module to encode the collected vehicle driving state perception data to obtain driving state parameters may include: using a pre-trained driving state encoding module to encode the collected vehicle driving state perception data to obtain driving state parameters that meet a preset distribution. By using the driving state encoding module to convert the multimodal driving perception data into driving state parameters that meet a preset distribution during the process of converting the multimodal driving perception data into driving state parameters, it can help reduce the difficulty of the data synthesis module in learning the sample feature distribution of the first real vehicle driving sample, thereby further reducing the difficulty of online learning of the autonomous driving decision model.
[0187] In some preferred implementations of the embodiments of the present invention, encoding the collected vehicle driving state perception data using a driving state encoding module to obtain driving state parameters may include: using a pre-trained driving state encoding module to perform dimensionality reduction processing on the collected vehicle driving state perception data and then outputting driving state parameters that meet a preset distribution. That is, by using a driving state encoding module to perform dimensionality reduction in the process of converting multimodal driving perception data into driving state parameters and encoding the driving state parameters into the same distribution, the difficulty of online learning of the autonomous driving decision model can be significantly reduced when providing upstream data support for the training of the autonomous driving decision model.
[0188] Since in an embodiment of the present invention, the driving state encoding module is only concerned with the feature representation of driving data in a low-dimensional latent space, and does not involve tasks such as classification and detection, there is no need to annotate the driving data used to train the driving state encoding module. After completing the driving data collection and BEV image synthesis, it is uploaded to the cloud server as a driving state data set through V2X communication technology. Taking into account the diversity of driving scenarios, the number and diversity of training data for the driving state encoding module can also be increased through data enhancement technology. For example, the BEV image can be transformed by rotation, translation, scaling or adding noise, so as to generate more challenging driving state encoding modules and improve the generalization ability of the driving state encoding module.
[0189] In an embodiment of the present invention, an unsupervised manner can be used to control the driving state encoding module to learn effective encoding of driving data, and its model structure can include an encoder and a decoder. The encoder is used to map the input driving state data to distribution parameters in the latent space, and the decoder decodes the vector sampled from the latent space into the original input data to restore the original driving state information.
[0190] In the embodiment of the present invention, the input data is a BEV image (multimodal driving perception data) of size 5*200*200, and a convolutional neural network is used to construct an encoder and a decoder. Figure 3 A schematic diagram of the structure of a driving state encoding network and a driving state decoding network provided in an embodiment of the present invention. Since the input data and the output data structure are basically the same, the model structure has significant symmetry. In an embodiment of the present invention, the part that compresses data from the input layer to the center of the architecture is called a driving state encoding network, and its function is to extract low-dimensional key information from the original data. The information purified from the original data is feature coding; the part that expands data from the coding to the output layer is called a driving state decoding network, and the output of the driving state decoding network is a reconstructed image, and its function is to restore the extracted information to the original structure. Different types of neural networks can be used to design and implement driving state encoding networks and driving state decoding networks according to data scale and computing requirements.
[0191] like Figure 3 As shown in Figure 1, a three-layer convolutional neural network is used to construct a driving state encoding network and a driving state decoding network, and the driving state encoding module is trained in the cloud server using the collected driving data. Figure 3For example, the driving state encoding network can be used. The convolution network 1 with a convolution kernel of 3 and a step number of 2 can be used to convert the multimodal state perception data of 200*200*5 into 99*99*128, the convolution network 2 with a convolution kernel of 3 and a step number of 2 can be used to convert the multimodal state perception data of 99*99*128 into 49*49*128, and the convolution network 3 with a convolution kernel of 3 and a step number of 2 can be used to convert the multimodal state perception data of 49*49*128 into 24*24*64, and then the data is flattened into 36864 using a flattening layer, and the driving state parameters are obtained through sample distribution feature encoding. In the driving state decoding network, the driving state encoding parameters of 36864 are reshaped into 24*24*64 using a reshaping layer, and then decoded through the deconvolution network 3, the deconvolution network 2 and the deconvolution network 1 in turn to obtain a reconstructed sample.
[0192] In some optional implementations of the embodiments of the present invention, the pre-training step of the driving state encoding module may include:
[0193] Obtain vehicle driving data;
[0194] Extracting vehicle state information and environment state information from vehicle driving data to construct multimodal state perception data and obtain a driving state data set;
[0195] A symmetric convolutional neural network structure is used to build a driving state encoding network and a driving state decoding network;
[0196] Extract encoder training samples from the driving state data set to train the driving state encoding network and the driving state decoding network. During the training process, the encoder training samples are input into the driving state encoding network to extract the sample data distribution of the encoder training samples, and the sample distribution feature encoding is obtained by sampling from the sample data distribution of the encoder training samples. The sample distribution feature encoding is input into the driving state decoding network to output the reconstructed samples, with the training objectives of maximizing the likelihood of the reconstructed samples and the corresponding encoder training samples and minimizing the relative entropy between the potential representation distribution of the encoder training samples and the standard normal distribution, and performing loss optimization training on the driving state encoding network and the driving state decoding network;
[0197] After the driving state encoding module training end condition is reached, the driving state encoding module is obtained.
[0198] When training the driving state encoding module, the training objectives are to maximize the likelihood of the reconstructed samples and the corresponding encoder training samples (minimize the reconstruction error) and to minimize the relative entropy of the latent representation distribution of the encoder training samples and the standard normal distribution to ensure that the learned representation has a certain structure and continuity.
[0199] When training the driving state encoding module, the original BEV image will be input into the driving state encoding network as multimodal driving perception data, and then feature encoding will be formed after passing through the driving state encoding network. It will then be input into the driving state decoding network and restored back to the original input structure to obtain a reconstructed sample.
[0200] In order to ensure the continuity of the mapping space of the driving state encoding network, the embodiment of the present invention does not directly pass the encoded result of the driving state encoding network to the driving state decoding network, but makes the implicit representation meet the preset distribution. In view of this, the driving state encoding network does not directly output a hidden variable, but outputs the mean of a multi-dimensional Gaussian distribution. and variance , and then sample from the obtained distribution to obtain a z As feature encoding, z Send it to the decoder for decoding, using z Also the original input.
[0201] In some other optional implementations of the embodiments of the present invention, applied to a cloud server, the pre-training step of the driving state encoding module may include:
[0202] Collect multimodal driving perception data obtained by human expert drivers based on on-board sensor equipment while driving in complex traffic scenarios, synthesize the multimodal driving perception data into BEV images through multimodal data processing, semantic segmentation and other technologies, and construct a driving status dataset ;
[0203] A driving state encoding module is constructed using a symmetric convolutional neural network structure, and the network parameters of the driving state encoding network and the driving state decoding network are randomly initialized.
[0204] Randomly from the driving state dataset Draw small batches of samples ;
[0205] Extracting sample data distribution through encoder network , sampled from M Encoded features ;
[0206] Will As input, the reconstructed sample data is obtained through the decoder network ;
[0207] Calculate the reconstruction loss based on the reconstructed samples and the real samples, calculate the training loss, and calculate the distribution loss through the encoder output feature distribution, and update the encoder and decoder network parameters through back propagation;
[0208] Repeat the above steps until the model converges or reaches the preset number of training iterations, and output the driving state encoding module.
[0209] in, For the n Vehicle driving state perception data, N is the amount of vehicle driving state perception data, For the driving state dataset The number of vehicle driving state perception data extracted from For the n The mean of the vehicle driving state perception data, For the n The variance of the vehicle driving state perception data, For the self n The vehicle driving state perception data is sampled from m Encoded features, For the n The vehicle driving state perception data is sampled from m The reconstructed sample data corresponding to the encoded features.
[0210] Assume that the original BEV image is x , the driving state encoding network needs to achieve x arrive z The mapping process, that is, the distribution , and the driving state decoding network needs to achieve z Restore Back x The process of distribution , the two distributions have the following relationship:
[0211] ; (1)
[0212] in, and They are x and z Prior distribution. Considering the integral term It is difficult to calculate directly. The driving state encoding network will train a probability distribution through a neural network. To approximate the posterior probability distribution , The network parameters of the driving state encoding network are mainly achieved by minimizing the following distribution metric function:
[0213] ; (2)
[0214] in, for KLThe divergence, also known as the Kluber-Leibler divergence, is a measure of the difference between the model's predicted distribution and the true distribution. Right now and Between KL Divergence. ELBO is the lower bound of evidence in variational inference, expressed as:
[0215] ; (3)
[0216] Due to input x Given, so is a constant, so it is minimized KL Divergence is equivalent to minimizing the Evidence Lower Bound (ELBO). The meaning of is to make the probability distribution output by the driving state encoding network consistent with the prior probability distribution. Based on distribution Sampling Reconstruction x The expected probability of It can be obtained through neural network training of the driving state decoding network. This item is used as the reconstruction loss to measure the relationship between the model input and output.
[0217] Assume that the parameters of the driving state encoding network are , the parameters of the driving state decoding network are , then the loss function of the driving state encoding module can be defined as:
[0218] ; (4)
[0219] The first term is calculated by the means and variances of the two distributions. To simplify the calculation, the prior distribution Set to standard normal distribution , assuming , then:
[0220] ; (5)
[0221] Correspondingly, the reconstruction loss of the second term is designed as:
[0222] ; (6)
[0223] in, The parameters of the decoding network in the driving state are The time achieved from x arrive z The mapping process, The network parameters for the driving state encoding network are Output z The distribution of is the variance of the output distribution of the driving state encoding network, is the mean of the driving state encoding network output distribution, To reconstruct the sample, are equivalent identifiers.
[0224] Considering that the driving state encoding network and the driving state decoding network are connected by sampling distribution during the training process, the middle cannot be described by a differentiable function relationship, resulting in the inability to perform back propagation. In this embodiment of the present invention, a reparameterization technique can be used to establish the encoding feature z Distribution mean and variance Since the intermediate sampling operation is independent of the network and does not participate in the gradient update operation, the network can perform back propagation normally during training.
[0225] Given a driving state dataset consisting of BEV images , for any sample , the distribution of all feature information it carries is converted into a Gaussian distribution through the encoder, and the mean of the Gaussian distribution is obtained and variance , and then randomly sample M variables from a standard normal distribution , and use the reparameterization technique to calculate , and then the corresponding reconstructed samples are obtained through the decoder .
[0226] In the embodiment of the present invention, the training objectives of the driving state encoding module are composed of two parts: maximizing the real sample With the reconstruction sample The likelihood (reconstruction error) of , and minimizing the potential representation distribution With standard normal distribution of KL Divergence is used to ensure that the learned representation has a certain structure and continuity.
[0227] In summary, the pre-training process of the driving state encoding module can be described as follows:
[0228] The simulated traffic environment is constructed through the autonomous driving simulator. The built-in rule-based autonomous driving planner of the autonomous driving simulator is called or the expert driving strategy is loaded to control the vehicle to realize simulated autonomous driving. During this period, the vehicle motion status, road topology, surrounding environment and traffic flow data are obtained in real time through the simulator application interface, and the BEV image is synthesized according to the spatial position information to construct a driving status data set. ;
[0229] Driving Status Dataset The data is sent to a server with an Ubuntu system, and a driving state encoding module is constructed under the Pytorch framework using a symmetric convolutional neural network structure, and the driving state encoding network parameters are calculated. and driving state decoding network parameters Perform random initialization;
[0230] Randomly from the driving state dataset Draw small batches of samples ;
[0231] Extracting sample data distribution through encoder network ;
[0232] Draw randomly from a standard normal distribution Distribution variables , calculated by the following formula M Encoded features :
[0233] ; (7)
[0234] Will As input, reconstructed sample data is obtained through the driving state decoding network ;
[0235] The training loss of the driving state encoding module is calculated according to the following training loss function, by back-propagating the network parameters;
[0236]
[0237] ; (8)
[0238] Repeat the above steps until the model converges or reaches the preset number of training iterations, and output the encoder network;
[0239] in, is the training loss function of the driving state encoding module, The parameters of the network encoding the driving state, Parameters of the driving state decoding network, is the encoder training sample, is the number of encoder training samples, is the sample data distribution of encoder training samples, is the standard normal distribution, is the difference between the sample data distribution of the encoder training sample and the standard normal distribution KL Divergence, M is the number of distribution variables drawn from the standard normal distribution, To reconstruct the sample, is the encoder training sample, is the square of the two-norm calculation, For the n The variance of the encoder training samples, For the n The mean of the encoder training samples.
[0240] The trained driving state encoding module is deployed on the computer side of the autonomous driving simulation system or the on-board edge server of the autonomous driving decision control system as upstream data support for subsequent decision-making and planning tasks to provide a more expressive and versatile low-dimensional latent state representation, which can help improve the overall performance and adaptability of the system and enable it to better adapt to various complex driving environments and task requirements.
[0241] Based on the above embodiments, the embodiments of the present invention further illustrate the data synthesis module.
[0242] In an embodiment of the present invention, in order to solve the problem that the autonomous driving decision model has poor model exploration ability for real vehicle driving samples, a data synthesis module can be used in the online learning process of the autonomous driving decision model to expand the real vehicle driving samples and generate synthetic driving samples to reuse the real vehicle driving samples. In the model migration fine-tuning process of the autonomous driving decision model, a data synthesis module is used to expand the risk driving samples extracted from the first real vehicle driving samples to generate synthetic risk driving samples to specifically learn the risk driving samples, so that the autonomous driving decision model can learn more driving experience and have a stronger ability to deal with risks.
[0243] In some optional implementations of the embodiments of the present invention, the first real vehicle driving sample is expanded to obtain the first synthetic driving sample, and a generative modeling method such as a variational auto encoder (VAE) or a generative adversarial network (GAN) can be used to generate the synthetic driving sample to achieve data augmentation. However, such generation methods do not consider the dynamics of environmental state transitions, which may result in insufficient rationality of the generated samples and inconsistent with the sample feature distribution generated by actual interaction.
[0244] In view of this, in an embodiment of the present invention, during the online learning process of the autonomous driving decision model, performing sample expansion on the actual vehicle driving samples to obtain synthetic driving samples having the same sample feature distribution as the actual vehicle driving samples may include: performing sample expansion on the actual vehicle driving samples using a diffusion model to obtain synthetic driving samples having the same sample feature distribution as the actual vehicle driving samples.
[0245] During the model migration fine-tuning process of the autonomous driving decision model, performing sample expansion on the risky driving samples to generate synthetic risky driving samples in S202 may include: using a diffusion model to generate synthetic risky driving samples having the same sample distribution as the risky driving samples.
[0246] The diffusion model is combined with the forward dynamics model for sample synthesis to ensure that the generated synthetic driving samples or synthetic risky driving samples are more consistent with the real environment dynamics, and can generate novel, diverse and dynamically accurate data.
[0247] In an embodiment of the present invention, a data synthesis module can be constructed based on a diffusion model and forward dynamics. The constructed data synthesis module can be used to perform data enhancement in the online learning phase of the autonomous driving decision model and even in the pre-training phase of the driving state encoding module. Using the data synthesis module to synthesize samples can ensure that the synthesized driving samples are more consistent with the real environment dynamics, and can generate novel, diverse, and dynamically accurate data.
[0248] Since the training cost of the diffusion model is relatively high, in order to reduce the training cost of the diffusion model, in combination with the driving state encoding module provided in the above embodiment of the present invention, the step of collecting the driving state parameters in the first real vehicle driving sample in S202 may include:
[0249] During the interaction between the target vehicle and the driving environment, the vehicle state information of the target vehicle and the environmental state information of the driving environment are collected to obtain multi-modal state perception data;
[0250] The pre-trained driving state encoding module is used to reduce the dimension of the multimodal state perception data and output driving state parameters that meet the preset distribution.
[0251] The driving state encoding module reduces the dimensionality of the multimodal state perception data and outputs driving state parameters that meet the preset distribution, so that the diffusion model only needs to learn the mapping between the state and action in the actual vehicle driving samples, which significantly reduces the cost of introducing the diffusion model.
[0252] In some optional implementations of the embodiments of the present invention, the step of training the diffusion model may include:
[0253] Iteratively train the denoiser network. In each iteration, extract denoised training samples from the risky driving samples, add noise to the denoised training samples according to a preset noise level schedule to obtain noisy samples, use the denoiser network to denoise the noisy samples to obtain denoised samples, calculate the difference loss value of the denoiser network using the error between the denoised samples and the corresponding denoised training samples, and perform back propagation to update the model parameters of the denoiser network;
[0254] When the denoiser iteration end condition is met, the diffusion model is obtained.
[0255] Specifically, in the network training stage of the data synthesis module, given a denoised sample data set, the data synthesis module will randomly extract a small batch of denoised training samples from the denoised sample data set and add noise to them according to the preset noise level schedule; then the denoiser network is used to denoise the noisy samples, and the network training loss is calculated based on the difference between the denoised samples and the real samples (i.e., the denoised training samples), and then the denoiser network parameters are updated through the back-propagation method to reduce the loss value.
[0256] In the sample generation stage of the data synthesis module, the noise level schedule and sampling coefficient are first set according to the predefined diffusion sampling steps, and then random noise samples are generated as the initial input based on the initial noise level sampling; for the noise samples in any iteration process, the scoring function is calculated according to the trained denoiser network, and the noise samples for the next iteration input are calculated according to the scoring value until the maximum sampling iteration steps are reached and the sample generation is completed.
[0257] The data synthesis module is introduced into the online learning process of the autonomous driving decision model. The data synthesis module will update the model parameters in the server at regular intervals based on the latest driving experience generated by the interaction to synthesize more diverse decision control model training samples, accelerate the training process, and reduce online interaction costs.
[0258] The driving state transition data is regarded as training samples to be synthesized ,in, for t Driving state parameters at the moment, for t The driving action parameters selected at each moment, Based on t Driving state parameters at the moment and t The environmental reward parameters obtained by the driving action parameters selected at each moment, for t+T The training process of the data synthesis module based on the diffusion model includes two parts: forward diffusion and reverse denoising. The model will learn to iteratively reverse the forward diffusion process and generate samples from noise. Given a standard deviation of The sample distribution of , consider adding the standard deviation Independent and identically distributed Gaussian noise is used to obtain a noisy sample distribution The forward diffusion process is scheduled by following a fixed noise level The noise distribution sequence is defined as is the diffusion sampling step number, when When , the final sample distribution Essentially no different from random noise. Here we use the following probability flow ordinary differential equation to represent the scheduling with continuous noise level The corresponding inverse denoising process under these conditions:
[0259] ; (9)
[0260] in, is the continuous noise level schedule The time derivative of is a scoring function that describes the gradient information of model parameters for data distribution to guide the direction and magnitude of parameter updates. Unknown, we can train a denoiser model to minimize the denoising loss To approximate it, the training objective is as follows:
[0261] ; (10)
[0262] in, The mean is 0 and the standard deviation is The normal distribution of for Expected computational operations under the conditions, is the noise sample The denoised output obtained by inputting the denoiser model, is the square of the two-norm calculation, is the standard deviation of the noise distribution.
[0263] Furthermore, the connection between score matching and denoising can be used to calculate the score function:
[0264] ; (11)
[0265] The forward diffusion process can be reversed using a stochastic differential equation (SDE) solver to achieve sample generation.
[0266] Currently, in most generation tasks based on diffusion models, the input data is often images or multimodal high-dimensional data. In order to obtain high-dimensional statistical distribution information, it is necessary to use complex network structures such as convolutional neural networks and Transformers to build a denoiser model, which results in a slow sampling and denoising process. It takes a long time of iterative training to ensure model performance, and sample generation takes too long.
[0267] In the embodiment of the present invention, since the driving state data has been mapped to a low-dimensional latent state space through a pre-trained driving state encoding module, the input data x can be represented as a low-dimensional vector, and only a simple fully connected network is required to meet the denoiser model requirements, which can significantly reduce the iterative training cost of the data synthesis module and speed up the sample generation speed.
[0268] Therefore, the embodiment of the present invention uses a fully connected network with residual connections to construct a denoising model. . Figure 4 A structural diagram of a diffusion model provided by an embodiment of the present invention. Figure 4 As shown, the network structure of the diffusion model used in the embodiment of the present invention may include: after the input noise is sinusoidally encoded, the result is sequentially input into the first linear layer, the first activation layer, and the second linear layer, and after the result of the noise input into the third linear layer is summed, the sum value is sequentially passed through the fourth linear layer, the residual multilayer perceptron, the first normalization layer, the second activation layer, and the fifth linear layer. Among them, the residual multilayer perceptron is composed of six groups of the second normalization layer, the third activation layer, and the sixth linear layer.
[0269] like Figure 4 As shown, the noise input , , ,……, ,……, Input denoiser network, according to Eq. , After the sinusoidal position encoding, it is obtained by the first linear layer, the first activation layer, the second linear layer, and the third linear layer. Calculation is performed in the first activation layer Calculation is performed in the second linear layer Calculation is performed in the third linear layer Calculate. h 1 , h 2 , h 3 ,……, h i ,……, and , , ,……, ,……, The corresponding sum is , , ,……, ,……, , input into the fourth linear layer, and then pass through the fourth linear layer, residual multi-layer perceptron, first normalization layer, second activation layer and fifth linear layer for denoising output , , ,……, ,……, Among them, in the fourth linear layer Calculation is performed in the residual multilayer perceptron Calculation is performed in the first normalization layer Calculation is performed in the second activation layer Calculation is performed in the fifth linear layer Calculation. In the residual multilayer perceptron, in the second normalization layer Calculation is performed in the third activation layer Calculation is performed in the sixth linear layer calculate.
[0270] in, is the total number of denoising training samples input in each batch, For the i The noisy samples corresponding to the denoised training samples, is the encoding vector dimension, is the location information, is the position encoding matrix POS Locations, Used to represent the intermediate features of the output of the intermediate layer of the network, is the linear layer calculation operation, h i For noisy samples The corresponding intermediate network layer output features, For noisy samples The corresponding third linear layer output features, For noisy samples The corresponding denoised output, It is used to represent the intermediate features of the output of the intermediate layer of the network. Compute operations for the residual network module, is the layer normalization operation, Calculate the maximum value.
[0271] In some other optional implementations of the embodiments of the present invention, the training step of the diffusion model may include:
[0272] Initialize the network parameters of the denoiser network ;
[0273] Calculate the distribution standard deviation based on the denoised sample data set consisting of risky driving samples ;
[0274] Randomly extract small batch denoising training samples from the denoising sample dataset ;
[0275] Set the noise based on a lognormal distribution ,according to Add noise to the denoised training samples to obtain noisy samples ;
[0276] according to , using a denoiser network to denoise noisy samples Perform denoising processing; wherein, is the i-th denoised sample output by the denoiser network;
[0277] according to Calculate the difference loss between the denoised sample and the corresponding denoised training sample;
[0278] The network parameters of the denoiser network are updated using the back-propagation method to reduce the difference loss value;
[0279] Repeat the above steps until the denoiser iteration end condition is reached, and the diffusion model is obtained;
[0280] in, is the number of denoising training samples, For the i denoising training samples, For the i Noisy samples, For the i denoised samples, For noise, is the distribution standard deviation of the denoised sample data set, is the standard deviation of the noise distribution, is the difference loss value between the denoised sample and the corresponding denoised training sample, is the denoised sample, x is the denoising training sample, E[·] is the difference loss calculation, The square of the 2-norm.
[0281] On this basis, the diffusion model is used to generate synthetic risky driving samples with the same sample distribution as the risky driving samples, which may include:
[0282] The noise level schedule and sampling factor are set according to the following formula:
[0283] ;
[0284] ;
[0285] Based on noise level Sampling generates random noise samples as initial input ;
[0286] according to and , for any t Noise samples during the iteration , with noise samples Random sampling is performed at the center; is random noise;
[0287] Using the diffusion model Calculate the t The denoising score value of the iteration process;
[0288] According to the noise sample of the next iteration step ; Among them, if ,but ;
[0289] like , then according to Calculate the t+1 The denoising score value of the iteration process;
[0290] If the sampling end condition is met, it is determined that the generation of the synthetic risky driving sample is completed, and the synthetic risky driving sample is output;
[0291] If the sampling end condition is not met, the t Noise samples during the iteration , with noise samples Steps for random sampling for the center;
[0292] in, The diffusion model t The noise level scheduling of the iterative process, is the control coefficient of noise level scheduling, is the standard deviation of the distribution of the maximum noise level, is the standard deviation of the distribution of the minimum noise level;
[0293] The diffusion model t The sampling coefficient of the iteration process, is the preset diffusion sampling step number, , is the noise sampling amplitude, is the lower limit of the noise level, is the upper limit of noise level;
[0294] , , are random sampling coefficients, and ;
[0295] For the t The sampling noise of the iterative process is For the t The noise sample input in the iteration process, For noise samples is the sampling noise sample obtained by random sampling from the center, For The random noise sampled from is a multidimensional standard normal distribution, I is the identity matrix;
[0296] is the sampled noise sample The denoising score value, is the sampled noise sample The denoised output obtained by inputting the denoiser model;
[0297] For the t +1 Noise sample input during the iteration, is the noise sample t +1 Noise level scheduling for the iteration process;
[0298] is the noise sample The denoising score value, is the noise sample The denoised output of the input denoiser model.
[0299] Based on the above embodiments, the embodiments of the present invention further illustrate the training process of the autonomous driving decision model.
[0300] By loading a pre-trained driving state encoding module to provide a low-dimensional potential state input, the embodiment of the present invention can train the autonomous driving decision model based on the randomly initialized autonomous driving decision network during the online learning process of the autonomous driving decision model, and can also fine-tune the model parameters of the autonomous driving decision model with prior knowledge during the model migration fine-tuning process of the autonomous driving decision model.
[0301] In an embodiment of the present invention, the autonomous driving decision model can be constructed based on an actuator network-evaluator network architecture. Used to fit decision control strategies, evaluator (Critic) network To avoid overestimation of value and improve performance stability, in this embodiment of the present invention, a dual network mechanism can be used to train the autonomous driving decision model, that is, one actuator network and two current evaluator networks are set. , and 2 target evaluator networks , .
[0302] The training process of the autonomous driving decision model is divided into two stages: data collection and model update.
[0303] In the embodiment of the present invention, for the problem of autonomous driving in complex and changeable traffic scenarios, the environment can be modeled as a Markov decision process, defined as a tuple ,in and denote the state and action space respectively, State transition probability, is the reward function, is the initial state distribution, is the discount factor.
[0304] The current time is t At this moment, the driving state parameter at the current moment is , the driving action parameters are , the environmental reward parameter is , the driving state parameter at the next moment is , then the first real car driving sample includes the data tuple .
[0305] The goal of reinforcement learning is to optimize the policy , so that the expected discounted return Maximize. Set as the output feature of the driving state encoding module, action Set to generate driving movement skills free parameters to facilitate diverse driving behavior learning, where So is the initial state and the length is The vehicle motion trajectory, For and status The corresponding trajectory initial point, Represents the process of motor skill generation based on motion planning.
[0306] In the data collection stage, real vehicle driving samples are collected. The steps of collecting the real vehicle driving samples (or the first real vehicle driving samples) may include:
[0307] Use the automatic driving decision model to sample the decision action parameters according to the current driving state parameters , and generate motor skills based on trajectory planning methods ;
[0308] Control the target vehicle to perform motor skills , and receive environmental feedback rewards during execution, and calculate the cumulative reward value within the skill cycle , until the driving state is transferred to the next moment, the driving state parameters of the next moment are collected ;
[0309] Data tuple As the first real car driving sample;
[0310] in, for t Driving action parameters at the moment, for t Driving state parameters at the moment, is the actuator network, For is the initial state and the length is T The vehicle trajectory of time steps, For the motor skill generation process based on motion planning, for t Waypoints at the moment, for t +1 time waypoint, for t + T Waypoints at the moment, for t The environmental reward parameter at the moment, T is the number of time steps in a skill cycle, for k The single-step reward value at time, for t + T Driving status parameters at the moment.
[0311] With the support of the upstream driving state encoding module, decision-making and control tasks can be performed in the latent feature space, which will significantly reduce the difficulty of model training. In view of this, the decision-making and control module only uses a simple fully connected network to map the low-dimensional state characteristics of the vehicle to the decision-making and control actions. Due to the low computing power requirements, its training and reasoning can be performed in the vehicle edge server. In this embodiment of the present invention, the hidden layers of the actuator network and the evaluator network can both use a fully connected network with the same 2-layer structure. The encoding output layer of the actuator network will output the mean of the action distribution. and variance , the encoding layer of the evaluator network will output a scalar as the policy value estimate. The actuator network and the evaluator network do not share parameters in order to better decouple the training process of the two roles and improve the learning effect and performance of the network.
[0312] To ensure the sample size, you can use the playback buffer To store real car driving samples. So in the model update phase, you can randomly select Small batches of samples are extracted from the training set, and the parameters of the actuator network and the evaluator network are updated respectively with the goal of maximizing the expected return. During the training, the two stages are iterated alternately until the number of training iterations reaches the set upper limit, and the actuator network is output.
[0313] Based on the above conditions, in the embodiment of the present invention, the decision control module can be applied to work in a single-step reasoning-multi-step execution mode, that is, every time steps to make an action decision, and each action will continue steps, so the reward function should be set as the cumulative reward within a skill execution cycle, that is, ,in for Single-step reward with constant environmental feedback.
[0314] In some optional implementations of the embodiments of the present invention, adjusting the model parameters of the automatic driving decision model using the first real vehicle driving sample and the synthetic risk driving sample in S202 may include:
[0315] A first preset number of model parameter updates are performed in each optimization iteration of the autonomous driving decision model. In each model parameter update process, a first real vehicle driving sample is collected and a first synthetic driving sample is generated. A decision model update training sample is extracted from the first real vehicle driving sample and the first synthetic driving sample to update the actuator network, the current evaluator network and the target evaluator network in the autonomous driving decision model. When the model parameter update end condition is met, the model parameter update is completed.
[0316] In an embodiment of the present invention, the online training process of the autonomous driving decision model may include:
[0317] Load the pre-trained driving state encoding module in the server, use a fully connected network to build a decision control module under the Pytorch framework, and randomly initialize the parameters of the actuator network, current evaluator network, and target evaluator network;
[0318] During the data collection phase, for any t At this moment, the server obtains the vehicle driving status data in the simulation environment transmitted by the computer, and synthesizes it into a BEV semantic image through the data preprocessing module;
[0319] A pre-trained driving state encoding module is used to convert BEV semantic images into low-dimensional state features. As the input of the decision control module, the execution network determines the driving state parameters at the current moment. Sampling driving action parameters , and generate motor skills based on trajectory planning methods;
[0320] The server sends the motion skill to the computer. The simulator reads the skill trajectory and converts it into vehicle control instructions through the underlying interface to achieve trajectory tracking and state transfer within a skill cycle. During this period, the simulator sends the environmental feedback signal to the server in real time to calculate the cumulative reward within the skill cycle, that is, the environmental reward parameter. , and the data tuple Collect to playback buffer ;
[0321] Repeat the above data collection steps until the vehicle's execution steps reach the set upper limit;
[0322] During the model update phase, randomly select Extract small batches of samples, update the actuator network, the current evaluator network, and the target evaluator network in turn;
[0323] Repeat the above model update steps until the number of update steps reaches the set upper limit;
[0324] Repeat the above data collection steps and model update steps until the number of training iterations reaches the set upper limit, and output the actuator network.
[0325] During online training, since the autonomous driving decision model can only improve its strategy based on the experience samples generated by the interaction between the strategy and the environment, and is limited by the model's exploration capabilities, within a certain training time or number of training steps, the model can only explore a limited area of the driving state space, and it is difficult to cover all driving situations in complex traffic. On the other hand, due to limited hardware computing and storage resources, the set playback buffer cannot store all sample data generated by the interaction of the training interval. Therefore, each model update can only be performed on the most recently collected experience data, and historical data from a longer time ago will be forgotten, although there may be many high-value samples among them. The above two aspects will lead to insufficient sample diversity, low sample utilization efficiency, and thus affect the model learning performance and final performance.
[0326] To address the above issues, an embodiment of the present invention constructs a data synthesis module based on a diffusion model. The module synthesizes samples by combining a system forward dynamics model to ensure better consistency with the actual environmental dynamics and to generate novel, diverse, dynamically accurate data.
[0327] The steps of using the data synthesis module to generate synthetic driving samples according to real vehicle driving samples can be found in the description of the above embodiment.
[0328] As mentioned above, a playback buffer for storing the first real vehicle driving sample is deployed on the vehicle edge server. , as training samples for autonomous driving decision network training.
[0329] In the embodiment of the present invention, a plurality of playback buffers may be deployed to store the first real vehicle driving sample and the first synthetic driving sample.
[0330] Figure 5 A flowchart of a training process of an autonomous driving decision model provided in an embodiment of the present invention.
[0331] In order to meet the training data requirements in different application scenarios, different data enhancement implementation methods can be used in the embodiments of the present invention.
[0332] like Figure 5 As shown, in the online learning process of the autonomous driving decision model, the real vehicle driving samples collected online are stored in the first playback buffer, and the synthetic driving samples are placed in the second playback buffer. The model parameters of the diffusion model in the data synthesis module are updated using the real vehicle driving samples in the first playback buffer to generate synthetic driving samples with the same sample feature distribution as the real vehicle driving samples. The real vehicle driving samples in the first playback buffer are randomly sampled as real samples, and the synthetic driving samples in the second playback buffer are randomly sampled as synthetic samples. The model parameters of the decision control module are updated using mixed samples of real samples and synthetic samples.
[0333] Furthermore, the online learning process of the data enhancement-driven autonomous driving decision model may include:
[0334] Load the pre-trained driving state encoding module in the server, initialize the network parameters of the data synthesis module and the network parameters of the decision control model, initialize the first playback buffer and the second playback buffer, set the training sample sampling ratio ω, and set the data synthesis module update conditions;
[0335] Build a data communication link between the computer and the server through Ethernet, start the autonomous driving simulator on the computer, and build a simulated traffic environment;
[0336] The server obtains virtual driving perception information from the computer in real time, and uses the pre-trained state encoding module as upstream support. The decision control model maps the perception information into corresponding skill parameters, which are further converted into drivable vehicle motion trajectories through the skill generation module.
[0337] The computer receives the motion trajectory information from the server, converts it into virtual vehicle control instructions through the built-in underlying module of the simulator, and drives the vehicle to complete the state transfer within a skill cycle. During this period, the server will obtain the simulation environment feedback information in real time to calculate the cumulative reward, and store the driving experience samples in the first playback buffer in the form of tuples;
[0338] If the current training round meets the data synthesis module update condition, the denoiser network in the data synthesis module is trained and updated using the real samples in the first playback buffer, and then the data synthesis module is used to generate synthetic samples and store them in the second playback buffer;
[0339] Extract small batches of samples from the first playback buffer and the second playback buffer according to the sampling ratio ω, and then update the autonomous driving decision model based on the mixed samples obtained by sampling;
[0340] Determine the training end condition: if the maximum training iteration rounds are reached, the training ends; otherwise, go to the step of the server obtaining the virtual driving perception information on the computer side in real time and repeat the above steps.
[0341] Due to the differences between simulation scenarios and real scenarios in environmental dynamics and traffic flow characteristics, directly migrating the autonomous driving decision model from the training environment to the target real application environment may result in performance degradation. Therefore, it is necessary to fine-tune the autonomous driving decision model in the real world so that it can show the best driving performance in actual application scenarios.
[0342] The autonomous driving decision model obtained through the online learning process of the autonomous driving decision model has mastered most of the common basic driving skills. This means that for driving situations similar to the training scenarios, the model can use its learned knowledge to make effective decisions. However, since real scenarios may contain special situations that are not covered in the training scenarios, during the fine-tuning process, focus should be placed on these new situations to ensure that the model can adapt quickly and respond correctly. Through targeted fine-tuning and optimization, the driving performance and safety of the model in real scenarios can be further improved.
[0343] Figure 6 A flow chart of a model migration fine-tuning process of an autonomous driving decision model provided in an embodiment of the present invention. First, a vehicle-mounted edge server is installed on the target vehicle in the real scene, and then the trained driving state encoding module and autonomous driving decision model in the simulation scene are loaded into the vehicle-mounted edge server to drive the target vehicle to interact with the real environment. The autonomous driving decision model is based on the pre-trained driving state encoding module and the data-enhanced reinforcement learning algorithm for online optimization, which can achieve precise control of most basic driving behaviors of the vehicle.
[0344] During the driving process of the vehicle, various data that may cause safety hazards or increase the risk of accidents are collected in real time. These data usually cover multiple aspects such as the driver's behavior, the vehicle's status, and the driving environment. They will be used as risk samples to provide detailed information on various risks that the vehicle may encounter in actual operation. The driving risk analysis module introduced in the above embodiment of the present invention is used to analyze and extract vehicle risk driving data in real time.
[0345] In an embodiment of the present invention, in order to learn more abundant driving scenarios, using a diffusion model to generate synthetic risky driving samples with the same sample distribution as the risky driving samples may include:
[0346] In the optimization process of the autonomous driving decision model, when the diffusion model update condition is met, the model parameters of the diffusion model are updated using the currently collected risky driving samples, and then the updated diffusion model is used to generate synthetic risky driving samples;
[0347] Among them, the diffusion model update condition is that the autonomous driving decision model has undergone a first preset number of iterations and / or the cumulative data volume of risky driving samples since the model parameters of the diffusion model were last updated reaches a first preset data volume.
[0348] In summary, the process of fine-tuning the model migration for the target application scenario can include:
[0349] Load the network parameters of the driving state encoding module in the training scenario and the network parameters of the autonomous driving decision model in the vehicle edge server, and initialize the first playback buffer and the second playback buffer;
[0350] Build a data communication link between the vehicle-mounted edge server and the cloud server through Ethernet, and build an online fine-tuning system for the autonomous driving decision model in a real environment;
[0351] Build a data synthesis module in the cloud server and initialize network parameters, set the training sample sampling ratio ω, and the data synthesis module update conditions (for example, the decision control model updates the data synthesis module once every K rounds of training iterations);
[0352] On the vehicle side, the vehicle sensor module is used to collect driving data in real time and timestamp alignment and multimodal data fusion are performed in the vehicle edge server to construct a BEV image as driving status input information;
[0353] Using the pre-trained driving state encoding module as upstream support, the decision control model selects skill action parameters based on driving state information and converts them into drivable motion trajectories for the vehicle through the skill generation module;
[0354] The vehicle control unit obtains the vehicle motion trajectory transmitted by the vehicle edge server and controls the vehicle to implement trajectory tracking. During this period, the vehicle sensor module feeds back the environmental changes to the vehicle edge server in real time and calculates the environmental reward information according to the reward function.
[0355] The vehicle-mounted edge server collects real driving experience samples online in the form of tuples and stores them in the first playback buffer; the driving risk analysis module analyzes the vehicle driving status in real time, extracts the corresponding driving data as risk samples, and stores them in the risk sample buffer;
[0356] If the risk sample buffer is full, upload it to the cloud server and use the real risk samples in it to train the data synthesis module;
[0357] Generate synthetic risk samples using the data synthesis module, send them to the on-board edge server, and store them in the synthetic sample buffer;
[0358] Small batches of samples are extracted from the first playback buffer and the synthetic sample buffer according to the sampling ratio ω, and then the decision control model is updated based on the mixed samples obtained by sampling; since this stage mainly conducts targeted learning for risky driving situations, a random sampling method is used for the synthetic risk samples in the synthetic sample buffer, and importance sampling is performed for the real samples in the first playback buffer according to the relevance to the risk situation;
[0359] Determine the end condition of fine-tuning: If the maximum number of fine-tuning iterations is reached, the fine-tuning is completed; otherwise, go to the step of using the on-board sensor module on the vehicle side to collect driving data in real time and perform timestamp alignment and multimodal data fusion in the on-board edge server, and repeat the above steps.
[0360] Given the differences in vehicle behavior requirements in different driving scenarios, it can be observed that the behavior strategies required by vehicles in different driving environments are significantly different. In high-speed straight-driving scenarios, the optimization of vehicle lane change behavior becomes the key; at intersections, vehicles need to flexibly adjust their driving direction and fully consider the dynamics of traffic from four directions; when driving on roundabouts, drivers need to choose the best time to merge based on the behavior of vehicles in front and behind, and be highly cautious about right turns.
[0361] In order to address the problem of decreased applicability of the decision-making control model due to significant changes in vehicle driving scenarios during subsequent applications, the above-mentioned model transfer and fine-tuning method can also be used to continuously adjust and learn the autonomous driving decision model to improve the applicability and generalization of the autonomous driving decision-making control system for unknown new scenarios.
[0362] The data synthesis module provided in the embodiment of the present invention can act on the online learning process of the autonomous driving decision model and can also act on the model migration fine-tuning process of the autonomous driving decision model. The update and diffusion process of the diffusion model in the above data synthesis module are introduced based on risk driving samples, where the risk driving samples can also be replaced by real car driving samples collected during the online learning process of the autonomous driving decision model.
[0363] It should be noted that in the embodiments of the autonomous driving decision control method of the present invention, some of the steps or features can be ignored or not executed. The hardware or software functional modules divided for the convenience of explanation are not the only implementation form of the autonomous driving decision control method provided in the embodiments of the present invention.
[0364] The above describes in detail the various embodiments corresponding to the autonomous driving decision-making control method. On this basis, the present invention also discloses an autonomous driving decision-making control device, equipment, non-volatile storage medium and computer program product corresponding to the above method.
[0365] Figure 7 A schematic diagram of the structure of an automatic driving decision control device provided in an embodiment of the present invention.
[0366] like Figure 7 As shown, the automatic driving decision control device provided by the embodiment of the present invention includes:
[0367] The model updating module 701 is used to obtain an automatic driving decision model; use the automatic driving decision model to control the movement of the target vehicle, and optimize the automatic driving decision model according to the interaction process between the target vehicle and the driving environment. During the optimization process, the vehicle risk driving data is extracted from the first real vehicle driving sample collected as the risk driving sample, and the model parameters of the automatic driving decision model are adjusted using the first real vehicle driving sample and the synthetic risk driving sample generated by sample expansion based on the risk driving sample; after the model optimization end condition is met, the optimized automatic driving decision model is obtained;
[0368] A data synthesis module 702 is used to perform sample expansion on the risky driving sample to generate a synthetic risky driving sample;
[0369] The decision control unit 703 is used to perform vehicle driving control using the optimized automatic driving decision model.
[0370] It should be noted that in each implementation of the automatic driving decision control device provided by the embodiment of the present invention, the division of units is only a logical functional division, and other division methods may be used. The connection method between different units may be electrical, mechanical or other connection methods. Separated units may be located in the same physical location or distributed on multiple network nodes. Each unit may be implemented in the form of hardware or in the form of a software functional unit. That is, part or all of the units provided in the embodiment of the present invention may be selected according to actual needs and the corresponding connection method or integration method may be adopted to achieve the purpose of the embodiment of the present invention.
[0371] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0372] Figure 8 A schematic diagram of the structure of an automatic driving decision control device provided in an embodiment of the present invention.
[0373] like Figure 8 As shown, the automatic driving decision control device provided by the embodiment of the present invention includes:
[0374] A memory 810 for storing a computer program 811;
[0375] The processor 820 is used to execute the computer program 811, which, when executed by the processor 820, implements the steps of the autonomous driving decision control method provided in any one of the above embodiments.
[0376] Among them, the processor 820 may include one or more processing cores, such as a 3-core processor, an 8-core processor, etc. The processor 820 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 820 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 820 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 820 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0377] The memory 810 may include one or more non-volatile storage media, which may be non-transitory. The memory 810 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 810 is at least used to store the following computer program 811, wherein the computer program 811, after being loaded and executed by the processor 820, can implement the relevant steps in the automatic driving decision control method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 810 may also include an operating system 812 and data 813, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 812 may be Windows or other types of operating systems. Data 813 may include, but is not limited to, the data involved in the above method.
[0378] In some embodiments, the autonomous driving decision control device may also include a display screen 830 , a power supply 840 , a communication interface 850 , an input / output interface 860 , a sensor 870 , and a communication bus 880 .
[0379] Those skilled in the art will understand that Figure 8 The structure shown in does not constitute a limitation of the autonomous driving decision control device and may include more or fewer components than shown in the figure.
[0380] The autonomous driving decision control device provided in an embodiment of the present invention includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the steps of the autonomous driving decision control method provided in the above embodiment, and the effect is the same as above.
[0381] An embodiment of the present invention provides a non-volatile storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the autonomous driving decision control method provided in any one of the above embodiments can be implemented.
[0382] The non-volatile storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0383] For the introduction of the non-volatile storage medium provided in the embodiment of the present invention, please refer to the above-mentioned method embodiment, and the effect thereof is the same as the automatic driving decision control method provided in the embodiment of the present invention, and the present invention will not elaborate on it here.
[0384] An embodiment of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the autonomous driving decision control method provided in any one of the above embodiments.
[0385] For an introduction to the computer program product provided by an embodiment of the present invention, please refer to the above-mentioned method embodiment, and the effect thereof is the same as the automatic driving decision control method provided by an embodiment of the present invention, and the present invention will not elaborate on it here.
[0386] The above is a detailed introduction to the autonomous driving decision control method, device, system, equipment and storage medium provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can refer to each other. For the devices, equipment, non-volatile storage media and computer program products disclosed in the embodiments, since they correspond to the methods and systems disclosed in the embodiments, the description is relatively simple, and the relevant parts can refer to the description of the methods and systems. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.
[0387] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. An automatic driving decision control method, characterized in that: include: Obtain the autonomous driving decision model; The target vehicle movement is controlled by using the autonomous driving decision model, and the autonomous driving decision model is optimized according to the interaction process between the target vehicle and the driving environment. During the optimization process, vehicle risk driving data is extracted from the first collected real vehicle driving sample as a risk driving sample, the risk driving sample is expanded to generate a synthetic risk driving sample, and the model parameters of the autonomous driving decision model are adjusted by using the first real vehicle driving sample and the synthetic risk driving sample; After reaching the end condition of model optimization, the optimized autonomous driving decision model is obtained; Using the optimized automatic driving decision model to control vehicle driving; The step of performing sample expansion on the risky driving sample to generate a synthetic risky driving sample includes: using a diffusion model to generate the synthetic risky driving sample having the same sample distribution as the risky driving sample; The step of collecting the driving state parameters in the first real vehicle driving sample includes: collecting vehicle state information of the target vehicle and environmental state information of the driving environment during the interaction between the target vehicle and the driving environment to obtain multimodal state perception data; using a pre-trained driving state encoding module to perform dimensionality reduction processing on the multimodal state perception data and outputting driving state parameters that meet a preset distribution; The training step of the diffusion model includes: iteratively training the denoiser network, extracting denoised training samples from the risky driving samples in each iteration, adding noise to the denoised training samples according to a preset noise level schedule to obtain noisy samples, denoising the noisy samples using the denoiser network to obtain denoised samples, calculating the difference loss value of the denoiser network using the error between the denoised samples and the corresponding denoised training samples, and performing back propagation to update the model parameters of the denoiser network; when the denoiser iteration end condition is met, obtaining the diffusion model; The step of using a diffusion model to generate the synthetic risky driving sample having the same sample distribution as the risky driving sample comprises: The noise level schedule and sampling factor are set according to the following formula: ; ; Based on noise level Sampling generates random noise samples as initial input ; according to and , for any t Noise samples during the iteration , with noise samples Random sampling is performed at the center; is random noise; Using the diffusion model Calculate the t The denoising score value of the iteration process; According to the noise sample of the next iteration step ; Among them, if ,but ; like , then according to Calculate the t +1 denoising score value of the iteration process; If the sampling end condition is met, it is determined that the generation of the synthetic risky driving sample is completed, and the synthetic risky driving sample is output; If the sampling end condition is not met, then return to the t Noise samples during the iteration , with noise samples Steps for random sampling for the center; in, is the diffusion model t The noise level scheduling of the iterative process, is the control coefficient of noise level scheduling, is the standard deviation of the distribution of the maximum noise level, is the standard deviation of the distribution of the minimum noise level; is the diffusion model t The sampling coefficient of the iteration process, is the preset diffusion sampling step number, , is the noise sampling amplitude, is the lower limit of the noise level, is the upper limit of noise level; , , are random sampling coefficients, and ; For the t The sampling noise of the iterative process is For the t The noise sample input in the iteration process, For noise samples is the sampling noise sample obtained by random sampling from the center, For The random noise sampled from is a multidimensional standard normal distribution, I is the identity matrix; is the sampled noise sample The denoising score value, is the sampled noise sample The denoised output obtained by inputting the denoiser model; For the t +1 Noise sample input during the iteration, is the noise sample t +1 Noise level scheduling for the iteration process; is the noise sample The denoising score value, is the noise sample The denoised output of the input denoiser model.
2. The automatic driving decision control method according to claim 1, characterized in that: The vehicle risk driving data is extracted from the first collected real vehicle driving sample as the risk driving sample, including: The first real vehicle driving sample is subjected to risk analysis based on at least one of the vehicle driving operation type, vehicle motion state parameters, vehicle fault information detection results, vehicle driving trajectory, and driving environment data, and the vehicle risk driving data that meets the risk assessment conditions is extracted as the risk driving sample.
3. The automatic driving decision control method according to claim 2, characterized in that: Performing risk analysis on the first real vehicle driving sample according to the vehicle driving operation type to extract the vehicle risk driving data includes: If at least one of the following conditions is met: the frequency of sudden acceleration operations is higher than the threshold number of sudden acceleration operations, the frequency of sudden braking operations is higher than the threshold number of sudden braking operations, and the frequency of sudden steering operations is higher than the threshold number of sudden steering operations, then the corresponding first real vehicle driving sample is determined to be the vehicle risk driving data.
4. The automatic driving decision control method according to claim 2, characterized in that: Performing risk analysis on the first real vehicle driving sample according to the vehicle motion state parameter to extract the vehicle risk driving data includes: If at least one of the following conditions is met: the time during which the vehicle running speed is greater than the first speed threshold exceeds the first speeding threshold, and the vehicle running speed is greater than the second speed threshold, then the corresponding first real vehicle driving sample is determined to be the vehicle risk driving data; The first rate threshold is smaller than the second rate threshold.
5. The automatic driving decision control method according to claim 2, characterized in that: Performing risk analysis on the first real vehicle driving sample according to the vehicle fault information detection result to extract the vehicle risk driving data includes: Accessing the vehicle automatic diagnosis interface to obtain the vehicle fault information detection result; If a vehicle failure event exists in the vehicle failure information detection result, the corresponding first real vehicle driving sample is determined to be the vehicle risk driving data.
6. The automatic driving decision control method according to claim 2, characterized in that: Performing risk analysis on the first real vehicle driving sample according to the vehicle driving trajectory to extract the vehicle risk driving data includes: Acquiring the vehicle's driving trajectory through a vehicle-mounted positioning module; Detecting the smoothness of the vehicle's driving trajectory and the overlap between the vehicle's driving trajectory and a non-driving area; If at least one of the following conditions is met: the trajectory smoothness of the vehicle driving trajectory does not meet the trajectory smoothness condition and the number of path points in the vehicle driving trajectory located in the non-driving area reaches an overlapping threshold, the corresponding first real vehicle driving sample is determined to be the vehicle risk driving data.
7. The automatic driving decision control method according to claim 2, characterized in that: Performing risk analysis on the first real vehicle driving sample according to the driving environment data to extract the vehicle risk driving data includes: Acquiring at least one of the driving environment data of weather condition parameters, road condition parameters, traffic flow parameters and traffic density parameters; If the weather condition parameter is a risky weather type, determining the corresponding first real vehicle driving sample as the vehicle risky driving data; If the road flatness in the road condition parameter does not meet the flatness condition, the obstacle index in the road condition parameter meets the obstacle threshold, and the road condition parameter has at least one of the construction environment parameters, then the corresponding first real vehicle driving sample is determined to be the vehicle risk driving data; If at least one of the following conditions is met: the traffic flow parameter is greater than the traffic flow threshold, and the traffic density parameter is greater than the traffic density threshold, the corresponding first real vehicle driving sample is determined to be the vehicle risk driving data.
8. The automatic driving decision control method according to claim 1, characterized in that: Collecting the first real vehicle driving sample includes: Using a driving state encoding module to encode the collected vehicle driving state perception data at the current moment to obtain a driving state parameter at the current moment and input it into the automatic driving decision model; Using the automatic driving decision model to select driving action parameters according to the driving state parameters at the current moment, and using the selected driving action parameters to drive the vehicle to move; In the process of driving the target vehicle to move and interact with the driving environment, collecting environmental feedback information to calculate environmental reward parameters; Using the driving state encoding module to encode the collected vehicle driving state perception data at the next moment to obtain the driving state parameters at the next moment; The first real vehicle driving sample is constructed with a set of driving state parameters, driving action parameters, environmental reward parameters at the current moment and driving state parameters at the next moment.
9. The automatic driving decision control method according to claim 8, characterized in that: The driving state encoding module is used to encode the collected vehicle driving state perception data to obtain driving state parameters, including: The pre-trained driving state encoding module is used to perform dimensionality reduction processing on the collected vehicle driving state perception data and output driving state parameters that meet the preset distribution.
10. The automatic driving decision control method according to claim 8, characterized in that: The pre-training step of the driving state encoding module includes: Obtain vehicle driving data; Extracting vehicle state information and environment state information from the vehicle driving data to construct multimodal state perception data to obtain a driving state data set; A symmetric convolutional neural network structure is used to build a driving state encoding network and a driving state decoding network; Extracting encoder training samples from the driving state data set to train the driving state encoding network and the driving state decoding network; during the training process, inputting the encoder training samples into the driving state encoding network to extract the sample data distribution of the encoder training samples; sampling from the sample data distribution of the encoder training samples to obtain sample distribution feature codes; inputting the sample distribution feature codes into the driving state decoding network to output reconstructed samples; maximizing the likelihood of the reconstructed samples and the corresponding encoder training samples and minimizing the relative entropy between the potential representation distribution of the encoder training samples and the standard normal distribution as the training objectives; performing loss optimization training on the driving state encoding network and the driving state decoding network; After the driving state encoding module training end condition is reached, the driving state encoding module is obtained.
11. The automatic driving decision control method according to claim 10, characterized in that: The training loss function of the driving state encoding module is: ; in, is the training loss function of the driving state encoding module, Parameters of the driving state encoding network, Parameters of the driving state decoding network, is the encoder training sample, is the number of encoder training samples, is the sample data distribution of the encoder training samples, is the standard normal distribution, is the KL divergence between the sample data distribution of the encoder training sample and the standard normal distribution, M is the number of distribution variables drawn from the standard normal distribution, is the reconstruction sample, is the encoder training sample, is the square of the two-norm calculation, For the n The variance of the encoder training samples, For the n The mean of the encoder training samples.
12. The automatic driving decision control method according to claim 1, characterized in that: The training steps of the diffusion model include: Initialize the network parameters of the denoiser network ; Calculate the distribution standard deviation based on the denoised sample data set consisting of the risky driving samples ; Randomly extract a small batch of denoising training samples from the denoising sample dataset ; Set the noise based on a lognormal distribution ,according to Add noise to the denoised training samples to obtain noisy samples ; according to , the denoiser network is used to deduce the noisy samples Perform denoising processing; wherein, is the output of the denoiser network i the denoised samples; according to Calculating a difference loss value between the denoised sample and the corresponding denoised training sample; Updating the network parameters of the denoiser network using a back-propagation method to reduce the difference loss value; Repeat the above steps until the denoiser iteration end condition is reached, and the diffusion model is obtained; in, is the number of denoising training samples, For the i The denoising training samples, For the i The noisy samples, For the i The denoised samples, For noise, is the distribution standard deviation of the denoised sample data set, is the standard deviation of the noise distribution, is the difference loss value between the denoised sample and the corresponding denoised training sample, is the denoised sample, x is the denoising training sample, E[·] is the difference loss calculation, The square of the 2-norm.
13. The automatic driving decision control method according to claim 1, characterized in that: The step of using a diffusion model to generate the synthetic risky driving sample having the same sample distribution as the risky driving sample comprises: During the optimization process of the autonomous driving decision model, when a diffusion model update condition is met, the model parameters of the diffusion model are updated using the currently collected risky driving samples, and then the synthetic risky driving samples are generated using the updated diffusion model; Among them, the diffusion model update condition is that the autonomous driving decision model has undergone a first preset number of iterations and / or the cumulative data volume of the risky driving samples has reached a first preset data volume since the model parameters of the diffusion model were last updated.
14. The automatic driving decision control method according to claim 1, characterized in that: The autonomous driving decision model is a model pre-trained in an autonomous driving simulation system; Using the first real vehicle driving sample and the synthetic risk driving sample to adjust model parameters of the automatic driving decision model includes: The automatic driving decision model is fine-tuned by model migration during the interaction between the target vehicle and the driving environment.
15. An automatic driving decision control system, characterized in that: include: A cloud server, an on-board edge server provided on a target vehicle, and an autonomous driving controller provided on the target vehicle; The vehicle-mounted edge server is used to obtain an autonomous driving decision model, and optimize the autonomous driving decision model in the process of controlling the interaction between the target vehicle movement and the driving environment using the autonomous driving decision model. In the optimization process, vehicle risk driving data is extracted from the first collected real vehicle driving sample as a risk driving sample, and the risk driving sample is sent to the cloud server, and the cloud server performs sample expansion on the risk driving sample to generate a synthetic risk driving sample, and the model parameters of the autonomous driving decision model are adjusted using the first real vehicle driving sample and the synthetic risk driving sample; after the model optimization end condition is reached, the optimized autonomous driving decision model is obtained; and the target vehicle movement is controlled through the autonomous driving controller using the autonomous driving decision model; The step of performing sample expansion on the risky driving sample to generate a synthetic risky driving sample includes: using a diffusion model to generate the synthetic risky driving sample having the same sample distribution as the risky driving sample; The step of collecting the driving state parameters in the first real vehicle driving sample includes: collecting vehicle state information of the target vehicle and environmental state information of the driving environment during the interaction between the target vehicle and the driving environment to obtain multimodal state perception data; using a pre-trained driving state encoding module to perform dimensionality reduction processing on the multimodal state perception data and outputting driving state parameters that meet a preset distribution; The training step of the diffusion model includes: iteratively training the denoiser network, extracting denoised training samples from the risky driving samples in each iteration, adding noise to the denoised training samples according to a preset noise level schedule to obtain noisy samples, denoising the noisy samples using the denoiser network to obtain denoised samples, calculating the difference loss value of the denoiser network using the error between the denoised samples and the corresponding denoised training samples, and performing back propagation to update the model parameters of the denoiser network; when the denoiser iteration end condition is met, obtaining the diffusion model; The step of using a diffusion model to generate the synthetic risky driving sample having the same sample distribution as the risky driving sample comprises: The noise level schedule and sampling factor are set according to the following formula: ; ; Based on noise level Sampling generates random noise samples as initial input ; according to and , for any t Noise samples during the iteration , with noise samples Random sampling is performed at the center; is random noise; Using the diffusion model Calculate the t The denoising score value of the iteration process; According to the noise sample of the next iteration step ; Among them, if ,but ; like , then according to Calculate the t +1 denoising score value of the iteration process; If the sampling end condition is met, it is determined that the generation of the synthetic risky driving sample is completed, and the synthetic risky driving sample is output; If the sampling end condition is not met, then return to the t Noise samples during the iteration , with noise samples Steps for random sampling for the center; in, is the diffusion model t The noise level scheduling of the iterative process, is the control coefficient of noise level scheduling, is the standard deviation of the distribution of the maximum noise level, is the standard deviation of the distribution of the minimum noise level; is the diffusion model t The sampling coefficient of the iteration process, is the preset diffusion sampling step number, , is the noise sampling amplitude, is the lower limit of the noise level, is the upper limit of noise level; , , are random sampling coefficients, and ; For the t The sampling noise of the iterative process is For the t The noise sample input in the iteration process, For noise samples is the sampling noise sample obtained by random sampling from the center, For The random noise sampled from is a multidimensional standard normal distribution, I is the identity matrix; is the sampled noise sample The denoising score of is the sampled noise sample The denoised output obtained by inputting the denoiser model; For the t +1 Noise sample input during the iteration, is the noise sample t +1 Noise level scheduling for the iteration process; is the noise sample The denoising score of is the noise sample The denoised output of the input denoiser model.
16. An automatic driving decision control device, characterized in that: include: A model updating module is used to obtain an autonomous driving decision model; use the autonomous driving decision model to control the movement of a target vehicle, and optimize the autonomous driving decision model according to an interaction process between the target vehicle and a driving environment. During the optimization process, vehicle risk driving data is extracted from a first real vehicle driving sample collected as a risk driving sample, and the model parameters of the autonomous driving decision model are adjusted using the first real vehicle driving sample and a synthetic risk driving sample generated by sample expansion based on the risk driving sample; After reaching the end condition of model optimization, the optimized autonomous driving decision model is obtained; A data synthesis module, used for performing sample expansion on the risky driving sample to generate the synthetic risky driving sample; A decision control unit, used to perform vehicle driving control using the optimized automatic driving decision model; The step of performing sample expansion on the risky driving sample to generate a synthetic risky driving sample includes: using a diffusion model to generate the synthetic risky driving sample having the same sample distribution as the risky driving sample; The step of collecting the driving state parameters in the first real vehicle driving sample includes: collecting vehicle state information of the target vehicle and environmental state information of the driving environment during the interaction between the target vehicle and the driving environment to obtain multimodal state perception data; using a pre-trained driving state encoding module to perform dimensionality reduction processing on the multimodal state perception data and outputting driving state parameters that meet a preset distribution; The training step of the diffusion model includes: iteratively training the denoiser network, extracting denoised training samples from the risky driving samples in each iteration, adding noise to the denoised training samples according to a preset noise level schedule to obtain noisy samples, denoising the noisy samples using the denoiser network to obtain denoised samples, calculating the difference loss value of the denoiser network using the error between the denoised samples and the corresponding denoised training samples, and performing back propagation to update the model parameters of the denoiser network; when the denoiser iteration end condition is met, obtaining the diffusion model; The step of using a diffusion model to generate the synthetic risky driving sample having the same sample distribution as the risky driving sample comprises: The noise level schedule and sampling factor are set according to the following formula: ; ; Based on noise level Sampling generates random noise samples as initial input ; according to and , for any t Noise samples during the iteration , with noise samples Random sampling is performed at the center; is random noise; Using the diffusion model Calculate the t The denoising score value of the iteration process; According to the noise sample of the next iteration step ; Among them, if ,but ; like , then according to Calculate the t +1 denoising score value of the iteration process; If the sampling end condition is met, it is determined that the generation of the synthetic risky driving sample is completed, and the synthetic risky driving sample is output; If the sampling end condition is not met, then return to the t Noise samples during the iteration , with noise samples Steps for random sampling for the center; in, is the diffusion model t The noise level scheduling of the iterative process, is the control coefficient of noise level scheduling, is the standard deviation of the distribution of the maximum noise level, is the standard deviation of the distribution of the minimum noise level; is the diffusion model t The sampling coefficient of the iteration process, is the preset diffusion sampling step number, , is the noise sampling amplitude, is the lower limit of the noise level, is the upper limit of noise level; , , are random sampling coefficients, and ; For the t The sampling noise of the iterative process is For the t The noise sample input in the iteration process, For noise samples is the sampling noise sample obtained by random sampling from the center, For The random noise sampled from is a multidimensional standard normal distribution, I is the identity matrix; is the sampled noise sample The denoising score of is the sampled noise sample The denoised output obtained by inputting the denoiser model; For the t +1 Noise sample input during the iteration, is the noise sample t +1 Noise level scheduling for the iteration process; is the noise sample The denoising score of is the noise sample The denoised output of the input denoiser model.
17. An automatic driving decision control device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program, and when the computer program is executed by the processor, the steps of the automatic driving decision control method as described in any one of claims 1 to 14 are implemented.
18. A non-volatile storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the automatic driving decision control method as described in any one of claims 1 to 14 are implemented.
19. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by the processor, the steps of the autonomous driving decision control method as described in any one of claims 1 to 14 are implemented.
