Work

Developing AI for Mental Health: Recognizing Psychological Disorders from Social Media Posts

Year: 2025
Type: dissertation
Abstract: In recent years, mental health issues have surged globally, while on the contrary, the availability of qualified professionals has not kept pace, hindering timely and comprehensive care. Consequently, many psychological disorders go undetected, often resulting in poorer long-term outcomes. To address this gap, this study investigates the impact of RAG-based classification on detecting psychological disorders from X (formerly Twitter) posts. Therefore, this study formulated both binary (disorder vs. no disorder) and multiclass (three distinct psychological states) classification tasks and compared baseline LLMs, few-shot RAG-based classification and a RAG-based classification setup. Tweets were used to retrieve relevant external context from a vector database, which, together with few-shot examples, was included in a prompt for LLM-based classification. Results indicated that binary classification outperforms multiclass tasks, with macro-F₁ scores up to 0.95. Document retrieval alone produced mixed effects while it improved suicide detection but reduced performance on depression. However, combining it with few-shot prompting led to consistent gains across all tasks. Few-shot prompting reduced classification error rates by up to 5.6 percentage points, especially for challenging cases with subtle or ambiguous signals. However, multiclass classification remained difficult due to lexical overlap between depressive and suicidal language, with macro-F₁ scores plateauing around 0.76-0.78 even in the best configurations. These findings suggest that while RAG-based prompting improves classification performance, especially when augmented with few-shot examples, further refinement is needed for reliable multiclass mental health screening.
Author: Mashayekhi, Helena-Leila Marie
Language: English
Field: Psychology
Open Access status: green
OpenAlex ID: W7112600797
Cites: 61
Cited by:
Related to: 10