Latent Class Mixed Model Variational Autoencoders for Scalable Phenotyping of Health Trajectories

Philomène Letzelter, Violaine Courrier, Sandrine Katsahian, Agathe GuillouxarXiv 2026

TL;DR

Health records and wearables track thousands of patients across dozens of messy, irregularly timed measurements—a dataset where "population averages" describe almost no one. This paper introduces LCMM-VAE, a deep generative model that marries the interpretability of classical biostatistics with the scalability of deep learning. In a single pass, it clusters patients into distinct health trajectories, fills in missing data, and draws clean, clinically readable curves for each subgroup.

What Problem Does This Paper Address?

Imagine trying to group patients by how a chronic condition progresses over several years. Real-world clinical data makes this notoriously painful: patients visit the clinic on erratic schedules, sensors drop out, dozens of biomarkers are tracked simultaneously, and every individual has their own baseline quirks (like a naturally high resting heart rate).

Historically, researchers have had to pick their poison from two separate toolboxes:

  1. Classical statistical models (like Latent Class Mixed Models, or LCMMs) gracefully handle irregular visit times, covariates (like age), and individual patient baselines. Better yet, they output clean, interpretable trajectory curves. However, their parameter count explodes as you add biomarkers, choking past a handful of variables.
  2. Deep time-series clustering scales effortlessly to dozens of variables using neural networks. The catch? These models usually force you to bin and impute data onto a rigid, uniform time grid, ignore covariates, and represent clusters as abstract points in a black-box latent space rather than readable clinical curves.

The authors ask: Can we build a single model that scales like a neural network while preserving the clean, continuous-time structure of a classical mixed-effects model?

Methods

The authors propose the Latent Class Mixed Model Variational Autoencoder (LCMM-VAE).

LCMM-VAE encodes sparse, irregular patient visits into a structured latent space governed by class-specific linear mixed models, then decodes them into complete biomarker trajectories.

What is standard here is the outer shell: an amortised Variational Autoencoder (VAE) that encodes observed biomarkers from a single visit into a low-dimensional latent state, and decodes that state back into the original marker space (handling missing values via masking).

What is novel is what happens inside the latent space:

  • A Mixture of Mixed-Models Prior: Instead of squishing latent variables into a standard normal blob, the prior is a finite mixture of linear mixed models. Each patient's latent trajectory neatly decomposes into three parts: a shared population trend, a class-specific departure (fixed effects driven by time/covariates), and a subject-specific deviation (random effects capturing individual offsets or slopes). Because the decoder is shared across all classes, all temporal dynamics and subgroup differences live transparently in this structured prior.
  • Sampling-Free Variational EM: Training alternates between an Expectation (E) step and a Maximisation (M) step. Crucially, the authors derive exact, closed-form updates for class responsibilities, individual random effects, and all mixed-model parameters—no Monte Carlo sampling required. Gradient descent is reserved strictly for the encoder/decoder weights and observation noise.
  • Identifiability: Under stated conditions, the authors prove that the class trajectories and proportions are mathematically identifiable—a rare guarantee in deep longitudinal clustering.

Datasets

The model is evaluated across three longitudinal cohorts:

  • Simulated Cohort (Newly Constructed): 500 subjects tracked across 50 markers (10 informative, 40 pure noise) with ~80% of visits missing either completely at random (MCAR) or depending on prior measurements (MAR). Designed specifically to stress-test high dimensionality, irregular timing, and subject-level deviations.
  • Braced-Gait Study: 300 walking cycles from 10 subjects wearing three types of braces (unbraced, knee, ankle), tracking 6 joint angles over 101 time points, tested with artificial point-wise and whole-channel missingness.
  • PhysioNet 2012 Challenge: Real-world EHR data from ICU stays over 48 hours, tracking 35 hourly physiological variables with a massive 82% natural missingness rate.

Key Insights and Ideas

  • Individual quirks will fool your clustering if you ignore them: On the simulated cohort, stripping away subject-level random effects ($R=0$) caused clustering accuracy (ARI) to plummet from 0.90 to 0.29. Accounting for individual baselines prevents the model from confusing a patient's personal offset with a completely different disease class.
  • Within-subject vs. across-subject structure is a trade-off: When single data points are missing surrounded by observed neighbours, simple linear interpolation easily wins at filling the gaps. When entire biomarker channels go missing for a patient, interpolation fails completely—whereas LCMM-VAE leverages correlations across markers and across the patient's latent class to reconstruct the missing curve.
  • Closed-form updates make deep structured models fast: By solving the mixture and mixed-model math analytically during the E- and M-steps, LCMM-VAE trains faster than every deep clustering baseline tested, while classical LCMM couldn't even finish running.

Key Results

  • Clustering Accuracy & Speed: On simulated data, LCMM-VAE achieved the highest held-out Adjusted Rand Index (0.90 MCAR, 0.76 MAR), crushing deep time-series baselines (all $\le 0.24$) and two-stage spline methods ($\le 0.71$). One fit took 12.7 seconds, compared to 34.5–2,856s for deep baselines (classical LCMM was computationally infeasible at 50 markers).
  • Reconstructing Missing Channels: On the Gait dataset with whole markers dropped, LCMM-VAE achieved the lowest reconstruction MSE (0.353), beating specialized deep imputers like GP-VAE (0.470), BRITS (0.602), and SAITS (0.640), while simultaneously recovering clean, biomechanically accurate joint-angle curves for each brace condition:
Decoded class trajectories from LCMM-VAE closely match the true observed biomechanical means for each brace condition in the markers' native units.
  • Unsupervised Clinical Phenotyping: On PhysioNet ICU data, without seeing outcomes or demographics, LCMM-VAE uncovered 4 distinct patient trajectories with statistically significant differences in patient profiles and in-hospital mortality—ranging from 12.4% in Class A to 18.7% in Class C.

Limitations and Future Work

The authors candidly note a few constraints:

  • Dataset mismatch: Openly accessible multi-year wearable datasets are scarce, meaning the full random-effects machinery was only thoroughly exercised on the simulation (PhysioNet's 48h window is too short, and Gait has nested subject-and-cycle levels).
  • Shared clock: Time is treated as an observed covariate, so the model cannot yet align patients whose diseases progress along the same shape but at different speeds ("time-warping").
  • Prior-posterior gap & theory: The decoder trains on posterior-encoded visits but reconstructs from the prior, leaving a slight distribution mismatch; additionally, identifiability with a learned decoder is currently argued via prior literature rather than proven end-to-end.

Future directions include replacing parametric fixed-effect curves with scalable Gaussian Processes, giving each patient an individual progression-rate parameter, and explicitly modeling missing-not-at-random (MNAR) observation processes.

Summary updated

BibTeX
@misc{letzelter2026latent,
  author = {Philomène Letzelter and Violaine Courrier and Sandrine Katsahian and Agathe Guilloux},
  title = {{Latent Class Mixed Model Variational Autoencoders for Scalable Phenotyping of Health Trajectories}},
  year = {2026},
  eprint = {2611.32391},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32391},
}
Figure