Generating Clinically Realistic EHR Data via a Hierarchy- and Semantics-Guided Transformer
Not on the map. Why?
Abstract (arXiv)
Generating realistic synthetic electronic health records (EHRs) holds tremendous promise for accelerating healthcare research, facilitating AI model development and enhancing patient privacy. However, existing generative methods typically treat EHRs as flat sequences of discrete medical codes. This approach overlooks two critical aspects: the inherent hierarchical organization of clinical coding systems and the rich semantic context provided by code descriptions. Consequently, synthetic patient sequences often lack high clinical fidelity and have limited utility in downstream clinical tasks. In this paper, we propose the Hierarchy- and Semantics-Guided Transformer (HiSGT), a novel framework that leverages both hierarchical and semantic information for the generative process. HiSGT constructs a hierarchical graph to encode parent-child and sibling relationships among clinical codes and employs a graph neural network to derive hierarchy-aware embeddings. These are then fused with semantic embeddings extracted from a pre-trained clinical language model (e.g., ClinicalBERT), enabling the Transformer-based generator to more accurately model the nuanced clinical patterns inherent in real EHRs. Extensive experiments on the MIMIC-III and MIMIC-IV datasets demonstrate that HiSGT significantly improves the statistical alignment of synthetic data with real patient records, as well as supports robust downstream applications such as chronic disease classification. By addressing the limitations of conventional raw code-based generative models, HiSGT represents a significant step toward clinically high-fidelity synthetic data generation and a general paradigm suitable for interpretable medical code representation, offering valuable applications in data augmentation and privacy-preserving healthcare analytics.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 21 of its 50 references that are in the map. First posted on arXiv 28 Feb 2025.
Builds on
21 of 50 references.
References · 21
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2024GPT-4o System Cardcited by 4,467
- 2019Publicly Available Clinical BERT Embeddingscited by 995
- 2023The Dawn of LMMs: Preliminary Explorations with GPT-4V(ision)cited by 677
- 2017Real-valued (Medical) Time Series Generation with Recurrent Conditional GANscited by 329
- 2017Multitask learning and benchmarking with clinical time series datacited by 287
- 2017Generating Multi-label Discrete Patient Records using Generative Adversarial Networkscited by 197
- 2024Zero Shot Health Trajectory Prediction Using Transformercited by 74
- 2021Generating Synthetic Mixed-type Longitudinal Electronic Health Records for Artificial Intelligent Applicationscited by 47
- 2020CorGAN: Correlation-Capturing Convolutional Generative Adversarial Networks for Generating Synthetic Healthcare Recordscited by 37
- 2020EVA: Generating Longitudinal Electronic Health Records Using Conditional Variational Autoencoderscited by 28
9 more
- 2018Natural Language Generation for Electronic Health Recordscited by 27
- 2024CEHR-GPT: Generating Electronic Health Records with Chronological Patient Timelinescited by 22
- 2020Generating Electronic Health Records with Multiple Data Types and Constraintscited by 21
- 2022The Health Gym: Synthetic Health-Related Datasets for the Development of Reinforcement Learning Algorithmscited by 19
- 2025Multimodal Medical Code Tokenizercited by 14
- 2022A review of Generative Adversarial Networks for Electronic Health Records: applications, evaluation measures and data sourcescited by 13
- 2019CONAN: Complementary Pattern Augmentation for Rare Disease Detectioncited by 9
- 2023Synthetic Data in Healthcarecited by 8
- 2023Collaborative Synthesis of Patient Records through Multi-Visit Health State Inferencecited by 6
Built on by
Citing papers per year: 2025: 1; 2026: 3.
4 papers.
- 2025Federated Timeline Synthesis: Scalable and Private Methodology For Model Training and Deploymentcited by 1
- 2026From Statistical Fidelity to Clinical Consistency: Scalable Generation and Auditing of Synthetic Patient Trajectoriescited by 1
- 2026HH-SAE: Discovering and Steering Hierarchical Knowledge of Complex Manifoldscited by 0
- 2026SynEHR: Joint Modeling Inter-visit Temporal Evolution and Intra-visit Clinical Structure for Longitudinal EHR Synthesiscited by 0
- 2026SynEHR: Joint Modeling Inter-visit Temporal Evolution and Intra-visit Clinical Structure for Longitudinal EHR Synthesis21 Aug 2026
- 2026HH-SAE: Discovering and Steering Hierarchical Knowledge of Complex Manifolds11 May 2026
- 2026From Statistical Fidelity to Clinical Consistency: Scalable Generation and Auditing of Synthetic Patient Trajectories6 Mar 2026
- 2025Federated Timeline Synthesis: Scalable and Private Methodology For Model Training and Deployment29 Jun 2025