Abstract
Electronic Health Records (EHRs) are a valuable resource for both clinical and translational research. However, much detailed patient information is embedded in clinical narratives, including a large number of patients’ identifiable information. De-identification of clinical notes is a critical technology to protect the privacy and confidentiality of patients. Previous studies presented many automated de-identification systems to capture and remove protected health information from clinical text. However, most of them were tested only in one institute setting where training and test data were from the same institution. Directly adapting these systems without customization could lead to a dramatic performance drop. Recent studies have shown that fine-tuning is a promising method to customize deep learning-based NLP systems across different institutes. However, it’s still not clear how much local data is required. In this study, we examined the customizing of a deep learning-based de-identification system using different sizes of local notes from UF Health. Our results showed that the fine-tuning could significantly improve the model performance even on a small local dataset. Yet, when the local data exceeded a threshold (e.g., 700 notes in this study), the performance improvement became marginal.
Introduction
A significant hurdle in deploying medical AI is the "cross-institute" performance drop. While deep learning models excel at scrubbing Protected Health Information (PHI) from clinical notes, a model trained at one hospital often underperforms when moved to another due to variations in templates, jargon, and note-taking styles. This study, conducted by researchers at the University of Florida, quantifies the amount of local data required to bridge this gap through fine-tuning.
Methods and Data
The researchers utilized a Long Short-Term Memory – Conditional Random Fields (LSTM-CRF) architecture for sequence labeling. They compared two primary training strategies:
- Fine-tuning: Initializing with a model pre-trained on the 2014 i2b2 de-identification dataset and updating weights with local UF Health data.
- Training-from-scratch: Initializing with random weights and training exclusively on local UF Health data.
The local dataset consisted of 1,100 clinical notes from UF Health, covering 39 different note types. To identify the "saturation point," they tested five dataset sizes: 100, 300, 500, 700, and 900 notes.
Key Results
The study demonstrated that fine-tuning is significantly more efficient than training from scratch. A fine-tuned model using only 100 local notes outperformed the baseline (no customization) by approximately 10%.
As shown in Figure 2, performance gains are steep initially but flatten out as the dataset size increases. The researchers identified a threshold around 700 notes where additional data yielded only marginal improvements. Notably, a fine-tuned model with 700 notes (F1: 0.9707) outperformed a model trained from scratch on 900 notes (F1: 0.9681).
Category-Specific Performance
The impact of local data varies across PHI categories. While some types like "DATE" are relatively consistent across institutions, others like "ID numbers" and "INSTITUTE names" are highly institution-specific and require local data to achieve high accuracy.
Figure 1 illustrates that for high-risk categories (NAME, DATE, ID, INSTITUTE), fine-tuning with at least 500 notes ensured an F1-score above 0.90 for all four.
Conclusion
Fine-tuning pre-trained models with local clinical notes provides a practical "shortcut" for institutions. This approach significantly outperforms training from scratch, especially when data is limited. The finding that performance saturates after approximately 700 notes offers a valuable guideline for resource allocation in clinical de-identification projects. Future work may explore how these findings apply to Transformer-based architectures like BERT or RoBERTa.
Summary updated