{"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/few-shot-diagnosis-of-chest-x-rays-using-an","title":"Few-shot Diagnosis of Chest x-rays Using an Ensemble of Random Discriminative Subspaces","arxiv_id":"2309.00081","date":"2023-08-31","proceeding":null,"authors":["Kshitiz","Garvit Garg","Angshuman Paul"],"abstract":"Due to the scarcity of annotated data in the medical domain, few-shot learning may be useful for medical image analysis tasks. We design a few-shot learning method using an ensemble of random subspaces for the diagnosis of chest x-rays (CXRs). Our design is computationally efficient and almost 1.8 times faster than method that uses the popular truncated singular value decomposition (t-SVD) for subspace decomposition. The proposed method is trained by minimizing a novel loss function that helps create well-separated clusters of training data in discriminative subspaces. As a result, minimizing the loss maximizes the distance between the subspaces, making them discriminative and assisting in better classification. Experiments on large-scale publicly available CXR datasets yield promising results. Code for the project will be available at https://github.com/Few-shot-Learning-on-chest-x-ray/fsl_subspace.","url_abs":"https://arxiv.org/abs/2309.00081v1","url_pdf":"https://arxiv.org/pdf/2309.00081v1.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":"few-shot-diagnosis-of-chest-x-rays-using-an","repo_url":"https://github.com/few-shot-learning-on-chest-x-ray/fsl_subspace","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"few-shot-learning","task_name":"Few-Shot Learning"},{"task_slug":"medical-image-analysis","task_name":"Medical Image Analysis"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2309.00081","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2309.00081"}},"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":"deterministic:regex_extraction","url":"https://github.com/Few-shot-Learning-on-chest-x-ray/fsl","reach":{"status":"gone","observed_at":"2026-09-17","how":"tree_404+repo_404"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/few-shot-learning-on-chest-x-ray/fsl_subspace","reach":null}],"summary":{"ran_draft_wrong":4,"ran_fixture":1},"by_repo_kind":{"official":{"samples":4,"ran":4,"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":5,"samples":[{"code_sha256_prefix":"4a4efe7627515cc5","entry":"load_data","repo":"few-shot-learning-on-chest-x-ray/fsl_subspace","repo_kind":"official","path":"dataloader/chest.py","file_url":"https://github.com/few-shot-learning-on-chest-x-ray/fsl_subspace/blob/HEAD/dataloader/chest.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":2,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4a4efe7627515cc5"}},{"code_sha256_prefix":"53be465b53386924","entry":"SubspaceNetHead","repo":"few-shot-learning-on-chest-x-ray/fsl_subspace","repo_kind":"official","path":"models/classification_heads.py","file_url":"https://github.com/few-shot-learning-on-chest-x-ray/fsl_subspace/blob/HEAD/models/classification_heads.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"53be465b53386924"}},{"code_sha256_prefix":"8251e8e73508b03e","entry":"buildLabelIndex","repo":"few-shot-learning-on-chest-x-ray/fsl_subspace","repo_kind":"official","path":"dataloader/chest.py","file_url":"https://github.com/few-shot-learning-on-chest-x-ray/fsl_subspace/blob/HEAD/dataloader/chest.py","link_basis":"first_harvest_node","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":"8251e8e73508b03e"}},{"code_sha256_prefix":"fac5364e2f53c6db","entry":"conv3x3","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"fac5364e2f53c6db"}},{"code_sha256_prefix":"4018d80d0425da98","entry":"conv_block","repo":"few-shot-learning-on-chest-x-ray/fsl_subspace","repo_kind":"official","path":"models/ResNet12_embedding.py","file_url":"https://github.com/few-shot-learning-on-chest-x-ray/fsl_subspace/blob/HEAD/models/ResNet12_embedding.py","link_basis":"first_harvest_node","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":"4018d80d0425da98"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}