Planning for autonomous vehicles

The autonomous vehicle maneuver planning framework uses a generative behavior model and tree search algorithm to predict other agents' behaviors, improving navigation safety and efficiency by determining optimal maneuvers in real-time.

JP7532615B2Active Publication Date: 2024-08-13FIVE AI LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023133680
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2018-10-16
Filing Date
2023-08-18
Publication Date
2024-08-13
Estimated Expiration
2039-10-16

AI Technical Summary

Technical Problem

Autonomous vehicles face challenges in safely and effectively navigating complex driving scenarios due to the need to predict and respond to the behaviors of other vehicles and agents in real-time, requiring advanced maneuver planning systems.

Method used

An inference framework for autonomous vehicle maneuver planning that utilizes a generative behavior model, trained on real-world driving data, to simulate the expected behavior of other agents and determine optimal maneuver sequences through a tree search algorithm, incorporating machine learning and probabilistic methods to account for uncertainty and dynamic environments.

Benefits of technology

Enhances the safety and efficiency of autonomous vehicle navigation by accurately predicting the actions of other agents, allowing for optimal maneuver planning and reducing the risk of collisions, while adapting to dynamic driving conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007532615000011
    Figure 0007532615000011
  • Figure 0007532615000012
    Figure 0007532615000012
  • Figure 0007532615000013
    Figure 0007532615000013
Patent Text Reader

Abstract

To provide a deduction framework that can make a deduction in consideration of an expected behavior of another vehicle / agent so as to be able to determine an appropriate steering sequence to be executed in an encountered driving scenario.SOLUTION: An autonomous vehicle (AV) planning method includes the steps of: receiving a sensor input; processing the sensor input and determining an encountered driving scenario; executing a tree search algorithm and determining the sequence corresponding to a path passing through a built game tree; and generating an AV control signal for executing the sequence. The game tree includes a plurality of nodes that represent an expected state of the encountered driving scenario. Each child node is determined by updating a state of the driving scenario of a parent node based on (i) candidate AV steering and (ii) an expected behavior of at least one external agent in the encountered driving scenario.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present disclosure relates to maneuver planning for autonomous vehicles (AVs). [Background technology]

[0002] An autonomous vehicle, also known as a self-driving vehicle, refers to a vehicle that has a sensor system for monitoring its external environment and a control system that can use those sensors to automatically make and implement driving decisions. This includes, among other things, the ability to automatically adjust the vehicle's speed and direction of travel based on input from the sensor system. A fully autonomous or "driverless" vehicle has sufficient decision-making capability to operate without requiring any input from a human driver. However, as used herein, the term autonomous vehicle also applies to semi-autonomous vehicles that have more limited autonomous decision-making capabilities and therefore still require some degree of supervision from a human driver. Summary of the Invention [Means for solving the problem]

[0003] To safely and effectively navigate an encountered driving scenario, an autonomous vehicle planner needs to be able to plan a sequence of maneuvers to be performed in the encountered scenario. The present invention provides a reasoning framework that enables a computer-implemented AV planner to reason about the likely effects of various sequences of maneuvers in an encountered driving scenario, taking into account the expected behavior of other vehicles / agents, so that the planner can determine an appropriate sequence of maneuvers (ego-vehicle maneuvers) to be performed in the scenario.

[0004] Some aspects of the present invention include: receiving sensor signals (inputs) relating to an autonomous vehicle (AV); processing the sensor inputs to determine an encountered driving scenario; running a tree search algorithm in the AV planner to determine a sequence of AV maneuvers corresponding to a path through the constructed game tree; generating an AV control signal for executing the determined sequence of AV operations; It contains The present invention relates to an autonomous vehicle (AV) planning method, wherein the game tree has a plurality of nodes representing expected states of the encountered driving scenario, and the expected driving scenario state of each child node is determined by updating the driving scenario state of the parent node based on (i) a candidate AV maneuver and (ii) the expected behavior of at least one external agent (actor) in the encountered driving scenario.

[0005] The expected behavior of the external agent is simulated by applying a generative behavior model to one or more observed parameters of the external agent derived from the sensor signals.

[0006] The generative behavior model may also be applied to one or more ego-vehicle parameters (to model the responses of the other actors to the ego-vehicle implementing or controlled by the planning method) and / or to one or more parameters of the driving scenario (such as road layout / other driving environment parameters to model the responses of the actors to the environment).

[0007] In a first aspect of the present invention, the generative behavior model is a machine learning (ML) model trained based on examples of observed real-world driving behavior.

[0008] That is, the first aspect is: receiving sensor inputs relating to an autonomous vehicle (AV); processing the AV sensor inputs to determine an encountered driving scenario; running a tree search algorithm in the AV planner to determine a sequence of AV maneuvers corresponding to a path through the constructed game tree; generating an AV control signal for executing the determined sequence of AV operations; It contains the game tree has a plurality of nodes representing expected states of the encountered driving scenario, and the expected driving scenario state of each child node is determined by updating the driving scenario state of a parent node based on (i) a candidate AV maneuver and (ii) expected behavior of at least one external agent in the encountered driving scenario; The present invention provides an autonomous vehicle (AV) planning method, wherein the expected behavior of the external agent is simulated by applying a generative behavior model to one or more observed parameters of the external agent derived from the sensor inputs, the generative behavior model being a machine learning (ML) model trained based on examples of observed real-world driving behavior.

[0009] In some embodiments, object tracking may be applied to the sensor inputs to determine an observed trace of the external agent, and the expected behavior of the external agent may be simulated based on the observed trace.

[0010] At least some of the examples of observed real-world driving behavior used to train the generative model may be extracted from closed-circuit television data.

[0011] The generative behavior model may include a trained neural network.

[0012] The expected behavior of the external agent may be simulated using learned occupancy and / or transition probabilities of a spatial Markov model trained for the driving domain of the encountered driving scenario.

[0013] The tree search algorithm may be a probabilistic tree search algorithm.

[0014] The tree search algorithm may be a Monte Carlo Tree Search (MCTS) algorithm.

[0015] The driving scenario may be determined by extracting a set of driving scenario parameters from the sensor inputs according to a defined scenario description language.

[0016] The generated behavior model is also applied to one or more ego vehicle parameters and / or one or more parameters of the driving scenario.

[0017] In a second aspect of the invention, the generative behavior model takes the form of an inverse planner that applies inverse programming to the one or more observed parameters to simulate the expected behavior.

[0018] That is, the second aspect is receiving sensor inputs relating to an autonomous vehicle (AV); processing the sensor inputs to determine an encountered driving scenario; running a tree search algorithm in the AV planner to determine a sequence of AV maneuvers corresponding to a path through the constructed game tree; generating an AV control signal for executing the determined sequence of AV operations; It contains the game tree has a plurality of nodes representing expected states of the encountered driving scenario, and the expected driving scenario state of each child node is determined by updating the driving scenario state of a parent node based on (i) a candidate AV maneuver and (ii) expected behavior of at least one external agent in the encountered driving scenario; The present invention provides an autonomous vehicle (AV) planning method, wherein the expected behavior of the external agent is simulated by applying inverse programming to one or more observed parameters of the external actor derived from the sensor inputs.

[0019] The inverse programming method may include determining a set of available targets of the external actor in the encountered driving scenario, and simulating the expected behavior by applying probabilistic or deterministic target recognition with respect to the set of available targets. Deterministic target recognition refers to identifying targets among the available targets that are being implemented by the external actor. Probabilistic target recognition refers to estimating, for at least one of the available targets, a probability that the external agent is implementing that target (e.g., a probability for each target that is the probability that the external actor is implementing each target).

[0020] Object tracking can be applied to the sensor inputs to determine an observed trace of at least one external actor in the encountered driving scenario over a time interval by tracking the external actor.

[0021] The inverse programming method is determining a set of available goals for the external actor within the encountered driving scenario; determining a predicted trajectory model for each of the available targets; comparing the observed trace of the external actor with the predicted trajectory model for each of the available targets to determine the likelihood of that target; simulating the expected behavior of the external actor using the determined likelihood of at least one of the goals; may include:

[0022] The step of simulating the expected behavior of the external actor using the determined likelihood of the at least one target may include calculating at least one predicted trajectory of the external actor based on the predicted trajectory model for the at least one target and the determined likelihood of the target.

[0023] The predicted trajectory model for each target may be a distribution of predicted trajectories for that target.

[0024] The distribution G for each target i is the conditional probability p(T | G i ), and the likelihood p(G i |τ) is used to estimate the probability p(T|τ) of at least one predicted trajectory given the observed trace τ.

[0025] The observed trace may be used to predict a best available orbit model for the target, and the comparing includes comparing the best available orbit model to the predicted orbit model.

[0026] The observed trace can be used to predict current and / or future maneuvers of the external actor, and the predicted current or future maneuvers can be used to determine the best available trajectory model.

[0027] A sequence of maneuvers can be determined for at least one target, and the best available trajectory model can be determined for the target based on partial trajectory models for each of the maneuvers.

[0028] Each partial trajectory model may include one or more target motion values, and one or more motion values ​​for the future portion of the best available trajectory model may be determined by applying motion smoothing to the target motion values.

[0029] The predicted trajectory model for each target may be a single predicted trajectory for that target.

[0030] The best available trajectory model for each target may be a single best available trajectory.

[0031] The partial trajectory model for each maneuver may be the most likely partial trajectory for that maneuver.

[0032] A defined cost function may be applied to both the predicted orbit model and the best available orbit model for each target to determine a cost for each of these orbit models, and the comparison includes comparing these costs.

[0033] The cost function can reward shorter driving times while penalizing unsafe trajectories.

[0034] The cost function may also penalize lack of comfort.

[0035] The expected behavior of the foreign agent can be simulated by sampling targets from the set of available targets based on the determined likelihoods of these targets.

[0036] Different target distributions can be determined for different maneuvers or maneuver sequences, and the expected behavior of the external agent can be simulated by sampling a maneuver or maneuver sequence from a set of possible maneuvers based on the maneuver distributions, and then sampling the target from the set of available targets based on the target distribution determined for the maneuver or maneuver sequence.

[0037] The maneuver distribution can be determined using inverse programming at the maneuver level, which includes determining a predicted trajectory model for each of the possible maneuvers, and comparing the observed trace of the external actor with the predicted trajectory model for each of the possible maneuvers to determine the likelihood of the maneuver.

[0038] The search algorithm may be run multiple times on multiple constructed game trees with different sampled targets, and the sequence of AV maneuvers may be determined by the AV planner based on statistical analysis of paths within the multiple constructed game trees.

[0039] object tracking can be applied to the sensor inputs to track at least one external actor in the encountered driving scenario, thereby determining an observed trace of the external actor over a time interval; The inverse programming method is determining a set of possible maneuvers for the external actor within the encountered driving scenario; determining a predicted trajectory model for each of said possible maneuvers; comparing the observed trace of the external actor with the predicted trajectory model for each of the possible maneuvers to determine the likelihood of the maneuver; simulating the expected behavior of the external actor using the determined likelihood of at least one of the maneuvers; may include:

[0040] The predicted trajectory model for each maneuver may be a single trajectory for that maneuver.

[0041] The predicted trajectory model for each maneuver may be a distribution of predicted trajectories for that maneuver.

[0042] A third aspect of the present invention is receiving sensor inputs relating to an autonomous vehicle (AV); processing the sensor inputs to determine an encountered driving scenario; running a tree search algorithm in the AV planner to determine a sequence of AV maneuvers corresponding to a path through the constructed game tree; generating an AV control signal for executing the determined sequence of AV operations; It contains the game tree has a plurality of nodes representing expected states of the encountered driving scenario, and the expected driving scenario state of each child node is determined by updating the driving scenario state of a parent node based on (i) a candidate AV maneuver and (ii) expected behavior of at least one external agent in the encountered driving scenario; The present invention provides an autonomous vehicle (AV) planning method in which the expected behavior of the external agent is simulated by applying target recognition to one or more observed parameters of the external actor derived from the sensor inputs.

[0043] The target recognition includes, for each target in a set of available targets: a best available trajectory model for the target based on the one or more observed parameters; and an optimal trajectory model for the target The method may include calculating:

[0044] The target recognition may be probabilistic, and a target distribution may be determined by comparing the best available trajectory model to the optimal trajectory model for each target.

[0045] A defined cost function can be applied to both the predicted and best available orbit models for each target to determine the cost of each of these orbit models, and these orbit models can be compared by comparing their costs.

[0046] Multiple target distributions may be determined for multiple possible maneuvers or maneuver sequences.

[0047] The expected behavior can be simulated based on targets sampled from the set of available targets based on the target distribution.

[0048] The expected behavior can be simulated by sampling at least one maneuver from the possible maneuvers based on a maneuver distribution determined for the external agent, and then sampling the target from the target distribution determined for the sampled maneuver.

[0049] The tree search algorithm may be run multiple times on multiple constructed game trees with different sampled targets, and the sequence of AV maneuvers may be determined by the AV planner based on statistical analysis of paths in the multiple constructed game trees.

[0050] The target recognition may be performed using a target recognition decision tree.

[0051] Another aspect of the present invention provides a method of configuring an autonomous vehicle, the method comprising: receiving, at a training system, real-world driving behavior data acquired from one or more driving domains; processing the real-world driving behavior and extracting examples of real-world driving behavior for use in training a generative model; using the extracted driving behavior examples to train a generative behavior model to predict the behavior of an external agent based on one or more observed parameters of the external agent; storing the trained generative behavior model in electronic storage of the autonomous vehicle; Including, The autonomous vehicle comprises an autonomous vehicle planner configured to use the generative behavior model to implement the method of any aspect disclosed herein or any embodiment thereof.

[0052] The sensor inputs may include sensor inputs received from an AV sensor system. Additionally or alternatively, the sensor inputs may include externally acquired sensor inputs received over a communications link.

[0053] Another aspect of the present invention is a method for producing a semiconductor device comprising: receiving sensor inputs relating to an autonomous vehicle (AV); processing the AV sensor inputs to determine an encountered driving scenario; running a tree search algorithm in the AV planner to determine a sequence of AV maneuvers corresponding to a path through the constructed game tree; generating an AV control signal for executing the determined sequence of AV operations; It contains The method provides an autonomous vehicle (AV) planning method, wherein the game tree has a plurality of nodes representing expected states of the encountered driving scenario, and the expected driving scenario state of each child node is determined by updating the driving scenario state of a parent node based on (i) a candidate AV maneuver and (ii) expected behavior of at least one external agent in the encountered driving scenario.

[0054] Any of the above features may be implemented in the embodiment.

[0055] Further aspects of the present invention provide a computer system comprising execution hardware configured to perform any of the method steps disclosed herein, and a computer program comprising executable instructions configured, when executed, to perform any of the method steps.

