Automatic driving decision method, device, electronic device and storage medium

The control strategy and uncertainty values ​​are generated through the deep reinforcement learning network and the multi-head attention structure, and combined with the backup strategy, the decision-making uncertainty problem of the autonomous driving system in an uncertain environment is solved, and the certainty and safety of the decision-making are improved.

CN118306427BActive Publication Date: 2024-08-23GAC AION NEW ENERGY AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410721167.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-08-23
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

When the autonomous driving decision-making system faces uncertain environments and situations, the decisions provided by learning agents have cognitive uncertainties. Especially when dealing with abnormal situations, it is difficult to ensure the certainty of decisions, which may lead to safety accidents.

Method used

Using a deep reinforcement learning network combined with a multi-head attention structure and a randomized prior function, the control strategy and uncertainty value are generated by obtaining input data. When the uncertainty value is greater than the preset threshold, the main strategy is executed, otherwise the backup strategy is used to Reduce decision-making uncertainty.

Benefits of technology

It effectively reduces the uncertainty of the autonomous driving decision-making system in an uncertain environment, improves the certainty and safety of decision-making, and avoids safety accidents caused by uncertain decisions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118306427B
    Figure CN118306427B
Patent Text Reader

Abstract

The present application provides an autonomous driving decision-making method, device, electronic device and storage medium, wherein the autonomous driving decision-making method comprises: obtaining input data; using the input data as input of a deep reinforcement learning network so that the deep reinforcement learning network outputs a control strategy and an uncertainty value of the control strategy; when the uncertainty value of the control strategy is greater than a preset threshold, executing the control strategy, otherwise executing a backup strategy. The present application can make autonomous driving decisions based on cognitive uncertainty.
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, and more specifically, to an autonomous driving decision-making method, device, electronic device and storage medium. Background Art

[0002] The decision-making system of an autonomous vehicle needs to cope with a variety of different environments and situations, interact with other traffic participants, and consider uncertainty. Currently, it is attractive to use machine learning methods to create general decision-making agents, but the drawback of learning agents is that they usually provide black box solutions and only output the decision in a given situation. Ideally, the agent will also provide the uncertainty of its decision estimate, that is, epistemic uncertainty. This is caused by lack of knowledge and can be reduced by increasing the amount of observations in the data. For example, if the decision-making system is only trained to handle "normal" driving situations, then epistemic uncertainty will arise when facing speeding drivers or accidents. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide an autonomous driving decision-making method, device, electronic device and storage medium for making autonomous driving decisions based on cognitive uncertainty.

[0004] In a first aspect, the present invention provides an automatic driving decision-making method, the method comprising:

[0005] Get input data;

[0006] Using the input data as an input of a deep reinforcement learning network, so that the deep reinforcement learning network outputs a control strategy and an uncertainty value of the control strategy;

[0007] When the uncertainty value of the control strategy is greater than a preset threshold, the control strategy is executed, otherwise the backup strategy is executed.

[0008] The method of the first aspect of the present application obtains input data and then uses the input data as the input of a deep reinforcement learning network, so that the deep reinforcement learning network outputs a control strategy and an uncertainty value of the control strategy. When the uncertainty value of the control strategy is greater than a preset threshold, the control strategy can be executed, otherwise a backup strategy is executed, thereby ultimately achieving autonomous driving decisions based on cognitive uncertainty.

[0009] In an optional embodiment, the deep reinforcement learning network includes a plurality of integrated members, the integrated members are neural network models constituting the deep reinforcement learning network, the integrated members are used to output action values ​​of taking different target actions in a current state based on an action value function, the current state is determined by the input data, and the method further includes:

[0010] Determining the control strategy based on randomly selecting an action value output by the ensemble member;

[0011] Obtaining the action values ​​output by all the integration members, and calculating the action value average based on the action values ​​output by all the integration members;

[0012] The uncertainty value is obtained by mapping the action value average based on the activation function.

[0013] This optional implementation can determine the control strategy based on randomly selecting an action value output by the integrated member, and then obtain the action values ​​output by all the integrated members, and calculate the action value average based on the action values ​​output by all the integrated members, and can obtain the uncertainty value by mapping the action value average based on the activation function.

[0014] In an optional embodiment, the ensemble member includes a randomized priori function, wherein the randomized priori function is used to generate a priori function parameter as the first parameter;

[0015] And, the method further comprises:

