[Paper Review] CEHR-GPT: Generating Electronic Health Records with Chronological Patient Timelines
CEHR-GPT treats patient timeline generation as a language modeling problem using a novel temporal-preserving patient representation to synthesize time-series EHR data that can be converted to OMOP with preserved temporal information.
Synthetic Electronic Health Records (EHR) have emerged as a pivotal tool in advancing healthcare applications and machine learning models, particularly for researchers without direct access to healthcare data. Although existing methods, like rule-based approaches and generative adversarial networks (GANs), generate synthetic data that resembles real-world EHR data, these methods often use a tabular format, disregarding temporal dependencies in patient histories and limiting data replication. Recently, there has been a growing interest in leveraging Generative Pre-trained Transformers (GPT) for EHR data. This enables applications like disease progression analysis, population estimation, counterfactual reasoning, and synthetic data generation. In this work, we focus on synthetic data generation and demonstrate the capability of training a GPT model using a particular patient representation derived from CEHR-BERT, enabling us to generate patient sequences that can be seamlessly converted to the Observational Medical Outcomes Partnership (OMOP) data format.
Motivation & Objective
- Address privacy barriers to EHR access by generating synthetic time-series EHR data.
- Preserve temporal dependencies and visit-level timing to enable timeline-based phenotyping and downstream analyses.
- Enable seamless conversion of synthetic sequences to OMOP format for easy dissemination and evaluation.
Proposed method
- Design a temporal-preserving patient representation (CEHR-GPT) that encodes demographics, visit types, timestamps, and inpatient intervals within a sequence.
- Encode OMOP data into patient sequences using an OMOP encoder with artificial time tokens (ATT) and inpatient time tokens (IATT) to retain temporal structure.
- Train a GPT-based generative model on these sequences using next-word prediction to learn the distribution of patient timelines.
- Convert generated sequences back to OMOP format via an OMOP decoder, preserving temporal information for downstream evaluation.
- Evaluate synthetic data on dimension-wise distributions, co-occurrence patterns, and predictive model performance across multiple cohorts.
- Compare against baselines (CEHR-BERT, GPT-Vanilla, GPT-OUTPAT) and assess privacy risks (membership and attribute inference).

Experimental results
Research questions
- RQ1Can a GPT-based model learn and generate temporally coherent patient timelines from OMOP-curated EHR data?
- RQ2How well do synthetic timelines preserve temporal structure, concept distributions, and co-occurrence patterns compared to real data?
- RQ3Do predictive models trained on synthetic OMOP data achieve similar performance to those trained on real data across multiple cohorts?
- RQ4What is the privacy risk profile (membership and attribute inference) for synthetic data produced by CEHR-GPT?
- RQ5Which patient representation and sampling strategy yield the best data utility across tasks?
Key findings
- Synthetic timelines generated with CEHR-GPT closely match real concept distributions under several sampling strategies, particularly top_p=95% and top_p=100% in dimension-wise evaluations.
- Co-occurrence patterns in synthetic data generally mirror real data, with strongest alignment in condition-condition and procedure-procedure pairs; drug-related co-occurrences show more dispersion.
- Predictive models (logistic regression on BOW-transformed features) trained on CEHR-GPT synthetic data achieve competitive ROC-AUC and PR-AUC across multiple cohorts, with the top_k=300 and top_p=95% configurations performing best overall.
- CEHR-GPT alternative representations (CEHR-BERT, OUTPAT, and Vanilla sequences) show varying degrees of temporal information preservation and data utility, highlighting the importance of explicit time tokens (ATT/IATT) for temporal fidelity.
- Privacy evaluations include membership and attribute inference tests; the work adopts a framework to quantify potential privacy breaches, though specific attack outcomes are not fully detailed in the excerpt.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.