Filtered BERT: Similarity Filter-Based Augmentation with Bidirectional Transfer Learning for Protected Health Information Prediction in Clinical Documents

Min Kang, Kye Hwa Lee, Youngho LeeApplied Sciences 2021

TL;DR

This paper tackles the challenge of de-identifying Protected Health Information (PHI) in clinical documents, a crucial step for secondary data use. They introduce a novel "Filtered BERT" augmentation method that leverages BERT's language understanding and a similarity filter to generate more effective training data, significantly improving PHI prediction performance, especially in low-data scenarios.

What Problem Does This Paper Address?

The secondary use of clinical documents, such as for research or building clinical decision support systems, is vital for advancing healthcare. However, before this data can be used, sensitive Protected Health Information (PHI) must be removed to protect patient privacy, adhering to regulations like HIPAA. Traditionally, this de-identification process is manual, which is time-consuming, expensive, and prone to errors. While automated methods like rule-based systems and traditional machine learning (e.g., SVM, CRF) exist, they often struggle with the nuances of clinical text and require extensive feature engineering. More advanced deep learning models, particularly those based on BERT, show promise but are hampered by the scarcity of publicly available, well-annotated PHI datasets. This data limitation hinders model generalization and performance. This paper aims to address this data scarcity problem by proposing an effective data augmentation technique specifically for PHI de-identification.

Methods

The core of this paper is the Filtered BERT augmentation method. This approach builds upon the powerful BERT (Bidirectional Encoder Representations from Transformers) model, which excels at understanding context in text. Here's how it works:

  1. Masked Word Prediction: Similar to BERT's pre-training, the model masks words in a clinical document and then predicts what those masked words should be, based on the surrounding context.
  2. Similarity Filtering: This is the novel part. After BERT predicts a replacement word, a similarity filter is applied. This filter uses fastText word embeddings to calculate the cosine similarity between the original masked word and the predicted word.
  3. Augmentation Decision: If the cosine similarity between the original and predicted word exceeds a predefined threshold (e.g., > 0), the predicted word is considered a valid augmentation and replaces the masked word. If the similarity is too low, the predicted word is discarded, and the original word is kept (or the process might be repeated, though the paper implies a single pass for augmentation).

This filtering step is crucial because it prevents BERT from generating augmentations that are semantically distant from the original context, which could introduce noise and degrade model performance. The method essentially augments the training data by creating variations of existing sentences while ensuring the augmented words are contextually relevant.

Datasets

The study utilizes the i2b2 2014 dataset. This is described as one of the most representative publicly available datasets for PHI anonymization of medical documents. It comprises 1304 longitudinal medical records from 296 diabetic patients, with PHIs annotated by three annotators and manually verified. The dataset includes various PHI categories, such as NAME, PROFESSION, LOCATION, AGE, DATE, and CONTACT information.

Key Insights and Ideas

  • Contextual Relevance is Key for Augmentation: Simply generating variations of text isn't enough. The "Filtered BERT" approach highlights that ensuring the semantic similarity between original and augmented words is critical for effective data augmentation in sensitive domains like clinical text.
  • BERT's Power Amplified by Filtering: BERT's ability to predict contextually relevant words is powerful, but the similarity filter acts as a crucial quality control, preventing potentially erroneous augmentations and leading to more robust training data.
  • Addressing Data Scarcity in PHI: The paper directly tackles the well-known problem of limited annotated data in PHI de-identification, demonstrating a practical solution that can improve model performance without requiring massive new datasets.
  • Fine-grained PHI Tag Performance: The augmentation method shows significant improvements across various PHI tags, particularly for those with fewer instances, suggesting its utility in balancing class distributions.

Key Results

The study reports significant improvements in Named Entity Recognition (NER) performance after applying the Filtered BERT augmentation.

  • Overall Performance: The F1-Score increased from 0.8845 (without augmentation) to 0.9233 (with Filtered BERT augmentation), a notable improvement. Precision and Recall also saw substantial gains.
  • Tag-Specific Improvements: Table 4 shows detailed improvements for individual PHI tags. For instance, "DOCTOR" saw its F1-Score increase from 0.75 to 0.89, and "PATIENT" from 0.76 to 0.89.
  • Impact on Low-Frequency Tags: Tags with fewer instances, such as "PROFESSION" (F1: 0.12 to 0.31) and "STREET" (F1: 0.30 to 0.79), experienced particularly dramatic performance boosts, underscoring the augmentation's effectiveness in data-scarce scenarios.

Limitations and Future Work

  • Generalization: The authors acknowledge that the training and testing data were collected from a single institution. This raises questions about the model's generalization ability to clinical documents from different institutions or with different writing styles. Future work should involve evaluating the model on data from diverse sources.
  • Data Imbalance: While augmentation helps, the paper notes that some PHI categories (e.g., "LOCATION-OTHER," "DEVICE") have very few instances, making it difficult to secure sufficient data for learning, even with augmentation.
  • Oversampling: The paper suggests that oversampling methods, potentially combined with techniques like Variational Autoencoders (VAEs), could further improve performance, especially for unbalanced datasets.
  • Broader Application: Future work could explore applying this filtered augmentation approach to other NLP tasks beyond PHI de-identification.

Summary updated

BibTeX
@inproceedings{kang2021filtered,
  author = {Min Kang and Kye Hwa Lee and Youngho Lee},
  title = {{Filtered BERT: Similarity Filter-Based Augmentation with Bidirectional Transfer Learning for Protected Health Information Prediction in Clinical Documents}},
  booktitle = {Applied Sciences},
  year = {2021},
  doi = {10.3390/app11083668},
}
Figure