Header

Search

Local, Reversible Pseudonymization of Unstructured Health Data Using Deterministic Rules and On-Premises Language Models

Type Status Published Supervisor Email
MA Open 30 Nov 2026

Weijie Niu
Chao Feng
Jamo Sharif (Sumex AG)

niu@ifi.uzh.ch
cfeng@ifi.uzh.ch

This thesis, in collaboration with Sumex AG, explores how sensitive healthcare documents can be processed by external LLMs while minimizing the disclosure of personal information.

Healthcare organizations increasingly seek to leverage LLMs for document summarization, classification, and information extraction. However, documents such as medical reports, scanned forms, and e-mails often contain sensitive personal data, which poses significant privacy and data protection challenges when using external AI services.

The goal of this MA thesis is to design, implement, and evaluate a local, reversible pseudonymization framework for unstructured healthcare documents. The framework combines deterministic rules, Named Entity Recognition (NER), and locally deployed open-weight LLMs to identify sensitive information and replace it with consistent pseudonyms before external processing. The original information can subsequently be restored locally by authorized users.

The thesis will investigate the following aspects:

  • Hybrid detection of personal identifiers using deterministic rules, NER, and local LLMs.

  • Consistent and reversible pseudonymization across multiple documents.

  • Verification of pseudonymized outputs before their release to external AI services.

  • Evaluation of the trade-off between privacy protection and downstream LLM utility, including residual re-identification risks.

  • Assessment of detection accuracy, computational efficiency, and multilingual capabilities, with a primary focus on German and additional support for French and Italian.

The developed framework will be evaluated using publicly available and synthetic healthcare datasets, considering different document formats, pseudonymization strategies, and local language models.

Sources:

[1] I. C. Wiest et al., “Deidentifying Medical Documents with Local, Privacy-Preserving Large Language Models: The LLM-Anonymizer,” NEJM AI, vol. 2, no. 4, 2025. https://doi.org/10.1056/AIdbp2400537

[2] L. Siyan et al., “PAPILLON: Privacy Preservation from Internet-based and Local Language Model Ensembles,” Proceedings of NAACL, 2025, pp. 3371–3390. https://doi.org/10.18653/v1/2025.naacl-long.173

[3] R. Staab et al., “Beyond Memorization: Violating Privacy via Inference with Large Language Models,” Proceedings of ICLR, 2024. https://openreview.net/forum?id=kmn0BhQk7p

[4] Microsoft Presidio: Data Protection and De-identification SDK. https://github.com/microsoft/presidio

Prerequisites

This thesis is suitable for a student with interest in:

  • Python programming

  • Machine learning and large language models

  • Natural language processing

  • Data privacy and information security

Prior experience with Named Entity Recognition, local LLM deployment, or document processing is helpful, but not mandatory. Familiarity with German-language documents is advantageous.