[0016] Obtaining a first action value output by the integration member based on the priori function parameters;

[0017] Obtaining a second action value output by the integration member based on a second parameter;

[0018] An action value output by the integration member is determined based on the first action value and the second action value.

[0019] This optional implementation manner can obtain the first action value output by the integrated member based on the prior function parameters, and then obtain the second action value output by the integrated member based on the second parameter, so that the action value output by the integrated member can be determined based on the first action value and the second action value.

[0020] In an optional embodiment, the method further comprises:

[0021] Initializing the a priori function parameters and allocating a separate experience replay buffer to each of the ensemble members, wherein the experience replay buffer is used to store the experience acquired by the ensemble members during the training process;

[0022] The ensemble members are trained based on the a priori function parameters.

[0023] This optional implementation initializes the prior function parameters and allocates a separate experience replay buffer to each integrated member, wherein the experience replay buffer is used to store the experience acquired by the integrated members during the training process, so that the integrated members can be trained based on the prior function parameters.

[0024] In an optional embodiment, the method further comprises:

[0025] The state of the current state at the next moment is predicted based on the current state and the control strategy, wherein the interaction between the current state and the state at the next moment is learned through a multi-head attention structure.

[0026] This optional implementation can predict the state of the current state at the next moment based on the current state and the control strategy, wherein the interaction between the current state and the state at the next moment is obtained through multi-head attention structure learning.

[0027] In an optional embodiment, the method further comprises:

[0028] When the current state determined by the input data indicates that the vehicle needs to stop before an intersection, the backup strategy is to execute a stopping action, otherwise the backup strategy is a system default strategy, wherein the system default strategy does not execute a stopping action.

[0029] This optional implementation can set the backup strategy to execute a stopping action when the current state determined by the input data indicates that the vehicle is in a situation where it needs to stop before an intersection, otherwise the backup strategy is the system default strategy, wherein the system default strategy does not execute a stopping action.

[0030] In an optional embodiment, the input data includes sensor data, vehicle status data and map data, wherein the sensor data includes camera data, lidar data, radar data and GPS data, the vehicle status data includes vehicle speed, acceleration and steering angle, and the map data includes route planning data, road information data and traffic signal data.

[0031] This optional embodiment can use sensor data, vehicle status data and map data as input data.

[0032] In a second aspect, the present invention provides an automatic driving decision-making device, the device comprising:

[0033] An acquisition module, used to obtain input data;

[0034] An output module, used to use the input data as an input of a deep reinforcement learning network, so that the deep reinforcement learning network outputs a control strategy and an uncertainty value of the control strategy;

[0035] The control module is used to execute the control strategy when the uncertainty value of the control strategy is greater than a preset threshold, and otherwise execute the backup strategy.

[0036] The device of the second aspect of the present application obtains input data and then uses the input data as the input of a deep reinforcement learning network, so that the deep reinforcement learning network outputs a control strategy and an uncertainty value of the control strategy. When the uncertainty value of the control strategy is greater than a preset threshold, the control strategy can be executed, otherwise a backup strategy is executed, thereby ultimately achieving autonomous driving decisions based on cognitive uncertainty.

[0037] In a third aspect, the present invention provides an electronic device, comprising:

[0038] Processor; and

[0039] A memory configured to store machine-readable instructions, which, when executed by the processor, execute the autonomous driving decision-making method as described in any of the aforementioned embodiments.

[0040] The device of the third aspect of the present application executes the autonomous driving decision-making method, and then can obtain input data, and then can use the input data as the input of the deep reinforcement learning network, so that the deep reinforcement learning network outputs a control strategy and an uncertainty value of the control strategy, and then when the uncertainty value of the control strategy is greater than a preset threshold, the control strategy can be executed, otherwise the backup strategy is executed, and finally the autonomous driving decision is made based on cognitive uncertainty.

[0041] In a fourth aspect, the present invention provides a storage medium storing a computer program, wherein the computer program is executed by a processor as the autonomous driving decision-making method described in any one of the aforementioned embodiments.

[0042] The storage medium of the fourth aspect of the present application can obtain input data by executing the autonomous driving decision-making method, and then can use the input data as the input of the deep reinforcement learning network, so that the deep reinforcement learning network outputs a control strategy and an uncertainty value of the control strategy, and then when the uncertainty value of the control strategy is greater than a preset threshold, the control strategy can be executed, otherwise the backup strategy is executed, and finally autonomous driving decisions are made based on cognitive uncertainty. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] 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.

