Inverse Modeling Neural Network with Physics-Informed Loss
This approach combines data-driven learning with physics-based
modeling to infer key physical parameters from observed data. The
goal is to develop a neural network–physics hybrid model that
enables inverse modeling of dynamic systems, using simulation
constraints to ensure physically meaningful predictions. This
framework is especially relevant for applications such as
reduced-order modeling (ROM) in biomedical systems, e.g.,
predicting the progression of arterial occlusion from noninvasive
measurements like tissue oxygenation.
Purpose
The primary objective is to infer hidden physical parameters—such
as diffusivity and source strength in a heat conduction model—by
comparing simulated outputs driven by learned parameters to noisy
observed data. Unlike traditional forward models, which predict
system behavior from known parameters, inverse modeling solves the
harder problem of recovering the parameters themselves.
Feasibility and Precedents
This methodology is well-supported by existing literature in
scientific machine learning. Similar hybrid and physics-informed
frameworks have been applied successfully in fields like
aerospace, fluid mechanics, and structural dynamics (e.g., Journal
of Fluids and Structures, 2017; ERCOFTAC workshops, 2025). These
precedents validate both the theoretical soundness and practical
relevance of embedding physical constraints into learning
pipelines, especially when data are limited and interpretability is
critical.
Case 4 — Inverse modeling a 1D hemodynamic system
The governing equations are based on conservation of mass and momentum, expressed in terms of flow rate Q(x,t) and cross‑sectional area A(x,t):
Conservation of Mass:
$$\frac{\partial A}{\partial t} + \frac{\partial Q}{\partial x} = 0$$
Conservation of Momentum:
$$
\frac{\partial Q}{\partial t}
+ \frac{\partial}{\partial x}\left(\alpha \frac{Q^2}{A}\right)
+ \frac{A}{\rho}\,\frac{\partial P}{\partial x}
=
-\,K_R \frac{Q}{A}
+ \nu\,\frac{\partial^2 Q}{\partial x^2}
$$
The pressure \(P\) is still given by:
$$
P = P_0 + \beta\left(\sqrt{A} - \sqrt{A_0}\right)
$$
To numerically solve these PDEs, boundary conditions are required:
Inlet Boundary Conditions
- Prescribe both Q(t) and P(t) (or equivalently A(t)) at the inlet to uniquely define inflow and pressure dynamics.
Outlet Boundary Conditions
Only P(t) is prescribed; Q(t) is inferred using one of four common models:
- Dirichlet (Prescribed Pressure): directly specify P(t).
- Resistance: P(t) = R Q(t).
- RCR (Windkessel): three-element model relating P and Q via resistance and compliance.
- Impedance/Structured Tree: uses impedance or structured tree model—Q(t) is computed via convolution with the inverse FT of admittance.
In all cases, the user prescribes P(t) (or its defining parameters), and the solver infers Q(t) based on the chosen outlet model.
Numerical Algorithm
Unknown fields: \(P_{i,j}, Q_{i,j}, A_{i,j}\) over \(i=0,\dots,N_x-1\); \(j=0,\dots,N_t-1\). Total unknowns: 3·Nx·Nt.
Constraints:
- Initialization (\(j=0\)): \(P_{i,0}, Q_{i,0}, A_{i,0}\) are prescribed.
- Periodicity (\(j=N_t-1\)): \(P_{i,N_t-1}=P_{i,0}\), \(Q_{i,N_t-1}=Q_{i,0}\), \(A_{i,N_t-1}=A_{i,0}\).
- Boundary Conditions:
- Inlet (\(i=0\)): both \(Q_{0,j}\) and \(P_{0,j}\) provided.
- Outlet (\(i=N_x-1\)): \(P_{N_x-1,j}\) prescribed; \(Q_{N_x-1,j}\) inferred using SimVascular models (Resistance, RCR/Windkessel, Impedance/Structured-tree).
- PDE equations (interior nodes \(0Mass: \(\frac{A_{j+1,i}-A_{j,i}}{\Delta t} + \frac{Q_{j,i+1}-Q_{j,i-1}}{2\Delta x} = 0\)
Momentum: \(\frac{Q_{j+1,i}-Q_{j,i}}{\Delta t} + \frac{\partial}{\partial x}(\alpha \frac{Q^2}{A}) + \frac{A}{\rho}\frac{\partial P}{\partial x} + K_R \frac{Q}{A} = 0\)
Constitutive: \(P_{j,i} - [P_0 + \beta (\sqrt{A_{j,i}} - \sqrt{A_0})] = 0\)
Altogether, these give \(3(N_t-2)(N_x-2)\) equations matching the interior unknowns.
Solver outline:
- Assemble residual vector \(\mathbf{R}(U)\) across all unknowns \(U = \mathrm{vec}(P,Q,A)\).
- Solve nonlinear system \(\mathbf{R}(U)=0\) using Newton–Krylov:
- Approximate Jacobian–vector product via finite differences.
- Solve correction \(\Delta U\) using GMRES + ILU preconditioner (avoiding direct factorization errors).
- Iterate until convergence \(\|\mathbf{R}\| < tol\).
This fully couples the 1D system in space and time, enforcing periodic behavior and solving for the complete space-time field in a single unified step.