# US 2021/0200229 A1 · Generating trajectory labels from short-term intention and long-term result

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0200229 A1
- Document ID: US20210200229A1
- Status: Published application
- Kind: A1
- Application number: 16/727,724
- Filed: 2019-12-26
- Published: 2021-07-01
- Earliest claimed: 2019-12-26
- Assignees: Waymo LLC
- Applicants: Waymo LLC
- Inventors: Khaled Refaat; Stephane Ross
- Web page: https://patentgrep.com/patent/US20210200229A1

## CPC

- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 20/00: Machine learning
- B60W 50/0097: {Predicting future conditions}
- B60W 60/0027: {using trajectory prediction for other traffic participants}
- G05D 1/0088: {characterized by the autonomous decision making process, e.g. artificial intelligence, predefined behaviours (using knowledge based models G06N5/00)}
- G05D 1/0221: {involving a learning process}
- G05D 1/0246: {using a video camera in combination with image processing means}
- G05D 1/228: Command input arrangements located on-board unmanned vehicles
- G05D 1/249: from positioning sensors located off-board the vehicle, e.g. from cameras
- G06N 3/047: Probabilistic or stochastic networks
- G06N 3/049: Temporal neural networks, e.g. delay elements, oscillating neurons or pulsed inputs
- G06N 3/09: Supervised learning
- B60W 2554/40: Dynamic objects, e.g. animals, windblown objects
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- B60W: CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- G05D: SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES

## Abstract

Methods, systems, and apparatus, including computer programs encoded on computer storage media, for generating training data for training a machine learning model to perform trajectory prediction. One of the methods includes: obtaining a training input, the training input including (i) data characterizing an agent in an environment as of a first time and (ii) data characterizing a candidate trajectory of the agent in the environment for a first time period that is after the first time. A long-term label for the candidate trajectory that indicates whether the agent actually followed the candidate trajectory for the first time period is determined. A short-term label for the candidate trajectory that indicates whether the agent intended to follow the candidate trajectory is determined. A ground-truth probability for the candidate trajectory is determined. The training input is associated with the ground-truth probability for the candidate trajectory in the training data.

## Claims

### Claim 1

A method of generating training data for training a machine learning model to perform trajectory prediction, comprising:
obtaining a training input, the training input comprising (i) data characterizing an agent in an environment as of a first time and (ii) data characterizing a candidate trajectory of the agent in the environment for a first time period that is after the first time;
determining a long-term label for the candidate trajectory that indicates whether the agent actually followed the candidate trajectory for the first time period after the first time;
determining a short-term label for the candidate trajectory that indicates whether the agent intended to follow the candidate trajectory;
determining, based on the long-term label and the short-term label for the candidate trajectory, a ground-truth probability for the candidate trajectory, wherein the ground-truth probability for the candidate trajectory is a probability that should be assigned to the candidate trajectory by the machine learning model; and
associating the training input with the ground-truth probability for the candidate trajectory in the training data.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
training the machine learning model on the training data.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining, based on the long-term label and the short-term label for the candidate trajectory, a ground-truth probability for the candidate trajectory comprises:
determining that the long-term label indicates that agent actually followed the candidate trajectory after the first time;
determining that the short-term label indicates that the agent intended to follow the candidate trajectory; and
based on determining that the long-term label indicates that agent actually followed the candidate trajectory after the first time and determining that the short-term label indicates that the agent intended to follow the candidate trajectory, setting the ground-truth probability for the candidate trajectory equal to 1.

### Claim 4 (depends on 1)

The method of claim 1, wherein determining, based on the long-term label and the short-term label for the candidate trajectory, a ground-truth probability for the candidate trajectory comprises:
determining that the long-term label indicates that agent did not actually follow the candidate trajectory after the first time;
determining that the short-term label indicates that the agent did not intend to follow the candidate trajectory; and
based on determining that the long-term label indicates that agent did not actually follow the candidate trajectory after the first time and determining that the short-term label indicates that the agent did not intend to follow the candidate trajectory, setting the ground-truth probability for the candidate trajectory equal to 0.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining, based on the long-term label and the short-term label for the candidate trajectory, a ground-truth probability for the candidate trajectory comprises:
determining that the long-term label indicates that agent actually followed the candidate trajectory after the first time;
determining that the short-term label indicates that the agent did not intend to follow the candidate trajectory; and
based on determining that the long-term label indicates that agent actually followed the candidate trajectory after the first time and determining that the short-term label indicates that the agent did not intend to follow the candidate trajectory, setting the ground-truth probability for the candidate trajectory equal to a first value between zero and one.

