A method and system for generating an autonomous driving behavior model

The adaptive behavior model is generated through the causal inference engine and the multi-agent interaction model, which solves the problem of insufficient adaptability of the autonomous driving system in complex environments and multi-agent interaction dynamics, and achieves more reasonable and safe driving decisions and user customization. experience.

CN118410875BActive Publication Date: 2024-10-11GAC AION NEW ENERGY AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410844735.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-11
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

Existing autonomous driving systems lack adaptability and understanding of deep causal relationships when faced with complex environmental changes and multi-agent interaction dynamics, and are unable to make more reasonable and safer driving decisions.

Method used

By obtaining vehicle driving data and inputting it into the causal inference engine and the multi-agent interaction model for training, an adaptive behavior model is generated. Combined with the analysis data of the causal inference engine and the multi-agent interaction model, reinforcement learning is used to train the adaptive behavior synthesis component. Optimize autonomous driving behavior.

Benefits of technology

It achieves highly adaptable and intelligent driving behavior, can imitate human driving behavior in complex environments, optimize safety, efficiency and comfort, and reduce the risk of autonomous driving behavior.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118410875B_ABST
    Figure CN118410875B_ABST
Patent Text Reader

Abstract

The present application provides a method and system for generating an autonomous driving behavior model, which relates to the field of autonomous driving technology. The method for generating an autonomous driving behavior model comprises: obtaining vehicle driving data; inputting the vehicle driving data into a causal reasoning engine to obtain causal relationship data; inputting the vehicle driving data into a multi-agent interaction model for training to obtain dynamic interaction data between multi-agents; training an adaptive behavior synthesis component based on the causal relationship data and the dynamic interaction data to obtain an autonomous driving behavior model. The method for generating an autonomous driving behavior model can achieve the technical effect of improving the rationality of autonomous driving behavior and reducing the danger of autonomous driving behavior.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of autonomous driving technology, and more specifically, to a method and system for generating an autonomous driving behavior model. Background Art

[0002] At present, with the rapid progress of autonomous driving technology, people's expectations for autonomous driving cars are not limited to safety and efficiency, but also include whether they can imitate the behavior habits of human drivers and provide a more humane driving experience. Therefore, researchers and engineers have begun to explore how to make autonomous driving vehicles better adapt to human driving habits. Research in this field has become a hot topic in the development of autonomous driving technology.

[0003] Generally speaking, the design and implementation of an autonomous driving habit optimization system based on imitation learning is a technical solution that aims to improve the adaptability and comfort of autonomous driving systems by deeply learning the driving behaviors and habits of human drivers. The core of this method is to collect and analyze a large amount of human driving data, including the driver's operating methods in different traffic environments, the driving decision-making process, and the reaction patterns to specific traffic conditions. With this data, the autonomous driving system can gradually learn and imitate the behaviors and habits of human drivers with the help of machine learning and deep learning algorithms. This includes not only basic driving operations such as acceleration, deceleration, and steering, but also more complex decision-making processes, such as how to maintain a safe distance in a busy traffic environment, how to adjust the driving speed according to road conditions, and how to predict and respond to sudden traffic conditions. In addition, the system based on imitation learning can also be personalized and optimized according to the habits of individual drivers, thereby providing a more customized driving experience for different users. For example, the system can identify the user's preferred driving style, such as smooth driving or preference for fast driving, and adjust the behavior pattern of the autonomous driving vehicle accordingly to better meet the user's personal preferences.

[0004] Although existing technologies perform well in specific situations, they often lack adaptability to complex environmental changes and understanding of deep causal relationships, especially when predicting and responding to multi-agent interaction dynamics. In addition, traditional methods often only focus on surface pattern matching in learning and imitating human driving behavior, ignoring the underlying causal logic and situational changes. This makes it impossible to make more reasonable and safer driving decisions. Summary of the invention

[0005] The purpose of this application is to provide a method, system, electronic device and computer-readable storage medium for generating an autonomous driving behavior model, which can achieve the technical effect of improving the rationality of autonomous driving behavior and reducing the danger of autonomous driving behavior.

[0006] In a first aspect, the present application provides a method for generating an autonomous driving behavior model, comprising:

[0007] Obtain vehicle driving data;

[0008] Inputting the vehicle driving data into a causal reasoning engine to obtain causal relationship data;

[0009] Inputting the vehicle driving data into a multi-agent interaction model for training to obtain dynamic interaction data between the multi-agents;

[0010] An adaptive behavior synthesis component is trained based on the causal relationship data and the dynamic interaction data to obtain an autonomous driving behavior model.

[0011] In the above implementation process, the method for generating an autonomous driving behavior model obtains an autonomous driving behavior model by inputting vehicle driving data into a causal reasoning engine and a multi-agent interaction model for training, and then training an adaptive behavior synthesis component based on causal relationship data and dynamic interaction data; the adaptive behavior component combines the analysis data obtained by the causal inference engine and the multi-agent interaction model to achieve highly adaptable and intelligent driving behavior, and through a novel reward shaping mechanism enhanced by causal model information, it can not only imitate human driving behavior, but also optimize safety, efficiency and comfort; thus, the method for generating an autonomous driving behavior model can achieve the technical effect of improving the rationality of autonomous driving behavior and reducing the danger of autonomous driving behavior.

[0012] Furthermore, the step of obtaining vehicle driving data includes:

[0013] Acquire driving sensor data of the vehicle to be tested, wherein the driving sensor data includes one or more of GPS receiver data, speed sensor data, acceleration sensor data, gyroscope data, camera data, lidar data, and inertial measurement unit data;

