Abstract
Panel data involving longitudinal measurements of the same set of participants taken over multiple time points is common in studies to understand childhood development and disease modeling. Deep hybrid models that marry the predictive power of neural networks with physical simulators such as differential equations, are starting to drive advances in such applications. The task of modeling not just the observations but the hidden dynamics that are captured by the measurements poses interesting statistical/computational questions. We propose a probabilistic model called ME-NODE to incorporate (fixed + random) mixed effects for analyzing such panel data. We show that our model can be derived using smooth approximations of SDEs provided by the Wong-Zakai theorem. We then derive Evidence Based Lower Bounds for ME-NODE, and develop (efficient) training algorithms using MC based sampling methods and numerical ODE solvers. We demonstrate ME-NODE's utility on tasks spanning the spectrum from simulations and toy data to real longitudinal 3D imaging data from an Alzheimer's disease (AD) study, and study its performance in terms of accuracy of reconstruction for interpolation, uncertainty estimates and personalized prediction.
Introduction
In healthcare and social sciences, researchers frequently encounter panel data—repeated measurements of the same subjects over time. Modeling these datasets is challenging because they encapsulate two distinct dynamic layers: population-level "fixed effects" (e.g., the general progression of a disease) and subject-specific "random effects" (e.g., individual variations in decline rate).
While Neural Ordinary Differential Equations (Neural ODEs) excel at modeling continuous-time dynamics, they often fail to account for this inherent subject-to-subject variability. Conversely, Stochastic Differential Equations (SDEs) can model such noise but are computationally expensive and difficult to scale. The Mixed Effects Neural ODE (ME-NODE) framework bridges this gap, offering the expressivity of SDEs with the computational efficiency of standard ODEs.
Methodology: The ME-NODE Architecture
The core innovation of ME-NODE is treating latent dynamics as an ODE influenced by a subject-specific "mixed effect" vector.
Smooth Approximation and Latent Dynamics
Instead of solving a full SDE with white noise at every step, ME-NODE utilizes the Wong-Zakai theorem to justify a smooth approximation. The noise term is rewritten as a series of basis functions with random coefficients. For a subject $i$, the latent state $z_t$ evolves according to $\dot{z}_t = \Gamma(z_t)w^i$, where $\Gamma$ is a neural network and $w^i$ is a vector containing both population parameters ($\beta$) and subject-specific random effects ($b^i$).
Variational Framework
The model employs a Variational Autoencoder (VAE) structure. An Encoder maps a subject's observed history to an initial latent state $z_0$. A Decoder then maps the resulting ODE trajectory back into the high-dimensional observation space (e.g., 3D brain scans). Training is performed by maximizing a modified Evidence Lower Bound (ELBO) derived using Approximate Bayesian Computation (ABC).
Experiments and Key Results
The authors validated ME-NODE across several domains, from synthetic physics simulations to high-resolution 3D MRI scans from Alzheimer's disease (ADNI) studies. ME-NODE demonstrates significant improvements in both speed and predictive accuracy. It is approximately 13x faster than Neural SDEs, taking only 2.1 seconds per epoch compared to 27.13 seconds for SDEs on 1,000 samples.
In the Rotating MNIST task, ME-NODE achieved an interpolation MSE of 0.0027, vastly outperforming the ODE2VAE baseline (0.0640). Crucially, the model's calibration step allows it to select specific trajectories that fit a subject's unique history, enabling accurate long-term "personalized" forecasts rather than just a blurry mean prediction. On the ADNI dataset, the model successfully separated healthy controls from Alzheimer's patients in latent space, showcasing its clinical potential.
Conclusion
ME-NODE provides a robust framework for personalizing dynamics in longitudinal studies. By combining the strengths of mixed-effects modeling with Neural ODEs, it enables efficient, high-fidelity predictions and uncertainty estimation. Future work will explore more complex priors for random effects to handle sparse or non-normal subject variations.
Summary updated