Add PhysioNet De-Identification dataset, NER task, and TransformerDeID model#981
Open
mtmckenna wants to merge 15 commits intosunlabuiuc:masterfrom
Open
Add PhysioNet De-Identification dataset, NER task, and TransformerDeID model#981mtmckenna wants to merge 15 commits intosunlabuiuc:masterfrom
mtmckenna wants to merge 15 commits intosunlabuiuc:masterfrom
Conversation
… corresponding unit tests
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
Matt McKenna (mtm16@illinois.edu)
Contribution Type
Full Pipeline: Dataset + Task + Model (Option 4)
Paper
Johnson, Alistair E.W., et al. "Deidentification of free-text medical records using pre-trained bidirectional
transformers." Proceedings of the ACM Conference on Health, Inference, and Learning (CHIL), 2020.
https://doi.org/10.1145/3368555.3384455
Description
Implements BERT-based clinical text de-identification as a PyHealth pipeline. Given clinical notes with protected health information (PHI), the model performs token-level NER to detect and classify PHI into 7 categories (NAME, DATE, LOCATION, AGE, CONTACT, ID, PROFESSION) using BIO tagging.
Data Access
The test data in
test-resources/core/physionet_deid/is synthetic (fake).Real data requires PhysioNet credentialed access:
https://physionet.org/content/deidentifiedmedicaltext/1.0/
Ablation Results
Our results are worse than the original paper's results. The hypothesis is that the results are worse because we're only using the phsyionet data and not adding in the other datasets.
Files to Review
pyhealth/datasets/physionet_deid.pypyhealth/datasets/configs/physionet_deid.yamlpyhealth/tasks/deid_ner.pypyhealth/models/transformer_deid.pytests/core/test_physionet_deid.pytests/core/test_transformer_deid.pyexamples/physionet_deid_ner_transformer_deid.pydocs/api/datasets/pyhealth.datasets.PhysioNetDeIDDataset.rstdocs/api/tasks/pyhealth.tasks.DeIDNERTask.rstdocs/api/models/pyhealth.models.TransformerDeID.rst