[0044] Figure 1 is a flowchart of an automatic driving decision-making method disclosed in an embodiment of the present application;

[0045] Figure 2 is a schematic diagram of a neural network architecture disclosed in an embodiment of the present application;

[0046] Figure 3 is a structural schematic diagram of an automatic driving decision-making device disclosed in an embodiment of the present application;

[0047] Figure 4 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0048] 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.

[0049] Embodiment 1

[0050] See also Figure 1 , Figure 1 is a flowchart of an automatic driving decision-making method disclosed in an embodiment of the present application, such as Figure 1 As shown, the method of the embodiment of the present application includes the following steps:

[0051] 101. Get input data;

[0052] 102. Using the input data as input to the deep reinforcement learning network so that the deep reinforcement learning network outputs a control strategy and an uncertainty value of the control strategy;

[0053] 103. When the uncertainty value of the control strategy is greater than the preset threshold, the control strategy is executed, otherwise the backup strategy is executed.

[0054] The method of the embodiment of the present application obtains input data and then uses the input data as the input of the deep reinforcement learning network, so that the deep reinforcement learning network outputs the control strategy and the uncertainty value of the control strategy. When the uncertainty value of the control strategy is greater than a preset threshold, the control strategy can be executed, otherwise the backup strategy is executed, and finally autonomous driving decisions are made based on cognitive uncertainty.

[0055] For the method of the embodiment of the present application, as a scenario description, it is assumed that after the vehicle data and environmental data are used as input data, it is necessary to determine whether to execute a stop action or an acceleration action. Based on this requirement, the prior art is to input the input data into the model so that the model outputs a rate of return of 0.6 for executing an acceleration action and a rate of return of 0.4 for executing a stop action, and then selects the strategy with the highest rate of return as the output, that is, selects the acceleration action as the output. It can be seen from this that this prior art only relies on the rate of return to select the option with the highest rate of return from a variety of options, wherein the process will use it as the output regardless of whether the option with the highest rate of return is in line with the actual situation. However, in some segmented scenarios, the option with the highest rate of return does not conform to the actual situation, and thus cannot be used as an output, because if the option with the highest rate of return does not conform to the actual situation, using it as an output will cause the executed action to further cause safety and other problems. For example, suppose that based on the input data, the model outputs a return rate of 0.6 for executing an acceleration action and a return rate of 0.5 for executing a stop action, and then outputs the execution of the acceleration action. However, the input data is incorrect, and the model outputs the result based on the incorrect data, that is, the execution of the acceleration action is based on the erroneous input data. Therefore, if the execution of the acceleration action is output, the vehicle's acceleration action will be different from the actual stop action required in the scenario, thereby causing a safety accident.

[0056] Based on the above scenario description, the embodiment of the present application is based on the model output control strategy while outputting the uncertainty value of the control strategy. The uncertainty value is used to indicate the degree of uncertainty of the control strategy output by the model. Accordingly, when the uncertainty value is greater than the preset threshold, it means that the control strategy output by the model has high certainty, and the control strategy output by the model can be executed. When the uncertainty value is less than or equal to the preset threshold, it means that the control strategy output by the model has low certainty, and the control strategy output by the model is not adopted, but the backup strategy is executed. For example, when the control strategy output by the model is "execute acceleration action", and the uncertainty value of the control strategy is 0.4, at this time, by comparison, it can be known that the uncertainty value of the control strategy is less than the preset threshold of 0.5, which means that the control strategy cannot be adopted, and the backup strategy "execute stop action" is adopted.

[0057] In the above example, the preset threshold can be 0.5 or 0.6, and its specific value depends on sample learning. On the other hand, the preset threshold is different for different segmented scenes. For example, in a rainy day scene, the preset threshold can be 0.5, and in a sunny day scene, the preset threshold can be 0.6. The reason for setting different preset thresholds for different segmented scenes is that the recognition accuracy of the input data of the vehicle is different in different segmented scenes, and the recognition accuracy of the output result is also different. Correspondingly, the uncertainty measurement standard for the output result is also different. For example, when it is known from statistical data that the decision accuracy of the vehicle for sunny scenes is as high as 99%, it means that in this scene, the output result is more certain, so a lower preset threshold can be set. If the decision accuracy of the vehicle for rainy scenes is 80%, it means that in this scene, the uncertainty of the output result is high, so a higher preset threshold can be set, so that a conservative backup strategy is more likely to be adopted.

