NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MidMed: Towards Mixed-Type Dialogues for Medical Consultation

Xiaoming Shi, Zeming Liu, Chuan Wang, Haitao Leng, Kui Xue, Xiaofan Zhang, Shaoting Zhang

Abstract

Traditional medical dialogue systems often focus narrowly on automatic diagnosis, assuming patients have clearly defined goals. However, real-world medical consultations are complex, mixed-type interactions involving diagnosis, treatment recommendations, and emotional support. This paper introduces MidMed, a large-scale dataset of 8,175 mixed-type medical dialogues, and InsMed, an instruction-guiding framework designed to navigate these transitions. By leveraging a medical knowledge graph and natural language instructions, InsMed significantly outperforms existing baselines in both factual accuracy and human-likeness.

Introduction

Most existing medical AI research operates under the assumption that patients can accurately articulate their needs or that the interaction is a linear path from symptoms to a diagnosis. In practice, patients often lack the medical literacy to define their goals, presenting instead with vague symptoms. A professional consultation is rarely a single-task interaction; it is a "mixed-type" dialogue where a physician must transition fluidly between identifying a disease, recommending medication, providing dietary advice, and offering emotional comfort.

To bridge the gap between simple diagnostic bots and holistic consultation partners, we present the MidMed dataset and the InsMed framework. This approach moves beyond the "symptom-to-diagnosis" paradigm toward a biopsychosocial model of AI-assisted medicine.

The MidMed Dataset

The MidMed dataset was developed to capture the nuances of natural medical conversations. Using the MedDialog corpus as a foundation, medical students revised and annotated dialogues to ensure they followed logical "topic sequences" (e.g., Diagnosis $\rightarrow$ Treatment $\rightarrow$ Diet).

Dataset Statistics

  • Scale: 8,175 dialogues and 98,000 utterances.
  • Scope: Four primary medical departments: Otorhinolaryngology (ENT), Ophthalmology, Dermatology (Skin), and the Digestive System.
  • Grounding: Supported by a custom-built Medical Knowledge Graph containing over 229,000 triples crawled from high-quality medical platforms like 39.net.

Methodology: The InsMed Framework

To handle the complexity of mixed-type dialogues, we propose InsMed, a framework consisting of three integrated modules:

  1. Dialogue Topic Selection: A BERT-based classifier predicts the next logical goal of the conversation. This ensures the system knows when to stop asking about symptoms and start providing recommendations.
  2. Reference Knowledge Selection: This module queries the Medical Knowledge Graph to retrieve factual triples relevant to the predicted diagnosis and topic.
  3. Instruction-guiding Generation: Rather than feeding raw data directly into a language model, InsMed converts the predicted topic and retrieved facts into a natural language "instruction." For example: "In the next utterance, the doctor will recommend a diet. The recommended diet is fruits and vegetables." This instruction, combined with the dialogue history, guides a BART model to generate a coherent, persona-consistent response.

Key Results

InsMed was evaluated against several strong baselines, including DialoGPT and standard BART models.

Quantitative Performance

InsMed achieved superior results across standard NLP metrics:

  • ROUGE: 40.59 (vs. 31.63 for standard BART).
  • BLEU-4: 19.73 (vs. 18.87 for standard BART).

Human Evaluation

In human trials (scored 0-2), InsMed demonstrated a high degree of utility and naturalness:

  • Human-likeness: 1.88
  • Informativeness: 1.54

These scores were significantly closer to the "Ground Truth" human benchmarks than any other tested model. Ablation studies further confirmed that both the Topic Selection and Knowledge Graph modules are critical; removing either resulted in a sharp decline in performance.

Discussion and Future Work

The core innovation of MidMed lies in treating the patient as a "goal-less" participant who requires guidance through the consultation process. By using natural language instructions as a bridge between structured knowledge and generative models, we provide a template that maintains both factual accuracy and a professional medical persona.

Despite these gains, limitations remain. The current scope is limited to four medical departments, and the computational requirements for training and deploying BART-based frameworks are significant. Furthermore, while the system is more informative, future research must prioritize rigorous clinical validation and safety protocols to ensure AI-generated advice is medically sound before deployment in real-world settings.

Summary updated

BibTeX
@inproceedings{shi2023midmed,
  author = {Xiaoming Shi and Zeming Liu and Chuan Wang and Haitao Leng and Kui Xue and Xiaofan Zhang and Shaoting Zhang},
  title = {{MidMed: Towards Mixed-Type Dialogues for Medical Consultation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.453},
}
Figure