Introduction
Monitoring mental health at scale remains a significant challenge for clinicians and researchers alike. While smartphones facilitate "in-the-wild" data collection through self-reporting, the resulting datasets are often sparse, noisy, and non-homogeneous. Traditional forecasting models, such as Hidden Markov Models (HMMs) or Autoregressive (AR) models, frequently struggle to generalize across diverse user populations. Furthermore, standard machine learning regressors typically predict only a single time step, leading to compounding errors when forecasting over longer horizons. This research addresses these challenges by developing a robust deep learning framework to forecast sequences of future mood states from messy, real-world behavioral data.
Dataset and Data Sparsity
The study utilized a large-scale dataset collected via an Android mood-tracking application between 2013 and 2016, comprising 735,778 self-reports from over 17,000 users. For the machine learning experiments, the authors filtered this to a subset of 566 users with at least 100 days of data, totaling 177,111 unique reports.
The data is characterized by significant sparsity; many users provide reports inconsistently, creating gaps in the time series. The mood reports are mapped to an "Affect Grid" defined by two dimensions: Valence (pleasure vs. displeasure) and Arousal (sleepiness vs. activeness).
Methodology: Multi-task Seq2Seq Learning
The proposed model is a Multi-task Encoder-Decoder LSTM (Long Short-Term Memory) network designed to handle the temporal dependencies and irregularities of mood data.
- Encoder-Decoder Architecture: Borrowing from sequence-to-sequence (Seq2Seq) models used in machine translation, the "Encoder" LSTM compresses past mood sequences into a fixed-length latent vector. The "Decoder" then reconstructs this vector into a sequence of future predictions, allowing for multi-day forecasting without recursive error propagation.
- Multi-task Learning (MTL): Rather than training separate models for valence and arousal, the network predicts both dimensions simultaneously. This approach exploits the underlying correlations between emotional valence and energetic arousal.
- Masking for Sparsity: To accommodate missing data without introducing bias through poor imputation, a masking layer allows the LSTM to skip time-steps where no report was provided.
Key Results and Insights
The model achieved a minimum error of ±0.14 on the [0,1] Affect Grid for next-day predictions, maintaining a low error of ±0.16 up to seven days in advance. It consistently outperformed traditional baselines like Support Vector Regressors (SVR) and Gradient Boosting Regressors (GBR).
- The Three-Week History Rule: Testing various history lengths revealed that three weeks of historical data is the "sweet spot." Performance degraded with four weeks of data, suggesting that older mood states may act as noise rather than useful signals for near-term forecasting.
- Cross-Dimension Benefits: Multi-task learning significantly improved arousal predictions, indicating that energy levels are deeply tied to emotional valence patterns.
- Temporal and Personality Factors: The model demonstrated higher accuracy on weekends, likely due to more consistent routines. Additionally, performance was higher for users scoring high in "Openness" on the Big-5 personality scale.
- Internal Representations: PCA analysis of the LSTM's internal states showed that the model naturally organizes information along a positive-to-negative mood continuum, despite no explicit instruction to do so.
Conclusion
This work demonstrates the efficacy of multi-task sequence learning for mental wellbeing forecasting. While the model excels at identifying trends in stable users, future work is needed to address highly variable "at-risk" trajectories. Integrating passive sensing data (e.g., sleep, activity) with subjective self-reports could further enhance the objectivity and predictive power of such mental health monitoring tools.
Summary updated