[0058] In the embodiment of the present application, the uncertainty value of the control strategy represents the certainty of the control strategy, wherein the larger the uncertainty value of the control strategy is, the more certain the control strategy is and the higher the degree of reliability is, and correspondingly, the smaller the uncertainty value of the control strategy is, the more uncertain the control strategy is and the lower the degree of reliability is.

[0059] In the embodiment of the present application, the control strategy refers to an instruction for controlling the vehicle. For example, the control strategy may be an instruction for controlling the acceleration of the vehicle or an instruction for controlling the stop of the vehicle. Further, the control strategy may include multiple sub-instructions. For example, the control strategy may include a vehicle stop instruction and a vehicle acceleration instruction that are executed successively.

[0060] In an embodiment of the present application, the backup strategy is a verified strategy, which can be an action instruction in an emergency situation. For example, when the control strategy output by the vehicle is uncertain, the stop instruction is used as a backup strategy to avoid causing a safety accident.

[0061] In an optional embodiment, the deep reinforcement learning network includes several ensemble members, which are neural network models that constitute the deep reinforcement learning network. By adding a randomized prior function (RPF) to each ensemble member, a better Bayesian posterior can be obtained, which will create greater output diversity outside the training distribution.

[0062] Further, the integrated member is used to output the action value of taking different target actions in the current state based on the action value function, the current state is determined by the input data, and the method of the embodiment of the present application further includes the following steps:

[0063] Determine the control strategy based on the action value of a randomly selected ensemble member output;

[0064] Obtain the action values ​​output by all integrated members, and calculate the average action value based on the action values ​​output by all integrated members;

[0065] The uncertainty value is obtained by mapping the action value average based on the activation function.

[0066] This optional implementation can determine the control strategy based on the action value of a randomly selected integrated member output, and then obtain the action values ​​output by all integrated members, and calculate the action value average based on the action values ​​output by all integrated members, and then can obtain the uncertainty value based on the activation function mapping the action value average.

[0067] For the above optional implementation, in order to measure the uncertainty of a control strategy, the above optional implementation is determined by the output results of multiple integrated members, wherein when an integrated member is randomly selected as the model that needs to be finally output, the output uncertainty of the randomly selected model is judged by the output of other integrated members. For example, assuming that there are 5 integrated members, namely integrated member A, integrated member B, integrated member C, integrated member D and integrated member E, their inputs are all the same input data. When integrated member A is randomly selected as the model that needs to be finally output, if the integrated member A outputs a return rate of 0.7 for executing action A, which is the highest return rate, then theoretically "executing action A" needs to be output. However, if the output of integration B is a return rate of 0.4 for executing action A, the output of integration C is a return rate of 0.3 for executing action A, the output of integration D is a return rate of 0.3 for executing action A, and the output of integration E is a return rate of 0.3 for executing action A, then when the return rate of executing action A is used as the action value, the average action value of executing action A is (0.7+0.4+0.3+0.3+0.3) / 5=0.4. After being processed by the activation function, this value is mapped to 0.4, which is less than the preset threshold value of 0.5. It is determined that the output of integration member A is uncertain, and thus a backup strategy is adopted.

[0068] In the above optional implementation, the role of the activation function is to map the average value to the data range of [0, 1], so that the average value and the preset threshold are in the same numerical dimension range, and can be compared with the preset threshold.

[0069] In the above optional implementation, the ensemble member is a neural network model trained based on a deep reinforcement learning algorithm. Further, the deep reinforcement learning algorithm (RL) is a branch of machine learning. In the embodiment of the present application, the method of the embodiment of the present application can be executed by an intelligent agent, which learns strategies by interacting with the environment. , Describes the state Actions taken . Further, the environment changes to a new state , the agent gets reward The decision problem that the agent tries to solve is usually modeled as a Markov decision process (MDP), in which the agent interacts with the environment as a sequence of states and actions, in order to learn a policy to maximize the long-term cumulative reward, which can be defined as a tuple ,in, is the state space, is the action space, For the reward model, is the state transition model, is the discount factor.

