# US 2025/0145179 A1 · Trajectory generation for mobile agents

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

- Number: US 2025/0145179 A1
- Document ID: US20250145179A1
- Status: Published application
- Kind: A1
- Application number: 18/835,554
- Filed: 2023-02-02
- Published: 2025-05-08
- Earliest claimed: 2022-02-03
- Assignees: Five AI Limited
- Applicants: Five AI Limited
- Inventors: Anthony Knittel
- Web page: https://patentgrep.com/patent/US20250145179A1

## CPC

- B60W 60/0011: {involving control alternatives for a single driving scenario, e.g. planning several paths to avoid obstacles}
- B60W 30/09: Taking automatic action to avoid collision, e.g. braking and steering
- B60W 30/0953: {the prediction being responsive to vehicle dynamic parameters}
- B60W 30/0956: {the prediction being responsive to traffic or environmental parameters}
- B60W 40/04: Traffic conditions
- B60W 60/0015: {specially adapted for safety}
- B60W 60/0027: {using trajectory prediction for other traffic participants}
- B60W 60/00274: {considering possible movement changes}
- G06N 3/045: Combinations of networks
- G06N 3/09: Supervised learning
- B60W 2554/4041: Position
- B60W 2554/4044: Direction of movement, e.g. backwards
- B60W 2554/801: Lateral distance
- B60W 2554/802: Longitudinal distance
- B60W 2556/40: High definition maps
- 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
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method of generating at least one trajectory in scenario comprising an agent navigating a mapped area, the method comprising: receiving an observed state of the agent and map data of the mapped area; generating a set of multiple trajectory basis elements from the observed state of the agent based on the map data; processing one or more scenario inputs in a neural network to generate a set of weights, each weight corresponding to one of the trajectory basis elements; and generating a trajectory for the agent by weighting each trajectory basis element by its corresponding weights and combining the weighted trajectory basis elements.

## Claims

### Claim 1

A method of generating at least one trajectory in a scenario comprising an agent navigating a mapped area, the method comprising:
receiving an observed state of the agent and map data of the mapped area;
generating a set of multiple trajectory basis elements from the observed state of the agent based on the map data;
processing one or more scenario inputs in a neural network to generate a set of weights, each weight corresponding to one of the trajectory basis elements; and
generating a trajectory for the agent by weighting each trajectory basis element by its corresponding weights and combining the weighted trajectory basis elements.

### Claim 2 (depends on 1)

The method of claim 1, wherein:
the multiple trajectory basis elements comprise multiple basis paths and weighted basis paths are combined to form a path, the trajectory comprising the path; or
the multiple trajectory basis elements comprise multiple basis motion profiles and the weighted basis motion profiles are combined to form a motion profile, the trajectory comprising the motion profile.

### Claim 3

(canceled)

### Claim 4 (depends on 1)

The method of claim 1, wherein:
the multiple trajectory basis elements comprise multiple basis paths and weighted basis paths are combined to form a path;
the multiple trajectory basis elements comprise multiple basis motion profiles and the weighted basis motion profiles are combined to form a motion profile; and
the multiple trajectory basis elements comprise the multiple basis motion profiles and the multiple basis paths, the trajectory comprising the path and the motion profile.

### Claim 5 (depends on 2)

The method of claim 2, wherein:
the basis motion profiles are generated based on the observed state of the agent and one or more motion profile parameters; or
the basis motion profiles are generated based on the observed state of the agent and one or more motion profile parameters by fitting a spline between an observed kinematic state of the agent and a target kinematic state of the agent.

### Claim 6

(canceled)

### Claim 7 (depends on 2)

The method of claim 2, wherein:
the map comprises a road layout, and
the method further comprising generating a graph representation of the road layout comprising one or more waypoints, including an observed waypoint and at least one goal waypoint, wherein the multiple basis paths are generated by fitting one or more splines between the observed waypoint and one of the goal waypoints of the graph representation.

### Claim 8

(canceled)

### Claim 9 (depends on 1)

The method of claim 1, wherein the scenario inputs comprise one or more of:
at least one trajectory prediction; or
a likelihood of collision associated with the at least one trajectory prediction.

### Claim 10

(canceled)

### Claim 11

(canceled)

### Claim 12 (depends on 1)

The method of claim 1, wherein the scenario comprises one or more non-ego agents, and wherein the trajectory generation comprises generating a respective predicted trajectory for the one or more non-ego agents wherein the respective predicted trajectory is passed to a planner for planning a trajectory of an ego vehicle.

### Claim 13 (depends on 12)

The method of claim 12, additionally comprising generating estimated likelihoods for one or more goals and/or motion profiles of each of one or more non-ego agents, wherein the scenario inputs comprise the estimated likelihoods.

### Claim 14 (depends on 1)

The method of claim 1, applied to plan a trajectory for an ego agent, wherein the trajectory generation comprises generating a candidate planned trajectory for the agent.

### Claim 15 (depends on 14)

The method of claim 14, wherein:
the candidate planned trajectory is used to seed a runtime optimizer that generates a final planned trajectory for the agent; or
the candidate planned trajectory is used to seed a runtime optimizer that generates a final planned trajectory for the agent, used to generate control signals for controlling an actor system of the ego agent.

### Claim 16

