Generation and De-Identification of Indian Clinical Discharge Summaries using LLMs

Sanjeet Singh, Shreya Gupta, Niralee Gupta, Naimish Sharma, Lokesh Srivastava, Vibhu Agarwal, Ashutosh Modi · DOI

Introduction

Protecting patient privacy is a cornerstone of modern healthcare, yet the tools required to automate this process—specifically de-identification models—often fail when applied outside of Western contexts. Researchers have addressed this gap by leveraging Large Language Models (LLMs) to generate high-quality synthetic Indian clinical data. By training models on this localized synthetic data, they achieved a significant performance leap, moving from approximately 40% to a 98% F1-score on real-world Indian clinical records.

The Challenge of Localized PHI

De-identifying clinical records involves removing Protected Health Information (PHI) such as names, dates, and addresses to comply with legal frameworks like India's Digital Personal Data Protection Act (DPDPA) 2023. However, standard Natural Language Processing (NLP) models suffer from "data drift."

Models trained on American datasets excel at identifying Western naming conventions and address formats but struggle with Indian contexts. In India, PHI includes culturally distinct names, specific address formats (e.g., "Sector 11, Faridabad"), and unique hospital identifiers like "CRNO" numbers. Due to strict privacy regulations, there is a severe shortage of labeled Indian clinical data to train localized models, creating a significant "generalization gap."

Example of an annotated Indian clinical discharge summary highlighting localized PHI tags such as Hospital, Patient Name, and Location.

Methodology

The researchers developed a pipeline that uses the generative capabilities of LLMs to bridge the data scarcity gap:

  1. Synthetic Data Generation: Using In-Context Learning (ICL), LLMs (including Llama-3-8B and Mistral-7B) were prompted to generate thousands of synthetic Indian discharge summaries. A small "seed" of real Indian summaries ensured the models captured the correct linguistic and structural nuances.
  2. Unified Tagging: PHI labels from disparate datasets were mapped to a consistent set of 9 tags (e.g., CONTACT, LOCATION, ID).
  3. Fine-Tuning: These synthetic datasets were used to fine-tune PI-RoBERTa, a transformer-based model optimized for Named Entity Recognition (NER).
  4. Human Validation: Physicians participated in a "Turing Test" to determine if they could distinguish between real and synthetic summaries, ensuring the generated data maintained high "face validity."

Dataset Characteristics

The study utilized several key datasets to benchmark performance and train the localized model:

  • n2c2 (2006 & 2014): Standard US-based clinical benchmarks used for baseline comparisons.
  • $ICDS_R$ (Real): A small, expert-annotated dataset of 99 real summaries from an Indian hospital (SGPGIMS, Lucknow).
  • $ICDS^g_G$ and $ICDS^l_G$ (Generated): Large synthetic datasets created to mimic US and Indian clinical styles, respectively.
Statistical overview of the training and test datasets, showing the contrast in volume between real Indian data (ICDS_R) and the synthetic datasets.

Key Results and Evaluation

Performance Breakthrough

Fine-tuning on the synthetic Indian dataset ($ICDS^l_G$) boosted de-identification performance on real Indian records to a 0.98 F1-score. In contrast, models trained purely on US data (n2c2) performed poorly, often failing to recognize Indian naming conventions or address structures as PHI.

Comparison with Commercial Solutions

The researchers tested leading commercial de-identification tools (AWS Comprehend Medical and GCP Data Loss Prevention). These "off-the-shelf" solutions struggled significantly with the Indian dataset, yielding F1-scores of 0.37 (AWS) and 0.47 (GCP). This underscores the critical need for localized, context-aware training data.

LLMs as Data Engines

An interesting finding was that while LLMs were excellent at generating realistic synthetic data, they were mediocre at performing the de-identification task directly (zero-shot). They often struggled with high recall, missing several PHI elements that the fine-tuned PI-RoBERTa model successfully captured.

Conclusion and Future Work

This research demonstrates that synthetic data generated by LLMs can effectively overcome the scarcity of sensitive medical data. By capturing the specific context of Indian PHI, the resulting models provide a robust solution for clinical privacy.

Future work will focus on expanding the real-world test sets and implementing an active learning workflow. This would allow the model to identify uncertain cases for human review, creating a continuous feedback loop to improve robustness across various medical specialties and regional dialects.

Summary updated

BibTeX
@inproceedings{singh2024generation,
  author = {Sanjeet Singh and Shreya Gupta and Niralee Gupta and Naimish Sharma and Lokesh Srivastava and Vibhu Agarwal and Ashutosh Modi},
  title = {{Generation and De-Identification of Indian Clinical Discharge Summaries using LLMs}},
  booktitle = {BioNLP @ ACL},
  year = {2024},
  doi = {10.18653/v1/2024.bionlp-1.26},
}
Figure