Synthetic4Health: Generating Annotated Synthetic Clinical Letters

Libo Ren, Samuel Belkadi, Lifeng Han, Warren Del-Pinto, Goran Nenadic · DOI

Abstract

The scarcity of shareable clinical data due to privacy regulations hinders the development of medical AI. We present Synthetic4Health, a framework that utilizes Pre-trained Language Models (PLMs) to generate de-identified, medically accurate synthetic clinical letters. By intelligently masking non-essential text while preserving critical medical entities, the framework produces high-quality datasets that maintain clinical utility. Our results demonstrate that models trained on synthetic data achieve performance nearly identical to those trained on sensitive real-world data, offering a viable path for privacy-preserving medical research.

Introduction

Clinical letters are rich repositories of patient symptoms, histories, and treatments. However, they are also dense with Protected Health Information (PHI), making them difficult to share under strict privacy laws. Traditional de-identification often results in disjointed text that lacks the natural flow required for training robust language models. Synthetic4Health addresses this by moving beyond simple scrubbing to a generative approach that creates diverse, anonymous, yet medically sound clinical narratives.

Methodology

The Synthetic4Health framework employs a "Mask and Generate" pipeline designed to preserve the "clinical story" while anonymizing specific details.

Pipeline Architecture

  1. Semantic Chunking: To maintain paragraph integrity, the system uses a semantic strategy to create variable-length text chunks rather than arbitrary fixed-length splits.
  2. Feature Extraction: A hybrid approach combining rule-based systems and Named Entity Recognition (NER) identifies document structure (templates), medical entities (facts), and PHI (secrets).
  3. Intelligent Masking: The core innovation involves experimenting with various masking strategies, including random masking, Part-of-Speech (POS) based masking, and stopword masking.
  4. Generation: The framework compares encoder-only models (e.g., BERT, RoBERTa) and encoder-decoder models (e.g., T5).
Transformation of a clinical letter segment into a synthetic version through intelligent masking and regeneration.

Model Selection and Datasets

The study utilized the SNOMED CT Entity Linking Challenge dataset, derived from MIMIC-IV-Note, containing 204 clinical letters with over 51,000 manual annotations. Various models were evaluated for their ability to "fill in the blanks" effectively.

Summary of encoder-only models and their respective fine-tuning datasets used in the study.

Key Insights and Results

Model Performance

Encoder-only models significantly outperformed encoder-decoder architectures. The bidirectional nature of BERT-style models aligns well with the "fill-in-the-blank" task. Interestingly, general-purpose models like RoBERTa performed comparably to clinical-specific models when medical entities were preserved, suggesting that the underlying structure of clinical language shares significant commonality with standard English.

Clinical Utility

To validate the synthetic data, an NER model was trained on the generated letters. This model achieved an F1 score of 0.853, which is remarkably close to the 0.855 F1 score achieved by a model trained on the original sensitive data. This confirms that the synthetic letters retain the necessary clinical features for downstream tasks.

Optimal Masking Strategies

A masking ratio of 30-40% was identified as the optimal balance between ensuring privacy and maintaining text coherence. Furthermore, masking stopwords was found to increase linguistic variety without compromising medical accuracy, whereas masking nouns or verbs often degraded the clinical meaning.

Discussion and Future Work

While Synthetic4Health shows great promise, some limitations remain. The current study was conducted on a relatively small dataset of 204 letters; scaling to larger, more diverse datasets is essential for generalization. Additionally, models occasionally exhibited "common sense" medical errors (e.g., anatomical inconsistencies).

Future research will focus on "human-in-the-loop" evaluations by clinicians and the implementation of synonymous substitution—replacing medical terms with synonyms using SNOMED CT—to further enhance dataset diversity while maintaining strict clinical accuracy.

Summary updated

BibTeX
@article{ren2025synthetic,
  author = {Libo Ren and Samuel Belkadi and Lifeng Han and Warren Del-Pinto and Goran Nenadic},
  title = {{Synthetic4Health: Generating Annotated Synthetic Clinical Letters}},
  journal = {Frontiers Digit. Health},
  year = {2025},
  doi = {10.3389/fdgth.2025.1497130},
}
Figure