PyHealth: A Python Library for Health Predictive Models

Yue Zhao, Zhi Qiao, Cao Xiao, Lucas Glass, Jimeng Sun
1/11/2021
26 citations
cs.LGcs.AI

Official code: sunlabuiuc/PyHealth (1,708 stars, Python, MIT, last commit 2026-10-24).

Abstract

Despite the explosion of interest in healthcare AI research, the reproducibility and benchmarking of those research works are often limited due to the lack of standard benchmark datasets and diverse evaluation metrics. To address this reproducibility challenge, we develop PyHealth, an open-source Python toolbox for developing various predictive models on healthcare data.

Show full abstract

PyHealth consists of data preprocessing module, predictive modeling module, and evaluation module. The target users of PyHealth are both computer science researchers and healthcare data scientists. With PyHealth, they can conduct complex machine learning pipelines on healthcare datasets with fewer than ten lines of code. The data preprocessing module enables the transformation of complex healthcare datasets such as longitudinal electronic health records, medical images, continuous signals (e.g., electrocardiogram), and clinical notes into machine learning friendly formats. The predictive modeling module provides more than 30 machine learning models, including established ensemble trees and deep neural network-based approaches, via a unified but extendable API designed for both researchers and practitioners. The evaluation module provides various evaluation strategies (e.g., cross-validation and train-validation-test split) and predictive model metrics. With robustness and scalability in mind, best practices such as unit testing, continuous integration, code coverage, and interactive examples are introduced in the library's development. PyHealth can be installed through the Python Package Index (PyPI) or https://github.com/yzhao062/PyHealth .

View on arXivView PDF

Code Implementations(1)

MIT

A Deep Learning Python Toolkit for Healthcare Applications.

1,708952Python, CythonAug 3, 20201 months agoMIT
clinical-dataclinical-researchdata-miningdeep-learningelectronic-health-record+4 more

Similar Papers

Cite this paper

@article{zhao2021pyhealth,
  title  = {PyHealth: A Python Library for Health Predictive Models},
  author = {Yue Zhao and Zhi Qiao and Cao Xiao and Lucas Glass and Jimeng Sun},
  year   = {2021},
  eprint = {2101.04209},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.04209}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2101.04209.svg)](https://codeofpaper.com/paper/2101.04209)

Discussion