Large Language Models for Electronic Health Record De-Identification in English and German
Electronic health record (EHR) de-identification is crucial for publishing or sharing medical data without violating the patient’s privacy. Protected health information (PHI) is abundant in EHRs, and privacy regulations worldwide mandate de-identification before downstream tasks are performed. The ever-growing data generation in healthcare and the advent of generative artificial intelligence have increased the demand for de-identified EHRs and highlighted privacy issues with large language models (LLMs), especially data transmission to cloud-based LLMs. In this study, we benchmark ten LLMs for de-identifying EHRs in English and German. We then compare de-identification performance for in-context learning and full model fine-tuning and analyze the limitations of LLMs for this task. Our experimental evaluation shows that LLMs effectively de-identify EHRs in both languages. Moreover, in-context learning with a one-shot setting boosts de-identification performance without the costly full fine-tuning of the LLMs.
Authors
- Roman Kern (ORCID: https://orcid.org/0000-0003-0202-6100)
- Samuel Sousa (ORCID: https://orcid.org/0000-0001-7196-9095)
- Michael Jantscher (ORCID: https://orcid.org/0009-0001-4779-0762)
- Mark Kröll (ORCID: https://orcid.org/0000-0002-8398-5292)
Institutions
- Graz University of Technology (AT)
- Know Center Research GmbH (Austria) (AT)
Publication Details
- Journal
- Information
- Published
- 2025-02-06
- DOI
- https://doi.org/10.3390/info16020112
- Citations
- 6
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 14.89
Funders
- Österreichische Forschungsförderungsgesellschaft
- Bundesministerium für Verkehr, Innovation und Technologie