[0070] In the above optional implementation, the agent refers to the subject that needs to learn and execute decisions, that is, the vehicle in the traffic scene. Environmental changes refer to the external environment in which the vehicle is located, including roads, other vehicles, pedestrians, etc., which will affect the decision. The new state refers to the description of the current state of the vehicle, such as the vehicle's position, speed, surrounding environment, etc. Reward refers to: feedback on the behavior of the agent, used to evaluate the quality of the behavior. In autonomous driving, rewards can be evaluations of safety, efficiency, etc. Action refers to the decision or action made by the agent based on the current state, such as acceleration, deceleration, steering, etc. Expected value refers to the expected value of the cumulative reward obtained by the agent in a certain state in the future. Optimal state-action value function: It represents the expected cumulative reward that can be obtained by taking a certain action in a certain state. Optimizing this function can guide the agent to make the best decision.

[0071] Furthermore, the agent aims to maximize the expected value of future discounted rewards The reward for each time step can be calculated as follows:

[0072]

[0073] In Status Take action Then follow the strategy The value of is defined by the state-action value function:

[0074]

[0075] Optimal strategy of The value is defined as .

[0076] Furthermore, using The neural network approximates the optimal state-action value function , that is, Based on the Bellman equation, the time difference (TD) error is:

[0077]

[0078] By iteratively minimizing the loss function to optimize the weights. This loss is for the smallest batch The experience is calculated, each experience contains a tuple , network weight Updates are performed via stochastic gradient descent (SGD). Finally, the target network Regularly updated based on the neural network model trained by the deep reinforcement learning algorithm.

[0079] For the above optional implementation, as training examples of ensemble members:

[0080] Get input data, including:

[0081] Sensor data: Autonomous vehicles obtain environmental information through various sensors, including cameras (visual information), lidar (distance and position information), radar (obstacle detection), GPS (position information), etc.

[0082] Vehicle status data: vehicle status information, such as speed, acceleration, steering angle, etc.

[0083] Map data: including route planning, road information, traffic signals, etc.

[0084] The training process is as follows:

[0085] (1) State representation: Convert sensor data, vehicle state data, and map data into state representations that can be understood by the model, usually using feature extraction technology or deep learning models.

[0086] Policy learning: Use deep reinforcement learning algorithms (such as Deep Q Network (DQN), Policy Gradient, etc.) to train the decision-making strategy of the agent. The agent interacts with the environment, selects appropriate actions based on the current state, and then updates the strategy based on the feedback (reward signal) from the environment, so that the agent can obtain more rewards in the future.

[0087] Reward design: Design a suitable reward function to guide the agent to learn good driving behavior. Rewards can be based on factors such as safety, comfort, efficiency, etc., which need to be balanced to achieve ideal driving behavior.

[0088] Experience replay: Using experience replay technology, the interaction experience between the agent and the environment is stored and randomly sampled for training to increase sample utilization efficiency and training stability.

[0089] Model evaluation and tuning: Evaluate the performance of the trained intelligent agent by conducting simulation tests in a simulated environment or a real road environment, and tune the model based on the test results.

[0090] Whether the training is completed is determined in the following way:

[0091] By testing in a simulation environment or a real road environment, the performance of the intelligent agent in various situations can be evaluated, including indicators such as safety, efficiency, and comfort.

[0092] Monitor the agent’s reward curve during training to see if it converges stably or reaches the expected performance level.

[0093] In an optional embodiment, the ensemble member includes a randomized prior function, wherein the randomized prior function is used to generate a prior function parameter as the first parameter;

[0094] Furthermore, the method of the embodiment of the present application further includes the following steps:

[0095] Obtain the first action value output by the ensemble member based on the prior function parameters;

[0096] Obtain a second action value output by the integration member based on the second parameter;

[0097] An action value output by the ensemble member is determined based on the first action value and the second action value.

[0098] This optional implementation method can obtain the first action value output by the integrated member based on the prior function parameters, and then obtain the second action value output by the integrated member based on the second parameter, so that the action value output by the integrated member can be determined based on the first action value and the second action value.

[0099] For the above optional implementation, the integrated member may correct the second action value based on the first action value outputted by the priori function parameters, so that the result outputted by the integrated member incorporates the priori experience.

[0100] For the above optional implementation, as an example, the integrated member of The values ​​are obtained by two neural networks with the same structure and The sum of the integrated members is given by Based on the prior function parameter and the second parameter, the first action value and the second action value are output respectively, and the prior function parameter is the first parameter), where:

[0101]

