Add sepsis prediction task for MIMIC-IV (SepsisPredictionMIMIC4) - #1188
Open
AnishGupta551 wants to merge 2 commits into
Open
Add sepsis prediction task for MIMIC-IV (SepsisPredictionMIMIC4)#1188AnishGupta551 wants to merge 2 commits into
AnishGupta551 wants to merge 2 commits into
Conversation
Labels each admission for sepsis onset using a qSOFA-based Sepsis-3 approximation (Seymour et al., JAMA 2016): antibiotic order as the suspected-infection signal, qSOFA >= 2 (respiratory rate, systolic BP, GCS-derived mental status) as the organ-dysfunction signal. Features are censored strictly before onset to avoid label leakage. Adds a chartevents (vitals) table to the MIMIC-IV config, since PyHealth had no vitals source configured for any existing task. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
check_pr_rules.py flagged the SepsisPredictionMIMIC4 import as unused; switch to the redundant-alias re-export pattern used by other entries in this file. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contributor: Anish Gupta (anishg8@illinois.edu)
Contribution Type: New Task
Description: Added SepsisPredictionMIMIC4, a sepsis-onset prediction task for MIMIC-IV. Labels each hospital admission using a qSOFA-based approximation of the Sepsis-3 clinical criteria (Seymour et al., JAMA 2016) -- an antibiotic order as the suspected-infection signal, qSOFA >= 2 (respiratory rate, systolic BP, GCS-derived mental status) as the organ-dysfunction signal. Features are censored strictly before onset to prevent label leakage. Also adds a chartevents (vitals) table to PyHealth's MIMIC-IV config, since no existing task had wired in vitals.
Files to Review:
pyhealth/tasks/sepsis_prediction_mimic4.py- Main task implementationpyhealth/datasets/configs/mimic4_ehr.yaml- New chartevents tabletests/core/test_sepsis_prediction_mimic4.py- 10 test cases (synthetic data)examples/sepsis_prediction_mimic4_demo.py- End-to-end usage example