Learning the Missing Physics Locally with Modelica and Wolfram Language
DOI:
https://doi.org/10.3384/ecp223103Keywords:
Physics Informed Machine Learning, Universal Differential Equations, Physics-enhanced Neural-ODEsAbstract
This paper introduces State-Invariant Hybrid Models (SIHM), a subset of hybrid physics-machine-learning models in which the state vector remains defined by the first-principles Modelica model, while learned components contribute missing physics locally. We qualitatively contrast global residual learning at system level with local residual learning at component level, arguing that local learning better matches the acausal modeling paradigm of Modelica. A tool-agnostic workflow is proposed in which a replaceable dummy component marks the suspected location of missing physics, while compiler-derived structural information identifies the connected states and variables. The workflow is then illustrated in the Wolfram ecosystem on two models to demonstrate the approach's modularity. The results indicate that local SIHM components recover targeted missing effects while preserving the state selection of the original model.Downloads
Published
2026-10-20
Issue
Section
Modelica Technology & AI
License
Copyright (c) 2026 Clément Coïc; Ankit Anurag Naik

This work is licensed under a Creative Commons Attribution 4.0 International License.