Skip to main content
v2026.11,986 entries · CC-BY 4.0

Synthetic Healthcare Data: Knowledge-Driven vs. Generative EHR Models, HIPAA Expert Determination, Differential Privacy, and MIA Auditing

Technical guide to synthetic healthcare data: knowledge-driven vs. ML generative EHR models, HIPAA 45 CFR § 164.514(b), differential privacy, and MIA audits.

Written and maintained by CASRAI Editorial Board

Published · Last updated

On this page

Synthetic healthcare data (also called synthetic patient data or synthetic EHR data) consists of artificially generated medical records—spanning tabular demographics, ICD-10 diagnostic codes, LOINC laboratory time series, clinical narratives, and medical imaging—that preserve the statistical distributions, longitudinal disease trajectories, and multivariate correlations of real patient populations without maintaining a one-to-one mapping to actual human subjects. In biomedical informatics and clinical machine learning, synthetic data enables reproducible algorithm benchmarking, multi-institutional cohort sharing, and software interoperability testing while mitigating the disclosure risks associated with traditional quasi-identifier anonymization models like k-anonymity and l-diversity.

What Is Synthetic Healthcare Data?

Synthetic healthcare data is created through one of two distinct algorithmic paradigms: knowledge-driven (rule-based) simulation engines that synthesize patients from public epidemiological statistics and clinical guidelines, or data-driven deep generative models (GANs, VAEs, transformers, and diffusion models) trained directly on real Electronic Health Record (EHR) microdata.

The distinction between knowledge-driven and data-driven generation governs both the clinical fidelity of the resulting dataset and its regulatory status under health privacy statutes:

Dimension Knowledge-Driven / Rule-Based Simulation Data-Driven Generative ML (Non-DP) Differentially Private Generative ML (DP-GAN / PATE-GAN)
Representative Frameworks Synthea (Walonoski et al., JAMIA 2018) medGAN (Choi et al., 2017), CTGAN (Xu et al., 2019), HALO, SynTEG DP-SGD (Abadi et al., 2016), PATE-GAN (Jordon et al., 2019), DP-CTGAN
Input Training Source Public aggregate incidence/prevalence statistics (CDC, NIH, Census) and clinical care guidelines Real individual-level hospital or trial ePHI microdata Real individual-level ePHI microdata with clipped gradients and calibrated Gaussian/Laplacian noise
Memorization & MIA Risk Zero individual memorization risk (no real patient rows ingested) Moderate to high risk of local overfitting on rare diseases or demographic outliers Mathematically bounded by privacy budget parameters (ε, δ)
Best Research Use Case HL7 FHIR / C-CDA interoperability testing, software QA, educational cohorts Internal predictive model prototyping, rare cohort augmentation, feature engineering External research release under formal privacy guarantees

Knowledge-Driven vs. Deep Generative EHR Architectures

1. Knowledge-Driven State-Machine Simulators (Synthea)

Introduced by Walonoski et al. at The MITRE Corporation (JAMIA, 2018;25(3):230–238), Synthea models synthetic patients from birth to death using modular Probabilistic Automaton with Discrete-time Attributes and Transitions (PADAR) state machines. Each disease module encodes clinical practice guidelines, age-adjusted incidence rates, laboratory reference ranges, and treatment pathways. Because Synthea never accesses real Protected Health Information (PHI), its output C-CDA, HL7 FHIR R4, and OMOP CDM cohorts are completely free of patient re-identification risk, though they only capture clinical relationships explicitly programmed into the state machines.

2. Data-Driven Deep Generative Models (medGAN, CTGAN, Transformers)

To discover subtle, unprogrammed clinical correlations for machine learning in medicine and healthcare, researchers train deep generative models directly on de-identified or restricted EHR cohorts:

  • medGAN (Choi et al., PMLR 2017): Combines an autoencoder with a Generative Adversarial Network (GAN) to generate high-dimensional, multi-label binary and count variables (such as thousands of discrete ICD diagnosis and ATC medication codes) that standard continuous-valued GANs fail to model.
  • CTGAN (Conditional Tabular GAN): Uses mode-specific normalization via variational Gaussian mixture models to synthesize mixed continuous laboratory values and imbalanced categorical clinical variables.
  • Autoregressive Clinical Transformers & Diffusion Models: Model longitudinal patient visits as sequential tokens (e.g., SynTEG, HALO) or latent diffusion trajectories, preserving temporal dependencies across hospital admissions.

