{"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/arxiv-2604-00469","title":"Automated Detection of Multiple Sclerosis Lesions on 7-tesla MRI Using U-net and Transformer-based Segmentation","arxiv_id":"2604.00469","date":"2026-04-01","proceeding":null,"authors":["Michael Maynord","Minghui Liu","Cornelia Fermüller","Seongjin Choi","Yuxin Zeng","Shishir Dahal","Daniel M. Harrison"],"abstract":"Ultra-high field 7-tesla (7T) MRI improves visualization of multiple sclerosis (MS) white matter lesions (WML) but differs sufficiently in contrast and artifacts from 1.5-3T imaging - suggesting that widely used automated segmentation tools may not translate directly. We analyzed 7T FLAIR scans and generated reference WML masks from Lesion Segmentation Tool (LST) outputs followed by expert manual revision. As external comparators, we applied LST-LPA and the more recent LST-AI ensemble, both originally developed on lower-field data. We then trained 3D UNETR and SegFormer transformer-based models on 7T FLAIR at multiple resolutions (0.5x0.5x0.5^3, 1.0x1.0x1.0^3, and 1.5x1.5x2.0^3) and evaluated all methods using voxel-wise and lesion-wise metrics from the BraTS 2023 framework. On the held-out test set at native 0.5x0.5x0.5^3 resolution, 7T-trained transformers achieved competitive overlap with LST-AI while recovering additional small lesions that were missed by classical methods, at the cost of some boundary variability and occasional artifact-related false positives. On a held-out 7 T test set, our best transformer model (SegFormer) achieved a voxel-wise Dice of 0.61 and lesion-wise Dice of 0.20, improving on the classical LST-LPA tool (Dice 0.39, lesion-wise Dice 0.02). Performance decreased for models trained on downsampled images, underscoring the value of native 7T resolution for small-lesion detection. By releasing our 7T-trained models, we aim to provide a reproducible, ready-to-use resource for automated lesion quantification in ultra-high field MS research (https://github.com/maynord/7T-MS-lesion-segmentation).","url_abs":"https://arxiv.org/abs/2604.00469","url_pdf":"https://arxiv.org/pdf/2604.00469","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2604.00469","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.00469"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/maynord/7T-MS-lesion-segmentation","reach":null}],"summary":{"unverified":8},"by_repo_kind":{"found_in_text":{"samples":8,"ran":0,"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":8,"samples":[{"code_sha256_prefix":"38f42f1866d0f337","entry":"build_model","repo":"maynord/7T-MS-lesion-segmentation","repo_kind":"found_in_text","path":"load_segformer.py","file_url":"https://github.com/maynord/7T-MS-lesion-segmentation/blob/HEAD/load_segformer.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":"38f42f1866d0f337"}},{"code_sha256_prefix":"e86ce52b7b1184ad","entry":"choose_device","repo":"maynord/7T-MS-lesion-segmentation","repo_kind":"found_in_text","path":"run_mri_inference.py","file_url":"https://github.com/maynord/7T-MS-lesion-segmentation/blob/HEAD/run_mri_inference.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":"e86ce52b7b1184ad"}},{"code_sha256_prefix":"054d3de05dee3865","entry":"import_module_from_file","repo":"maynord/7T-MS-lesion-segmentation","repo_kind":"found_in_text","path":"load_segformer.py","file_url":"https://github.com/maynord/7T-MS-lesion-segmentation/blob/HEAD/load_segformer.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":"054d3de05dee3865"}},{"code_sha256_prefix":"800f59943f6f91c4","entry":"load_checkpoint","repo":"maynord/7T-MS-lesion-segmentation","repo_kind":"found_in_text","path":"run_mri_inference.py","file_url":"https://github.com/maynord/7T-MS-lesion-segmentation/blob/HEAD/run_mri_inference.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":"800f59943f6f91c4"}},{"code_sha256_prefix":"f21fe08790019bda","entry":"load_checkpoint_state_dict","repo":"maynord/7T-MS-lesion-segmentation","repo_kind":"found_in_text","path":"load_unetr.py","file_url":"https://github.com/maynord/7T-MS-lesion-segmentation/blob/HEAD/load_unetr.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":"f21fe08790019bda"}},{"code_sha256_prefix":"dbdeb9cca850013e","entry":"load_checkpoint_state_dict","repo":"maynord/7T-MS-lesion-segmentation","repo_kind":"found_in_text","path":"load_segformer.py","file_url":"https://github.com/maynord/7T-MS-lesion-segmentation/blob/HEAD/load_segformer.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":"dbdeb9cca850013e"}},{"code_sha256_prefix":"a267278db482196e","entry":"load_python_module","repo":"maynord/7T-MS-lesion-segmentation","repo_kind":"found_in_text","path":"run_mri_inference.py","file_url":"https://github.com/maynord/7T-MS-lesion-segmentation/blob/HEAD/run_mri_inference.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":"a267278db482196e"}},{"code_sha256_prefix":"9c548a723328241c","entry":"parse_3ints","repo":"maynord/7T-MS-lesion-segmentation","repo_kind":"found_in_text","path":"load_unetr.py","file_url":"https://github.com/maynord/7T-MS-lesion-segmentation/blob/HEAD/load_unetr.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":"9c548a723328241c"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}