[0014] The driving sensor data is standardized, and data fusion is performed through feature hashing and / or feature extraction is performed through a deep learning model to obtain vehicle driving data.

[0015] In the above implementation process, in the data collection stage, driving sensor data is collected by installing multiple sensors on the vehicle to be tested. Since in the autonomous driving system, driving sensor data often comes from heterogeneous data from different sources, in order to provide a comprehensive view and help the model better learn driving behavior, the data is first standardized, and the data is standardized to a normal distribution according to the mean and standard deviation of the different source data. For structured data, feature hashing is used, and for unstructured data, the corresponding deep learning model is used for feature extraction, and finally feature fusion is achieved.

[0016] Furthermore, the vehicle driving data includes structured data and unstructured data, the causal reasoning engine includes a causal inference unit and a deep learning unit, the deep learning unit includes a graph neural network, a convolutional neural network and a recurrent neural network, and the step of inputting the vehicle driving data into the causal reasoning engine to obtain causal relationship data includes:

[0017] Inputting the structured data into the graph neural network to obtain dynamically changing data;

[0018] Inputting the unstructured data into the convolutional neural network and / or the recurrent neural network to obtain spatial feature information and temporal feature information;

[0019] The causal inference unit performs processing based on the dynamic change data, the spatial feature information and the temporal feature information to obtain causal relationship data.

[0020] In the above implementation process, the graph neural network-based method can process structured data and has the ability to capture complex patterns; unstructured data is processed based on convolutional neural networks and recurrent neural networks, where convolutional neural networks are used to extract spatial features, and recurrent neural networks are used to process time dependencies and capture causal effects that change over time; thus, through the close integration of the above-mentioned causal inference unit and deep learning unit, a unified framework is formed, which can not only learn complex causal relationships, but also adapt to dynamic changes in the environment, thereby providing real-time, causal-based decision support, thereby improving the decision-making efficiency of autonomous driving vehicles.

[0021] Furthermore, the multi-agent interaction model includes a plurality of interactive agents, and the formula of the multi-agent interaction model is expressed as follows:

[0022] ;

[0023] in, Indicates Layer Intelligence The characteristic vector of Representing the intelligent body Neighbors, and are trainable weights and biases, respectively. is a non-linear activation function.

[0024] In the above implementation process, the multi-agent interaction model allows the model to learn complex interaction patterns and predict how changes in the behavior of one agent may affect other agents; through this mechanism, the causal inference ability of the autonomous driving behavior model generation method can be applied to explain and predict dynamic interactions in multi-agent systems, which can improve the understanding of complex traffic environments in the autonomous driving decision-making process, and enable the autonomous driving system to adapt to changing traffic conditions more flexibly and accurately.

[0025] Furthermore, the adaptive behavior synthesis component includes a dynamic reward function, and the formula of the dynamic reward function is expressed as:

[0026] ;

[0027] Among them, R efficiency represents the efficiency parameter, R safety represents the safety parameter, R comfort represents the comfort parameter, R causal represents the causal consistency parameter, and ω1 to ω4 represent adjustable coefficients.

[0028] In the above implementation process, the formula of the dynamic reward function can be dynamically adjusted according to real-time data and prediction models, so that the autonomous driving behavior model generation method can maintain a high degree of adaptability and responsiveness in a constantly changing environment.

[0029] Furthermore, the step of training an adaptive behavior synthesis component based on the causal relationship data and the dynamic interaction data to obtain an autonomous driving behavior model includes:

[0030] Training an adaptive behavior synthesis component through reinforcement learning, the causal relationship data, and the dynamic interaction data to obtain behavior strategy data, wherein the strategy data includes a strategy network, and the strategy network outputs an expected reward value according to a current state and possible behavior selections;

[0031] An autonomous driving behavior model is obtained based on the behavior strategy data.

[0032] In the above implementation process, the adaptive behavior synthesis component is trained through reinforcement learning so that it can make the best decision in a changing traffic environment; moreover, through the policy network, the policy network outputs the expected reward value based on the current state and possible behavior choices. Through trial and error and reward feedback, the policy network is gradually optimized and learns how to make the best decision in different situations.

[0033] In a second aspect, the present application provides an autonomous driving behavior model generation system, comprising:

[0034] A driving data module, used to obtain vehicle driving data;

[0035] A causal reasoning module, used for inputting the vehicle driving data into a causal reasoning engine to obtain causal relationship data;

[0036] A multi-agent interaction module, used to input the vehicle driving data into a multi-agent interaction model for training to obtain dynamic interaction data between the multi-agents;

[0037] The autonomous driving behavior module is used to train an adaptive behavior synthesis component based on the causal relationship data and the dynamic interaction data to obtain an autonomous driving behavior model.

[0038] Furthermore, the driving data module is specifically used for:

[0039] Acquire driving sensor data of the vehicle to be tested, wherein the driving sensor data includes one or more of GPS receiver data, speed sensor data, acceleration sensor data, gyroscope data, camera data, lidar data, and inertial measurement unit data;

[0040] The driving sensor data is standardized, and data fusion is performed through feature hashing and / or feature extraction is performed through a deep learning model to obtain vehicle driving data.

[0041] Furthermore, the vehicle driving data includes structured data and unstructured data, the causal inference engine includes a causal inference unit and a deep learning unit, the deep learning unit includes a graph neural network, a convolutional neural network and a recurrent neural network, and the causal inference module is specifically used to:

[0042] Inputting the structured data into the graph neural network to obtain dynamically changing data;

[0043] Inputting the unstructured data into the convolutional neural network and / or the recurrent neural network to obtain spatial feature information and temporal feature information;

