Clinical Named Entity Recognition using Contextualized Token Representations

Yichao Zhou, Chelsea Ju, J. Harry Caufield, Kevin Shih, Calvin Yu-Chian Chen, Yizhou Sun, Kai-Wei Chang, Peipei Ping, Wei WangarXiv 2021

TL;DR

This paper introduces C-ELMo and C-Flair, domain-specific contextualized word embeddings trained on clinical case reports. These embeddings significantly improve clinical named entity recognition (CNER) performance compared to general-purpose embeddings, demonstrating the value of domain adaptation for NLP tasks in healthcare.

What Problem Does This Paper Address?

Extracting structured information from clinical text, particularly clinical named entity recognition (CNER), is crucial for advancing medical research and practice. CNER involves identifying and categorizing clinical terms like diseases, medications, and procedures. Traditional methods often rely on static word embeddings, which fail to capture the nuanced meanings of words that change based on their context. For instance, "MR" can refer to magnetic resonance imaging, mitral regurgitation, or a medical record. While general-purpose contextualized embeddings like ELMo and Flair have shown promise, they are often too broad to fully grasp the specific vocabulary and semantic relationships within specialized domains like clinical case reports (CCRs). This paper aims to bridge this gap by developing and evaluating domain-specific contextualized embeddings for CNER.

Methods

The core of this work lies in adapting existing state-of-the-art contextualized language models, ELMo and Flair, to the clinical domain.

  • Domain-Specific Pre-training: The authors pre-train two new models: C-ELMo (Clinical ELMo) and C-Flair (Clinical Flair). These models are trained on a curated corpus of clinical case reports from PubMed Central, rather than general-domain text. This domain adaptation is expected to imbue the embeddings with a richer understanding of clinical terminology and its contextual usage.
  • Model Architectures:
    • C-ELMo: This model builds upon the original ELMo architecture, which uses a bidirectional language model (biLM) with character convolutions. It processes words and learns contextual representations by predicting the next word in a sequence, considering both forward and backward contexts.
  • C-Flair: This model adapts the Flair architecture, which uses a character-level language model. It treats text as a sequence of characters and learns embeddings by predicting the next character, also leveraging bidirectional RNNs.
  • CNER Model: The pre-trained contextualized embeddings are then fed into a standard BiLSTM-CRF (Bidirectional Long Short-Term Memory - Conditional Random Field) sequence tagging model. This model is a common choice for CNER tasks, where the BiLSTM captures sequential information and the CRF models dependencies between predicted labels. The authors explore concatenating these contextualized embeddings with static embeddings like GloVe to further enhance performance.

Datasets

The paper utilizes three publicly available datasets for evaluating the CNER models:

  • MACCROBAT2018: This dataset, developed from curated clinical case reports, contains 200 annotated reports with 24 different entity/event types.
  • i2b2-2010: This dataset, from the i2b2/VA 2010 Workshop, focuses on clinical notes and includes three entity types: "test," "problem," and "treatment."
  • NCBI-disease: This dataset is specifically annotated for disease mentions and concepts, containing 793 PubMed abstracts with 6,892 disease mentions and 790 unique disease concepts. It primarily focuses on the "disease" entity type.

The authors also describe their pre-training corpus: approximately 47,990 documents related to clinical case reports from PubMed Central, indexed using keywords like "case report" and "clinical report," totaling about 0.1 billion words.

Key Insights and Ideas

  • Domain Adaptation is Crucial: The most significant insight is that pre-training language models on a domain-specific corpus (clinical case reports) leads to substantial improvements in downstream clinical NLP tasks like CNER, outperforming models trained on general-domain data. This highlights the importance of tailoring NLP models to the specific linguistic characteristics of a field.
  • Contextual Embeddings Offer a Major Boost: The paper strongly demonstrates that contextualized embeddings (C-ELMo, C-Flair) provide a significant advantage over static embeddings (GloVe) for CNER, boosting F1-scores by up to 10.31%. This underscores the necessity of capturing word meaning based on context in clinical text.
  • C-ELMo vs. C-Flair Nuances: While both C-ELMo and C-Flair show strong performance, the paper offers a comparative analysis. C-ELMo tends to perform better on entity types that rely heavily on word-level context and broader semantic understanding (e.g., "Severity," "Detailed Description"), while C-Flair shows an advantage in types with more specific or less common vocabulary (e.g., "Dosage").
  • Efficiency Matters: The authors successfully demonstrate that effective domain-specific models can be built with a relatively smaller corpus and less computational resources compared to massive models like BioBERT, which required extensive resources. This suggests a more accessible path to high-performance clinical NLP.

Key Results

The paper reports significant improvements in CNER performance using their domain-specific contextualized embeddings:

  • Overall Performance Boost: C-ELMo and C-Flair, when combined with GloVe, achieved dramatic improvements in micro F1-scores across the three benchmark datasets:
  • MACCROBAT2018: up to 65.75% (GloVe+C-ELMO)

    • i2b2-2010: up to 87.45% (GloVe+C-Flair)
    • NCBI-disease: up to 87.88% (GloVe+C-ELMO) These represent improvements of 10.31%, 7.50%, and 6.94% respectively, compared to using GloVe alone.
  • Outperforming Baselines: The proposed models, even with a simple BiLSTM-CRF architecture, outperformed established baseline methods like those from Ma and Hovy (2016), Wang et al. (2018), and Lee et al. (2019) on the tested datasets.

  • Domain-Specific Advantage: The domain-specific pre-trained models (C-ELMo, C-Flair) consistently outperformed their domain-generic counterparts (ELMo, Flair) when used with GloVe.

Limitations and Future Work

  • Character-Level Model Robustness: The authors note that the purely character-level language model (C-Flair) may not be as robust as word-level models in certain scenarios, as observed by its surprisingly low F1-score on the MACCROBAT2018 dataset.
  • "Disease Disorder" Challenge: The paper highlights that even with advanced contextual embeddings, recognizing complex phrase-level disease entities (e.g., "Scheuer stage 3," "feeding difficulties") remains challenging, with both models achieving around 50% F1-score on this specific entity type in the MACCROBAT2018 dataset.
  • Future Directions: The authors suggest that their pre-trained language models can support a wider range of downstream applications beyond CNER, such as clinical relation extraction and question answering. They also plan to make their pre-trained embeddings publicly available.

Summary updated

BibTeX
@misc{zhou2021clinical,
  author = {Yichao Zhou and Chelsea Ju and J. Harry Caufield and Kevin Shih and Calvin Yu-Chian Chen and Yizhou Sun and Kai-Wei Chang and Peipei Ping and Wei Wang},
  title = {{Clinical Named Entity Recognition using Contextualized Token Representations}},
  year = {2021},
  eprint = {2106.12608},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.12608},
}
Figure