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.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/ac-vrnn-trajectory-prediction-eval6 skill_kind: dataset_eval7 source_arxiv: 2005.083078 bibtex_key: bertuglia2020acvrnn9 confidence: high10---1112# ac-vrnn-trajectory-prediction-eval1314> AC-VRNN: Attentive Conditional-VRNN for Multi-Future Trajectory Prediction — Bertuglia et al. (2020) (arXiv:2005.08307, 2020)1516## What this evaluates1718Evaluates 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.1920## Datasets2122- **ETH** — total ?; splits: train (-1), test (-1)23- **UCY** — total ?; splits: train (-1), test (-1)24- **Stanford Drone Dataset (SDD)** — total ?; splits: train (-1), val (-1), test (-1)25- **STATS SportVU NBA** — total ?; splits: train (-1), test (-1)26- **Intersection Drone Dataset (inD)** — total ?; splits: train (-1), val (-1), test (-1)27- **TrajNet++** — total ?; splits: train (-1), test (-1)2829## Metrics3031- `TopK ADE` **(primary)** — range: meters or feet32 - Average Euclidean distance over all predicted points and ground-truth positions. Computed on the single best-of-N sampled trajectory (lowest error).33- `TopK FDE` **(primary)** — range: meters or feet34 - Euclidean distance between the predicted and ground-truth final destination. Computed on the single best-of-N sampled trajectory.35- `Avg NLL` — range: other36 - Average negative log-likelihood of ground-truth trajectories over the prediction horizon, evaluated using a probability distribution fitted to the N predicted samples.37- `TopK Col-I` — range: percent38 - Percentage of predicted trajectories that collide with neighbors' predicted trajectories within a fixed radius. Evaluated on the best-of-N sample.39- `TopK Col-II` — range: percent40 - Percentage of predicted trajectories that collide with neighbors' ground-truth trajectories within a fixed radius. Evaluated on the best-of-N sample.4142## Input / output format4344**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.4546**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.4748## Scoring recipe4950```python51def compute_topk_metrics(predictions, gold, k=1):52 # predictions: list of N trajectories, each (t_pred, 2/3)53 # gold: ground truth trajectory (t_pred, 2/3)54 errors = []55 for traj in predictions:56 ade = np.mean(np.linalg.norm(traj - gold, axis=1))57 fde = np.linalg.norm(traj[-1] - gold[-1])58 errors.append((ade, fde))59 errors.sort(key=lambda x: x[0])60 return errors[0][0], errors[0][1]6162def compute_collisions(pred_traj, neighbors_pred, neighbors_gold, radius):63 col_i = np.any(np.linalg.norm(64 pred_traj[:, None, :] - neighbors_pred[None, :, :], axis=2) < radius)65 col_ii = np.any(np.linalg.norm(66 pred_traj[:, None, :] - neighbors_gold[None, :, :], axis=2) < radius)67 return col_i, col_ii68```6970## Common pitfalls7172- Must select the best-of-N trajectory (TopK) before computing ADE/FDE, not average over all N samples.73- Observation and prediction lengths vary significantly across datasets (e.g., 8/12 frames for ETH/UCY vs 10/40 for NBA).74- Collision metrics (Col-I/Col-II) require neighbor trajectories; Col-I uses predicted neighbors while Col-II uses ground truth neighbors.75- Units differ by dataset: meters for ETH/UCY/SDD/inD, feet for NBA.7677## Evidence (verbatim from paper)7879> 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.8081## Citation8283```bibtex84@misc{bertuglia2020acvrnn,85 title={AC-VRNN: Attentive Conditional-VRNN for Multi-Future Trajectory Prediction},86 author={Bertuglia et al. (2020)},87 year={2020},88 note={arXiv:2005.08307}89}90```9192- arXiv: 2005.08307