NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

State-of-the-art anonymisation of medical records using an iterative machine learning framework

György Szarvas, Richárd Farkas, Róbert Busa‐Fekete

TL;DR

This paper presents a novel iterative machine learning framework for anonymizing medical records, achieving state-of-the-art performance by leveraging the semi-structured nature of clinical documents. Their approach effectively identifies and removes personal health information (PHI) from discharge summaries, making them suitable for public research while preserving patient privacy.

What Problem Does This Paper Address?

The anonymization of medical records is crucial for advancing research in human diseases. However, these records contain sensitive personal health information (PHI) that, if not properly removed, can jeopardize patient privacy and hinder data sharing. The Health Information Portability and Accountability Act (HIPAA) outlines specific categories of PHI that must be redacted from medical discharge summaries. The challenge lies in accurately identifying and removing these diverse types of PHI (names, locations, dates, etc.) from complex, semi-structured text, a task that traditional NLP methods often struggle with.

Methods

The authors developed a machine learning-based iterative Named Entity Recognition (NER) approach tailored for semi-structured medical documents like discharge records. Their method works in two main steps:

  1. Structure-Informed Labeling: Initially, the system identifies entities whose tags can be directly inferred from the document's structure (e.g., labels in specific fields).
  2. Iterative Refinement: This structural information is then used to improve the identification of PHI within the free-text portions of the document. The core of their approach involves an iterative learning process. They train models, use their predictions to augment the training data (creating "trusted" entities), and then retrain. This iterative process allows the model to learn from its own predictions and the inherent structure of the documents.

They employed a rich feature set for their token-level classification model, including orthographical features, frequency information, phrasal information, and various dictionaries (first names, locations, etc.). Notably, they did not rely on deep linguistic knowledge like part-of-speech tags or ontologies, making their system more adaptable. For classification, they utilized a combination of boosting and C4.5 decision tree learning algorithms.

Datasets

The primary dataset used in this study was the de-identification challenge dataset from the first Workshop on Challenges in Natural Language Processing for Clinical Data (i2b2). This dataset consists of medical discharge summaries where PHI has been replaced with artificially generated substitutes to protect patient privacy. The authors used this dataset for both training and evaluation, employing a ten-fold cross-validation strategy.

Key Insights and Ideas

  • Leveraging Structure is Key: The semi-structured nature of medical records, often overlooked, is a powerful signal for anonymization. By first identifying entities from structured fields, the system gains a significant advantage in processing the free text.
  • Iterative Learning Pays Off: The iterative retraining process, where the model learns from its own predictions, proved crucial for improving accuracy. This is particularly effective in domains with recurring patterns, like medical records.
  • Simplicity Can Be Powerful: The authors achieved state-of-the-art results without relying on complex linguistic resources. Their success stemmed from a comprehensive set of surface-level and contextual features, demonstrating that a well-crafted feature set can be highly effective.
  • Trigger Words are Tricky: While trigger words (like "Dr.") are intuitive indicators of PHI, their application needs careful handling. The authors found that direct use of trigger words could sometimes lead to errors, especially when PHI was artificially masked.
  • Standardization Matters: A post-processing step of standardizing predicted phrases significantly improved both precision and recall, highlighting the importance of consistent output.

Key Results

The system achieved outstanding accuracy on the i2b2 de-identification challenge dataset. Their best submitted model, using an iterative voting approach (ITR2_VOTE), achieved an 8-way F-measure of 97.64% after final standardization. This performance significantly outperformed the baseline methods and was competitive with the top-performing systems in the challenge. Specifically, their system achieved an F-measure of 99.7534% for the best submitted model. The paper also highlights that their system achieved a 99.4814% F-measure even when excluding domain-specific extensions, demonstrating the robustness of their core approach.

Limitations and Future Work

  • Phone Number Identification: The system struggled with identifying phone numbers, particularly those with unusual spacing (e.g., "555 3456") not present in the training data. This is an area for future improvement.
  • Hospital Name Confusion: Uncommon hospital names and acronyms were sometimes misclassified.
  • Location vs. Hospital Confusion: Errors occurred when hospitals were referred to by their location (e.g., "Samfer Street").
  • Ambiguity from Re-identification: The artificial masking of PHI in the dataset introduced ambiguity that challenged the statistical model. The authors hypothesize that performance on real-life data, without this artificial ambiguity, would be even better.
  • Future Work: The authors suggest that tuning parameters for C4.5 and AdaBoostM1 could potentially increase recall. They also believe their iterative learning approach is promising for other document types with mixed structured and unstructured content.

Summary updated

BibTeX
@article{szarvas2007state,
  author = {György Szarvas and Richárd Farkas and Róbert Busa‐Fekete},
  title = {{State-of-the-art anonymisation of medical records using an iterative machine learning framework}},
  journal = {Journal of the American Medical Informatics Association},
  year = {2007},
  doi = {10.1197/jamia.m2441},
}
Figure