Plate IV.162 · Publications

Exploratory electronic health record analysis with ehrapy

Preprint in medRxiv, 11 December 2023.

PreprintOpen accessResearch area: Images, Deep Learning

Authors

  1. Lukas Heumos
  2. Philipp Ehmele
  3. Tim Treis
  4. Julius Upmeier zu Belzen
  5. Altana Namsaraeva
  6. Nastassya Horlava
  7. Vladimir A. Shitov
  8. Xinyue Zhang
  9. Luke Zappia
  10. Rainer Knoll
  11. Niklas J. Lang
  12. Leon Hetzel
  13. Isaac Virshup
  14. Lisa Sikkema
  15. Eljas Roellin
  16. Fabiola Curion
  17. Roland Eils
  18. Herbert B. Schiller
  19. Anne Hilgendorff
  20. Fabian J. Theis

Abstract

With progressive digitalization of healthcare systems worldwide, large-scale collection of electronic health records (EHRs) has become commonplace. However, an extensible framework for comprehensive exploratory analysis that accounts for data heterogeneity is missing. Here, we introduce ehrapy, a modular open-source Python framework designed for exploratory end-to-end analysis of heterogeneous epidemiology and electronic health record data. Ehrapy incorporates a series of analytical steps, from data extraction and quality control to the generation of low-dimensional representations. Complemented by rich statistical modules, ehrapy facilitates associating patients with disease states, differential comparison between patient clusters, survival analysis, trajectory inference, causal inference, and more. Leveraging ontologies, ehrapy further enables data sharing and training EHR deep learning models paving the way for foundational models in biomedical research. We demonstrated ehrapy’s features in five distinct examples: We first applied ehrapy to stratify patients affected by unspecified pneumonia into finer-grained phenotypes. Furthermore, we revealed biomarkers for significant differences in survival among these groups. Additionally, we quantify medication-class effects of pneumonia medications on length of stay. We further leveraged ehrapy to analyze cardiovascular risks across different data modalities. Finally, we reconstructed disease state trajectories in SARS-CoV-2 patients based on imaging data. Ehrapy thus provides a framework that we envision will standardize analysis pipelines on EHR data and serve as a cornerstone for the community.

Cite

@misc{heumos2023exploratory,
  title = {{Exploratory electronic health record analysis with ehrapy}},
  author = {Heumos, Lukas and Ehmele, Philipp and Treis, Tim and Upmeier zu Belzen, Julius and Namsaraeva, Altana and Horlava, Nastassya and Shitov, Vladimir A. and Zhang, Xinyue and Zappia, Luke and Knoll, Rainer and Lang, Niklas J. and Hetzel, Leon and Virshup, Isaac and Sikkema, Lisa and Roellin, Eljas and Curion, Fabiola and Eils, Roland and Schiller, Herbert B. and Hilgendorff, Anne and Theis, Fabian J.},
  howpublished = {medRxiv},
  publisher = {openRxiv},
  year = {2023},
  month = dec,
  doi = {10.1101/2023.12.11.23299816},
  url = {https://doi.org/10.1101/2023.12.11.23299816},
  note = {Preprint}
}
.bib file