Identifying Psychiatric Manifestations in Outpatients with Depression and Anxiety: A Large Language Model-Based Approach

Shihao Xu, Yiming Yan, Li Feng, Shu Zhang, Haoyun Tang, Chao Bao Luo, Yan Li, Hao Liu, Yu Mei, Wen Gu, Hong Qiu, Yong Wang, Jianyin Qiu, Tao Yang, Z. Wang, Qing Zhang, Haiyang Geng, Yunyun Han, Shao Jun, Nils Opel, Lidong Bing, Min Zhao, Yifeng Xu, Xun Jiang, Jianhua Chen

Abstract

Accurate psychiatric diagnosis and assessment are crucial for effective treatment. However, while current data-driven approaches emphasize diagnostic outcomes, the process of decoding the underlying symptom expressions in patients’ language and mapping them to well-defined psychiatric terminology has received relatively little attention. This study investigates the potential of Large Language Models (LLMs) to automate the identification of diagnostic categories and symptoms from psychiatrist-patient dialogues, to provide interpretable insights and support automatic diagnosis. We analyzed audio recordings from 1160 psychiatric diagnostic interviews, primarily involving patients with depressive disorder and anxiety disorder. A clinical entities corpus was formed by leveraging clinical annotations in EMRs and widely used assessment scales. LLMs were utilized to identify clinical symptoms, rate assessment scales, and an ensemble learning pipeline was designed to classify diagnostic results and symptoms with 10-fold cross-validation. The system achieved 86.9% accuracy for identifying clinical annotations and differentiated depression and anxiety cases with 75.5% accuracy. This study demonstrates the potential of integrating LLM technology with linguistic and acoustic features to enhance psychiatric diagnostics.

Introduction

In clinical psychiatry, a significant "semantic gap" exists between a patient’s informal description of their subjective experience (e.g., "I feel like I'm stuck in mud") and the professional terminology required for formal diagnosis (e.g., "psychomotor retardation"). While many AI-driven approaches attempt to predict diagnoses directly from raw text or audio, these often function as "black boxes" that lack clinical interpretability. They bypass the crucial intermediate step: identifying the specific psychiatric manifestations that lead to a diagnosis.

This research addresses this gap by automating the identification of these symptoms from unstructured, real-world psychiatrist-patient interviews. By leveraging Large Language Models (LLMs), the study aims to provide clinicians with interpretable, evidence-based support that maps natural language to standardized psychiatric concepts.

Methodology

Data Collection

The study utilized a substantial dataset from the Shanghai Mental Health Center (SMHC), comprising over 15,000 minutes of audio from 1,160 outpatients (aged 12–80). Diagnoses were based on ICD-10 codes for Depressive Episode/Disorder, Anxiety Disorder/State, and other conditions. A clinical corpus of 138 indicators and 177 assessment scale items was derived from Electronic Medical Records (EMRs) and standard psychiatric texts.

The Multi-Modal Pipeline

The researchers developed an ensemble machine-learning pipeline integrating four distinct feature modalities:

  1. LLM-Generated Clinical Features: Qwen2-72B-Instruct was fine-tuned using Supervised Fine-Tuning (SFT) with LoRA (Low-Rank Adaptation) on clinical concepts extracted from EMRs.
  2. LLM-Generated Assessment Ratings: The LLM performed "zero-shot" ratings of 177 items from standard scales (e.g., HAMD, SCL-90) based on interview transcripts.
  3. Linguistic Features: Traditional NLP techniques (LIWC and TF-IDF) captured word usage patterns and psychological states.
  4. Acoustic Features: The OpenSMILE toolkit extracted nearly 4,000 features related to pitch, loudness, and rhythm.
The multi-modal pipeline for psychiatric manifestation identification and diagnostic classification.

LLM Implementation

To bridge the semantic gap, the LLM was prompted to determine if specific symptoms were present based on the dialogue. This process transformed unstructured conversation into structured clinical data.

Prompt template used for generating clinical-related features from interview dialogues.

Final classification was achieved using a Random Forest classifier with a late fusion technique, averaging predictions across all modalities.

Results and Discussion

Performance Metrics

The system demonstrated robust performance across several tasks:

  • Symptom Identification: Achieved 86.9% accuracy in identifying clinical annotations within dialogues.
  • Binary Classification: Differentiating between Depression (DP) and Anxiety (ANX) reached a Balanced Accuracy (BAC) of 75.5% and an F1-score of 0.762.
  • Symptom Prediction: Predicted anxiety symptoms with 74.7% accuracy and depression symptoms with 77.2% accuracy.
  • Three-Way Classification: Distinguishing between ANX, DP, and "Others" maintained a 65.6% BAC, significantly outperforming the majority baseline (47.7%).

Clinical Insights

Fine-tuning the LLM on specific clinical annotations significantly improved symptom identification, with recall increasing from 74% to 86.1% on high-quality cases. Analysis of the LLM-generated features revealed distinct "digital biomarkers": depression was strongly associated with anhedonia and decreased volition, while anxiety was characterized by somatic tension and an inability to relax.

Conclusion

This study demonstrates that integrating LLM-derived semantic features with traditional acoustic and linguistic data provides a more robust diagnostic framework than single-modality methods. By mapping patient dialogue to specific symptoms, the system offers actionable insights for clinicians. Future work will focus on measuring symptom severity, validating the model across more diverse populations, and incorporating longitudinal data to track patient progress over time.

Summary updated

Abstract

Abstract Purpose Accurate psychiatric diagnosis and assessment are crucial for effective treatment. However, while current data-driven approaches emphasize diagnostic outcomes, the process of decoding the underlying symptom expressions in patients’ language and mapping them to well-defined psychiatric terminology has received relatively little attention. This study investigates the potential of Large Language Models (LLMs) to automate the identification of diagnostic categories and symptoms from psychiatrist-patient dialogues, to provide interpretable insights and support automatic diagnosis. Methods We analyzed audio recordings from 1160 psychiatric diagnostic interviews, primarily involving patients with depressive disorder and anxiety disorder. A clinical entities corpus was formed by leveraging clinical annotations in EMRs (e.g., chief complaints, mental status, elements in assessment scales) and widely used assessment scales. LLMs were utilized to identify clinical symptoms, rate assessment scales, and an ensemble learning pipeline was designed to classify diagnostic results and symptoms with 10-fold cross-validation. Results The system achieved 86.9% accuracy for identifying the appearance of clinical annotations and 74.7% (77.2%) accuracy for identifying anxiety (depression) symptoms. Patients with depression and anxiety, diagnosed using ICD-10 codes, were differentiated with an accuracy of 75.5%. Analysis of LLM-generated features shows that depression cases exhibited prominent markers of anhedonia and decreased volition, whereas anxiety disorders were characterized by tension and an inability to relax. Conclusion This study demonstrates the potential of integrating LLM technology with linguistic and acoustic features to enhance psychiatric diagnostics. The developed pipeline effectively predicts psychiatric diagnoses and provides interpretable insights, showcasing a valuable tool for clinicians in mental health assessment.
BibTeX
@inproceedings{xu2025identifying,
  author = {Shihao Xu and Yiming Yan and Li Feng and Shu Zhang and Haoyun Tang and Chao Bao Luo and Yan Li and Hao Liu and Yu Mei and Wen Gu and Hong Qiu and Yong Wang and Jianyin Qiu and Tao Yang and Z. Wang and Qing Zhang and Haiyang Geng and Yunyun Han and Shao Jun and Nils Opel and Lidong Bing and Min Zhao and Yifeng Xu and Xun Jiang and Jianhua Chen and Jianhua Chen},
  title = {{Identifying Psychiatric Manifestations in Outpatients with Depression and Anxiety: A Large Language Model-Based Approach}},
  booktitle = {Npj},
  year = {2025},
  doi = {10.1038/s44184-025-00175-1},
}
Figure