A Foundation Model for Patient Behavior Monitoring and Suicide Detection

Rodrigo Oliver, Josué Pérez Sabater, Diego Herrero-Quevedo, Antonio Artés, Alejandro Lancho, Pablo M. Olmos · Submission to ICLR 2025 · Rejected

TL;DR

This paper introduces a foundation model for passive digital phenotyping that models complex, incomplete behavioral time-series from wearable devices and smartphones using a modified Vector Quantized Variational Autoencoder (VQ-VAE). Without any fine-tuning, the pretrained model's discrete latent representations plug directly into an online Bayesian change-point detection algorithm to forecast suicide attempts with an AUC of 0.92—matching personalized, patient-specific baselines while scaling across large cohorts.

What Problem Does This Paper Address?

Passive digital phenotyping (PDP)—continuously tracking metrics like daily step count, sleep schedule, app usage, and mobility—holds massive promise for computational psychiatry. Sudden behavioral disruptions often precede acute mental health crises, such as suicide attempts.

However, real-world wearable data presents steep computational hurdles:

  1. Severe missingness: Devices disconnect, operating systems kill background processes, and patients intentionally take off watches or silence phones. This missingness is often Missing Not At Random (MNAR)—the lapse itself reflects clinical behavior (e.g., depressive withdrawal or disrupted routines).
  2. Heterogeneity: Data streams combine count data (steps), bounded continuous values (sleep timing), and binary indicators (weekends, workouts).
  3. Scalability bottlenecks: Prior clinical methods rely on individualized models (such as patient-specific Heterogeneous Mixture Models, or HetMM) that require training an independent model for every single patient, preventing cross-population generalization.

Methods

The authors reframe passive behavioral monitoring by treating a modified Vector Quantized Variational Autoencoder (VQ-VAE) as a foundation model:

  • Missing-Aware VQ-VAE: Uses 1D convolutional encoders and decoders preserving temporal length (one step per day). The authors evaluate three mask-conditioning variants:
  • A0: Zero-imputation baseline without mask conditioning.
  • A1: Encoder-only mask conditioning (processes a binary observation mask via 1D-CNNs and concatenates it with the input).
  • A2: Encoder and decoder mask conditioning.
  • Discrete Codebook Regularization: Maps daily multimodal metrics to 256 discrete 80-dimensional embeddings using exponential moving averages (EMA) and an active code restart threshold (0.1) to avoid codebook collapse.
  • Downstream Change-Point Detection (CPD) Without Fine-Tuning:
  • Daily behaviors are mapped directly to latent codewords or soft "pseudo-probabilities" (derived from the softmax of negative Euclidean distances between encoder outputs and codebook vectors).
  • An unsupervised Bayesian Online Change-Point Detection algorithm monitors the run-length distribution over time, flagging sharp behavioral transitions within a 7-day prediction window prior to documented suicide attempts.
Multimodal Wearables (X) ──► Pre-trained VQ-VAE Encoder ──► Discrete Latents / Pseudo-Probs (Z) ──► Online CPD ──► Crisis Alert (r)

Datasets

  • Pretraining Cohort: A proprietary dataset from an anonymized digital health platform comprising 1,122,233 daily records across 5,532 patients enrolled in 39 clinical programs (January 2016 – March 2024). Models were trained on 10 behavioral variables with missingness rates below 85% (including sleep duration/start, walking time, distance traveled, time at home, app usage, and step counts).
  • Evaluation Benchmark: A held-out validation cohort of patients enrolled in an active suicide prevention clinical program with ground-truth records of emergency room visits or suicide attempts.

Key Insights and Ideas

  • Discrete States Capture Behavioral Archetypes: Unlike continuous latents, discrete embeddings group daily routines into interpretable behavioral "profiles." In practice, individual patients only trigger a small, sparse subset of the 256 codebook entries; rare/unstable patterns naturally funnel into outlier "dummy" embeddings.
  • Population Foundation Models Match Personalized Models: Historically, psychiatric PDP required building a bespoke statistical model per individual. A single, shared VQ-VAE foundation model generalized zero-shot to a completely separate clinical cohort, matching the accuracy of patient-specific modeling without retraining.
  • Pseudo-Probabilities Reduce Quantization Noise: Hard discrete assignments can introduce jitter when a day's behavior lies ambiguously between codebook vectors. Converting encoder-to-embedding Euclidean distances into pseudo-probabilities via softmax provided smooth, calibrated inputs that improved change-point detection specificity.

Key Results

  • Reconstruction & Imputation: In both simulated MCAR (10% uniform masking) and MNAR (value-dependent structured missingness) conditions, the model reconstructed missing behavioral features accurately across continuous, binary, and count modalities.
  • Suicide Detection Performance:
  • The VQ-VAE + pseudo-probability CPD achieved an AUC of 0.92 ($\lambda = 10^5, K = 20$), rivaling the patient-specific HetMM baseline (0.93 AUC).
  • It maintained high sensitivity (up to 92.8% true positive detection rate within a 7-day predictive window) while keeping false alarm rates as low as 7% (FPR = 0.07 at ~80% sensitivity).

Limitations and Future Work

  • Data Exclusion Threshold: Features with >85% missingness were dropped; real-world commercial wearable datasets frequently surpass this missingness level.
  • Peak Sensitivity Gap: While the single foundation model scaled far better than patient-specific mixture models, its peak sensitivity capped at 92.8%, whereas the bespoke HetMM baseline reached 100% on this validation cohort.
  • Proprietary Data: The primary dataset is proprietary, limiting external reproduction to code releases and open benchmarks.
  • Future Work: The authors propose pairing the VQ-VAE codebook with autoregressive priors (such as PixelCNN or PixelRNN) to sample realistic synthetic patient trajectories and model long-term prognostic trajectories for underrepresented clinical cohorts.

Summary updated

BibTeX
@misc{oliver2025foundation,
  author = {Rodrigo Oliver and Josué Pérez Sabater and Diego Herrero-Quevedo and Antonio Artés and Alejandro Lancho and Pablo M. Olmos},
  title = {{A Foundation Model for Patient Behavior Monitoring and Suicide Detection}},
  year = {2025},
  eprint = {2503.15221},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.15221},
}
Figure