Nonlinear port-Hamiltonian system identification from input-state-output data (ISO-pHNN)
Karim Cherifi, Achraf El Messaoudi, Hannes Gernandt, Marco Roschkowski · 2025
Read Nonlinear port-Hamiltonian system identification from input-state-output data (ISO-pHNN) by Karim Cherifi, Achraf El Messaoudi, Hannes Gernandt, Marco Roschkowski (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2501-06118.txt.
Introduction
Learning the rules of a moving system from data, while keeping its energy structure intact, is the aim of a 2025 paper by Karim Cherifi and co-authors. The systems in view store energy, lose some to friction, and trade the rest through ports. Neural nets can fit such motion, but plain fits may break those energy rules.
The new method builds the energy rules into the net from the start. The team tries several net shapes, with and without prior facts about the system. Tests cover systems with twists in their flow, friction, or stored energy. Keeping the structure costs no accuracy, the team finds, and prior facts improve long-term forecasts.
Catalog record
| CREATOR | Karim Cherifi, Achraf El Messaoudi, Hannes Gernandt, Marco Roschkowski |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 62 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2501-06118
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Nonlinear port-Hamiltonian system identification from input-state-output data (ISO-pHNN) Karim Cherifi, Achraf El Messaoudi, Hannes Gernandt, Marco Roschkowski Abstract In this paper, we introduce a framework called ISO-pHNN for identifying nonlinear port-Hamiltonian systems using input-state-output data. The framework utilizes neural networks’ universal approximation capacity to effectively represent complex dynamics in a structured way. We explore different architectures based on MLPs, KANs, and using prior information. The identification technique is validated through examples featuring nonlinearities in either the skew-symmetric terms, the dissipative terms, or the Hamiltonian. We show that incorporating a port-Hamiltonian structure does not lower the accuracy and that using additional prior information improves long-term predictions. MSC: 93B30, 93B15, 93C10, 68T07, 93B99 1 Introduction Physics-based models are widely used for simulating and controlling dynamical systems because of their interpretability and grounding in fundamental laws. However, deriving such models can be challenging for complex or proprietary systems. In this work, we focus on the identification of port-Hamiltonian (pH) models from input–state–output trajectories, a scenario that arises in applications where state information is accessible either through measurements, observers, or dimensionality reduction. This approach enables the recovery of structure-preserving, interpretable models that are suitable for control design, stability analysis, and modular interconnection with other pH systems. While purely data-driven methods have been widely applied to model complex systems, they often face issues with generalizability and reliability beyond their training scope [ 22 ] . Our approach leverages data-driven techniques to extract the underlying pH structure. This is particularly valuable when the system dynamics are known only through simulation environments, high-dimensional models, or legacy tools, where explicit equations may not be available. By combining data-driven learning with the inherent structure of pH systems, we obtain models that preserve physical properties such as energy conservation and interconnection rules. This hybrid approach that combines physics and Machine Learning (ML) is increasingly being adopted as it allows us to take advantage of the accuracy and generalizability of physics-based models while exploiting the flexibility and speed of ML methods. This integration has been particularly successful in several areas, such as the enhancement of physical models with deep networks to forecast complex dynamics [ 64 ] , the development of neural ordinary differential equations (Neural-ODEs) [ 6 ] , or the use of Physics-Informed Neural Networks (PINNs) [ 49 ] to solve forward and inverse problems for (partial) differential equations. When the solver is known, ML can be used to learn the residual or inductive biases, as seen in the Neural-ODE approach [ 6 ] , which combines physics from learning and solver-based methods. In cases where everything must be learned end-to-end, approaches such as PhyDNet and MeshGraphNet have been developed to disentangle physical dynamics from unknown factors, enabling the learning of complex simulations [ 25 , 47 ] . Hamiltonian neural networks represent a novel method for integrating extra physical knowledge into the dynamics that are to be identified. These networks leverage the Hamiltonian framework of dynamics to shape the neural architecture [ 24 , 57 , 18 , 54 ] . Although these models perform better than non-physics based models, these Hamiltonian-based models inherently represent closed systems and they do not incorporate dissipation in the model. In this study, we examine an expansion of Hamiltonian modeling, known as port-Hamiltonian (pH) systems, characterized as systems of ordinary differential equations structured as follows \displaystyle\begin{split}\dot{x}(t)&=\left(J(x(t))-R(x(t))\right)\nabla H(x(t))+B(x(t))u(t),\quad x(0)=x_{0}\\ y(t)&=B(x(t))^{\top}\nabla H(x(t)),\quad t\geq 0,\end{split} (1) where x(t)\in\mathcal{X}\subseteq\mathbb{R}^{n} is the state vector, u(t)\in\mathcal{U}\subseteq\mathbb{R}^{m} is the input vector, y(t)\in\mathcal{Y}\subseteq\mathbb{R}^{m} is the output vector and \mathcal{X} , \mathcal{U} , \mathcal{Y} are some compact sets. When we need to indicate the dependency of the solutions x of ( 1 ) on the initial value x_{0} and the input u then we write x(t;x_{0},u) and y(t;x_{0},u) for the corresponding output. We will from now on omit the time dependence of x=x(t),u=u(t),y=y(t) to simplify the notation. The Hamiltonian H:\mathcal{X}\rightarrow\mathbb{R} is a continuously differentiable function that is assumed to be bounded from below. The matrices J(x),R(x)\in\mathbb{R}^{n\times n} , B(x)\in\mathbb{R}^{n\times m} , satisfy the following properties: J(x)=-J^{\top}(x),\quad R(x)=R(x)^{\top}\geq 0,\quad\forall x\in\mathcal{X}. (2) Within this framework, the matrix function J signifies the internal energy-conserving connections within the system, accounting for reversible interactions. Furthermore, the framework incorporates dissipation in the model when R\neq 0 , attributable to factors such as resistance, friction losses, load losses resulting from electromagnetic effects in the windings of an electrical machine, and analogous effects. The class of pH systems is becoming increasingly popular because it offers robust models that are inherently passive and can guarantee the stability of equilibria, see [ 41 , 58 , 9 ] for an overview. Since the interconnection is through power or energy as universal quantities across several physical domains, the representation of the pH system offers a cohesive framework for numerical simulations of multi-physical systems [ 36 ] and has been applied to model various types of systems, including electrical power systems [ 19 , 20 ] , mechanical systems [ 48 ] , fluid dynamics [ 5 ] and interacting particle systems [ 30 ] . The aim of this paper is to develop a method for identification of nonlinear pH systems based on ML, see also [ 7 ] for a recent overview of ML techniques for pH systems. Various identification methods have been proposed for linear pH systems, i.e. when J and R are constant coefficient matrices and H is a quadratic function. For example, there is a pH version of the well-known Dynamic Mode Decomposition (pHDMD) [ 43 ] , and approaches utilizing linear matrix inequalities (LMIs) [ 11 , 21 ] , optimization [ 55 , 26 , 27 ] , subspace identification [ 40 ] , and frequency domain methods using the Loewner framework [ 3 , 10 , 8 ] . The extension to pH structure-preserving identification for nonlinear dynamics remains less explored. Recent advances were made in the context of circuits [ 44 ] , mechanical systems [ 13 ] , using Gaussian Processes [ 2 , 65 ] , using Autoencoders [ 50 ] or in the context of Pseudo-Hamiltonian systems [ 16 ] . These works have primarily focused on linear pH systems or have only partially addressed nonlinear systems by approximating specific components like the Hamiltonian or dissipation matrices or by using prior assumptions on the structure of the system matrices. Another direction that is less explored is the identification based on input-output data. Only recently, a method was developed that approximates the input-output behavior of systems while enforcing a port-Hamiltonian structure on a latent dynamics using subspace encoders [ 42 ] . The invariance of pH systems under structure-preserving interconnection was recently used in [ 45 ] to speed up the training process by decomposing a given pH system into pH subsystems which are trained independently and the trained systems are then reassembled. This method was recently extended in [ 59 ] which approximates an internal port-Hamiltonian system based on input-output data for several time steps. Current learning-based approaches to nonlinear port-Hamiltonian systems are often tailored to specific architectural choices or fixed structural assumptions, and they provide limited mechanisms for systematically incorporating varying degrees of prior physical knowledge within a single, unified formulation. In this paper, we address this gap by focusing