Factuality Detection using Machine Translation -- a Use Case for German Clinical Text

Mohammed Bin Sumait, Aleksandra Gabryszak, Leonhard Hennig, Roland RollerarXiv 2023

TL;DR

Researchers at the German Research Center for Artificial Intelligence (DFKI) have demonstrated that high-performing clinical NLP models can be built for "low-resource" languages like German without native training data. By using local machine translation to port English datasets to German, they trained a BERT-based factuality detector that significantly outperforms traditional rule-based systems across multiple real-world clinical benchmarks.

What Problem Does This Paper Address?

In clinical settings, knowing if a condition exists is as important as the condition itself. A note saying "patient denies chest pain" (negated) is fundamentally different from "patient has chest pain" (affirmed) or "possible chest pain" (uncertain). This is known as factuality detection.

While supervised machine learning is the gold standard for this task, it requires massive amounts of labeled data. For German clinical text, this data is scarce. Patient privacy laws and ethical concerns make sharing clinical notes difficult, leading to a "data desert" for non-English medical NLP. Furthermore, hospitals cannot simply use cloud-based translation services (like Google Translate) due to the sensitive nature of the data.

Methods

The authors propose a "translate-to-train" approach that respects data privacy:

  1. Local Machine Translation: They used TransIns, an open-source tool built on the MarianNMT framework, which can be installed on local hospital infrastructure.
  2. Markup Preservation: A key challenge in translating training data is keeping track of the "target entity" (the symptom or disease). TransIns allows for an embedded markup language, ensuring that if "headache" is tagged in English, its German counterpart "Kopfschmerzen" remains tagged after translation.

    Example of translated sentences with preserved entity tags and factuality labels.
  3. Transformer-Based Classification: They fine-tuned GermanMedBERT (a BERT model pre-trained on German medical text) on this synthetic German data.

  4. Baseline Comparison: The model was compared against NegEx, the long-standing rule-based industry standard for clinical negation detection.

Datasets

The study utilized a mix of translated and native German datasets:

  • 2010 i2b2/VA (Training/Testing): A large English clinical dataset translated into German (~18,000 data points).
  • NegEx-Ger (Testing): A small, homogeneous dataset of German clinical notes and discharge summaries.
  • Ex4CDS (Testing): German physician notes containing explanations for clinical decision support.
  • BRONCO150 (Testing/Additional Training): A corpus of 150 German oncological discharge summaries.
Support numbers showing the distribution of labels across the different datasets.

Key Insights and Ideas

  • Robustness to "Noisy" Data: Interestingly, the translation process wasn't perfect. Roughly 40% of the translated issues involved "corrupt" text or lost markup. However, the transformer model was still able to learn effectively from the remaining high-quality synthetic data, proving that "good enough" translation is sufficient for training.
  • The "Possible" Gap: Rule-based systems like NegEx rely on specific trigger words. They perform well on simple negations but struggle with "possible" cases (hedging), where the linguistic cues are more varied. The BERT-based model excels here because it captures the broader semantic context.
  • Linguistic Nuances in German: The authors identified specific failures in rule-based German NLP, such as compounds (e.g., schmerzfrei for "pain-free") and word order changes in subordinate clauses that cause trigger-based systems to miss negations.

Key Results

The BERT-based model, FactualMedBERT-DE, consistently outperformed the NegEx baseline across all metrics and datasets.

  • On the Ex4CDS dataset: The model achieved a massive performance boost, increasing the F1-score by 14 points for negations and 21 points for "possible" cases compared to NegEx.
  • Cross-Dataset Performance: As shown in Table 6, a "mixed" model trained on both translated i2b2 data and native BRONCO150 data provided the most stable performance across different clinical text types.
Table 6: Performance results of three BERT models trained on translated i2b2 (FactualMedBERT-DE), BRONCO150 and 2010 i2b2 + BRONCO150, respectively. The models were evaluated on different German medical text sources, namely our translated i2b2 2010 test set, the German NegEx, the Ex4CDS dataset and BRONCO150 test set. For each dataset, best per-label F1-performances are displayed in bold.

Limitations and Future Work

  • Hardware Constraints: While the BERT model is more accurate, it requires significantly more computational power (GPUs) than the lightweight, CPU-friendly NegEx. This may be a hurdle for some hospital IT environments.
  • Translation Errors: The authors noted that some factuality cues were lost or misinterpreted during translation (e.g., "rule out" being translated as "Vorschriften" or "regulations" instead of "ausschließen"). Improving the underlying medical MT systems would likely further boost performance.
  • Trigger Set Improvements: For those still needing rule-based systems, the authors released an improved Python version of NegEx (pynegex) and suggested updates to the German trigger sets to handle umlauts and compound words better.

Summary updated

BibTeX
@misc{sumait2023factuality,
  author = {Mohammed Bin Sumait and Aleksandra Gabryszak and Leonhard Hennig and Roland Roller},
  title = {{Factuality Detection using Machine Translation -- a Use Case for German Clinical Text}},
  year = {2023},
  eprint = {2308.08827},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.08827},
}
Figure