Digital phenotyping using wearable-determined physical behaviors and machine learning to detect depression and anxiety in a general population - Sameh, Alireza; Nauha, Laura; Seppänen, Marjo; Niemelä, Maisa; Oussalah, Mourad; Korpelainen, Raija; Farrahi, Vahid (medRxiv, 2025)
Objective Depression and anxiety are widespread mental health disorders, yet their diagnosis remains challenging. Digital phenotyping with wearable devices provides a promising approach for detecting depression and anxiety in the general population. This study aims to explore the extent to which wearable accelerometer-determined physical behavior metrics can be used as digital phenotypes for identifying individuals with and without depression and anxiety symptoms using machine learning (ML) algorithms.Methods At age 46 years old, participants (N = 2,810) from the Northern Finland Birth Cohort 1966 carried wrist- and waist-worn accelerometers for 14 consecutive days. Physical activity and sedentary behaviors were measured using data from the waist-worn device, while sleep behavior was identified based on data from the wrist-worn accelerometer. A total of 54 physical behavior metrics were extracted for each participant. Severity of the depression and anxiety symptoms were assessed using three validated instruments: the Beck Depression Inventory-II, Generalized Anxiety Disorder-7, and the Hopkins Symptom Checklist-25. Five ML algorithms were applied to identify individuals with and without depression and anxiety symptoms. Model interpretability was enhanced using SHapley Additive exPlanations (SHAP) to assess the contribution of individual features.Results Among ML models, random forest achieved the best performance with accuracy (66%–72%) and AUC (66%–70%) for all three instruments. Physical behavior metrics extracted from accelerometers emerged as potential predictors of depression and anxiety. In SHAP analysis wake up time, time in bed, bed time, physical activity intensity proportions and prolonged sedentary bouts emerged as most important features.Conclusions Wearable-derived metrics of physical behaviors combined with ML models can be utilized with reasonably good accuracy to differentiate between participants with and without depression and anxiety symptoms. Our findings support the utility of wearable-derived physical behavior digital phenotypes for differentiating between participants with and without depression and anxiety symptoms in a general population.Competing Interest StatementThe authors have declared no competing interest.Funding StatementVF is supported by TU Dortmund university. The present study is connected to the DigiHealth and 6GESS strategic profiling projects at the University of Oulu supported by the Research Council of Finland (project number 326291, 336449) and the University of Oulu. This study has also received funding from the Ministry of Education and Culture in Finland [grant numbers OKM/20/626/2022, OKM/76/626/2022, OKM/68/626/2023]. The funders played no role in designing the study; collecting, analyzing, and interpreting the data; or writing the manuscript. The results of the study are presented honestly and without fabrication, falsification, or inappropriate data manipulationAuthor DeclarationsI confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.YesThe details of the IRB/oversight body that provided approval or exemption for the research described are given below:NFBC1966 was approved by the Ethical Committee of the Northern Ostrobothnia Hospital District (94/2011), and written informed consent was obtained from all participants.I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals.YesI understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).YesI have followed all appropriate research reporting guidelines, such as any relevant EQUATOR Network research reporting checklist(s) and other pertinent material, if applicable.YesNFBC data is available to qualified researchers by applying through the University of Oulu’s NFBC project center.