[0044] The causal inference unit performs processing based on the dynamic change data, the spatial feature information and the temporal feature information to obtain causal relationship data.

[0045] Furthermore, the autonomous driving behavior module is specifically used to:

[0046] Training an adaptive behavior synthesis component through reinforcement learning, the causal relationship data, and the dynamic interaction data to obtain behavior strategy data, wherein the strategy data includes a strategy network, and the strategy network outputs an expected reward value according to a current state and possible behavior selections;

[0047] An autonomous driving behavior model is obtained based on the behavior strategy data.

[0048] In a third aspect, the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of the first aspects when executing the computer program.

[0049] In a fourth aspect, the present application provides a computer-readable storage medium, on which instructions are stored. When the instructions are executed on a computer, the computer executes the method as described in any one of the first aspects.

[0050] In a fifth aspect, the present application provides a computer program product, which, when running on a computer, enables the computer to execute the method as described in any one of the first aspects.

[0051] Other features and advantages disclosed in the present application will be described in the following description, or some features and advantages can be inferred or determined without doubt from the description, or can be learned by implementing the above-mentioned technology disclosed in the present application.

[0052] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0054] Figure 1 A flowchart of a method for generating an autonomous driving behavior model provided in an embodiment of the present application;

[0055] Figure 2 A flowchart of another method for generating an autonomous driving behavior model provided in an embodiment of the present application;

[0056] Figure 3 A structural block diagram of an autonomous driving behavior model generation system provided in an embodiment of the present application;

[0057] Figure 4 A structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0058] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0059] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0060] Generally speaking, although conventional autonomous driving systems perform well in specific situations, they often lack adaptability to complex environmental changes and understanding of deep causal relationships, especially when predicting and responding to multi-agent interaction dynamics. In addition, traditional methods often only focus on surface pattern matching in learning and imitating human driving behavior, ignoring the underlying causal logic and situational changes. It is impossible to make more reasonable and safer driving decisions; currently commonly used autonomous driving still has the following defects:

[0061] 1. Regression learning is only performed through driving data, so it can only perform well in a specific training environment. The model does not understand the essential reasons for the driving behavior. Therefore, in complex situations, the model cannot generalize well and it is difficult to make the best decision.

[0062] 2. Often only the amount of data is considered, and the accuracy of the model is often increased by increasing the amount of training data. For example, a certain amount of data is generated by the GAN model for training, but there is a lack of finding the connection between the existing data, which makes it impossible to fully learn and utilize the data;

[0063] 3. Existing imitation learning autonomous driving methods only consider the data of a single vehicle. In actual driving situations, multiple vehicles will actually affect each other, so the data of a single vehicle is difficult to handle complex situations.

[0064] In order to solve the above-mentioned technical problems, the embodiments of the present application provide a method, system, electronic device and computer-readable storage medium for generating an autonomous driving behavior model, which can be applied to the generation process of the autonomous driving behavior model; see Figure 1 , Figure 1 A flowchart of a method for generating an autonomous driving behavior model provided in an embodiment of the present application is provided. The method for generating an autonomous driving behavior model comprises the following steps:

[0065] S100: Acquiring vehicle driving data;

[0066] Exemplarily, the vehicle driving data may be driving data collected by a variety of sensors installed on the vehicle. The various sensors installed on the vehicle may include a GPS receiver, a speed sensor, an acceleration sensor, a gyroscope, a camera, a laser radar (LiDAR), an inertial measurement unit (IMU), etc., which are responsible for recording information such as the vehicle's position, speed, acceleration, steering angle, surrounding environment, distance to obstacles, etc.

[0067] S200: inputting vehicle driving data into a causal reasoning engine to obtain causal relationship data;

[0068] Exemplarily, the task of the causal inference engine is to identify the causal relationship behind the observed human driving behavior. Unlike the traditional model that associates input with behavior, the causal inference engine provided by the embodiment of the present application adopts the counterfactual reasoning method to infer the "why" behind the behavior; the causal inference engine uses causal graphs and structural causal models (SCM) to infer not only the direct effects of observed variables, but also the indirect effects mediated by unobserved variables.

[0069] S300: Inputting vehicle driving data into the multi-agent interaction model for training to obtain dynamic interaction data between the multi-agents;

[0070] For example, driving is a multi-agent problem, and the driver represents an interactive agent, where the behavior of each driver may affect others; the multi-agent interaction model provided in the embodiment of the present application not only considers the static interaction mode, but also introduces the time dimension to capture the evolution of the interaction relationship over time; the multi-agent interaction model is suitable for simulating and predicting dynamic and nonlinear interaction effects in an autonomous driving environment;

[0071] Exemplarily, the multi-agent interaction model provided in the embodiment of the present application uses graph neural networks (GNNs) to realize the interaction between multiple drivers in a code sharing environment; wherein each node in the graph neural network not only represents an interactive agent, but also contains information about its state changes over time; the edges of the graph neural network represent the interactions between them;

[0072] The interactions between agents can be visual, spatial, or behavioral, which are provided here only as examples and not limitations.

[0073] S400: Train the adaptive behavior synthesis component based on causal data and dynamic interaction data to obtain the autonomous driving behavior model.

[0074] Exemplarily, the adaptive behavior synthesis component combines the causal inference engine and the training data obtained by the multi-agent interaction model to achieve highly adaptive and intelligent driving behavior; through this adaptive behavior synthesis component, not only can human driving behavior be imitated, but also it can go deep into the level of making optimal decisions for autonomous driving vehicles in various complex environments, including but not limited to maximizing safety, efficiency and comfort.

