[Paper Review] MedMine: Examining Pre-trained Language Models on Medication Mining
This paper introduces MedMine, a framework evaluating fine-tuned pre-trained language models—Med7 and XLM-RoBERTa—for medication mining on clinical text using n2c2-2018 shared task data. It demonstrates that XLM-RoBERTa achieves significantly higher accuracy (96.76%) than Med7+ (81.87%), highlighting the advantage of multilingual, BERT-based models over domain-specific, GloVe-based models in clinical entity extraction tasks.
Automatic medication mining from clinical and biomedical text has become a popular topic due to its real impact on healthcare applications and the recent development of powerful language models (LMs). However, fully-automatic extraction models still face obstacles to be overcome such that they can be deployed directly into clinical practice for better impacts. Such obstacles include their imbalanced performances on different entity types and clinical events. In this work, we examine current state-of-the-art pre-trained language models (PLMs) on such tasks, via fine-tuning including the monolingual model Med7 and multilingual large language model (LLM) XLM-RoBERTa. We compare their advantages and drawbacks using historical medication mining shared task data sets from n2c2-2018 challenges. We report the findings we get from these fine-tuning experiments such that they can facilitate future research on addressing them, for instance, how to combine their outputs, merge such models, or improve their overall accuracy by ensemble learning and data augmentation. MedMine is part of the M3 Initiative \url{https://github.com/HECTA-UoM/M3}
Motivation & Objective
- To evaluate state-of-the-art pre-trained language models (PLMs) for medication mining in clinical text, focusing on entity and event extraction.
- To address performance imbalances across entity types such as drug, dose, duration, and adverse drug events (ADE), which are underrepresented in training data.
- To explore model fusion and ensemble learning strategies by comparing Med7+ and Clinical-XLM-R outputs to improve overall extraction accuracy.
- To develop an open-source, extensible toolkit—MedMine—as part of the M3 Initiative for future research in low-resource clinical NLP.
- To investigate the impact of data augmentation and prompt-based learning for improving rare label prediction in medication mining.
Proposed method
- Fine-tuned the monolingual clinical model Med7 using SpaCy and GloVe embeddings on n2c2-2018 data for named entity recognition (NER) on 9 medication-related labels.
- Fine-tuned the multilingual XLM-RoBERTa-base model on the same n2c2-2018 dataset, leveraging its pre-training on 100 languages to improve generalization in clinical NLP.
- Applied document chunking for sequences exceeding 512 tokens, splitting long clinical notes into 512-token segments with potential context loss.
- Used standard NER evaluation metrics (precision, recall, F1) at micro, macro, and weighted average levels to compare model performance across label types.
- Explored model combination strategies by analyzing complementary strengths: Med7+ showed higher precision, while Clinical-XLM-R showed higher recall across most labels.
- Planned future integration of GPT-based models and prompt-based learning (PBL) with manual and soft templates for temporal and relational medication modeling.
Experimental results
Research questions
- RQ1How do fine-tuned Med7 and XLM-RoBERTa models compare in performance on medication entity and event extraction from clinical text?
- RQ2What are the key performance imbalances across different label types (e.g., drug, dose, duration, ADE) in current PLM-based medication mining systems?
- RQ3Can combining outputs from Med7+ and Clinical-XLM-R improve overall F1 scores through ensemble learning or model fusion?
- RQ4Does the use of multilingual pre-training in XLM-RoBERTa lead to better performance than domain-specific fine-tuning in Med7, despite Med7 being pre-trained on clinical data?
- RQ5To what extent can data augmentation or prompt-based learning mitigate low-frequency label issues in medication mining?
Key findings
- XLM-RoBERTa achieved a significantly higher overall accuracy of 96.76% compared to Med7+’s 81.87% on the n2c2-2018 test set.
- Med7+ improved upon the original Med7 model across all 7 shared labels, achieving micro-averaged F1 of 0.9244 vs. 0.7400, macro-averaged F1 of 0.9045 vs. 0.7200, and weighted F1 of 0.9247 vs. 0.7700.
- Med7+ showed higher precision than recall across most labels, while Clinical-XLM-R demonstrated higher recall, indicating complementary strengths between the two models.
- The label 'route' showed minimal performance gain from Med7+ over Med7 (F1: 0.96 vs. 0.96), suggesting limited room for improvement in this category.
- The low-frequency labels 'duration' (139 instances) and 'ADE' (242 instances) exhibited significantly lower performance, indicating a need for data augmentation or synthetic data generation.
- The performance gap between Med7+ and Clinical-XLM-R suggests that multilingual pre-training or BERT-based representations may offer advantages over GloVe embeddings in clinical NLP tasks, even with domain-specific fine-tuning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.