Abstract
Extracting structured information from unstructured clinical narratives is a cornerstone of medical informatics. However, traditional sequence labeling methods struggle with nested entities and the computational inefficiency of exhaustive relation extraction. This paper discusses a unified framework that reformulates clinical concept and relation extraction as a Machine Reading Comprehension (MRC) task. By utilizing prompt-based queries and high-capacity language models like GatorTron, the proposed system achieves state-of-the-art performance on benchmark datasets and demonstrates superior generalizability across different clinical institutions.
1. Introduction
Clinical notes, such as discharge summaries and progress notes, contain a wealth of information regarding patient diagnoses, medications, and social determinants of health (SDoH). Despite their value, automated extraction remains difficult due to three primary factors:
- Nested and Overlapping Concepts: Medical entities often overlap (e.g., a "rash" being both an Adverse Drug Event and part of a "duration" description). Traditional BIO (Beginning, Inside, Outside) tagging schemes are generally limited to assigning a single label per token, failing to capture these complexities.
- Relation Extraction Inefficiency: Standard approaches often evaluate every possible pair of entities to identify relationships, leading to a "needle in a haystack" problem where the vast majority of pairs are unrelated.
- Model Portability: Variations in documentation styles across hospitals often lead to significant performance degradation when a model trained at one site is deployed at another.
2. Methodology: The MRC Framework
The researchers propose a shift from traditional sequence labeling to a prompt-based MRC architecture. This framework treats the extraction process as a question-answering task, where the model "reads" a clinical note to find "answers" corresponding to medical entities and their attributes.
2.1 Two-Stage Extraction Process
The system operates in two distinct phases:
- Trigger Entity Extraction: The model is provided with a natural language prompt (e.g., "Find the drug events including names, brand names and collective names") to identify primary "trigger" entities, such as a specific medication.
- Attribute and Relation Extraction: Once a trigger is identified, the system generates targeted follow-up questions to find related information (e.g., "What is the dosage of {Drug Name}?").
2.2 Model Architecture
The framework was evaluated using several transformer-based backends, including BERT, BERT-MIMIC, and RoBERTa-MIMIC. The most significant results were achieved using GatorTron, a large-scale model pretrained on 82 billion words of clinical text. To handle overlapping spans, the system employs a dual-binary classifier that predicts the start and end indices of answers, allowing the same text segment to be identified as part of multiple entities depending on the prompt.
3. Experimental Setup and Datasets
The framework was validated using two major benchmark datasets from the National NLP Clinical Challenges (n2c2):
- 2018 n2c2 (Drug-ADE): Focused on identifying medications, their attributes (dosage, strength, frequency), and adverse drug events.
- 2022 n2c2 (SDoH): A complex dataset involving Social Determinants of Health, such as housing and employment status, featuring 28 distinct relation categories.
To assess portability, the researchers conducted cross-institution evaluations, training models on the MIMIC-III dataset and testing them on a separate dataset from the University of Washington (UW-test).
4. Key Results and Discussion
The MRC-based approach demonstrated significant improvements over traditional methods across all metrics.
4.1 Performance Metrics
GatorTron-MRC emerged as the state-of-the-art model, achieving a strict F1-score of 0.9059 for concept extraction on the 2018 n2c2 dataset. In the more complex SDoH relation extraction task, the MRC-based models outperformed traditional non-MRC architectures by 10% to 11% in F1-score.
4.2 Generalizability and Efficiency
The prompt-based method proved remarkably robust in cross-institution testing. While traditional models saw performance drops of nearly 9% when moved to the UW-test dataset, the GatorTron-MRC model’s performance only decreased by approximately 2-3%. Furthermore, by only querying for attributes after a trigger entity is found, the model avoids the computational burden of all-pairs comparisons, effectively mitigating the class imbalance problem in relation extraction.
5. Conclusion
By reframing clinical extraction as a Machine Reading Comprehension task, this research provides a natural solution for nested entities and improves the efficiency of relation extraction. The use of natural language prompts—based on actual clinical annotation guidelines—provides the model with rich semantic hints that "pseudo-questions" lack.
Future work will focus on transitioning from manually engineered "hard" prompts to "soft" prompts (trainable vectors) and extending the architecture to support cross-sentence relation extraction, ensuring that related entities can be identified even when they appear in different sections of a clinical narrative.
Summary updated