[0102] parameter Represents the second parameter, which is obtained through training, parameter represents the prior function parameters, represents a hyperparameter used to scale the relative importance of the network.

[0103] Furthermore, the ensemble members adopt the following loss function:

[0104]

[0105] Among them, the error between the output of the integrated member and the actual situation can be calculated through the above loss function.

[0106] In an optional embodiment, the method of the embodiment of the present application further includes the following steps:

[0107] Initialize the prior function parameters and allocate a separate experience replay buffer to each ensemble member, where the experience replay buffer is used to store the experience acquired by the ensemble member during the training process;

[0108] Ensemble members are trained based on prior function parameters.

[0109] This optional implementation initializes the prior function parameters and allocates a separate experience replay buffer to each integrated member, wherein the experience replay buffer is used to store the experience acquired by the integrated members during the training process, thereby enabling the integrated members to be trained based on the prior function parameters.

[0110] In the above optional implementation, experience refers to the data and knowledge accumulated by the agent in its interaction with the environment. Specifically, these experiences include the state of the environment observed by the agent, the actions taken, the feedback of the environment to the actions (rewards or penalties), and the time sequence of interactions with the environment. These experience data are crucial for the learning of the agent and can be used to train the decision network of the agent, helping the agent to better understand the environment and optimize its behavior. The purpose of allocating experience to each member of the ensemble and storing it in a separate experience replay buffer is to: ensure that the experience learned by each member is diverse, improve the diversity and robustness of the ensemble; avoid a member from being overly dependent on certain specific experience data, improve the generalization ability of the ensemble, and perform better in new environments; improve training efficiency and sample utilization. For each new training round, a member of the ensemble is uniformly randomly selected. , and then use it to greedily select the one with the highest Value action.

