# Pseudo-Hamiltonian Neural Networks with State-Dependent External Forces

arXiv: https://arxiv.org/abs/2206.02660 · HTML: https://mlsanity.com/paper/2206.02660/

## Key facts

- Cited by 18 papers in the map (data through 14 Oct 2026).
- Builds on 19 of its 40 references that are in the map.
- First posted on arXiv 6 Jun 2022.

## Builds on (most cited first, 19 of 19)

- [Adam: A Method for Stochastic Optimization](https://mlsanity.com/paper/1412.6980/) (2014)
- [Hamiltonian Neural Networks](https://mlsanity.com/paper/1906.01563/) (2019)
- [Symplectic ODE-Net: Learning Hamiltonian Dynamics with Control](https://mlsanity.com/paper/1909.12077/) (2019)
- [Symplectic Recurrent Neural Networks](https://mlsanity.com/paper/1909.13334/) (2019)
- [Simplifying Hamiltonian and Lagrangian Neural Networks via Explicit Constraints](https://mlsanity.com/paper/2010.13581/) (2020)
- [Dissipative SymODEN: Encoding Hamiltonian Dynamics with Dissipation and Control into Deep Learning](https://mlsanity.com/paper/2002.08860/) (2020)
- [Port-Hamiltonian Neural Networks for Learning Explicit Time-Dependent Dynamical Systems](https://mlsanity.com/paper/2107.08024/) (2021)
- [GFINNs: GENERIC Formalism Informed Neural Networks for Deterministic and Stochastic Dynamical Systems](https://mlsanity.com/paper/2109.00092/) (2021)
- [Learning Poisson systems and trajectories of autonomous systems via Poisson neural networks](https://mlsanity.com/paper/2012.03133/) (2020)
- [Hamiltonian-based Neural ODE Networks on the SE(3) Manifold For Dynamics Learning and Control](https://mlsanity.com/paper/2106.12782/) (2021)
- [Symplectic Learning for Hamiltonian Neural Networks](https://mlsanity.com/paper/2106.11753/) (2021)
- [Structure-preserving Sparse Identification of Nonlinear Dynamics for Data-driven Modeling](https://mlsanity.com/paper/2109.05364/) (2021)
- [Sparse Symplectically Integrated Neural Networks](https://mlsanity.com/paper/2006.12972/) (2020)
- [Learning Hamiltonians of constrained mechanical systems](https://mlsanity.com/paper/2201.13254/) (2022)
- [Port-Hamiltonian Dynamic Mode Decomposition](https://mlsanity.com/paper/2204.13474/) (2022)
- [Variational Integrator Graph Networks for Learning Energy Conserving Dynamical Systems](https://mlsanity.com/paper/2004.13688/) (2020)
- [A Non-Intrusive Method to Inferring Linear Port-Hamiltonian Realizations using Time-Domain Data](https://mlsanity.com/paper/2005.09371/) (2020)
- [Robust port-Hamiltonian representations of passive systems](https://mlsanity.com/paper/1801.05018/) (2018)
- [Identification of Port-Hamiltonian Systems from Frequency Response Data](https://mlsanity.com/paper/1911.00080/) (2019)

## Built on by (most cited first, 18 of 18)

- [Physics-Informed Machine Learning for Modeling and Control of Dynamical Systems](https://mlsanity.com/paper/2306.13867/) (2023)
- [Compositional Learning of Dynamical System Models Using Port-Hamiltonian Neural Networks](https://mlsanity.com/paper/2212.00893/) (2022)
- [Stable Port-Hamiltonian Neural Networks](https://mlsanity.com/paper/2502.02480/) (2025)
- [Port-metriplectic neural networks: thermodynamics-informed machine learning of complex physical systems](https://mlsanity.com/paper/2211.01873/) (2022)
- [Thermodynamics of learning physical phenomena](https://mlsanity.com/paper/2207.12749/) (2022)
- [Pseudo-Hamiltonian neural networks for learning partial differential equations](https://mlsanity.com/paper/2304.14374/) (2023)
- [How to Learn and Generalize From Three Minutes of Data: Physics-Constrained and Uncertainty-Aware Neural Stochastic Differential Equations](https://mlsanity.com/paper/2306.06335/) (2023)
- [Learning Dynamical Systems from Noisy Data with Inverse-Explicit Integrators](https://mlsanity.com/paper/2306.03548/) (2023)
- [Symplectic Neural Networks Based on Dynamical Systems](https://mlsanity.com/paper/2408.09821/) (2024)
- [Data-driven identification of latent port-Hamiltonian systems](https://mlsanity.com/paper/2408.08185/) (2024)
- [Neural non-canonical Hamiltonian dynamics for long-time simulations](https://mlsanity.com/paper/2510.01788/) (2025)
- [Pseudo-Hamiltonian system identification](https://mlsanity.com/paper/2305.06920/) (2023)
- [Poisson-Dirac Neural Networks for Modeling Coupled Dynamical Systems across Domains](https://mlsanity.com/paper/2410.11480/) (2024)
- [Controlled oscillation modeling using port-Hamiltonian neural networks](https://mlsanity.com/paper/2602.15704/) (2026)
- [CSympNet-ID: conformal-symplectic map learning for linearly damped Hamiltonian systems](https://mlsanity.com/paper/2607.03339/) (2026)
- [Structure- and Stability-Preserving Learning of Port-Hamiltonian Systems](https://mlsanity.com/paper/2604.13297/) (2026)
- [Learning partially observed systems with neural Hamiltonian ordinary differential equations](https://mlsanity.com/paper/2605.23510/) (2026)
- [Dirac-Interconnected Neural Elements: Discovering Modularity in Physical Systems Without Reduction](https://mlsanity.com/paper/2610.02960/) (2026)

## Abstract (arXiv)

Hybrid machine learning based on Hamiltonian formulations has recently been successfully demonstrated for simple mechanical systems, both energy conserving and not energy conserving. We introduce a pseudo-Hamiltonian formulation that is a generalization of the Hamiltonian formulation via the port-Hamiltonian formulation, and show that pseudo-Hamiltonian neural network models can be used to learn external forces acting on a system. We argue that this property is particularly useful when the external forces are state dependent, in which case it is the pseudo-Hamiltonian structure that facilitates the separation of internal and external forces. Numerical results are provided for a forced and damped mass-spring system and a tank system of higher complexity, and a symmetric fourth-order integration scheme is introduced for improved training on sparse and noisy data.
