Learning partially observed systems with neural Hamiltonian ordinary differential equations

Sunniva Meltzer, Sølve Eidnes, Alexander Johannes Stasik
5/22/2026
cs.LG

No confident code implementation found for this paper.

Abstract

When learning dynamical systems from data, embedding physical structure can constrain the solution space and improve generalization, but many physics-informed models assume access to the full system state. This limits their use in partially observed settings, where some state variables are completely unobserved and must be inferred without direct supervision.

Show full abstract

Here, we present neural Hamiltonian ordinary differential equations (NHODE), a framework that combines Hamiltonian neural networks (HNNs) with neural ordinary differential equations (neural ODEs) to learn partially observed dynamical systems from data. The Hamiltonian structure enforces energy conservation by construction, while the neural ODE framework enables a flexible training procedure that allows the loss to be defined only on observed variables. We also incorporate additional physical constraints through symmetry-aware coordinate transformations and separable energy formulations. The framework is evaluated on systems of increasing complexity, from linear and nonlinear mass-spring systems to the chaotic three-body problem. Across all examples, increasing the amount of embedded physical structure improves the accuracy and long-horizon stability of the predictions. Even in the most challenging regimes, the NHODE framework captures both observed and latent dynamics, whereas purely data-driven baselines become unstable.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{meltzer2026learning,
  title  = {Learning partially observed systems with neural Hamiltonian ordinary differential equations},
  author = {Sunniva Meltzer and Sølve Eidnes and Alexander Johannes Stasik},
  year   = {2026},
  eprint = {2605.23510},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.23510v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.23510.svg)](https://codeofpaper.com/paper/2605.23510)

Discussion