Large Language Model Empowered Privacy-Protected Framework for PHI Annotation in Clinical Notes

Guanchen Wu, Linzhi Zheng, Han Xie, Zhen Xiang, Jiaying Lu, Darren Liu, Delgersuren Bold, Bo Li, Xiao Hu, Carl Yang · DOI

Abstract

Clinical notes are essential for medical research but are often inaccessible due to the presence of Protected Health Information (PHI). Traditional de-identification methods are either brittle, labor-intensive, or pose privacy risks when using commercial APIs. This paper introduces the LPPA (LLM-powered Privacy-protected PHI Annotation) framework, which leverages synthetic data generation to fine-tune local, open-source Large Language Models (LLMs). By training on 4,000 entirely synthetic notes, the LPPA framework achieves performance comparable to GPT-4 while ensuring sensitive data remains within local hospital environments. Our results demonstrate that synthetic data is a viable substitute for scarce annotated medical datasets, providing a scalable and privacy-compliant solution for clinical data sharing.

Introduction

Clinical documentation, including discharge summaries and nursing reports, contains a wealth of information for longitudinal studies and clinical trial recruitment. However, the Health Insurance Portability and Accountability Act (HIPAA) requires the removal of PHI—such as names, dates, and geographic locations—before these records can be shared for research.

Existing de-identification strategies face significant hurdles. Rule-based systems often fail to capture the nuances of unstructured clinical narratives. Traditional machine learning models require massive, manually annotated datasets that are expensive to produce. Furthermore, while commercial LLMs like GPT-4 offer high accuracy, their use involves transmitting sensitive patient data to third-party servers, creating significant legal and ethical barriers. The LPPA framework addresses these challenges by enabling high-accuracy, local de-identification without the need for real-world training data.

Methodology

The core of the LPPA framework is a dual-strategy synthetic data generation pipeline designed to teach models how to identify PHI without exposing them to actual private records during training.

Synthetic Data Generation

Two distinct methods were employed to create a robust training set of 4,000 notes:

  1. Anonymized Example-Guided Note Generation (AEG): This approach uses a small set of previously anonymized real-world notes as structural templates. An LLM is prompted to generate new narratives that mimic the style and format of these templates while populating them with simulated PHI.
  2. Synthetic PHI Insertion (SPI): This method utilizes structured, non-sensitive data from the public eICU Collaborative Research Database. The system takes factual clinical data (e.g., diagnoses, medications) and tasks an LLM with "hallucinating" a realistic clinical narrative around it, strategically inserting fake identifiers like names and addresses.

Instruction Tuning

The researchers fine-tuned a Llama-3-8B-Instruct model using LoRA (Low-Rank Adaptation). This technique allows for efficient specialization of the model on the PHI extraction task. The model was trained to output identified PHI in a structured JSON format, which is then used to automatically mask the original text. The fine-tuning process was highly efficient, requiring only 10 minutes on two H100 GPUs.

Evaluation and Results

The LPPA framework was evaluated against a real-world set of 100 fully annotated clinical notes from a major US hospital and a synthetic evaluation set.

Performance Metrics

On real-world clinical notes, the LPPA Hybrid model (combining AEG and SPI data) achieved an F1-score of 0.57. This performance is highly competitive, nearly matching GPT-4 (0.58) and outperforming traditional rule-based tools like PhysioNet’s Deid, which scored only 0.28. While the significantly larger Llama-3-70B model achieved a higher F1-score (0.62), the 8B parameter LPPA model offers the advantage of being deployable on modest local hardware.

On the synthetic evaluation set, the LPPA model reached an F1-score of 0.86, surpassing all baseline models, including GPT-4.

The Importance of Recall

In the context of medical privacy, the cost of a "false negative" (failing to mask a patient's name) is significantly higher than a "false positive" (masking a non-sensitive medical term). The LPPA framework was specifically optimized to prioritize recall, ensuring a conservative approach that maximizes the protection of patient identity.

Discussion and Conclusion

The LPPA framework demonstrates that synthetic data is "good enough" to train high-performing privacy-preserving models. By combining structural templates (AEG) with data-driven narratives (SPI), the model gains both precision and the ability to handle diverse clinical scenarios.

Crucially, because the framework utilizes a relatively small, open-source model, it can be deployed entirely offline within a healthcare provider's firewall. This ensures 100% data residency and eliminates the risks associated with third-party APIs.

Future Work

While effective, the current framework is primarily optimized for English-language discharge summaries. Future iterations may expand to include specialized fields such as genomics or pathology and explore the integration of multimodal data (e.g., medical imaging) to create a more comprehensive de-identification suite. Refining the diversity of synthetic data remains a priority to further improve the model's handling of rare clinical linguistic patterns.

Summary updated

BibTeX
@inproceedings{wu2025large,
  author = {Guanchen Wu and Linzhi Zheng and Han Xie and Zhen Xiang and Jiaying Lu and Darren Liu and Delgersuren Bold and Bo Li and Xiao Hu and Carl Yang},
  title = {{Large Language Model Empowered Privacy-Protected Framework for PHI Annotation in Clinical Notes}},
  booktitle = {Studies},
  year = {2025},
  doi = {10.3233/shti250965},
}
Figure