Synthetic electronic health records (EHRs) that are both realistic and preserve privacy can serve as an alternative to real EHRs for machine learning (ML) modeling and statistical analysis. However, generating high-fidelity and granular electronic health record (EHR) data in its original, highly-dimensional form poses challenges for existing methods due to the complexities inherent in high-dimensional data. In this paper, we propose Hierarchical Autoregressive Language mOdel (HALO) for generating longitudinal high-dimensional EHR, which preserve the statistical properties of real EHR and can be used to train accurate ML models without privacy concerns. Our HALO method, designed as a hierarchical autoregressive model, generates a probability density function of medical codes, clinical visits, and patient records, allowing for the generation of realistic EHR data in its original, unaggregated form without the need for variable selection or aggregation. Additionally, our model also produces high-quality continuous variables in a longitudinal and probabilistic manner. We conducted extensive experiments and demonstrate that HALO can generate high-fidelity EHR data with high-dimensional disease code probabilities (d > 10,000), disease co-occurrence probabilities within visits (d > 1,000,000), and conditional probabilities across consecutive visits (d > 5,000,000) and achieve above 0.9 R2 correlation in comparison to real EHR data. This performance then enables downstream ML models trained on its synthetic data to achieve comparable accuracy to models trained on real data (0.938 AUROC with HALO data vs. 0.943 with real data). Finally, using a combination of real and synthetic data enhances the accuracy of ML models beyond that achieved by using only real EHR data.
翻译:电子病历(EHR)的人工合成既具有逼真性又能保护隐私,可以作为机器学习(ML)建模和统计分析的替代品。但是,由于高维度数据天然的复杂性,生成高保真的,细粒度的零售EHR数据对现有方法提出了挑战。在本文中,我们提出了一种基于分层自回归语言模型的方法(Hierarchical Autoregressive Language mOdel,HALO),用于生成长期高维EHR,这种方法能够保留真实EHR的统计属性,但不会产生隐私问题。我们的HALO模型采用分层自回归模型设计,生成医学编码、临床访问和患者记录的概率密度函数,允许在不需要变量选择或聚合的情况下以其原始,未聚合的形式生成逼真的EHR数据。此外,我们的模型还以纵向和概率化的方式生成高质量的连续变量。我们进行了大量实验,并展示了HALO可以产生高保真EHR数据,其中包括高维疾病代码概率(d > 10,000),访问内疾病共存概率(d > 1,000,000),以及连续访问之间的条件概率(d > 5,000,000),与真实EHR数据相比,可以实现高达0.9的R2相关性。这种性能能够让基于其合成数据训练的下游ML模型实现与基于真实数据训练的模型相当的精度(0.938 AUROC与HALO数据相比,与真实数据相比的AUROC为0.943)。最后,使用真实数据和合成数据的组合可以提高ML模型的准确性,超过仅使用真实EHR数据获得的准确性。