A Bayesian Filtering Approach for Learning Lagrangian Dynamics from Noisy Measurements

Kundan Kumar, Shreya Das, Simo SärkkäarXiv 2026

TL;DR

Real-world physical systems are rarely observed perfectly, yet standard Lagrangian Neural Networks (LNNs) require clean, full-state measurements to learn system dynamics. This paper introduces a novel framework that embeds LNNs within a stochastic state-space model, using Gaussian-approximated Bayesian filters to jointly estimate hidden states and learn system dynamics from noisy, partial observations. By treating unmodeled external forces as white noise, the method avoids the need for error-prone numerical differentiation and matches the performance of filters running on perfectly known models.

What Problem Does This Paper Address?

Physics-Informed Neural Networks (PINNs), and specifically Lagrangian Neural Networks (LNNs), have emerged as powerful tools for learning the dynamics of physical systems by embedding fundamental laws like energy conservation directly into neural network architectures.

However, traditional LNNs suffer from a major practical limitation: they assume full access to clean system states, including both generalized coordinates (positions) and generalized velocities. In real-world engineering applications—such as robotics, navigation, or tracking—sensors are noisy and often only capture partial data (e.g., measuring position but not velocity).

To bypass this, researchers typically resort to numerical differentiation to approximate velocities from noisy position data. Unfortunately, differentiation amplifies measurement noise, causing traditional LNNs to perform poorly or fail entirely. This paper tackles the challenge of learning accurate Lagrangian dynamics directly from noisy, incomplete data streams.

Methods

The authors bridge the gap between classical mechanics and state estimation by framing the learning task as a standard Bayesian filtering problem.

  1. Energy Parameterization: The kinetic ($T$) and potential ($V$) energies of the system are parameterized using fully connected neural networks, forming an approximate Lagrangian ($L = T - V$).
  2. Stochastic Formulation: Instead of assuming a perfectly isolated system, the authors model unknown external forces and disturbances as continuous-time white Gaussian noise.
  3. State-Space Modeling: By plugging the neural-network-backed Lagrangian into the Euler-Lagrange equations, they derive a continuous-time stochastic State-Space Model (SSM). This model is then discretized using the Euler-Maruyama method.
  4. Bayesian Filtering & Optimization: To handle partial and noisy observations, the framework employs Gaussian-approximated Bayesian filters—specifically the Extended Kalman Filter (EKF) and the Cubature Kalman Filter (CKF). The filter estimates the hidden states (like velocity) while an optimizer (such as Adam) updates the neural network parameters by minimizing the negative log-likelihood of the observed data.
Fig. 1: Schematic diagram of the proposed method. The kinetic energy (T) and potential energy (V ) of the Lagrangian (L) are parameterized using neural networks (NNs). The Euler– Lagrange equation with stochastic input is rewritten as a state- space model. The state and the neural network parameters are jointly estimated with an approximate Bayesian filter.

Datasets

The proposed method was evaluated using simulated data from two classic non-linear dynamical systems:

  • Simple Pendulum: A fundamental chaotic baseline where states represent angular position and velocity.
  • Duffing Oscillator: A non-linear simulation exhibiting complex structural dynamics.

For both systems, the training data consisted of partial, noisy measurements where only the position coordinates ($q$) were observed, corrupted by added Gaussian noise ($\nu_k \sim \mathcal{N}(0, 0.01)$). The datasets were split into 70% for training/parameter estimation and 30% for testing.

Key Insights and Ideas

  • The Stochastic Bridge: Turning the deterministic Euler-Lagrange equation into a stochastic state-space model provides an elegant mathematical bridge between deep learning, classical mechanics, and control theory.
  • Bypassing the Differentiation Trap: Instead of calculating velocity explicitly through noisy differences, the Bayesian filter treats velocity as a latent variable. The filter infers the velocity optimally based on the current neural network physics model and incoming position measurements.
  • Joint State-Parameter Estimation: Training the neural network on top of the filter's marginal likelihood ensures that the network explicitly learns to account for sensor noise and missing data during the training phase itself.

Key Results

The authors compared their proposed physics-learned filters (PrEKF and PrCKF) against traditional LNNs and "gold-standard" traditional filters that operate with perfect, prior knowledge of the true system equations (TrEKF and TrCKF).

  • Under Noisy Measurements: As shown in Table I, traditional LNNs failed dramatically due to noise amplification from numerical differentiation (yielding a massive velocity RMSE of 7.06 on the pendulum). In contrast, the proposed PrEKF and PrCKF methods achieved low Root Mean Squared Errors (RMSE) that closely matched the performance of the traditional filters using the known exact models.
TABLE I: RMSE values of different methods under noisy measurements for the simple pendulum and Duffing oscillator.
  • Under Noise-Free Measurements: In clean data scenarios (Table II), traditional LNNs performed exceptionally well (as expected), but the proposed filtering framework remained highly competitive and robust.
TABLE II: RMSE values of different methods for the simple pendulum and Duffing oscillator under noise-free yk.

Limitations and Future Work

While the results are promising, the authors note a few areas for improvement:

  • Low-Dimensional Evaluation: The framework was only validated on relatively simple, low-dimensional systems (1D coordinates). Testing its scalability on high-dimensional, multi-degree-of-freedom robotic systems remains an open task.
  • Discretization Errors: The paper relies on the basic Euler-Maruyama method for discretizing continuous-time dynamics. Implementing more sophisticated, higher-order integration schemes could significantly improve tracking and learning accuracy in highly non-linear regimes.

Summary updated

BibTeX
@misc{kumar2026bayesian,
  author = {Kundan Kumar and Shreya Das and Simo Särkkä},
  title = {{A Bayesian Filtering Approach for Learning Lagrangian Dynamics from Noisy Measurements}},
  year = {2026},
  eprint = {2606.31137},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.31137},
}
Figure