### Claim 6 (depends on 1)

The method of claim 1, wherein determining, based on the long-term label and the short-term label for the candidate trajectory, a ground-truth probability for the candidate trajectory comprises:
determining that the long-term label indicates that agent did not actually follow the candidate trajectory after the first time;
determining that the short-term label indicates that the agent intended to follow the candidate trajectory; and
based on determining that the long-term label indicates that agent did not actually follow the candidate trajectory after the first time and determining that the short-term label indicates that the agent intended to follow the candidate trajectory, setting the ground-truth probability for the candidate trajectory equal to a second value between zero and one.

### Claim 7 (depends on 1)

The method of claim 1, wherein determining, based on the long-term label and the short-term label for the candidate trajectory, a ground-truth probability for the candidate trajectory comprises:
determining that the long-term label is inconsistent with the short-term label, comprising:
determining that the long-term label indicates that agent did not actually follow the candidate trajectory after the first time and the short-term label indicates that the agent intended to follow the candidate trajectory, or
determining that the long-term label indicates that agent actually followed the candidate trajectory after the first time and determining that the short-term label indicates that the agent did not intend to follow the candidate trajectory;
obtaining context information of the environment;
based on the context information of the environment, generating an updated short-term label using one or more predetermined rules; and
based on the long-term label and the updated short-term label for the candidate trajectory, determining a ground-truth probability for the candidate trajectory.

### Claim 8 (depends on 1)

The method of claim 1, wherein determining a long-term label for the candidate trajectory that indicates whether the agent actually followed the candidate trajectory after the first time comprises:
determining whether log data that tracks movement of the agent after the first time indicates that the agent followed the candidate trajectory after the first time.

### Claim 9 (depends on 1)

The method of claim 1, wherein determining a short-term label for the candidate trajectory that indicates whether the agent intended to follow the candidate trajectory comprises:
determining whether the agent followed the candidate trajectory for an initial time period immediately after the first time, wherein the initial time period is shorter than the first time period.

### Claim 10 (depends on 1)

The method of claim 1, wherein determining a short-term label for the candidate trajectory that indicates whether the agent intended to follow the candidate trajectory comprises:
determining whether the agent had a heading that matches a heading required to follow the candidate trajectory for an initial time period immediately after the first time.

### Claim 11 (depends on 1)

The method of claim 1, wherein determining a short-term label for the candidate trajectory that indicates whether the agent intended to follow the candidate trajectory comprises:
determining, from appearance information characterizing an appearance of the agent within a first time window after the first time, whether the agent intended to follow the candidate trajectory.

### Claim 12 (depends on 11)

The method of claim 11, wherein the agent is a vehicle, and wherein the appearance information indicates whether any of one or more turn signals of the vehicle are turned on.

### Claim 13

A system comprising:
one or more computers and one or more storage devices storing instructions that are operable, when executed by the one or more computers, to cause the one or more computers to perform operations comprising:
obtaining a training input, the training input comprising (i) data characterizing an agent in an environment as of a first time and (ii) data characterizing a candidate trajectory of the agent in the environment for a first time period that is after the first time;
determining a long-term label for the candidate trajectory that indicates whether the agent actually followed the candidate trajectory for the first time period after the first time;
determining a short-term label for the candidate trajectory that indicates whether the agent intended to follow the candidate trajectory;
determining, based on the long-term label and the short-term label for the candidate trajectory, a ground-truth probability for the candidate trajectory, wherein the ground-truth probability for the candidate trajectory is a probability that should be assigned to the candidate trajectory by a machine learning model that performs trajectory prediction; and
associating the training input with the ground-truth probability for the candidate trajectory in training data.

### Claim 14 (depends on 13)

