Subject-aware deep learning for forecasting a Mental Health Index from passive smartphone sensing in university students: prediction model development and temporal validation

Background Deep learning models conditioned on subject identity are increasingly proposed for personalized forecasting of mental health from passive smartphone sensing. Their reported gains are rarely tested under strictly causal evaluation, and data leakage can inflate them. We asked whether identity conditioning improves next-day forecasting of a daily well-being index, and how much common leakage sources inflate apparent performance. Methods We analysed 19 students from the public StudentLife dataset (846 participant-days; 682 for development and 164 in a calendar hold-out). A causal, bounded Mental Health Index (MHI, \(\:-1\) to \(\:1\)) was derived from ecological momentary assessments relative to each person’s own past. Four sequence encoders (gated recurrent unit, temporal convolutional network, Transformer and a TimesFM-inspired patch model) were combined with five identity strategies, trained with 10 random seeds and compared with nine baselines. Additional analyses comprised equivalence testing, validity against the Patient Health Questionnaire-9 (PHQ-9) and a leakage audit that reintroduced four leakage sources, singly and combined. Results No model forecast next-day MHI better than the hold-out mean (all hold-out \(\:{R}^{2}<0\)). The lowest error came from an exponentially weighted mean of past MHI (mean absolute error [MAE] 0.481, 95% CI 0.407–0.547); the best sensor-only deep model reached 0.498, versus 0.499 for a zero forecast. Identity conditioning did not improve accuracy (all eight primary comparisons Holm-adjusted \(\:p=1.00\)), and seven of eight comparisons were equivalent within \(\:\pm\:0.027\) MAE. The MHI was negatively correlated with PHQ-9 scores (Spearman \(\:\rho\:\) \(\:-0.29\) to \(\:-0.36\) across windows; 95% CI excluding zero in one of four). In the leakage audit, augmenting data before splitting raised the cross-validated \(\:{R}^{2}\) of a tree ensemble from \(\:-0.20\) to 0.57, and combining all sources raised that of deep models to 0.08–0.45 while their hold-out \(\:{R}^{2}\) deteriorated to between \(\:-0.81\) and \(\:-0.43\). Conclusions Under causal evaluation, no sensing model forecast next-day MHI better than the hold-out mean, and subject identity added no accuracy. A single leakage source can make models without predictive value appear strong in cross-validation. We recommend leakage audits and equivalence-based reporting for personalized digital phenotyping models.

Authors

Institutions

Publication Details

Journal
Research Square
Published
2026-11-23
DOI
https://doi.org/10.21203/rs.3.rs-11382695/v1
Primary Topic
Mental Health Research Topics
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Subject-aware deep learning for forecasting a Mental Health Index from passive smartphone sensing in university students: prediction model development and temporal validation

Desy Iba Ricoida, Retno Aulia Vinarti, Ahmad Mukhlason
Research Square
Mental Health Research Topics
preprint

Subject-aware deep learning for forecasting a Mental Health Index from passive smartphone sensing in university students: prediction model development and temporal validation

Desy Iba Ricoida, Retno Aulia Vinarti, Ahmad Mukhlason
preprint en

Abstract

Background Deep learning models conditioned on subject identity are increasingly proposed for personalized forecasting of mental health from passive smartphone sensing. Their reported gains are rarely tested under strictly causal evaluation, and data leakage can inflate them. We asked whether identity conditioning improves next-day forecasting of a daily well-being index, and how much common leakage sources inflate apparent performance. Methods We analysed 19 students from the public StudentLife dataset (846 participant-days; 682 for development and 164 in a calendar hold-out). A causal, bounded Mental Health Index (MHI, \(\:-1\) to \(\:1\)) was derived from ecological momentary assessments relative to each person’s own past. Four sequence encoders (gated recurrent unit, temporal convolutional network, Transformer and a TimesFM-inspired patch model) were combined with five identity strategies, trained with 10 random seeds and compared with nine baselines. Additional analyses comprised equivalence testing, validity against the Patient Health Questionnaire-9 (PHQ-9) and a leakage audit that reintroduced four leakage sources, singly and combined. Results No model forecast next-day MHI better than the hold-out mean (all hold-out \(\:{R}^{2}<0\)). The lowest error came from an exponentially weighted mean of past MHI (mean absolute error [MAE] 0.481, 95% CI 0.407–0.547); the best sensor-only deep model reached 0.498, versus 0.499 for a zero forecast. Identity conditioning did not improve accuracy (all eight primary comparisons Holm-adjusted \(\:p=1.00\)), and seven of eight comparisons were equivalent within \(\:\pm\:0.027\) MAE. The MHI was negatively correlated with PHQ-9 scores (Spearman \(\:\rho\:\) \(\:-0.29\) to \(\:-0.36\) across windows; 95% CI excluding zero in one of four). In the leakage audit, augmenting data before splitting raised the cross-validated \(\:{R}^{2}\) of a tree ensemble from \(\:-0.20\) to 0.57, and combining all sources raised that of deep models to 0.08–0.45 while their hold-out \(\:{R}^{2}\) deteriorated to between \(\:-0.81\) and \(\:-0.43\). Conclusions Under causal evaluation, no sensing model forecast next-day MHI better than the hold-out mean, and subject identity added no accuracy. A single leakage source can make models without predictive value appear strong in cross-validation. We recommend leakage audits and equivalence-based reporting for personalized digital phenotyping models.

Research Square
Sepuluh Nopember Institute of Technology (ID)
Mental Health Research Topics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon