Beyond De-Identification: A Structured Approach for Defining and Detecting Indirect Identifiers in Medical Texts

Ibrahim Baroud, Lisa Raithel, Sebastian Möller, Roland Roller

TL;DR

This paper introduces a novel schema for identifying "indirect identifiers" in medical texts, going beyond traditional direct identifiers like names and addresses. They developed and released an annotated dataset of medical discharge summaries to train and evaluate models, demonstrating that while BERT performs well, current large language models (LLMs) struggle with this specific task.

What Problem Does This Paper Address?

Sharing sensitive medical data for research is crucial for advancing healthcare, but patient privacy is a major hurdle. While regulations like HIPAA mandate the removal of "direct identifiers" (e.g., names, addresses), simply removing these isn't enough. Unstructured text often contains "indirect identifiers" – pieces of information that, while not directly identifying on their own, can be combined with external knowledge to re-identify individuals. This poses a significant challenge for true anonymization, as manual de-identification is time-consuming and prone to errors. The paper aims to address this by systematically defining and detecting these indirect identifiers in medical texts.

Methods

The core of this work is the development of a structured schema for indirect personal identifiers (IPIs). This schema, comprising nine categories (Appearance, Circumstances, SEC, Family, FCLT_PERSONNEL, TIME, LFSTL, DETAILS, OTHER), was informed by prior work and manual analysis of medical discharge summaries. They then applied this schema to annotate 100 MIMIC-III discharge summaries, creating a new benchmark dataset. For detecting these IPIs, they framed the problem as a span classification task and experimented with both a fine-tuned BERT model and several large language models (LLMs) in zero-shot and few-shot settings.

Datasets

The primary dataset used is the MIMIC-III database, specifically 100 discharge summaries randomly sampled and de-identified. The authors created a new annotated dataset from these summaries, containing 6,199 annotations across the nine IPI categories. This dataset, along with the annotation guidelines, is released to the research community.

Key Insights and Ideas

  • Beyond Direct Identifiers: The paper strongly emphasizes that true anonymization requires looking beyond obvious direct identifiers. Indirect identifiers, though seemingly innocuous individually, can collectively lead to re-identification.
  • Context Matters: The definition and identification of indirect identifiers are domain-specific. The proposed schema is tailored for medical texts but is designed to be adaptable.
  • LLMs Struggle with Nuance: Despite the hype around LLMs, the study found that current models (like Llama-3.1, Mistral-7B, and Qwen2.5) performed poorly on this specific indirect identifier detection task, often failing to follow instructions or hallucinating. This suggests LLMs might be better suited as supportive tools rather than standalone solutions for this problem.
  • BERT Remains a Strong Baseline: The fine-tuned BERT model demonstrated significantly better performance than the tested LLMs, highlighting its continued relevance for structured NLP tasks like span classification.
  • Data Imbalance is a Challenge: The annotated dataset exhibits a significant imbalance in category distribution, with "TIME" and "FCLT_PERSONNEL" being the most frequent. This imbalance makes it challenging for models to accurately detect less frequent but potentially more critical categories.

Key Results

The BERT model achieved a micro-averaged F1-score of 0.87 on the test set, with high recall scores across most categories. Categories like TIME, FCLT_PERSONNEL, and SEC showed particularly strong performance. In contrast, the lightweight LLMs in zero-shot and 3-shot settings achieved micro-averaged F1-scores below 51%, with recall below 47%. The inter-annotator agreement (IAA) for the human annotation process was also high, with an average relaxed F1-score of 0.87.

Limitations and Future Work

The authors acknowledge that their list of IPI categories is not exhaustive and that further research is needed to explore a wider range of potential risks. They also note the difficulty in accessing similar datasets in other domains due to privacy concerns. Future work includes testing the schema's scalability to other domains and languages, and developing a framework for (k-)anonymizing the identified indirect identifiers. They also plan to use LLMs to augment the training data for rare categories and explore hybrid approaches combining regular expressions with machine learning models.

Summary updated

BibTeX
@inproceedings{baroud2025beyond,
  author = {Ibrahim Baroud and Lisa Raithel and Sebastian Möller and Roland Roller},
  title = {{Beyond De-Identification: A Structured Approach for Defining and Detecting Indirect Identifiers in Medical Texts}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
}
Figure