{"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/brain-id-learning-robust-feature","title":"Brain-ID: Learning Contrast-agnostic Anatomical Representations for Brain Imaging","arxiv_id":"2311.16914","date":"2023-11-28","proceeding":null,"authors":["Peirong Liu","Oula Puonti","Xiaoling Hu","Daniel C. Alexander","Juan E. Iglesias"],"abstract":"Recent learning-based approaches have made astonishing advances in calibrated medical imaging like computerized tomography (CT), yet they struggle to generalize in uncalibrated modalities -- notably magnetic resonance (MR) imaging, where performance is highly sensitive to the differences in MR contrast, resolution, and orientation. This prevents broad applicability to diverse real-world clinical protocols. We introduce Brain-ID, an anatomical representation learning model for brain imaging. With the proposed \"mild-to-severe\" intra-subject generation, Brain-ID is robust to the subject-specific brain anatomy regardless of the appearance of acquired images (e.g., contrast, deformation, resolution, artifacts). Trained entirely on synthetic data, Brain-ID readily adapts to various downstream tasks through only one layer. We present new metrics to validate the intra- and inter-subject robustness of Brain-ID features, and evaluate their performance on four downstream applications, covering contrast-independent (anatomy reconstruction/contrast synthesis, brain segmentation), and contrast-dependent (super-resolution, bias field estimation) tasks. Extensive experiments on six public datasets demonstrate that Brain-ID achieves state-of-the-art performance in all tasks on different MRI modalities and CT, and more importantly, preserves its performance on low-resolution and small datasets. Code is available at https://github.com/peirong26/Brain-ID.","url_abs":"https://arxiv.org/abs/2311.16914v2","url_pdf":"https://arxiv.org/pdf/2311.16914v2.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":"brain-id-learning-robust-feature","repo_url":"https://github.com/peirong26/Brain-ID","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"brain-id-learning-robust-feature","repo_url":"https://github.com/medical-image-analysis-laboratory/fetalsynthseg","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}}],"tasks":[{"task_slug":"anatomy","task_name":"Anatomy"},{"task_slug":"brain-segmentation","task_name":"Brain Segmentation"},{"task_slug":"representation-learning","task_name":"Representation Learning"},{"task_slug":"super-resolution","task_name":"Super-Resolution"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2311.16914","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2311.16914"}},"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/peirong26/Brain-ID","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/medical-image-analysis-laboratory/fetalsynthseg","reach":{"status":"ok","spdx":"NOASSERTION"}}],"summary":{"ran":12,"unverified":3},"by_repo_kind":{"official":{"samples":15,"ran":12,"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":"5c9440fb374410ce","entry":"align_shape","repo":"peirong26/Brain-ID","repo_kind":"official","path":"BrainID/models/evaluator.py","file_url":"https://github.com/peirong26/Brain-ID/blob/HEAD/BrainID/models/evaluator.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5c9440fb374410ce"}},{"code_sha256_prefix":"e8526a516b4f9206","entry":"convert_basic_c2_names","repo":"peirong26/Brain-ID","repo_kind":"official","path":"utils/checkpoint.py","file_url":"https://github.com/peirong26/Brain-ID/blob/HEAD/utils/checkpoint.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e8526a516b4f9206"}},{"code_sha256_prefix":"aef4107b9a82b29c","entry":"even_sample","repo":"peirong26/Brain-ID","repo_kind":"official","path":"BrainID/visualizer.py","file_url":"https://github.com/peirong26/Brain-ID/blob/HEAD/BrainID/visualizer.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"aef4107b9a82b29c"}},{"code_sha256_prefix":"6bd5446ea46e3dd1","entry":"gaussian_loss","repo":"peirong26/Brain-ID","repo_kind":"official","path":"BrainID/models/losses.py","file_url":"https://github.com/peirong26/Brain-ID/blob/HEAD/BrainID/models/losses.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6bd5446ea46e3dd1"}},{"code_sha256_prefix":"5b564986ff77b9e5","entry":"get_head","repo":"peirong26/Brain-ID","repo_kind":"official","path":"BrainID/models/head.py","file_url":"https://github.com/peirong26/Brain-ID/blob/HEAD/BrainID/models/head.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5b564986ff77b9e5"}},{"code_sha256_prefix":"ffed10acc6f568b4","entry":"get_joiner","repo":"peirong26/Brain-ID","repo_kind":"official","path":"BrainID/models/joiner.py","file_url":"https://github.com/peirong26/Brain-ID/blob/HEAD/BrainID/models/joiner.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ffed10acc6f568b4"}},{"code_sha256_prefix":"5bbdc15bd4bc1394","entry":"get_onehot","repo":"peirong26/Brain-ID","repo_kind":"official","path":"BrainID/models/evaluator.py","file_url":"https://github.com/peirong26/Brain-ID/blob/HEAD/BrainID/models/evaluator.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5bbdc15bd4bc1394"}},{"code_sha256_prefix":"06bb22e0b46f52a7","entry":"get_processors","repo":"peirong26/Brain-ID","repo_kind":"official","path":"BrainID/models/joiner.py","file_url":"https://github.com/peirong26/Brain-ID/blob/HEAD/BrainID/models/joiner.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"06bb22e0b46f52a7"}},{"code_sha256_prefix":"1112222d38da99ce","entry":"l1_loss","repo":"peirong26/Brain-ID","repo_kind":"official","path":"BrainID/models/losses.py","file_url":"https://github.com/peirong26/Brain-ID/blob/HEAD/BrainID/models/losses.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1112222d38da99ce"}},{"code_sha256_prefix":"21d2dd0d7c3c815e","entry":"l2_loss","repo":"peirong26/Brain-ID","repo_kind":"official","path":"BrainID/models/losses.py","file_url":"https://github.com/peirong26/Brain-ID/blob/HEAD/BrainID/models/losses.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"21d2dd0d7c3c815e"}},{"code_sha256_prefix":"66a524eaae73c605","entry":"pad_shape","repo":"peirong26/Brain-ID","repo_kind":"official","path":"BrainID/visualizer.py","file_url":"https://github.com/peirong26/Brain-ID/blob/HEAD/BrainID/visualizer.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"66a524eaae73c605"}},{"code_sha256_prefix":"7999fe0312243534","entry":"recursive_update","repo":"peirong26/Brain-ID","repo_kind":"official","path":"utils/config.py","file_url":"https://github.com/peirong26/Brain-ID/blob/HEAD/utils/config.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7999fe0312243534"}},{"code_sha256_prefix":"24494a5b455a5ef5","entry":"match_shape","repo":"peirong26/Brain-ID","repo_kind":"official","path":"BrainID/visualizer.py","file_url":"https://github.com/peirong26/Brain-ID/blob/HEAD/BrainID/visualizer.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"24494a5b455a5ef5"}},{"code_sha256_prefix":"f6c7280f75271482","entry":"rgetattr","repo":"peirong26/Brain-ID","repo_kind":"official","path":"utils/config.py","file_url":"https://github.com/peirong26/Brain-ID/blob/HEAD/utils/config.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f6c7280f75271482"}},{"code_sha256_prefix":"31aa2f35339fe269","entry":"rsetattr","repo":"peirong26/Brain-ID","repo_kind":"official","path":"utils/config.py","file_url":"https://github.com/peirong26/Brain-ID/blob/HEAD/utils/config.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"31aa2f35339fe269"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}