[0075] Exemplarily, the method for generating an autonomous driving behavior model obtains an autonomous driving behavior model by inputting vehicle driving data into a causal reasoning engine and a multi-agent interaction model for training, and then training an adaptive behavior synthesis component based on causal relationship data and dynamic interaction data; the adaptive behavior component combines the analysis data obtained by the causal inference engine and the multi-agent interaction model to achieve highly adaptable and intelligent driving behavior, and through a novel reward shaping mechanism enhanced by causal model information, it can not only imitate human driving behavior, but also optimize safety, efficiency and comfort; thus, the method for generating an autonomous driving behavior model can achieve the technical effect of improving the rationality of autonomous driving behavior and reducing the danger of autonomous driving behavior.

[0076] See also Figure 2 , Figure 2 A flowchart of another method for generating an autonomous driving behavior model provided in an embodiment of the present application.

[0077] Exemplarily, S100: the step of acquiring vehicle driving data includes:

[0078] S110: Acquire driving sensor data of the vehicle to be tested, where the driving sensor data includes one or more of GPS receiver data, speed sensor data, acceleration sensor data, gyroscope data, camera data, lidar data, and inertial measurement unit data;

[0079] S120: Standardize the driving sensor data, perform data fusion through feature hashing and / or perform feature extraction through a deep learning model to obtain vehicle driving data.

[0080] For example, in the data collection phase, driving sensor data is collected by installing multiple sensors on the vehicle to be tested. In autonomous driving systems, driving sensor data often comes from heterogeneous data from different sources (such as sensor data, map information, traffic rules, etc.). In order to provide a comprehensive view and help the model better learn driving behavior, the data is first standardized to be normally distributed according to the mean and standard deviation of the data from different sources. Feature hashing is used for structured data (such as road types, traffic signals), and corresponding deep learning models (such as CNN, etc.) are used for feature extraction for unstructured data (such as images, videos), ultimately achieving feature fusion.

[0081] Exemplarily, the vehicle driving data includes structured data and unstructured data, the causal reasoning engine includes a causal inference unit and a deep learning unit, the deep learning unit includes a graph neural network, a convolutional neural network and a recurrent neural network, S200: inputting the vehicle driving data into the causal reasoning engine, and obtaining the causal relationship data, including:

[0082] S210: Input the structured data into the graph neural network to obtain dynamically changing data;

[0083] S220: inputting the unstructured data into a convolutional neural network and / or a recurrent neural network to obtain spatial feature information and temporal feature information;

[0084] S230: The causal inference unit processes the dynamic change data, the spatial feature information and the temporal feature information to obtain causal relationship data.

[0085] For example, through a method based on a graph neural network (GNN), it is possible to process structured data and has the ability to capture complex patterns; through a method based on a convolutional neural network (CNN) and a recurrent neural network (RNN), unstructured data can be processed, wherein the convolutional neural network is used to extract spatial features, while the recurrent neural network is used to process time dependencies and capture causal effects that change over time; thus, through the close integration of the above-mentioned causal inference unit and the deep learning unit, a unified framework is formed, which can not only learn complex causal relationships, but also adapt to dynamic changes in the environment, thereby providing real-time, causal-based decision support, thereby improving the decision-making efficiency of autonomous driving vehicles.

[0086] Exemplarily, the multi-agent interaction model includes multiple interactive agents, and the formula of the multi-agent interaction model is expressed as:

[0087] ;

[0088] in, Indicates Layer Intelligence The characteristic vector of Representing the intelligent body Neighbors, and are trainable weights and biases, respectively. is a non-linear activation function.

[0089] Exemplarily, the multi-agent interaction model allows the model to learn complex interaction patterns and predict how changes in the behavior of one agent may affect other agents; through this mechanism, the causal inference capability of the autonomous driving behavior model generation method can be applied to explain and predict dynamic interactions in multi-agent systems, which can improve the understanding of complex traffic environments during autonomous driving decision-making, enabling autonomous driving systems to adapt to changing traffic conditions more flexibly and accurately.

[0090] Exemplarily, the adaptive behavior synthesis component includes a dynamic reward function, and the formula of the dynamic reward function is expressed as:

[0091] ;

[0092] Among them, R efficiency represents the efficiency parameter, R safety represents the safety parameter, R comfort represents the comfort parameter, R causal represents the causal consistency parameter, and ω1 to ω4 represent adjustable coefficients.

[0093] Exemplarily, the formula of the dynamic reward function can be dynamically adjusted according to real-time data and prediction models, so that the autonomous driving behavior model generation method can maintain a high degree of adaptability and responsiveness in a constantly changing environment.

[0094] Exemplarily, S400: the step of training an adaptive behavior synthesis component based on causal relationship data and dynamic interaction data to obtain an autonomous driving behavior model includes:

[0095] S410: training an adaptive behavior synthesis component through reinforcement learning, causal relationship data, and dynamic interaction data to obtain behavior strategy data, wherein the strategy data includes a strategy network, and the strategy network outputs an expected reward value according to a current state and possible behavior selections;

[0096] S420: Obtain an autonomous driving behavior model based on the behavior strategy data.

[0097] For example, the adaptive behavior synthesis component is trained through reinforcement learning (RL) to enable it to make optimal decisions in a changing traffic environment; and through a policy network, the policy network outputs the expected reward value based on the current state and possible behavior choices. Through trial and error and reward feedback, the policy network is gradually optimized and learns how to make the best decisions in different situations.

[0098] In some embodiments, in combination Figure 1 and Figure 2 The autonomous driving behavior model generation method provided in the embodiment of the present application and the design and implementation of the autonomous driving habit optimization system based on imitation learning are intended to improve the adaptability and comfort of the autonomous driving system by learning the driving behavior and habits of human drivers, so as to better meet user needs; the autonomous driving behavior model generation method is applied to the autonomous driving system, including three stages of data collection, processing, and imitation learning algorithm development, as shown below:

