• 2025
  • Conference Paper
  • M4 - Adapting Text Embeddings

End-to-end Pseudonymization of German Texts with Deep Learning – An Empirical Comparison of Classical and Modern Approaches

Published in Proceedings of the 1st International Conference on AI in Medicine and Healthcare (AiMH 2025)

Abstract

In contrast to other domains, the potential of text data remains difficult to explore in health care: Artificial Intelligence (AI) innovations using text data in health care require robust and reliable redaction of personally identifying information. Rule based systems are working reliably for de-identification of some entities (dates, e-mails) but not for others that e.g. require contextual information, such as family names. Leveraging the potential of AI for text data thus requires a better understanding of the de-identification quality using different approaches. Here we explore the potential of classical and modern deep learning techniques for end-to-end pseudonymization of text data, meaning that we focus on models that can conduct the entire pseudonymisation process in one component, including detection of personally identifying information as well as finding sensible pseudonyms. We investigate the potential of large language models (LLMs) that can be readily applied on-premise, without requiring to send patient records to cloud providers. In extensive empirical evaluations on a large corpus of German text we compare methods with respect to redaction performance and utility of pseudonymized texts for training AI models and explore the dependency of redaction performance on the amount of training data. We demonstrate the efficacy of a unified end-to-end pseudonymization system capable of detecting private entities and generating type-compliant pseudonyms. Compared to fine-tuned models, mere prompting of pretrained LLMs for redaction and pseudonymization did not yield better redaction and pseudonymization quality in our experiments. These findings highlight the potential of fine-tuned models over prompting of off-the-shelf pretrained LLMs. Consequently, these results imply the need for well curated large training data sets for de-identification. Based on these results we argue that more and better automated de-identification and pseudonymization tools are a prerequisite for responsible usage and research of AI, in particular LLMs, in health care.

BibTeX

@inproceedings{Saha2025Pseudonymization,
  author    = {Saha, Saurav Kumar and Biessmann, Felix},
  title     = {End-to-end Pseudonymization of German Texts with Deep Learning -- An Empirical Comparison of Classical and Modern Approaches},
  booktitle = {Proceedings of the 1st International Conference on AI in Medicine and Healthcare (AiMH 2025)},
  address   = {Innsbruck, Austria},
  year      = {2025},
  url       = {https://sensorsportal.com/AIMH_2025/AIMH_2025_Proceedings.pdf#page=99}
}