Flexible imputation toolkit for electronic health records.

Journal: Scientific reports
Published Date:

Abstract

Missing data in electronic health records (EHRs) poses a significant challenge for analysis. This study introduces Pympute, a comprehensive Python package designed for efficient and robust missing value imputation for EHRs. Pympute's core algorithm, Flexible, intelligently selects the optimal imputation method for each variable based on its characteristics. Pympute offers a comprehensive suite of functionalities. It benchmarks the performance of ten existing machine learning imputation algorithms against Flexible on real-world EHR datasets containing laboratory measurements. Additionally, Pympute facilitates data simulation, generating realistic datasets mimicking real-world data distributions for controlled evaluation of imputation performance. Finally, Pympute investigates how missingness and skewness, influence the selection of optimal imputation algorithms within the Flexible framework. Our findings validate that Pympute's Flexible method significantly improves imputation performance compared to the single model approach. Notably, simulating data solely based on covariance does not accurately reflect real-world selection behavior. Furthermore, skewness in the data distribution prompts Flexible to favor nonlinear imputation models. This study highlights the importance of considering data distribution patterns when selecting imputation algorithms. Pympute addresses this challenge by offering a versatile and user-friendly solution for diverse EHR data scenarios.

Authors

  • Alireza Vafaei Sadr
  • Jiang Li
  • Wenke Hwang
    Department of Public Health Sciences, College of Medicine, Pennsylvania State University, Hershey, PA, USA.
  • Mohammed Yeasin
    Department of Electrical and Computer Engineering, University of Memphis, Memphis, TN, USA.
  • Ming Wang
    Brain center, Zhejiang Hospital, Hangzhou, China.
  • Harold Lehmann
    Division of Health Sciences Informatics, Department of Medicine, Johns Hopkins University School of Medicine, Baltimore, MD, USA.
  • Ramin Zand
    Neuroscience Institute, Geisinger Health System, 100 North Academy Ave, Danville, PA 17822, USA.
  • Vida Abedi
    Department of Public Health Science, Penn State College of Medicine, Hershey, PA, USA.