[0056] Still further aspects provide an autonomous vehicle (AV) planner embodied in a computer system configured to perform any of the method steps disclosed herein, as well as an autonomous vehicle comprising the autonomous vehicle planner and a drive mechanism coupled to the autonomous vehicle planner and responsive to control signals generated by the AV planner.

[0057] For a better understanding of the present invention, and to show how embodiments of the invention may be practiced, reference is made to the following figures. [Brief explanation of the drawings]

[0058] [Figure 1] FIG. 1 shows a schematic functional block diagram illustrating functional components implemented in an autonomous vehicle computer system. [Figure 2] 1 illustrates a typical game tree that can be used for maneuver planning for an autonomous vehicle. [Figure 3] 1 shows a flowchart of a tree search algorithm that can be used to select a sequence of maneuvers to perform from a game tree. [Figure 4] 1 shows a schematic functional block diagram of a training system for training generative behavioral models. [Figure 5A] An example of this technology implemented in a simulator is shown. [Figure 5B] An example of this technology implemented in a simulator is shown. [Figure 5C] An example of this technology implemented in a simulator is shown. [Figure 6] 1 shows a flowchart of an inverse programming method. [Figure 7A] 1 illustrates certain principles of inverse programming by an example. [Figure 7B] 1 illustrates certain principles of inverse programming by an example. [Figure 7C] 1 illustrates certain principles of inverse programming by an example. [Figure 8] Two possible steering-based tree search examples are shown. [Figure 9] An example of a tree search based on three or more maneuvers is shown. [Figure 10] 1 shows a flowchart of a typical inverse programming method. [Figure 11] 1 shows a decision tree for another target recognition method. [Figure 12] 1 shows a schematic functional block diagram of a maneuver planning method incorporating predictions from inverse planning. [Figure 13] An example of a trajectory model learned from CCTV data is shown. [Figure 14A] 1 illustrates a typical scenario in which the techniques herein can be implemented. [Figure 14B] 1 illustrates a typical scenario in which the techniques herein can be implemented. [Figure 14C] 1 illustrates a typical scenario in which the techniques herein can be implemented. [Figure 15] 1 shows a high-level flow diagram to demonstrate certain principles of Monte Carlo tree search where probabilistic predictions about other agents are applied. [Figure 16] 1 shows an example of a spatial Markov model that models normal driving behavior in an area monitored by CCTV. DETAILED DESCRIPTION OF THE INVENTION

[0059] Exemplary embodiments of the present invention are described in detail below, but first some useful context for the present invention is provided.

[0060] FIG. 1 shows a highly schematic functional block diagram of certain functional components embodied in an on-board computer system A1 of an AV (ego vehicle): a data processing component A2, a prediction component A4, and an AV planner A6.

[0061] Data processing component A2 receives sensor data from the AV's onboard sensor system A8. Onboard sensor system A8 can take a variety of forms, but typically comprises a variety of sensors, such as image capture devices (cameras), lidar units, etc., satellite positioning sensors (such as GPS), motion sensors (accelerometers, gyroscopes, etc.), etc., that collectively provide rich sensor data from which detailed information can be extracted about the state of the surrounding environment and other actors (vehicles, pedestrians, etc.) within the AV and its environment.

[0062] It should be noted, however, that the present technology is not limited to the use of image data or the like acquired using the AV's own on-board optical sensors (image capture devices, lidar, etc.). Alternatively, or in addition, the present method is also applicable to the use of externally acquired sensor data, such as CCTV images, acquired by an external image capture unit in the vicinity of the AV. In that case, at least some of the sensor inputs used to implement the present method may be received by the AV from external sensor data sources via one or more wireless communication links.

[0063] The data processing system A2 processes the sensor data and extracts such information from the sensor data. This typically involves various forms of machine learning (ML) / artificial intelligence (AI) processing. The functions of the data processing system A2 that are relevant in the present context include localization (block A10), object detection (block A12), and object tracking (block A14).

[0064] Localization is performed to provide awareness of the surrounding environment and the AV's position in the surrounding environment. Various localization techniques, such as visual and map-based localization, can be used for this purpose. By way of example, reference is made to UK Patent Application No. 1812658.1, entitled "Vehicle Localization," which is incorporated herein by reference in its entirety. This application discloses a suitable localization method that uses a combination of visual detection and predetermined map data. Segmentation is applied to visual (image) data to detect surrounding road structures, which are matched with predetermined map data, such as HD (high-definition) maps, to determine an accurate and robust position estimate of the AV relative to roads and / or other structures of the surrounding environment in a map frame of reference. The position estimate of the AV is determined through a combination of visual detection and map-based inference by merging the visual and map data. To determine a position estimate, individual position estimates determined from the structure matching are combined with other position estimates (such as GPS) using particle filtering or the like, resulting in an accurate position estimate of the AV in the map frame of reference that is robust to variations in the accuracy of the individual position estimates. Once the AV's position on the map is accurately determined, the visually detected road structure is merged with predetermined map data to provide a comprehensive representation of the vehicle's current and historical surroundings in the form of a live map, as well as an accurate and robust estimate of the AV's position within a map frame of reference. The term "map data" in this context includes map data of a live map derived by merging visual (or other sensor-based) detections with predetermined map data, but also includes map data derived solely from predetermined map data or visual / sensor detections.

[0065] Object detection is applied to sensor data to detect and locate external objects in the environment, such as vehicles, pedestrians, and other external actors, whose behavior the AV needs to be able to safely respond to. This can comprise, for example, a form of 3D bounding box detection, which estimates the position, orientation, and size of objects in the environment and / or relative to the ego-vehicle. This can be applied to (3D) image data, such as, for example, RGBD (red, green, blue, depth), LiDAR point clouds, etc. This allows the location and other physical characteristics of such external actors to be determined on a map.

[0066] Object tracking is used to track any movement of detected objects in an environment. The result is an observed trace (τ) of each object, determined over time by object tracking. The observed trace τ is the history of the moving object, capturing the path of the moving object over time and may also capture other information such as the object's historical velocity, acceleration, etc. at various points in time.

[0067] Object detection and object tracking can be used together to comprehensively localize and track external actors on a determined map around the AV.

[0068] Object detection and tracking are well known per se and can be performed in the present context using a variety of publicly available state-of-the-art models.

[0069] Through the combination of localization, object detection, and object tracking, the data processing component A2 provides a comprehensive representation of the ego-vehicle's environment, the current state (location, heading, speed, etc., to the extent that it can be detected) of any external actors in that environment, and the historical traces of such actors that have been trackable to the AV. This is continuously updated in real time, providing up-to-date position and environmental awareness.

[0070] The prediction component A4 uses this information as the basis for predictive analysis to make predictions about the future behavior of external actors in the vicinity of the AV. Examples of suitable prediction methods are described below.

[0071] AV planner A6 uses the extracted information about the host vehicle's environment and external agents within this environment, along with the behavior predictions provided by prediction component A4, as the basis for AV planning. That is, predictive analysis by prediction component A4 adds a layer of predictive information on top of the information extracted from sensor data by the data processing component, which AV planner A6 uses as the basis for AV planning decisions. This is generally part of a hierarchical planning process, in which AV planner A6 makes various high-level decisions and then makes increasingly lower-level decisions necessary to implement the high-level decisions. The end result is a series of real-time low-level action decisions. To implement these decisions, AV planner A6 generates control signals that are input at least in part to the AV's drive mechanism A16 to control the vehicle's speed and direction (e.g., by steering, braking, accelerating, shifting gears, etc.). Control signals are also generated to perform secondary actions, such as signaling.

[0072] The scenario extraction component A3 uses the output of the data processing component A2 to determine an encountered driving scenario for the ego-vehicle. The determined driving scenario includes driving scenario parameters extracted from the acquired sensor data that provide a concise, yet sufficiently detailed representation of a real-world scenario encountered by the AV to be used as the basis for a realistic simulation. This is formulated in a structured scenario description language that can be used as the basis for such a simulation. An example scenario description in the formal scenario description language is provided in Appendix A.

[0073] Simulator A5 can receive parameters of the encountered driving scenario and run simulations based on those parameters. These are simulations under various assumptions about what could happen in the encountered driving scenario. These simulations are used as the basis for AV planning, in which AV planner A6 runs multiple simulations with the goal of determining the overall optimal sequence of maneuvers to be performed in the encountered driving scenario to accomplish a defined goal (i.e., achieve a desired outcome, such as reaching a specific location on a map). In the example described below, the simulations are run as part of a Monte Carlo tree search (MCTS) run by maneuver selection component A7 of AV planner A6.

[0074] The function of the prediction component A4 is to model the predicted external agent behavior that is executed as part of the simulation, i.e., to execute an external agent behavior model to predict the behavior of any external actor in an encountered driving scenario so that the predicted behavior can be incorporated into the simulation that forms the basis for maneuver planning.

[0075] Maneuver plan As the ego-vehicle travels, it must plan which maneuvers to perform to achieve its stated goals. As shown, this can be accomplished using Monte Carlo tree search, a heuristic search algorithm for decision-making processes. Monte Carlo tree search is an "online" inference process, i.e., it is executed by AV planner A6 to make actual driving decisions in real time.

[0076] MCTS is applied to game trees, a data structure derived from game theory that provides a framework for rational decision-making through the systematic analysis of various possible outcomes that can be meaningfully scored. A fully constructed game tree captures all possible outcomes of a "game" with a finite number of possible "moves," and the term game is used in the mathematical sense to mean a formal model of strategic interactions (moves) between decision-making agents. Tree search algorithms can be applied to game trees with the goal of determining the sequence of moves (corresponding to a particular path through the game tree) that is (globally) optimal with respect to a prescribed reward (score) function.

[0077] MCTS is an efficient probabilistic tree search algorithm for searching game trees. The game tree is constructed dynamically as various paths are explored. The advantage of MCTS is that it can provide an asymptotically correct approximation without having to fully explore all possible paths through the game tree, meaning that it is not necessary to consider all possible sequences of moves and therefore to completely construct the game tree. In that case, MCTS does not guarantee that the true globally optimal sequence of moves is discovered, but the algorithm converges to a solution that is well optimized given reasonable time and computational resources.

[0078] In the present context, it should be noted that there may be variations in the individual sets of ordered maneuvers that are treated as unique sequences for the present purposes. For example, a "lane keeping" between times t0 and t1 and a "lane change" between t1 and t2 may be considered different sequences of maneuvers for a "lane keeping" between times t0 and t1' (different from t1) and a lane change between t1' and t2, because the change from lane keeping to lane change occurs at different times.

[0079] In this context, a move is a driving maneuver. When the ego-vehicle encounters a real-world driving scenario that it must navigate, MCTS is applied as a means to systematically reason about various possible outcomes of various ego-vehicle maneuvers (i.e., maneuvers that the ego-vehicle's AV planner A6 can take) in the encountered driving scenario, taking into account the predicted behavior of any external agents (other vehicles, pedestrians, etc.) in the encountered driving scenario. This is achieved by parameterizing the encountered driving scenario based on the sensor data acquired as described above, and running various simulations in simulator A5 based on the extracted driving scenario parameters and the behavior of the external agents modeled by prediction component A4.

[0080] Using probabilistic tree search algorithms such as MCTS, it is possible to find sufficiently optimal sequences of maneuvers, even for large game trees, as part of real-time AV decision-making. In this context, game trees can be large due to the large number of agents that may be present in the scenario.

[0081] The results of these simulations are used to evaluate a prescribed reward function in order to score different possible paths through the game tree, which drives the execution of the MCTS towards a path that is globally optimal with respect to the reward function.

[0082] A typical game tree D00 is shown in FIG.

[0083] The game tree D00 has a root node D02 representing the current state s0 of the encountered driving scenario (defined for convenience as time t = 0). This captures the actual current state of the ego vehicle within the encountered driving scenario and the current states (position, velocity, acceleration, etc.) of any external agents relative to their surroundings, in particular relative to the surrounding road layout / structure.

[0084] Further nodes in MCT D00 represent expected (i.e., predicted future) states of a driving scenario under various assumptions about the behavior of the ego-vehicle at various times in the future. The structure of MCT D00 allows AV planner A6 to infer what may occur in a driving scenario if the ego-vehicle performs a given sequence of maneuvers.

[0085] To facilitate such inference, the MCT D00 is constructed as follows.

[0086] The possible maneuvers are represented by edges of the Monte Carlo tree D00. Possible maneuvers for the ego-vehicle are assumed given the current state s0 of the ego-vehicle and the defined goals to be executed.

[0087] Each node other than the root node D02 is a child of another node (parent) and represents an expected state of the driving scenario, which is determined for each such node based on a simulation of the encountered driving scenario performed in simulator A5 under a particular set of relevant assumptions, as described below.

[0088] An edge is shown from each parent node to its respective child node. The edge between each pair of parent-child nodes represents the corresponding maneuver that AV planner A6 can take given the state of the driving scenario represented by the parent node (at time t), and the child node represents the expected state of the driving scenario (at time t + Δt) if this maneuver is performed over interval Δt.

[0089] The expected driving scenario state of each child node is determined by updating the driving scenario state represented by the parent node based on an appropriate simulation of the driving scenario. The driving scenario simulation is performed based on the extracted driving scenario description parameters, the parent state (which may be used, for example, as the starting state of the simulation), the corresponding maneuvers between the parent node and the child node (the execution of which is simulated between times t and t+Δt), and the simulated behavior of the external agent between times t and t+Δt modeled by the prediction component A4.

[0090] The execution of the corresponding maneuver by the host vehicle during the time interval ΔT is simulated by AV planner A6 simulating or "rolling out" the actions that would be taken in the real world given the state of the driving scenario represented by the parent node, the behavior of the external agent during that time interval Δt, and the maneuver to be executed.

[0091] The execution of a maneuver by the ego-vehicle can be simulated using an "action policy" learned or otherwise determined regarding the execution of that maneuver given a particular state. The action policy is then used by the AV planner A6 as a basis for executing the maneuver in the real world. The action policy can be learned "offline," for example, by reinforcement learning (RL). See, by way of example, UK Patent Application No. 1816852.6, entitled "Autonomous Vehicle Manoeuvres," which is incorporated herein by reference in its entirety, which discloses a framework for maneuver learning in which training scenarios are determined from observed driving behavior data.

[0092] As shown, the external agent behavior is simulated by executing an external agent behavior model in prediction component A4. Examples of suitable behavior simulation models are described below.

[0093] As an example, Figure 2 shows edges D04a-c from the root node D02 to its three direct child nodes (labeled D06a-c, respectively). Each of these edges D04a-c represents a different maneuver that can be performed in light of state s0 of the driving scenario of the node from which they originate (root node D02 in this example). Starting from state s0, each of these child nodes represents a subsequent state (respectively s0) of the driving scenario that is predicted if the respective maneuver is performed by the ego-vehicle. 1A , s 1B , s 1C )

