#156156th of 433 in ML frameworks and librariesFor science, health and research, health and medicine

pyhealth

PyTorch toolkit for clinical ML on EHR, biosignal and medical imaging data

Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Stars
1.7k
License
MIT
Last commit
Nov 2026
Last release
Oct 2026
Language
Python
Stars, last 29 weeks+148
6 May 2026: 1,563 stars13 May 2026: 1,570 stars20 May 2026: 1,576 stars27 May 2026: 1,583 stars3 Jun 2026: 1,589 stars10 Jun 2026: 1,593 stars17 Jun 2026: 1,600 stars24 Jun 2026: 1,603 stars1 Jul 2026: 1,605 stars8 Jul 2026: 1,610 stars15 Jul 2026: 1,612 stars22 Jul 2026: 1,617 stars29 Jul 2026: 1,626 stars5 Aug 2026: 1,632 stars12 Aug 2026: 1,634 stars19 Aug 2026: 1,637 stars26 Aug 2026: 1,640 stars2 Sept 2026: 1,644 stars9 Sept 2026: 1,648 stars16 Sept 2026: 1,654 stars23 Sept 2026: 1,656 stars30 Sept 2026: 1,657 stars7 Oct 2026: 1,663 stars14 Oct 2026: 1,666 stars21 Oct 2026: 1,670 stars28 Oct 2026: 1,683 stars4 Nov 2026: 1,689 stars11 Nov 2026: 1,695 stars18 Nov 2026: 1,699 stars25 Nov 2026: 1,711 stars

1,563 on 6 May 20261,711 on 25 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

PyHealth is a Python library that takes EHR datasets such as MIMIC-III, MIMIC-IV, eICU and OMOP through a five-stage pipeline: dataset, task, model, trainer and metrics. It ships ready-made clinical tasks, 33+ models (RETAIN, SafeDrug, GAMENet, StageNet, EHRMamba) and medical code lookup and mapping across ICD, CCS, ATC, NDC and RxNorm. Evaluation uses patient-level splits, calibration metrics and bootstrap confidence intervals.

Who it is for: Researchers building and benchmarking clinical ML models on EHR data

Strengths

  • Loaders for MIMIC-III/IV, eICU, OMOP, EHRShot, SleepEDF, SHHS and chest X-ray datasets
  • Standalone medcode module maps between ICD, CCS, ATC, NDC and RxNorm
  • Quickstart runs on synthetic MIMIC-III with no credentials
  • Evaluation includes patient-level splits and bootstrap confidence intervals

Weaknesses

  • 2.x requires Python 3.12 or 3.13; Python 3.9 support only in legacy 1.1.6
  • Real MIMIC, eICU and similar data needs separate credentialed access
  • README says PyHealth 2.0 documentation is still being updated
  • Some tutorial videos cover PyHealth 1.16 rather than 2.x

What it needs

  • GPU optional
  • Needs PyTorch, Polars, Dask
  • Models: RNN, Transformer, RETAIN, SafeDrug, GAMENet

What changed

  1. v2.1.0 ↗ (opens in a new tab)BreakingSecurity fix

    “Dependency minimums were raised past known security issues; pip-audit reports none on a fresh install. (#1254)”

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in ML frameworks and libraries

See all 433
Also in ML frameworks and libraries
RankProjectScore
#154catboostGradient boosting library over decision trees with categorical feature support9.2k starsApache-2.064 out of 100
#155elixir-nx/nxTensors and numerical definitions for Elixir, with XLA and LibTorch backends2.9k starsno license64 out of 100
#157nilearnPython library for statistical and machine-learning analysis of brain images1.5k starsBSD-3-Clause64 out of 100
#158dvcGit-based versioning for data, models and ML pipelines16k starsApache-2.063 out of 100
#159ivyTranspiler that converts ML code from PyTorch to TensorFlow, JAX or NumPy14.2k starscustom license63 out of 100