[0099] 1. Data collection and processing:

[0100] In the data collection phase, the autonomous driving system collects driving data through a variety of sensors installed on the vehicle. These sensors may include GPS receivers, speed sensors, accelerometers, gyroscopes, cameras, LiDAR, inertial measurement units (IMU), etc., which are responsible for recording the vehicle's position, speed, acceleration, steering angle, surrounding environment, distance to obstacles, and other information. The collected data can be expressed as:

[0101] ;

[0102] in, Indicates A state, including information such as vehicle speed, acceleration, steering angle, and relative position of the vehicle and other objects; Indicates in status Actions taken under the control of the user, such as accelerating, decelerating, maintaining speed, turning, etc.;

[0103] In an autonomous driving system, data often comes from different sources (such as sensor data, map information, traffic rules, etc.). In order to provide a comprehensive view and help the model better learn driving behavior, it is necessary to process these heterogeneous data. Specifically, the data is first standardized, and the data is normalized according to the mean and standard deviation of different source data. Then feature fusion is performed. Considering the heterogeneity of the data, feature fusion is the process of converting different types of data into a unified format. For structured data (such as road types, traffic signals), feature hashing is used to implement feature hashing. , where D is the dimension of the feature space, It is a hash function that can map raw data to a feature vector of a fixed size. For unstructured data (such as images and videos), corresponding deep learning models (such as CNN, etc.) are used for feature extraction.

[0104] 2. Imitation Learning Algorithm:

[0105] The imitation learning algorithm is the core of the system, and its purpose is to enable the autonomous driving system to learn and imitate the behavior of human drivers. This can be achieved through different techniques, such as behavioral cloning, inverse reinforcement learning, etc. The behavioral cloning method directly learns the mapping from state to action, while inverse reinforcement learning infers the reward function behind it by observing the behavior of human drivers, and then learns based on this reward function;

[0106] Conceptual framework: Causal-aware multi-agent imitation learning;

[0107] The core is a causal-aware multi-agent imitation learning framework that can not only learn the observable behaviors of human drivers, but also understand the potential causal relationships and interactions between multiple agents in the driving environment. The framework is divided into three main parts: causal reasoning engine, multi-agent interaction model and adaptive behavior synthesis;

[0108] ① The task of the causal reasoning engine is to identify the causal relationship behind the observed human driving behavior; unlike the traditional model that associates input with behavior, the causal reasoning engine in the embodiment of the present application adopts a counterfactual reasoning method to infer the "why" behind the behavior; by using causal graphs and structural causal models, not only the direct effects of observed variables can be inferred, but also the indirect effects mediated by unobserved variables can be inferred. The embodiment of the present application proposes an adaptive structural causal network (ASCaN), which aims to provide an advanced causal inference mechanism for autonomous driving systems through the integration of dynamic adaptation and deep learning. This framework attempts to address the limitations of SCMs in dealing with highly dynamic and complex environments, especially in application scenarios such as autonomous driving. Dynamic causal relationship learning is the core of the ASCaN framework, which allows the model to update causal relationships based on time changes and changes in environmental conditions. This method is particularly suitable for autonomous driving because factors such as road conditions, traffic flow, and driver behavior change over time. To achieve this, ASCaN adopts a method based on graph neural networks that can process structured data and has the ability to capture complex patterns. In dynamic causal learning, the state at each time step depends not only on the state at the previous time step, but also on the current external conditions and internal state changes. The model adjusts its internal parameters to reflect these dynamic changes by continuously observing environmental feedback;

[0109] ;

[0110] in, Indicates at time A causal function that can calculate state variables based on current and historical information This function is implemented through a deep learning model and can adapt to changes in the environment. are the model parameters, which are adjusted over time to accommodate new observations;

[0111] Integrating deep learning allows ASCaN to process high-dimensional data and capture complex nonlinear causal relationships. In the context of autonomous driving, it is extremely valuable to directly learn causal relationships from raw sensor data (such as camera images, radar, and lidar signals). This requires the model to be able to extract useful information from large amounts of high-dimensional and possibly unstructured data;

[0112] To achieve this, ASCaN uses convolutional neural networks and recurrent neural networks to process image data and time series data. Convolutional neural networks are used to extract spatial features from images, while recurrent neural networks are used to process temporal dependencies and capture causal effects that change over time. These deep learning modules are tightly integrated with the causal inference module to form a unified framework that can learn complex causal relationships and adapt to dynamic changes in the environment.

[0113] ;

[0114] in, is a deep learning model used to update time Model parameters represents the parameters of the deep learning model; ASCaN can be used to predict and explain complex traffic scenarios, such as the cause of sudden braking, the causal chain of traffic congestion, and how to avoid potential dangers by changing driving strategies.

[0115] The output of the causal inference engine is in the following form:

[0116] 1. Probabilistic predictions: represented as scalar values. For example, a causal inference engine might predict the probability of a specific event (such as a collision) occurring given road conditions and driving behavior;

[0117] 2. Causal effect estimate: This is usually a numerical value that represents a quantitative measure of the impact of a change in one variable on another variable. For example, the magnitude of the effect of reducing driving speed on reducing the probability of an accident; this output helps understand how and to what extent different factors affect driving safety;

[0118] 3. Relationship strength between variables: This is also a scalar value output that quantifies the strength of the causal relationship between two variables. For example, the strength of the relationship between reduced environmental visibility and increased traffic accident rates;

[0119] 4. Predicted time series data: When considering dynamic causal relationships, the output may include a sequence of variable values ​​that change over time. For example, the model may predict how the risk of accidents in a certain area will change in the next few minutes as traffic volume increases;

[0120] 5. Decision support information: In some cases, the output may be a recommendation for a specific decision option, which can be based on predicted event probabilities or causal effect estimates. For example, recommending the best driving strategy for an autonomous vehicle based on current and predicted road and traffic conditions;

[0121] By dynamically adjusting its internal causal model, ASCaN is able to provide real-time, causal-based decision support, thereby improving the safety and efficiency of autonomous vehicles;

[0122] ② Multi-agent interaction model: Understanding that driving is a multi-agent problem, in which the behavior of each driver may affect others, the multi-agent interaction model provided in the embodiment of the present application expands the dynamic multi-agent interaction model (Dynamic Multi-Agent Interaction Model, DMAIM); DMAIM not only considers static interaction patterns, but also introduces the time dimension to capture the evolution of interaction relationships over time; this method is particularly suitable for simulating and predicting dynamic and nonlinear interaction effects in autonomous driving environments. The multi-agent interaction model uses graph neural networks to encode the interactions between multiple drivers in a shared environment. Each node not only represents an interacting agent, but also contains information about how its state changes over time, and the edges represent the interactions between them, which may be visual, spatial, or behavioral;

[0123] ;

[0124] here, Indicates Layer Intelligence The characteristic vector of Representing the intelligent body Neighbors, and are trainable weights and biases, respectively. is a nonlinear activation function. This representation allows the model to learn complex interaction patterns and predict how changes in the behavior of one agent may affect other agents. Through this mechanism, the causal inference capabilities in the ASCaN framework can be applied to explain and predict dynamic interactions in multi-agent systems. The output of DMAIM can be used as input for updating the causal model in ASCaN, so that the learning of causal relationships is based not only on the behavior of a single agent, but also on the interaction patterns between multiple agents. Specifically, the output of DMAIM can be used as input for updating the causal model in ASCaN, allowing the model to learn causal relationships based not only on the behavior of a single agent, but also on the interaction patterns between multiple agents. This integrated approach improves the understanding of complex traffic environments in the autonomous driving decision-making process, enabling the autonomous driving system to adapt to changing traffic conditions more flexibly and accurately;

[0125] ③ Adaptive behavior synthesis component: The adaptive behavior synthesis component combines the data obtained by the causal inference engine and the multi-agent interaction model to achieve highly adaptive and intelligent driving behavior; this component not only imitates human driving behavior, but also goes deep into the level of making optimal decisions for autonomous driving vehicles in various complex environments, including but not limited to maximizing safety, efficiency and comfort. Specifically, an enhanced reinforcement learning framework is utilized, which can not only imitate human driving behavior, but also optimize safety, efficiency and comfort through a novel reward shaping mechanism enhanced by causal model information. The design of the reward function provided in the embodiment of the present application is the core of adaptive behavior synthesis, which directly affects the learning process and the generation of the final behavior; in the framework of the present application, the reward function is not static, but can be dynamically adjusted according to real-time data and prediction models; this design enables the autonomous driving system to maintain a high degree of adaptability and responsiveness in a constantly changing environment;

[0126] The formula of the dynamic reward function is expressed as:

[0127] ;

[0128] The efficiency : This part rewards vehicles for driving on the optimal path and speed, reducing unnecessary delays and energy consumption;

[0129] Security ): Safety rewards ensure that the vehicle's behavior does not cause dangerous situations, including maintaining a safe distance from other vehicles and pedestrians, and responding quickly to emergencies;

[0130] Comfort( ): Comfort takes into account the passenger experience, rewards smooth driving, and reduces behaviors such as sudden acceleration and braking;

[0131] Causal consistency ( ): This unique reward is based in part on the output of the causal inference engine of multi-agent interaction, ensuring that the behavior choices are consistent with the causal logic of human drivers, enhancing the interpretability of the autonomous driving system and the naturalness of human-computer interaction;

[0132] The adaptive behavior synthesis component is implemented through a reinforcement learning framework, which is particularly suitable for dealing with decision-making problems with high uncertainty and complexity. By combining with a dynamic reward function, the RL algorithm can find a balance between exploration (discovering new behavioral strategies) and utilization (making optimal decisions based on known strategies), and gradually learn strategies that can make the best decisions in various situations. In practical applications, the adaptive behavior synthesis component needs to be able to continuously learn and optimize strategies from new data. This requires the system to have the ability to learn online, that is, to be able to update its behavior model in real time to adapt to changes in the environment. To this end, this application adopts a model-based RL method that not only takes into account the current state and rewards, but also uses the model to predict future states, thereby making more forward-looking decisions;

[0133] 3. Training and implementation:

[0134] In the first phase of training, the causal inference engine and multi-agent interaction model are trained on a rich dataset of human driving behavior, including structured scenarios and real-world driving data. The core of the second phase is to train the adaptive behavior synthesis component through reinforcement learning (RL) to enable it to make optimal decisions in a changing traffic environment. A highly realistic traffic simulator is used to simulate various complex traffic scenarios, including different environments such as urban roads, highways, and intersections. The simulator is able to generate multi-agent interaction scenarios including other vehicles, pedestrians, and traffic signals. In the simulated environment, the adaptive behavior synthesis component learns the optimal behavior strategy by interacting with the environment. This process involves the construction of a policy network that outputs the expected reward value based on the current state and possible behavior choices. Through trial and error and reward feedback, the policy network is gradually optimized to learn how to make the best decision in different scenarios. In order to improve learning efficiency, a curriculum learning method is adopted to gradually increase the complexity of the scenario from simple to difficult. This helps the model quickly learn basic skills in the early stage and then gradually adapt to more complex driving environments. The model is evaluated regularly during the training process, and performance is measured using indicators such as safety, efficiency, and comfort. These evaluations help identify the strengths and weaknesses of the model and guide the subsequent training process. Through these two stages of training, the adaptive behavior synthesis component can integrate deep insights from the causal inference engine and the multi-agent interaction model to achieve adaptive and intelligent driving behavior in complex traffic environments. This training method ensures that the autonomous driving system can not only imitate human driving behavior, but also optimize and learn on its own while ensuring safety, efficiency and comfort.

[0135] Exemplarily, the method for generating an autonomous driving behavior model provided in the embodiments of the present application has at least the following beneficial effects:

[0136] (1) An adaptive structural causal network is proposed, which allows the model to update causal relationships based on changes in time and environmental conditions; this method is particularly suitable for autonomous driving because factors such as road conditions, traffic flow, and driver behavior change over time. Through this causal learning method, this application can not only infer the direct impact of observed variables on driving behavior, but also infer the indirect impact mediated by unobserved variables; thus, by identifying the causal relationships behind observed human driving behavior through an adaptive structural causal network, complex traffic scenarios can be predicted and explained, such as the cause of sudden braking, the causal chain of traffic congestion, and how to avoid potential dangers by changing driving strategies;

[0137] (2) A new adaptive behavior component is proposed that combines the causal inference engine and the analysis obtained from the multi-agent interaction model to achieve highly adaptive and intelligent driving behavior. The novel reward shaping mechanism enhanced by the causal model information can not only imitate human driving behavior, but also optimize safety, efficiency and comfort. Thus, a dynamic multi-agent interaction method is introduced, and the causal inference capability in the ASCaN framework can be applied to explain and predict the dynamic interactions in multi-agent systems.

[0138] (3) A new agent-agent interaction model is proposed. It not only considers static interaction patterns, but also introduces a time dimension to capture the evolution of interaction relationships over time. The learning of causal relationships is based not only on the behavior of a single agent, but also on the interaction patterns between multiple agents. Therefore, the adaptive behavior generation method combining the causal inference engine and the multi-agent interaction model can enable the autonomous driving model to make optimal driving decisions in various complex environments.

[0139] See also Figure 3 , Figure 3 This is a structural block diagram of an autonomous driving behavior model generation system provided in an embodiment of the present application. The autonomous driving behavior model generation system includes:

[0140] A driving data module 100 is used to obtain vehicle driving data;

[0141] A causal reasoning module 200 is used to input vehicle driving data into a causal reasoning engine to obtain causal relationship data;

[0142] The multi-agent interaction module 300 is used to input vehicle driving data into the multi-agent interaction model for training to obtain dynamic interaction data between the multi-agents;

[0143] The autonomous driving behavior module 400 is used to train the adaptive behavior synthesis component based on causal relationship data and dynamic interaction data to obtain an autonomous driving behavior model.

[0144] Exemplarily, the driving data module 100 is specifically used for:

[0145] Acquire driving sensor data of the vehicle to be tested, where the driving sensor data includes one or more of GPS receiver data, speed sensor data, acceleration sensor data, gyroscope data, camera data, lidar data, and inertial measurement unit data;

[0146] The driving sensor data is standardized and data fused through feature hashing and / or feature extracted through a deep learning model to obtain vehicle driving data.

[0147] Exemplarily, the vehicle driving data includes structured data and unstructured data, the causal inference engine includes a causal inference unit and a deep learning unit, the deep learning unit includes a graph neural network, a convolutional neural network and a recurrent neural network, and the causal inference module 200 is specifically used for:

[0148] Input structured data into the graph neural network to obtain dynamically changing data;

[0149] Inputting unstructured data into a convolutional neural network and / or a recurrent neural network to obtain spatial feature information and temporal feature information;

[0150] The causal inference unit processes the dynamically changing data, spatial feature information and temporal feature information to obtain causal relationship data.

[0151] Exemplarily, the autonomous driving behavior module 400 is specifically used for:

[0152] Train the adaptive behavior synthesis component through reinforcement learning, causal data and dynamic interaction data to obtain behavior strategy data, where the strategy data includes a strategy network, which outputs the expected reward value based on the current state and possible behavior choices;

[0153] Obtain an autonomous driving behavior model based on behavior strategy data.

[0154] It should be noted that the autonomous driving behavior model generation system provided in the embodiment of the present application is Figure 1 and Figure 2 The method embodiments shown correspond to each other and will not be described again here to avoid repetition.

[0155] This application also provides an electronic device, see Figure 4 , Figure 4A block diagram of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 510, a communication interface 520, a memory 530, and at least one communication bus 540. The communication bus 540 is used to realize direct connection and communication between these components. The communication interface 520 of the electronic device in the embodiment of the present application is used to communicate signaling or data with other node devices. The processor 510 may be an integrated circuit chip with signal processing capabilities.

[0156] The processor 510 mentioned above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor 510 can also be any conventional processor, etc.

[0157] The memory 530 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The memory 530 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 510, the electronic device may execute the above-mentioned Figure 1 to Figure 2 The method embodiment involves various steps.

[0158] Optionally, the electronic device may further include a storage controller and an input / output unit.

[0159] The memory 530, storage controller, processor 510, peripheral interface, input and output unit components are directly or indirectly electrically connected to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses 540. The processor 510 is used to execute executable modules stored in the memory 530, such as software function modules or computer programs included in the electronic device.