(canceled)

### Claim 17 (depends on 15)

The method of claim 15, when implemented in a simulation context, wherein the control signals are input to an ego vehicle dynamics model to simulate planned behaviour of the ego agent.

### Claim 18 (depends on 1)

The method of claim 1, wherein the trajectory generation further comprises generating one or more spatial uncertainty distributions for the agent, wherein each spatial uncertainty distribution provides a measure of a likelihood of a position of the agent at a given time.

### Claim 19 (depends on 18)

The method of claim 18, wherein the generated trajectory and spatial uncertainty distributions are generated for each of a set of equally spaced timesteps.

### Claim 20 (depends on 19)

The method of claim 19, wherein the spatial uncertainty distributions are elliptical Gaussian distributions.

### Claim 21 (depends on 1)

The method of claim 1, wherein the observed state comprises a position and a velocity of the agent at an initial timestep.

### Claim 22 (depends on 1)

The method of claim 1, wherein the trajectory generation comprises generating a trajectory for each of a predefined number of modes, and wherein the method further comprises generating a mode prediction indicating a most likely mode for the agent.

### Claim 23 (depends on 12)

The method of claim 12, further comprising a collision assessment step comprising computing a likelihood of collision for each agent of the scenario based on the generated trajectories for all agents.

### Claim 24 (depends on 23)

The method of claim 23, wherein:
the trajectory generation further comprises generating one or more spatial uncertainty distributions for the agent, wherein each spatial uncertainty distribution provides a measure of a likelihood of a position of the agent at a given time, and
the collision assessment step comprises computing a collision probability for the agent by evaluating an overlap between a predicted occupied region of the agent at a given timestep and the generated spatial uncertainty distribution of each further agent at the given timestep.

### Claim 25 (depends on 24)

The method of claim 24 additionally comprising providing the collision assessment probabilities and generated trajectories to a further neural network configured to generate trajectories for the agents of the scenario.

### Claim 26 (depends on 1)

The method of claim 1, wherein a neural network is trained for generating the at least one trajectory, the network comprising a set of network parameters, the method for training the neural network comprising:
receiving a set of training data comprising a set of training inputs, each input comprising an observed state of an agent and an indication of a road layout, and a set of corresponding ground truth outputs, each ground truth output comprising an actual trajectory taken by the agent from the observed state;
generating a set of multiple trajectory basis elements from the observed state of the agent based on the road layout;
processing the training inputs in the neural network to generate a set of weights, each weight corresponding to one of the trajectory basis elements;
generating a trajectory for the agent by weighting each trajectory basis element by its corresponding weights and combining the weighted trajectory basis elements; and
computing an update to the parameters of the network based on a loss function that penalises deviations between the generated trajectory and the corresponding ground truth output for the agent.

### Claim 27 (depends on 26)

The method of claim 26, wherein the training data comprises historical trajectories taken by agents in past scenarios, and wherein the trajectories are generated in training from a past observed state and/or the training data comprises a planned agent trajectory generated by a reference planner, the reference planner also having planned from the observed state.

### Claim 28

(canceled)

### Claim 29 (depends on 26)

The method of claim 26, wherein:
a trajectory is generated for each of a predefined number of modes, and wherein the loss function penalises deviations between the ground truth and the generated trajectory which is most similar to the ground truth only; or
the network is configured to generate a spatial uncertainty distribution associated with the generated trajectory, and wherein the loss function encourages spatial uncertainty distributions that assign a high likelihood to the ground truth trajectory.

### Claim 30

(canceled)

### Claim 31 (depends on 29)

The method of claim 29, wherein the network is further configured to generate a mode prediction indicating a probability that each mode is an optimal mode, and wherein the loss function encourages a high probability for the mode whose trajectory is most similar to the ground truth trajectory and a low probability for mode(s) whose trajectories are less similar to the ground truth trajectory.

### Claim 32 (depends on 1)

The method of claim 1, comprising generating at least one further trajectory basis element wherein the basis element is not based on the map data.

### Claim 33

A computer system comprising:
at least one memory configured to store computer-readable instructions;
at least one hardware processor coupled to the at least one memory and configured to execute the computer-readable instructions, which upon execution cause the at least one hardware processor to implement a method of generating at least one trajectory in a scenario comprising an agent navigating a mapped area, the method comprising:
receiving an observed state of the agent and map data of the mapped area;
generating a set of multiple trajectory basis elements from the observed state of the agent based on the map data;
processing one or more scenario inputs in a neural network to generate a set of weights, each weight corresponding to one of the trajectory basis elements; and
generating a trajectory for the agent by weighting each trajectory basis element by its corresponding weights and combining the weighted trajectory basis elements.

### Claim 34

A non-transitory medium embodying computer-readable instructions configured, when executed on one or more hardware processors, to implement a method of generating at least one trajectory in a scenario comprising an agent navigating a mapped area, the method comprising:
receiving an observed state of the agent and map data of the mapped area;
generating a set of multiple trajectory basis elements from the observed state of the agent based on the map data;
processing one or more scenario inputs in a neural network to generate a set of weights, each weight corresponding to one of the trajectory basis elements; and
generating a trajectory for the agent by weighting each trajectory basis element by its corresponding weights and combining the weighted trajectory basis elements.