[0111] The following example illustrates how to use the ensemble member to greedily select the highest Assume that the model contains multiple ensemble members, each of which has its own action value function ( The action value function is used to estimate the value of taking different actions in a given state. In each new training round, an ensemble member is selected in a uniformly random manner. Further, assuming that member A is randomly selected, the action value function of member A is used to greedily select the action with the highest value in the entire round. The specific process is:

[0112] Place the autonomous vehicle in an initial state, such as at the start of a road.

[0113] Action selection: For the current state, we use the action value function of member A to estimate the value of each possible action. Suppose we have four possible actions: speed up, slow down, turn left, and turn right. The action value function of member A is:

[0114] Acceleration: Q(acceleration) = 0.5;

[0115] Deceleration: Q(deceleration) = 0.7;

[0116] Turn left: Q(turn left) = 0.4;

[0117] (Right turn: Q(right turn) = 0.6;

[0118] In this case, the deceleration action has the highest action value, so deceleration is selected as the action in the current state.

[0119] In this way, the action value function of the ensemble member (member A in this case) is used to guide the vehicle to greedily select the action with the highest value in each training round, so that the vehicle gradually learns the optimal driving strategy during training. Randomly selecting different members in each round can increase the diversity of the model, which helps improve generalization and robustness.

[0120] Furthermore, each new experience By probability are added to their respective playback buffers Then, by using the minimum batch of experience from the corresponding replay buffer and the loss function in Eq. (5), updating the trainable parameters of each ensemble member Finally, when the training process is complete and the decision system is tested, the trained test applies a strategy that maximizes the average of all ensemble members. value.

[0121] Furthermore, it is estimated The value is mapped to [0, 1] using a softmax activation function, and decisions with a value not exceeding a predefined threshold of 0.5 are classified as uncertain, otherwise a predefined backup strategy is selected. :

[0122]

[0123] In an optional implementation manner, the method of the embodiment of the present application further includes the following steps:

[0124] The next state of the current state is predicted based on the current state and control strategy, where the interaction between the current state and the next state is learned through a multi-head attention structure.

[0125] This optional implementation can predict the state of the next moment of the current state based on the current state and the control strategy, wherein the interaction between the current state and the state of the next moment is learned through a multi-head attention structure.

[0126] For the above optional implementation, from a global perspective, the decision process can improve the decision result through prior knowledge, which reduces the exploration space. Therefore, in order to build prior knowledge, the present application embodiment i designs an auxiliary task to learn the predictable next state The potential representation of and current status , the process can be described as:

[0127]

[0128] Specifically, a multi-head attention structure is used to capture the interactions between states:

[0129]

[0130] In the above formula, by connecting The attention results of the heads are used to capture information from multiple angles, where the head is a component of the attention mechanism, which is used to focus on information of different aspects or features in parallel, thereby improving the model's ability to understand the environment.

[0131] Further, each head is based on the matrix , and Transform the query, key, and value to capture the attention weights:

[0132]

[0133] Among them, the attention weight value is obtained by comparing it with the attention mask The scaled dot product of is calculated as:

[0134]

[0135] in, is the dimension of the key. Attention mask It allows for a varying number of agents and thus can adapt well to the high dynamics of urban scenarios.

[0136] In an optional implementation manner, the method of the embodiment of the present application further includes the following steps:

[0137] When the current state determined by the input data indicates that the vehicle is in a situation where it needs to stop before the intersection, the backup strategy is to execute the stopping action, otherwise the backup strategy is the system default strategy, wherein the system default strategy does not execute the stopping action.

[0138] This optional implementation can set the backup strategy to execute a stop action when the current state determined by the input data indicates that the vehicle is in a situation where it needs to stop before an intersection, otherwise the backup strategy is the system default strategy, wherein the system default strategy does not execute a stop action.

[0139] In an optional embodiment, the input data includes sensor data, vehicle status data and map data, wherein the sensor data includes camera data, lidar data, radar data and GPS data, the vehicle status data includes vehicle speed, acceleration and steering angle, and the map data includes route planning data, road information data and traffic signal data.

[0140] This optional embodiment can use sensor data, vehicle status data and map data as input data.

[0141] It should be noted that the structure diagram of the deep reinforcement learning network Figure 2 As shown, Figure 2 Schematic diagram of a neural network architecture disclosed in the embodiment of this application. Figure 2 As shown in the figure, two LSTMs are used in sequence for the main car state to obtain the main car state 1 and the main car state 2 respectively; TCN (temporal convolutional network) is used in sequence for the neighboring car state to obtain the neighboring car state 1, then one dilated convolution is used to obtain the neighboring car state 2, and then the maximum pooling is performed to obtain the neighboring car state 3. The size and stride of the first convolution layer (TCN) are set to 4, which is the same as the number of neighboring car states; the size and stride of the second convolution layer (dilated convolution) are set to 1. Each of the two convolution layers has 128 filters. Finally, a "dual structure" output that separates state value estimation and action advantage estimation or The double structure layer uses a linear activation function; all other layers use the Leaky-ReLU nonlinear activation function. Before entering the network, each state is normalized to the range by considering the possible minimum and maximum values .

[0142] It should be noted that FQN refers to Flexible Q-Network, which means deep reinforcement learning network in Chinese.

[0143] Embodiment 2

[0144] See also Figure 3 , Figure 3 is a schematic diagram of the structure of an automatic driving decision-making device disclosed in an embodiment of the present application, such as Figure 3 As shown, the device of the embodiment of the present application includes the following functional modules:

[0145] An acquisition module 201 is used to acquire input data;

[0146] An output module 202, used to use the input data as an input of the deep reinforcement learning network, so that the deep reinforcement learning network outputs a control strategy and an uncertainty value of the control strategy;

[0147] The control module 203 is used to execute the control strategy when the uncertainty value of the control strategy is greater than a preset threshold, otherwise execute the backup strategy.

[0148] The device of the embodiment of the present application obtains input data and then uses the input data as the input of the deep reinforcement learning network, so that the deep reinforcement learning network outputs the control strategy and the uncertainty value of the control strategy. When the uncertainty value of the control strategy is greater than a preset threshold, the control strategy can be executed, otherwise the backup strategy is executed, and finally autonomous driving decisions are made based on cognitive uncertainty.

[0149] Embodiment 3

[0150] See also Figure 4 , Figure 4 is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application, such as Figure 4 As shown, the electronic device of the embodiment of the present application includes:

[0151] Processor 301; and

[0152] The memory 302 is configured to store machine-readable instructions, which, when executed by the processor 301, execute an autonomous driving decision-making method as described in any of the aforementioned embodiments.

[0153] The device of the embodiment of the present application executes the autonomous driving decision-making method, and then can obtain input data, and then can use the input data as the input of the deep reinforcement learning network, so that the deep reinforcement learning network outputs the control strategy and the uncertainty value of the control strategy, and then when the uncertainty value of the control strategy is greater than the preset threshold, the control strategy can be executed, otherwise the backup strategy is executed, and finally the autonomous driving decision is made based on cognitive uncertainty.

[0154] Embodiment 4

[0155] An embodiment of the present application provides a storage medium, which stores a computer program, and the computer program is executed by a processor as an autonomous driving decision-making method such as any of the aforementioned implementation methods.

[0156] The storage medium of the embodiment of the present application can obtain input data by executing the autonomous driving decision-making method, and then use the input data as the input of the deep reinforcement learning network, so that the deep reinforcement learning network outputs the control strategy and the uncertainty value of the control strategy, and then when the uncertainty value of the control strategy is greater than the preset threshold, the control strategy can be executed, otherwise the backup strategy is executed, and finally the autonomous driving decision is made based on cognitive uncertainty.

[0157] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0158] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0159] Furthermore, 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.