[0094] For example, edges D04a-c may correspond to "lane keeping," "left lane change," and "right lane change," respectively, in a multi-lane driving scenario for parent state s0. In state s0, the ego-vehicle is in the current lane, lane keeping maneuvers are performed to stay in the current lane for the applicable time interval Δt, and left and right lane changes are performed to attempt to move into lanes to the left and right of the current lane, respectively. 1A , s 1B , s 1C is obtained by advancing the parent state s0 according to the relevant maneuver while taking into account the behavior of the external agent in the relevant time interval.

[0095] Other typical maneuvers that may be applicable include slowing down (for example when negotiating a roundabout), maintaining, and exiting.

[0096] As will be appreciated, the driving scenario states of nodes further down the tree are obtained in exactly the same way, starting from their respective parent states.

[0097] Certain nodes are end (terminal) nodes, i.e., nodes that have no child nodes, such as nodes D08 and D10 in FIG. 2. These represent "end states" and broadly correspond to either a point in time when the ego-vehicle successfully executes a defined goal (success) or a point in time when the ego-vehicle is determined to have failed the defined goal. Failure can be defined in various ways depending on the situation, but examples include the ego-vehicle being forced to abort the goal, the vehicle's progress being determined to be insufficient, and a vehicle collision or other failure for safety reasons. Depending on the situation, starting from the root node D02, a maneuver or sequence of maneuvers may be required to reach the terminal node.

[0098] Optionally, the final goal may be split into two or more intermediate goals, which may be appropriate if the final goal is too far away. In this context, each intermediate goal may be executed based on its own game tree with terminal nodes representing the end states of the intermediate goal (but not necessarily the end states of the final goal).

[0099] Game tree D00 is a finite tree in that all possible paths through game tree D00 eventually terminate at a terminal node after a finite number of moves.

[0100] Each terminal node considered is assigned a score (reward) based on a reward function that indicates the desirability of the outcome represented by that terminal node. This may be a simple binary scheme with two scores, one for success and one for failure, or a richer scoring mechanism can be applied if desired. For example, a successful outcome may have a higher score if it is achieved in less time or if it is more desirable based on any criteria appropriate in the situation. The score assigned to each possible path through the game tree is simply the score assigned to its terminal node.

[0101] Rewards are not necessarily only given at terminal states. Each path considered is assigned a score (reward) based on a reward function that indicates the desirability of the outcome it represents. This can be a simple binary scheme with two scores, one for success and one for failure, or a richer scoring mechanism can be applied if desired. For example, a successful outcome can have a higher score if it is achieved in less time or if it is more desirable based on any criteria that are appropriate in the situation.

[0102] In this example, the game is a single-player model in that each edge corresponds to a maneuver by the ego-vehicle. The behavior of the external agent is captured as part of the state changes that occur in moving from an applicable parent node to an applicable child node. This method rolls out what other agents might do, but does not incorporate in that rollout how other agents might respond to the assumed actions of the ego-vehicle (although this is not excluded either). That is, while the generative behavior can model the external actor's response to the ego-vehicle as well as the surroundings (e.g., the driving context, such as road layout), it is not a requirement to model high-level decision-making by the external actor, as acceptable results can be achieved with simpler models. However, this technique can be extended to incorporate models of high-level planning (e.g., reverse planning) by the external actor.

[0103] Only possible (i.e., realistically achievable) maneuvers can be assumed. For example, if the vehicle is at a particular location relative to a T-junction (corresponding to the parent state), there may be three possible maneuvers: stop, turn left, and turn right, but continuing straight is not an option.

[0104] As another example, on a multi-lane road, the available maneuvers may be lane keeping and lane change, and the MCTS is used to sequence these maneuvers so that the vehicle maintains the lane keeping maneuver until it can safely initiate the lane change maneuver.

[0105] The model can incorporate a level of understanding of how a vehicle can behave in the real world. For example, it is known that one limitation of a vehicle is that it cannot turn in place. Therefore, maneuvers that require impossible vehicle behavior are not assumed.

[0106] One way to identify the optimal path through the game tree D00 is to evaluate the scores of all possible end nodes and select the path with the highest score, however, in practice this may be infeasible, especially in real time.

[0107] In such situations, a probabilistic tree search such as MCTS can be used that can find a path that is at least sufficiently close to optimal in a reasonable amount of time using a reasonable amount of computational resources.

[0108] FIG. 8 shows a simple example of MCT 800 that may be used when there are only two possible maneuvers for a given goal. For example, the goal may be to merge from a side road into traffic in a particular direction. In this example, the AV needs to turn left to merge onto the road. If both roads are single lane, the two possible maneuvers the AV can perform are stop or left turn. This results in multiple possible maneuver sequences, e.g., (stop, stop, turn, turn, . . .) versus (stop, stop, stop, turn, . . .), depending on when the vehicle changes from "stop" to turning left.

[0109] The AV's current state s0 is the state it is in as it approaches the junction. This is represented by root node 802 at time t0. The AV may stop at the junction or turn left onto the road. These two possible maneuvers are represented by edges 804a and 804b, respectively.

[0110] To achieve the goal of merging onto the main road, the AV must perform a left-turn maneuver, i.e., edge 804b. However, this can be performed at any time. While MCT 800 shows the predicted state of the AV after each of five time intervals Δt, it will be understood that more or fewer time intervals may be considered. While the time intervals over which the state is determined are shown as the same in the MCT of FIG. 8, it will be understood that the time intervals for each iteration may be different.

[0111] The AV starts in state s0. If it chooses to immediately turn left onto the main road, it follows edge 804b and the predicted state is s1, represented by child node 806b. 1B This is a terminal node because the AV has merged onto a major road. 1B If s is a safe state for the AV, then the terminal node 806b is successful. However, if state s 1B If is not secure, then end node 806b fails.

[0112] Alternatively, at t0, the AV can perform a stop maneuver following edge 804a. Thus, the resulting predicted state s 1A corresponds to an AV stopped at a junction with a major road. The AV must then decide, at time t0 + Δt, whether to select edge 808b and execute a left-turn maneuver, or select edge 808a and remain stopped.

[0113] Again, this results in state s, which corresponds to the AV being located on a major road. 2B , and one child node 810a that is not a terminal node because the AV does not merge onto a major road.

[0114] This is repeated for each additional time step, and the route ends with a state corresponding to the AV merging onto a major road. Some of these states are failures, while others are successes. An optimal route is then found from the constructed MCT.

[0115] Figure 9 shows a typical MCT of an AV approaching a roundabout from a two-lane road. Figures 5A-5C illustrate such a scenario (see below).

[0116] The goal is for the AV to merge into the roundabout. The initial state s0 involves the AV approaching the roundabout in the left lane. The AV can perform three possible maneuvers: stop, stay in lane, and change lanes to the right. These three maneuvers are represented by edges 904a, 904b, and 904c, respectively. The resulting state s 1A , s 1B , and s 1C corresponds to an AV stopping at the junction with the roundabout, merging into the roundabout in its current lane, or changing lanes onto the right lane of the road, respectively.

[0117] If the AV follows edge 904b, the resulting state s 1B is terminal node 906b, because the AV merged into a roundabout. Terminal node 906b may or may not be a successful node.

[0118] If the AV performs a right move along edge 904c, it will enter the right lane of the road. The AV then has the option of continuing forward along edge 908b, or stopping along edge 908a. By continuing forward, the AV will merge into the roundabout, and the path will therefore terminate at terminal node 910b. However, if the AV stops, it can perform either a stopping maneuver or a lane-keeping maneuver (i.e., merge into the roundabout in the right lane) in the next time interval.

[0119] If the AV follows edge 904a and performs a stop maneuver from the current state s0, it has the option of again performing one of three maneuvers: stop, keep lane, and move right.

[0120] Each time a lane-keeping maneuver is performed, a terminal node is generated because the AV has merged into a roundabout. If a move-right maneuver is performed, the number of child nodes decreases by one because a move-right maneuver cannot be performed in the next iteration. If a stop maneuver is performed, all three maneuvers remain possible. The MCT can be constructed in this manner for all possible paths. Once the MCT is constructed, the optimal path is found.

[0121] As mentioned above, it is possible to find a sufficiently optimal solution even if the MCT is not fully constructed.

[0122] Figure 3 shows a flowchart of a typical MCTS algorithm that can be performed on the game tree D00 of Figure 2. Since the MCTS method is known per se, the steps involved are only briefly described to demonstrate the application of MCTS in the present context.

[0123] MCTS operates iteratively based on a stochastic calculation that can be thought of as a form of "backpropagation" of rewards from the terminal nodes under consideration (note that this is a different stochastic calculation than the chain rule used for backpropagation in neural networks).

[0124] The game tree D00 is constructed dynamically as the MCTS runs, and is likely only partially constructed in practice: a node is added each time a new state is encountered, and possible maneuvers the vehicle can perform from that state are hypothesized, until a terminal node is reached.

[0125] Each iteration begins by traversing the existing tree, starting with the selection of a root node D02 (step E0). The selected node is marked as visited (E2), and a single path through the game tree D00 from the root node to a terminal node is attempted (E4). This means running a simulation to determine successive changes in the state of the driving scenario (starting from the state of the root node) as described above, until a terminal node is reached. The rollout is randomized, i.e., a maneuver is randomly selected, and a new node is added to the tree. If the new node is not terminal, a rollout to the terminal node is simulated. The rollout is also randomized, i.e., starting from a leaf node, a maneuver is randomly selected to proceed from there to the terminal node. The iteration is then scored as described above, and information about the score is backpropagated through the visited nodes (E6). Next, an unvisited node is selected (E8), and the process is repeated with the newly selected node, starting from step E2.

[0126] Each iteration can begin by first selecting a root node D02 (E0) and "visiting" previously unvisited nodes. The selected node is marked as visited (E2), and a single path through the game tree D00 is extended from the selected node to a terminal node (E4). This means running a simulation to determine successive changes in the state of the driving scenario (starting from the state of the selected node) as described above until the terminal node is reached. The path extension is randomized; that is, starting from the currently selected node, a maneuver is randomly selected to proceed from there to the terminal node. The terminal node is then scored as described above, and information about the score is backpropagated through the extended path (E6). (Note: nodes along the extended path are not marked as visited.) Next, an unvisited node is selected (E8), and the process is repeated with the newly selected node, starting from step E2. Unvisited nodes are selected based on score information backpropagated through the game tree so far, in a way that biases node selection (over time) towards more promising outcomes, while still encouraging a sufficient level of exploration to mitigate the risk of undesirable convergence to a mere local optimum.

[0127] The process is repeated iteratively (E10) until it is terminated. This may be, for example, when a certain time limit is reached, or when a certain number of iterations has been performed. The advantage of MCTS is that it can be terminated at any time, but the longer it runs, the closer it will, on average, be to the globally optimal solution.

[0128] Upon completion, AV planner A6 selects one of the augmented paths determined to be the most promising and generates control signals for controlling the AV to perform a corresponding sequence of maneuvers in the encountered real-world driving scenario (E12).

[0129] The most promising pathway may be the one with the highest score, however, information other than score can also be taken into consideration (see below).

[0130] In real-world driving scenarios encountered by AVs, the road layout is typically fixed and known, but other vehicles / actors in the scenario are dynamic. Thus, new actors may be detected as the MCTS procedure executes over time. When a new actor is detected during an ongoing MCTS procedure, the structure of the constructed game tree, including the existing constructed nodes and edges, is preserved. However, the simulation is re-run on the existing game tree to recalculate the reward function taking into account the simulated behavior of the newly detected agent.

[0131] 5A shows an example of the MCTS process applied to a roundabout driving scenario in a simulator. An ego-vehicle, designated by reference numeral 500, must safely plan through the roundabout scenario in the presence of other vehicles 502 on the roundabout. This is done by selecting a sufficiently optimal sequence of maneuvers: "slow down," "keep lane," and "change right lane" (to the right).

[0132] Figure 5B shows how different maneuver sequences are evaluated by the MCTS.

[0133] 5C shows the ego vehicle 500 selecting and executing a maneuver sequence for entering the roundabout. The process then repeats to determine and execute a maneuver sequence for exiting the roundabout.

[0134] As described below, MCTS can be implemented with probabilistic predictions about the behavior of other agents. For example, both probabilistic maneuver detection and probabilistic target recognition are considered below. In probabilistic predictions, one or more relevant distributions are sampled at the beginning of the process to effectively obtain a deterministic prediction or set of predictions (samples). MCTS is then repeated with various deterministic predictions sampled from the probabilistic predictions.

[0135] Figure 15 shows a high-level flowchart of MTCS implemented in probabilistic forecasting.

[0136] In step 1502, at least one probabilistic prediction is determined for the external actor. This may be, for example, the distribution of the agent's possible maneuvers P(M|τ) and / or the distribution of possible goals P(G|O) (see below).

[0137] The notation O denotes a set of observations. An observation O may be the observed trace τ itself (O=τ), although O is not necessarily limited in this respect. For example, in one embodiment, an observation O may be the agent's maneuver M j In this case, P(G | M j ) can be used (possibly as a shorthand, since the observations O may contain further parameters) (note also that the maneuvers can be inferred from the trace τ).

[0138] In step 1504, the distribution of step 1504 is sampled to obtain a set of deterministic predictions. For example, P(M|τ) is sampled to obtain a set of deterministic predictions for the actual current maneuver M j P(G|O) can be selected and / or P(G|O) can be sampled to select the actual current target in a statistically robust manner (so that more likely targets, maneuvers, etc. are more likely to be selected).

[0139] In step 1506, the entire MCTS process is executed as described above, which may be iterated as a "super iteration" of the MCTS process to distinguish it from the iterative steps executed within the MCTS process to traverse the tree.

[0140] Multiple superiterations of the MCTS are repeated with different samplings of the probabilistic prediction, e.g., different targets / maneuvers sampled in step 1504 from the same target / maneuver distribution P(G|O) / P(M|τ). That is, for each superiteration, the probabilistic prediction is resampled in step 1504. The iterations are shown to run until a set of stopping conditions are met (1508), e.g., a time limit is reached or a certain number of superiterations have been performed.

[0141] Once all of the super iterations of the MCTS process are completed, a statistical analysis of all the results is applied in step 1510 to select the most likely maneuver sequence for the ego vehicle.

[0142] The statistical analysis of the overall results in step 1510 takes into account the scores determined in each MCTS superiteration. However, other information can also be taken into account, such as the "confidence" associated with a given maneuver sequence. Confidence reflects the extent to which the maneuver sequence has been tested by simulation. For example, a particular maneuver sequence may have a high score in one MCTS superiteration but not been tested in other superiterations. In that case, this sequence may have a high score but low confidence and therefore may be disregarded in favor of a lower-scoring but more confident, i.e., more widely tested, maneuver sequence.

[0143] External agent behavior simulation To determine the changes in the driving scenario state as the game tree D00 is constructed, it is necessary to predict the future movements of external actors. As mentioned above, the behavior of such external agents is modeled for this purpose by a prediction component A4.

[0144] In this context, various forms of generative models can be used.

[0145] One example of a suitable model is an "inverse planner." By way of example, reference is made to UK Patent Application No. 1816850.0, entitled "Autonomous Vehicle Planning and Prediction," which is incorporated herein by reference in its entirety. This discloses an inverse planner that can be used in the present context to simulate the behavior of an external agent. Inverse planning is described below.

[0146] Agents can be assumed to plan at the same level as vehicles, although they do not necessarily use the same methods.

[0147] The knowledge assumed to be shared by the vehicle and the external agent for the purpose of prediction is a map.

[0148] Further details of the specific mechanisms by which MCTS for maneuver planning can be combined with target recognition are provided below after the discussion of inverse planning.

[0149] The inverse planning component A24 is shown forming part of the prediction component A4 in Figure 1. The inverse planning component A24 (inverse planner) implements "inverse planning" as described below.

[0150] Additionally or alternatively, the generative model may be trained to predict the future movements of the agent using real-world driving behavior data, such as CCTV (closed circuit television) footage.

[0151] One such example is a neural network-based model (or other trainable function approximator) that uses observer parameters, such as the observed trace of an external agent for a short time period prior to t, to predict how an agent is likely to move. This may be a probabilistic model or it may be deterministic. Such models can be used to generate realistic behavior in driving contexts (e.g., unknown road layouts) that the model has not encountered before, leveraging the ability of such models to generalize from training examples when properly trained.

[0152] Another example is a model of a known driving domain derived through direct observation of that driving domain, e.g., based on CCTV footage. For example, in the context of urban driving, models can be constructed for difficult driving domains such as complex / congested junctions, roundabouts, etc. One such model is the spatial Markov model, in which the driving domain is divided into grid cells, and the occupancy probabilities of the grid cells and / or the transition probabilities between grid cells are determined through long-term observations, which can be used to predict the behavior of external agents based on their observed parameters.

[0153] These are examples of trained behavioral generative models.

[0154] Referring to FIG. 4, a generative model F06 can be trained offline in a training computer system F00 to simulate the behavior of an external agent. Real-world driving behavior data F01, such as CCTV data, is received by a behavior extraction component F02 of the training system, which processes the data to extract examples of driving behavior for use in training. A training component F04 uses these examples to train a generative model F06 to simulate the behavior of an external vehicle based on observed parameters (e.g., observed traces), as described above. The training component F04 and the behavior extraction component F02 are functional components of the training system F00 that execute on one or more processors (not shown) of the training system F00. Once the generative model F06 has been trained in this manner, it can be incorporated into an AV by transferring it to electronic storage in the autonomous vehicle's on-board computer system A1, enabling the prediction component A4 to perform the functions described above.

[0155] Reverse Planning To assist AV planner A6 in determining an AV plan, such as determining the sequence of maneuvers, actions, etc., that the ego-vehicle should perform to safely and effectively accomplish a defined goal, inverse planner A24 predicts the movements of nearby external actors, sometimes referred to in this context as agents. Inverse planner A24 is an example of a generative behavior model that may be applied in the above context.

[0156] Inverse planning can be performed at the maneuver level to make probabilistic predictions about the current maneuvers of external actors. For example, the inverse planner A24 can predict a probability distribution P(M|τ) over a set of available maneuvers M, such as "lane keep," "lane change," etc., given a set of relevant observations that include (or are derived from) the trace τ. Inverse planning at the maneuver level is a form of (probabilistic) maneuver detection.

[0157] Alternatively, or in addition, inverse planning may be performed at the goal level to make probabilistic predictions about the current goals of an external actor. For example, the inverse planner A24 may predict a probability distribution P(G|O) over a set of available goals G. For example, in a driving scenario involving a left turn, the goal may be a "turn left" goal or a "continue straight" goal (i.e., stay on the current road and do not turn left) captured as a suitable goal position. Inverse planning at the goal level is a form of (probabilistic) goal recognition.

[0158] Target recognition and maneuver detection typically operate on different time scales. Target recognition generally considers a longer time period into the future than maneuver detection. For example, maneuver prediction may look a few seconds into the future (e.g., on the order of 5 seconds), while target recognition may look further ahead than this (depending on the circumstances). Thus, target recognition generally considers longer trajectories (i.e., trajectories further into the future) than maneuver recognition.

[0159] A goal can be captured, for example, as a desired location (reference point) on the map (i.e., within a map frame of reference) that the ego-vehicle attempts to reach from its current location on the map, where the desired location is defined relative to the encountered road layout. For example, the desired location may be defined relative to a particular junction, lane layout, roundabout exit, etc. Given the surrounding road layout and any external actors, there may be various paths / actions the vehicle can take to successfully execute its goal by reaching the desired location. There may also be ego-vehicle actions that prevent the ego-vehicle from doing so; for example, a poorly selected sequence of initial actions may result in the vehicle being forced to take an undesirable roundabout exit due to the behavior of external actors when continuing to execute the goal would be unsafe, or may otherwise abort the goal. Incorporating reliable predictions about the behavior of external actors into planning helps AV planner A6 plan safely and effectively and minimizes the occurrence of goal interruptions.

[0160] When performed at the goal level, inverse programming hypothesizes various possible goals for each external agent, then generates trajectories for how the agent can achieve each goal, and the likelihood of following each trajectory. The underlying assumption is that each external agent will behave in a way that can be predicted using a generative model.

[0161] Inverse planning in this context refers to a particular type of prediction method that can be implemented by AV prediction component A4: inverse planning is a particular method for predicting the behavior of external actors, especially other vehicles, by assuming that the external actors plan in a predictable manner.

[0162] The term "inverse planning" refers to this underlying assumption that external actors plan their own decisions in a predictable way. More formally, it is assumed that other vehicles plan and execute according to generative models that can be assumed.

[0163] The inverse planning method will now be described with reference to Figure 6, which shows a flowchart of the method. This considers inverse planning at the goal level, but the underlying principles apply equally to inverse planning at the maneuver level. The steps of the method are performed iteratively in real time or pseudo-real time by the inverse planner A24 so that sufficiently up-to-date predictions are always available to the AV planner A6. The method makes use of information provided by the data processing system A2, namely, information about the surrounding environment / road layout, the positions / states of any other actors in the environment, and the traces of those actors observed through object tracking.

[0164] The following steps are performed for each of the one or more external actors under consideration (vehicles, pedestrians, cyclists, etc.), which in the following examples are vehicles other than AVs.

[0165] In step SB2 (FIG. 6), a set of hypothesized goals is determined for the other vehicle of interest. The other vehicle is hypothesized to be currently executing one of these goals. To determine the appropriate set of hypothesized goals, the driving context, such as the road layout in the vicinity of the other vehicle, is determined.

[0166] Goals for external agents are generally assumed based on a map. For example, given a set of external vehicles near a road junction, roundabout, or other road layout (driving context) shown on a map, appropriate goals can be assumed from the road layout alone (without considering the observed past behavior of the agents). As an example, for a set of external agents near a left-turn junction, the assumed goal may be to turn left and continue straight. As shown, such goals are defined with reference to appropriate goal locations (e.g., reference points) on the map.

[0167] However, available goals may be hypothesized in various ways: for example, observed past behavior (such as traces observed prior to time t) may be considered in hypothesizing goals for the external agent, or a combination of map-based reasoning and past behavior-based reasoning may be used to hypothesize goals.

[0168] Note that even if past behavior is not used to hypothesize available goals, past behavior is nevertheless used to determine the likelihood of each of those goals (because P(G | O)) depends on the observed values ​​O of the agent's behavior).

[0169] Once the set of hypothesized targets has been determined, the following steps are performed for each of those targets.

[0170] In step SB4, a predicted trajectory model is determined for the hypothesized target of interest. The predicted trajectory model is a model that simulates the future behavior of other vehicles based on the assumption that the vehicle is executing that particular target. In particular, the predicted trajectory model indicates how likely it is that the other vehicle will take a particular path (trajectory) for a given period Δt (from time t to time t + Δt), assuming that the other vehicle is executing that target in that period. As shown, the target that the vehicle is executing can be parameterized by an end point based on the map. For example, if the target is to go straight (rather than, e.g., turn left), the end point can be a point on the road a predetermined distance, e.g., 40 m, ahead of the vehicle in the same lane. Alternatively, for example, in a multi-lane scenario, the target location can be some distance along the road ahead without specifying a particular lane (see below for further details).

[0171] The predicted trajectory model could simply be a (single) predicted path for a given target, but in this example it takes the form of a predicted path distribution for the target of interest. The predicted path distribution is in this example the position r of the external vehicle at time t. t In view of this, combining a discrete set of n predicted trajectories for the target of interest yields for each target a predicted trajectory distribution over at least the time interval Δt.

[0172] As an example, FIG. 7A shows a set P of predicted paths for each of the targets G1 and G2 predicted for a particular external vehicle. G1 , P G2 The targets G1, G2 are defined relative to reference positions R1, R2, respectively, in a map frame of reference, which can be a point or an area on the map. The position r of the external vehicle at time t t and the reference points R1 and R2 of each target, the predicted path set P G1 , P G2 are synthesized for targets G1 and G2, respectively.

[0173] In this example, each target is defined solely with respect to a single reference point / area, but it will be appreciated that targets can be defined in other ways, for example, with reference to multiple reference points as the situation requires. Targets are generally defined by a set of one or more target parameters, which are generally defined in a map frame of reference in the context of autonomous driving. A reference location in a map frame of reference is one example of a target parameter, and all discussions regarding such reference locations apply equally to other types of target parameters.

[0174] Following the left turn example, one set of paths is generated for the "straight" target, which are the predicted paths the other vehicle could take if it executed the "straight" target, and another set of paths is generated for the "left turn" target, which are the predicted paths the other vehicle could take if it executed the "left turn" target.

[0175] A generative model can be used to synthesize these paths. The underlying assumption is that other vehicles will use this model to plan and execute. The model can correspond to the AV planner A6 itself (assuming other vehicles plan in the same way as the ego-vehicle), but it may be different from the AV's own planner.

[0176] For example, a path can be synthesized for each target using a rapid-searching random tree (RRT) model. Following the example of FIG. 7A, for each target G1, G2, a space of predicted paths (search space) is defined based on that target's reference position (R1, R2, respectively) and the external vehicle's current position r0. The search space is then randomly sampled (based on randomized input parameters) to determine a set of n paths and the likelihood of each of those paths. To simulate n paths for each target, the relevant parameters of the RRT are randomized n times to perform n appropriately biased random searches of the search space.

[0177] By way of example, UK Patent Application No. 1803292.0, entitled "Efficient computation of collision probabilities for safe motion planning," which is incorporated herein by reference in its entirety, discloses an RRT model that can be used in the present context to perform inverse planning. The probabilistic risk of collision along a given trajectory is calculated and used to rank candidate trajectories by safety. This results in a likelihood for each sampled path based on the assumption that an external vehicle is more likely to take a safer path to accomplish a target goal. That is, the probability of a path can be determined based on an assumed relationship to safety. The sampled paths and their probabilities are an example of a trajectory model.

[0178] However, this is only one example of a suitable generative model, and other forms of generative models may be used. Examples of alternative trajectory models are described below.

[0179] One such example is a neural network-based model trained to output a path prediction model (e.g., a predicted path or a distribution of predicted paths) given an observed trace and a goal to be executed. The network is trained based on examples of real-world driving behavior. For example, the neural network can be trained based on examples extracted from a large corpus of CCTV (closed circuit television) data acquired in urban driving environments.

[0180] Another example is a spatial Markov model (or similar model) that can be predetermined for a particular operating region by monitoring the operating region over a sufficient period of time (see above).

[0181] In general, the inverse planner A24 can be any model that can reason about different hypothesized goals.

[0182] In step SB6, the traces of other vehicles actually observed over the time period Δt (i.e., between times t and t+Δt) are matched with the distribution of paths for the target of interest over that time period Δt to determine the likelihood of that target.

[0183] As an example, FIG. 7B shows the actual observed trace τ of the target vehicle between time t and t+Δt. By matching the actual trace τ with the predicted path distribution for each of targets G1, G2 (FIG. 7A), the likelihood of each target G1, G2 can be determined probabilistically for the time interval Δt. This may be a form of soft matching. The target likelihood is calculated by comparing the actual trace τ with the predicted path distribution for each hypothesized target G1, G2 given the observed trace τ of the external vehicle. i The conditional probability of i |τ), which indicates that the external vehicle is at its target G in the time interval Δt given the observed trace τ. i is the estimated probability that

[0184] In other words, the inverse planner A24 is used to predict, for each hypothesized target, a set of possible paths that the other vehicle could have taken in that time interval Δt, assuming that the other vehicle was executing that target in that time interval, and the likelihood of each of those paths (i.e., what the other vehicle would have done in the time interval Δt if it were executing that target). This is then compared with the actual trace of the other vehicle in that time interval (i.e., what the other vehicle actually did) to determine the likelihood of each target in the time interval Δt.

[0185] Referring to FIG. 7C, now that the likelihood of each target given the observed trace τ is known, the (absolute) likelihood of any given predicted path (trajectory) T after time t+Δt given the observed trace τ can be calculated as, e.g.,

number

[0186] where p(Gi |τ) is defined as above, and the target G i is the estimated probability that an agent will take path T given the path distribution in . Note that the notations "Δt" and "ΔT" are equivalent herein. Also note the distinction between the mathematical notation used to represent trajectories (lower or upper case Greek letter "tau", i.e., τ, T) and the notation used to represent time (lower or upper case Latin "tee", i.e., t, T).

[0187] A trajectory may be a simple spatial path, but the description applies equally to trajectories incorporating motion information (speed / velocity information, acceleration, etc.). In the latter case, two trajectories may correspond to the same spatial path (or at least respective portions of the trajectories may correspond to the same spatial path), but they may nevertheless be different trajectories, for example, because they are associated with different speed information (e.g., one corresponds to a vehicle traveling along substantially the same spatial path but with a slower speed at least at some points along the spatial path). For example, a trajectory may take the form of a spatial path combined with an associated speed or set of velocities associated with each point or portion of the spatial path. Extensions may further incorporate associated acceleration values, etc.

