# Large Language Models for Psychiatric Diagnosis Based on Multicenter Real-World Clinical Records: Comparative Study

**Authors:** Maoqian Sun, Jia Yu, Zhuhong Long, Yun Yang, Tao Xiao, Jiaquan Liang, Jun Feng, Huaili Deng, Guoping Huang

PMC · DOI: 10.2196/77699 · JMIR Medical Informatics · 2026-01-13

## TL;DR

This study compares large language models for psychiatric diagnosis using real-world patient records from six Chinese centers, finding GPT-4.0 to be the most accurate.

## Contribution

The study evaluates and compares multiple large language models for psychiatric diagnosis using multicenter real-world clinical data.

## Key findings

- GPT-4.0 achieved the highest strict diagnostic accuracy (71.7%) and weighted F1-score (0.881) for psychiatric disorders.
- Diagnostic performance varied by age group, with higher accuracy in older adults compared to adolescents.
- Model performance remained stable across different psychiatric centers with no significant intercenter differences.

## Abstract

Psychiatric disorders are diagnostically challenging and often rely on subjective clinical judgment, particularly in resource-limited settings. Large language models (LLMs) have demonstrated potential in supporting psychiatric diagnosis; however, robust evidence from large-scale, real-world clinical data remains limited.

This study aimed to evaluate and compare the diagnostic performance of multiple LLMs for psychiatric disorders using multicenter real-world electronic health records (EHRs).

We retrospectively analyzed 9923 inpatient EHRs collected from 6 psychiatric centers across China, encompassing all ICD-10 (International Statistical Classification of Diseases, Tenth Revision) psychiatric categories. In total, 3 LLMs—GPT-4.0 (OpenAI), GPT-3.5 (OpenAI), and GLM-4-Plus (Zhipu AI)—were evaluated against physician-confirmed discharge diagnoses. Diagnostic performance was assessed using strict accuracy criteria and lenient classification metrics, with subgroup analyses conducted across diagnostic categories and age groups.

GPT-4.0 achieved the highest overall strict diagnostic accuracy (71.7%) and the highest weighted F1-score under lenient evaluation (0.881), particularly for high-prevalence disorders, such as mood disorders and schizophrenia spectrum disorders. Diagnostic performance varied across age groups, with the highest accuracy observed in older adult patients (up to 79.5%) and lower accuracy in adolescents. Across centers, model performance remained stable, with no significant intercenter differences.

LLMs—especially GPT-4.0—demonstrate promising capability in supporting psychiatric diagnosis using real-world EHRs. However, diagnostic performance varies by age group and disorder category. LLMs should be regarded as assistive tools rather than replacements for clinical judgment, and further validation is needed before routine clinical implementation.

## Full-text entities

- **Diseases:** Psychiatric (MESH:D001523), mood disorders (MESH:D019964), schizophrenia spectrum (MESH:D012559)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12848494/full.md

## Figures

1 figure with captions in the complete paper: https://tomesphere.com/paper/PMC12848494/full.md

## References

33 references — full list in the complete paper: https://tomesphere.com/paper/PMC12848494/full.md

---
Source: https://tomesphere.com/paper/PMC12848494