Learning Patient Representations from Partial Observations through Reconstruction and Latent Prediction

Max Krähenmann, Andrea Agostini, Simon Böhi, Moritz Vandenhirtz, Julia E. Vogt, Thomas M. Sutter, Ece OzkanarXiv 2026

TL;DR

Predicting a patient's fate in the ICU is like trying to guess the plot of a movie from a handful of scattered, blurry Polaroids. The authors introduce GLIMPSE, a lightweight self-supervised model for electronic health records (EHRs) that combines two distinct goals: filling in missing lab values and predicting the overarching representation of a patient's entire hospital stay from just a short snapshot. By balancing fine-grained clinical detail with big-picture trajectory, GLIMPSE outperforms models up to 360 times its size—especially when clinical data and labels are scarce.

What Problem Does This Paper Address?

If you picture an ICU chart as a clean, dense spreadsheet of vital signs ticked off every hour, reality will disappoint you. Over 80% of entries in standard ICU benchmarks are blank. Measurements are sparse, noisy, and irregular—taken only when a clinician suspects something is up. Furthermore, clinical predictions (like sepsis or mortality risk) are most valuable early in a stay, yet expert-reviewed diagnostic labels are expensive and rare, with the median ICU machine-learning study analyzing fewer than 500 patients.

Self-supervised pretraining helps by learning general patient representations from unlabelled stays first. However, current approaches suffer from a Goldilocks dilemma:

  • Input-space reconstruction/forecasting (like Masked Autoencoders) forces the model to guess exact held-out lab numbers. This makes the model obsess over low-level measurement noise rather than high-level clinical meaning.
  • Latent-prediction architectures (like JEPA) predict abstract representations instead of raw inputs, which filters out noise—but risks throwing away the subtle, fine-grained physiological details upon which medical diagnoses often hinge.

Meanwhile, massive tabular foundation models require hefty compute, whereas hospitals usually need compact models they can train and run on local infrastructure.

Methods

GLIMPSE (Global Latent Inference and Masked Prediction for Sparse EHR) solves this by marrying sparse efficiency with dual-objective pretraining.

First, instead of feeding a mostly empty hourly grid into a Transformer, GLIMPSE tokenizes only observed measurements. Every actual reading becomes a token carrying three summed embeddings: its standardized value, the clinical variable ID, and a sinusoidal timestamp. Missing values are ignored completely, keeping compute proportional to actual data rather than grid size.

Overview of GLIMPSE joint pretraining and downstream adaptation

Second, a single Transformer encoder is pretrained using two simultaneous, complementary paths:

  1. Standard Masked Reconstruction: On a crop of the stay, 75% of observed values are hidden, and a lightweight decoder tries to reconstruct them. This anchors the encoder to concrete physiological numbers.
  2. Novel Global Latent Prediction: While prior EHR latent methods only predict masked values inside the current window or the very next hour, GLIMPSE takes a short, unmasked "glimpse" (a 12-, 24-, or 48-hour window) and tries to predict the [CLS] summary representation of the entire hospital stay, generated by an exponential-moving-average (EMA) target encoder.

After pretraining, the auxiliary modules are tossed out. For downstream tasks (mortality, length of stay $\ge 7$ days, and ICD-10 diagnoses), a linear head reads the concatenation of the [CLS] token and the mean of the observed value tokens from the first 48 hours.

Datasets

To prevent models from "cheating" via clinical decisions or propagating care biases, the authors strip out demographics and treatments (like ventilator settings), training strictly on physiological vitals and lab tests across three cohorts:

  • P12: ~12,000 adult ICU stays (first 48 hours), a standard dense benchmark.
  • MIMIC-IV: 92,001 adult ICU stays from Boston—the heavyweight benchmark.
  • PIC (Paediatric Intensive Care): 12,831 stays (mostly infants) from China. Notably, paediatric cohorts are severely understudied—none of 53 recently reviewed EHR foundation models were pretrained on children, whose vitals, baselines, and diseases look nothing like adults'.

Key Insights and Ideas

  • Detail and abstraction aren't enemies; they're teammates: When tested solo, the reconstruction-only variant excelled at mortality and diagnosis (which rely on specific lab anomalies), while the latent-only variant won on length-of-stay (a macro-trajectory property). Together, they lift performance across the board.
  • Missingness is signal, not an error to impute: Because clinicians order tests based on suspicion, GLIMPSE never imputes missing data, nor does its decoder distinguish between randomly masked entries and genuinely unmeasured ones—preventing the pretraining loss from taking shortcuts based on which test was ordered.
  • Out-of-window alignment beats local forecasting: Even on P12—where records stop at 48 hours—latent prediction still boosts accuracy. The magic comes from forcing representations of tiny, arbitrary time windows to align with a broader view of the patient's state, stripping away transient noise.

Key Results

Across 8 dataset–task combinations, GLIMPSE claims the top average AUROC in both linear probing (82.1%) and full finetuning (83.7%), beating specialized EHR encoders (DuETT, AID-MAE, STraTS, SMART) and tabular foundation models (TabPFN 3.5, TabICLv2, TabFM).

Label, observation, and parameter efficiency of GLIMPSE vs. baselines
  • Label Efficiency: With just 25% of training labels, a frozen linear probe on GLIMPSE (80.5% AUROC) matches TabPFN 3.5 trained on 100% of labels. At 1% labels, GLIMPSE beats training from scratch by ~11 AUROC points.
  • Observation Efficiency: Using only the first 6 hours of patient data, GLIMPSE matches its reconstruction-only cousin given 12 hours, and with 12 hours beats AID-MAE given 24.
  • Parameter & Compute Efficiency: At 603k parameters (pretraining on MIMIC-IV in ~2.1 hours on four GPUs), GLIMPSE outperforms DuETT (9$\times$ larger) and TabPFN 3.5 (360$\times$ larger). Even a tiny 154k-parameter version (GLIMPSE-32) beats every baseline under full finetuning.

Limitations and Future Work

GLIMPSE is currently evaluated only on static classifications made from the first hours of stays lasting at least 48 hours; continuous, real-time risk updating and time-to-event predictions remain untested. Additionally, while excluding demographics and treatments avoids obvious leakage and demographic conditioning, test-ordering timings still reflect local hospital habits—meaning subgroup fairness must be audited before any clinical deployment. Next up, the authors plan to explore cross-hospital pretraining to see if a single model can bridge adult and paediatric ICUs.

Summary updated

BibTeX
@misc{krahenmann2026learning,
  author = {Max Krähenmann and Andrea Agostini and Simon Böhi and Moritz Vandenhirtz and Julia E. Vogt and Thomas M. Sutter and Ece Ozkan},
  title = {{Learning Patient Representations from Partial Observations through Reconstruction and Latent Prediction}},
  year = {2026},
  eprint = {2611.37749},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.37749},
}
Figure