Abstract
Adverse drug events (ADEs) represent a significant challenge to patient safety, yet their documentation remains largely trapped in unstructured clinical notes. This study benchmarks several transformer-based models to automate the detection of ADEs in Dutch clinical text. By framing the problem as a relation classification task and utilizing domain-specific models like MedRoBERTa.nl, the authors demonstrate that automated systems can achieve high recall (up to 74%) on external datasets. The research highlights the critical importance of selecting appropriate evaluation metrics and the superior performance of domain-specific pre-training in non-English medical NLP.
Introduction
Adverse drug events (ADEs)—defined as injuries resulting from medical interventions related to a drug—are a leading cause of preventable harm in hospital settings. Effective monitoring and prevention require systematic tracking, yet the vast majority of ADE data is recorded in unstructured formats such as progress notes and discharge summaries. Manual extraction of this information is labor-intensive and unsustainable for large-scale hospital operations.
While Natural Language Processing (NLP) has shown promise in automating this task, the field has historically been dominated by English-language research. Furthermore, existing models often suffer from misleading performance metrics, a lack of external validation across different hospital environments, and a failure to distinguish between simple entity mentions and the complex relationships between drugs and their adverse effects. This study addresses these gaps by benchmarking transformer models specifically for the Dutch clinical domain.
Methodology
The Two-Step Pipeline
The researchers implemented a modular pipeline to identify ADEs within clinical text:
- Named Entity Recognition (NER): The model first identifies mentions of "drugs" and "disorders."
- Relation Classification (RC): The model then evaluates specific drug-disorder pairs to determine if the relationship represents an ADE, a prescribing indication (the reason the drug was given), or no relevant relationship.
Model Selection
The study compared a baseline Bidirectional LSTM (Bi-LSTM) against four transformer-based encoder models:
- BERTje & RobBERT: General-purpose Dutch language models.
- NuNER: A multilingual model.
- MedRoBERTa.nl: A model pre-trained specifically on Dutch electronic health records (EHRs).
To optimize computational efficiency, the authors utilized a lightweight approach for the RC task. Instead of fine-tuning a separate heavy transformer, they extracted contextual embeddings and probability vectors from the NER stage and processed them through a 4-layer Multi-Layer Perceptron (MLP).
Data and Evaluation
Multi-Source Datasets
The models were evaluated across three distinct Dutch datasets to test both internal performance and external generalizability:
- Dutch ADE Corpus: 102 ICU progress notes from a single academic hospital (Primary training set).
- ICU AKI Corpus: 411 ICU notes with sparse, document-level annotations.
- WINGS Corpus: 100 discharge letters from internal medicine wards across two non-academic hospitals, serving as a rigorous external validation set.
Metric Selection: The Macro-F1 and F2 Priority
A key contribution of this study is the critique of standard evaluation metrics. In clinical data, ADEs are rare (comprising only 0.64% of entity pairs). Standard micro-averaged F1 scores can appear deceptively high (~0.98) because they are dominated by the majority "Not an ADE" class. The authors instead prioritized macro-averaged F1 scores to ensure the rare ADE class was accurately represented. Additionally, they optimized for the F2 score, which weights recall more heavily than precision, reflecting the clinical priority of not missing potential patient safety risks.
Results and Discussion
Performance Benchmarks
MedRoBERTa.nl emerged as the top performer, achieving a micro-averaged F1 score of 0.94 for entity extraction. In the end-to-end relation classification task, it achieved a macro-averaged F1 of 0.62, significantly outperforming the Bi-LSTM baseline (0.58). These results underscore the value of domain-specific pre-training; models exposed to actual Dutch hospital jargon and abbreviations during training are better equipped to handle the nuances of clinical documentation.
External Validation and Clinical Utility
When tested on the unseen WINGS corpus—representing different hospitals and document types—MedRoBERTa.nl maintained robust performance. By applying an F2-optimized threshold, the model achieved a recall of 0.736. This indicates that the system could successfully flag approximately 74% of all discharge letters containing an ADE, providing a powerful tool for clinical pharmacists to prioritize their reviews.
Conclusion and Future Work
This benchmark study demonstrates that transformer models, particularly those with domain-specific pre-training, are highly effective for ADE detection in Dutch clinical text. While the study is limited by a relatively small training dataset and a high density of ADEs in the training samples compared to real-world distributions, the results provide a strong foundation for automated medication safety monitoring.
Future research will explore the application of larger generative Large Language Models (LLMs) to this benchmark and move toward live clinical validation to measure the impact of these tools on reducing medication errors in real-time hospital environments.
Summary updated