TL;DR
This paper introduces CancerBERT, a specialized BERT model for extracting breast cancer phenotypes from electronic health records (EHRs). By pre-training on a large cancer-specific corpus and incorporating a custom vocabulary, CancerBERT significantly outperforms general-purpose models, paving the way for more accurate and efficient clinical decision support and research.
What Problem Does This Paper Address?
Extracting detailed patient information, known as phenotypes, from electronic health records (EHRs) is crucial for advancing precision medicine, clinical decision support, and research. While EHRs contain a wealth of data, much of it is unstructured text in clinical notes and pathology reports. Manually extracting this information is time-consuming and expensive. Existing natural language processing (NLP) models, even advanced ones like BERT, often struggle with the specialized terminology and nuances of the medical domain, particularly for specific diseases like breast cancer. A key challenge is the "out-of-vocabulary" (OOV) problem, where specialized terms are not recognized by the model's existing vocabulary, leading to performance degradation. This paper aims to address these limitations by developing a domain-specific BERT model for breast cancer phenotype extraction and investigating methods to mitigate the OOV issue.
Methods
The researchers developed CancerBERT, a domain-specific language model for breast cancer phenotype extraction. The core of their approach involved:
- Pre-training: They started with the BlueBERT model, which was already pre-trained on biomedical literature (PubMed) and clinical notes (MIMIC-III). This BlueBERT model was then further pre-trained on a large corpus of breast cancer-related clinical notes and pathology reports from the University of Minnesota (UMN) EHRs. This step allows the model to learn the specific language and patterns within cancer-related texts.
- Vocabulary Expansion: To combat the OOV issue, they explored two methods to create customized vocabularies:
- Domain Knowledge-Based: A researcher with clinical expertise reviewed newly identified words from the cancer corpus and selected 397 relevant terms.
- Frequency-Based: They identified the 997 most frequent unique words in the cancer corpus that were not present in the original BERT vocabulary.
- Fine-tuning: The pre-trained CancerBERT models (with original and customized vocabularies) were then fine-tuned on a labeled dataset for the specific task of Named Entity Recognition (NER) to extract eight types of breast cancer phenotypes.
- Baseline Models: For comparison, they also fine-tuned several other BERT-based models (BERT-large, BioBERT, BlueBERT, CharBERT, character-BERT) and a traditional BiLSTM-CRF model.
Datasets
- Training and Pre-training Corpus: A large corpus of 5.8 million documents (approximately 1 billion tokens) was extracted from the University of Minnesota (UMN) EHRs, specifically focusing on breast cancer patients from 2001 to 2018.
- Annotation and Evaluation Dataset: A subset of this corpus was manually annotated. This included 200 pathology reports and 50 clinical notes, containing 9,685 sentences and 221,356 tokens. Two annotators performed the annotation, achieving a Cohen's kappa score of 0.91, indicating high agreement. 20% of this annotated data was used as a test set for evaluation.
Key Insights and Ideas
- Domain Specialization Matters: Pre-training BERT on a domain-specific corpus (breast cancer EHRs) significantly boosts performance compared to models trained on general or even broader biomedical data. This highlights the importance of tailoring language models to the specific linguistic characteristics of a domain.
- Vocabulary Expansion is Key for OOV: The OOV problem is a significant hurdle for BERT models in specialized domains. Expanding the vocabulary with domain-specific terms, whether through expert knowledge or frequency analysis, demonstrably improves performance.
- Custom Vocabulary Outperforms General BERT: Even the original BERT vocabulary, when used with a domain-specific pre-trained model (CancerBERTOrigVoc), performed better than general BERT models. However, the customized vocabularies further enhanced this performance.
- Domain Knowledge vs. Frequency: The domain knowledge-based vocabulary expansion (397 terms) yielded slightly better results than the frequency-based approach (997 terms), suggesting that curated, semantically relevant terms can be more impactful than simply adding frequent words.
- Visualizing Embeddings Confirms Semantic Capture: t-SNE visualizations of word embeddings showed that CancerBERT models with customized vocabularies could effectively cluster semantically similar terms, indicating that the models are capturing meaningful relationships within the cancer domain.
Key Results
- Superior Performance: All three CancerBERT models (CancerBERTOrigVoc, CancerBERTCustVoc_397, and CancerBERTCustVoc_997) outperformed all baseline models, including general-purpose BERT variants and the BiLSTM-CRF model, on the breast cancer phenotype NER task.
- Best Model: The CancerBERTCustVoc_397 model, using the domain knowledge-based customized vocabulary, achieved the highest performance.
- Macro F1 Scores: 0.876 for exact match and 0.904 for lenient match.
- Micro F1 Scores: 0.909 for exact match and 0.933 for lenient match.
- Vocabulary Coverage: The customized vocabularies significantly increased the coverage of unique annotated tokens compared to the original BERT vocabulary, especially for entities like "Cancer stage" and "Hormone receptor type." The domain knowledge-based approach provided better coverage than the frequency-based approach for most entity types.
Limitations and Future Work
- Single Institution Corpus: The study's corpus was extracted from a single hospital (UMN). This might limit the generalizability of the models, as clinical narratives can vary across institutions.
- NER Task Only: The models were only evaluated on the NER task.
- Future Work:
- Integrate corpora from other healthcare institutions to improve generalizability.
- Explore different tokenization methods (e.g., MedSpaCy) for generating new words.
- Annotate more data to evaluate models on other downstream clinical NLP tasks, such as relation extraction and text classification.
- Further investigate error types, such as boundary mismatches, missing entities, and entity mixing, to refine model performance.
Summary updated