Learning Physics Informed Neural ODEs with Partial Measurements

Paul Ghanem, Ahmet Demirkaya, Tales Imbiriba, Alireza Ramezani, Zachary Danziger, Deniz Erdogmus

Abstract

Standard Neural Ordinary Differential Equations (NODEs) often struggle to learn system dynamics when state measurements are incomplete. This paper introduces a sequential alternating second-order optimization framework designed to reconstruct latent trajectories and learn global models under partial observability. By combining a recursive Newton method with physics-informed constraints, the proposed approach overcomes vanishing gradient issues and unidentifiability, significantly outperforming existing hybrid models on both synthetic benchmarks and real-world datasets.

Introduction

In many real-world applications, such as robotics and biological systems, it is often impossible to measure every state variable. For instance, while a robot's position might be visible, internal joint torques or external friction forces remain hidden. Standard NODEs typically assume full state observability; when faced with partial measurements, they encounter several critical hurdles:

  1. Unidentifiability: Without structural constraints, multiple models can fit the observed data while producing incorrect latent states.
  2. Vanishing Gradients: Adjoint-based optimization often fails to propagate information from sparse measurements back to the parameters governing hidden dynamics.
  3. Optimization Complexity: Simultaneous estimation of states and parameters in stiff ODE systems is numerically unstable for first-order methods.

Methodology: Sequential Alternating Optimization

To address these challenges, the authors propose a sequential alternating second-order optimization approach. Unlike standard methods that optimize over an entire dataset simultaneously, this framework processes data points sequentially, which is computationally efficient for second-order methods.

Flowchart of the proposed sequential alternating second-order optimization framework, illustrating the decoupled state and parameter update steps.

The core of the algorithm lies in its alternating structure at each time step:

  • State Update: The latent (unmeasured) states are estimated given the current model parameters using a recursive Newton method (mathematically related to the Gauss-Newton optimization).
  • Parameter Update: The neural network weights ($\theta$) are updated using the newly estimated states as a local reference.
  • Physics-Informed Constraints: The cost function incorporates known physical relationships (e.g., the kinematic link between velocity and position). This ensures that even if the dynamics of a hidden state are unknown, its influence on measured variables remains identifiable.

Experimental Evaluation

The framework was tested across diverse systems, including the Hodgkin-Huxley (HH) neuron model, a Yeast Glycolytic Oscillator, and an Electro-mechanical Positioning System (EMPS) using real-world data.

Key Results and Insights

The proposed method achieved a Normalized Root Mean Square Error (nRMSE) two to three orders of magnitude lower than standard NODEs and SPINODEs in synthetic benchmarks.

Comparison of state reconstruction for the Hodgkin-Huxley neuron model. The proposed approach (red stars) accurately tracks the ground truth (GT) across all gating variables, including the unmeasured $h_{gate}$, where baselines fail.

As shown in the Hodgkin-Huxley experiments, the model was uniquely capable of reconstructing "hidden" trajectories, such as the $h_{gate}$ variable, which other methods failed to capture in terms of phase or amplitude. On real-world EMPS data, the approach maintained high accuracy ($9.50 \cdot 10^{-2}$ nRMSE) while other physics-informed methods collapsed due to the system's inherent stiffness.

Method HH Model (nRMSE) Cart-pole (nRMSE) EMPS (Real Data)
NODE $7.03 \cdot 10^1$ $2.84 \cdot 10^{-1}$ $1.65 \cdot 10^0$
SPINODE $7.68 \cdot 10^{-1}$ $3.01 \cdot 10^0$ $4.30 \cdot 10^5$
Proposed $1.54 \cdot 10^{-1}$ $9.41 \cdot 10^{-3}$ $9.50 \cdot 10^{-2}$

Conclusion

By decoupling state estimation from parameter learning and utilizing second-order optimization, this framework provides a robust solution for learning the dynamics of partially observed physical systems. While the method requires the system to be "state identifiable," it represents a significant step forward in making Neural ODEs applicable to complex, real-world engineering and biological problems where full measurement is rarely an option.

Summary updated

BibTeX
@inproceedings{ghanem2025learning,
  author = {Paul Ghanem and Ahmet Demirkaya and Tales Imbiriba and Alireza Ramezani and Zachary Danziger and Deniz Erdogmus},
  title = {{Learning Physics Informed Neural ODEs with Partial Measurements}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i16.33846},
}
Figure