{"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/interpreting-and-correcting-medical-image","title":"Interpreting and Correcting Medical Image Classification with PIP-Net","arxiv_id":"2307.10404","date":"2023-07-19","proceeding":null,"authors":["Meike Nauta","Johannes H. Hegeman","Jeroen Geerdink","Jörg Schlötterer","Maurice van Keulen","Christin Seifert"],"abstract":"Part-prototype models are explainable-by-design image classifiers, and a promising alternative to black box AI. This paper explores the applicability and potential of interpretable machine learning, in particular PIP-Net, for automated diagnosis support on real-world medical imaging data. PIP-Net learns human-understandable prototypical image parts and we evaluate its accuracy and interpretability for fracture detection and skin cancer diagnosis. We find that PIP-Net's decision making process is in line with medical classification standards, while only provided with image-level class labels. Because of PIP-Net's unsupervised pretraining of prototypes, data quality problems such as undesired text in an X-ray or labelling errors can be easily identified. Additionally, we are the first to show that humans can manually correct the reasoning of PIP-Net by directly disabling undesired prototypes. We conclude that part-prototype models are promising for medical applications due to their interpretability and potential for advanced model debugging.","url_abs":"https://arxiv.org/abs/2307.10404v2","url_pdf":"https://arxiv.org/pdf/2307.10404v2.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":"interpreting-and-correcting-medical-image","repo_url":"https://github.com/m-nauta/pipnet","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"classification-1","task_name":"Classification"},{"task_slug":"decision-making","task_name":"Decision Making"},{"task_slug":"fracture-detection","task_name":"Fracture detection"},{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"interpretable-machine-learning","task_name":"Interpretable Machine Learning"},{"task_slug":"medical-image-classification","task_name":"Medical Image Classification"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2307.10404","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2307.10404"}},"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/m-nauta/pipnet","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":2,"ran":7,"unverified":4},"by_repo_kind":{"official":{"samples":13,"ran":9,"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":13,"samples":[{"code_sha256_prefix":"d9def42110729a85","entry":"conv1x1","repo":"m-nauta/pipnet","repo_kind":"official","path":"features/resnet_features.py","file_url":"https://github.com/m-nauta/pipnet/blob/HEAD/features/resnet_features.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d9def42110729a85"}},{"code_sha256_prefix":"fac5364e2f53c6db","entry":"conv3x3","repo":"m-nauta/pipnet","repo_kind":"official","path":"features/resnet_features.py","file_url":"https://github.com/m-nauta/pipnet/blob/HEAD/features/resnet_features.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fac5364e2f53c6db"}},{"code_sha256_prefix":"bec4b153e0a12d6b","entry":"conv3x3_nopad","repo":"m-nauta/pipnet","repo_kind":"official","path":"features/resnet_features.py","file_url":"https://github.com/m-nauta/pipnet/blob/HEAD/features/resnet_features.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bec4b153e0a12d6b"}},{"code_sha256_prefix":"30b661379a36af8f","entry":"create_datasets","repo":"m-nauta/pipnet","repo_kind":"official","path":"util/data.py","file_url":"https://github.com/m-nauta/pipnet/blob/HEAD/util/data.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"30b661379a36af8f"}},{"code_sha256_prefix":"dab320519326bfb3","entry":"get_img_coordinates","repo":"m-nauta/pipnet","repo_kind":"official","path":"util/vis_pipnet.py","file_url":"https://github.com/m-nauta/pipnet/blob/HEAD/util/vis_pipnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dab320519326bfb3"}},{"code_sha256_prefix":"e2343425172d43ee","entry":"get_optimizer_nn","repo":"m-nauta/pipnet","repo_kind":"official","path":"util/args.py","file_url":"https://github.com/m-nauta/pipnet/blob/HEAD/util/args.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e2343425172d43ee"}},{"code_sha256_prefix":"fc27da95703ce673","entry":"get_patch_size","repo":"m-nauta/pipnet","repo_kind":"official","path":"util/func.py","file_url":"https://github.com/m-nauta/pipnet/blob/HEAD/util/func.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fc27da95703ce673"}},{"code_sha256_prefix":"a758c95ddd9cf6e6","entry":"replace_convlayers_convnext","repo":"m-nauta/pipnet","repo_kind":"official","path":"features/convnext_features.py","file_url":"https://github.com/m-nauta/pipnet/blob/HEAD/features/convnext_features.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a758c95ddd9cf6e6"}},{"code_sha256_prefix":"3599d1005751cdbb","entry":"topk_accuracy","repo":"m-nauta/pipnet","repo_kind":"official","path":"util/func.py","file_url":"https://github.com/m-nauta/pipnet/blob/HEAD/util/func.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3599d1005751cdbb"}},{"code_sha256_prefix":"094b66474a792977","entry":"convnext_tiny_13_features","repo":"m-nauta/pipnet","repo_kind":"official","path":"features/convnext_features.py","file_url":"https://github.com/m-nauta/pipnet/blob/HEAD/features/convnext_features.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"094b66474a792977"}},{"code_sha256_prefix":"c3c86ab4d3337a4f","entry":"convnext_tiny_26_features","repo":"m-nauta/pipnet","repo_kind":"official","path":"features/convnext_features.py","file_url":"https://github.com/m-nauta/pipnet/blob/HEAD/features/convnext_features.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c3c86ab4d3337a4f"}},{"code_sha256_prefix":"9d9937f38d2749b2","entry":"get_data","repo":"m-nauta/pipnet","repo_kind":"official","path":"util/data.py","file_url":"https://github.com/m-nauta/pipnet/blob/HEAD/util/data.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9d9937f38d2749b2"}},{"code_sha256_prefix":"595b1dbf510e516b","entry":"get_dataloaders","repo":"m-nauta/pipnet","repo_kind":"official","path":"util/data.py","file_url":"https://github.com/m-nauta/pipnet/blob/HEAD/util/data.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"595b1dbf510e516b"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}