pyhealth

Automate healthcare AI pipelines for EHR data with PyTorch models.

1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/JosephWoodall/noosphere --skill pyhealth-josephwoodall
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pyhealth
Source: https://github.com/JosephWoodall/noosphere/tree/main/.agent/skills/pyhealth
Command: npx skills add https://github.com/JosephWoodall/noosphere --skill pyhealth-josephwoodall

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PyHealth accelerates end-to-end healthcare AI development by providing datasets, task definitions, models, training pipelines, evaluation metrics, and interpretability tools for clinical data.

Core Features & Use Cases

  • Data access and normalization: supports EHR datasets such as MIMIC-III/IV, eICU, and OMOP, with standardized event-patient-visit structures.
  • Task definitions and sample generation: 20+ predefined clinical prediction tasks and easy custom task creation.
  • Model zoo: 33+ architectures including RETAIN, Transformer, GNN, SafeDrug, GAMENet for healthcare.
  • Training, evaluation, calibration, and interpretability: built-in Trainer, metrics, uncertainty quantification, and explanations tools.
  • Deployment readiness: supports calibration, monitoring, and reproducible pipelines for clinical use.
  • Documentation and references: comprehensive references for datasets, preprocessing, models, and tasks.

Quick Start

Install the library, load a healthcare dataset (e.g., MIMIC4), set a mortality prediction task, and train a Transformer model to evaluate its performance.

Frequently Asked Questions about pyhealth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build clinical prediction models using EHR datasets like MIMIC-IV?

Clinical prediction models using EHR datasets like MIMIC-IV are built by loading standardized event-patient-visit data, setting a predefined task such as mortality prediction, and training architectures like Transformer within an automated pipeline.

Can I use PyTorch for healthcare AI tasks like readmission and length of stay prediction?

Yes, PyTorch is required for healthcare AI tasks like readmission and length of stay prediction, providing modular components for datasets, tasks, models, and trainer steps to ensure reproducible clinical ML pipelines.

What's the best way to apply deep learning to physiological signals and medical imaging?

Applying deep learning to physiological signals and medical imaging is best handled through an end-to-end healthcare AI toolkit that automates data loading, model training, evaluation, and interpretability for clinical data.

Does PyHealth support model calibration and interpretability for clinical ML pipelines?

PyHealth supports model calibration and interpretability for clinical ML pipelines through built-in trainer modules, uncertainty quantification, evaluation metrics, and explanation tools designed for deployment readiness.

What predefined clinical prediction tasks are available for OMOP and eICU datasets?

Predefined clinical prediction tasks available for OMOP and eICU datasets include 20+ options such as mortality prediction, readmission, length of stay, and drug recommendation, alongside easy custom task creation.

What Python environment is needed to run healthcare AI pipelines with models like RETAIN and GNN?

A Python 3.7+ environment with PyTorch installed is needed to run healthcare AI pipelines utilizing architectures like RETAIN, SafeDrug, GAMENet, and GNN for MIMIC and OMOP dataset processing.