Digital Phenotyping of Behavioral Instability as an Early Detection of Clinically Relevant Deterioration in Mental Health: Prospective Observational Multicenter Study
Year: 2026
Type: article
Study design: Observational Study
Abstract: Background: Early detection of clinically relevant changes remains a major challenge in mental health, as deterioration unfolds through subtle alterations in daily functioning. Advances in digital phenotyping and smartphone-based monitoring offer new opportunities to capture real-world settings. However, existing approaches rely on active self-reports, and few studies have examined whether within-person instability in passively sensed behavior can anticipate clinically recorded relapse events across diagnoses. Objective: This study aimed to adapt and evaluate an algorithm detecting behavioral changes associated with deterioration using passively collected smartphone data from a prospective, multicenter project investigating smartphone-based behavioral monitoring in adults with mental health conditions, to evaluate its performance in-sample and examine whether instability in behavioral patterns can serve as an early marker of relapse. Methods: We conducted a prospective, observational, multicenter study including 92 adult participants with mental health conditions (bipolar disorder, personality disorder, substance use disorder, and dual pathology) recruited from 2 specialized mental health centers in Madrid, Spain. Passive behavioral data, including physical activity, mobility, phone use, sleep, and daily routine indicators, were collected using a mobile app over periods ranging from 1 month to 1 year (mean follow-up of 123, SD 94.85 days). Behavioral profiles were generated using heterogeneous mixture models, and changes in behavioral stability were detected using a Bayesian online change-point detection approach. Model hyperparameters and source combinations were selected by grid search and heuristic exploration, and performance was evaluated in-sample by comparing detected change points with relapse events recorded in the electronic health record, using receiver operating characteristic analysis. Results: Forty relapse events with available passive data were included in the analysis. The best-performing model achieved a mean in-sample area under the curve of 82.99% (SD 2.49%). At a false positive rate (FPR) of 5%, the model reached an average true positive rate (TPR) of 40.12% (95% CI 36.61%-43.63%), increasing to 61.10% (95% CI 56.42%-65.79%) at 10% FPR. Model performance was influenced by the temporal aggregation parameter, with optimal results obtained using minimal accumulation of past observations. Multimodal combinations integrating sleep, activity, and routine structure achieved the highest performance. These operating points correspond to decision thresholds matched at the specified FPR values, and the reported intervals reflect variability across 10 stochastic reruns on the same dataset rather than out-of-sample generalization. Performance showed run-to-run variability (maximum TPR of 53.58% vs mean TPR of 40.12%, SD 5.66% at 5% FPR), indicating limited stability. Conclusions: Behavioral instability shows preliminary potential for the early detection of behavioral changes associated with clinically relevant deterioration. Because hyperparameters, source combinations, and thresholds were tuned on the same events used for evaluation, the performance should be interpreted as an in-sample estimate, and external validation is required before clinical application.
Source: JMIR Formative Research
DOI: 10.2196/98935
Language: English
Subfield: Experimental and Cognitive Psychology
Field: Psychology
Domain: Social Sciences
Keywords: digital phenotyping, early relapse detection, mental health deterioration, smartphone-based monitoring, passive sensing, Bayesian online change point detection, sleep, physical activity, daily routine, bipolar disorder, personality disorders, substance use disorders, dual pathology, temporal aggregation, electronic health records, clinical decision support, mobile health apps
Open Access status: gold
Estimated APC paid: $1,900
OpenAlex ID: W7222176123
