Add TDLSTMMortality model for ICU mortality prediction via temporal-difference learning#955
Open
MrPrabhatShreeprakashSingh wants to merge 1 commit intosunlabuiuc:masterfrom
Conversation
…ifference learning
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.
This pull request adds a new PyHealth model contribution:
TDLSTMMortalityThis implementation is a PyHealth-compatible reproduction of the paper’s core temporal-difference learning idea for ICU mortality prediction. The contributed model provides:
This contribution is intentionally a simplified PyHealth-native reproduction of the paper’s central idea rather than a full reimplementation of the original CNN+LSTM/state-marker pipeline.
Contributors
udits2@illinois.edu)jhaenel2@illinois.edu)pssingh2@illinois.edu)Original paper
Robust Real-Time Mortality Prediction in the Intensive Care Unit using Temporal Difference Learning
Why this contribution
The project reproduces the paper’s central idea in a lightweight, PyHealth-native form suitable for educational reproducibility, testing, and future extension. Compared with the original paper, the architecture is simplified to an LSTM-only version to improve compatibility with PyHealth’s model interface and contribution workflow.
Files to review
Core implementation
pyhealth/models/td_lstm_mortality.pyTests
tests/test_td_lstm_mortality.pyExample / ablation
examples/mimic4_mortality_td_lstm.pyDocumentation
docs/api/models/pyhealth.models.td_lstm_mortality.rstdocs/api/models.rstImplementation notes
BaseModeltraining_mode="supervised"andtraining_mode="td"input_dimfrom dataset samples for compatibility with local PyHealth APIs[timestamps, values]synthetic timeseries sample format in tests/examplesmodel(target_model=model, **batch)to satisfy the TD forward APIExample results
The included example script runs end to end on synthetic data and reports:
gammaoverall benchmark, while tuned 1-step TD is the main TD result
Checklist
main