Skip to main content
medRxiv
  • Home
  • About
  • Submit
  • ALERTS / RSS
Advanced Search

Digital phenotyping using wearable-determined physical behaviors and machine learning to detect depression and anxiety in a general population

View ORCID ProfileAlireza Sameh, View ORCID ProfileLaura Nauha, View ORCID ProfileMarjo Seppänen, View ORCID ProfileMaisa Niemelä, View ORCID ProfileMourad Oussalah, View ORCID ProfileRaija Korpelainen, View ORCID ProfileVahid Farrahi
doi: https://doi.org/10.1101/2025.09.01.25334782
Alireza Sameh
1Research Unit of Health Sciences and Technology, Faculty of Medicine, University of Oulu, Oulu, Finland
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Alireza Sameh
Laura Nauha
1Research Unit of Health Sciences and Technology, Faculty of Medicine, University of Oulu, Oulu, Finland
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Laura Nauha
Marjo Seppänen
3Department of Sports and Exercise Medicine, Oulu Deaconess Institute Foundation sr., Oulu, Finland
4Geography Research Unit, University of Oulu, Oulu, Finland
7Research Unit of Population Health, University of Oulu, Oulu, Finland
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Marjo Seppänen
Maisa Niemelä
1Research Unit of Health Sciences and Technology, Faculty of Medicine, University of Oulu, Oulu, Finland
5Centre for Wireless Communications, University of Oulu, Oulu, Finland
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Maisa Niemelä
Mourad Oussalah
1Research Unit of Health Sciences and Technology, Faculty of Medicine, University of Oulu, Oulu, Finland
2Centre of Machine Vision and Signal Analysis, Faculty of Information Technology and Electrical Engineering, University of Oulu, Oulu, Finland
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Mourad Oussalah
Raija Korpelainen
3Department of Sports and Exercise Medicine, Oulu Deaconess Institute Foundation sr., Oulu, Finland
6Medical Research Centre, Oulu University Hospital and University of Oulu, Oulu, Finland
7Research Unit of Population Health, University of Oulu, Oulu, Finland
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Raija Korpelainen
Vahid Farrahi
1Research Unit of Health Sciences and Technology, Faculty of Medicine, University of Oulu, Oulu, Finland
8Institute for Sportsand Sport Sciences, TU Dortmund University, Dortmund, Germany
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Vahid Farrahi
  • For correspondence: Vahid.farrahi{at}oulu.fi
  • Abstract
  • Full Text
  • Info/History
  • Metrics
  • Data/Code
  • Preview PDF
Loading

ABSTRACT

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 Statement

The authors have declared no competing interest.

Funding Statement

VF 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 manipulation

Author Declarations

I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.

Yes

The 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.

Yes

I 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).

Yes

I have followed all appropriate research reporting guidelines, such as any relevant EQUATOR Network research reporting checklist(s) and other pertinent material, if applicable.

Yes

Data Availability

NFBC data is available to qualified researchers by applying through the University of Oulu's NFBC project center.

Copyright 
The copyright holder for this preprint is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. It is made available under a CC-BY 4.0 International license.
Back to top
PreviousNext
Posted September 02, 2025.
Download PDF
Data/Code
Email

Thank you for your interest in spreading the word about medRxiv.

NOTE: Your email address is requested solely to identify you as the sender of this article.

Enter multiple addresses on separate lines or separate them with commas.
Digital phenotyping using wearable-determined physical behaviors and machine learning to detect depression and anxiety in a general population
(Your Name) has forwarded a page to you from medRxiv
(Your Name) thought you would like to see this page from the medRxiv website.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Share
Digital phenotyping using wearable-determined physical behaviors and machine learning to detect depression and anxiety in a general population
Alireza Sameh, Laura Nauha, Marjo Seppänen, Maisa Niemelä, Mourad Oussalah, Raija Korpelainen, Vahid Farrahi
medRxiv 2025.09.01.25334782; doi: https://doi.org/10.1101/2025.09.01.25334782
Twitter logo Facebook logo LinkedIn logo Mendeley logo
Citation Tools
Digital phenotyping using wearable-determined physical behaviors and machine learning to detect depression and anxiety in a general population
Alireza Sameh, Laura Nauha, Marjo Seppänen, Maisa Niemelä, Mourad Oussalah, Raija Korpelainen, Vahid Farrahi
medRxiv 2025.09.01.25334782; doi: https://doi.org/10.1101/2025.09.01.25334782

Citation Manager Formats

  • BibTeX
  • Bookends
  • EasyBib
  • EndNote (tagged)
  • EndNote 8 (xml)
  • Medlars
  • Mendeley
  • Papers
  • RefWorks Tagged
  • Ref Manager
  • RIS
  • Zotero
  • Tweet Widget
  • Facebook Like
  • Google Plus One

Subject Area

  • Sports Medicine
Subject Areas
All Articles
  • Addiction Medicine (576)
  • Allergy and Immunology (868)
  • Anesthesia (306)
  • Cardiovascular Medicine (4483)
  • Dentistry and Oral Medicine (449)
  • Dermatology (385)
  • Emergency Medicine (615)
  • Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1528)
  • Epidemiology (15282)
  • Forensic Medicine (31)
  • Gastroenterology (1134)
  • Genetic and Genomic Medicine (6650)
  • Geriatric Medicine (671)
  • Health Economics (1006)
  • Health Informatics (4606)
  • Health Policy (1378)
  • Health Systems and Quality Improvement (1624)
  • Hematology (544)
  • HIV/AIDS (1276)
  • Infectious Diseases (except HIV/AIDS) (15965)
  • Intensive Care and Critical Care Medicine (1111)
  • Medical Education (626)
  • Medical Ethics (147)
  • Nephrology (674)
  • Neurology (6698)
  • Nursing (346)
  • Nutrition (1006)
  • Obstetrics and Gynecology (1153)
  • Occupational and Environmental Health (961)
  • Oncology (3370)
  • Ophthalmology (988)
  • Orthopedics (370)
  • Otolaryngology (421)
  • Pain Medicine (437)
  • Palliative Medicine (131)
  • Pathology (670)
  • Pediatrics (1704)
  • Pharmacology and Therapeutics (700)
  • Primary Care Research (717)
  • Psychiatry and Clinical Psychology (5497)
  • Public and Global Health (9287)
  • Radiology and Imaging (2225)
  • Rehabilitation Medicine and Physical Therapy (1375)
  • Respiratory Medicine (1202)
  • Rheumatology (598)
  • Sexual and Reproductive Health (721)
  • Sports Medicine (536)
  • Surgery (722)
  • Toxicology (100)
  • Transplantation (290)
  • Urology (267)