Predicting Depressive Relapse in Patients with Major Depressive Disorder Using AI from Smartphone Behavioral Data
Abstract
1. Introduction
1.1. Major Depressive Disorder, Relapse, and Recurrence
1.2. Digital Phenotyping as a Way to Monitor Depressive Symptoms and Predict Relapse
- Investigate the feasibility of using mobile smart phone applications to actively and passively to collect behavioral data;
- Identify associations in behavioral data with clinical symptoms and relapse in depression;
- Develop an algorithm, based on machine learning techniques, that will allow the early prediction of relapses in depression;
- Assess the efficacy of this algorithm.
1.3. Difficulty in Developing a Solution
1.4. Roadmap for This Article
2. Materials and Methods
2.1. Proposed Solution
2.2. Study Design and Plan
- proportion (incidence) of population;
- proportion (incidence) of study group;
- sample size for study group;
- probability of type I error;
- probability of type II error;
- critical value for a given or .
- , the relapse rate of total Singapore population;
- , the relapse rate of the study population;
- ;
- .
2.3. Inclusion and Exclusion Criteria
2.4. Withdrawal from Therapy or Assessment
2.5. Study Schedule
2.6. Smartphone Data Collection for Digital Phenotyping
- Activity: total step count.
- Activity type: classified as stationary, walking, running or moving in a vehicle.
- Charging: time the phone is currently connected to a charger.
- Device usage: amount of time the screen was locked or unlocked.
- Ambient light: measurements from the phone’s light sensor.
- Location: GPS-based location data.
2.7. Machine Learning Models for Predicting HAMD-17 Scores
2.8. Machine Learning Hyperparameters
3. Results
3.1. Maintaining Data Collection over the Study
3.2. Predicting HAMD-17 Scores
3.3. Predicting Depression Relapse
3.4. Predicting Anxiety Scores
4. Discussion
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
| MDD | Major Depressive Disorder |
| IMH | Institute of Mental Health, Singapore |
| HAMD-17 | Hamilton Rating Scale for Depression |
| ML | Machine Learning |
References
- Fan, Y.; Fan, A.; Yang, Z.; Fan, D. Global Burden of Mental Disorders in 204 Countries and Territories, 1990–2021: Results from the Global Burden of Disease Study 2021. BMC Psychiatry 2025, 25, 486. [Google Scholar] [CrossRef]
- Chong, S.A.; Abdin, E.; Vaingankar, J.A.; Heng, D.; Sherbourne, C.; Yap, M.; Lim, Y.W.; Wong, H.B.; Ghosh-Dastidar, B.; Kwok, K.W.; et al. A Population-Based Survey of Mental Disorders in Singapore. Ann. Acad. Med. Singap. 2012, 41, 49–66. [Google Scholar] [CrossRef]
- Stoudemire, A. Recurrence and Relapse in Geriatric Depression: A Review of Risk Factors and Prophylactic Treatment Strategies. J. Neuropsychiatry Clin. Neurosci. 1997, 9, 208–221. [Google Scholar] [CrossRef]
- Beshai, S.; Dobson, K.S.; Bockting, C.L.H.; Quigley, L. Relapse and Recurrence Prevention in Depression: Current Research and Future Prospects. Clin. Psychol. Rev. 2011, 31, 1349–1360. [Google Scholar] [CrossRef]
- Kessler, R.C.; Zhao, S.; Blazer, D.G.; Swartz, M. Prevalence, Correlates, and Course of Minor Depression and Major Depression in the National Comorbidity Survey. J. Affect. Disord. 1997, 45, 19–30. [Google Scholar] [CrossRef]
- Kessler, R.C.; Walters, E.E. Epidemiology of DSM-III-R Major Depression and Minor Depression among Adolescents and Young Adults in the National Comorbidity Survey. Depress. Anxiety 1998, 7, 3–14. [Google Scholar] [CrossRef]
- Moriarty, A.S.; Castleton, J.; Gilbody, S.; McMillan, D.; Ali, S.; Riley, R.D.; Chew-Graham, C.A. Predicting and Preventing Relapse of Depression in Primary Care. Br. J. Gen. Pract. 2020, 70, 54–55. [Google Scholar] [CrossRef]
- Burcusa, S.L.; Iacono, W.G. Risk for Recurrence in Depression. Clin. Psychol. Rev. 2007, 27, 959–985. [Google Scholar] [CrossRef]
- Smith, K.M.; Renshaw, P.F.; Bilello, J. The Diagnosis of Depression: Current and Emerging Methods. Compr. Psychiatry 2013, 54, 1–6. [Google Scholar] [CrossRef] [PubMed]
- Ingulfsvann Hagen, B.; Landrø, N.I.; Hoorelbeke, K.; Lau, B.; Stubberud, J. Characteristics Associated with the Discrepancy between Subjective and Objective Executive Functioning in Depression. Appl. Neuropsychol. Adult 2023, 30, 567–576. [Google Scholar] [CrossRef] [PubMed]
- Gauthier, G.; Mucha, L.; Shi, S.; Guerin, A. Economic Burden of Relapse/Recurrence in Patients with Major Depressive Disorder. J. Drug Assess. 2019, 8, 97–103. [Google Scholar] [CrossRef]
- Touya, M.; Lawrence, D.F.; Kangethe, A.; Chrones, L.; Evangelatos, T.; Polson, M. Incremental Burden of Relapse in Patients with Major Depressive Disorder: A Real-World, Retrospective Cohort Study Using Claims Data. BMC Psychiatry 2022, 22, 152. [Google Scholar] [CrossRef]
- Berges, I.M.; Amr, S.; Abraham, D.S.; Cannon, D.L.; Ostir, G.V. Associations between Depressive Symptoms and 30-Day Hospital Readmission among Older Adults. J. Depress. Anxiety 2015, 4, 185. [Google Scholar] [CrossRef]
- Torous, J.; Kiang, M.V.; Lorme, J.; Onnela, J.-P. New Tools for New Research in Psychiatry: A Scalable and Customizable Platform to Empower Data Driven Smartphone Research. JMIR Ment. Health 2016, 3, e16. [Google Scholar] [CrossRef]
- Bufano, P.; Laurino, M.; Said, S.; Tognetti, A.; Menicucci, D. Digital Phenotyping for Monitoring Mental Disorders: Systematic Review. J. Med. Internet Res. 2023, 25, e46778. [Google Scholar] [CrossRef] [PubMed]
- Jain, S.H.; Powers, B.W.; Hawkins, J.B.; Brownstein, J.S. The Digital Phenotype. Nat. Biotechnol. 2015, 33, 462–463. [Google Scholar] [CrossRef] [PubMed]
- Wang, R.; Aung, M.S.H.; Abdullah, S.; Brian, R.; Campbell, A.T.; Choudhury, T.; Hauser, M.; Kane, J.; Merrill, M.; Scherer, E.A.; et al. CrossCheck: Toward Passive Sensing and Detection of Mental Health Changes in People with Schizophrenia. In Proceedings of the 2016 ACM International Joint Conference on Pervasive and Ubiquitous Computing, Heidelberg, Germany, 12 September 2016; Association for Computing Machinery: New York, NY, USA, 2016; pp. 886–897. [Google Scholar]
- Barnett, I.; Torous, J.; Staples, P.; Sandoval, L.; Keshavan, M.; Onnela, J.-P. Relapse Prediction in Schizophrenia through Digital Phenotyping: A Pilot Study. Neuropsychopharmacology 2018, 43, 1660–1666. [Google Scholar] [CrossRef] [PubMed]
- Torous, J.; Onnela, J.-P.; Keshavan, M. New Dimensions and New Tools to Realize the Potential of RDoC: Digital Phenotyping via Smartphones and Connected Devices. Transl. Psychiatry 2017, 7, e1053. [Google Scholar] [CrossRef]
- Cornet, V.P.; Holden, R.J. Systematic Review of Smartphone-Based Passive Sensing for Health and Wellbeing. J. Biomed. Inform. 2018, 77, 120–132. [Google Scholar] [CrossRef]
- Choi, N.G.; Marti, C.N.; Choi, B.Y. Associations of Depression/Anxiety with Technology Use, Discontinued Use, and Nonuse in Older Adults. Clin. Gerontol. 2024, 49, 262–274. [Google Scholar] [CrossRef]
- Infocomm Media Development Authority (Singapore). Singapore Digital Society Report. Available online: https://www.imda.gov.sg/about-imda/research-and-statistics/singapore-digital-society-report (accessed on 12 October 2025).
- Boonstra, T.W.; Nicholas, J.; Wong, Q.J.; Shaw, F.; Townsend, S.; Christensen, H. Using Mobile Phone Sensor Technology for Mental Health Research: Integrated Analysis to Identify Hidden Challenges and Potential Solutions. J. Med. Internet Res. 2018, 20, e10131. [Google Scholar] [CrossRef]
- Maharjan, S.M.; Poudyal, A.; Van Heerden, A.; Byanjankar, P.; Thapa, A.; Islam, C.; Kohrt, B.A.; Hagaman, A. Passive Sensing on Mobile Devices to Improve Mental Health Services with Adolescent and Young Mothers in Low-Resource Settings: The Role of Families in Feasibility and Acceptability. BMC Med. Inform. Decis. Mak. 2021, 21, 117. [Google Scholar] [CrossRef] [PubMed]
- Masud, M.T.; Mamun, M.A.; Thapa, K.; Lee, D.H.; Griffiths, M.D.; Yang, S.-H. Unobtrusive Monitoring of Behavior and Movement Patterns to Detect Clinical Depression Severity Level via Smartphone. J. Biomed. Inform. 2020, 103, 103371. [Google Scholar] [CrossRef] [PubMed]
- Saeb, S.; Lattie, E.G.; Schueller, S.M.; Kording, K.P.; Mohr, D.C. The Relationship between Mobile Phone Location Sensor Data and Depressive Symptom Severity. PeerJ 2016, 4, e2537. [Google Scholar] [CrossRef]
- Ksibi, A.; Zakariah, M.; Menzli, L.J.; Saidani, O.; Almuqren, L.; Hanafieh, R.A.M. Electroencephalography-Based Depression Detection Using Multiple Machine Learning Techniques. Diagnostics 2023, 13, 1779. [Google Scholar] [CrossRef]
- Nepal, S.; Pillai, A.; Wang, W.; Griffin, T.; Collins, A.C.; Heinz, M.; Lekkas, D.; Mirjafari, S.; Nemesure, M.; Price, G.; et al. MoodCapture: Depression Detection Using In-the-Wild Smartphone Images. In Proceedings of the 2024 CHI Conference on Human Factors in Computing Systems, Honolulu, HI, USA, 11–16 May 2024; p. 996. [Google Scholar] [CrossRef]
- Walschots, Q.; Zarchev, M.; Unkel, M.; Kamperman, A. Using Wearable Technology to Detect, Monitor, and Predict Major Depressive Disorder—A Scoping Review and Introductory Text for Clinical Professionals. Algorithms 2024, 17, 408. [Google Scholar] [CrossRef]
- Burford, K.; Golaszewski, N.M.; Bartholomew, J. “I Shy Away from Them Because They Are Very Identifiable”: A Qualitative Study Exploring User and Non-User’s Perceptions of Wearable Activity Trackers. Digit. Health 2021, 7, 20552076211054920. [Google Scholar] [CrossRef]
- Ding, H.; Ho, K.; Searls, E.; Low, S.; Li, Z.; Rahman, S.; Madan, S.; Igwe, A.; Popp, Z.; Burk, A.; et al. Assessment of Wearable Device Adherence for Monitoring Physical Activity in Older Adults: Pilot Cohort Study. JMIR Aging 2024, 7, e60209. [Google Scholar] [CrossRef]
- Othmani, A.; Zeghina, A.O. A Multimodal Computer-Aided Diagnostic System for Depression Relapse Prediction Using Audiovisual Cues: A Proof of Concept. Healthc. Anal. 2022, 2, 100090. [Google Scholar] [CrossRef]
- Rao, K.; George, J.; Sudarshan, C.; Begum, S. Treatment Compliance and Noncompliance in Psychoses. Indian J. Psychiatry 2017, 59, 69. [Google Scholar] [CrossRef]
- Hopewell, S.; Chan, A.-W.; Collins, G.S.; Hróbjartsson, A.; Moher, D.; Schulz, K.F.; Tunn, R.; Aggarwal, R.; Berkwits, M.; Berlin, J.A.; et al. CONSORT 2025 Explanation and Elaboration: Updated Guideline for Reporting Randomised Trials. BMJ 2025, 389, e081124. [Google Scholar] [CrossRef]
- Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-Learn: Machine Learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
- Pallikkavaliyaveetil, N.; Chandrasekaran, S. Small Data, Big Challenges: Machine- and Deep-Learning Strategies for Data-Limited Drug Discovery. Adv. Drug Deliv. Rev. 2026, 229, 115762. [Google Scholar] [CrossRef]
- Sperandei, S. Understanding Logistic Regression Analysis. Biochem. Medica 2014, 24, 12–18. [Google Scholar] [CrossRef]
- Mienye, I.D.; Jere, N. A Survey of Decision Trees: Concepts, Algorithms, and Applications. IEEE Access 2024, 12, 86716–86727. [Google Scholar] [CrossRef]
- Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef]
- Ogunsanya, M.; Isichei, J.; Desai, S. Grid Search Hyperparameter Tuning in Additive Manufacturing Processes. Manuf. Lett. 2023, 35, 1031–1042. [Google Scholar] [CrossRef]
- Premchand, B.; Toe, K.K.; Wang, C.; Shaikh, S.; Libedinsky, C.; Ang, K.K.; So, R.Q. Decoding Movement Direction from Cortical Microelectrode Recordings Using an LSTM-Based Neural Network. In Proceedings of the 2020 42nd Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC), Virtual, 20–24 July 2020; IEEE: Montreal, QC, Canada, 2020; pp. 3007–3010. [Google Scholar]
- McMillan, K.; So, R.Q.; Libedinsky, C.; Ang, K.K.; Premchand, B. Spike-Weighted Spiking Neural Network with Spiking Long Short-Term Memory: A Biomimetic Approach to Decoding Brain Signals. Algorithms 2024, 17, 156. [Google Scholar] [CrossRef]
- Premchand, B.; Zhang, Z.; Ang, K.K.; Yu, J.; Tan, I.O.; Lam, J.P.W.; Choo, A.X.Y.; Sidarta, A.; Kwong, P.W.H.; Chung, L.H.C. A Personalized Multimodal BCI–Soft Robotics System for Rehabilitating Upper Limb Function in Chronic Stroke Patients. Biomimetics 2025, 10, 94. [Google Scholar] [CrossRef] [PubMed]
- Chen, J.; Cui, Y.; Wei, C.; Polat, K.; Alenezi, F. Driver Fatigue Detection Using EEG-Based Graph Attention Convolutional Neural Networks: An End-to-End Learning Approach with Mutual Information-Driven Connectivity. Appl. Soft Comput. 2026, 186, 114097. [Google Scholar] [CrossRef]
- Subramaniam, M. Stigma and Mental Health: Overcoming Barriers. Singapore Med. J. 2024, 65, 533. [Google Scholar] [CrossRef] [PubMed]
- Tan, G.T.H.; Shahwan, S.; Goh, C.M.J.; Ong, W.J.; Wei, K.-C.; Verma, S.K.; Chong, S.A.; Subramaniam, M. Mental Illness Stigma’s Reasons and Determinants (MISReaD) among Singapore’s Lay Public—A Qualitative Inquiry. BMC Psychiatry 2020, 20, 422. [Google Scholar] [CrossRef]
- Ahad, A.A.; Sanchez-Gonzalez, M.; Junquera, P. Understanding and Addressing Mental Health Stigma Across Cultures for Improving Psychiatric Care: A Narrative Review. Cureus 2023, 15, e39549. [Google Scholar] [CrossRef]
- Ben-Zeev, D.; Scherer, E.A.; Wang, R.; Xie, H.; Campbell, A.T. Next-Generation Psychiatric Assessment: Using Smartphone Sensors to Monitor Behavior and Mental Health. Psychiatr. Rehabil. J. 2015, 38, 218–226. [Google Scholar] [CrossRef]
- Singapore Department of Statistics Telecommunication Penetration Rate, Annual. Available online: https://data.gov.sg/datasets/d_07b1f52c84218d677cd518f0b81fa7f9/view (accessed on 19 November 2025).
- Stein-Shvachman, I. Depression Treatment Non-Adherence and Its Psychosocial Predictors: Differences between Young and Older Adults? Aging Dis. 2013, 4, 329–336. [Google Scholar] [CrossRef]
- Darnell, D.; Pullmann, M.D.; Hull, T.D.; Chen, S.; Areán, P. Predictors of Disengagement and Symptom Improvement Among Adults with Depression Enrolled in Talkspace, a Technology-Mediated Psychotherapy Platform: Naturalistic Observational Study. JMIR Form. Res. 2022, 6, e36521. [Google Scholar] [CrossRef]
- Fujiwara, K.; Huang, Y.; Hori, K.; Nishioji, K.; Kobayashi, M.; Kamaguchi, M.; Kano, M. Over- and Under-Sampling Approach for Extremely Imbalanced and Small Minority Data Problem in Health Record Analysis. Front. Public Health 2020, 8, 178. [Google Scholar] [CrossRef] [PubMed]
- Goldsack, J.C.; Coravos, A.; Bakker, J.P.; Bent, B.; Dowling, A.V.; Fitzer-Attas, C.; Godfrey, A.; Godino, J.G.; Gujar, N.; Izmailova, E.; et al. Verification, Analytical Validation, and Clinical Validation (V3): The Foundation of Determining Fit-for-Purpose for Biometric Monitoring Technologies (BioMeTs). npj Digit. Med. 2020, 3, 55. [Google Scholar] [CrossRef] [PubMed]



| Inclusion Criteria | Exclusion Criteria |
|---|---|
| Patients who have been diagnosed with depression using the Structured Clinical Interview for DSM-V (SCID-5) | Patients diagnosed with any of the psychotic disorders using the Structured Clinical Interview for DSM-V (SCID-5) |
| Currently in clinical remission of depression, as defined by HAMD-17 scores less than 7 | Patients not in remission at the point of recruitment |
| Aged over 21 years | |
| Other psychiatric comorbidities such as substance use are allowed | |
| Lives in Singapore | |
| English-speaking | |
| Participant owns and uses a smartphone that is able to launch the application | |
| Able to provide informed consent |
| Count | |
| Age range | |
| 21–30 | 22 |
| 31–40 | 10 |
| 41–50 | 3 |
| 51–60 | 5 |
| Gender | |
| Male | 17 |
| Female | 23 |
| Total | 40 |
| Follow-Up | Count (n) | Mean Duration of Recording (Days) | Active—Mood Survey | Passive-Activity | Passive-Activity Type | Passive-Charging | Passive-Device | Passive-Light | Passive-Location | Average Passive Engagement | Engagement Difference |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1st | 37 | 36 | 36% | 83% | 82% | 64% | 71% | 85% | 69% | 75% | 40% |
| 2nd | 35 | 73 | 22% | 84% | 84% | 61% | 68% | 86% | 61% | 74% | 52% |
| 3rd | 30 | 107 | 15% | 79% | 78% | 54% | 64% | 79% | 53% | 68% | 53% |
| Number of Output Classes | 2 Classes | 3 Classes | 4 Classes |
|---|---|---|---|
| Output classes | HAMD-17 score ≤ 16—None to mild depression | HAMD-17 score ≤ 16—None to mild depression | HAMD-17 score ≤ 7—No depression |
| HAMD-17 score ≥ 17—Moderate to severe depression | 17 ≤ HAMD-17 score ≤ 23—Moderate depression | 8 ≤ HAMD-17 score ≤ 16—Mild depression | |
| HAMD-17 score ≥ 24—Severe depression | 17 ≤ HAMD-17 score ≤ 23—Moderate depression | ||
| HAMD-17 score ≥ 24—Severe depression |
| HAMD-17 Class Prediction Accuracy—5-Fold Cross-Validation | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Accuracy ± 95% CI (%) | 2 Class Output | 3 Class Output | 4 Class Output | ||||||
| LR | DT | RF | LR | DT | RF | LR | DT | RF | |
| Activity | 66 ± 11 | 78 ± 10 | 88 ± 9 | 66 ± 11 | 75 ± 11 | 78 ± 10 | 65 ± 11 | 66 ± 11 | 75 ± 10 |
| Activity type | 70 ± 11 | 66 ± 10 | 78 ± 10 | 70 ± 10 | 72 ± 10 | 72 ± 11 | 65 ± 10 | 70 ± 10 | 70 ± 10 |
| Location | 66 ± 11 | 72 ±10 | 72 ± 11 | 66 ± 11 | 68 ± 11 | 66 ± 11 | 68 ± 11 | 66 ± 11 | 66 ± 12 |
| All combined | 72 ± 10 | 82 ± 9 | 91 ± 9 | 72 ± 10 | 78 ± 10 | 88 ± 9 | 68 ± 11 | 72 ± 10 | 78 ± 10 |
| Macro F1 Scores | 2 Class Output | 3 Class Output | 4 Class Output | ||||||
| LR | DT | RF | LR | DT | RF | LR | DT | RF | |
| Activity | 0.58 | 0.71 | 0.82 | 0.55 | 0.66 | 0.70 | 0.52 | 0.55 | 0.65 |
| Activity type | 0.63 | 0.59 | 0.72 | 0.60 | 0.64 | 0.65 | 0.53 | 0.60 | 0.62 |
| Location | 0.58 | 0.65 | 0.66 | 0.55 | 0.60 | 0.58 | 0.56 | 0.55 | 0.57 |
| All combined | 0.65 | 0.76 | 0.86 | 0.62 | 0.70 | 0.80 | 0.57 | 0.63 | 0.69 |
| Depression Relapse Prediction Accuracy—5-Fold Cross-Validation | |||
|---|---|---|---|
| Model | |||
| LR | DT | RF | |
| Activity | 68% | 79% | 83% |
| Activity type | 62% | 68% | 76% |
| Location | 72% | 79% | 79% |
| All combined | 76% | 83% | 86% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Premchand, B.; Kothari, N.; Tay, I.Q.; Shah, K.; Mok, Y.M.; Kuek, J.H.L.; Lim, W.O.; Ang, K.K. Predicting Depressive Relapse in Patients with Major Depressive Disorder Using AI from Smartphone Behavioral Data. Appl. Sci. 2026, 16, 3582. https://doi.org/10.3390/app16073582
Premchand B, Kothari N, Tay IQ, Shah K, Mok YM, Kuek JHL, Lim WO, Ang KK. Predicting Depressive Relapse in Patients with Major Depressive Disorder Using AI from Smartphone Behavioral Data. Applied Sciences. 2026; 16(7):3582. https://doi.org/10.3390/app16073582
Chicago/Turabian StylePremchand, Brian, Neeraj Kothari, Isabelle Q. Tay, Kunal Shah, Yee Ming Mok, Jonathan Han Loong Kuek, Wee Onn Lim, and Kai Keng Ang. 2026. "Predicting Depressive Relapse in Patients with Major Depressive Disorder Using AI from Smartphone Behavioral Data" Applied Sciences 16, no. 7: 3582. https://doi.org/10.3390/app16073582
APA StylePremchand, B., Kothari, N., Tay, I. Q., Shah, K., Mok, Y. M., Kuek, J. H. L., Lim, W. O., & Ang, K. K. (2026). Predicting Depressive Relapse in Patients with Major Depressive Disorder Using AI from Smartphone Behavioral Data. Applied Sciences, 16(7), 3582. https://doi.org/10.3390/app16073582

