End-to-end pseudonymization of fine-tuned clinical BERT models : Privacy preservation with maintained data utility

BMC Med Inform Decis Mak. 2024 Jun 12;24(1):162. doi: 10.1186/s12911-024-02546-8.

Abstract

Many state-of-the-art results in natural language processing (NLP) rely on large pre-trained language models (PLMs). These models consist of large amounts of parameters that are tuned using vast amounts of training data. These factors cause the models to memorize parts of their training data, making them vulnerable to various privacy attacks. This is cause for concern, especially when these models are applied in the clinical domain, where data are very sensitive. Training data pseudonymization is a privacy-preserving technique that aims to mitigate these problems. This technique automatically identifies and replaces sensitive entities with realistic but non-sensitive surrogates. Pseudonymization has yielded promising results in previous studies. However, no previous study has applied pseudonymization to both the pre-training data of PLMs and the fine-tuning data used to solve clinical NLP tasks. This study evaluates the effects on the predictive performance of end-to-end pseudonymization of Swedish clinical BERT models fine-tuned for five clinical NLP tasks. A large number of statistical tests are performed, revealing minimal harm to performance when using pseudonymized fine-tuning data. The results also find no deterioration from end-to-end pseudonymization of pre-training and fine-tuning data. These results demonstrate that pseudonymizing training data to reduce privacy risks can be done without harming data utility for training PLMs.

Keywords: BERT; Clinical text; De-identification; Electronic health records; Language models; Natural language processing; Privacy preservation; Pseudonymization; Swedish.

MeSH terms

  • Anonyms and Pseudonyms
  • Computer Security / standards
  • Confidentiality / standards
  • Electronic Health Records / standards
  • Humans
  • Natural Language Processing*
  • Privacy
  • Sweden