Generating Multi-Table Time Series EHR from Latent Space with Minimal Preprocessing
Eunbyeol Cho, Jiyoun Kim, Minjae Lee, Sungjin Park, Edward Choi, {eunbyeol.cho,edwardchoi}@kaist.ac.kr · 2025
Read Generating Multi-Table Time Series EHR from Latent Space with Minimal Preprocessing by Eunbyeol Cho, Jiyoun Kim, Minjae Lee, Sungjin Park, Edward Choi, {eunbyeol.cho,edwardchoi}@kaist.ac.kr (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2507-06996.txt.
Introduction
Eunbyeol Cho and co-authors published a 2025 paper on generating fake hospital records realistic enough for research. Real electronic health records are rich but locked away by privacy law. Synthetic records can be shared, yet earlier generators produced only simplified summaries with hand-picked features. Their framework, RawMed, aims to mimic the raw records themselves, across many linked tables and over time.
The method turns records into text, then compresses them into a compact hidden form from which new records are generated. This keeps preprocessing minimal while preserving the tangled structure of real charts. The authors also propose a new way to judge such synthetic data: likeness of distributions, links between tables, timing patterns, and privacy safety. On two open hospital datasets, RawMed beat rival methods on fidelity and usefulness. Code is shared openly. The goal is research-grade data that never belonged to a real patient.
Catalog record
| CREATOR | Eunbyeol Cho, Jiyoun Kim, Minjae Lee, Sungjin Park, Edward Choi, {eunbyeol.cho,edwardchoi}@kaist.ac.kr |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 89 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2507-06996
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Generating Multi-Table Time Series EHR from Latent Space with Minimal Preprocessing Eunbyeol Cho, Jiyoun Kim, Minjae Lee, Sungjin Park, Edward Choi, {eunbyeol.cho,edwardchoi}@kaist.ac.kr Abstract Electronic Health Records (EHR) are time-series relational databases that record patient interactions and medical events over time, serving as a critical resource for healthcare research and applications. However, privacy concerns and regulatory restrictions limit the sharing and utilization of such sensitive data, necessitating the generation of synthetic EHR datasets. Unlike previous EHR synthesis methods—which typically generate medical records consisting of expert-chosen features ( e.g. , a few vital signs, structured codes only)—we introduce RawMed , the first framework to synthesize multi-table, time-series EHR data that closely resembles raw EHRs. Using text-based representation and compression techniques, RawMed captures complex structures and temporal dynamics with minimal preprocessing. We also propose a new evaluation framework for multi-table time-series synthetic EHRs, assessing distributional similarity, inter-table relationships, temporal dynamics, and privacy. Validated on two open-source EHR datasets, RawMed outperforms baseline models in fidelity and utility. The code is available at https://github.com/eunbyeol-cho/RawMed . 1 Introduction The digitalization of medical data has accelerated the adoption of Electronic Health Records (EHR), one of the most significant innovations in modern healthcare. EHRs systematically store various medical events, such as prescriptions and test results, along with corresponding timestamps in a multi-table relational database, encompassing categorical, numerical, and text data. Due to these properties, EHRs serve as a crucial resource in various medical AI studies, including clinical prediction, information retrieval, and question answering Goldstein2017OpportunitiesAC ; Shickel18DeepEHR . However, since EHRs contain sensitive personal information, they are subject to privacy regulations that hinder data sharing and research applications Benitez2010EvaluatingRR . In response, synthetic data has emerged as a promising solution, offering a privacy-preserving alternative that can still support research and clinical applications yan2022multifaceted ; gonzales2023synthetic . Progress in generative models, especially Generative Adversarial Networks (GANs) gan , has opened up new avenues for synthesizing EHR data. Early efforts primarily generated discrete features or heterogeneous features, often overlooking the time-series aspect Choi2017GeneratingMD ; torfi2020corgancorrelationcapturingconvolutionalgenerative . More recent studies incorporate both time-series and heterogeneous features, gradually approaching a closer reflection of real EHR data emrmgan ; ehrsafe ; flexgenehr ; timediff . Despite this progress, existing EHR synthesis studies still face the following limitations. First, there is a high dependence on feature selection . Most approaches emrmgan ; ehrsafe ; timediff typically select only a subset of tables and columns of the entire EHR database based on domain knowledge, and generate synthetic data exclusively for the features within those selected columns. 1 1 1 In this paper, a column denotes a raw data field in an EHR table, while a feature refers to a processed data representation derived from one or more columns. See Appendix A.1 . While this method simplifies the synthesis process, it limits the usefulness of the generated data. For example, if a new research question or analysis requires a feature that was excluded, it is impossible to build predictive models or perform statistical analyses based on that synthetic EHR data. Morever, prior research fullfeature1 ; fullfeature2 ; genhpf suggests that models incorporating a broader range of features tend to achieve higher predictive accuracy, implying that richer synthetic data offers wider utility and more substantial value across various downstream tasks. Second, many existing approaches rely on complex preprocessing steps. Techniques such as numeric binning, one-hot encoding, term normalization, and aggregation are commonly used, but can unintentionally distort the data or obscure meaningful patterns. For instance, aggregating lab values over time may mask sudden anomalies while binning them into discrete ranges may oversimplify subtle trends, reducing the synthetic data’s fidelity for predictive modeling. Table 1 : Maximum number of features and time steps across datasets for each method. [1]: Number of features (see Appendix A ), [2]: Number of time steps, [3]: Uses all columns, [4]: Preserves original values. Method [1] [2] [3] [4] emrmgan 98 24 \times \times ehrsafe 90 50 \times \times flexgenehr 5,373 48 \times \times timediff 15 276 \times \times RawMed 333,524 243 \surd \surd To address these challenges, our framework, RawMed , synthesizes raw EHRs, multi-table time-series data that preserve all columns and original values in their database form, as illustrated in Figure 1 . To implement this approach, RawMed adopts a text-based method, treating EHR data as text to retain original values without additional transformations (e.g., binning, one-hot encoding, normalization). This not only reduces the risk of data distortion, but also makes our method generalizable to various EHR data with different database schemas. However, as time-series data becomes longer, its textual representation typically grows even longer due to subword tokenization, leading to a significant increase in computational complexity. To mitigate this, we employ Residual Quantization rqvae to compress textualized time-series data, enabling autoregressive modeling in a compressed latent space. This reduces sequence length and computational complexity, allowing RawMed to handle multi-table EHR datasets with numerous columns. Consequently, our framework generates raw EHRs with extensive features and time steps surpassing most existing methods (Table 1 ). Our key contributions are summarized as follows: 1. First multi-table and time-Series EHR generation. This study introduces RawMed , the first framework for generating raw multi-table time-series EHRs, preserving all columns and original values, and demonstrating the method’s feasibility with three primary tables. 2. Novel evaluation framework for synthetic raw EHRs. Unlike prior work that synthesizes only a subset of features, RawMed generates all elements of raw EHRs, making the quality assessment more challenging. We propose a comprehensive evaluation framework encompassing low-order statistics, downstream utility, multi-table interactions, time-series fidelity, and privacy protection. 3. Open-source validation and code release. We validated RawMed on two open-source EHR datasets, confirming its effectiveness, and plan to release all source code to support further research in synthetic EHR generation. 2 Related work 2.1 EHR data generation Early research on EHR synthesis primarily focused on generating single data types ( e.g. , diagnostic codes) using generative models such as GANs and VAEs. Subsequent studies explored mixed data types or incorporated time-series continuity esteban2017real ; biswal2020eva ; zhang2021synteg ; wang2022promptehrconditionalelectronichealthcare ; Theodorou_2023 . However, relatively few studies have addressed both the temporal dynamics and heterogeneous nature of EHR data simultaneously, a gap that has only recently started to gain attention. For example, EMR-M-GAN emrmgan pioneered a GAN-based approach for mixed-type time-series EHR data, using a Dual-VAE and Coupled Recurrent Network (CRN) to capture inter-feature correlations and temporal dynamics. EHR-Safe ehrsafe also adopted a GAN-based framework designed to handle real-world EHR complexities comprehensively, including missing data, diverse feature types, and both static and time-varying attributes. FLEXGEN-EHR flexgenehr integrated static and time-series data, focusing on missing values via optimal transport. TIMEDIFF timediff introduced a hybrid diffusion model capable of generating both continuous and discrete time-series data concurrently. To the best of our knowledge, no existing studies do not utilize all columns from the original EHR database tables. Instead, they rely on a subset of features deemed important by the researchers, and heavily preprocess ( e.g. , numerical binning, one-hot encoding, normalization, aggregation) the original EHR data to train the generative model. 2.2 Text-based approaches for tabular data generation With the rapid progress of NLP, studies have emerged that convert tabular data into textual form for generation purposes