The system of claim 13, wherein the operations further comprise:
training the machine learning model on the training data.

### Claim 15 (depends on 13)

The system of claim 13, wherein determining, based on the long-term label and the short-term label for the candidate trajectory, a ground-truth probability for the candidate trajectory comprises:
determining that the long-term label indicates that agent actually followed the candidate trajectory after the first time;
determining that the short-term label indicates that the agent intended to follow the candidate trajectory; and
based on determining that the long-term label indicates that agent actually followed the candidate trajectory after the first time and determining that the short-term label indicates that the agent intended to follow the candidate trajectory, setting the ground-truth probability for the candidate trajectory equal to 1.

### Claim 16 (depends on 13)

The system of claim 13, wherein determining, based on the long-term label and the short-term label for the candidate trajectory, a ground-truth probability for the candidate trajectory comprises:
determining that the long-term label indicates that agent did not actually follow the candidate trajectory after the first time;
determining that the short-term label indicates that the agent did not intend to follow the candidate trajectory; and
based on determining that the long-term label indicates that agent did not actually follow the candidate trajectory after the first time and determining that the short-term label indicates that the agent did not intend to follow the candidate trajectory, setting the ground-truth probability for the candidate trajectory equal to 0.

### Claim 17 (depends on 13)

The system of claim 13, wherein determining, based on the long-term label and the short-term label for the candidate trajectory, a ground-truth probability for the candidate trajectory comprises:
determining that the long-term label indicates that agent actually followed the candidate trajectory after the first time;
determining that the short-term label indicates that the agent did not intend to follow the candidate trajectory; and
based on determining that the long-term label indicates that agent actually followed the candidate trajectory after the first time and determining that the short-term label indicates that the agent did not intend to follow the candidate trajectory, setting the ground-truth probability for the candidate trajectory equal to a first value between zero and one.

### Claim 18 (depends on 13)

The system of claim 13, wherein determining, based on the long-term label and the short-term label for the candidate trajectory, a ground-truth probability for the candidate trajectory comprises:
determining that the long-term label indicates that agent did not actually follow the candidate trajectory after the first time;
determining that the short-term label indicates that the agent intended to follow the candidate trajectory; and
based on determining that the long-term label indicates that agent did not actually follow the candidate trajectory after the first time and determining that the short-term label indicates that the agent intended to follow the candidate trajectory, setting the ground-truth probability for the candidate trajectory equal to a second value between zero and one.

### Claim 19 (depends on 13)

The system of claim 13, wherein determining, based on the long-term label and the short-term label for the candidate trajectory, a ground-truth probability for the candidate trajectory comprises:
determining that the long-term label is inconsistent with the short-term label, comprising:
determining that the long-term label indicates that agent did not actually follow the candidate trajectory after the first time and the short-term label indicates that the agent intended to follow the candidate trajectory, or
determining that the long-term label indicates that agent actually followed the candidate trajectory after the first time and determining that the short-term label indicates that the agent did not intend to follow the candidate trajectory;
obtaining context information of the environment;
based on the context information of the environment, generating an updated short-term label using one or more predetermined rules; and
based on the long-term label and the updated short-term label for the candidate trajectory, determining a ground-truth probability for the candidate trajectory.

### Claim 20

A computer program product, encoded on one or more non-transitory computer storage media, comprising instructions that when executed by one or more computers cause the one or more computers to perform operations comprising:
obtaining a training input, the training input comprising (i) data characterizing an agent in an environment as of a first time and (ii) data characterizing a candidate trajectory of the agent in the environment for a first time period that is after the first time;
determining a long-term label for the candidate trajectory that indicates whether the agent actually followed the candidate trajectory for the first time period after the first time;
determining a short-term label for the candidate trajectory that indicates whether the agent intended to follow the candidate trajectory;
determining, based on the long-term label and the short-term label for the candidate trajectory, a ground-truth probability for the candidate trajectory, wherein the ground-truth probability for the candidate trajectory is a probability that should be assigned to the candidate trajectory by a machine learning model that performs trajectory prediction; and
associating the training input with the ground-truth probability for the candidate trajectory in training data.
