# Controlled oscillation modeling using port-Hamiltonian neural networks

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

## Key facts

- Cited by 1 papers in the map (data through 14 Oct 2026).
- Builds on 23 of its 52 references that are in the map.
- First posted on arXiv 17 Feb 2026.

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

- [Neural Ordinary Differential Equations](https://mlsanity.com/paper/1806.07366/) (2018)
- [Spectral Normalization for Generative Adversarial Networks](https://mlsanity.com/paper/1802.05957/) (2018)
- [Hamiltonian Neural Networks](https://mlsanity.com/paper/1906.01563/) (2019)
- [Augmented Neural ODEs](https://mlsanity.com/paper/1904.01681/) (2019)
- [How to train your neural ODE: the world of Jacobian and kinetic regularization](https://mlsanity.com/paper/2002.02798/) (2020)
- [Symplectic ODE-Net: Learning Hamiltonian Dynamics with Control](https://mlsanity.com/paper/1909.12077/) (2019)
- [Spectral Norm Regularization for Improving the Generalizability of Deep Learning](https://mlsanity.com/paper/1705.10941/) (2017)
- [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)
- [When Physics Meets Machine Learning: A Survey of Physics-Informed Machine Learning](https://mlsanity.com/paper/2203.16797/) (2022)
- [Dissipative Hamiltonian Neural Networks: Learning Dissipative and Conservative Dynamics Separately](https://mlsanity.com/paper/2201.10085/) (2022)
- [Nonseparable Symplectic Neural Networks](https://mlsanity.com/paper/2010.12636/) (2020)
- [On Numerical Integration in Neural Ordinary Differential Equations](https://mlsanity.com/paper/2206.07335/) (2022)
- [Sparse Symplectically Integrated Neural Networks](https://mlsanity.com/paper/2006.12972/) (2020)
- [Pseudo-Hamiltonian Neural Networks with State-Dependent External Forces](https://mlsanity.com/paper/2206.02660/) (2022)
- [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)
- [Physics-Enhanced Machine Learning: a position paper for dynamical systems investigations](https://mlsanity.com/paper/2405.05987/) (2024)
- [Nonlinear port-Hamiltonian system identification from input-state-output data (ISO-pHNN)](https://mlsanity.com/paper/2501.06118/) (2025)
- [Learning Dynamical Systems from Noisy Data with Inverse-Explicit Integrators](https://mlsanity.com/paper/2306.03548/) (2023)
- [Port-Hamiltonian System Identification from Noisy Frequency Response Data](https://mlsanity.com/paper/2106.11355/) (2021)
- [Learning Generalized Hamiltonians using fully Symplectic Mappings](https://mlsanity.com/paper/2409.11138/) (2024)
- [Structure-Preserving Model Order Reduction for Index One Port-Hamiltonian Descriptor Systems](https://mlsanity.com/paper/2206.01608/) (2022)

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

- [Identifying the nonlinear string dynamics with port-Hamiltonian neural networks](https://mlsanity.com/paper/2605.12785/) (2026)

## Abstract (arXiv)

Learning dynamical systems through purely data-driven methods is challenging as they do not learn the underlying conservation laws that enable them to correctly generalize. Existing port-Hamiltonian neural network methods have recently been successfully applied for modeling mechanical systems. However, even though these methods are designed on power-balance principles, they usually do not consider power-preserving discretizations and often rely on Runge-Kutta numerical methods. In this work, we propose to use a second-order discrete gradient method embedded in the learning of dynamical systems with port-Hamiltonian neural networks. Numerical results are provided for three systems deliberately selected to span different ranges of dynamical behavior under control: a baseline harmonic oscillator with quadratic energy storage; a Duffing oscillator, with a non-quadratic Hamiltonian offering amplitude-dependent effects; and a self-sustained oscillator, which can stabilize in a controlled limit cycle through the incorporation of a nonlinear dissipation. We show how the use of this discrete gradient method outperforms the performance of a Runge-Kutta method of the same order. Experiments are also carried out to compare two theoretically equivalent port-Hamiltonian systems formulations and to analyze the impact of regularizing the Jacobian of port-Hamiltonian neural networks during training.
