Learning mechanical systems from real-world data using discrete forced Lagrangian dynamics
Martine Dyring Hansen, Elena Celledoni, Benjamin Kwanen Tapley
TL;DR
The paper introduces a data-driven, structure-preserving approach to learn mechanical dynamics from position data alone by leveraging the discrete forced Lagrange-d'Alembert principle. It jointly learns a conservative Lagrangian $L_ heta$ and a non-conservative force $F_ heta$ with regularization to ensure a regular, non-degenerate Lagrangian, enabling accurate long-horizon rollouts and interpretable separation of dynamics. The method is validated on synthetic tasks (damped double pendulum, dissipative charged particle) and real-world data, including autoencoder latent dynamics from pixel sequences and human motion capture, demonstrating robust predictive performance and the ability to extrapolate to conservative regimes. This work advances physics-informed learning by combining variational structure preservation with data-driven force modeling, making it applicable to real-world sensing scenarios such as motion capture and image-based tracking while enabling insights into the split between conservative and dissipative effects.
Abstract
We introduce a data-driven method for learning the equations of motion of mechanical systems directly from position measurements, without requiring access to velocity data. This is particularly relevant in system identification tasks where only positional information is available, such as motion capture, pixel data or low-resolution tracking. Our approach takes advantage of the discrete Lagrange-d'Alembert principle and the forced discrete Euler-Lagrange equations to construct a physically grounded model of the system's dynamics. We decompose the dynamics into conservative and non-conservative components, which are learned separately using feed-forward neural networks. In the absence of external forces, our method reduces to a variational discretization of the action principle naturally preserving the symplectic structure of the underlying Hamiltonian system. We validate our approach on a variety of synthetic and real-world datasets, demonstrating its effectiveness compared to baseline methods. In particular, we apply our model to (1) measured human motion data and (2) latent embeddings obtained via an autoencoder trained on image sequences. We demonstrate that we can faithfully reconstruct and separate both the conservative and forced dynamics, yielding interpretable and physically consistent predictions.
