Introduction
Digital Phenotyping (DP) represents a transformative approach in psychiatry, utilizing passive data collection from smartphones and wearables to monitor mental health. By tracking metrics such as physical activity, sleep patterns, and location clusters, clinicians can gain insights into a patient's daily life without intrusive self-reporting. However, the practical application of DP has been hindered by three primary challenges: extreme data heterogeneity across sensors, massive missingness (often exceeding 80%), and the difficulty of detecting subtle but critical behavioral "shifts" that precede a crisis.
This paper introduces the Vector-Quantized Time-Series Foundation Model (VQ-TSFM), a novel architecture designed to overcome these hurdles. By leveraging discrete latent representations, VQ-TSFM acts as a robust foundation model capable of both high-fidelity signal reconstruction and unsupervised detection of high-risk behavioral changes, such as those associated with suicide risk.
The VQ-TSFM Architecture
At its core, VQ-TSFM utilizes a Vector-Quantized Variational Autoencoder (VQ-VAE) to map complex, multi-source behavioral data into a discrete "codebook" of latent embeddings. This codebook serves as a library of "behavioral archetypes," effectively denoising the raw signal into a sequence of interpretable states.
One of the model's key innovations is its approach to data missingness. The researchers explored both explicit masking and an "implicit" method where the model learns to reconstruct signals from zero-imputed data. Surprisingly, the implicit model proved highly effective, suggesting that the VQ structure naturally captures the underlying patterns of missing data without requiring complex, hand-engineered features.
Dataset and Training
The model was trained and validated on a massive real-world dataset provided by Evidence-Based Behavior (eB2). This dataset includes over 1.1 million entries from 5,532 patients across 39 independent clinical programs, covering conditions ranging from eating disorders to oncology and suicide risk. With 64 variables spanning eight years, the dataset provided a rigorous testing ground for the model's ability to handle the "messiness" of real-world clinical data.
Unsupervised Change-Point Detection
The most significant advantage of the discrete VQ-TSFM over traditional continuous embedding models is its superior performance in Unsupervised Change-Point Detection (CPD). In psychiatric monitoring, the most critical information is often not the absolute value of a metric, but a sudden change in the statistical properties of a patient's behavior.
By analyzing the sequence of codebook entries (the "behavioral profile") over time, the model can identify abrupt shifts in mental health states. This process is entirely unsupervised, meaning the model can flag potential crises without needing labeled "crisis" data for every individual patient.
Key Results and Insights
The study revealed a fundamental trade-off between discrete and continuous representations. While continuous models (like the Informer baseline) excel at supervised tasks such as emotion prediction, they struggle with the interpretability required for change-point detection. VQ-TSFM, by contrast, achieved an AUC of 0.87 in predicting suicidal events in an unsupervised setting—matching the performance of highly personalized, non-scalable models.
Furthermore, for the supervised task of predicting emotional valence, VQ-TSFM maintained strong performance with an AUC of 0.909. This suggests that the discrete embeddings retain enough high-fidelity information to be useful for classification while providing the "denoising" effect necessary for robust monitoring.
Conclusion
VQ-TSFM demonstrates that foundation models can be successfully applied to the challenging domain of digital phenotyping. By prioritizing scalability and unsupervised shift detection, the model offers a path toward real-time, passive monitoring of high-risk patients. Future work will likely explore hybrid architectures that combine the strengths of discrete and continuous latent spaces, further refining our ability to detect the subtle behavioral signatures of mental health crises.
Summary updated