[0160] It should be noted that 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, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0161] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0162] The above are only embodiments of the present application and are not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of protection of the present application.

Claims

1. An automatic driving decision-making method, characterized in that: The method comprises: Get input data; Using the input data as an input of a deep reinforcement learning network, so that the deep reinforcement learning network outputs a control strategy and an uncertainty value of the control strategy; When the uncertainty value of the control strategy is greater than a preset threshold, the control strategy is executed, otherwise the backup strategy is executed; The deep reinforcement learning network includes a plurality of integrated members, each of which is a neural network model constituting the deep reinforcement learning network, and each of which is used to output an action value of taking different target actions in a current state based on an action value function, wherein the current state is determined by the input data, and the method further includes: Determining the control strategy based on randomly selecting an action value output by the ensemble member; Obtaining the action values ​​output by all the integration members, and calculating the action value average based on the action values ​​output by all the integration members; The uncertainty value is obtained by mapping the action value average based on the activation function.

2. The method according to claim 1, characterized in that The ensemble member includes a randomized priori function, wherein the randomized priori function is used to generate a priori function parameter as a first parameter; And, the method further comprises: Obtaining a first action value output by the integration member based on the priori function parameters; Obtaining a second action value output by the integration member based on a second parameter; An action value output by the integration member is determined based on the first action value and the second action value.

3. The method according to claim 2, characterized in that The method further comprises: Initializing the a priori function parameters and allocating a separate experience replay buffer to each of the ensemble members, wherein the experience replay buffer is used to store the experience acquired by the ensemble members during the training process; The ensemble members are trained based on the a priori function parameters.

4. The method according to claim 1, characterized in that The method further comprises: The state of the current state at the next moment is predicted based on the current state and the control strategy, wherein the interaction between the current state and the state at the next moment is learned through a multi-head attention structure.

5. The method according to claim 1, characterized in that The method further comprises: When the current state determined by the input data indicates that the vehicle needs to stop before an intersection, the backup strategy is to execute a stopping action, otherwise the backup strategy is a system default strategy, wherein the system default strategy does not execute a stopping action.

6. The method according to claim 1, characterized in that The input data includes sensor data, vehicle status data and map data, wherein the sensor data includes camera data, lidar data, radar data and GPS data, the vehicle status data includes vehicle speed, acceleration and steering angle, and the map data includes route planning data, road information data and traffic signal data.

7. An automatic driving decision-making device, characterized in that: The device comprises: An acquisition module, used to obtain input data; An output module, used to use the input data as an input of a deep reinforcement learning network, so that the deep reinforcement learning network outputs a control strategy and an uncertainty value of the control strategy; A control module, configured to execute the control strategy when the uncertainty value of the control strategy is greater than a preset threshold, and otherwise execute a backup strategy; The deep reinforcement learning network includes a plurality of integrated members, each of which is a neural network model constituting the deep reinforcement learning network, and the integrated members are used to output action values ​​of taking different target actions in a current state based on an action value function, wherein the current state is determined by the input data, and the device is further used to: Determining the control strategy based on randomly selecting an action value output by the ensemble member; Obtaining the action values ​​output by all the integration members, and calculating the action value average based on the action values ​​output by all the integration members; The uncertainty value is obtained by mapping the action value average based on the activation function.

8. An electronic device, characterized in that: include: processor; as well as A memory configured to store machine-readable instructions, which, when executed by the processor, execute the autonomous driving decision-making method as described in any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program is executed by a processor as the automatic driving decision-making method according to any one of claims 1 to 6.