{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/classifying-unstructured-clinical-notes-via","title":"Classifying Unstructured Clinical Notes via Automatic Weak Supervision","arxiv_id":"2206.12088","date":"2022-06-24","proceeding":null,"authors":["Chufan Gao","Mononito Goswami","Jieshi Chen","Artur Dubrawski"],"abstract":"Healthcare providers usually record detailed notes of the clinical care delivered to each patient for clinical, research, and billing purposes. Due to the unstructured nature of these narratives, providers employ dedicated staff to assign diagnostic codes to patients' diagnoses using the International Classification of Diseases (ICD) coding system. This manual process is not only time-consuming but also costly and error-prone. Prior work demonstrated potential utility of Machine Learning (ML) methodology in automating this process, but it has relied on large quantities of manually labeled data to train the models. Additionally, diagnostic coding systems evolve with time, which makes traditional supervised learning strategies unable to generalize beyond local applications. In this work, we introduce a general weakly-supervised text classification framework that learns from class-label descriptions only, without the need to use any human-labeled documents. It leverages the linguistic domain knowledge stored within pre-trained language models and the data programming framework to assign code labels to individual texts. We demonstrate the efficacy and flexibility of our method by comparing it to state-of-the-art weak text classifiers across four real-world text classification datasets, in addition to assigning ICD codes to medical notes in the publicly available MIMIC-III database.","url_abs":"https://arxiv.org/abs/2206.12088v2","url_pdf":"https://arxiv.org/pdf/2206.12088v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"classifying-unstructured-clinical-notes-via","repo_url":"https://github.com/autonlab/KeyClass","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"diagnostic","task_name":"Diagnostic"},{"task_slug":"text-classification","task_name":"Text Classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2206.12088","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2206.12088"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/autonlab/KeyClass","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":9},"by_repo_kind":{"official":{"samples":9,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"1b4e0d59af9067ec","entry":"assign_categories_to_keywords","repo":"autonlab/KeyClass","repo_kind":"official","path":"keyclass/create_lfs.py","file_url":"https://github.com/autonlab/KeyClass/blob/HEAD/keyclass/create_lfs.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1b4e0d59af9067ec"}},{"code_sha256_prefix":"0f5512a4db9b8c25","entry":"compute_metrics","repo":"autonlab/KeyClass","repo_kind":"official","path":"keyclass/utils.py","file_url":"https://github.com/autonlab/KeyClass/blob/HEAD/keyclass/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0f5512a4db9b8c25"}},{"code_sha256_prefix":"fa93a4fbdfbc3f4a","entry":"compute_metrics_bootstrap","repo":"autonlab/KeyClass","repo_kind":"official","path":"keyclass/utils.py","file_url":"https://github.com/autonlab/KeyClass/blob/HEAD/keyclass/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fa93a4fbdfbc3f4a"}},{"code_sha256_prefix":"3a2f3d189a4784b7","entry":"create_label_matrix","repo":"autonlab/KeyClass","repo_kind":"official","path":"keyclass/create_lfs.py","file_url":"https://github.com/autonlab/KeyClass/blob/HEAD/keyclass/create_lfs.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3a2f3d189a4784b7"}},{"code_sha256_prefix":"a219a30234693f6b","entry":"get_balanced_data_mask","repo":"autonlab/KeyClass","repo_kind":"official","path":"keyclass/utils.py","file_url":"https://github.com/autonlab/KeyClass/blob/HEAD/keyclass/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a219a30234693f6b"}},{"code_sha256_prefix":"3699b8e80bbf3398","entry":"get_q_soft","repo":"autonlab/KeyClass","repo_kind":"official","path":"keyclass/train_classifier.py","file_url":"https://github.com/autonlab/KeyClass/blob/HEAD/keyclass/train_classifier.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3699b8e80bbf3398"}},{"code_sha256_prefix":"5e3d4b993b102216","entry":"get_vocabulary","repo":"autonlab/KeyClass","repo_kind":"official","path":"keyclass/create_lfs.py","file_url":"https://github.com/autonlab/KeyClass/blob/HEAD/keyclass/create_lfs.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5e3d4b993b102216"}},{"code_sha256_prefix":"d477aabbf7a48b79","entry":"self_train","repo":"autonlab/KeyClass","repo_kind":"official","path":"keyclass/train_classifier.py","file_url":"https://github.com/autonlab/KeyClass/blob/HEAD/keyclass/train_classifier.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d477aabbf7a48b79"}},{"code_sha256_prefix":"e5a3acc3722b593e","entry":"train","repo":"autonlab/KeyClass","repo_kind":"official","path":"keyclass/train_classifier.py","file_url":"https://github.com/autonlab/KeyClass/blob/HEAD/keyclass/train_classifier.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e5a3acc3722b593e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}