Physics Constrained Motion Prediction with Uncertainty Quantification

Renukanandan Tumu, Lars Lindemann, Truong Nghiem, Rahul MangharamarXiv 2023 · DOI

TL;DR

Physics Constrained Motion Prediction (PCMP) combines deep learning with classical dynamics to ensure autonomous vehicles only predict physically possible futures. By predicting control inputs (like steering and acceleration) rather than raw coordinates and using Conformal Prediction for rigorous uncertainty bounds, PCMP significantly outperforms standard LSTM baselines, especially in high-speed racing scenarios.

What Problem Does This Paper Address?

Predicting where other agents will move is vital for the safety of autonomous systems. However, modern deep learning models often treat motion prediction as a pure sequence-to-sequence problem. This leads to two major issues:

  1. Physical Infeasibility: Models might predict a car "sliding" sideways or accelerating beyond its physical limits because they lack an inherent understanding of vehicle dynamics.
  2. Unreliable Uncertainty: Most models provide a single "best guess" or a poorly calibrated probability distribution, making it hard for a downstream planner to know how much to trust the prediction.

The authors aim to bridge the gap between data-driven "pattern-based" approaches (which are robust to noise) and "physics-based" approaches (which guarantee feasibility but can be brittle).

Methods

The authors introduce Physics Constrained Motion Prediction (PCMP), a two-step framework:

  1. Intent Prediction: An LSTM processes past observations and environmental context to predict a sequence of control inputs ($\hat{u}$), such as steering angle and acceleration. Crucially, these outputs are passed through a $tanh$ activation function scaled to the vehicle's actual physical limits.
  2. Trajectory Prediction: These predicted controls are fed into a surrogate dynamics model (a kinematic bicycle model). The system then integrates these ODEs (using methods like RK4) to generate the final trajectory.
Fig. 2. This figure shows the PCMP prediction and training algorithm. The inputs (A), are fed into the LSTM, with the context vector C concatenated to each position. The hidden state of the LSTM is processed through an MLP and scaled based on control input constraints to generate control inputs (B). These control inputs are then passed into the dynamics integration step, which solves the ODEs of the dynamics equations with our control inputs and the last known position of the vehicle for the prediction horizon. At training time, these predicted positions are then used to calculate a loss with the training data (C). This loss is backpropagated (D) through the Trajectory Prediction steps and used to train the Intent Prediction networks.

To handle uncertainty, the authors use Conformal Prediction. Unlike standard methods, this provides a mathematical guarantee that the true trajectory will fall within a predicted region with a user-defined probability (e.g., 95%). They propose two new region shapes tailored for driving:

  • Rotated Rectangle Region: Aligns the uncertainty box with the vehicle's heading.
  • Frenet Region: Curves the uncertainty region along the shape of the road or track.

Datasets

The researchers evaluated PCMP using the F1Tenth Gym, a high-fidelity simulator for autonomous racing.

  • Track: The Spielberg (Red Bull Ring) race track.
  • Data: Trajectories generated using different controllers (Stanley, Pure Pursuit) following various lines, including centerline offsets and a globally optimized "race line."
  • Noise: Synthetic Gaussian noise was added to positions and velocities to simulate real-world sensor inaccuracies.

Key Insights and Ideas

  • Physics as a Regularizer: Even when the LSTM has a lower training loss, PCMP achieves much better test accuracy. The dynamics equations act as a constraint that prevents the model from overfitting to noise or "impossible" patterns in the training data.
  • Predicting Controls vs. States: By forcing the model to output acceleration and steering, the "intent" becomes interpretable. You can literally see if the model thinks the agent is trying to brake or turn hard.
  • Robustness to Parameter Error: Surprisingly, the authors found that underestimating a vehicle's wheelbase (making it seem more maneuverable than it is) can actually improve stability and accuracy during training, whereas overestimating it leads to numerical instability.
  • Out-of-Distribution (OOD) Success: PCMP handles new driving behaviors (like switching from conservative center-line following to aggressive racing) much better than standard LSTMs, which tend to fail when the agent's behavior shifts.
Qualitative comparison showing the LSTM predicting an impossible "slide" while PCMP follows a feasible arc.

Key Results

PCMP demonstrated substantial improvements over a standard LSTM baseline:

  • 41% improvement in Average Displacement Error (ADE).
  • 56% improvement in Final Displacement Error (FDE).
  • 19% increase in Intersection over Union (IoU), which accounts for the vehicle's heading and physical footprint.
  • Reliable Coverage: The Conformal Prediction regions successfully contained the true trajectory ~95% of the time on the test set, meeting the theoretical statistical guarantees.

Limitations and Future Work

  • High Noise Sensitivity: While robust to moderate noise, PCMP struggled on the Argoverse dataset, where high noise and a lack of explicit heading/velocity data made it difficult for the physics-based decoder to outperform pure ML models.
  • Model Selection: The current work relies on a kinematic bicycle model. While effective for cars, different agents (like pedestrians or drones) would require different surrogate models.
  • Online Learning: The authors suggest that because PCMP trains quickly and generalizes well, it could eventually be adapted for online learning, where the model updates its understanding of an agent's dynamics in real-time as it observes them on the road.

Summary updated

BibTeX
@misc{tumu2023physics,
  author = {Renukanandan Tumu and Lars Lindemann and Truong Nghiem and Rahul Mangharam},
  title = {{Physics Constrained Motion Prediction with Uncertainty Quantification}},
  year = {2023},
  eprint = {2302.01060},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.01060},
}
Figure