Abstract
Psychiatric comorbidity is clinically significant yet challenging due to the complexity of multiple co-occurring disorders. To address this, we develop a novel approach integrating synthetic patient electronic medical record (EMR) construction and multi-agent diagnostic dialogue generation. We create 502 synthetic EMRs for common comorbid conditions using a pipeline that ensures clinical relevance and diversity. Our multi-agent framework transfers the clinical interview protocol into a hierarchical state machine and context tree, supporting over 130 diagnostic states while maintaining clinical standards. Through this rigorous process, we construct PsyCoTalk, the first large-scale dialogue dataset supporting comorbidity, containing 3,000 multi-turn diagnostic dialogues validated by psychiatrists. This dataset enhances diagnostic accuracy and treatment planning, offering a valuable resource for psychiatric comorbidity research. Compared to real-world clinical transcripts, PsyCoTalk exhibits high structural and linguistic fidelity in terms of dialogue length, token distribution, and diagnostic reasoning strategies. Licensed psychiatrists confirm the realism and diagnostic validity of the dialogues.
Introduction
In clinical psychiatry, "comorbidity"—the co-occurrence of multiple disorders—is the rule rather than the exception. For example, up to 75% of individuals with depression also experience anxiety. However, most existing AI datasets and models are "siloed," focusing on single disorders in isolation. Current Large Language Models (LLMs) often struggle with multi-disorder screening because they lack a structured reasoning process, frequently hallucinating symptoms or failing to follow rigorous diagnostic protocols like the DSM-5 used by human psychiatrists. There is a significant gap between a "supportive chatbot" and a "diagnostic agent" capable of navigating complex, multi-turn clinical interviews.
To bridge this gap, we present PsyCoTalk, the first large-scale dialogue dataset specifically designed for psychiatric comorbidity. By grounding LLM-based agents in clinical standards, we produce dialogues that are structurally and linguistically indistinguishable from real-world clinical consultations.
The PsyCoTalk Pipeline
The development of PsyCoTalk involves a two-stage pipeline designed to ensure clinical relevance and data integrity.
- EMR Construction (PsyCoProfile): We transformed self-reported social media posts from Reddit into 502 structured Electronic Medical Records (EMRs). This modular pipeline uses LLMs to extract demographics, chief complaints, and medical history. The resulting profiles cover six combinations of four core conditions: Major Depressive Disorder (MDD), Anxiety Disorder (AD), Bipolar Disorder (BD), and ADHD.
- Multi-Agent Dialogue Generation: We utilize a three-agent system—comprising Doctor, Patient, and Tool agents—to simulate a diagnostic interview based on the generated EMRs.
Multi-Agent Framework and Clinical Grounding
The core innovation of our approach lies in the structured reasoning provided to the Doctor agent. Rather than relying on raw prompting, we "wrap" the LLM in a symbolic framework that mirrors clinical practice.
- Hierarchical Diagnostic State Machine (HDSM): This component serves as the "brain" of the doctor agent. It translates the SCID-5-RV (a gold-standard clinical interview guide) into a state machine with over 130 diagnostic states. This ensures the AI follows a logical, step-by-step path to a diagnosis.
- Diagnosis Context Tree (DCT): A controller that manages the flow of the conversation, ensuring the agent inquires about family history and personal experiences at appropriate clinical junctures.
- Disease-Symptom Description Knowledge Graph (DSD-KG): To prevent "hallucinated agreement"—where a patient agent might erroneously confirm every symptom asked—the Patient agent is constrained by this knowledge graph, ensuring responses remain faithful to the underlying EMR profile.
Key Results and Validation
PsyCoTalk consists of 3,000 multi-turn diagnostic dialogues, averaging 45.9 turns each. This makes it the largest dataset of its kind, with dialogues nearly double the length of previous corpora.
Our evaluation focused on three key areas:
- Structural Fidelity: Unlike previous datasets where AI utterances were unnaturally long, PsyCoTalk's utterance lengths (34 characters for doctors, 43.5 for patients) closely mirror real-world clinical transcripts (28.3 and 35.8, respectively).
- Psychiatrist Approval: In double-blind tests, licensed psychiatrists rated PsyCoTalk excerpts as significantly more realistic than other popular synthetic datasets and nearly as realistic as actual clinical transcripts.
- Diagnostic Performance: The HDSM-guided system significantly outperformed zero-shot baselines, improving diagnostic accuracy from 0.22 to 0.31. It showed particular strength in identifying MDD (0.92 F1) and AD (0.81 F1), though it faced challenges with BD and ADHD due to symptom overlap—a difficulty mirrored in human clinical practice.
Conclusion
PsyCoTalk represents a significant advancement in AI for mental health, moving beyond single-disorder screening to address the complexity of comorbidity. By integrating clinical protocols into a multi-agent framework, we provide a high-fidelity resource for developing models capable of comprehensive psychiatric screening. Future work will focus on expanding disorder coverage and refining the reasoning capabilities of smaller, deployable models using this dataset.
Summary updated