Autonomous vehicle planning and prediction
By receiving sensor input, tracking external actors, generating expected trajectory models, and evaluating likelihood, autonomous vehicles can more accurately predict and respond to the behavior of external actors, solving prediction challenges during navigation and improving safety and efficiency. .
Patent Information
- Application Number
- CN201980068032.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-10-16
- Filing Date
- 2019-10-16
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2039-10-16
AI Technical Summary
It is difficult for autonomous vehicles to effectively predict and respond to the behavior of external actors (such as other vehicles, pedestrians, cyclists) during the navigation process, especially in complex driving scenarios, causing safety and efficiency to be affected.
By receiving sensor inputs, tracking external actors, determining their observed traces and available targets, generating expected trajectory models, and evaluating the target's likelihood by comparing observed traces and expected trajectory models, autonomous driving decisions are made. The approach involves using generative model training based on examples of real-world driving behavior, sampling algorithms and cost functions to optimize trajectory planning.
It improves the accuracy and response speed of autonomous vehicles in predicting the behavior of external actors in complex driving scenarios, enhances the safety and efficiency of navigation, and ensures the reliability of coordination with other road users.
Smart Images

Figure CN112840350B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to prediction methods that can be used as the basis for autonomous vehicle (AV) planning. Background Art
[0002] An autonomous vehicle, also known as a driverless vehicle, is a vehicle that has a sensor system for monitoring its external environment and a control system that is able to use these sensors to automatically make and implement driving decisions. This includes, in particular, the ability to automatically adjust the vehicle's speed and driving direction based on input from the sensor system. Fully autonomous or "driverless" vehicles have sufficient decision-making capabilities to operate without any input from a human driver. However, the term autonomous vehicle as used herein also applies to semi-autonomous vehicles, which have more limited autonomous driving decision-making capabilities and therefore still require some degree of supervision from a human driver.
[0003] In order to safely and efficiently navigate encountered driving scenarios, an autonomous vehicle planner needs to be able to plan in a way that takes into account the expected behavior of other vehicles / agents. Summary of the invention
[0004] A first aspect of the present invention provides a computer-implemented method for predicting external actor trajectories, the method comprising:
[0005] receiving, at a computer, sensor input for detecting and tracking an external actor;
[0006] applying object tracking to the sensor input to track an external actor and thereby determine an observed trace of the external actor over a time interval;
[0007] Identify the set of available targets for external actors;
[0008] determining an expected trajectory model for each of the available targets; and
[0009] The observed trace of the external actor is compared to the expected trajectory model of each of the available targets to determine the likelihood of that target.
[0010] The external actor may be an external vehicle or another external actor such as a pedestrian, a cyclist, etc. In the following examples, the external actor is an external vehicle, however it will be understood that the relevant description is equally applicable to other forms of external actors.
[0011] In an embodiment, the method may be implemented in an autonomous ego vehicle, wherein a planner of the autonomous vehicle makes autonomous driving decisions based on the likelihood of at least one of the available targets and sensor input obtained using a sensor system of the autonomous vehicle.
[0012] The expected trajectory model may be a single predicted trajectory associated with the target or a distribution of predicted trajectories associated with the target.
[0013] The expected trajectory model may be a conditional probability p(T|G) of each predicted trajectory T in the set of predicted trajectories. i ) distribution, and given the observation trace τ, the likelihood of the target p(G i |τ) can be used to estimate at least one predicted trajectory probability p(Τ|τ).
[0014] An expected trajectory model for each target may be determined based on the desired target position of the target.
[0015] The expected trajectory model can be determined by executing the generative model for each target, where the generative behavior model has been trained to generate trajectories based on examples of real-world driving behavior.
[0016] The model may be specific to the driving area in which the method is applied.
[0017] The expected trajectory model may be determined by applying a sampling algorithm to sample a space of predicted trajectories, the space of predicted trajectories being defined for each target based on one or more parameters of each target and one or more parameters of the external subject.
[0018] The set of available targets may be determined based on map data associated with the external subject.
[0019] An expected trajectory model may be determined based on one or more ego vehicle parameters to model responses of other actors to ego vehicle behavior.
[0020] The observed traces may be used to predict a best available trajectory model for the target, and the comparing may include comparing the best available trajectory model to the expected trajectory model.
[0021] The observed traces may be used to predict current maneuvers and / or future maneuvers of the external actor, and the predicted current maneuvers or future maneuvers are used to determine the best available trajectory model.
[0022] A sequence of a plurality of maneuvers may be determined for at least one objective, and a best available trajectory model may be determined for the objective based on partial trajectory models respectively associated with the plurality of maneuvers.
[0023] Each partial trajectory model may include one or more target motion values, and the one or more motion values for a future portion of the best available trajectory model may be determined by applying motion smoothing to the target motion values.
[0024] The expected trajectory model for each target may be a single expected trajectory for that target, and the best available trajectory model for each target may be a single best available trajectory.
[0025] The partial trajectory model for each maneuver may be the most likely partial trajectory for that maneuver.
[0026] The defined cost function may be applied to both the expected trajectory model and the best available trajectory model for each target to determine respective costs of those trajectory models, wherein the comparing includes comparing those costs.
[0027] The cost function can reward reduced driving time while penalizing unsafe trajectories.
[0028] The cost function may also penalize lack of comfort.
[0029] A second aspect of the present invention provides a computer-implemented method for predicting external actor trajectories, the method comprising:
[0030] receiving, at a computer, sensor input for detecting and tracking an external actor;
[0031] applying object tracking to the sensor input to track an external actor and thereby determine an observed trace of the external actor over a time interval;
[0032] Identify the set of possible manipulations by external actors;
[0033] determining an expected trajectory model for each of the possible maneuvers; and
[0034] The observed trace of the external actor is compared to the expected trajectory model for each of the available maneuvers to determine the likelihood of that maneuver.
[0035] The method can be implemented in an autonomous vehicle, and a planner of the autonomous vehicle can make an autonomous driving decision based on the likelihood of at least one of the available maneuvers.
[0036] The expected trajectory model may be a single predicted trajectory associated with the maneuver or a distribution of predicted trajectories associated with the maneuver.
[0037] The observed trace can be compared to the most likely trajectory from the distribution of predicted trajectories.
[0038] On the other hand, an autonomous driving vehicle computer system is provided, including: a prediction component and a planner, wherein the prediction component is configured to implement any method of the present invention; the planner is configured to use the output of the prediction component to make autonomous driving decisions.
[0039] The prediction component can be configured to implement the method of the first aspect or any embodiment thereof to provide target predictions for external entities, and implement the method of the second aspect or any embodiment thereof to provide manipulation predictions for external entities.
[0040] Manipulated predictions can be used to make targeted predictions.
[0041] An autonomous vehicle may include an autonomous vehicle computer system and a drive mechanism coupled to a planner and responsive to control signals generated by the planner.
[0042] Another aspect of the present invention includes an AV planning method including the above steps and a step in which the AV planner generates a control signal for controlling the operation of the AV based on the determined likelihood of at least one of the targets.
[0043] In an embodiment, the expected trajectory model associated with each target may include a predicted trajectory associated with the target or a distribution of predicted trajectories associated with the target.
[0044] Each target G i The distribution of may include the conditional probability p(Τ|G i ), and given the observation trace τ, the likelihood of the target p(G i |τ) can be used to estimate at least one predicted trajectory probability p(Τ|τ).
[0045] A control signal may be generated based on the determined likelihood of at least one target and an expected trajectory model for the target.
[0046] The expected trajectory model may be determined based on one or more initial parameters of the external subject (e.g., at the beginning of the time interval - time t) for comparison with the observed trace. The expected trajectory model may be updated based on one or more updated parameters of the external subject (e.g., at the end of the time interval - time t+ΔT) for generating the control signal.
[0047] Parameters of the external subject may be observed parameters, ie parameters derived from sensor inputs.
[0048] The one or more parameters of the external subject may include the location of the external subject (at an appropriate time).
[0049] The expected trajectory model may be determined based on one or more parameters of the target.
[0050] One or more parameters of a target may include, for example, a desired position to be reached. That is, each target may be parameterized by a corresponding desired position.
[0051] The expected trajectory model may be determined by executing a generative model for each target in a computer system. The generative model may be executed based on the one or more observed parameters of the external subject and the one or more parameters of the target.
[0052] The expected trajectory model may be determined by applying a sampling algorithm to sample a space of predicted paths, the space of predicted paths being defined for each target based on one or more parameters of the target and one or more parameters of the external subject.
[0053] The sampling algorithm may be a random sampling algorithm that randomly samples the search space based on one or more random input parameters to determine the predicted path distribution.
[0054] For example, the sampling algorithm may be Rapidly Expanding Random Trees (RRT).
[0055] The generative model may be a machine learning (ML) model that has been trained based on examples of real-world driving behavior. Such examples may be extracted from real-world driving behavior data captured by monitoring one or more driving areas.
[0056] For example, the generative model may include a neural network or other machine learning (ML) model that can be trained to generate an expected trajectory model based on real-world examples of target execution.
[0057] As another example, the generative model may be a model predetermined for the driving area to which the method is applied, such as a spatial Markov model. The model may be predetermined based on real-world driving behavior observed in the driving area.
[0058] The generated model may be initially executed based on initial parameter(s) of the external agent to determine an expected trajectory model for comparison with the observed trajectory, and subsequently re-executed based on updated parameter(s) of the external agent for generating a control signal.
[0059] The method may include determining at least one predicted trajectory of the external agent after the time interval based on the determined likelihood of at least one of the targets and the (updated) expected trajectory model determined for the target.
[0060] A likelihood of at least one predicted trajectory after a time interval may be determined based on the likelihood of the target and the (updated) expected trajectory model.
[0061] A control signal may be generated based on the at least one predicted trajectory.
[0062] The set of available (hypothetical) targets may be determined based on map data associated with the external body.
[0063] One or more target parameters may also be determined based on map data associated with the external body.
[0064] The map data may be derived at least in part from sensor input.
[0065] The expected trajectory model may be computed by applying the generative behavior model to one or more observed parameters of the external subject derived from the AV sensor signals.
[0066] The generative behavior model may also be applied to one or more ego vehicle parameters (to model the responses of other actors to the ego vehicle 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 other actors to their environment).
[0067] The method may comprise the step of determining at least one predicted trajectory of the external actor based on at least one expected trajectory model of the target and the determined likelihood of the target.
[0068] The expected trajectory model may be updated to account for changes in the parameter(s) to which the generated behavior model was applied (eg, to account for the actual behavior of the external actor in the time interval).
[0069] Other aspects of the present invention provide a computer system, which includes execution hardware and a computer program, wherein the execution hardware is configured to perform any method steps disclosed in this document, and the computer program includes executable instructions, which are configured to implement any method steps when executed.
[0070] Additional aspects also provide an autonomous vehicle (AV) planner and an autonomous vehicle, wherein the autonomous vehicle (AV) planner is embodied in a computer system and configured to implement any method steps disclosed herein; the autonomous vehicle includes an autonomous vehicle planner and a drive mechanism coupled to the autonomous vehicle planner and responsive to control signals generated by the AV planner. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] For a better understanding of the present invention, and to show how embodiments of the present invention may be implemented, reference is made to the following drawings, in which:
[0072] Figure 1 A schematic functional block diagram illustrating functional components implemented in an autonomous vehicle computer system is shown;
[0073] Figure 2An example game tree that can be used for autonomous vehicle maneuver planning is shown;
[0074] Figure 3A -C shows some principles of reverse planning by example;
[0075] Figure 4 A flowchart illustrating an example reverse planning method; and
[0076] Figure 5 An example of a trajectory model learned from CCTV data is shown. DETAILED DESCRIPTION
[0077] Exemplary embodiments of the present invention are described in detail below. First, some useful background of the present invention is described.
[0078] Figure 1 A highly schematic functional block diagram of certain functional components embodied in an onboard computer system A1 of an AV (ego vehicle), namely a data processing component A2 , a prediction component A4 , and an AV planner A6 , is shown.
[0079] The data processing component A2 receives sensor data from the AV's onboard sensor system A8. The onboard sensor system A8 may take different forms, but typically includes a variety of sensors, such as image capture devices (cameras), LiDAR units, etc., satellite positioning sensor(s) (GPS, etc.), motion sensor(s) (accelerometers, gyroscopes, etc.), etc., which together provide rich sensor data from which detailed information about the surrounding environment and the state of the AV and other agents (vehicles, pedestrians, etc.) within the environment can be extracted.
[0080] Note, however, that the present technique is not limited to using image data captured using the AV's own onboard optical sensors (image capture devices, lidar, etc.). The method may alternatively or additionally be applied using externally captured sensor data (e.g., CCTV images captured by an external image capture unit in the vicinity of the AV, etc.). In this case, at least some of the sensor inputs used to implement the method may be received by the AV from the external sensor data source via one or more wireless communication links.
[0081] The data processing system A2 processes the sensor data in order to extract such information therefrom. This will typically involve 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).
[0082] Localization is performed to provide awareness of the surrounding environment and the location of the AV in the surrounding environment. To this end, a variety of localization techniques can be used, including visualization and map-based localization. For example, reference is made to UK Patent Application No. 1812658.1 entitled "Vehicle Localization", the entire contents of which are incorporated herein by reference. The application discloses a suitable localization method using a combination of visual detection and predetermined map data. Segmentation is applied to the visual (image) data to detect the surrounding road structure, which is then matched with predetermined map data (e.g., HD (high definition) map) to determine an accurate and robust estimate of the location of the AV in a reference map frame with respect to the roads and / or other structures of the surrounding environment, which is in turn determined by fusing the visual and map data to combine visual detection with map-based inference. In order to determine the position estimate, a single position estimate determined based on structure matching is combined with other (one or more) position estimates (e.g., GPS) using particle filtering or similar methods to provide an accurate position estimate for the AV in the reference map frame that is robust to fluctuations in the accuracy of the single position estimate. After the AV's position on the map is accurately determined, the visually detected road structure is fused with predetermined map data to provide a comprehensive representation of the vehicle's current and historical surroundings in the form of a real-time map, and to provide an accurate and robust estimate of the AV's position in a reference map frame. In this context, the term "map data" includes map data of a real-time map derived by fusing visual (or other sensor-based) detections with predetermined map data, but also includes predetermined map data or map data derived from separate visual / sensor detections.
[0083] Object detection is applied to sensor data to detect and localize external objects in the environment (e.g., vehicles, pedestrians, and other external actors), to which the AV needs to be able to safely respond. This can, for example, take the form of 3D bounding box detection, where the position, orientation, and size of an object within the environment and / or relative to the ego vehicle is estimated. This can, for example, be applied to (3D) image data such as RGBD (red, green, blue, depth), LiDAR point clouds, etc. This allows the location and other physical properties of such external actors to be determined on a map.
[0084] Object tracking is used to track any movement of objects detected in the environment. The result is an observation trace (τ) for each object determined over time by object tracking. The observation trace τ is the history of the moving object, which captures the path of the moving object over time and may also capture other information such as the historical velocity, acceleration, etc. of the object at different points in time.
[0085] The combined use of object detection and object tracking allows for comprehensive localization and tracking of external actors on a determined map of the AV’s surroundings.
[0086] Object detection and object tracking are well known per se and can be performed in the current context using a variety of publicly available state-of-the-art models.
[0087] Through a combination of localization, object detection, and object tracking, the data processing component A2 provides a comprehensive representation of the surroundings of the ego vehicle, the current state of any external actors in the environment (position, orientation, velocity, etc. to the extent that they can be detected), and the historical tracks of such actors that the AV has been able to track. The data processing component A2 is continuously updated in real time to provide up-to-date position and environmental awareness.
[0088] The prediction component A4 uses this information as the basis for a predictive analysis in which predictions are made about the future behavior of external actors in the vicinity of the AV. Examples of suitable prediction methods are described below.
[0089] At least one probability prediction may be determined for the external actor. For example, this may be a distribution P(M|τ) over the possible manipulations of the subject and / or a distribution P(G|O) over the possible targets (see below).
[0090] The symbol O represents a set of observations. The observation O may be the observation trace τ itself (O=τ), but O is not necessarily limited to this aspect. For example, in one embodiment, the observation O may include the subject's manipulation M j In this case, the notation P(G|M j ) (possibly as a shorthand since the observation O may include additional parameter(s)) (note also that the manipulation can be inferred from the trace τ).
[0091] The AV planner A6 uses the extracted information about the self-surroundings and external agents in the self-surroundings, as well as the behavioral predictions provided by the prediction component A4, as the basis for AV planning. That is, the predictive analysis performed by the prediction component A5 adds a layer of predictive information on top of the information extracted from the sensor data by the data processing component, which the AV planner A6 in turn uses as the basis for AV planning decisions. This is typically part of a hierarchical planning process in which the AV planner A6 makes various high-level decisions and then makes additional low-level decisions required to implement the high-level decisions. The end result is a series of real-time, low-level action decisions. To implement these decisions, the AV planner A6 generates control signals that are at least partially input into the AV's drive mechanism A16 to control the vehicle's speed and direction (e.g., by steering, braking, accelerating, shifting, etc.). Control signals are also generated to perform auxiliary actions, such as issuing signals.
[0092] Embodiments of the invention will now be described by way of example only.
[0093] Reverse Planning
[0094] To assist the AV planner A6 in making AV planning decisions (e.g., determining a sequence of maneuvers, actions, etc.) to be taken by the ego vehicle to fully and efficiently execute the defined goals, the inverse planner A5 predicts the movements of nearby external actors, which in the present context may be referred to as agents.
[0095] Backward planning may be implemented at the maneuver level in order to make probabilistic predictions about the current maneuver of the external actor. For example, the backward planner A5 may predict a probability distribution P(M|τ) over a set M of available maneuvers, such as "follow lane", "change lane", change lane, etc., given a set of relevant observations including (or derived from) a trace τ. Backward planning at the maneuver level is in the form of (probabilistic) maneuver detections.
[0096] Alternatively or additionally, backward planning may be implemented at the goal level in order to make probabilistic predictions about the current goal of the external actor. For example, the backward planner A5 may predict a probabilistic distribution P(G|O) over the set G of available goals. In a left-turn driving scenario, the goal may be a "turn left" goal or a "continue straight" goal (i.e., stay on the current road and do not make a left turn) captured as a suitable target position. Backward planning at the goal level is in the form of (probabilistic) goal recognition.
[0097] Target recognition and maneuver detection will typically operate on different time scales. Target recognition typically considers longer time periods in the future than maneuver detection. For example, maneuver prediction may predict a few seconds into the future (e.g., on the order of 5 seconds), whereas target recognition may (depending on the circumstances) predict further forward than maneuver prediction. Thus, target recognition will typically consider longer trajectories (i.e., further into the future) than maneuver recognition.
[0098] The goal may be captured, for example, as a desired location (reference point) on a map (i.e., in a reference map frame) that the ego vehicle attempts to reach from its current location on the map, where the desired location is defined relative to the road layout encountered. For example, the desired location may be defined relative to a particular intersection, lane layout, roundabout exit, etc. Given the surrounding road layout and any external actors, there will be various paths / actions that the vehicle can take in order to successfully execute the goal by reaching the desired location. There will also be ego vehicle actions that will prevent the ego vehicle from doing so: for example, a poorly chosen initial action sequence may result in the vehicle being forced to take an undesirable roundabout exit, or otherwise abort the goal because the behavior of the external actors would be unsafe if the goal were continued. Incorporating reliable predictions about the behavior of external actors into planning helps the AV planner A6 plan safely and efficiently, minimizing the occurrence of aborted goals.
[0099] When implemented at the goal level, backward planning assumes different possible goals for each external agent and then generates trajectories for how the agent can achieve each goal, as well as the likelihood that the agent will follow each trajectory. A fundamental assumption is that each external agent will act in a way that can be predicted using a generative model.
[0100] Backward planning in the present context refers to a specific type of prediction method that can be implemented by the AV prediction component A4. That is, the backward planning method is a specific method of predicting the behavior of external actors, especially other vehicles, by assuming that the external actors plan in a predictable manner.
[0101] The term "backward planning" refers to the underlying assumption that external actors will plan their decisions in a predictable manner. More formally, the assumption is that other vehicles will plan and execute using an assumable generative model.
[0102] Now refer to Figure 2 Describe the inverse planning method, Figure 2 A flow chart of the method is shown. This considers inverse planning at the target level, but the basic principles apply equally to inverse planning at the maneuver level. The steps of the method are performed repeatedly, in real time or not, by the inverse planner A5, so that sufficiently up-to-date predictions are always available to the AV planner A6. The method uses information provided by the data processing system A2, i.e. information about the surrounding environment / road layout, the position / status of any other agents within the environment, and the traces of those (one or more) agents observed by object tracking.
[0103] The following steps are performed for each of the one or more external actors (vehicles, pedestrians, cyclists, etc.) under consideration, which in the following examples are vehicles other than the AV.
[0104] At step SB2, a set of hypothetical targets is determined for the other vehicle in question. It is assumed that the other vehicle is currently executing one of these targets. In order to determine a suitable set of hypothetical targets, the driving context is determined, such as the road layout in the vicinity of the other vehicle.
[0105] External subject targets are typically assumed based on a map. For example, given a collection of external vehicles near a road junction, roundabout, or other road layout indicated on a map (driving context), appropriate targets can be assumed from the road layout alone (without considering any observed historical behavior of the subject). For example, if other vehicles are currently driving on a multi-lane road and there are no intersections nearby, the set of assumed targets may include "follow lane" and "change lanes". As another example, in the case where a collection of external subjects is near a left-turn intersection, the assumed targets may be to turn left and continue straight. As indicated, such targets are defined with reference to appropriate reference points on the map.
[0106] However, the target can be assumed in various ways. For example, observed historical behavior (such as traces observed before time t) can be considered when assuming the external subject's target, or a combination of map-based inference and historical behavior-based inference can be used to assume the target.
[0107] Note that even when historical behavior is not used to assume available targets, historical behavior is still used to determine the likelihood of each of those targets (see below).
[0108] After you have determined your set of hypothetical targets, perform the following steps for each of these targets:
[0109] At step SB4, an expected trajectory model is determined for the hypothetical target in question. The expected trajectory model is a model that simulates the future behavior of the other vehicle assuming that the other vehicle performs the specific target. Specifically, the expected trajectory model indicates the probability that the other vehicle will take a specific one or more paths (trajectories) within a given time period Δt (from time t to time t+Δt) assuming that the other vehicle performs the target during the given time period Δt. As indicated, the target performed by the vehicle can be parameterized by a map-based endpoint. For example, if the goal is to continue straight (rather than, for example, turning left), the endpoint can be a point on the road at a set distance (such as 40m) in front of the vehicle in the same lane. Alternatively, for example in a multi-lane scenario, the target position can be a certain distance along the front of the road without specifying a specific lane (see further details below).
[0110] The expected trajectory model could simply be a (single) predicted path for a given target, but in this example, it takes the form of a distribution of predicted paths for the target in question. Given the position r of an external vehicle at time t, t In this case, a predicted path distribution is provided for each target in this example by combining a discrete set of n predicted paths for the target in question, thereby providing a predicted path distribution for at least a time interval Δt.
[0111] As an example, Figure 3A The set P of corresponding predicted paths of the targets G1 and G2 as predicted specific external vehicles is shown. G1 , P G2 The targets G1 and G2 are defined relative to the reference positions R1 and R2 in the reference map frame, respectively. The targets G1 and G2 can be points or areas on the map. Given 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 They are used in combination for targets G1 and G2 respectively.
[0112] Although in this example each target is defined only with respect to a single reference point / area, as will be appreciated, targets may be defined in other ways (e.g. with reference to multiple reference points where appropriate in certain environments). Typically, targets are defined by a set of one or more target parameters, which in turn are typically defined in a reference map frame in the context of autonomous driving. A reference position in a reference map frame is an example of a target parameter, and all descriptions of such reference positions apply equally to other types of target parameters.
[0113] Following the left turn example, one set of paths will be generated for the "continue straight" goal, which is the path that other vehicles are predicted to take if they execute the "continue" goal, and another set of paths will be generated for the "turn left" goal, which is the path that other vehicles are predicted to take if they execute the "turn left" goal.
[0114] A generative model can be used to synthesize these paths. The basic assumption is that other vehicles will plan and execute using this model. This model can correspond to the AV planner A6 itself (assuming that other vehicles will plan in the same way as the ego vehicle), but it can also be different from the AV's own planner.
[0115] For example, a rapidly exploring random tree (RRT) model can be used to synthesize paths for each target. According to the example of Figure CA, for each target G1, G2, a space of predicted paths (search space) is defined based on the reference position of the target (R1, R2, respectively) and the current position r0 of the external vehicle. The search space is then randomly sampled (based on random input parameters) to determine a set of n paths and the likelihood of each of these paths. In order 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.
[0116] For example, UK Patent Application No. 1803292.0, entitled "Efficient computation of collision probabilities for safemotion Planning", which is incorporated herein by reference in its entirety, discloses an RRT model that can be used in the present context to implement reverse planning. The collision probability risk along a given trajectory is calculated and used to rank candidate trajectories by safety. This in turn provides the likelihood of each sampled path under the assumption that an external vehicle is more likely to take a safer path to perform the objective in question. That is, the path probability can be determined based on the assumed relationship to safety. The sampled paths and their probabilities are an example of a trajectory model.
[0117] However, this is only one example of a suitable generative model, and other forms of generative models may also be used. Examples of alternative trajectory models are described later.
[0118] One such example is a neural network based model that has been 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 performed. The network is trained based on examples of real-world driving behavior. For example, a neural network can be trained based on examples extracted from a large database of CCTV (closed-circuit television) that has been captured in an urban driving environment.
[0119] Another example is a spatial Markov model (or similar model), which can be predetermined for a specific driving area by monitoring the driving area over a sufficient period of time (see above).
[0120] In general, the inverse planner A5 can be any model that can reason with respect to different assumed objectives.
[0121] At step SB6, the tracks of other vehicles actually observed within a time period Δt (ie, between time t and t+Δt) are matched with the distribution of paths associated with the target in question within the time period Δt to determine the likelihood of the target.
[0122] As an example, Figure 3B The actual observed track τ of the vehicle in question between time t and t+Δt is shown. By comparing the actual track τ with the targets G1, G2 ( Figure 3A ), the likelihood of each target G1, G2 can be determined probabilistically for the time interval Δt. This can be a form of soft matching. Given the observed track τ of the external vehicle, the target likelihood can be used as the probability distribution of each hypothesized target G i The conditional probability (i.e., p(G i |τ)) to capture the conditional probability that the external vehicle executes the target G within the time interval Δt given the observed trace τ. i The estimated probability of .
[0123] In other words, the reverse planner A5 is used to predict, for each of the hypothetical goals, a set of possible paths that other vehicles may have taken within the time interval Δt and the likelihood of each of these paths (i.e., what other vehicles may have done within the time interval Δt when other vehicles were performing the goal) under the assumption that other vehicles were performing the goal within the time interval. This is then compared with the actual traces of other vehicles within the time interval (i.e., what other vehicles actually did) to determine the likelihood of each goal within the time interval Δt.
[0124] refer to Figure 3C , now that the likelihood of each target given an observed trace τ is known, the (absolute) likelihood of any given predicted path (trajectory) Τ after time t+Δt given an observed trace τ can be determined, for example, as:
[0125]
[0126] Where p(G i |τ) is defined as above, p(Τ|G i ) is the target G given at time t+Δt i The estimated probability that the subject takes path Τ when the path distribution is . Note that the symbols "Δt" and "ΔT" are equivalent in this paper. Also note the difference between the mathematical symbol used to represent trajectory (lowercase or uppercase Greek letter "tau", i.e., τ, Τ) and the symbol used to represent time (lowercase or uppercase Latin "t", i.e., t, T).
[0127] Trajectories may be simple spatial paths, but the description applies equally to trajectories in combination with motion information (such as speed / velocity information, acceleration). For the latter, two trajectories may correspond to the same spatial path (or at least corresponding portions of the trajectories may correspond to the same spatial path), but still be different trajectories, for example because they are associated with different velocity information (e.g., at least at some points along the spatial path, one trajectory may correspond to a vehicle moving along substantially the same spatial path but at a lower velocity). For example, a trajectory may take the form of a spatial path in combination with an associated velocity or a set of velocities associated with corresponding points or segments of the spatial path. Extensions may additionally incorporate associated (one or more) acceleration values, etc.
[0128] Although not shown in the figure, at time t+Δt (according to which p(Τ|G i The path distribution at time t+Δt itself can be obtained, for example, by i Re-execute the inverse planner A5 to determine, but with the newly determined position r of the external body at time t+Δt t+Δt , in order to update the expected trajectory model accordingly. To re-execute the inverse planner A5, the target parameters may or may not have been updated at this time. In the case of using a data-driven behavior model, similarly, the behavior model can be re-executed at that time in order to update the expected trajectory model.
[0129] The above steps may be repeated over time, possibly in real time. For an external subject that deviates from its goal to some extent, because the path distributions for different goals are initially similar, it may not be possible to initially determine which goal the external subject is executing, and this will be reflected in the probability distribution over the set of hypothesized goals. As the path distributions diverge, the probability distribution will generally begin to skew toward a particular goal as the path distributions diverge.
[0130] Reverse planning of control
[0131] Inverse planning for a goal is considered above. As indicated, inverse planning can also be implemented at the maneuver level on a set M of hypothetical maneuvers.
[0132] For example, if other vehicles are currently driving on a multi-lane road with no intersections nearby, the set M of hypothetical maneuvers may include "following lanes" and "changing lanes". In this case, a set of paths will be generated for the "following lane" maneuver, which is a path that other vehicles are predicted to take if they are currently performing the "following lane" maneuver, and another set of paths will be generated for the "changing lanes" maneuver, which is a path that other vehicles are predicted to take if they are performing the "changing lanes" maneuver. The above description also applies to maneuver-level reverse planning, but the set M of hypothetical maneuvers is used instead of the set G of hypothetical targets.
[0133] For maneuver-level backward planning, the observation trace τ of the external agent can be used to estimate each maneuver M in the set M of possible maneuvers j ∈M. Figure 3A As shown, for each manipulation M j ∈M, determine the predicted trajectory model for time t. The predicted trajectory model can be a single trajectory or a trajectory distribution. Then, by comparing the actual observed trajectory τ with each manipulation M j The trajectory model is compared (such as Figure 3B ), we can observe the trace τ and manipulate M j The probability of the maneuver P(M j |τ). As mentioned above, this can be a form of soft matching.
[0134] In the following examples, to simplify the calculation, each manipulation M j is mapped to a single trajectory for the purpose of inverse planning. For maneuvers associated with a distribution of trajectories, the mode or most likely trajectory of the distribution can be taken for the purpose of inverse planning. In this case, it is assumed that there is a single trajectory T j , so that
[0135] P(T j |M j )=1
[0136] And the probabilities of all other trajectories are assumed to be zero.
[0137] The symbols used above are consistent with the given manipulation M j The associated trajectory j and relative to a given target G i A distinction is made between the evaluated trajectories Τ.
[0138] To reach the target G i , a sequence of manipulations that can be performed by an external subject, such as (M j 、M k , ...). In this case, (i.e., reaching the target Gi The overall target trajectory can be determined as i 、M j , ... associated with the manipulation trajectory. For example, in the embodiment described below, the target trajectory is determined by combining the manipulation trajectories and applying rate smoothing thereto. To this end, the target trajectory is determined by combining the manipulation trajectories and applying rate smoothing thereto. i Associated with (or relative to) manipulating M i Evaluation) trajectory i A trajectory T that is associated with a target (or evaluated relative to a target) may be referred to as a “partial trajectory”, and a trajectory T that is associated with a target (or evaluated relative to a target) may be referred to as a “full trajectory”.
[0139] Taking into account the specific goal G i In the case of multiple trajectories, the symbol Τ can be used (n) Instead of Τ, it is called the target G i The nth trajectory of .
[0140] The above simplifying assumption of a "one-to-one" relationship between partial trajectories and maneuvers has been found to give acceptable performance with reduced computational burden. However, alternative implementations that do not make this simplifying assumption of a "one-to-one" relationship between trajectories and maneuvers are still feasible. Without this simplifying assumption, the more general Bayes' theorem still holds:
[0141]
[0142] Where p(Τ k |M j )∈[0,1] is a given manipulation M l In the case of partial trajectory Τ j In this case, instead of assuming a mode / most likely partial trajectory, we can get the probability of j |M l ) sampled partial trajectories, and all descriptions here about the mode / most likely partial trajectories also apply to the sampled trajectories in this case.
[0143] Reverse Planning - Example Implementation
[0144] By way of further explanation, an example implementation of inverse planning for target identification will now be described in more detail. This uses target-level inverse planning to predict a probability distribution P(G|O) of at least one external agent over a set G of available targets, i.e., for each available target, the estimated probability that the agent is currently pursuing that target.
[0145] The described embodiments additionally use probabilistic maneuver detection to predict a distribution P(M|τ) over a set M of possible maneuvers given an observed trace τ of an external agent, i.e., for each possible maneuver, an estimated probability that the agent is currently performing that maneuver. As described later, the maneuver predictions are fed into the target predictions. Maneuver detection can be implemented, for example, using inverse planning at the maneuver level.
[0146] In other words, the described embodiments reason at both the manipulative level and the target level.
[0147] Target Identification
[0148] Target recognition is the process of inferring the agent's target (an external agent, which in the following example is a target vehicle, but could be another form of agent as described) given observations of the agent's past actions and other context information.
[0149] In the present context, the goal will typically specify a target location for the vehicle whose goal the reverse planner A24 is reasoning about, such as various exit points on a highway / intersection or different lanes. Knowing the goal of another agent can inform the planning process because the agent's behavior relative to its assumed goal can be predicted.
[0150] Using object recognition also increases the “explainability” of AV systems. Explainability refers to the ability of a system to explain its decisions to humans. Logging the object inference process (what the ego vehicle thinks the other vehicle’s object is at different times) can provide explainable information for decision tracking and debugging.
[0151] The target can be inferred deterministically or probabilistically. In the following example, the target is inferred probabilistically given a set O of relevant observations, i.e., the target posterior P(G|O) is estimated for a finite set G of available targets, where P(G i |O) is an external subject with a target G given an observation O i The probability of ∈G.
[0152] In the context of MCTS, goals are inferred probabilistically in order to make reasonable predictions about the future trajectories of external actors as the tree unfolds in the sense described above.
[0153] Manipulation and Targeting
[0154] First, an example scheme for determining available goals and maneuvers is described. This specification provides background related to a specific implementation of reverse planning described later. However, this description is not limited in this regard and is equally applicable to other implementations of MCTS, including alternative implementations of reverse planning / goal identification and implementations that do not use goal identification (e.g., the example given above using a data-driven behavior model without using higher-level goal identification).
[0155] Multi-strategy baseline
[0156] A "multi-strategy approach" is used as a baseline. The basic assumption of the multi-strategy approach is that all vehicles (or more generally, external actors), including the ego vehicle, perform one of a finite number of maneuvers (such as following a lane, changing lanes, turning, etc.) at any time. Such maneuvers may also be referred to herein as "maneuvering strategies" (note the distinction between a maneuvering strategy (i.e., a maneuver of a finite set of maneuvers) and an action strategy that can be used to execute a selected maneuvering strategy; note also that maneuver / maneuver are used interchangeably herein).
[0157] A "target" actor represents an external actor whose behavior is being predicted. Predictions can be made for one or more target vehicles (or other actors), and the above set of assumptions is applied to each target actor. The manipulation strategy examples in the previous paragraph are actually "closed-loop", meaning that they take into account sensor feedback and automatically change their speed and distance from the lead vehicle (the lead vehicle is the vehicle followed by the target vehicle). However, as explained below, for the purpose of reverse planning, they can be modeled as "open-loop" manipulations that have the benefit of increased computational efficiency and do not significantly affect the performance of the reverse planner A24. In the following example, both the target vehicle and the lead vehicle are cars, but the description is equally applicable to any form of actor (vehicle, pedestrian, cyclist, etc.). Similarly, the example considers an autonomous vehicle (ego car), but the description is applicable to any form of autonomous vehicle.
[0158] Maneuver detection may be implemented in the manner described above using inverse planning at the maneuver level.
[0159] As another example, a separate maneuver detector (MD) 1102 of prediction component A4 may implement Bayesian change point detection. This method is used to segment the observed low-level trajectory of the target vehicle into a sequence of maneuvers, and the nearest segment is used as a prediction of the maneuver currently performed by the car. Using this prediction, multiple forward trajectories are simulated for each maneuver available to the ego vehicle, and the maneuver with the best evaluation is selected for execution. This in turn feeds into the reverse planning of the target level in the following example.
[0160] 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 the present context, the hidden state of an external actor at a particular time is defined as the manipulation strategy that the external actor is executing at that time. The hidden state is not directly observable and therefore needs to be inferred through observations caused by the hidden state (in this instance, the observation trace). This allows estimating the probability of each available manipulation at the current point in time, i.e. the probability that the external actor is currently executing that manipulation.
[0161] For example, a hidden Markov model (HHM) can be used to represent manipulations as hidden states of the HHM, where the observation traces are modeled as being generated by the state transitions of the HMM.
[0162] As described below, a relatively small set of maneuvering strategies can be defined to significantly simplify the planning process. Such a small set can be defined because the maneuvering strategies are defined in a way that includes low-level planning such as speed and distance. Similarly, since other cars are assumed to be executing one of these same strategies, the current maneuvers of other cars can be effectively inferred given the low-level trajectory.
[0163] This multi-strategy approach itself is short-sighted because it only predicts the current maneuvers of other cars, but does not attempt to predict the future maneuvers of other cars. Backward planning is built on this approach to predict future actions, as described later.
[0164] For example, a hidden Markov model (HHM) may be used to represent manipulations as hidden states of the HHM, where observation traces are modeled as resulting from state transitions of the HMM.
[0165] As described below, a relatively small set of maneuvering strategies can be defined to significantly simplify the planning process. Such a small set can be defined because the maneuvering strategies are defined in a way that includes low-level planning such as speed and distance. Similarly, since other cars are assumed to be executing one of these same strategies, the current maneuvers of other cars can be effectively inferred given the low-level trajectory.
[0166] This multi-strategy approach itself is short-sighted because it only predicts the current maneuvers of other cars, but does not attempt to predict the future maneuvers of other cars. Backward planning is built on this approach to predict future actions, as described later.
[0167] manipulate
[0168] Basic Controls
[0169] Manipulations represent basic actions used for planning and prediction. Consider the following "basic" (elementary) maneuvers in this example:
[0170] Lane following;
[0171] Left / right lane change;
[0172] · Turn left / right (turn into the nearest lane in the driving direction);
[0173] Stop / Pay attention.
[0174] It will be appreciated that the described techniques may be extended to alternative or additional manipulations.
[0175] Each elementary maneuver has a specified applicability and a termination condition associated with it. A maneuver is only available in a given state if the maneuver's applicability condition is satisfied by that state. For example, a lane change to the left is only possible if there is a lane to the left of the car and if there is enough open space for the car in that lane. The applicability conditions may also encode traffic rules. The maneuver terminates if the state satisfies the termination condition. For the lane change maneuver, this is the case once the car has arrived on the lane and is aligned with the lane direction.
[0176] The maneuver specifies a reference path for the ego-car to follow and a target rate along that path between the start and the end of the maneuver. In the present context, a trajectory is defined as a pair (static reference path, target rate), i.e., as a set of static reference paths plus an associated target rate (see above).
[0177] However, in general, a maneuver is associated with multiple trajectories. For example, in the context of prediction, a maneuver can be associated with a trajectory distribution (i.e., a collection of trajectories that each have a specified probability (i.e., the probability that an external actor will follow the trajectory assuming it is currently performing the maneuver)).
[0178] Some maneuvers (such as lane following and attention) do not have natural termination conditions. For such maneuvers, the termination conditions are specified as parameters. "Macro Actions" (see below) automatically set these parameters based on context information.
[0179] The Attention maneuver is a variation of the Stop maneuver used in Macro actions. Attention causes the car to slow down and continue moving to a specified position given as a parameter. At that position, if the termination condition is met, the maneuver terminates, otherwise it brings the car to a complete stop and then terminates when the termination condition is met. The termination condition is used to check for oncoming traffic in a specified lane (given as a parameter). If there is no specified lane, the termination condition is always true. This allows the car to plan safe and smooth entries / exits when there may be oncoming traffic.
[0180] As a special case that is only watched for left / right exit macros, forced termination is allowed if the oncoming vehicle stops and is predicted to remain stopped for at least the amount of time required for the controlled car to complete the steering maneuver. This allows special cases such as in scenario 3 described below.
[0181] Some basic maneuvers are used only in macro actions, either because they have additional parameters or because they are only possible in very specific positions (such as steering maneuvers).
[0182] The following examples use two types of basic manipulation: More generally, Figure 1 The open-loop control for reverse planning (prediction) or target recognition in the target recognition component A24 in the AV, and the closed-loop control for MCTS self-planning in the planner A6 of the AV. These are described in detail in the following sections.
[0183] Closed loop control
[0184] A basic maneuver is closed loop if it uses feedback from sensors. This can cover different levels of automation in the maneuver. Here, it is assumed that each closed loop maneuver automatically controls the speed of the car and the distance to the leading vehicle (a form of adaptive cruise control (ACC)). It is also assumed that each maneuver is able to automatically initiate emergency braking.
[0185] The system is agnostic to the specific implementation of the manipulations and essentially treats them as "black box" functions. This has the benefit of flexibility and allows different representations to be merged straightforwardly. Possible implementations include:
[0186] Hard-coded heuristics using finite state machines or any programming logic
[0187] A grid path planner using motion primitives defined by a kinematic bicycle model;
[0188] Constrained optimization planner.
[0189] The planning methods in the above list can be called repeatedly after a state change to close their loop.
[0190] Open loop control
[0191] In contrast to closed-loop maneuvers, open-loop maneuvers do not use sensor feedback. Open-loop maneuvers specify reference paths (or distributions over paths) without attempting to correct these paths using feedback. This allows for simpler and less computationally expensive implementation of maneuvers.
[0192] Likewise, the system is agnostic about the representation of the open-loop maneuver.
[0193] A simple but effective way to implement open-loop maneuvers is to fit a polynomial function to a set of points extracted from the road topology. The target rate can be set to a constant or other time series. This computes a trajectory rather than a distribution over trajectories, which has been found to be sufficient in many practical contexts.
[0194] Another embodiment uses a behavioral model of the type described above (e.g., a Gaussian process or a neural network) to collect driving trajectories. This trajectory data can be generated in different ways:
[0195] In case of changes, use the corresponding closed-loop maneuvers generated in the simulation;
[0196] Generated from real driving data generated using AV platforms;
[0197] Generated from real CCTV data segmented into identified manipulations. As an example, Figure 5 An example of a Gaussian trajectory model 1202 fitted to trajectories observed in CCTV footage over time is shown.
[0198] Conditions used in a mindful maneuver (such as "wait until upcoming traffic flows clear") may be implemented in an open-loop maneuver by waiting a specified time until the condition is predicted to be true (eg, wait until traffic is predicted to flow clear).
[0199] Target rate and rate smoothing
[0200] As mentioned, in this example, a trajectory is defined as a static path combined with a set of target velocities.
[0201] A target speed is set within the basic maneuver. As a general principle, it can be assumed, for example, that the vehicle will attempt to drive at a certain speed (e.g., the speed limit) in a certain area. If there is a slower car ahead (in which case the car's speed is the new target), or if required due to a bend in the driving path, etc., then the target is reduced.
[0202] For open-loop lane following, the target speed is set to minimum (speed limit, speed of the preceding car (if any)).
[0203] Due to its simplicity, this method is computationally cheap, but it can lead to predicted trajectories of other vehicles that are intended for collision. For example, in the following scenario 1, the truck is predicted to continue straight at the speed limit (because there are no vehicles ahead), and car 2 is also assumed to overtake at the speed limit (during the lane following segment of overtaking). The predicted trajectories of car 2 and the truck may collide because the reverse planning of car 2 actually assumes a constant velocity of the truck. However, in this and many other cases, it has been found that this discrepancy does not cause problems for the self-planner A6: using the prediction output of this simple method, safe and effective planning decisions can still be taken.
[0204] In basic maneuvers that generate curved trajectories (e.g., turns and lane changes), a heuristic based on local curvature is used to set the target velocity. The function is as follows, where v target is the target velocity, and ψ is the point curvature. The other terms are constants set to appropriate values:
[0205] v target =max(v min , v max -cψ)
[0206] 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 vehicle's target path using finite differences:
[0207]
[0208] Rate Smoothing
[0209] Because the rate is set within the basic maneuver, two subsequent maneuvers may have a sudden change in rate. A typical example is lane following following a turning maneuver.
[0210] To compensate for this effect, the complete trajectory resulting from different maneuvers can be smoothed in rate to improve control and realism. A rate smoothing function that optimizes the target rate in a given trajectory is used. Rate smoothing is used for both prediction (inverse planning) and MCTS self-planning.
[0211] Rate smoothing is formulated as an optimization problem on a trajectory along a given path. Assume that the set of points at the longitudinal position and their respective target rates Fit a continuous and differentiable function κ: x→v. Then, consider the time horizon T (which can be estimated using the target rate, for example) H , the time Δt between two time points, and other parameters to be optimized (e.g., maximum speed v max and acceleration a max ), the smoothing problem is defined as:
[0212]
[0213] stx t+1 =x t +v t Δt
[0214] 0<v t <v max
[0215] |v t+1 -v t |<a max Δt
[0216]
[0217] According to the solution of this problem, spatial resampling can be used to obtain The last achievable position is given by x N Given. If Then you can resample from just that solution.
[0218] Alternatively, you can start from x N Start solving similar problems and you can repeat the process until you reach that condition.
[0219] It is also possible to model other parameter(s) related to the trajectory (eg, acceleration) and impose constraints on these parameter(s) as an extension of the problem.
[0220] Rate smoothing should take into account zero rate in the input trajectory, which indicates a complete stop. A simple way to achieve this is to divide the trajectory into segments separated by stop events (zero velocity) and apply the smoothing function to each segment.
[0221] Macro Action
[0222] Specific patterns of maneuvers (referred to here as “macro-actions”) relieve the planner in two important ways: they specify a common sequence of maneuvers, and they automatically set free parameters in the basic maneuvers based on contextual information (usually the road layout).
[0223] In this example, the following macro actions are used (manipulation parameters are shown in brackets):
[0224] Continue Lane: Specifies the sequence <Follow Lane (until visible lane end, i.e. lane target)>.
[0225] Left / Right Exit: Specify the sequence <Follow Lane (until at / near Turn Point), Watch (until oncoming traffic clears / safe distance), Turn Left / Right>. The exit point is automatically set to the one corresponding to the ego car's goal, allowing macro actions to skip earlier exit points (this is particularly useful in roundabouts).
[0226] · Intersection: Specify the sequence <Follow Lane (until at / near intersection), Watch (until oncoming traffic at intersection is clear / safe distance), Follow Lane (until after intersection)>.
[0227] • Overtaking: specifies the sequence <right lane change, following lane (until the ego car passes (one or more) other vehicles), left lane change>.
[0228] The applicability conditions of a macro action are given by the applicability conditions of the first maneuver in the macro action and possible additional conditions. For example, the additional condition for <right exit> is that the car is in the rightmost lane in its driving direction and the target exit point is in the same lane in front of the car. The additional condition for <crossroad> is a road intersection where the ego car must give way in front of another car (see scenario 3 below). The termination condition of a macro action is given by the last maneuver in the macro action.
[0229] Macro-actions can significantly speed up the planning and prediction process, as a single macro-action may be sufficient to achieve a given goal. For example, in Scenario 2 below, if the goal of the ego car was G3, a single macro-action <Exit Right> would have accomplished that goal. Macro-actions are also useful because they automatically handle switching points between maneuvers that would otherwise need to be explicitly planned (e.g., setting open termination conditions for maneuvers such as lane following).
[0230] The macro actions used in such operations do not define a hierarchy of decomposable actions; they simply define a sequence of actions in a flexible way. Macro actions are implicitly included in the planning search space.
[0231] As described, for the specific example MCTS process described below, all primitive operations in macro actions are closed-loop, while for reverse planning, all primitive operations are open-loop.
[0232] Goals and Goal Generation
[0233] Goals of the Ego Car
[0234] Generates the goal of the ego car based on the route planning. Route planner (A25, Figure 1) takes as input an annotated (with lane directions, traffic signs, etc.) road map and start / end locations. It computes a route from the start location to the end location that specifies the sequence of road segments and directions that the ego car must travel through. This route is passed down to planner A6 where it is used to generate the goal for the ego car as follows:
[0235] Conceptually, planner A6 "zooms in" on a map with a view area (e.g., square or circular or any suitable shape) centered on the ego car, similar to the scene picture shown below. This view area moves continuously with the ego car. At any point in time, the goal of the ego car is given by the next exit point in the route (the next exit point in the route the car needs to change from the current road to a connecting road) or by the visible end of the current lane if the next exit point in the route is not yet visible. For example, in scenario 1 below, the next exit point is not visible, so the goal is G1. In scenario 2 below, the exit point becomes visible and the new goal becomes G3.
[0236] Other car targets
[0237] The other car's goal can be defined, for example, as its possible exit points and the visible end of the road in the direction of the car, which is bounded by the view area of the ego car. A heuristic goal generation function is used to enumerate the set of possible goals for the car in a given view area, using information about the road layout and traffic rules (e.g., using an SDL road graph). To reduce computation time, when there are many goals (e.g., many exit points), the function can ignore the car's exit point goal if there are already two earlier exit points in the same lane ahead of the car.
[0238] Other types of goals can be specified, such as "I want you to be in front of me". Such goals can be added and removed dynamically based on the current configuration of the cars in the environment. The following scenario description gives an example of a goal.
[0239] Target Identification
[0240] In this example embodiment, as will now be referred to Figure 4 As described, target recognition is performed based on a “cost penalty”.
[0241] "Planning" in the present context means a sequence of one or more elementary maneuvers selected to reach a target. In some cases, such a sequence of elementary maneuvers may be defined by macromanipulations. For macromanipulations or some other sequences of multiple elementary maneuvers, each elementary maneuver is associated with a partial trajectory, and the partial trajectories are combined using rate smoothing to determine a complete trajectory for reaching the target.
[0242] Figure 4 A schematic flow chart of a method for probabilistically inferring a goal of an external actor from a finite set of available goals based on a cost penalty is shown. Figure 4 The right-hand side of shows an illustrative example of the steps applied to a scenario with two available targets:
[0243] 1. G1 - Continue along the current road, which is defined as the target position at the end of the visible road (more generally, as a reference point in front of the car on the current road);
[0244] 2.G2 - Take the right turn exit, as defined by the exit location.
[0245] Given a set of possible goals for the car and a sequence of past primitive maneuvers performed by the car, a reverse planning procedure can be used to compute the posterior distribution over the goals. This method, given an observation O (e.g., the observation trace τ in the example above), n ), the prior distribution P(G) on the target and the likelihood function L(O|G), the Bayesian posterior P(G|O)~L(O|G)P(G) is calculated on the possible target G.
[0246] The notations P(O|G) and L(O|G) are equivalent and represent the conditional probability of an observation O given a target G, with the use of the notation “L” being consistent with the fact that these probabilities are likelihoods in a statistical sense (note that early in this disclosure the term likelihood is used in an everyday sense, not necessarily this particular statistic. The meaning will be clear in context).
[0247] The target is defined based on the target position, and the symbol G i Can be used to indicate the target position of the zone. Target position G i It can be a point in space, but can also be an area or can correspond to a specific distance along the road, for example, the target position can be defined as a line perpendicular to the road, and in this case, once the car reaches this line, the car is said to have reached the target (regardless of the car's lateral position in the road).
[0248] Given a target G i ∈G likelihood L(O|G i ) is defined as the difference between the respective costs of the two plans (cost penalty):
[0249] 1. From the initial position r of the car (at time t) t To the target position G i The optimal plan is to t To G it, without considering any observed behavior of the car after time t. This can be performed as a sequence of elementary maneuvers, macromaneuvers, or multiple elementary maneuvers in addition to macromaneuvers. Using multiple elementary maneuvers, the partial trajectories associated with them are combined to provide a trajectory for moving from an initial position r to a given position. t Arrival at target G i the optimal complete trajectory of t (ignoring any actual observed behavior of the car after time t); and
[0250] 2. “Best Available” Planning – This is defined as t To the target position G i The optimal plan for a given car between time t and time t+Δt is t To G i The optimal plan for has the additional constraint that it must match the behavior actually observed in the subsequent time interval ΔT. In other words, as the car moves from its initial position r t To target G i The optimal plan is calculated such that the plan obeys the observation O. This assumes that the car is more likely to execute the optimal plan to achieve the goal, but allows for a certain degree of deviation. This can also be performed as a sequence of elementary maneuvers, macromaneuvers, or multiple elementary maneuvers in addition to macromaneuvers. Using multiple elementary maneuvers, the partial trajectories associated with them are combined to provide a trajectory for moving from the initial position r t Arrival at target G i The "best available" complete trajectory of , but taking into account the actual observed behavior of the car in the interval from t to t+Δt. The best available trajectory has an observed portion of the interval [t, t+Δt] that matches the actual observed trajectory and a future portion of the subsequent time interval, and the best available trajectory is selected so as to minimize the total cost associated with the best available complete trajectory (i.e., the total cost of both the observed portion and the future portion).
[0251] This is a form of target recognition because it considers the complete path to the target (which may be based on multiple partial trajectories associated with multiple maneuvers).
[0252] The cost assigned to a complete trajectory can take into account various factors as described later. These factors include driving time (penalizing trajectories that take longer to reach the goal), safety (penalizing unsafe trajectories), and comfort (e.g., penalizing trajectories with excessive acceleration).
[0253] The initial position of the car is r t This can be, for example, the first observed position of the car. A reasonable approach is to define the initial position r using a moving window of past observations defined by the sensor range of the ego car. t .
[0254] exist Figure 4 At step 1004, an optimal plan is calculated for each target G1, G2 (1 above). Once calculated, this allows the optimal trajectory to be determined for each target G1, G2, for example using an A* search (described below). After the optimal trajectory is calculated, the total cost associated with the optimal trajectory can then be calculated (also described below). The optimal trajectory is the complete trajectory, i.e., the trajectory for moving from the initial position r t to reach the goal in question.
[0255] exist Figure 4 In the example of , the trajectory is represented by points evenly spaced in time along the trajectory, so that evenly spaced points imply a constant rate, and so that increasing (or decreasing) distance between points imply acceleration (or deceleration). White circles are used to represent optimal trajectory points. It can be seen that for target G1, the optimal trajectory is a straight path that continues along the road at a constant speed, while for target G2, the optimal trajectory gradually slows down as the car approaches the turning point for the exit.
[0256] At step 1006, the best available plan is calculated for each target G1, G2 (2 above). As indicated, it takes into account (when the car is at its initial position r t The actual observations O between time t and the current time t+Δt. These observations O include the observed low-level traces τ, Figure 4 Indicated by black circles.
[0257] In this context, the observations O may alternatively or additionally include the current maneuver of the car, ie the probability of each target may be estimated based on the maneuver currently performed by the car. They may additionally include maneuvers observed in the past.
[0258] Despite Figure 4 It is not explicitly shown in , but as mentioned above, probabilistic maneuver detection is applied to predict a probability distribution over possible current maneuvers of the car. Therefore, the current maneuver may not be known explicitly, but only probabilistically, according to the distribution p(M|τ) over possible current maneuvers. This can be done by first sampling the current maneuver M according to p(M|τ) j , and then manipulate M according to the current j (i.e., having j The target probability distribution p(G|O) of the observation value O) is sampled to solve it.
[0259] From the best available plan, the best available trajectory can be determined (described below), which in turn allows the total cost to be determined for the best available trajectory (also described below). This is also the case from the initial position r t To the target position G ia complete trajectory in the sense of the complete trajectory. The best available trajectory has an observed portion that matches the actual observed trajectory (i.e., the black circles in Figure 4 between times t and t + Δt), and additionally includes a future portion at times after t + ΔT, represented by the hatched circles in Figure 4 .
[0260] In the depicted example, it can be seen that both the observed portion (black circles) and the future portion (hatched circles) of the best available trajectory for target G1 match the optimal trajectory (white circles) of that target G1 quite well. Thus, the cost penalty - the difference between the cost of the optimal trajectory and the cost of the best available trajectory for target G1 - is relatively low.
[0261] However, for target G2, the observed trajectory (black circles) deviates quite significantly from the optimal trajectory (white circles) because the car is no longer able to reach the extent required by the optimal trajectory at time t + Δt. This difference in itself will not necessarily incur a significant cost penalty (it may or may not depend on the details of the implementation). However, as a result of the observed behavior, it can be seen that the future portion of the best available trajectory (i.e., the portion after time t + Δt) must necessarily include hard braking (which reflects the fact that the lowest - cost path from the car's current position to G2 must involve hard braking given the car's situation), which is penalized by the cost function. This difference in cost from the optimal trajectory implies a higher cost penalty for target G2.
[0262] At step 1008, for each target G1, G2, the target likelihood L(O|G) is calculated based on the cost penalty, i.e., the difference between the cost of the optimal plan calculated for that target at step 1004 and the cost of the best available plan calculated at step 1006. This in turn allows the calculation of the target posterior P(G|O) based on the target likelihood and the target prior (step 1010).
[0263] The prior P(G) can be used to encode knowledge about the "intrinsic" probabilities of certain targets. For example, in the Figure 4 scenario, it can be observed that cars making right - hand turns are relatively infrequent, which can be encoded as having a prior with P(G2) < P(G1). This will effectively bias target G1 over G2. For scenarios without such prior knowledge, it can simply be assumed that each target is equally likely in the absence of any observations of the individual behavior of a particular car, i.e., P(G1) = P(G2).
[0264] The above assumes that: given the initial position r of the car tGiven an optimal (or best available) plan, an optimal (or best available) trajectory can be determined. As will now be described, one mechanism for mapping a target to a trajectory in this manner uses an A* search.
[0265] Probabilistic Programming Identification Algorithm
[0266] A* Search
[0267] "A* search" is performed on open loop maneuvers including macro-command actions. Maneuvers are filtered based on their suitability criteria. If the basic maneuvers specify a distribution over trajectories, a suitable single trajectory can be selected, for example as a mode or most likely trajectory.
[0268] A* search is a known method formulated in the form of a weighted graph of nodes and edges. In the present context, its purpose is to find a way to reach a specified target G from a given location (represented by a starting node). i The optimal plan for a problem is to find a sequence of nodes (and hence a sequence of actions) that reaches a goal with relatively low cost. For each node n, the "cost so far" g(n) is defined as the cost from the start node to node n, and the heuristic function h(n) provides an estimate of the cost from n to the goal. The search begins at the start node, and at each node the sequence is extended to the next node with the lowest node cost, which is defined as:
[0269] f(n)=g(n)+h(n).
[0270] A simplifying assumption can be made that all other cars in the environment use a constant velocity model.
[0271] In order to find the initial position r t To target G i The search for the optimal trajectory starts at time t and position r t Given the observations O in the time interval Δt, in order to find the position r of the car from its current position t+Δt The best available trajectory to the target is obtained, and the search starts with the current maneuver detected and the current position r t+Δt .
[0272] The above-described maneuver detection method can be used to detect maneuvers. Note that this will typically result in a probability distribution over possible current maneuvers. Back-planning should be performed for each predicted current maneuver, since predicted current maneuvers may result in different posteriors on the target. Thus, each possible current maneuver produces its own posteriors on the target. For computational efficiency, only the n most likely current maneuvers are considered, and any other maneuvers are ignored, where n is a method parameter that can be set appropriately.
[0273] The cost g(n) to reach the current location (current search node) so far can be defined as the estimated driving time to the current location based on the path and rate specified by the basic maneuvers.
[0274] The heuristic cost h(n) used to estimate the remaining cost to the target is given by the driving time from the current location to the target location by going straight at the speed limit. Note that in order to guide the search effectively, h(n) only needs to provide an estimate of the minimum remaining cost in order to guide the search. Therefore, relatively rough assumptions can be made here without affecting performance.
[0275] After finding the optimal plan, a full trajectory is generated under the maneuvers in the plan. Then, rate smoothing is applied to the full trajectory and a full cost function is calculated (see the cost function section below) to obtain the final cost of the plan. As in the braking example below, the final steps (applying smoothing and a full cost function) allow additional "clues" to be obtained based on the rate.
[0276] Rate smoothing is not applied to any part of a trajectory that has already been observed. Otherwise, the effect of rate smoothing can be to eliminate signs that suggest certain targets (see below in Figure 4 further details in the context of examples of ).
[0277] In order to account for situations where the car is in the middle of a maneuver (eg, lane change), the car's currently executed maneuver needs to be identified so that the currently executed maneuver can be completed before planning further into the future.
[0278] To reduce the search space, basic steering and mindfulness maneuvers can be removed from the search space because these maneuvers are not used outside of macro-command actions. If the termination condition of the lane following maneuver is set to a certain fixed length as a default value, the lane following maneuver can still be used as a basic maneuver outside of macro-command actions.
[0279] This example does not check for collisions between external actors during backward planning. While this can be done, it will make the overall process more expensive. Furthermore, due to some simplifying assumptions (such as constant velocity of other vehicles), there may be situations where collisions are unavoidable. The multi-agent MCTS method described in detail below can handle this collision checking.
[0280] Alternatively, the process can be extended to reason about possible conflicts as part of backward planning.
[0281] It has been found that the assumptions set forth above with respect to A* search provide a good balance between computational efficiency and performance. Of course, it will be appreciated that a different set of assumptions may be used, such as a non-constant rate model. As another example, the above essentially transforms the search problem into a deterministic problem by considering only the most likely trajectory associated with the maneuver. However, this can be equally extended to probabilistic searches based on complete or truncated trajectory distributions. That is, while the above considers full / partial trajectory models in the form of a single trajectory, the techniques can also be applied to full / partial trajectory distributions.
[0282] Multithreading can be used to speed up the process by using a separate thread for each target G. With the additional assumption that the cars have separate targets, further parallelization can be achieved by using one process / thread for each other car.
[0283] brake
[0284] Although braking is not identified as a unique maneuver in the above method, this method is still able to factor braking into the likelihood of the target.
[0285] As an example, consider Figure 4 The scenario shown and described above. The optimal plan from the car's initial position to G2 is given by the right exit macro action. After applying rate smoothing, the result is a trajectory that continuously decelerates until the car reaches the turning point. The cost of this optimal trajectory is denoted by C2.
[0286] Assume that the car is observed to now follow the lane halfway closer to the turning point, and decelerates similarly to the optimal trajectory of G2. Therefore, if the trajectory to G2 is contested, this results in a trajectory with a cost similar to C2. On the other hand, the optimal trajectory from the initial state to G1 will not involve such braking, resulting in a significant cost difference (due to the time difference and possible jerk). Therefore, the posterior probability of G2 increases, while the probability of G1 decreases.
[0287] (As an aside: Note above that rate smoothing is not applied to any part of the already observed trajectory. The reasoning behind this in this example is obvious: if rate smoothing were applied to the entire trajectory, then the smoothing would also reduce the rate in the part of the already observed lane following maneuver, which would result in a lower cost penalty because the braking is no longer as abrupt. In other words, it would make the trajectory more similar to the optimal trajectory from the initial observation position. Thus, smoothing applies to the past trajectory as an unmodifiable constant.)
[0288] Now suppose that instead the car is observed to follow the lane at a constant rate instead of decelerating. If this trajectory continues to G2, it will involve sudden braking, resulting in a cost much higher than C2. On the other hand, the trajectory that continues to the goal G1 (staying in the lane) is essentially the optimal plan from the initial state to G1. Therefore, the posterior probability of G2 decreases and the posterior probability of G1 increases.
[0289] Finally, assume that the observed car follows the lane and suddenly slows down when approaching the turning point. This sudden braking will cause a significant cost penalty to G2 and G1 because they are not in either optimal trajectory from the initial state. Therefore, the cost of both goals will increase, resulting in a small change in the relative probability of the two goals.
[0290] Predict trajectory based on target
[0291] To predict possible trajectories and associated probabilities for the car to a given goal, the same A* search method as used for reverse planning can be used. Instead of terminating A* after it finds the optimal plan, a fixed time budget is imposed and the algorithm is allowed to compute a set of plans with associated costs (perhaps up to some fixed number of plans). At any moment, 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 partial trajectories given by the maneuvers in the plans.
[0292] The distribution over the trajectories extracted from the plan can be computed using a softmax distribution (trajectory model):
[0293]
[0294] Among them, (n) is the nth complete trajectory to the target, C m is the cost of the trajectory (the complete cost after smoothing), β n It is the trajectory (n) (As mentioned above, the symbol T (n) For the nth complete trajectory to the target, with a given maneuver M j Part of the trajectory j This encodes the assumption that trajectories that are closer to the optimal are more likely. The scaling factor can be used to weigh specific trajectories based on observed data, i.e., allowing trajectory prediction models to be trained on relevant examples. Alternatively, a constant scaling factor (e.g., a value of 1) can be used.
[0295] The above softmax trajectory model can be used as an alternative to the trajectory model obtained via RRT.
[0296] As in inverse planning, focusing on some subset of the current maneuvers, such as the n most likely, a set of such trajectories is generated for each predicted current maneuver. After completing the current maneuver, A* is started, and the final trajectory includes the remainder of the current maneuver.
[0297] This predicts a variety of plausible trajectories rather than a single optimal trajectory, which is beneficial because there are situations where multiple trajectories achieve (close to) minimum cost but result in different predictions, which in turn may require different behaviors on that part of the ego vehicle.
[0298] At the hardware level, the AV's onboard computer system A1 includes: execution hardware capable of executing algorithms to achieve the above functions. Although the execution hardware can be general-purpose or special-purpose execution hardware, or any combination thereof, the execution hardware will generally include one or more processors, such as a central processing unit (CPU), and one or more processors can be operated in conjunction with special-purpose hardware, such as but not limited to accelerators (e.g., (one or more) GPUs), field programmable gate arrays (FPGAs) or other programmable hardware and / or application-specific integrated circuits (ASICs), etc. Given the need to perform complex data processing operations, typically using sophisticated and complex ML / AI models with sufficient accuracy and speed (usually real-time) to ensure safe and reliable operation, the onboard computer system may be very sophisticated and may require specially customized special-purpose computer hardware to implement the models and algorithms discussed. In particular, given the speed of innovation in the field of AI, it will be understood that the architecture of the AV's onboard computer system A1 at the hardware level and the functional / software level can take a variety of forms. Here, the functional components embodied in the computer system, etc. (e.g., data processing component A2, prediction component A4, and AV planner A6) are high-level representations of specific functions implemented by the computer system (i.e., functions performed by (a combination of) general-purpose hardware and / or specialized hardware of the computer system as appropriate in the particular case).
Claims
1. A computer-implemented method for probabilistically predicting a goal of an external actor, the method comprising: receiving, at a computer, sensor input for detecting and tracking the external actor; applying object tracking to the sensor input to track the external actor and thereby determine an observed trace of the external actor over a time interval from time t to time t+Δt; determining a set of available targets for the external actor based on a map, each target being defined by a target location on the map; For each of the available targets, generating an expected trajectory model within the time interval from time t to time t+Δt based on the position of the external actor at time t and the target position of the available target on the map; as well as The observed trace of the external actor is compared to an expected trajectory model for each of the available targets to determine a likelihood of the target.
2. The method according to claim 1, wherein the method is implemented in an autonomous vehicle, The planner of the autonomous vehicle makes autonomous driving decisions based on the likelihood of at least one of the available targets and the sensor input obtained using the sensor system of the autonomous vehicle.
3. The method according to claim 1 or 2, wherein: The expected trajectory model is a single predicted trajectory associated with the target or a distribution of predicted trajectories associated with the target.
4. The method according to claim 3, wherein: The expected trajectory model is a conditional probability p(T|G i ) distribution, and given the observation trace τ, the likelihood of the target p(G i |τ) is used to estimate at least one predicted trajectory probability p(Τ|τ).
5. The method according to claim 4, wherein: The expected trajectory model is determined by executing a generative model for each target, the generative behavior model having been trained to generate trajectories based on examples of real-world driving behavior.
6. The method according to claim 5, wherein: The model is specific to the driving area to which the method is applied.
7. The method according to claim 6, wherein: The expected trajectory model is determined by applying a sampling algorithm to sample a space of predicted trajectories, the space of predicted trajectories being defined for the targets based on one or more parameters of each target and one or more parameters of the external actor.
8. The method according to claim 7, wherein: The expected trajectory model is determined based on one or more ego vehicle parameters to model responses of other agents to ego vehicle behavior.
9. The method according to claim 8, wherein: The observed trace is used to predict a best available trajectory model for the target, and the comparing includes comparing the best available trajectory model with the expected trajectory model.
10. The method according to claim 9, wherein: The observed traces are used to predict current maneuvers and / or future maneuvers of the external actor, and the predicted current maneuvers or future maneuvers are used to determine the best available trajectory model.
11. The method according to claim 10, wherein: A sequence of a plurality 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 respectively associated with the plurality of maneuvers.
12. The method according to claim 11, wherein: Each partial trajectory model comprises one or more target motion values, and one or more motion values for a future portion of the best available trajectory model are determined by applying motion smoothing to the target motion values.
13. The method according to claim 11, wherein: The expected trajectory model for each target is a single expected trajectory for the target, and the best available trajectory model for each target is a single best available trajectory.
14. The method according to claim 13, wherein: The partial trajectory model for each maneuver is the most likely partial trajectory for the maneuver.
15. The method according to claim 14, wherein: The defined cost function is applied to both the expected trajectory model and the best available trajectory model for each target to determine respective costs for those trajectory models, wherein the comparing comprises comparing those costs.
16. The method according to claim 15, wherein: The cost function rewards reduced driving time while penalizing unsafe trajectories.
17. The method according to claim 16, wherein: The cost function also penalizes lack of comfort.
18. The method according to claim 17, comprising the steps of: For at least one of the targets, at least one predicted trajectory of the external actor after the time interval is determined, and a probability of the predicted trajectory is determined based on the likelihood of the target.
19. The method according to claim 18, wherein: An expected trajectory model in the time interval is determined based on the location of the external agent at the beginning of the time interval, and at least one predicted trajectory is determined based on the location of the external agent at the end of the time interval.
20. The method according to claim 19, wherein: The at least one predicted trajectory is determined by applying a sampling algorithm to sample a space of predicted trajectories defined for the target based on one or more parameters of the target and the new position of the external actor.
21. A computer system comprising execution hardware configured to perform the method of any preceding claim.
22. A computer medium storing executable instructions, which, when executed by a processor, implement the method according to any one of claims 1 to 20.
23. An autonomous driving vehicle computer system comprising: A prediction component configured to implement the method according to any one of claims 1 to 22; as well as A planner configured to use the output of the prediction component to make autonomous driving decisions.
24. An autonomous vehicle comprising a drive mechanism and an autonomous vehicle computer system according to claim 23, wherein the drive mechanism is coupled to the planner and responds to control signals generated by the planner.
