Injecting Knowledge in Data-driven Vehicle Trajectory Predictors

Mohammadhossein Bahari, Ismail Nejjar, Alexandre AlahiTransportation 2021 · DOI

Abstract

Vehicle trajectory prediction tasks have been commonly tackled from two distinct perspectives: either with knowledge-driven methods or more recently with data-driven ones. On the one hand, we can explicitly implement domain-knowledge or physical priors such as anticipating that vehicles will follow the middle of the roads. While this perspective leads to feasible outputs, it has limited performance due to the difficulty to hand-craft complex interactions in urban environments. On the other hand, recent works use data-driven approaches which can learn complex interactions from the data leading to superior performance. However, generalization, i.e., having accurate predictions on unseen data, is an issue leading to unrealistic outputs. In this paper, we propose to learn a "Realistic Residual Block" (RRB), which effectively connects these two perspectives. Our RRB takes any off-the-shelf knowledge-driven model and finds the required residuals to add to the knowledge-aware trajectory. Our proposed method outputs realistic predictions by confining the residual range and taking into account its uncertainty. We also constrain our output with Model Predictive Control (MPC) to satisfy kinematic constraints. Using a publicly available dataset, we show that our method outperforms previous works in terms of accuracy and generalization to new scenes.

Introduction

Predicting vehicle trajectories in complex urban environments like roundabouts and intersections is a critical challenge for autonomous driving. Historically, this has been approached in two ways. Knowledge-driven (KD) models rely on physical priors—for instance, the assumption that vehicles generally follow lane centers. While these models are safe and interpretable, they often fail to capture the nuances of social interactions, such as yielding or merging.

Conversely, data-driven (DD) models, typically based on deep neural networks, excel at learning these complex social behaviors from large datasets. However, they are prone to producing unrealistic trajectories (e.g., driving off-road) when encountering environments not seen during training. This paper introduces the Realistic Residual Block (RRB) to bridge these two paradigms, combining the reliability of physical priors with the flexibility of neural networks.

Illustration of the RRB model improving a conservative knowledge-based trajectory (yellow) with data-driven residuals (purple) while staying within a physically constrained space (blue).

Methodology: The Realistic Residual Block

The RRB framework does not predict trajectories from scratch. Instead, it treats the prediction task as a refinement of a knowledge-aware baseline.

  1. Knowledge-Aware Baseline: An off-the-shelf KD model provides an initial "coarse" trajectory based on road geometry.
  2. Residual Estimation: A neural network estimates "fine-grained" residuals—deviations from the baseline caused by interactions with other agents.
  3. Inverse-Variance Weighting (IVW): The model merges the KD baseline and the DD residual based on their respective uncertainties. If the network is uncertain about a social interaction, the system defaults to the safer KD baseline.
  4. Residual Confinement and MPC: Predicted residuals are physically bounded to keep the vehicle near the road center. Finally, a Model Predictive Control (MPC) layer ensures the trajectory adheres to kinematic constraints (the "bicycle model"), eliminating physically impossible movements.

Experimental Results

The researchers evaluated RRB using the Interaction dataset, focusing on two scenarios: "Scene-Overfitting" (known environments) and "Scene-Generalization" (unseen environments).

The results demonstrate that RRB significantly improves generalization. While pure data-driven models like S-LSTM and S-GAN frequently produced off-road trajectories in new scenes (with road violation rates of 72% and 52% respectively), the RRB models achieved 0% road violations (RV). Furthermore, the combined RRB_M+MPC model achieved the lowest Average and Final Displacement Errors (ADE/FDE) across the board.

Quantitative results in the scene-generalization scenario. RRB models show significantly lower error and zero road violations compared to data-driven baselines.

Conclusion

By reframing trajectory prediction as a "social correction" to physical rules, the Realistic Residual Block provides a robust framework for autonomous navigation. It maintains safety through physical priors while gaining the predictive accuracy of deep learning. Future work aims to extend this approach to unconstrained agents like pedestrians and to more diverse multi-agent environments.

Summary updated

BibTeX
@inproceedings{bahari2021injecting,
  author = {Mohammadhossein Bahari and Ismail Nejjar and Alexandre Alahi},
  title = {{Injecting Knowledge in Data-driven Vehicle Trajectory Predictors}},
  booktitle = {Transportation},
  year = {2021},
  doi = {10.1016/j.trc.2021.103010},
}
Figure