# DeID-GPT: Zero-shot Medical Text De-Identification by GPT-4

**Authors:** Zhengliang Liu, Yue Huang, Xiaowei Yu, Lu Zhang, Zihao Wu, Chao Cao, Haixing Dai, Lin Zhao, Yiwei Li, Peng Shu, Fang Zeng, Lichao Sun, Wei Liu, Dinggang Shen, Quanzheng Li, Tianming Liu, Dajiang Zhu, Xiang Li

arXiv: 2303.11032 · 2025-12-02

## TL;DR

This paper introduces DeID-GPT, a GPT-4-based framework for zero-shot de-identification of medical texts, achieving high accuracy in removing private information while maintaining text integrity.

## Contribution

The study presents a novel GPT-4-powered approach for medical text de-identification that outperforms existing methods in accuracy and reliability without requiring fine-tuning.

## Key findings

- DeID-GPT achieves the highest accuracy among tested methods.
- It reliably masks private information in unstructured medical texts.
- The approach preserves original text structure and meaning.

## Abstract

The digitization of healthcare has facilitated the sharing and re-using of medical data but has also raised concerns about confidentiality and privacy. HIPAA (Health Insurance Portability and Accountability Act) mandates removing re-identifying information before the dissemination of medical records. Thus, effective and efficient solutions for de-identifying medical data, especially those in free-text forms, are highly needed. While various computer-assisted de-identification methods, including both rule-based and learning-based, have been developed and used in prior practice, such solutions still lack generalizability or need to be fine-tuned according to different scenarios, significantly imposing restrictions in wider use. The advancement of large language models (LLM), such as ChatGPT and GPT-4, have shown great potential in processing text data in the medical domain with zero-shot in-context learning, especially in the task of privacy protection, as these models can identify confidential information by their powerful named entity recognition (NER) capability. In this work, we developed a novel GPT4-enabled de-identification framework (``DeID-GPT") to automatically identify and remove the identifying information. Compared to existing commonly used medical text data de-identification methods, our developed DeID-GPT showed the highest accuracy and remarkable reliability in masking private information from the unstructured medical text while preserving the original structure and meaning of the text. This study is one of the earliest to utilize ChatGPT and GPT-4 for medical text data processing and de-identification, which provides insights for further research and solution development on the use of LLMs such as ChatGPT/GPT-4 in healthcare. Codes and benchmarking data information are available at https://github.com/yhydhx/ChatGPT-API.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/2303.11032/full.md

## Figures

12 figures with captions in the complete paper: https://tomesphere.com/paper/2303.11032/full.md

## References

110 references — full list in the complete paper: https://tomesphere.com/paper/2303.11032/full.md

---
Source: https://tomesphere.com/paper/2303.11032