Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • apa.csl
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Explainable AI for Depression Detection and Severity Classification From Activity Data: Development and Evaluation Study of an Interpretable Framework
University of Europe for Applied Sciences, Germany.
University of Europe for Applied Sciences, Germany.
University of Europe for Applied Sciences, Germany.
University of Europe for Applied Sciences, Germany.
Show others and affiliations
2025 (English)In: JMIR Mental Health, E-ISSN 2368-7959, Vol. 12, article id e72038Article in journal (Refereed) Published
Abstract [en]

Background: Depression is one of the most prevalent mental health disorders globally, affecting approximately 280 million people and frequently going undiagnosed or misdiagnosed. The growing ubiquity of wearable devices enables continuous monitoring of activity levels, providing a new avenue for data-driven detection and severity assessment of depression. However, existing machine learning models often exhibit lower performance when distinguishing overlapping subtypes of depression and frequently lack explainability, an essential component for clinical acceptance. Objective: This study aimed to develop and evaluate an interpretable machine learning framework for detecting depression and classifying its severity using wearable-actigraphy data, while addressing common challenges such as imbalanced datasets and limited model transparency. Methods: We used the Depresjon dataset and applied Adaptive Synthetic Sampling (ADASYN) to mitigate class imbalance. We extracted multiple statistical features (eg, power spectral density mean and autocorrelation) and demographic attributes (eg, age) from the raw activity data. Five machine learning algorithms (logistic regression, support vector machines, random forest, XGBoost, and neural networks) were assessed via accuracy, precision, recall, F1-score, specificity, and Matthew correlation constant. We further used Shapley Additive Explanations (SHAP) and Local Interpretable Model-agnostic Explanations (LIME) to elucidate prediction drivers. Results: XGBoost achieved the highest overall accuracy of 84.94% for binary classification and 85.91% for multiclass severity. SHAP and LIME revealed power spectral density mean, age, and autocorrelation as top predictors, highlighting circadian disruptions' role in depression. Conclusions: Our interpretable framework reliably identifies depressed versus nondepressed individuals and differentiates mild from moderate depression. The inclusion of SHAP and LIME provides transparent, clinically meaningful insights, emphasizing the potential of explainable artificial intelligence to enhance early detection and intervention strategies in mental health care.

Place, publisher, year, edition, pages
JMIR Publications, 2025. Vol. 12, article id e72038
Keywords [en]
artificial intelligence, explainable AI, depression, mental health, machine learning, activity data
National Category
Computer Sciences Psychiatry
Research subject
Computer Science
Identifiers
URN: urn:nbn:se:kau:diva-107041DOI: 10.2196/72038ISI: 001569619000002PubMedID: 40934462Scopus ID: 2-s2.0-105015873207OAI: oai:DiVA.org:kau-107041DiVA, id: diva2:2001426
Available from: 2025-09-26 Created: 2025-09-26 Last updated: 2025-10-16Bibliographically approved

Open Access in DiVA

fulltext(1125 kB)56 downloads
File information
File name FULLTEXT01.pdfFile size 1125 kBChecksum SHA-512
e4dc32e80e246ee11e405c3a55af8718b702962668d488f397bc713b65f02f4d614d0a6b020d0d9ad38424dc732a5231cb67d1a6c0312fa22be2cd8a53359e3e
Type fulltextMimetype application/pdf

Other links

Publisher's full textPubMedScopus

Authority records

Ahmad, Muhammad Ovais

Search in DiVA

By author/editor
Ahmad, Muhammad Ovais
By organisation
Department of Mathematics and Computer Science (from 2013)
In the same journal
JMIR Mental Health
Computer SciencesPsychiatry

Search outside of DiVA

GoogleGoogle Scholar
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

doi
pubmed
urn-nbn

Altmetric score

doi
pubmed
urn-nbn
Total: 915 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • apa.csl
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf