Explainable Depression Detection in Clinical Interviews with Personalized Retrieval-Augmented Generation

Linhai Zhang, Ziyang Gao, Deyu Zhou, Yulan He · DOI

Abstract

Automated depression detection from clinical interviews offers a scalable solution to the global mental health crisis. However, existing systems often suffer from a lack of transparency, susceptibility to hallucinations, and a failure to account for individual patient contexts. This paper introduces RED (Retrieval-augmented generation for Explainable depression Detection), a framework that leverages personalized retrieval-augmented generation and social intelligence knowledge graphs. RED extracts specific evidence from interview transcripts to justify its predictions, significantly outperforming traditional black-box models and standard large language model (LLM) approaches.

1. Introduction

Clinical interviews remain the gold standard for diagnosing depression, yet they are resource-intensive. While artificial intelligence (AI) has the potential to automate aspects of these assessments, three primary hurdles remain: the "black-box" nature of neural networks, the tendency for LLMs to hallucinate evidence, and the "personalization gap" where models fail to interpret symptoms within a patient's unique life context.

To address these challenges, we present RED. Unlike previous models that provide a binary "depressed/not depressed" label without justification, RED is designed to be transparent and grounded. It utilizes a multi-stage pipeline to retrieve specific dialogue snippets as evidence, ensuring that every diagnostic claim is backed by the source text.

2. The RED Framework

The RED framework moves beyond simple text classification by implementing a retrieval-augmented generation (RAG) architecture tailored for clinical nuances.

2.1 Personalized Query Generation

Standard RAG systems often use generic queries. RED, however, first employs an LLM to infer a "User Profile" from the interview transcript. This profile captures the patient's background, which is then used to generate personalized queries for each of the eight PHQ-8 (Patient Health Questionnaire) categories, such as sleep patterns, appetite, and energy levels. This ensures that the search for evidence is context-aware.

2.2 Adaptive Retrieval and the "Judge" Module

The system retrieves dialogue snippets as potential evidence. To ensure the quality of this evidence, RED incorporates an LLM-based "Judge" module. This module evaluates whether the retrieved snippets are sufficient to make a clinical judgment. If the evidence is deemed insufficient, the system iteratively generates new queries to explore the transcript further, mimicking the investigative nature of a human clinician.

3. Enhancing Social Intelligence

A significant limitation of standard LLMs is their lack of "social common sense"—the ability to understand the psychological weight of specific life events. RED addresses this through Social Intelligence Enhancement (SI-Enh).

3.1 Cognitive Knowledge Graph Integration

The framework extracts "event triplets" (Subject-Predicate-Object) from the dialogue and matches them against COKE, a cognitive knowledge graph. COKE contains cognitive chains describing human mental activities and behavioral responses. By linking patient experiences to this structured knowledge, RED gains "theory of mind" insights, allowing it to understand how specific events might trigger emotional responses in a social context.

3.2 Event-Centric Retrieval with MORE-CL

To facilitate accurate matching between dialogue and the knowledge graph, RED utilizes MORE-CL. This encoder projects events into a Gaussian embedding space, enabling more nuanced, event-centric retrieval than traditional keyword-based methods.

4. Experimental Evaluation

The framework was evaluated using the DAIC-WoZ dataset, a benchmark containing transcripts from 189 clinical interviews.

4.1 Performance Metrics

RED achieved state-of-the-art results, reaching a Macro F1 Score of 90.00%. This performance significantly exceeds that of the best neural network baseline, SEGA++ (87.76%), and Naive RAG approaches (84.39%).

4.2 Class-Specific Accuracy and Explanation Quality

The model was particularly robust in identifying the "Depressed" class, achieving an F1 score of 87.83%. In contrast, direct prompting with GPT-4o only achieved 67.81%, highlighting the necessity of the RAG and personalization components. Furthermore, RED demonstrated high precision (86-90%) in evidence extraction, confirming that the retrieved snippets were highly relevant to the final diagnosis.

5. Discussion and Conclusion

The success of RED underscores the importance of grounding AI predictions in verifiable evidence. By forcing the model to select—rather than generate—explanations from the source text, the framework effectively eliminates hallucinations. Additionally, the integration of social intelligence helps "calibrate" scores, improving sensitivity for patients whose symptoms might otherwise be underestimated due to incomplete interview coverage.

5.1 Limitations and Future Work

While promising, the study is limited by the small sample size of the DAIC-WoZ dataset. Furthermore, RED currently focuses exclusively on text. Future iterations could incorporate multimodal data, such as vocal prosody and facial expressions, to provide a more holistic assessment. Ultimately, RED is intended as a decision-support tool for mental health professionals, and future research will focus on how to best integrate these AI-generated justifications into clinical workflows.

Summary updated

BibTeX
@inproceedings{zhang2025explainable,
  author = {Linhai Zhang and Ziyang Gao and Deyu Zhou and Yulan He},
  title = {{Explainable Depression Detection in Clinical Interviews with Personalized Retrieval-Augmented Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure