Abstract
The global COVID-19 pandemic underscored major deficiencies in traditional healthcare systems, hastening the advancement of online medical services, especially in medical triage and consultation. However, existing studies face two main challenges. First, the scarcity of large-scale, publicly available, domain-specific medical datasets due to privacy concerns, with current datasets being small and limited to a few diseases, limiting the effectiveness of triage methods based on Pre-trained Language Models (PLMs). Second, existing methods lack medical knowledge and struggle to accurately understand professional terms and expressions in patient-doctor consultations. To overcome these obstacles, we construct the Large-scale Chinese Medical Dialogue Corpora (LCMDC), comprising a Coarse-grained Triage dataset with 439,630 samples, a Fine-grained Diagnosis dataset with 199,600 samples, and a Medical Consultation dataset with 472,418 items, thereby addressing the data shortage in this field. Moreover, we further propose a novel triage system that combines BERT-based supervised learning with prompt learning, as well as a GPT-based medical consultation model using reinforcement learning. To enhance domain knowledge acquisition, we pre-trained PLMs using our self-constructed background corpus. Experimental results on the LCMDC demonstrate the efficacy of our proposed systems.
Introduction
The COVID-19 pandemic accelerated a global shift toward online medical consultations. However, AI-driven triage and dialogue systems continue to struggle with two primary hurdles: data scarcity and the domain knowledge gap. High-quality, large-scale medical dialogue datasets are rare due to privacy concerns, and general-purpose Pre-trained Language Models (PLMs) often fail to grasp professional medical terminology or the nuanced ways patients describe symptoms. This leads to inaccurate triage or generic, unhelpful advice.
To bridge this gap, we introduce the Large-scale Chinese Medical Dialogue Corpora (LCMDC) and a suite of models designed to leverage this data for more accurate medical AI interactions.
The LCMDC Dataset
The core contribution of this work is the LCMDC, a massive open-source dataset crawled from the "Quick Doctor" platform. It is structured into three distinct parts to support different medical AI tasks:
- Coarse-grained Triage Dataset: Over 430,000 dialogues categorized across 14 major medical departments.
- Fine-grained Diagnosis Dataset: Approximately 200,000 entries covering 120 specific diseases.
- Medical Consultation Dataset: Over 470,000 question-answer pairs for dialogue generation.
Additionally, we utilized a self-constructed Medical Background Corpus (encyclopedic data) for domain-specific pre-training, ensuring the models possess foundational medical knowledge before learning conversational nuances.
Methodology
Hybrid Triage System
For medical triage—the process of sorting patients into the correct department—we developed a fusion model. This architecture combines a BERT or MacBERT backbone for deep semantic understanding with a Bi-LSTM layer to capture the temporal flow of patient-doctor dialogues. A Dendrite Network (DD) is then employed for final information integration and classification.
To address the "long tail" problem—where rare diseases have significantly fewer samples than common conditions—we implemented Prompt Learning. By framing classification as a "fill-in-the-blank" task (e.g., "I suggest you go to the [MASK] department"), the model leverages its internal pre-trained knowledge to identify rare conditions more effectively than traditional classifiers.
Knowledge-Injected Consultation
For dialogue generation, we utilize a GPT-based model enhanced by two key steps:
- Knowledge Injection: Pre-training the model on our medical encyclopedia to "internalize" domain facts.
- Input Supplementation: During inference, the system queries a Knowledge Graph to find relevant context, which is fed into the model alongside the user's query to ground responses in medical fact.
Experimental Results
Our experiments on the LCMDC demonstrate that domain-specific pre-training is critical. Models perform significantly better when they undergo a "medical school" phase—pre-training on encyclopedic knowledge—before fine-tuning on dialogues.
Key performance highlights include:
- Triage Accuracy: Our proposed method achieved 82.05% accuracy on coarse-grained data and 83.31% on fine-grained data, outperforming standard BERT and MacBERT baselines.
- Rare Disease Performance: Prompt learning resulted in a 5% improvement in accuracy for rare diseases compared to traditional supervised methods.
- Consultation Quality: The model outperformed Seq2Seq and BART baselines across semantic metrics, achieving a lower Translation Edit Rate (TER) and higher Word Mover's Distance (WMD), indicating responses that closely mirror professional medical advice.
Conclusion and Future Work
The LCMDC provides a robust foundation for advancing medical AI in the Chinese language. While our current systems show promise, future work will focus on addressing dataset biases and integrating multi-modal data, such as lab results and medical imagery. Furthermore, we aim to refine the consultation model using Reinforcement Learning from Human Feedback (RLHF) to ensure AI advice aligns strictly with professional standards and patient safety.
Summary updated