Plug-and-Play Physics-informed Learning using Uncertainty Quantified Port-Hamiltonian Models
Kaiyuan Tan, Peilun Li, Jun Wang, Thomas Beckers
TL;DR
This work tackles reliable trajectory prediction under unknown obstacle dynamics and distributional shift by combining conformal prediction with a plug-and-play physics-informed learning framework. When OOD dynamics are detected, a Gaussian-process distributed Port-Hamiltonian system (GP-dPHS) is activated to learn a physically consistent Hamiltonian and quantify predictive uncertainty, ensuring physics-compliant predictions. The approach is demonstrated on an oscillating spring, showing that CP effectively flags OOD cases and GP-dPHS outperforms purely data-driven baselines and retraining under limited observations. The proposed method offers a general, data-efficient way to inject physical priors into learning pipelines and provide reliable, uncertainty-aware predictions in robotic settings.
Abstract
The ability to predict trajectories of surrounding agents and obstacles is a crucial component in many robotic applications. Data-driven approaches are commonly adopted for state prediction in scenarios where the underlying dynamics are unknown. However, the performance, reliability, and uncertainty of data-driven predictors become compromised when encountering out-of-distribution observations relative to the training data. In this paper, we introduce a Plug-and-Play Physics-Informed Machine Learning (PnP-PIML) framework to address this challenge. Our method employs conformal prediction to identify outlier dynamics and, in that case, switches from a nominal predictor to a physics-consistent model, namely distributed Port-Hamiltonian systems (dPHS). We leverage Gaussian processes to model the energy function of the dPHS, enabling not only the learning of system dynamics but also the quantification of predictive uncertainty through its Bayesian nature. In this way, the proposed framework produces reliable physics-informed predictions even for the out-of-distribution scenarios.
