ac-vrnn-trajectory-prediction-eval
AC-VRNN: Attentive Conditional-VRNN for Multi-Future Trajectory Prediction — Bertuglia et al. (2020) (arXiv:2005.08307, 2020)
What this evaluates
Evaluates a model's ability to predict multi-modal future trajectories of agents given historical positions. It probes the model's capacity to capture social interactions, scene constraints, and long-term motion dynamics across diverse environments.
Datasets
- ETH — total ?; splits: train (-1), test (-1)
- UCY — total ?; splits: train (-1), test (-1)
- Stanford Drone Dataset (SDD) — total ?; splits: train (-1), val (-1), test (-1)
- STATS SportVU NBA — total ?; splits: train (-1), test (-1)
- Intersection Drone Dataset (inD) — total ?; splits: train (-1), val (-1), test (-1)
- TrajNet++ — total ?; splits: train (-1), test (-1)
Metrics
TopK ADE (primary) — range: meters or feet
- Average Euclidean distance over all predicted points and ground-truth positions. Computed on the single best-of-N sampled trajectory (lowest error).
TopK FDE (primary) — range: meters or feet
- Euclidean distance between the predicted and ground-truth final destination. Computed on the single best-of-N sampled trajectory.
Avg NLL — range: other
- Average negative log-likelihood of ground-truth trajectories over the prediction horizon, evaluated using a probability distribution fitted to the N predicted samples.
TopK Col-I — range: percent
- Percentage of predicted trajectories that collide with neighbors' predicted trajectories within a fixed radius. Evaluated on the best-of-N sample.
TopK Col-II — range: percent
- Percentage of predicted trajectories that collide with neighbors' ground-truth trajectories within a fixed radius. Evaluated on the best-of-N sample.
Input / output format
Input: Historical trajectory sequences of the target agent and surrounding agents, represented as (x, y, [z]) coordinates over t_obs time steps. Context includes neighboring agents' positions and scene topology.
Output: N sampled future trajectory sequences for the target agent over t_pred time steps, each represented as a sequence of (x, y, [z]) coordinates.
Scoring recipe
def compute_topk_metrics(predictions, gold, k=1):
# predictions: list of N trajectories, each (t_pred, 2/3)
# gold: ground truth trajectory (t_pred, 2/3)
errors = []
for traj in predictions:
ade = np.mean(np.linalg.norm(traj - gold, axis=1))
fde = np.linalg.norm(traj[-1] - gold[-1])
errors.append((ade, fde))
errors.sort(key=lambda x: x[0])
return errors[0][0], errors[0][1]
def compute_collisions(pred_traj, neighbors_pred, neighbors_gold, radius):
col_i = np.any(np.linalg.norm(
pred_traj[:, None, :] - neighbors_pred[None, :, :], axis=2) < radius)
col_ii = np.any(np.linalg.norm(
pred_traj[:, None, :] - neighbors_gold[None, :, :], axis=2) < radius)
return col_i, col_ii
Common pitfalls
- Must select the best-of-N trajectory (TopK) before computing ADE/FDE, not average over all N samples.
- Observation and prediction lengths vary significantly across datasets (e.g., 8/12 frames for ETH/UCY vs 10/40 for NBA).
- Collision metrics (Col-I/Col-II) require neighbor trajectories; Col-I uses predicted neighbors while Col-II uses ground truth neighbors.
- Units differ by dataset: meters for ETH/UCY/SDD/inD, feet for NBA.
Evidence (verbatim from paper)
TopK Average Displacement Error (TopK ADE): Average Euclidean distance over all estimated points and ground-truth positions of a trajectory as proposed in Pellegrini et al. (2009): ... The above metrics are evaluated using the top-k (or best-of-N) i.e., we sample N trajectories and consider the ADE and FDE of the lowest-error trajectory.
Citation
@misc{bertuglia2020acvrnn,
title={AC-VRNN: Attentive Conditional-VRNN for Multi-Future Trajectory Prediction},
author={Bertuglia et al. (2020)},
year={2020},
note={arXiv:2005.08307}
}
1---2name: ac-vrnn-trajectory-prediction-eval3description: Evaluates a model's ability to predict multi-modal future trajectories of agents given historical positions. It probes the model's capacity to capture social interactions, scene constraints, and long-term motion dynamics across diverse environments. Use when the user wants to benchmark on ETH, UCY, Stanford Drone Dataset (SDD), STATS SportVU NBA, Intersection Drone Dataset (inD), TrajNet++, or asks about evaluating this task. Reports TopK ADE, TopK FDE.4---56# ac-vrnn-trajectory-prediction-eval78> AC-VRNN: Attentive Conditional-VRNN for Multi-Future Trajectory Prediction — Bertuglia et al. (2020) (arXiv:2005.08307, 2020)910## What this evaluates1112Evaluates a model's ability to predict multi-modal future trajectories of agents given historical positions. It probes the model's capacity to capture social interactions, scene constraints, and long-term motion dynamics across diverse environments.1314## Datasets1516- **ETH** — total ?; splits: train (-1), test (-1)17- **UCY** — total ?; splits: train (-1), test (-1)18- **Stanford Drone Dataset (SDD)** — total ?; splits: train (-1), val (-1), test (-1)19- **STATS SportVU NBA** — total ?; splits: train (-1), test (-1)20- **Intersection Drone Dataset (inD)** — total ?; splits: train (-1), val (-1), test (-1)21- **TrajNet++** — total ?; splits: train (-1), test (-1)2223## Metrics2425- `TopK ADE` **(primary)** — range: meters or feet26 - Average Euclidean distance over all predicted points and ground-truth positions. Computed on the single best-of-N sampled trajectory (lowest error).27- `TopK FDE` **(primary)** — range: meters or feet28 - Euclidean distance between the predicted and ground-truth final destination. Computed on the single best-of-N sampled trajectory.29- `Avg NLL` — range: other30 - Average negative log-likelihood of ground-truth trajectories over the prediction horizon, evaluated using a probability distribution fitted to the N predicted samples.31- `TopK Col-I` — range: percent32 - Percentage of predicted trajectories that collide with neighbors' predicted trajectories within a fixed radius. Evaluated on the best-of-N sample.33- `TopK Col-II` — range: percent34 - Percentage of predicted trajectories that collide with neighbors' ground-truth trajectories within a fixed radius. Evaluated on the best-of-N sample.3536## Input / output format3738**Input**: Historical trajectory sequences of the target agent and surrounding agents, represented as (x, y, [z]) coordinates over t_obs time steps. Context includes neighboring agents' positions and scene topology.3940**Output**: N sampled future trajectory sequences for the target agent over t_pred time steps, each represented as a sequence of (x, y, [z]) coordinates.4142## Scoring recipe4344```python45def compute_topk_metrics(predictions, gold, k=1):46 # predictions: list of N trajectories, each (t_pred, 2/3)47 # gold: ground truth trajectory (t_pred, 2/3)48 errors = []49 for traj in predictions:50 ade = np.mean(np.linalg.norm(traj - gold, axis=1))51 fde = np.linalg.norm(traj[-1] - gold[-1])52 errors.append((ade, fde))53 errors.sort(key=lambda x: x[0])54 return errors[0][0], errors[0][1]5556def compute_collisions(pred_traj, neighbors_pred, neighbors_gold, radius):57 col_i = np.any(np.linalg.norm(58 pred_traj[:, None, :] - neighbors_pred[None, :, :], axis=2) < radius)59 col_ii = np.any(np.linalg.norm(60 pred_traj[:, None, :] - neighbors_gold[None, :, :], axis=2) < radius)61 return col_i, col_ii62```6364## Common pitfalls6566- Must select the best-of-N trajectory (TopK) before computing ADE/FDE, not average over all N samples.67- Observation and prediction lengths vary significantly across datasets (e.g., 8/12 frames for ETH/UCY vs 10/40 for NBA).68- Collision metrics (Col-I/Col-II) require neighbor trajectories; Col-I uses predicted neighbors while Col-II uses ground truth neighbors.69- Units differ by dataset: meters for ETH/UCY/SDD/inD, feet for NBA.7071## Evidence (verbatim from paper)7273> TopK Average Displacement Error (TopK ADE): Average Euclidean distance over all estimated points and ground-truth positions of a trajectory as proposed in Pellegrini et al. (2009): ... The above metrics are evaluated using the top-k (or best-of-N) i.e., we sample N trajectories and consider the ADE and FDE of the lowest-error trajectory.7475## Citation7677```bibtex78@misc{bertuglia2020acvrnn,79 title={AC-VRNN: Attentive Conditional-VRNN for Multi-Future Trajectory Prediction},80 author={Bertuglia et al. (2020)},81 year={2020},82 note={arXiv:2005.08307}83}84```8586- arXiv: 2005.08307