[CS 598 DL4H] Generating Faithful and High Quality Patient Summaries with LLMs - #1064
Open
caiqile wants to merge 11 commits into
Open
[CS 598 DL4H] Generating Faithful and High Quality Patient Summaries with LLMs#1064caiqile wants to merge 11 commits into
caiqile wants to merge 11 commits into
Conversation
Abrar carina work
new tests
|
This PR has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. |
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: Ethan Cai (epcai2), Abrar Ahmed (abrara3), Carina Zhang (xz125)
Contribution Type: Dataset + Task
Original Paper:
Hegselmann, S.; Shen, S. Z.; Gierse, F.; Agrawal, M.; Son-
tag, D.; and Jiang, X. 2024. A Data-Centric Approach To
Generate Faithful and High Quality Patient Summaries with
Large Language Models. In Proceedings of the Conference
on Health, Inference, and Learning (CHIL), volume 248 of
Proceedings of Machine Learning Research, 339–379.
https://arxiv.org/pdf/2402.15422
Description:
Implements MIMIC4NoteExtDIBHCDataset, a dataset that includes the Brief Hospital Course and Discharge Instructions columns to represent relevant information from MIMIC4Note that can be used as input to LLM for summary generation.
Implements BHCSummarizationTask to input Brief Hospital Course into an LLM and ask for a summary.
Implements HallucinationDetectionTask to automatically detect the number of hallucinations in an AI generated summary.
Files to Review:
pyhealth/tasks/mimic4_note_ext_dibhc_tasks.py- Task Implementationtests/core/test_mimic4_note_ext_dibhc_tasks.py- Task Testcasespyhealth/datasets/mimic4noteextdibhc.py- Dataset Implementationtests/core/test_mimic4noteextdibhc.py- Dataset Testcasesexamples/mimic4_note_ext_dibhc_hallucination_detection_logreg.py- Example usage + Ablation study