[0188] Although not shown in the figure, p(T | G i The path distribution at time t+Δt for determining the target G i At time t+Δt, the inverse planner A24 is run on the newly determined position r of the external agent at time t+Δt. t+Δt , and updating the predicted trajectory model accordingly. The target parameters may or may not be updated at this time in order to rerun the inverse planner A24. If a data-driven behavior model is used, the behavior model may likewise be rerun at that time to update the predicted trajectory model.

[0189] The above steps are performed repeatedly over time, possibly in real time. For external agents that are somewhat far from reaching their goals, it may not initially be possible to clearly determine which goal they are pursuing, as the path distributions to different goals will initially be similar, which will be reflected in the distribution of probabilities over the set of hypothesized goals. As the path distributions diverge, the probability distributions will generally begin to tilt toward specific goals as the path distributions diverge.

[0190] Reverse planning of maneuvers The above considers inverse planning of a goal. As will be shown, inverse planning can also be performed at the maneuver level, for a set of hypothesized maneuvers M.

[0191] For example, if the other vehicle is currently traveling on a multi-lane road with no nearby junctions, the set of hypothesized maneuvers M may consist of "lane keeping" and "lane change." In that case, one set of paths is generated for the "lane keeping" maneuver, which are predicted paths that the other vehicle could take if it were currently performing a "lane keeping" maneuver, and another set of paths is generated for the "lane change" maneuver, which are predicted paths that the other vehicle could take if it were performing a "lane change" maneuver. The above description applies equally to maneuver-level inverse planning, using a set of hypothesized maneuvers M instead of a set of hypothesized targets G.

[0192] For maneuver-level inverse planning, we use the observed trace τ of the external agent to calculate each maneuver M j We can estimate the probability of each maneuver M j For each ∈M, a predictive trajectory model is determined for time t, as in Figure 7A. The predictive trajectory model can be a single trajectory or a distribution of trajectories. Then, we apply the actual observed trace τ to each maneuver M. j By comparing with the trajectory model (such as in Figure 7B), the probability of that maneuver P(M j │τ) is the trace τ observed for that steering M jThe trajectory of the trajectory can be estimated based on how well it matches the trajectory model of the trajectory. As mentioned above, this can be a form of soft matching.

[0193] In the following examples, to simplify the calculations, each maneuver M j is mapped to a single trajectory for the purposes of inverse planning. For maneuvers involving a distribution of trajectories, the most frequent or most likely trajectory from the distribution can be taken for the purposes of inverse planning. In that case, a single trajectory T j is assumed to exist, and therefore P(T j │M j )=1 and the probability of all other trajectories is assumed to be 0.

[0194] The notation used above is that for a given maneuver M j Orbit T related to j and given goal G i Distinguish between the trajectory T evaluated with respect to

[0195] Goal G i To reach this, the external agent must, for example, j , M k , ... i (reaching) is an individual maneuver M i , M j For example, in the embodiment described below, the target trajectory is determined by combining the maneuver trajectories and applying velocity smoothing to it. For this reason, the maneuver M i Trajectory T associated with (or evaluated in relation to) i may be referred to as a "partial trajectory," and the trajectory T associated with (or evaluated in relation to) the target may be referred to as a "full trajectory."

[0196] Specific Objective G i When multiple orbitals up to are considered, the notation T(n) Instead of T, target G i It can be used to refer to the nth orbit up to

[0197] This above-mentioned simplifying assumption of a "one-to-one" relationship between partial trajectories and maneuvers has been shown to result in acceptable performance with less computational burden. However, alternative implementations that do not make this simplifying assumption of a "one-to-one" relationship between trajectories and maneuvers are nevertheless viable. In the absence of this simplifying assumption, the more general Bayesian stationary relation

number

[0198] where p(T k │M j )∈[0,1] is the steering M l Partial orbit T in consideration of j In that case, rather than assuming the most frequent / most likely subtrajectory, we instead define the subtrajectory as p(T j │M l ), and all discussion herein regarding the most frequent / most likely sub-trajectories applies equally to the sampled trajectories in that case.

[0199] Inverse Planning - Typical Implementation By way of further illustration, we now describe in more detail an exemplary implementation of inverse programming for goal recognition, which uses inverse programming at the goal level to predict a probability distribution P(G|O)) of a set of available goals G of at least one external agent, i.e., for each available goal, predict an estimated probability that the agent is currently enacting that goal.

[0200] Furthermore, the described embodiments use probabilistic maneuver detection to predict a distribution P(M|τ) of a set of possible maneuvers M given the observed trace τ of the external agent, i.e., for each possible maneuver, predict an estimated probability that the agent is currently performing that maneuver. The maneuver predictions are fed into target prediction, as described below. Maneuver detection can be implemented, for example, using inverse programming at the maneuver level.

[0201] In other words, the described implementation reasons at both the pilot level and the target level.

[0202] goal recognition Goal recognition is the process of inferring an agent's goal (an external actor, which in the following example is a target vehicle, but which may also be another form of actor, as discussed above) in light of observations of the agent's past actions and other contextual information.

[0203] In the present context, goals typically specify target locations for vehicle objectives that the inverse planner A24 infers, such as various exit points or different lanes on a highway / junction. Knowing the goals of another agent can inform the planning process, as predictions can be made about the agent's behavior relative to the assumed goals.

[0204] Using target recognition also increases the "explainability" of an AV system. Explainability refers to the system's ability to explain its decisions to humans. Recording the target inference process (what the vehicle believed to be the target of other vehicles at various times) can provide interpretable information for tracing and debugging decisions.

[0205] Goals can be inferred deterministically or probabilistically. In the following example, goals are inferred probabilistically given a set of relevant observations O, i.e., the goal posterior P(G|O) is estimated for a finite set of available goals G, and P(G i│O) is the external agent's goal G in light of the observed value O. i ∈G.

[0206] In the context of MCTS, goals are probabilistically reasoned in order to make reasonable predictions about the future trajectories of external actors as the tree is rolled out in the sense described above.

[0207] Maneuvering and Targeting First, an exemplary scheme for determining available targets and maneuvers is described. This description provides context for the specific implementation of inverse planning described below. However, the description is not limited in this respect and applies equally to other implementations of MCTS, including alternative implementations of inverse planning / target recognition and implementations that do not use target recognition (e.g., the example described above that uses a data-driven behavior model without higher-level target recognition).

[0208] Multi-Policy Baseline A "multi-policy approach" is used as a baseline. The underlying assumption of the multi-policy approach is that all vehicles, including the ego vehicle (or, more generally, external actors), are performing one of a finite number of maneuvers at any given time, such as lane keeping, lane changing, turning, etc. Such maneuvers are sometimes referred to herein as "steering policies" (note the distinction between a steering policy, i.e., a maneuver among a finite set of maneuvers, and an action policy that can be used to execute a selected steering policy; also note that British / American spellings for maneuvers are used interchangeably herein).

[0209] A "target" actor refers to an external actor whose behavior is being predicted. Predictions can be made for one or more target vehicles (or other actors), and the set of assumptions described above applies to each target actor. The example steering policies in the preceding paragraphs are "closed-loop" in nature, i.e., they automatically change speed and distance to a leading vehicle (the leading vehicle is the vehicle the target vehicle is following) taking sensor feedback into account. However, as explained below, for the purposes of inverse planning, they can be modeled as "open-loop" maneuvers, which has the advantage of improved computational efficiency and does not significantly affect the performance of the inverse planner A24. In the following example, the target and leading vehicles are automobiles, but the discussion applies equally to any form of actor (vehicle, pedestrian, cyclist, etc.). Similarly, while the example considers an autonomous automobile (ego-vehicle), the discussion applies to any form of autonomous vehicle.

[0210] FIG. 12, described in more detail below, shows a maneuver detector 1102 as part of the prediction component A4.

[0211] As an example, the maneuver detector 1102 can perform inverse planning at the maneuver level in the manner described above.

[0212] As another example, the maneuver detector 1102 can implement a Bayesian change-point detection method, which is used to segment the target vehicle's observed low-level trajectory into a sequence of maneuvers, and the most recent segment is used as a prediction of the vehicle's currently executed maneuver. Using this prediction, several forward trajectories are simulated for each maneuver available to the ego vehicle, and the maneuver with the best rating is selected for execution.

[0213] Bayesian change point detection is known per se and refers to the probabilistic detection of changes in the underlying hidden state of a system. In this context, the hidden state of an external actor at a particular time is defined as the steering policy currently in execution. This hidden state cannot be directly observed and must therefore be inferred through the observations it causes, which in this example are the observed traces. This allows us to estimate the probability of each available maneuver at the current time, i.e., the probability that the external actor is currently executing that maneuver.

[0214] For example, a Hidden Markov Model (HMM) can be used, where maneuvers are represented as hidden states of the HMM, and the observed traces are modeled as arising from state transitions of the HMM.

[0215] As described below, to greatly simplify the planning process, a relatively small set of steering policies can be defined. Such a small set is possible because the steering policies are defined to encompass low-level planning, such as speed and distance. Similarly, other vehicles are assumed to be executing one of these same policies, so their current maneuvers can be efficiently inferred in light of the low-level trajectory.

[0216] This multi-policy method itself is myopic in that it only predicts the current maneuvers of other vehicles and does not attempt to predict their future maneuvers. Inverse planning builds on this method to predict future actions, as described below.

[0217] Control Basic Controls Maneuvers represent basic actions used in planning and forecasting. The following "basic" (elementary) maneuvers are considered in this example:

[0218] Lane keeping · Changing lanes left and right Turn right or left (towards the lane closest to your direction of travel) ·Stop / Alert It will be appreciated that the techniques described can be extended to other or additional maneuvers.

[0219] Each basic maneuver has specific applicability and termination conditions associated with it. A maneuver is available in a given state if and only if that state satisfies the maneuver's applicability conditions. For example, changing lanes to the left is only possible if there is a lane to the vehicle's left and that lane has enough free space for the vehicle. Additionally, applicability conditions can encode traffic rules. A maneuver terminates when a state satisfies its termination condition. In the case of a lane-change maneuver, this is once the vehicle reaches its lane and is aligned with the lane direction.

[0220] Between the start and end of the maneuver, the maneuver specifies a reference path that the ego-vehicle should follow and a target speed along that path. In this context, a trajectory is defined as the pair (static reference path, target speed), i.e., a static reference path plus a set of target speeds (see above).

[0221] However, in general, a maneuver will have multiple trajectories associated with it. For example, in the context of prediction, a maneuver can have a trajectory distribution associated with it, i.e., a set of trajectories, each with a specified probability (i.e., the probability that an external actor will follow that trajectory given that it is currently performing that maneuver).

[0222] Some maneuvers, such as lane keeping and vigilance, do not have natural exit conditions. For such maneuvers, the exit conditions are specified as parameters. "Macro actions" (see below) automatically set these parameters based on contextual information.

[0223] The alert maneuver is a variant of the stop maneuver used in macro actions. Alert slows the vehicle and keeps it moving to a specified location given as a parameter. At that location, the maneuver terminates if an exit condition is met; otherwise, it brings the vehicle to a complete stop and then terminates if an exit condition is met. The exit condition is used to check for oncoming traffic in a specified lane (given as a parameter). If no lane is specified, the exit condition is always true. This allows for safe and smooth entry / exit planning when oncoming traffic may be present.

[0224] As a special case of only watching for exit left / right macros, a forced termination is enabled if the approaching vehicle is predicted to stop and remain stopped for at least the time required for the controlled vehicle to complete the turning maneuver. This enables special cases such as Scenario 3, described below.

[0225] Some of the basic maneuvers are only used within macro actions because they have additional parameters or are only possible in very specific places, such as turning maneuvers.

[0226] The following examples use two basic types of maneuvers: inverse planning (prediction), more generally open-loop maneuvers for target recognition by target recognition component A24 of Figure 1, and closed-loop maneuvers for MCTS self-planning in the AV's planner A6, which are described in more detail below.

[0227] Closed-Loop Maneuvering A basic maneuver is closed-loop if it uses feedback from sensors. This can cover various degrees of automation in maneuvers. Here, each closed-loop maneuver is assumed to automatically control the vehicle's speed and distance to the vehicle ahead (a form of adaptive cruise control (ACC)). It is also assumed that each maneuver can automatically initiate emergency braking.

[0228] The system is agnostic about the specific implementation of the maneuver, essentially viewing it as a "black box" function. This has the advantage of flexibility, allowing a variety of representations to be straightforwardly incorporated. Possible implementations include:

[0229] Hard-coded heuristics using finite state machines or arbitrary programming logic A grid path planner that uses motion primitives defined by a kinematic bicycle model. Constraint optimization planner The planning methods listed above can be called repeatedly after a state change to make them closed loops.

[0230] Open Loop Steering In contrast to closed-loop steering, open-loop steering does not use sensor feedback. Open-loop steering specifies reference paths (or distributions about paths) and does not attempt to modify these paths with feedback. This allows for a simpler and less computationally expensive implementation of steering.

[0231] Again, the system is agnostic about the expression of the open-loop maneuver.

[0232] A simple yet effective way to implement open-loop steering is to fit a polynomial function to a set of points extracted from the road topology. The target speed can be set to a constant or other time series. This computes a single trajectory rather than a distribution of trajectories, which has proven to be sufficient in many practical contexts.

[0233] Another embodiment uses behavioral models of the types described above, such as Gaussian processes or neural networks, on the collected driving trajectories. This trajectory data can be generated in a variety of ways.

[0234] · Use corresponding closed-loop maneuvers under different conditions in simulation.

[0235] From real-world driving data generated by AV platforms.

[0236] From actual CCTV data segmented into recognized maneuvers. As an example, Figure 13 shows an example of a Gaussian trajectory model 1202 fitted to trajectories observed in CCTV footage over time.

[0237] Conditions such as "wait until oncoming traffic clears" used in cautionary maneuvers can be implemented in open-loop maneuvers by waiting a specified time until the condition is predicted to be true (e.g., waiting until traffic is predicted to clear).

[0238] Target Speed ​​and Speed ​​Smoothing As mentioned above, in this example, the trajectory is defined as a static path combined with a set of target velocities.

[0239] The target speed is set within the basic maneuver. As a general rule, it can be assumed (for example) that the vehicle will attempt to travel at a certain speed (e.g., a speed limit) in a certain area. This target is reduced if there is a slower vehicle ahead (in which case the speed of that vehicle becomes the new target), or if this is necessary due to the curvature of the route, etc.

[0240] For open-loop lane keeping, the target speed is min (speed limit, if any, of the vehicle ahead) is set to

[0241] Because of its simplicity, this method is inexpensive to compute, but it may result in predicted trajectories of other vehicles that collide. For example, in Scenario 1 below, the truck is predicted to continue straight ahead at the speed limit (because there are no vehicles ahead), and is also expected to be overtaken by Vehicle 2 (during the lane-keeping portion of the overtake) at the speed limit. Because Vehicle 2's inverse planning actually assumed a constant speed for the truck, it is possible that Vehicle 2's predicted trajectory and the truck's predicted trajectory may collide. However, in this case, and many other cases, this discrepancy proves not to pose a problem for Ego Planner A6, which can still use the prediction output of this simple method to make safe and effective planning decisions.

[0242] For basic maneuvers that generate curved trajectories (e.g., turns and lane changes), the target velocity is set using a heuristic based on the local curvature. This function is shown below, where v target is the target velocity and ψ is the point curvature. The other terms are constants set to appropriate values.

[0243] v target=max (v min ,v max -cψ) The point curvature is given by the following equation, where x and y are Cartesian coordinates: The derivatives of x and y are estimated from the target path of the vehicle using finite differences:

number

[0244] velocity smoothing Since the speed is set within the basic maneuver, two subsequent maneuvers may have abrupt changes in speed. A typical example is a lane keeping followed by a turning maneuver.

[0245] To compensate for this effect, the resulting overall trajectory across different maneuvers can be velocity smoothed to improve control and realism. A velocity smoothing function is used that optimizes the target velocity for a given trajectory. Velocity smoothing is used for both prediction (inverse planning) and MCTS self-planning.

[0246] Velocity smoothing is formulated as an optimization problem for the trajectory along a given path: a set of points at longitudinal positions

number

[0247] and their respective target speeds

number

[0248] Then, a continuous and differentiable function κ:x→v is fitted. Then, over the time horizon T H (which can be estimated, for example, using the target velocity), the elapsed time between the two time points Δt, and other optimization parameters (e.g., the maximum velocity v max and acceleration α max ), the smoothing problem is defined as follows:

number

[0249] N=[T H / Δt] From the solution of this problem, using spatial resampling,

number

[0250] The final achievable position is x N is given by

number

[0251] If , resampling is possible from this solution only.

[0252] Or, x N A similar problem can be solved starting from and this procedure can be repeated until the condition is met.

[0253] It is also possible to extend the problem to model other parameters related to the trajectory, such as acceleration, and to impose constraints on such parameters.

[0254] The velocity smoothing should respect the zero velocity of the input trajectory, which represents a complete stop. A simple way to achieve this is to divide the trajectory into segments separated by stop events (zero velocity) and apply a smoothing function to each segment.

[0255] Macro Actions A special kind of maneuver, referred to herein as a "macro-action," makes the planner's life easier in two important ways: by specifying common maneuver sequences and by automatically setting the free parameters of basic maneuvers based on contextual information (usually the road layout).

[0256] In this example, the following macro actions are used (maneuver parameters are shown in brackets):

[0257] · Continue Lane: Specify the sequence <Lane Keeping (until end of visible lane, i.e. end of lane)>.

[0258] Left / Right Exit: Specify the sequence <Lane Keep (until / near turn point), Alert (until oncoming traffic is clear / safe distance), Turn Left / Turn Right>. The exit point is automatically set to be the exit point corresponding to the ego target, allowing macro actions to skip an earlier exit point (this is especially useful in roundabouts).

[0259] Crossing road: Specify the sequence <Lane keeping (until crossing the road / nearby), Alert (until there is no approaching traffic from the crossing road / until it is a safe distance), Lane keeping (until after crossing the road)>.

[0260] Overtaking: Specify the sequence <change lane right, follow lane (until your vehicle passes the other vehicle), change lane left>.

[0261] The applicability condition of a macro-action is given by the applicability condition of the first maneuver in the macro-action, and possibly additional conditions. For example, an additional condition for <left exit> is that the vehicle is in the rightmost lane in the direction of travel and the intended exit point is in the same lane ahead of the vehicle. An additional condition for <cross road> is that there is a road intersection where the ego vehicle must give way to another vehicle (see Scenario 3 below). The termination condition of a macro-action is given by the last maneuver in the macro-action.

[0262] Macroactions can significantly speed up the planning and prediction process because a single macroaction can be sufficient to achieve a given goal. For example, in Scenario 2 described below, if the egocentric goal is G3, a single macroaction, "Exit Right," is likely already sufficient to achieve the goal. Macroactions are also useful because they automatically handle transition points between maneuvers that would otherwise need to be explicitly planned (e.g., setting open exit conditions for maneuvers such as lane keeping).

[0263] The macroactions used in this work do not define a hierarchy of decomposable actions, but simply define a sequence of actions in a flexible way. Macroactions are implicitly included in the planning search space.

[0264] As mentioned above, for the particular exemplary MCTS process described below, all elementary maneuvers in macro-actions are closed-loop, and in inverse planning, all elementary maneuvers are open-loop.

[0265] Goals and Goal Generation Vehicle target The ego vehicle's targets are generated based on the route plan. The route planner (A25, Figure 1) takes as input an annotated road map (annotated with lane directions, traffic signs, etc.) and a start / end location. The route planner calculates a route from the start to the end location that specifies the sequence of road segments and directions that the ego vehicle must travel. This route is passed to the planner A6, which uses it to generate the ego vehicle's targets as follows:

[0266] Conceptually, planner A6 "zooms in" on the map with a view region (e.g., square or circular or any suitable shape) centered on the ego vehicle, similar to the scenario picture shown below. This view region moves continuously with the ego vehicle. At any point in time, the ego vehicle's goal is given by the next exit point in the route (where the car needs to transfer from the current road to a connecting road), or by the visible edge of the current lane if the next exit point in the route is not yet visible. For example, in scenario 1 described below, the next exit point is not visible, so the goal is G1. In scenario 2 described below, the exit point becomes visible, and the new goal is G3.

[0267] Target of other vehicles A target for another vehicle may be defined, for example, as a possible exit point for that vehicle and the visible edge of the road in the vehicle's direction, bounded by the view region of the ego vehicle. A heuristic target generation function is used to enumerate a set of possible targets for the vehicle within a given view region using information about the road layout and traffic rules (e.g., using an SDL road graph). To reduce computation time when there are multiple targets (e.g., multiple exit points), the function may ignore an exit point target for a vehicle if there are already two earlier exit points on the same lane ahead of the vehicle.

[0268] Other types of goals can also be specified, such as "stay ahead of me." Such goals can be dynamically added and removed based on the current configuration of cars in the environment. The following scenario descriptions provide example goals.

[0269] goal recognition In this exemplary embodiment, target recognition is performed on a "cost penalty" basis, as described below with reference to FIG.

[0270] A "plan" in this context means a sequence of one or more primitive maneuvers selected to reach a target. In some cases, such a sequence of primitive maneuvers can be defined by a macro-action. In a macro-action or other sequence of primitive maneuvers, each primitive maneuver is associated with a sub-trajectory, and the sub-trajectories are combined using velocity smoothing to determine a complete trajectory to reach the target.

[0271] Figure 10 shows a schematic flowchart of a method for probabilistically inferring the goals of external actors from a finite set of available goals based on cost penalties. The right side of Figure 10 shows an illustrative example of the steps applied to a scenario with two available goals:

[0272] 1. G1 - Continue along the current road, defined as the target position of the edge of the visible road (more generally as a reference point ahead of the car on the current road).

[0273] 2.G2 - Select right turn exit, defined in terms of exit location.

[0274] Given a set of possible targets for an observed vehicle and a sequence of past elementary maneuvers performed by the vehicle, a process of inverse programming can be used to compute the posterior distribution of targets. This method is based on a sequence of observations O (e.g., the observed trace τ in the example above). n etc.), the target prior P(G), and the likelihood function L(O|G), calculate the Bayesian posterior P(G|O)~L(O|G)P(G) for a possible target G.

[0275] The notations P(O|G) and L(O|G) are equivalent and refer to the conditional probability of an observation O given a target G. The notation "L" is used consistent with the fact that these probabilities are likelihoods in a statistical sense (note that in this disclosure the term likelihood has already been used in its ordinary sense, not necessarily in this particular statistical sense; the meaning will be clear in context).

[0276] The target is defined in terms of the target position, G i can be used to represent the target position of the region. i may be a point in space, or may be an area or may correspond to a particular distance along a road; for example, the target position may be defined as a line perpendicular to the road, and the car may be said to have reached the target once it reaches that line (regardless of its lateral position within the road).

[0277] Given goal G i Likelihood L(O│G i ) is defined as the difference between the respective costs of the two plans (cost penalty).

[0278] 1. Initial position r of the car (at time t) t to target position G i The optimal plan up to time t, i.e., the optimal plan for the vehicle after time t, regardless of any observed behavior of the vehicle, is t From G i This can be done as a sequence of primitive maneuvers, macro-actions, or multiple primitive maneuvers other than macro-actions. The primitive maneuvers combine their associated partial trajectories to reach the initial position r. t From Target G i This yields the optimal overall trajectory to reach (regardless of the actual observed behavior of the car after time t).

[0279] 2. "Best Available" Plan - This is the best possible plan for the car given any observed behavior between time t and time t + Δt. t to target position G i the optimal plan up to r, i.e., under the additional constraint that this plan must match the actual observed behavior in the subsequent time interval ΔT. t From G i In other words, the initial position r of the car such that the plan respects the observation O. t From Target G i It is defined as the optimal plan up to the initial position r, which assumes that the vehicle is more likely to execute the optimal plan to achieve the goal, but is willing to tolerate some deviations. This can also be performed as a sequence of primitive maneuvers, macro-actions, or multiple primitive maneuvers other than macro-actions. Multiple primitive maneuvers combine their associated partial trajectories to reach the initial position r. t From Target G iThis results in a "best available" overall trajectory that also takes into account the actual observed behavior of the vehicle in the interval [t, t+Δt] from t to t+Δt until t is reached. The best available trajectory has an observed portion for the interval [t, t+Δt] that matches the actual observed trajectory, and a future portion for the subsequent time interval, where the future portion is selected to minimize the overall cost associated with the best available overall trajectory (i.e., the total cost of both the observed and future portions).

[0280] This is a form of target recognition because it considers the entire path to reach the target (which may be based on multiple sub-trajectories associated with multiple maneuvers).

[0281] The cost assigned to the overall trajectory can take into account various factors, as described below, including driving time (penalizing trajectories that take longer to reach the goal), safety (penalizing unsafe trajectories), and comfort (penalizing trajectories with excessive jerks, for example).

[0282] Initial position of the car t may be, for example, the first observed position of the vehicle. A reasonable approach is to use a moving window of past observations defined by the sensor range of the ego vehicle to find the initial position r t The purpose is to define

[0283] In step 1004 of Figure 10, an optimal plan (1 above) is calculated for each of the goals G1, G2. Once calculated, this allows the optimal trajectory to be determined for each of the goals G1, G2, using, for example, an A* search (see below for details). After the optimal trajectory is calculated, the total cost associated with the optimal trajectory can be calculated (also described below). The optimal trajectory is the complete trajectory, i.e., the total cost from the initial position r t It is the trajectory from the beginning to the goal in question.

[0284] In the example of Figure 10, the trajectory is shown by points along the trajectory that are equally spaced in time, so that equally spaced points represent a constant speed, and increasing (or decreasing) distance between points represents acceleration (or deceleration). Open circles are used to represent optimal trajectory points. Thus, it can be seen that for target G1, the optimal trajectory is a straight path continuing along the road at a constant speed, while for target G2, the optimal trajectory is a gradual deceleration as the car approaches the turning point for the exit.

[0285] In step 1006, for each of the targets G1, G2, the best available plan (2 above) is calculated. As shown, these are the plans for the time t (when the car is at the initial position r t We consider actual observations O between time t (when it was at time t) and the current time t+Δt. These observations O can include the observed low-level trace τ, represented in FIG. 10 using black circles.

[0286] In this context, the observations O may alternatively or additionally include the current maneuver of the vehicle, i.e., the probability of each target may be estimated depending on the maneuver that the vehicle is currently performing. They may also include maneuvers observed in the past.

[0287] Although not explicitly shown in Figure 10, as mentioned above, probabilistic maneuver detection is applied to predict the probability distribution of possible current maneuvers of the vehicle. Thus, the current maneuver cannot be known deterministically, but only probabilistically with respect to the distribution of possible current maneuvers P(M|τ). This is done by first determining the current maneuver M from p(M|τ). j Then, this current maneuver M j The target probability distribution p(G | O) for j This can be addressed by sampling from (with observations O containing

[0288] From the best available plan, the best available trajectory can be determined (see below for details), which in turn allows the overall cost of the best available trajectory to be determined (also discussed below). t to target position G i The best available trajectory has an observed portion between time t and t + Δt that matches the actual observed trajectory (i.e., the black circles in Figure 10), and also includes a future portion in time after t + Δt, represented in Figure 10 using the shaded circles.

[0289] In the illustrated example, it can be seen that both the observed (black circles) and future (shaded circles) portions of the best available trajectory for target G1 match reasonably well to the optimal trajectory (open circles) for this target G1. Thus, the cost penalty for target G1 (the difference between the cost of the optimal trajectory and the cost of the best available trajectory) is relatively small.

[0290] However, for goal G2, the observed trajectory (black circles) deviates significantly from the optimal trajectory (white circles) because the car has failed by time t + Δt to the extent required by the optimal trajectory. This discrepancy does not necessarily incur a large cost penalty in itself (which may or may not depend on implementation details). However, it can be seen that, as a result of the observed behavior, the future portion of the best available trajectory (i.e., the portion after time t + Δt) must necessarily include hard braking, which is penalized by the cost function (reflecting the fact that the lowest-cost path from the car's current position to G2 must include hard braking given the car's situation). This discrepancy with the cost of the optimal trajectory implies a higher cost penalty for goal G2.

[0291] In step 1008, for each of the goals G1, G2, the goal likelihood L(O│G) is calculated with respect to the cost penalty, i.e., the difference between the cost of the optimal plan calculated in step 1004 for that goal and the cost of the best available plan calculated in step 1006. Thereby, the goal posterior P(G│O) can be calculated based on the goal likelihood and the goal prior value (step 1010).

[0292] The prior P(G) can be used to encode knowledge about the "intrinsic" probability of a particular goal. For example, in the scenario of FIG. 10, it is observed that cars that choose a right turn exit are relatively rare, and this can be encoded a priori as P(G2)<P(G1). This effectively biases the goal G1 to favor G2. In the case of a scenario without this prior knowledge, each goal can simply be assumed to have the same probability, i.e., P(G1)=P(G2), when there are no observations of the individual behavior of a particular car.

[0293] As described above, when a goal is given, an optimal plan for that goal can be determined in view of the initial position r of the vehicle t assuming that a best available plan for that goal can be determined in view of the observations in a subsequent time interval Δt. Further, it is assumed that an optimal (or best available) trajectory can be determined in view of the optimal (or best available) plan. One mechanism for mapping goals to plans for trajectories in this way uses A* search, as described below.

[0294] Probabilistic plan recognition algorithm A* search The "A* search" is performed for open-loop maneuvers that include macro actions. The maneuvers are filtered based on their applicability conditions. If the basic maneuvers specify a distribution of trajectories, an appropriate single trajectory can be selected, for example, as the most frequent or most likely trajectory.

[0295] A* search is a well-known method formulated in terms of weighted graphs of nodes and edges. In this context, it is used to search from a given location (represented by a starting node) to a specified goal G i The goal is to find an optimal plan to reach the goal. The nodes of the graph represent maneuvers (elementary maneuvers or macro-actions), and the objective is to find a sequence of nodes (hence a sequence maneuver) that will reach the goal at a relatively low cost. For each node n, a "cost to go" g(n) is defined as the cost from the start node to node n, and a heuristic function h(n) gives an estimate of the cost from n to the goal. The search begins at the start node, and at each node, f(n)=g(n)+h(n) Extend the sequence to the next node with the lowest node cost, defined as:

[0296] A simplifying assumption can be used that all other vehicles in the environment use a constant speed model.

[0297] initial position r t From Target G i The search is performed at time t and position r with the goal of finding the optimal trajectory to t The current position r of the car is determined based on the observation O during the time interval Δt. t+Δt The search is performed based on the detected current maneuver and current position r with the aim of finding the best available trajectory from the target to the target. t+Δt It starts with.

[0298] The maneuver detection method described above can be used to detect maneuvers. Note that this generally results in a probability distribution of possible current maneuvers. Inverse programming should be performed for all predicted current maneuvers, since they may result in a different posterior than the target. Thus, each possible current maneuver generates its own target posterior. For computational efficiency, only the n most likely current maneuvers are considered, and all other maneuvers are ignored, where n is a method parameter that can be set appropriately.

[0299] The cost g(n) to reach the current location (current search node) can be defined as the estimated driving time to the current location based on the path and speed specified by the basic maneuver.

[0300] The cost heuristic h(n) for estimating the remaining cost to the goal is given by the driving time from the current location to the goal location in a straight line at the speed limit. Note that to effectively guide the search, h(n) need only provide an estimate of the minimum remaining cost to guide the search. Thus, relatively coarse assumptions can be made here without impacting performance.

[0301] After finding the optimal plan, a full trajectory is generated across the maneuvers in the plan. Velocity smoothing is then applied to the full trajectory, and a full cost function is calculated (see Cost Function section below) to determine the final cost of the plan. This final step (application of smoothing and full cost function) allows for additional "cues" based on velocity, such as in the braking example below.

[0302] Velocity smoothing is not applied to any portion of the trajectory that has already been observed, otherwise the effect of velocity smoothing could be to wash out evidence suggesting a particular target (see below for further details in the context of the example in Figure 10).

[0303] To account for cases where the vehicle is in the middle of a maneuver (e.g., changing lanes), the vehicle's currently executing maneuver needs to be recognized so that it can be completed before further planning into the future.

[0304] To reduce the search space, basic turning and vigilance maneuvers can be removed from the search space because they are not used outside of macro-actions. Lane-keeping maneuvers can still be useful as basic maneuvers outside of macro-actions if their termination conditions are set to some fixed length as default values.

[0305] This example does not check for collisions between external actors in the inverse planning. This is possible, but would make the entire process more expensive. Furthermore, there may be situations where collisions inevitably occur due to some simplifying assumptions, such as constant speeds of other vehicles. The multi-agent MCTS method detailed below can handle such collision checking.

[0306] Alternatively, the process can be extended to reason about possible conflicts as part of reverse planning.

[0307] The assumptions described above in connection with the A* search have been found to provide a good balance between computational efficiency and performance. Of course, it will be appreciated that different sets of assumptions may be used, such as non-constant velocity models. As another example, the above essentially turns the search problem into a deterministic problem by considering only the most likely trajectories associated with the maneuver. However, this can be extended to probabilistic searches based on distributions of full or truncated trajectories as well. That is, while the above considers full / partial trajectory models in the form of a single trajectory, the technique can also be applied to full / partial trajectory distributions.

[0308] We can speed up the process by using multithreading and using independent threads for each goal G. With the additional assumption that cars have independent goals, we can achieve further parallelism by using one process / thread per car.

[0309] braking Although braking is not recognized as a separate maneuver in the above method, the method can still take braking into account in the target likelihood.

[0310] As an example, consider the scenario shown in Figure 10 and described above. The optimal plan from the car's initial position to G2 is given by the right-exit macroaction. After applying speed smoothing, the result is a trajectory in which the car continuously decelerates until it reaches the turning point. The cost of this optimal trajectory is denoted by C2.

[0311] Suppose we observe that the car follows the lane, approaches the turning point partway, and decelerates in a manner similar to the optimal trajectory of G2. Thus, if the trajectories to G2 are competitive, this results in a trajectory with a cost similar to C2. On the other hand, the optimal trajectory from the initial state to G1 does not involve such braking, resulting in a significant cost difference (due to the time difference and possibly jerk). Thus, the posterior probability of G2 increases, while the probability of G1 decreases.

[0312] (Note, in passing, that, as mentioned above, speed smoothing is not applied to the already observed portions of the trajectory. The reasoning behind this is clear in this example: if speed smoothing were applied to the entire trajectory, the smoothing would also reduce the speed of the already observed portions of the lane-keeping maneuver. This would make braking no longer so abrupt, and therefore would result in a smaller cost penalty. In other words, the trajectory would more closely resemble the optimal trajectory from the initial observation position. Therefore, it is appropriate for smoothing to treat the past trajectory as an unchangeable constant.) Now suppose the car stays in its lane, but is observed at a constant speed rather than slowing down. Continuing this trajectory to G2 would require sudden braking, which is much more costly than C2. On the other hand, continuing the trajectory (staying in its lane) to goal G1 is essentially the optimal plan for G1 from the initial state. Therefore, G2's posterior probability decreases, while G1's increases.

[0313] Finally, suppose the car is observed to stay in its lane and suddenly decelerate near the deployment point. This sudden braking causes a significant cost penalty for both G2 and G1 because it is not on either of the optimal trajectories from the initial state. Thus, the cost of both goals increases, and the change in the relative probability of the two goals becomes small.

[0314] Goal Recognition with Goal Tree As an alternative to inverse programming, target detection can be performed using decision trees.

[0315] An example of a decision tree for target recognition is shown in FIG.

[0316] Given a set of goals G, the posterior distribution of the goals is calculated using Bayes' rule as P(G|O)~L(O|G)P(G). The likelihood L(O|G) of goal G is calculated by a tree associated with G that can be generated together with G. The tree calculates a normalized score in the range [0,1] to indicate the likelihood of the goal, with 0 indicating no support for that goal.

[0317] A typical tree for target G2 in Scenario 2 (Right Exit) using typical numbers is shown on the right. The tree tests several conditions, including:

[0318] Whether the car is in the correct lane for the target Whether the car is pointing in the right direction Whether the exit point is next in line for the vehicle (i.e., there are no other exit points closer to the vehicle on the same lane) Whether the car is slowing down At each branch, the tree tests a condition and multiplies the score (which starts at 1) by some coefficient in the range [0,1] to arrive at a final score at the terminal node of the tree. Different branches may test different conditions, and the coefficients given to the branches may differ to reflect the differences in the importance of the test conditions. An alternative to multiplying the coefficients is to add the coefficients along the branches of the tree and normalize by the depth of the terminal node.

[0319] This method of using trees has two main advantages: trees are cheap to evaluate, and trees are easy to interpret by humans (improved explainability).

[0320] Decision trees can be constructed based on real-world or simulated driving behavior data (e.g., from simulations or CCTV) using algorithms such as C4.5 or algorithms for regression tree learning. For example, a set of binary features (test conditions) can be specified, and the tree learning algorithm then finds an optimal subset of features and partial scores given the ground truth data recorded for a particular target.

[0321] Predicting trajectories from targets To predict the vehicle's possible trajectories and associated probabilities for a given goal, the same A* search method used for inverse planning can be used. Rather than terminating A* after finding an optimal plan, a fixed time budget is imposed and the algorithm is allowed to compute a set of plans with their associated costs (possibly for up to some fixed number of plans). When the A* search finds a node that reaches the goal, the corresponding plan is added to the set of plans. Trajectories are generated from the plans by connecting the sub-trajectories given by the maneuvers in the plans.

[0322] The distribution of trajectories extracted from the plan is calculated using a softmax distribution (trajectory model).

number

[0323] where T (n) is the nth complete trajectory to the target, and C n is orbit T (n) is the cost (total cost after smoothing), and β n is orbit T (n) is a scaling factor for (as mentioned above, denoted T (n) is the given maneuver M j Suborbital T of j (Used for the nth complete trajectory to the target, to distinguish it from the nth complete trajectory to the target). This encodes the assumption that trajectories closer to the optimum are more likely. A scaling factor can be used to de-weight certain trajectories based on observational data, i.e., the trajectory prediction model can be trained on relevant examples. Alternatively, a constant scaling factor (e.g., a value of 1) can be used.

[0324] The softmax trajectory model described above can be used as an alternative to the trajectory model obtained via RRT.

[0325] Similar to inverse planning, a set of such trajectories is generated for each predicted current maneuver, focusing on some subset, such as the n most likely current maneuvers. A* begins after the completion of the current maneuver, and the final trajectory includes the remainder of the current maneuver.

[0326] This predicts a range of plausible trajectories rather than a single optimal trajectory, which is beneficial because there are situations where multiple trajectories achieve (near) the minimum cost but result in different predictions that may require different behavior on the part of the ego-vehicle.

[0327] Integration of target recognition with MCTS We then describe specific mechanisms for integrating target recognition with the MCTS maneuver planning process described above. This combination provides a general interaction-aware maneuver planner.

[0328] Current maneuver and target sampling Figure 12 shows a schematic diagram of how the results of inverse programming can be applied as part of an MCTS rollout. This applies the principles described above in relation to Figure 15 above, where the MCTS is run multiple times with different samplings of probabilistic predictions about other agents.

[0329] Maneuver detector 1102 detects the probability distribution of the target actor's current maneuver in the manner described above. i For ∈M (where M is a finite set of available maneuvers), this yields the probability that the target actor is currently performing that maneuver given the observed low-level trace τ, i.e., P(M|τ).

[0330] Each MCTS super iteration begins as follows: For each other vehicle: 1. Sample a current maneuver from the set of predicted current maneuvers and their probabilities, i.e., find the current maneuver M based on P(M | τ). j (block 1104, FIG. 12).

[0331] 2. Sample the target from the target behind P(G|O) corresponding to the sampled current maneuver. That is, the sampled current maneuver M j (which can be considered to form part of observation O) and apply the inverse programming steps described above.

[0332] These samples, i.e., the sampled current maneuver M j and the sampled target G iis used throughout the super-iterations of the MCTS process. Steps 1 and 2 above are performed at the beginning of each MCTS super-iteration and are applied to all nodes of the tree in that super-iteration (from the root node to the terminal nodes).

[0333] In Figure 12, the abbreviated notation P(G | M i ) and P(G│M k ) is the current pilot M i and M j Note that the observation O may be broader than just the current maneuver (e.g., encompassing a sequence of previous maneuvers). Using this notation, we can denote the target posterior given each of the maneuvers M i is sampled, in step 2 the target posterior P(G | M i ) is sampled, while M j is sampled, the target posterior P(G | M k ) is used.

[0334] Sampling from the combined posterior prevents inconsistent rollouts. For example, consider a situation in which a vehicle has two possible targets and two predicted current maneuvers with equal probability. The target posterior for the first maneuver places all probability on the first target, while the target posterior for the second maneuver places all probability on the second target. Thus, the combined target posterior places equal probability on both targets. (In contrast, if you sample a target and then sample the current maneuver from the combined target posterior, you may end up with a current maneuver where there is no trajectory to the sampled target (e.g., there is no path from the first maneuver to the second target)).

[0335] Single-agent MCTS with trajectory sampling Given the sampled current maneuver and target of each of the other cars, their motion trajectories are sampled from the associated set of predicted trajectories and probabilities. These trajectories are used to predict each car's movement along the rollout.

[0336] Self-planning is performed over a set of closed-loop maneuvers that include applicable macroactions in the current state. In many cases, a single macroaction may be sufficient to achieve the ego vehicle's goal. The objective is to find such a macroaction as early as possible during planning. A simple approach is to order the set of maneuvers so that a macroaction is always attempted first, or, for a given goal, a "best first guess" function can be provided that returns the macroaction that typically achieves that goal. If a macroaction is not currently applicable (e.g., a left exit when the ego vehicle is in the center lane), ideally the planner should quickly find a way to make it applicable (e.g., first use a basic left lane change maneuver, then use the macroaction for left exit).

[0337] After selecting a maneuver for the ego-vehicle, the environment is simulated forward until the end of the maneuver. This includes forward simulation of the trajectories of other vehicles up to the same point in time as the ego-vehicle, as well as any other modeled processes in the environment. A collision checker is applied to check whether the ego-vehicle will collide with any of the other vehicles during the forward simulation. If a collision exists, that branch in the search tree is immediately "cut" (i.e., no longer investigated).

[0338] The MCTS uses a cost function defined below. To ensure that the MCTS generates only plans that achieve the goal, the cost function is applied only if the rollout reaches the goal. More precisely, the cost function is applied to the trajectory generated by the rollout maneuver after applying velocity smoothing. The resulting cost of the smoothed trajectory is then propagated up the search tree. Thus, the MCTS searches only for feasible plans that achieve the goal, and then searches for the best plan among them.

[0339] The use of macroactions means that a successful plan typically contains 1-5 maneuvers (including macroactions), so to speed up the search, the MCTS search can be cut (terminated) at a depth of 5.

[0340] A pseudocode algorithm for single-agent MCTS with target recognition is presented in Appendix B.

[0341] speed improvement Possible speed improvements include:

[0342] It may be possible to use various degrees of multithreading in MCTS, for example using multiple threads for generating rollouts and updating statistics.

[0343] Computational cost can be reduced by planning for open-loop maneuvers instead of closed-loop maneuvers, at the expense of reduced plan quality. Maneuvers executed after MCTS planning are always closed-loop.

[0344] Cost function A cost function is used in inverse planning and MCTS to quantify the cost of a driving trajectory. A trajectory T consists of a reference path the vehicle should follow and a sequence of target velocities along the path. The cost function takes the trajectory as input and returns a real-valued cost C(T). The cost function should be inexpensive to evaluate any given trajectory, with an increase in computational cost of at most O(|T|).

[0345] Cost may be defined, for example, as a weighted (linear) sum of several cost factors. These include:

[0346] Time: How long will it take the car to complete the trajectory? (Note: this is not the same as the reference path length, as it also depends on the target speed.)

[0347] Curvature: How "curved" is the launch? The cost should increase exponentially as the curvature decreases. Angular velocity can be used as a proxy.

[0348] · Speed ​​change: How much does the speed change along the trajectory? A large rate of change (e.g., a sudden deceleration) should result in an exponentially higher cost.

[0349] "Safety": As a proxy for safety, an exponentially increasing "cost factor" can be calculated as a function of the minimum distance to any other vehicle in the track (vehicles beyond a distance threshold are ignored), i.e., the cost increases exponentially as the minimum distance gets smaller.

[0350] Most of these cost factors can be calculated iteratively by stepping forward in time through the trajectory and doing some simple calculations based on the old / new position vectors and target velocities. The weighting of the cost factors will likely need to be adjusted based on empirical testing.

[0351] Normalization To ensure comparability of various cost factors, it is useful to normalize all cost factors to the same range [0,1]. It is also helpful to normalize the weights so that they are non-negative and sum to 1. Collectively, these normalization steps ensure that C(T) is in [0,1], which satisfies the assumption in UCB / UCT that costs are in the range [0,1].

[0352] Normalization can be more easily achieved if the cost factors are defined as min / max functions (e.g., maximum yaw rate, minimum distance to other vehicles).

[0353] An alternative, less expensive approach is to associate costs with maneuvers rather than trajectories. For example, define the cost of a plan as the number of elementary maneuvers in the plan. This may be an appropriate approach when the trajectories generated by the maneuver have no or little variation (e.g., lane changes that always follow the same polyspline). However, assigning a fixed cost to a maneuver may not be appropriate when the maneuver generates a bunch of trajectories or when the trajectories may depend on dynamic aspects such as vehicle configuration (e.g., a lane change behind a nearby vehicle vs. a lane change behind a less nearby vehicle), since the same maneuver may result in significantly different trajectories depending on the situation.

[0354] Typical scenario Here, three typical scenarios are described to illustrate the concept of targets and highlight how target recognition can inform ego-vehicle decisions. Furthermore, these scenarios illustrate some borderline situations of the proposed method. The three scenarios are depicted in Figures 14A-14C, respectively.

[0355] Scenario 1: A vehicle overtaking a slower truck (Figure 14A) Vehicle 2 is traveling behind a slow-moving truck 1. One target position for vehicle 2, designated G1, is shown. In this scenario, vehicle 2 may move into the ego lane to overtake the truck.

[0356] A myopic baseline alone would place most / all of the posterior probability on lane-keeping maneuvers for vehicle 2 and would fail to predict the likelihood of an imminent lane change because it would not reason about future maneuvers.

[0357] By assuming that vehicle 2 uses a similar cost function (i.e., including a time factor) as the ego vehicle, and performing inverse programming to achieve G1 for vehicle 2, the method can predict vehicle 2's lane change maneuver and subsequent lane keeping at the speed limit. If vehicle 2 is far enough away from the ego vehicle, this prediction likely will not result in a reaction from the ego vehicle. However, if vehicle 2 is close to the ego vehicle (as in the figure), the ego vehicle may decide to slow down and maintain distance from vehicle 2.

[0358] Scenario 2: Vehicle changing lanes to exit (Figure 14B) Two possible targets G1 and G2 for the other vehicles are generated based on the road layout. For vehicle 2, both G1 / G2 are possible, but for vehicle 3, only G1 is possible.

[0359] Vehicle 2 is observed making a right lane change. Based on the inverse planning for vehicle 2 and each of the possible targets, the lane change is likely to suggest G2. After the lane change, the optimal plan for G2 prescribes lane-staying with deceleration (via speed smoothing) followed by a right turn. Given this sequence and assuming the ego-vehicle's target is G1, the MCTS planner can recognize that vehicle 2's deceleration is too detrimental to the ego-vehicle's objective function (because it also forces the ego-vehicle to decelerate), and therefore decide to make a left lane change after vehicle 2 completes its lane change.

[0360] The myopic baseline would only be able to see that vehicle 2 is changing into the right lane, but would not be able to predict the subsequent deceleration. The baseline would still likely execute the lane change, but only after deceleration is already underway.

[0361] Scenario 3: Moving ahead of a waiting vehicle (Figure 14C) Four possible targets for other vehicles are shown based on the road layout. The vehicle is waiting at an intersection.

[0362] No deceleration of vehicle 3 is observed, indicating that G2 is the most likely (however, G3 / G4 are still possible, albeit at the expense of heavy braking).

[0363] Vehicle 2 is stopped at the location shown, which is consistent with the plan to reach G3: since vehicle 3 is approaching and is using a constant speed, vehicle 2 must stop, wait for vehicle 3 to pass, and then turn right into G3. In contrast, stopping at the location shown does not imply either G1 or G4 (G2 is not a valid target for vehicle 2).

[0364] Given this collection of inferred goals and plans, the ego vehicle can recognize that vehicle 2 can safely turn left onto the road while waiting for vehicle 3 to pass.

[0365] The myopic baseline recognizes the stopping maneuver of vehicle 2 but fails to predict subsequent maneuvers.

[0366] Data-driven behavioral models As mentioned above, learned behaviors of actors can be used in MCTS simulations to provide a realistic simulation. Such generative behavior models can be used in combination with or as a replacement for inverse planning; i.e., the learned generative behavior models can be used without performing inverse planning (e.g., one or more trajectories can be simply generated using the learned models without having to infer goals, maneuvers, etc.). As mentioned above, examples of such models include spatial Markov models and neural networks.

[0367] For example, the generative behavior model may be a spatial Markov model (SMM) based on multiple spatial regions within the monitored driving region, and at least one of an estimated occupancy probability associated with each spatial region and an estimated transition probability associated with each of multiple spatial region pairs is calculated.

[0368] The spatial domains may be cells of a grid overlaid on the monitored driving area, which may take into account road structure and / or other structures within the monitored driving area, which may be manually annotated or determined (for example) from a map.

[0369] Notation p i denotes the estimated occupancy probability of spatial region i, and p i,j denotes the estimated probability of transitioning from spatial region i to spatial region j. Using SMM, p(T|Model) can be determined based on the occupancy and / or transition probabilities associated with the set of grid cells (or other spatial regions) through which the driving path (trajectory) T passes given the model Model.

[0370] The driving behavior data can include any form of sensor data, such as image data and / or motion sensor data. While the data can be collected in any suitable manner, CCTV (closed circuit television) systems provide a very convenient means of collecting driving behavior data, especially in urban environments with good CCTV coverage. For example, this disclosure recognizes that CCTV from complex driving contexts (e.g., complex roundabouts, multi-lane junctions, blind turns, etc.) provides a rich source of driving behavior data.

[0371] In the following example, real-world driving behavior data, such as CCTV image data, is used to both generate a model for training and to predict the actor's behavior while driving.

[0372] Real-world data can be collected for a certain area over a period of time. The period of data collection can be, for example, 24 hours to attempt to generate an accurate representation of traffic movement through the area. The location can be small, such as a junction. To maximize the potential for data collection, an area with a high volume of passing traffic can be selected.

[0373] Data about road layout (driving context) is collected. This may be from a map, such as an HD (high definition) map, or it may be collected from CCTV footage and entered either manually or automatically. For example, CCTV footage can be manually annotated.

[0374] Information about the location and movement of actors within the collected data is extracted from the collected data and used to construct a Spatial Markov (State Transition) Model (SMM) of normal driving behavior. A State Transition Model is a discrete cell approximation model that can be used to provide a simplified representation of normal behavior. To achieve this, a grid can be applied to the locations captured in the CCTV footage. This grid can range from 5 to 10 cm per cell.

[0375] The behavior of agents in each grid cell can then be analyzed over a time period of interest. Information extracted in this analysis can include, for example, the frequency of occupancy of each grid element over the time period of collected data, and the number of transitions made from each element to its surrounding elements over the time period. This information can then be used to generate occupancy probability estimates p i to each grid cell and the transition probability estimates p i,j can be assigned to each pair of grid cells i, j.

[0376] As an example, Figure 16 shows the SMM determined for a road layout in the field of view of a CCTV camera. In this case, the road layout is part of a relatively complex junction on which a fixed grid is superimposed. Two cells of the grid are shown by way of example with references i and j, and have occupancy probabilities p i and p j The transition probability p between cells i and j is i,j is the probability that an actor moves directly from cell i to cell j, also determined through observation.

[0377] It will be appreciated that the above description considers only a few examples of suitable models for modeling expected vehicle behavior. Other examples of suitable models include Markov decision process models and rewards to data, where training is performed by fitting a Markov decision process model and rewards to data.

[0378] At the hardware level, the AV's on-board computer system A1 includes execution hardware capable of executing algorithms to perform the above-described functions. The execution hardware may be general-purpose or specialized execution hardware, or any combination thereof, but typically includes one or more processors, such as a central processing unit (CPU), that can work in conjunction with specialized hardware, such as, but not limited to, accelerators (e.g., GPUs), field-programmable gate arrays (FPGAs) or other programmable hardware, and / or application-specific integrated circuits (ASICs). Because complex data processing operations, often using sophisticated and complex ML / AI models, must be performed with sufficient accuracy and speed (often in real time) to ensure safe and reliable operation, the on-board computer system may be highly sophisticated, perhaps with specialized computer hardware tailored to implement the relevant models and algorithms. It will be appreciated that the architecture of the AV's on-board computer system A1, both at the hardware and functional / software levels, can take many forms, particularly given the rapid pace of innovation in the field of AI. As used herein, functional components embodied in a computer system, such as data processing component A2, prediction component A4, and AV planner A6, are high-level representations of specific functions realized by the computer system, i.e., functions performed by any general-purpose and / or special-purpose hardware (combination) of the computer system appropriate to the circumstances.

[0379] Appendix A - Scenario Description Example { "road-layout" : [ { "lanes" : [ {"index" : -1, "width" : 3.65, "left" : "double", "right" : "double"} ], "midline" : [ [25.0, 30.0], [26.46, 33.53], [30.0, 35.0], [33.53, 33.53], [35.0, 30.0], [33.53, 26.46], [30.0, 25.0], [26.46, 26.46], [25.0, 30.0] ] }, { "lanes" : [ {"index" : -1, "width" : 3.65, "left" : "double", "right" : "double"}, {"index" : 1, "width" : 3.65, "left" : "double", "right" : "double"} ], "midline" : [ [30.0, 26.0], [30.0, 25.0], [30.0, 20.0], [30.0, 15.0], [30.0, 10.0], [30.0, 5.0] ] }, { "lanes" : [ {"index" : -2, "width" : 3.65, "left" : "double", "right" : "double"}, {"index" : -1, "width" : 3.65, "left" : "double", "right" : "double"} ], "midline" : [ [26.0, 30.0], [25.0, 30.0], [20.0, 30.0], [15.0, 30.0], [10.0, 30.0], [5.0, 30.0] ] }, { "lanes" : [ {"index" : 1, "width" : 3.65, "left" : "double", "right" : "double"} ], "midline" : [ [34.0, 30.0], [35.0, 30.0], [40.0, 30.0], [45.0, 30.0], [50.0, 30.0], [55.0, 30.0] ] }, { "lanes" : [ {"index" : -1, "width" : 3.65, "left" : "double", "right" : "double"} ], "midline" : [ [30.0, 34.0], [30.0, 35.0], [30.0, 40.0], [30.0, 45.0], [30.0, 50.0], [30.0, 55.0] ] } ] } Attachment B JPEG0007532615000010.jpg100150

Claims

1. running a tree search algorithm in an autonomous vehicle (AV) planner to determine a sequence of AV maneuvers that correspond to a path through the constructed game tree; Including, the game tree has a plurality of nodes representing expected states of an encountered driving scenario, the expected driving scenario state of each child node being determined by updating the driving scenario state of a parent node based on (i) a candidate AV maneuver and (ii) an expected behavior of at least one external agent in the encountered driving scenario; The expected behavior of the external agent is simulated by applying an inverse programming technique to an observed trace of the external agent over a time interval; The inverse programming method includes: determining a set of available objectives or maneuvers for the external agent within the encountered driving scenario; determining, for each of said available targets or maneuvers, a predicted trajectory model for said time interval; comparing the observed trace of the foreign agent with the predicted trajectory model for each of the available targets or maneuvers to determine a likelihood of that target or maneuver; simulating the expected behavior of the external agent using the determined likelihood of at least one of the targets or maneuvers; An autonomous vehicle (AV) planning method comprising:

2. generating AV control signals for executing the determined sequence of AV maneuvers; The method of claim 1 , comprising:

3. receiving a sensor input relating to an AV; processing the sensor inputs and determining the encountered driving scenario; The method according to claim 1 or 2, comprising:

4. an object tracking is applied to the sensor inputs to determine an observed trace of at least one external agent by tracking the external agent in the encountered driving scenario; A method according to any one of claims 1 to 3.

5. simulating the expected behavior of the external agent using the determined likelihood of the at least one target or maneuver comprises calculating at least one predicted trajectory of the external agent based on the predicted trajectory model for the at least one target or maneuver and the determined likelihood of the target or maneuver; A method according to any one of claims 1 to 4.

6. the predicted trajectory model for each target or maneuver is a distribution of predicted trajectories for that target; A method according to any one of claims 1 to 5.

7. The distribution G i is the conditional probability p(T|G i ), and the likelihood p(G i |τ) is used to estimate the probability p(T|τ) of at least one predicted trajectory given the observed trace τ; The method according to claim 6.

8. the observed trace is used to predict a best available orbit model for the target or maneuver, and the comparing includes comparing the best available orbit model to the predicted orbit model; A method according to any one of claims 1 to 7.

9. the likelihood of the at least one target is determined, and the observed trace is used to predict a current and / or future maneuver of the external agent, and the predicted current or future maneuver is used to determine a best available trajectory model; A method according to any one of claims 1 to 8.

10. a sequence of maneuvers is determined for at least one target, and the best available trajectory model is determined for the target based on partial trajectory models for each of the maneuvers; 10. The method of claim 9.

11. each partial trajectory model includes one or more target motion values, and one or more motion values ​​of a future portion of the best available trajectory model are determined by applying motion smoothing to the target motion values; The method of claim 10.

12. a defined cost function is applied to both the predicted orbit model and the best available orbit model for each target or maneuver to determine a cost for each of the predicted orbit model and the best available orbit model, and said comparing includes comparing the costs; A method according to any one of claims 8 to 11.

13. The cost function rewards faster driving times while penalizing unsafe trajectories. The method of claim 12.

14. The cost function also penalizes lack of comfort. The method of claim 13.

15. the expected behavior of the external agent is simulated by sampling targets or maneuvers from the set of available targets or maneuvers based on the determined likelihoods of the targets; A method according to any one of claims 1 to 14.

16. The likelihood of the at least one target is determined; different target distributions are determined for different maneuvers or maneuver sequences, and the expected behavior of the external agent is simulated by sampling a maneuver or maneuver sequence based on the maneuver distributions from a set of possible maneuvers, and then sampling the targets from the set of available targets based on the target distributions determined for the maneuver or maneuver sequence. The method of claim 15.

17. the tree search algorithm is run multiple times on a plurality of constructed game trees with different sampled targets, and the sequence of AV maneuvers is determined by the AV planner based on a statistical analysis of paths in the plurality of constructed game trees. The method according to claim 15 or claim 16.

18. A computer system comprising execution hardware configured to carry out the steps of the method according to any of claims 1 to 17.

19. A computer program comprising executable instructions configured, when executed, to perform the method of any of claims 1 to 17.

Citation Information

Patent Citations

  • Decision making for autonomous vehicle motion control

    US20180089563A1

  • Predicting trajectories of objects based on contextual information

    US9914452B1