{"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/learning-anatomically-consistent-embedding","title":"Learning Anatomically Consistent Embedding for Chest Radiography","arxiv_id":"2312.00335","date":"2023-12-01","proceeding":null,"authors":["Ziyu Zhou","Haozhe Luo","Jiaxuan Pang","Xiaowei Ding","Michael Gotway","Jianming Liang"],"abstract":"Self-supervised learning (SSL) approaches have recently shown substantial success in learning visual representations from unannotated images. Compared with photographic images, medical images acquired with the same imaging protocol exhibit high consistency in anatomy. To exploit this anatomical consistency, this paper introduces a novel SSL approach, called PEAC (patch embedding of anatomical consistency), for medical image analysis. Specifically, in this paper, we propose to learn global and local consistencies via stable grid-based matching, transfer pre-trained PEAC models to diverse downstream tasks, and extensively demonstrate that (1) PEAC achieves significantly better performance than the existing state-of-the-art fully/self-supervised methods, and (2) PEAC captures the anatomical structure consistency across views of the same patient and across patients of different genders, weights, and healthy statuses, which enhances the interpretability of our method for medical image analysis.","url_abs":"https://arxiv.org/abs/2312.00335v2","url_pdf":"https://arxiv.org/pdf/2312.00335v2.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":"learning-anatomically-consistent-embedding","repo_url":"https://github.com/jlianglab/peac","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}}],"tasks":[{"task_slug":"anatomy","task_name":"Anatomy"},{"task_slug":"medical-image-analysis","task_name":"Medical Image Analysis"},{"task_slug":"self-supervised-learning","task_name":"Self-Supervised Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2312.00335","atlas_url":"https://app.syntology.ai/?focus=2312.00335","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2312.00335"}},"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/jlianglab/peac","reach":{"status":"ok","spdx":"NOASSERTION"}}],"summary":{"ran_fixture":1,"ran":9,"ran_violates":1,"ran_draft_wrong":1,"unverified":8},"by_repo_kind":{"official":{"samples":20,"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":20,"samples":[{"code_sha256_prefix":"144d10b49baeb8a6","entry":"window_partition","repo":"jlianglab/peac","repo_kind":"official","path":"swin_transformer.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/swin_transformer.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":2,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"144d10b49baeb8a6"}},{"code_sha256_prefix":"b03e9aa76e26693d","entry":"data_augmentation","repo":"jlianglab/peac","repo_kind":"official","path":"md_aug.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/md_aug.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"b03e9aa76e26693d"}},{"code_sha256_prefix":"d652cf651ba430ea","entry":"get_index","repo":"jlianglab/peac","repo_kind":"official","path":"utils/build_loader_local.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/utils/build_loader_local.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"d652cf651ba430ea"}},{"code_sha256_prefix":"2f88f4be9e7a002c","entry":"img_transforms","repo":"jlianglab/peac","repo_kind":"official","path":"utils/build_loader.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/utils/build_loader.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"2f88f4be9e7a002c"}},{"code_sha256_prefix":"9cdd68ca7445c814","entry":"img_transforms","repo":"jlianglab/peac","repo_kind":"official","path":"utils/build_loader_global_local.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/utils/build_loader_global_local.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"9cdd68ca7445c814"}},{"code_sha256_prefix":"6cb4da90fc7fbdd1","entry":"named_apply","repo":"jlianglab/peac","repo_kind":"official","path":"models/VisionTransformer.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/models/VisionTransformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"6cb4da90fc7fbdd1"}},{"code_sha256_prefix":"6ba8cee9f5daea41","entry":"pair","repo":"jlianglab/peac","repo_kind":"official","path":"models/vit.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/models/vit.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6ba8cee9f5daea41"}},{"code_sha256_prefix":"26ddc91429bcce52","entry":"patch_crop","repo":"jlianglab/peac","repo_kind":"official","path":"utils/build_loader_local.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/utils/build_loader_local.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"26ddc91429bcce52"}},{"code_sha256_prefix":"b168105e6db037a9","entry":"patch_transforms","repo":"jlianglab/peac","repo_kind":"official","path":"utils/build_loader.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/utils/build_loader.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"b168105e6db037a9"}},{"code_sha256_prefix":"3c0d22c3ecdb2ae4","entry":"patch_transforms","repo":"jlianglab/peac","repo_kind":"official","path":"utils/build_loader_global_local.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/utils/build_loader_global_local.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"3c0d22c3ecdb2ae4"}},{"code_sha256_prefix":"e95aa57c60345541","entry":"step_decay","repo":"jlianglab/peac","repo_kind":"official","path":"global_local_popar_swin.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/global_local_popar_swin.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"e95aa57c60345541"}},{"code_sha256_prefix":"61bf152e6a42a184","entry":"window_reverse","repo":"jlianglab/peac","repo_kind":"official","path":"swin_transformer.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/swin_transformer.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"61bf152e6a42a184"}},{"code_sha256_prefix":"b5e3310f603f2e4f","entry":"bernstein_poly","repo":"jlianglab/peac","repo_kind":"official","path":"md_aug.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/md_aug.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"b5e3310f603f2e4f"}},{"code_sha256_prefix":"2bf627e56a0afe3e","entry":"bezier_curve","repo":"jlianglab/peac","repo_kind":"official","path":"md_aug.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/md_aug.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"2bf627e56a0afe3e"}},{"code_sha256_prefix":"693a29c4fe8d9533","entry":"build_loader_NIHchest","repo":"jlianglab/peac","repo_kind":"official","path":"utils/build_loader.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/utils/build_loader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"693a29c4fe8d9533"}},{"code_sha256_prefix":"9ea3cff470a657e3","entry":"build_loader_global_local","repo":"jlianglab/peac","repo_kind":"official","path":"utils/build_loader_global_local.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/utils/build_loader_global_local.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"9ea3cff470a657e3"}},{"code_sha256_prefix":"b5f007fdfdaf73cf","entry":"build_loader_local","repo":"jlianglab/peac","repo_kind":"official","path":"utils/build_loader_local.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/utils/build_loader_local.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"b5f007fdfdaf73cf"}},{"code_sha256_prefix":"c63cf442f45d0e8c","entry":"build_swin","repo":"jlianglab/peac","repo_kind":"official","path":"swin_transformer.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/swin_transformer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"c63cf442f45d0e8c"}},{"code_sha256_prefix":"5dac11fdc41c896b","entry":"checkpoint_filter_fn","repo":"jlianglab/peac","repo_kind":"official","path":"models/VisionTransformer.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/models/VisionTransformer.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":"5dac11fdc41c896b"}},{"code_sha256_prefix":"1dbef2d4da4ee10f","entry":"resize_pos_embed","repo":"jlianglab/peac","repo_kind":"official","path":"models/VisionTransformer.py","file_url":"https://github.com/jlianglab/peac/blob/HEAD/models/VisionTransformer.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":"1dbef2d4da4ee10f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}