A Knowledge-enhanced Two-stage Generative Framework for Medical Dialogue Information Extraction

Zefa Hu, Ziyi Ni, Jing Shi, Shuang Xu, Bo XuMach. Intell. Res 2023

Introduction

Extracting structured information from doctor-patient dialogues is a critical step toward automating electronic medical record (EMR) generation and enhancing diagnostic assistants. However, medical conversations are inherently complex: patients use colloquialisms, symptoms are discussed across multiple turns, and information may be revised or clarified later in the chat. Traditional methods often struggle to maintain accuracy when dialogues become lengthy or when medical terms have nuanced statuses.

The MD-TSPE Task

The task, known as Medical Dialogue Term-Status Pair Extraction (MD-TSPE), aims to convert raw transcripts into structured pairs such as (Dyspnea, absent) or (Chest pain, appear). This requires the model to not only identify the relevant medical terms but also to infer their specific status based on the context of the conversation.

Example of a medical dialogue and its corresponding term-status pair labels illustrating the MD-TSPE task.

Existing approaches generally fall into two categories: classification-based methods that treat terms independently, and one-stage generative models that attempt to output all pairs at once. Both face significant hurdles; classification models ignore inter-term relationships, while one-stage generative models often suffer from optimization bottlenecks as the output sequence grows in complexity.

Methodology: The KTGF Framework

To overcome these limitations, researchers at the University of Chinese Academy of Sciences proposed the Knowledge-enhanced Two-stage Generative Framework (KTGF). This framework utilizes the T5 (Text-to-Text Transfer Transformer) architecture but decouples the extraction process into two distinct, manageable stages.

The KTGF architecture, illustrating the two-stage generative process: Stage I for term generation and Stage II for status generation.

Stage I: Term Generation

In the first stage, the model focuses exclusively on identifying the formal medical terms mentioned in the dialogue. By providing a "Term prompt," the model generates a list of terms (e.g., "Atrial fibrillation, Dyspnea"). This separation allows the model to capture the relationships between medical concepts without the immediate burden of determining their clinical status.

Stage II: Status Generation

In the second stage, the model determines the status for each term identified in Stage I. This stage is powered by Knowledge-enhanced Prompts, which include the term's category (e.g., "Symptom") and a list of valid status candidates (e.g., "appear", "absent", "unknown"). By transforming the generation task into a constrained "multiple-choice" style inference, the framework significantly reduces the likelihood of hallucinated or invalid statuses.

Experimental Results

The framework was evaluated on two major benchmarks: Chunyu (Cardiology) and CMDD (Pediatrics). KTGF demonstrated superior performance across several metrics:

  • State-of-the-Art Accuracy: On the Chunyu dataset, KTGF achieved an F1-score of 82.55, outperforming previous generative models by over 3 points. On the CMDD dataset, it reached an F1-score of 88.05, a 10.45-point improvement over the MGT model.
  • Low-Resource Robustness: The researchers introduced a "not mentioned" status to augment training data. This allowed KTGF to maintain high performance even with limited labeled data; with only 1% of the training set, it achieved a 45.24 F1-score, significantly higher than the 35.72 F1-score of a vanilla T5 model.
  • Ablation Studies: Removing the knowledge-enhanced components (category and status candidates) led to a marked drop in performance, confirming that "knowledge injection" is vital for accurate status inference.

Conclusion

The KTGF framework represents a significant advancement in medical information extraction. By decoupling term identification from status inference and leveraging structured medical knowledge through prompting, it provides a robust solution for processing messy, real-world medical dialogues. While currently reliant on a predefined schema for categories and statuses, its success in low-resource settings suggests high potential for scalability in specialized medical domains.

Summary updated

BibTeX
@inproceedings{hu2023knowledge,
  author = {Zefa Hu and Ziyi Ni and Jing Shi and Shuang Xu and Bo Xu},
  title = {{A Knowledge-enhanced Two-stage Generative Framework for Medical Dialogue Information Extraction}},
  booktitle = {Mach. Intell. Res},
  year = {2023},
}
Figure