Generating Clinically Realistic EHR Data via a Hierarchy- and Semantics-Guided Transformer

0Citations
Citations of this article
9Readers
Mendeley users who have this article in their library.
Get full text

Abstract

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. The code is available at https://github.com/jameszhou-gl/HiSGT.

Cite

CITATION STYLE

APA

Zhou, G., & Barbieri, S. (2025). Generating Clinically Realistic EHR Data via a Hierarchy- and Semantics-Guided Transformer. In Frontiers in Artificial Intelligence and Applications (Vol. 413, pp. 3944–3951). IOS Press BV. https://doi.org/10.3233/FAIA251280

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free