Is Synthetic Patient Data Considered PHI Under HIPAA?

Synthetic patient data generated purely from public aggregate statistics (such as Synthea) is never PHI; however, synthetic data generated by a machine learning model trained on real ePHI is only exempt from the HIPAA Privacy Rule if a qualified statistical expert certifies under the HIPAA Expert Determination pathway (45 CFR § 164.514(b)) that the risk of identifying any training individual from the synthetic output is “very small.”

A common misconception in clinical informatics is that any record output by a generative neural network is automatically outside HIPAA because the synthetic patient ID is artificial. Under the U.S. Department of Health and Human Services (HHS) Office for Civil Rights (OCR) guidance on HIPAA de-identification (Safe Harbor vs. Expert Determination):

  • Why Safe Harbor (`45 CFR § 164.514(b)(2)`) Is Insufficient for Generative Models: Safe Harbor applies to transforming real patient records by stripping 18 enumerated identifiers. A generative model trained on real clinical variables can inadvertently reproduce an exact or near-exact combination of rare diagnoses, admission dates, age, and geographic prefixes—constituting “actual knowledge” or residual re-identification risk if the model overfits to a unique patient outlier.
  • HIPAA Expert Determination (`45 CFR § 164.514(b)(1)`): To release ML-generated synthetic EHR data outside a HIPAA Data Use Agreement (DUA) or Business Associate Agreement (BAA), a statistical privacy expert must empirically evaluate the synthetic dataset (and, if released, the trained model weights) against replicability, singling-out, linkability, and inference attacks, documenting the quantitative methodology proving that residual disclosure risk is very small.

How Do Researchers Evaluate Privacy Leakage in Synthetic EHR Data?

Researchers audit synthetic EHR datasets across three empirical attack surfaces—Identity Disclosure (record copying), Attribute Inference, and Membership Inference Attacks (MIAs)—and enforce mathematical bounds during training using (ε, δ)-Differential Privacy.

Before releasing a synthetic cohort for external machine learning research, biomedical data stewards execute a four-part quantitative audit alongside utility benchmarks (such as Train on Synthetic, Test on Real [TSTR] AUROC/AUPRC parity):

  1. Distance to Closest Record (DCR) and Nearest Neighbor Distance Ratio (NNDR): Computes the Gower or Euclidean distance in latent space between every synthetic record $s_i$ and its nearest real training record $r_{\text{train}}$, compared against the distance between a held-out real test set $r_{\text{test}}$ and $r_{\text{train}}$. If $\text{DCR}(s_i, r_{\text{train}})$ is significantly smaller than $\text{DCR}(r_{\text{test}}, r_{\text{train}})$, or if $\text{DCR} = 0$, the generator has memorized and copied training patients.
  2. Membership Inference Attacks (MIAs): Originally formalized by Shokri et al. (2017) and extended to density-based synthetic data auditing via frameworks such as DOMIAS (van Breugel et al., AISTATS 2023), an MIA tests whether an adversary can determine if a specific real patient record $x^*$ was included in the generator’s training set. DOMIAS evaluates the ratio of the synthetic probability density $p_G(x^*)$ to a reference population density $p_R(x^*)$ to detect local overfitting around high-risk clinical outliers. An MIA ROC-AUC near 0.50 indicates random-guessing privacy protection, whereas values approaching 1.0 indicate severe membership leakage.
  3. Attribute Inference Attacks (AIA): Tests whether an attacker who knows a real patient’s quasi-identifiers (e.g., age, sex, admission year, common comorbidities) can train a regression/classification model on the synthetic dataset to accurately predict a sensitive unknown clinical attribute (e.g., HIV status or psychiatric diagnosis) beyond baseline population correlations.
  4. Differential Privacy in Healthcare (DP-SGD and PATE-GAN): To guarantee defense against arbitrary MIAs regardless of adversary background knowledge, generators can be trained using Differentially Private Stochastic Gradient Descent (DP-SGD)—which clips per-sample gradient norms to a threshold $C$ and adds calibrated Gaussian noise—or Private Aggregation of Teacher Ensembles (PATE-GAN). This bounds the log-likelihood ratio of any synthetic output changing when a single patient is added or removed by the privacy budget $(\varepsilon, \delta)$, though tighter $\varepsilon$ values require careful calibration to preserve rare-disease signal fidelity.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about Synthetic Healthcare Data: Knowledge-Driven vs. Generative EHR Models, HIPAA Expert Determination, Differential Privacy, and MIA Auditing

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →