{"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/deep-learning-to-quantify-pulmonary-edema-in","title":"Deep Learning to Quantify Pulmonary Edema in Chest Radiographs","arxiv_id":"2008.05975","date":"2020-08-13","proceeding":null,"authors":["Steven Horng","Ruizhi Liao","Xin Wang","Sandeep Dalal","Polina Golland","Seth J. Berkowitz"],"abstract":"Purpose: To develop a machine learning model to classify the severity grades of pulmonary edema on chest radiographs. Materials and Methods: In this retrospective study, 369,071 chest radiographs and associated radiology reports from 64,581 (mean age, 51.71; 54.51% women) patients from the MIMIC-CXR chest radiograph dataset were included. This dataset was split into patients with and without congestive heart failure (CHF). Pulmonary edema severity labels from the associated radiology reports were extracted from patients with CHF as four different ordinal levels: 0, no edema; 1, vascular congestion; 2, interstitial edema; and 3, alveolar edema. Deep learning models were developed using two approaches: a semi-supervised model using a variational autoencoder and a pre-trained supervised learning model using a dense neural network. Receiver operating characteristic curve analysis was performed on both models. Results: The area under the receiver operating characteristic curve (AUC) for differentiating alveolar edema from no edema was 0.99 for the semi-supervised model and 0.87 for the pre-trained models. Performance of the algorithm was inversely related to the difficulty in categorizing milder states of pulmonary edema (shown as AUCs for semi-supervised model and pre-trained model, respectively): 2 versus 0, 0.88 and 0.81; 1 versus 0, 0.79 and 0.66; 3 versus 1, 0.93 and 0.82; 2 versus 1, 0.69 and 0.73; and, 3 versus 2, 0.88 and 0.63. Conclusion: Deep learning models were trained on a large chest radiograph dataset and could grade the severity of pulmonary edema on chest radiographs with high performance.","url_abs":"https://arxiv.org/abs/2008.05975v2","url_pdf":"https://arxiv.org/pdf/2008.05975v2.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":"deep-learning-to-quantify-pulmonary-edema-in","repo_url":"https://github.com/RayRuizhiLiao/resnet_chestxray","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"deep-learning","task_name":"Deep Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2008.05975","atlas_url":"https://app.syntology.ai/?focus=2008.05975","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2008.05975"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/RayRuizhiLiao/resnet_chestxray","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":2,"unverified":10},"by_repo_kind":{"official":{"samples":12,"ran":2,"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":"d9def42110729a85","entry":"conv1x1","repo":"RayRuizhiLiao/resnet_chestxray","repo_kind":"official","path":"resnet_chestxray/model.py","file_url":"https://github.com/RayRuizhiLiao/resnet_chestxray/blob/HEAD/resnet_chestxray/model.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d9def42110729a85"}},{"code_sha256_prefix":"160bb14bd76201b4","entry":"conv3x3","repo":"RayRuizhiLiao/resnet_chestxray","repo_kind":"official","path":"resnet_chestxray/model.py","file_url":"https://github.com/RayRuizhiLiao/resnet_chestxray/blob/HEAD/resnet_chestxray/model.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"160bb14bd76201b4"}},{"code_sha256_prefix":"6dd31388eb935e8b","entry":"build_evaluation_dataset","repo":"RayRuizhiLiao/resnet_chestxray","repo_kind":"official","path":"resnet_chestxray/main_utils.py","file_url":"https://github.com/RayRuizhiLiao/resnet_chestxray/blob/HEAD/resnet_chestxray/main_utils.py","link_basis":"first_harvest_node","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":"6dd31388eb935e8b"}},{"code_sha256_prefix":"19719033be4c338d","entry":"build_model","repo":"RayRuizhiLiao/resnet_chestxray","repo_kind":"official","path":"resnet_chestxray/main_utils.py","file_url":"https://github.com/RayRuizhiLiao/resnet_chestxray/blob/HEAD/resnet_chestxray/main_utils.py","link_basis":"first_harvest_node","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":"19719033be4c338d"}},{"code_sha256_prefix":"c34eec73ff0c6b1f","entry":"build_resnet2048_7_2_1","repo":"RayRuizhiLiao/resnet_chestxray","repo_kind":"official","path":"resnet_chestxray/model.py","file_url":"https://github.com/RayRuizhiLiao/resnet_chestxray/blob/HEAD/resnet_chestxray/model.py","link_basis":"first_harvest_node","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":"c34eec73ff0c6b1f"}},{"code_sha256_prefix":"880d86202dcbbe07","entry":"build_training_dataset","repo":"RayRuizhiLiao/resnet_chestxray","repo_kind":"official","path":"resnet_chestxray/main_utils.py","file_url":"https://github.com/RayRuizhiLiao/resnet_chestxray/blob/HEAD/resnet_chestxray/main_utils.py","link_basis":"first_harvest_node","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":"880d86202dcbbe07"}},{"code_sha256_prefix":"50b253f3e12e1a5e","entry":"compute_multiclass_auc","repo":"RayRuizhiLiao/resnet_chestxray","repo_kind":"official","path":"eval_metrics.py","file_url":"https://github.com/RayRuizhiLiao/resnet_chestxray/blob/HEAD/eval_metrics.py","link_basis":"first_harvest_node","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":"50b253f3e12e1a5e"}},{"code_sha256_prefix":"2cfb16ad941ee8b9","entry":"compute_ordinal_auc","repo":"RayRuizhiLiao/resnet_chestxray","repo_kind":"official","path":"eval_metrics.py","file_url":"https://github.com/RayRuizhiLiao/resnet_chestxray/blob/HEAD/eval_metrics.py","link_basis":"first_harvest_node","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":"2cfb16ad941ee8b9"}},{"code_sha256_prefix":"f93238736839f414","entry":"compute_pairwise_auc","repo":"RayRuizhiLiao/resnet_chestxray","repo_kind":"official","path":"eval_metrics.py","file_url":"https://github.com/RayRuizhiLiao/resnet_chestxray/blob/HEAD/eval_metrics.py","link_basis":"first_harvest_node","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":"f93238736839f414"}},{"code_sha256_prefix":"318cc2b5cc8a9ccd","entry":"convert_to_onehot","repo":"RayRuizhiLiao/resnet_chestxray","repo_kind":"official","path":"resnet_chestxray/model_utils.py","file_url":"https://github.com/RayRuizhiLiao/resnet_chestxray/blob/HEAD/resnet_chestxray/model_utils.py","link_basis":"first_harvest_node","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":"318cc2b5cc8a9ccd"}},{"code_sha256_prefix":"3ab260806061221e","entry":"convert_to_ordinal","repo":"RayRuizhiLiao/resnet_chestxray","repo_kind":"official","path":"resnet_chestxray/model_utils.py","file_url":"https://github.com/RayRuizhiLiao/resnet_chestxray/blob/HEAD/resnet_chestxray/model_utils.py","link_basis":"first_harvest_node","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":"3ab260806061221e"}},{"code_sha256_prefix":"506454818ffce899","entry":"load_image","repo":"RayRuizhiLiao/resnet_chestxray","repo_kind":"official","path":"resnet_chestxray/model_utils.py","file_url":"https://github.com/RayRuizhiLiao/resnet_chestxray/blob/HEAD/resnet_chestxray/model_utils.py","link_basis":"first_harvest_node","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":"506454818ffce899"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}