Exclude pediatric patients (younger than 18) from clinical prediction tasks#1150
Open
DarylOkeke wants to merge 3 commits into
Open
Exclude pediatric patients (younger than 18) from clinical prediction tasks#1150DarylOkeke wants to merge 3 commits into
DarylOkeke wants to merge 3 commits into
Conversation
jhnwu3
requested changes
May 25, 2026
Collaborator
jhnwu3
left a comment
There was a problem hiding this comment.
Hey nice first PR!
Is it possible to add a Boolean arg for this filtering? I think it'd be nice to be able to quickly ablation study this difference in patient demographics later.
Author
|
Thanks! I added exclude_minors to all the affected classes and legacy functions in the 3 task files. Defaults to true so the existing behavior stays the same Another thing though, I saw that LengthOfStayPredictioneICU doesn't have an age check at all. The original TODOs didn't cover it but the other 3 LOS classes do. Want me to add one for consistency, or no? |
Collaborator
|
Yeah that would be nice |
Author
|
Finished! |
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.
Multiple clinical prediction tasks had TODO comments saying that patients under 18 should be excluded, but the filtering was never implemented.
This adds age filtering to the mortality prediction, length-of-stay, and drug recommendation tasks across MIMIC-III, MIMIC-IV, eICU, and OMOP datasets. Adult prediction benchmarks shouldn't mix in pediatric cohorts b/c the clinical patterns are too different.
Some notes: