Optimizing Relation Extraction in Medical Texts through Active Learning: A Comparative Analysis of Trade-offs

Siting Liang, Pablo Valdunciel Sánchez, Daniel Sonntag2024

TL;DR

This paper investigates how to make medical data annotation more efficient using Active Learning (AL) for Relation Extraction. While Clinical BERT provides the highest accuracy, the authors highlight a critical trade-off: its heavy computational load creates significant "annotator waiting time," making traditional models like Random Forest a surprisingly viable, high-speed alternative in Human-in-the-Loop settings.

What Problem Does This Paper Address?

Extracting relationships from medical text (e.g., "Drug A causes Side Effect B") is vital for building Electronic Health Records (EHRs), but it’s a bottleneck. Deep learning models like BERT are the current state-of-the-art, but they require massive amounts of labeled data.

Labeling medical data is notoriously expensive because it requires domain experts (doctors/pharmacists). Active Learning (AL) aims to solve this by having the model "ask" for labels only on the most informative or confusing samples. However, there is a catch: if a model takes 30 minutes to retrain after every few labels, the human expert sits idle. This paper explores the "trade-offs" between a model's predictive power and its practical utility in a real-world, interactive annotation environment.

Methods

The researchers compared three distinct machine learning architectures within an AL framework:

  1. Clinical BERT: A heavy-duty, pre-trained transformer model fine-tuned for clinical text.
  2. BiLSTM: A deep learning architecture using domain-specific word embeddings (BioWordVec).
  3. Random Forest: A traditional machine learning model requiring manual feature engineering (e.g., calculating token distance between entities, identifying negation words).

They tested several AL query strategies:

  • Least Confidence (LC): Selecting samples where the model is most uncertain about its prediction.
  • BatchBALD: A sophisticated Bayesian approach designed to select a diverse batch of informative samples.
  • Random Sampling: The baseline (passive learning).

Datasets

The study utilized two gold-standard benchmarks for medical Relation Extraction:

  • DDI Corpus: Focused on Drug-Drug Interactions from MedLine abstracts and the DrugBank database. It involves a 5-class classification task (Effect, Mechanism, Advise, Interaction, or No Relation).
  • n2c2 Corpus: From the 2018 National NLP Clinical Challenges. This involves identifying relations between medications and their attributes (e.g., Strength-Drug, Dosage-Drug, ADE-Drug).

Key Insights and Ideas

  • The "Waiting Time" Bottleneck: Clinical BERT is the clear winner in accuracy, but its retraining time is a major hurdle. In the DDI corpus, Clinical BERT took over 400 minutes for an AL cycle that Random Forest completed in just 37 minutes.
  • Random Forest’s Surprising Utility: Despite being an "older" tech, Random Forest performed remarkably well when paired with AL. It reached competitive F1 scores very quickly, suggesting it is an excellent choice for the early stages of a project where rapid iteration is more important than absolute peak accuracy.
  • The Complexity Bias: The authors found that AL strategies (specifically Least Confidence) tend to pick longer, more complex sentences. While this helps the model learn faster, it actually increases the "cost per sample" because humans take longer to read and label those specific instances.
  • Simplicity Wins: In many tests, the simpler Least Confidence strategy outperformed the more mathematically complex BatchBALD, proving that "fancier" isn't always better in specialized domains.

Key Results

  • Data Efficiency: Clinical BERT achieved superior performance using only 50% of the training data compared to a model trained on the full dataset via passive learning.
  • Performance Peaks: On the n2c2 corpus, Clinical BERT reached an impressive Micro-F1 of 0.969, while Random Forest held its own at 0.954.
  • The DDI Gap: The DDI corpus proved much harder due to class imbalance. Here, Clinical BERT (F1: 0.839) significantly outperformed Random Forest (F1: 0.418), highlighting that for complex, nuanced relationships, deep learning is still a necessity.

Limitations and Future Work

The primary limitation is the computational cost of transformers. Even with AL reducing the number of samples, the time spent retraining remains high.

The authors suggest that future work should focus on:

  1. Hybrid Approaches: Using fast models (like Random Forest) to "warm up" the system and switch to BERT once enough data is collected.
  2. Optimizing Retraining: Exploring techniques like Parameter-Efficient Fine-Tuning (PEFT) to make BERT-based AL loops faster.
  3. Real-world User Studies: Moving beyond simulations to measure actual human fatigue and throughput when interacting with these different models.

Summary updated

Abstract

This work explores the effectiveness of employing Clinical BERT for Relation Extraction (RE) tasks in medical texts within an Active Learning (AL) framework.Our main objective is to optimize RE in medical texts through AL while examining the trade-offs between performance and computation time, comparing it with alternative methods like Random Forest and BiLSTM networks.Comparisons extend to feature engineering requirements, performance metrics, and considerations of annotation costs, including AL step times and annotation rates.The utilization of AL strategies aligns with our broader goal of enhancing the efficiency of relation classification models, particularly when dealing with the challenges of annotating complex medical texts in a Human-in-the-Loop (HITL) setting.The results indicate that uncertainty-based sampling achieves comparable performance with significantly fewer annotated samples across three categories of supervised learning methods, thereby reducing annotation costs for clinical and biomedical corpora.While Clinical BERT exhibits clear performance advantages across two different corpora, the trade-off involves longer computation times in interactive annotation processes.In real-world applications, where practical feasibility and timely results are crucial, optimizing this trade-off becomes imperative.
BibTeX
@misc{liang2024optimizing,
  author = {Siting Liang and Pablo Valdunciel Sánchez and Daniel Sonntag},
  title = {{Optimizing Relation Extraction in Medical Texts through Active Learning: A Comparative Analysis of Trade-offs}},
  year = {2024},
  doi = {10.18653/v1/2024.uncertainlp-1.3},
}
Figure