TL;DR
This paper investigates the performance of state-of-the-art NLP models for classifying medical text in Danish, a non-English language, facing challenges of small datasets and imbalanced classes. While current models aren't accurate enough for full automation, they show promise in filtering reports, significantly reducing manual labeling effort.
What Problem Does This Paper Address?
The medical field is increasingly leveraging electronic health records (EHRs) for data-driven insights. However, a significant portion of this data is unstructured text, like radiology reports, which requires sophisticated Natural Language Processing (NLP) techniques for analysis. A major hurdle arises when applying NLP to non-English languages, especially with limited labeled data and a skewed distribution of medical conditions (imbalanced classes). This scenario is common in real-world medical applications, where certain pathologies are rare, making it difficult for models to learn effectively. The authors aim to bridge this gap by evaluating how well current NLP models perform under these challenging conditions, specifically within the Danish medical context.
Methods
The researchers evaluated three main NLP approaches:
- Transformer Models (Danish & Cross-lingual): They used
roberta-base-danish(trained specifically on Danish text) andxlm-roberta-base(a cross-lingual model). These models were tested both in their original pre-trained forms and after further pre-training on a large corpus of Danish radiology reports. - Few-Shot Learning (Sentence Transformers): They employed
SetFitwith a multilingual sentence transformer model (distiluse-base-multilingual-cased-v2). This approach is designed to perform well with very limited labeled data.
For fine-tuning, all transformer models used a sequence classification head with a weighted binary cross-entropy loss, a standard technique for imbalanced classification.
Datasets
The study utilized two primary datasets:
- Primary Dataset: 16,899 Danish radiology reports from 4,769 epilepsy patients (identified by ICD-10 code G40*). Within this dataset, specific abnormalities relevant to epilepsy were manually labeled:
- Focal Cortical Dysplasia (FCD): 1,122 reports
- Mesial Temporal Sclerosis (MTS): 904 reports
- Hippocampal Abnormalities (HA): 555 reports
- For FCD and MTS, labels were further refined to include prefixes indicating certainty (e.g., "negative," "probable," "highly probable"). For HA, reports were labeled as "normal" or "abnormal."
- Pre-training Corpus: A larger corpus of 1.2 million Danish radiology reports, irrespective of modality or disease, was used for further pre-training the transformer models.
The FCD and MTS datasets were labeled by at least two clinicians, and the HA dataset by one clinician and a medical student, with labeling times ranging from 20 to 35 hours. Training and test sets were split 80%/20%, with 20% of the training data reserved for validation.
Key Insights and Ideas
- Cross-lingual Models Shine: The cross-lingual
xlm-roberta-basemodel generally outperformed the Danish-specificroberta-base-danish, suggesting that leveraging larger, diverse cross-lingual pre-training data can be more beneficial than relying solely on a smaller, domain-specific Danish corpus. - Pre-training Boosts Performance: Further pre-training the transformer models on a large corpus of Danish radiology reports consistently improved performance across most metrics, highlighting the value of domain-specific adaptation.
- No Silver Bullet for Automation: Despite advancements, none of the evaluated models achieved sufficient accuracy for fully automated classification of medical text in this challenging scenario.
- Filtering Potential is High: A crucial insight is that even with imperfect accuracy, models can effectively identify the most common class with near-perfect recall. This suggests that these models can be used as a powerful filtering tool, allowing human annotators to focus their efforts on the more challenging or less frequent cases, thereby significantly reducing manual labeling workload.
Key Results
- Performance Metrics: Table 1 shows that the F1-scores and balanced accuracies varied across models and classes. For instance, the pre-trained
xlm-roberta-basemodel achieved F1-scores ranging from 0.66 to 0.82 and balanced accuracies from 0.70 to 0.84 on the FCD dataset. TheSetFitmodel showed the most variability, achieving both the worst and best performances on different datasets. - Confusion Matrices: Figure 1 illustrates confusion matrices for the FCD dataset. For example, the pre-trained
roberta-base-danishmodel (Figure 1B) showed a high recall for the "A: No FCD" class, correctly classifying 159 out of 159 instances. This demonstrates the potential for filtering.
Limitations and Future Work
- Model Limitations: The authors acknowledge that
roberta-base-danishmight be less powerful than more recent transformer architectures, suggesting future work should explore newer encoders. - Generalizability: The performance of NLP models in non-English languages is a significant challenge, and the findings suggest a general trend of reduced performance compared to English.
- Future Directions: The paper emphasizes the potential of using these models for filtering reports to reduce manual labeling. Future work should focus on validating this approach and exploring how to best integrate it into a human-in-the-loop workflow. Further research into more advanced techniques for handling imbalanced and low-resource language scenarios in medical NLP is also warranted.
Summary updated