Nonlinear port-Hamiltonian system identification from input-state-output data (ISO-pHNN)
Authors
K. Cherifi, A. El Messaoudi, H. Gernandt, M. 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.
Keywords
dissipative systems, dynamical systems, long-term prediction, nonlinear system identification, physics-informed machine learning, port-hamiltonian systems, structure-preserving learning
Citation
- Journal: Physica D: Nonlinear Phenomena
- Year: 2026
- Volume: 497
- Issue:
- Pages: 135368
- Publisher: Elsevier BV
- DOI: 10.1016/j.physd.2026.135368
BibTeX
@article{Cherifi_2026,
title={{Nonlinear port-Hamiltonian system identification from input-state-output data (ISO-pHNN)}},
volume={497},
ISSN={0167-2789},
DOI={10.1016/j.physd.2026.135368},
journal={Physica D: Nonlinear Phenomena},
publisher={Elsevier BV},
author={Cherifi, K. and El Messaoudi, A. and Gernandt, H. and Roschkowski, M.},
year={2026},
pages={135368}
}References
- Göring, Out-of-domain generalization in dynamical systems reconstruction. (2024)
- Yin Y, Le Guen V, Dona J, de Bézenac E, Ayed I, Thome N, Gallinari P (2021) Augmenting physical models with deep networks for complex dynamics forecasting*. J Stat Mech 2021(12):124012. https://doi.org/10.1088/1742-5468/ac3ae – 10.1088/1742-5468/ac3ae5
- Chen, Neural ordinary differential equations. (2018)
- Raissi M, Perdikaris P, Karniadakis GE (2019) Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics 378:686–707. https://doi.org/10.1016/j.jcp.2018.10.04 – 10.1016/j.jcp.2018.10.045
- Guen, Disentangling physical dynamics from unknown factors for unsupervised video prediction. (2020)
- Pfaff, Learning mesh-based simulation with grapH networks. (2021)
- Greydanus, Hamiltonian neural networks. (2019)
- Toth, Hamiltonian generative networks. (2020)
- Finzi, Simplifying Hamiltonian and Lagrangian neural networks via explicit constraints. (2020)
- Schwerdtner P, Schulze P, Berman J, Peherstorfer B (2024) Nonlinear Embeddings for Conserving Hamiltonians and Other Quantities with Neural Galerkin Schemes. SIAM J Sci Comput 46(5):C583–C607. https://doi.org/10.1137/23m160779 – 10.1137/23m1607799
- Mehrmann V, Unger B (2023) Control of port-Hamiltonian differential-algebraic systems and applications. Acta Numerica 32:395–515. https://doi.org/10.1017/s096249292200008 – 10.1017/s0962492922000083
- van der Schaft A, Jeltsema D (2014) Port-Hamiltonian Systems Theory: An Introductory Overview. Foundations and Trends® in Systems and Control 1(2–3):173–378. https://doi.org/10.1561/260000000 – 10.1561/2600000002
- Cherifi K, Gernandt H, Hinsen D (2023) The difference between port-Hamiltonian, passive and positive real descriptor systems. Math Control Signals Syst 36(2):451–482. https://doi.org/10.1007/s00498-023-00373- – 10.1007/s00498-023-00373-2
- Lohmayer, EPHS: A port-Hamiltonian modelling language. IFAC-Pap. (2022)
- Gernandt H, Haller FE, Reis T, Schaft AJ van der (2021) Port-Hamiltonian formulation of nonlinear electrical circuits. Journal of Geometry and Physics 159:103959. https://doi.org/10.1016/j.geomphys.2020.10395 – 10.1016/j.geomphys.2020.103959
- Gernandt, Port-Hamiltonian modeling and control of electric vehicle charging stations. IEEE Trans. Transp. Electrific. (2024)
- Ponce C, Wu Y, Le Gorrec Y, Ramirez H (2024) A systematic methodology for port-Hamiltonian modeling of multidimensional flexible linear mechanical systems. Applied Mathematical Modelling 134:434–451. https://doi.org/10.1016/j.apm.2024.05.04 – 10.1016/j.apm.2024.05.040
- Cardoso-Ribeiro FL, Haine G, Le Gorrec Y, Matignon D, Ramirez H (2024) Port-Hamiltonian formulations for the modeling, simulation and control of fluids. Computers & Fluids 283:106407. https://doi.org/10.1016/j.compfluid.2024.10640 – 10.1016/j.compfluid.2024.106407
- Jacob B, Totzeck C (2024) Port-Hamiltonian Structure of Interacting Particle Systems and Its Mean-Field Limit. Multiscale Model Simul 22(4):1247–1266. https://doi.org/10.1137/23m154773 – 10.1137/23m1547731
- Cherifi K (2020) An overview on recent machine learning techniques for Port Hamiltonian systems. Physica D: Nonlinear Phenomena 411:132620. https://doi.org/10.1016/j.physd.2020.13262 – 10.1016/j.physd.2020.132620
- Morandin R, Nicodemus J, Unger B (2023) Port-Hamiltonian Dynamic Mode Decomposition. SIAM J Sci Comput 45(4):A1690–A1710. https://doi.org/10.1137/22m149329 – 10.1137/22m149329x
- Gillis N, Sharma P (2018) Finding the Nearest Positive-Real System. SIAM J Numer Anal 56(2):1022–1047. https://doi.org/10.1137/17m113717 – 10.1137/17m1137176
- Schwerdtner P, Voigt M (2023) SOBMOR: Structured Optimization-Based Model Order Reduction. SIAM J Sci Comput 45(2):A502–A529. https://doi.org/10.1137/20m138023 – 10.1137/20m1380235
- Günther M, Jacob B, Totzeck C (2024) Data-driven adjoint-based calibration of port-Hamiltonian systems in time domain. Math Control Signals Syst 36(4):957–977. https://doi.org/10.1007/s00498-024-00389- – 10.1007/s00498-024-00389-2
- Günther, Structure-preserving identification of port-Hamiltonian systems-a sensitivity-based approach. (2024)
- Medianu, (2017)
- Benner P, Goyal P, Van Dooren P (2020) Identification of port-Hamiltonian systems from frequency response data. Systems & Control Letters 143:104741. https://doi.org/10.1016/j.sysconle.2020.10474 – 10.1016/j.sysconle.2020.104741
- Cherifi, A non-intrusive method to inferring linear port-Hamiltonian realizations using time-domain data. ETNA Spec. Issue SciML (2022)
- Cherifi, Application of data-driven realizations to port-Hamiltonian flexible structures. IFAC-Pap. (2021)
- Najnudel, Identification of nonlinear circuits as port-Hamiltonian systems. (2021)
- Desai SA, Mattheakis M, Sondak D, Protopapas P, Roberts SJ (2021) Port-Hamiltonian neural networks for learning explicit time-dependent dynamical systems. Phys Rev E 104(3). https://doi.org/10.1103/physreve.104.03431 – 10.1103/physreve.104.034312
- Beckers, Gaussian process port-Hamiltonian systems: Bayesian learning with physics prior. (2022)
- Rettberg, Data-driven identification of latent port-Hamiltonian systems. Comput. Sci. Eng. (2025)
- Eidnes S, Stasik AJ, Sterud C, Bøhn E, Riemer-Sørensen S (2023) Pseudo-Hamiltonian neural networks with state-dependent external forces. Physica D: Nonlinear Phenomena 446:133673. https://doi.org/10.1016/j.physd.2023.13367 – 10.1016/j.physd.2023.133673
- Moradi S, Beintema GI, Jaensson NO, Tóth R, Schoukens M (2026) Port-Hamiltonian neural networks with output error noise models. Automatica 187:112892. https://doi.org/10.1016/j.automatica.2026.11289 – 10.1016/j.automatica.2026.112892
- Neary, Compositional learning of dynamical system models using port-Hamiltonian neural networks. (2023)
- Schwerdtner P, Moser T, Mehrmann V, Voigt M (2023) Optimization-based model order reduction of port-Hamiltonian descriptor systems. Systems & Control Letters 182:105655. https://doi.org/10.1016/j.sysconle.2023.10565 – 10.1016/j.sysconle.2023.105655
- Vaswani, Attention is all you need. (2017)
- Brunton SL, Proctor JL, Kutz JN (2016) Discovering governing equations from data by sparse identification of nonlinear dynamical systems. Proc Natl Acad Sci USA 113(15):3932–3937. https://doi.org/10.1073/pnas.151738411 – 10.1073/pnas.1517384113
- Hastie, (2009)
- Cybenko G (1989) Approximation by superpositions of a sigmoidal function. Math Control Signal Systems 2(4):303–314. https://doi.org/10.1007/bf0255127 – 10.1007/bf02551274
- Hornik K, Stinchcombe M, White H (1989) Multilayer feedforward networks are universal approximators. Neural Networks 2(5):359–366. https://doi.org/10.1016/0893-6080(89)90020- – 10.1016/0893-6080(89)90020-8
- Liu, KAN: Kolmogorov–Arnold networks. (2025)
- Koenig BC, Kim S, Deng S (2024) KAN-ODEs: Kolmogorov–Arnold network ordinary differential equations for learning dynamical systems and hidden physics. Computer Methods in Applied Mechanics and Engineering 432:117397. https://doi.org/10.1016/j.cma.2024.11739 – 10.1016/j.cma.2024.117397
- Paszke, PyTorch: an imperative style, high-performance deep learning library. (2019)
- Virtanen P, Gommers R, Oliphant TE, Haberland M, Reddy T, Cournapeau D, Burovski E, Peterson P, Weckesser W, Bright J, van der Walt SJ, Brett M, Wilson J, Millman KJ, Mayorov N, Nelson ARJ, Jones E, Kern R, Larson E, Carey CJ, Polat İ, Feng Y, Moore EW, VanderPlas J, Laxalde D, Perktold J, Cimrman R, Henriksen I, Quintero EA, Harris CR, Archibald AM, Ribeiro AH, Pedregosa F, van Mulbregt P, Vijaykumar A, Bardelli AP, Rothberg A, Hilboll A, Kloeckner A, Scopatz A, Lee A, Rokem A, Woods CN, Fulton C, Masson C, Häggström C, Fitzgerald C, Nicholson DA, Hagen DR, Pasechnik DV, Olivetti E, Martin E, Wieser E, Silva F, Lenders F, Wilhelm F, Young G, Price GA, Ingold G-L, Allen GE, Lee GR, Audren H, Probst I, Dietrich JP, Silterra J, Webber JT, Slavič J, Nothman J, Buchner J, Kulick J, Schönberger JL, de Miranda Cardoso JV, Reimer J, Harrington J, Rodríguez JLC, Nunez-Iglesias J, Kuczynski J, Tritz K, Thoma M, Newville M, Kümmerer M, Bolingbroke M, Tartre M, Pak M, Smith NJ, Nowaczyk N, Shebanov N, Pavlyk O, Brodtkorb PA, Lee P, McGibbon RT, Feldbauer R, Lewis S, Tygier S, Sievert S, Vigna S, Peterson S, More S, Pudlik T, Oshima T, Pingel TJ, Robitaille TP, Spura T, Jones TR, Cera T, Leslie T, Zito T, Krauss T, Upadhyay U, Halchenko YO, Vázquez-Baeza Y (2020) SciPy 1.0: fundamental algorithms for scientific computing in Python. Nat Methods 17(3):261–272. https://doi.org/10.1038/s41592-019-0686- – 10.1038/s41592-019-0686-2
- Elfwing S, Uchibe E, Doya K (2018) Sigmoid-weighted linear units for neural network function approximation in reinforcement learning. Neural Networks 107:3–11. https://doi.org/10.1016/j.neunet.2017.12.01 – 10.1016/j.neunet.2017.12.012
- Loshchilov, Decoupled weight decay regularization. (2019)
- Loshchilov, SGDR: stochastic gradient descent with warm restarts. (2017)
- Dormand JR, Prince PJ (1980) A family of embedded Runge-Kutta formulae. Journal of Computational and Applied Mathematics 6(1):19–26. https://doi.org/10.1016/0771-050x(80)90013- – 10.1016/0771-050x(80)90013-3
- Linares M, Doras G, Hélie T, Roebel A (2026) Controlled oscillation modeling using port-Hamiltonian neural networks. Physica D: Nonlinear Phenomena 497:135341. https://doi.org/10.1016/j.physd.2026.13534 – 10.1016/j.physd.2026.135341
- Roschkowski M, Cherifi K, Gernandt H (2026) Neural Scaling Laws for Learning-Based Identification of Nonlinear Systems. IEEE Open J Control Syst 5:349–362. https://doi.org/10.1109/ojcsys.2026.369360 – 10.1109/ojcsys.2026.3693603
- Lopes, Explicit second-order accurate method for the passive guaranteed simulation of port-Hamiltonian systems. IFAC-Pap. (2015)
- Dänschel H, Lentz L, von Wagner U (2024) Error measures and solution artifacts of the harmonic balance method on the example of the softening Duffing oscillator. Journal of Theoretical and Applied Mechanics :435–455. https://doi.org/10.15632/jtam-pl/18671 – 10.15632/jtam-pl/186718
- Wang, On the expressiveness and spectral bias of KANs. (2025)
- Spirito, Structure-preserving observers for port-Hamiltonian systems via contraction analysis. Preprint hal-04344593 (2023)
- Vu, Port-Hamiltonian observer for state-feedback control design. (2023)