# US 2024/0005066 A1 · Decoupled prediction evaluation

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

- Number: US 2024/0005066 A1
- Document ID: US20240005066A1
- Status: Published application
- Kind: A1
- Application number: 17/855,204
- Filed: 2022-06-30
- Published: 2024-01-04
- Earliest claimed: 2022-06-30
- Assignees: Baidu USA LLC
- Applicants: Baidu USA LLC
- Inventors: Shu JIANG; Szu Hao WU; Yu CAO; Weiman LIN; Jiangtao HU
- Web page: https://patentgrep.com/patent/US20240005066A1

## CPC

- G06F 30/27: using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A trajectory of an obstacle is predicted by a prediction module of the ADV. A trajectory of the ADV is determined based on the trajectory of the obstacle by a planning module of the ADV. A loss function of an analysis model of the prediction module is decomposed to multiple components with multiple weightings to generate a weighted loss function based on the trajectory of the ADV. A performance of the prediction module is evaluated based on the weighted loss function to improve the performance of the prediction module to increase a safety and comfort of the ADV.

## Claims

### Claim 1

A computer-implemented method of operating an autonomous driving vehicle (ADV), the method comprising:
predicting a trajectory of an obstacle by a prediction module of the ADV;
planning a trajectory of the ADV based on the trajectory of the obstacle by a planning module of the ADV;
decomposing a loss function of an analysis model of the prediction module into multiple components with multiple weightings to generate a weighted loss function based on the trajectory of the ADV; and
evaluating a performance of the prediction module based on the weighted loss function to improve the performance of the prediction module to increase a safety and comfort of the ADV.

### Claim 2 (depends on 1)

The method of claim 1, wherein the loss function includes a mean waypoint distance error, and wherein the decomposing the loss function of the analysis model of the prediction module into the multiple components with the multiple weightings comprises
decomposing the mean waypoint distance error into a first mean waypoint distance error perpendicular to a lane with a first weighting and a second mean waypoint distance error along the lane with a second weighting, wherein the first weighting is larger than the second weighting.

### Claim 3 (depends on 1)

The method of claim 1, wherein the loss function includes a final point distance error, and wherein the decomposing the loss function of the analysis model of the prediction module into the multiple components with the multiple weightings comprises
decomposing the final point distance error into a first final point distance error perpendicular to a lane with a first weighting and a second final point distance error along the lane with a second weighting, wherein the first weighting is larger than the second weighting.

### Claim 4 (depends on 1)

The method of claim 1, wherein the loss function includes a location error, and wherein the decomposing the loss function of the analysis model of the prediction module into the multiple components with the multiple weightings comprises
decomposing the location error into a speed error with a first weighting and a heading error with a second weighting, wherein the first weighting is larger than the second weighting.

### Claim 5 (depends on 1)

The method of claim 1, further comprising
determining each weighing of the multiple weightings based on an impact of a weighting to the trajectory of the ADV.

### Claim 6 (depends on 1)

The method of claim 1, further comprising
determining each weighing of the multiple weightings based on a performance of the planning module based on the trajectory of the ADV.

### Claim 7 (depends on 1)

The method of claim 1, wherein the loss function includes a plurality of losses corresponding to a plurality of driving scenarios, each loss corresponding to a driving scenario.

### Claim 8 (depends on 7)

The method of claim 7, further comprising
determining a driving scenario from the plurality of driving scenarios;
determining a corresponding loss from the plurality of losses in response to the driving scenario.

### Claim 9

A non-transitory machine-readable medium having instructions stored therein, which when executed by a processor, cause the processor to:
predict a trajectory of an obstacle by a prediction module of an autonomous driving vehicle (ADV);
plan a trajectory of the ADV based on the trajectory of the obstacle by a planning module of the ADV;
decompose a loss function of an analysis model of the prediction module into multiple components with multiple weightings to generate a weighted loss function based on the trajectory of the ADV; and
evaluate a performance of the prediction module based on the weighted loss function to improve the performance of the prediction module to increase a safety and comfort of the ADV.

### Claim 10 (depends on 9)

The non-transitory machine-readable medium of claim 9, wherein the loss function includes a mean waypoint distance error, and wherein the processor is further to
decompose the mean waypoint distance error into a first mean waypoint distance error perpendicular to a lane with a first weighting and a second mean waypoint distance error along the lane with a second weighting, wherein the first weighting is larger than the second weighting.

### Claim 11 (depends on 9)

The non-transitory machine-readable medium of claim 9, wherein the loss function includes a final point distance error, and wherein the processor is further to
decompose the final point distance error into a first final point distance error perpendicular to a lane with a first weighting and a second final point distance error along the lane with a second weighting, wherein the first weighting is larger than the second weighting.

### Claim 12 (depends on 9)

The non-transitory machine-readable medium of claim 9, wherein the loss function includes a location error, and wherein the processor is further to
decompose the location error into a speed error with a first weighting and a heading error with a second weighting, wherein the first weighting is larger than the second weighting.

### Claim 13 (depends on 9)

The non-transitory machine-readable medium of claim 9, wherein the processor is further to
determine each weighing of the multiple weightings based on an impact of a weighting to the trajectory of the ADV.

### Claim 14 (depends on 9)

The non-transitory machine-readable medium of claim 9, wherein the processor is further to
determine each weighing of the multiple weightings based on a performance of the planning module based on the trajectory of the ADV.

### Claim 15 (depends on 9)

The non-transitory machine-readable medium of claim 9, wherein the loss function includes a plurality of losses corresponding to a plurality of driving scenarios, each loss corresponding to a driving scenario.

### Claim 16 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the processor is further to
determine a driving scenario from the plurality of driving scenarios;
determine a corresponding loss from the plurality of losses in response to the driving scenario.

### Claim 17

A data processing system, comprising:
a processor; and
a memory coupled to the processor to store instructions, which when executed by the processor, cause the processor to:
predict a trajectory of an obstacle by a prediction module of an autonomous driving vehicle (ADV);
plan a trajectory of the ADV based on the trajectory of the obstacle by a planning module of the ADV;
decompose a loss function of an analysis model of the prediction module into multiple components with multiple weightings to generate a weighted loss function based on the trajectory of the ADV; and
evaluate a performance of the prediction module based on the weighted loss function to improve the performance of the prediction module to increase a safety and comfort of the ADV.

### Claim 18 (depends on 17)

The data processing system of claim 17, wherein the loss function includes a mean waypoint distance error, and wherein the processor is further to
decompose the mean waypoint distance error into a first mean waypoint distance error perpendicular to a lane with a first weighting and a second mean waypoint distance error along the lane with a second weighting, wherein the first weighting is larger than the second weighting.

### Claim 19 (depends on 17)

The data processing system of claim 17, wherein the loss function includes a final point distance error, and wherein the processor is further to
decompose the final point distance error into a first final point distance error perpendicular to a lane with a first weighting and a second final point distance error along the lane with a second weighting, wherein the first weighting is larger than the second weighting.

### Claim 20 (depends on 17)

The data processing system of claim 17, wherein the loss function includes a location error, and wherein the processor is further to
decompose the location error into a speed error with a first weighting and a heading error with a second weighting, wherein the first weighting is larger than the second weighting.