[0160] The input and output unit is used to provide users with the task creation and to create a start optional time period or preset execution time for the task to realize the interaction between the user and the server. The input and output unit can be, but is not limited to, a mouse and a keyboard.

[0161] Understandably, Figure 4 The structure shown is for illustration only, and the electronic device may also include Figure 4 More or fewer components as shown, or with Figure 4 Different configurations are shown. Figure 4 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0162] An embodiment of the present application further provides a storage medium having instructions stored thereon. When the instructions are run on a computer, the computer program is executed by a processor to implement the method described in the method embodiment. To avoid repetition, the method will not be described here.

[0163] The present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in the method embodiment.

[0164] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0165] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0166] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0167] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0168] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0169] It should be noted that, in this article, 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 "include", "comprise" 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, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A method for generating an autonomous driving behavior model, characterized in that: include: Obtain vehicle driving data; Inputting the vehicle driving data into a causal reasoning engine to obtain causal relationship data; Inputting the vehicle driving data into a multi-agent interaction model for training to obtain dynamic interaction data between the multi-agents; Training an adaptive behavior synthesis component based on the causal relationship data and the dynamic interaction data to obtain an autonomous driving behavior model; The vehicle driving data includes structured data and unstructured data, the causal reasoning engine includes a causal inference unit and a deep learning unit, the deep learning unit includes a graph neural network, a convolutional neural network and a recurrent neural network, and the step of inputting the vehicle driving data into the causal reasoning engine to obtain causal relationship data includes: Inputting the structured data into the graph neural network to obtain dynamically changing data; Inputting the unstructured data into the convolutional neural network and / or the recurrent neural network to obtain spatial feature information and temporal feature information; The causal inference unit processes the dynamic change data, the spatial feature information and the temporal feature information to obtain causal relationship data; The multi-agent interaction model includes multiple interactive agents. The formula of the multi-agent interaction model is expressed as follows: ; in, Indicates Layer Intelligence The characteristic vector of Representing the intelligent body Neighbors, and are trainable weights and biases, respectively. is a nonlinear activation function; The adaptive behavior synthesis component includes a dynamic reward function, and the formula of the dynamic reward function is expressed as: ; Among them, R efficiency represents the efficiency parameter, R safety represents the safety parameter, R comfort represents the comfort parameter, R causal represents the causal consistency parameter, and ω1 to ω4 represent adjustable coefficients.

2. The method for generating an autonomous driving behavior model according to claim 1, characterized in that: The step of obtaining vehicle driving data comprises: Acquire driving sensor data of the vehicle to be tested, wherein the driving sensor data includes one or more of GPS receiver data, speed sensor data, acceleration sensor data, gyroscope data, camera data, lidar data, and inertial measurement unit data; The driving sensor data is standardized, and data fusion is performed through feature hashing and / or feature extraction is performed through a deep learning model to obtain vehicle driving data.

3. The method for generating an autonomous driving behavior model according to claim 1, characterized in that: The step of training an adaptive behavior synthesis component based on the causal relationship data and the dynamic interaction data to obtain an autonomous driving behavior model comprises: Training an adaptive behavior synthesis component through reinforcement learning, the causal relationship data, and the dynamic interaction data to obtain behavior strategy data, wherein the strategy data includes a strategy network, and the strategy network outputs an expected reward value according to a current state and possible behavior selections; An autonomous driving behavior model is obtained based on the behavior strategy data.

4. An autonomous driving behavior model generation system, characterized in that: include: A driving data module, used to obtain vehicle driving data; A causal reasoning module, used for inputting the vehicle driving data into a causal reasoning engine to obtain causal relationship data; A multi-agent interaction module, used to input the vehicle driving data into a multi-agent interaction model for training to obtain dynamic interaction data between the multi-agents; An autonomous driving behavior module, used for training an adaptive behavior synthesis component based on the causal relationship data and the dynamic interaction data to obtain an autonomous driving behavior model; The vehicle driving data includes structured data and unstructured data, the causal inference engine includes a causal inference unit and a deep learning unit, the deep learning unit includes a graph neural network, a convolutional neural network and a recurrent neural network, and the causal inference module is specifically used for: Inputting the structured data into the graph neural network to obtain dynamically changing data; Inputting the unstructured data into the convolutional neural network and / or the recurrent neural network to obtain spatial feature information and temporal feature information; The causal inference unit processes the dynamic change data, the spatial feature information and the temporal feature information to obtain causal relationship data; The multi-agent interaction model includes multiple interactive agents. The formula of the multi-agent interaction model is expressed as follows: ; in, Indicates Layer Intelligence The characteristic vector of Representing the intelligent body Neighbors, and are trainable weights and biases, respectively. is a nonlinear activation function; The adaptive behavior synthesis component includes a dynamic reward function, and the formula of the dynamic reward function is expressed as: ; Among them, R efficiency represents the efficiency parameter, R safety represents the safety parameter, R comfort represents the comfort parameter, R causal represents the causal consistency parameter, and ω1 to ω4 represent adjustable coefficients.

5. The automatic driving behavior model generation system according to claim 4, characterized in that: The driving data module is specifically used for: Acquire driving sensor data of the vehicle to be tested, wherein the driving sensor data includes one or more of GPS receiver data, speed sensor data, acceleration sensor data, gyroscope data, camera data, lidar data, and inertial measurement unit data; The driving sensor data is standardized, and data fusion is performed through feature hashing and / or feature extraction is performed through a deep learning model to obtain vehicle driving data.

6. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for generating an autonomous driving behavior model as described in any one of claims 1 to 3 when executing the computer program.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the method for generating an autonomous driving behavior model as described in any one of claims 1 to 3.