Related Experiment Video
Updated: Jun 12, 2025

05:19
Author Spotlight: Therapeutic Benefit of Closed-Loop Deep Brain Stimulation in Depression Treatment
Published on: July 7, 2023
2.2K
Using Large Language Models to Detect Depression From User-Generated Diary Text Data as a Novel Approach in Digital
Daun Shin1,2, Hyoseung Kim3, Seunghwan Lee3
1Department of Psychiatry, Anam Hospital, Korea University, Seoul, Republic of Korea.
Journal of Medical Internet Research
|September 18, 2024
Summary
Large language models like ChatGPT can detect depression from user diary entries, offering a new objective screening method. This approach validates digital text as a valuable tool for mental health assessment.
Area of Science:
- Digital Health
- Computational Psychiatry
- Natural Language Processing
Background:
- Depression poses significant global challenges, impacting productivity and increasing disability.
- Current depression screening tools lack objectivity and accuracy.
- Emerging objective indicators include image analysis, biomarkers, and ecological momentary assessments (EMAs).
Purpose of the Study:
- To detect depression using user-generated diary text via a large language model (LLM).
- To validate semistructured diary text data as a valuable EMA source for depression assessment.
Main Methods:
- Participants completed depression (PHQ) and suicide risk (BSI) assessments.
- A 2-week diary writing period was implemented.
- Performance of LLMs (GPT-3.5, GPT-4) was evaluated using fine-tuning, zero-shot, and chain-of-thought prompting on diary text.
Main Results:
- GPT-3.5 fine-tuning achieved high accuracy (0.902) and specificity (0.955).
- GPT-3.5 without fine-tuning showed the highest balanced accuracy (0.844) with strong recall (0.929).
- Both GPT-3.5 and GPT-4 demonstrated effective depression risk recognition.
Conclusions:
- User-generated text data holds significant clinical potential for depression detection.
- LLMs show promise in analyzing qualitative digital expression for mental health.
- Future research should integrate qualitative digital expression with quantitative measures like activity data.
Related Concept Videos
Diagnostic and Statistical Manual of Mental Disorders (DSM)
48
The Diagnostic and Statistical Manual of Mental Disorders (DSM) serves as the primary classification system for mental health disorders, providing standardized diagnostic criteria for clinicians and researchers. First published by the American Psychiatric Association (APA) in 1952, the DSM has undergone several revisions to reflect evolving psychiatric understanding. The fifth edition, DSM-5, released in 2013, introduced key updates that expanded diagnostic categories and modified diagnostic...
48
Depressive Disorders: MDD and Dysthymia
67
Depressive disorders are a group of mental health conditions characterized by pervasive feelings of sadness, diminished pleasure in life, and a significant impact on daily functioning. These conditions are most prevalent in individuals during their 30s and affect women at twice the rate of men. Contrary to popular belief, younger individuals are generally more susceptible to these disorders than older adults. Two key types of depressive disorders include Major Depressive Disorder (MDD) and...
67

