A comprehensive framework for automated segmentation of perivascular spaces in brain MRI with the nnU-Net.
The 1 match · it ties a paragraph to a whole file, not to given lines: a weak match, whose lines are not tinted
- [1] § Methods › T1w+FLAIR nnU-Net ↔ scripts/pvs_predict_T1wFLAIR.sh, the whole file · a weak match · score 0.53 · FLAIR images, T1w images, co, Prediction, spacing, scans
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Shell · 19 lines · 825 B · MIT · 1 match
- #!/bin/bash
- # nnUNetv2 for the segmentation of perivascular spaces in T1w with co-registered FLAIR MRI scans
- # Author: William Pham
- # Date: 2025-11-04
- # Description: This script runs a nnUNet to label perivascular spaces and white matter hyperintensities in T1w and FLAIR MRI scans.
- # Usage:
- # Modify the script to include the INPUT_DIR and OUTPUT_DIR arguments, then run script:
- # ./pvs_predict_T1wFLAIR.sh
- # Input directory containing raw T1w and registered FLAIR Nifti images for inference
- # T1w images should end with "_0000.nii.gz"
- # FLAIR images should end with "_0001.nii.gz"
- INPUT_DIR=""
- # Output directory where PVS masks and model predictions will be outputs
- OUTPUT_DIR=""
- nnUNetv2_predict -d Dataset704_PVSFlair -i ${INPUT_DIR} -o ${OUTPUT_DIR} -f all -tr nnUNetTrainer -c 3d_fullres -p nnUNetResEncUNetMPlans
pvs_predict_T1wFLAIR.sh at commit dd7798d, under MIT · at the source
Overview
- Department of Neuroscience, Monash University,Melbourne, Australia
- Department of Radiology, Alfred Health,Melbourne, Australia
- School of Medicine, Western Sydney University,Sydney, Australia
- Department of Anatomy and Histology, The University of Sydney,Sydney, Australia
Abstract
Background: Enlargement of perivascular spaces (PVS) is common in cerebral small vessel disease, Alzheimer’s disease, and Parkinson’s disease, reflecting impaired clearance pathways. While MRI provides a means to quantify perivascular spaces, manual annotation remains time-consuming and labour-intensive. Thus, there is a need for accurate automated MRI-based PVS segmentation methods.
Aim: To optimise the nnU-Net, a deep-learning framework, for PVS segmentation.
Methods: 30 T1-weighted (T1w) MRI images acquired on three different scanners were used. PVS in the white matter (WM) and basal ganglia (BG) were manually labelled via a sparse annotation strategy and used to optimise the nnU-Net for T1w PVS segmentation. The same pipeline was applied to T2-weighted (T2w) images. Additionally, we trained T1w+FLAIR and T2w+FLAIR models to simultaneously segment PVS and white matter hyperintensities (WMH). Performance was assessed with 5-fold cross validation using the Dice similarity coefficient (DSC).
Results: A voxel-spacing agnostic model (mean DSC = 64.3 ± 3.3%) outperformed models that resampled images to a common resolution (DSC = 40.5–55%). Training on PVS segmentations derived from preprocessed T1w images substantially improved performance (DSC = 78.3 ± 1.7%). The T2w model performed best overall (DSC = 84.7 ± 1.3%), especially for WM-PVS (DSC = 90.4 ± 0.9%) compared to BG-PVS (DSC = 79.1 ± 2%). Multimodal models achieved DSCs of 75.6 ± 3.4% (T1w+FLAIR) and 77.5 ± 2.7% (T2w+FLAIR).
Conclusions: Our deep learning models provide a robust framework for automated PVS quantification across MRI modalities.
Supplementary information: The online version contains supplementary material available at 10.1007/
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 1 match between paragraphs and lines of code.
wpham17/nnUNet-Perivascular-Spaces
dd7798d81617ec375450b7c350714c15f1e99639, 18 September 2026Availability: 1 check, the latest on 29 September 2026: the link answers
- 29 September 2026: the link answers
15 files
- nnUNetv2/
imageio/ , Python, 142 linesagno_ahe_sitk_reader_wri ter.py - nnUNetv2/
imageio/ , Python, 136 linesagnositk_reader_writer.p y - nnUNetv2/
imageio/ , Python, 83 linesreader_writer_registry.p y - nnUNetv2/
preprocessing/ , Python, 285 linesnormalization/ default_normalization_sc hemes.py - nnUNetv2/
preprocessing/ , Python, 27 linesnormalization/ map_channel_name_to_norm alization.py - scripts/
bids/ , Shell, 38 linespvs_predict_T1w_BIDS.sh - scripts/
bids/ , Shell, 38 linespvs_predict_T2w_BIDS.sh - scripts/
pvs_predict_T1w.sh , Shell, 19 lines - scripts/
pvs_predict_T1wFLAIR.sh , Shell, 19 lines, 1 match - scripts/
pvs_predict_T2w.sh , Shell, 18 lines - scripts/
pvs_predict_T2wFLAIR.sh , Shell, 19 lines - scripts/
pvshp_predict_T1w.sh , Shell, 19 lines - scripts/
pvsmb_predict_T1w.sh , Shell, 19 lines - LICENSE, License, 21 lines
- README.md, Text, 114 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 13 scripts, each with its path and the digest of its content;
- 1 match between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data availability
Our nnU-Net models are open-source and available at: [https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 29 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 8 authors, 10 keywords, 1 funder, 57 references.
Cite
This paper
Pham, W., Jarema, A., Rim, D., Chen, Z., Khlif, M., Macefield, V., Henderson, L., & Brodtmann, A. (2026). A comprehensive framework for automated segmentation of perivascular spaces in brain MRI with the nnU-Net. Neuroradiology, 68(6), 1465-1483. https://
BibTeX
@article{pham2026compreh
author = {Pham, William and Jarema, Alexander and Rim, Donggyu and Chen, Zhibin and Khlif, Mohamed and Macefield, Vaughan and Henderson, Luke and Brodtmann, Amy},
title = {{A comprehensive framework for automated segmentation of perivascular spaces in brain MRI with the nnU-Net}},
journal = {Neuroradiology},
year = {2026},
month = apr,
volume = {68},
number = {6},
pages = {1465--1483},
publisher = {Springer Science+Business Media},
issn = {0028-3940},
doi = {10.1007/
url = {https://
pmid = {41995815},
pmcid = {PMC13323141}
}
RIS
TY - JOUR
AU - Pham, William
AU - Jarema, Alexander
AU - Rim, Donggyu
AU - Chen, Zhibin
AU - Khlif, Mohamed
AU - Macefield, Vaughan
AU - Henderson, Luke
AU - Brodtmann, Amy
TI - A comprehensive framework for automated segmentation of perivascular spaces in brain MRI with the nnU-Net
T2 - Neuroradiology
J2 - Neuroradiology
PY - 2026
DA - 2026/
VL - 68
IS - 6
SP - 1465
EP - 1483
SN - 0028-3940
PB - Springer Science+Business Media
DO - 10.1007/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1007/
"type": "article-journal",
"title": "A comprehensive framework for automated segmentation of perivascular spaces in brain MRI with the nnU-Net",
"container-title": "Neuroradiology",
"author": [
{
"family": "Pham",
"given": "William"
},
{
"family": "Jarema",
"given": "Alexander"
},
{
"family": "Rim",
"given": "Donggyu"
},
{
"family": "Chen",
"given": "Zhibin"
},
{
"family": "Khlif",
"given": "Mohamed"
},
{
"family": "Macefield",
"given": "Vaughan"
},
{
"family": "Henderson",
"given": "Luke"
},
{
"family": "Brodtmann",
"given": "Amy"
}
],
"container-title-short":
"volume": "68",
"issue": "6",
"page": "1465-1483",
"DOI": "10.1007/
"PMID": "41995815",
"PMCID": "PMC13323141",
"ISSN": "0028-3940",
"publisher": "Springer Science+Business Media",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
17
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1038/s41598-026-54446-8 [code]
- Deep learning-based Desikan-Killiany parcellation of the brain using diffusion MRI.Journal: Scientific reportsIn common: nnU-Net, DIPY, scikit-image, 2 other tools, methods / tools, structural MRI / diffusion, 6 references
- [2] doi:10.1038/s41598-026-55397-w [code]
- Fast surface reconstruction of human brain MRI: benchmarking deep-learning based morphometry tools.Journal: Scientific reportsIn common: SimpleITK, scikit-image, SciPy, 1 other tool, methods / tools, structural MRI / diffusion, 5 references
- [3] doi:10.1002/hipo.70124 [code]
- Association Between Anterior Hippocampal Gyrification and Episodic Memory Performance in Neurotypical Young Adults.Journal: HippocampusIn common: nnU-Net, SimpleITK, scikit-image, 2 other tools, structural MRI / diffusion, 3 references
- [4] doi:10.3390/jimaging12070276 [code]
- Hyperelastic Regularization for Near-Diffeomorphic Transformer-Based Brain MRI Registration.Journal: Journal of imagingIn common: nnU-Net, SimpleITK, scikit-image, 2 other tools, methods / tools, structural MRI / diffusion, 2 references
- [5] doi:10.3389/fnins.2026.1870124 [code]
- An end-to-end pipeline for automated fetal brain segmentation and biometry from 3D SSFP MRI.Journal: Frontiers in neuroscienceIn common: nnU-Net, SimpleITK, scikit-image, 2 other tools, structural MRI / diffusion, 2 references
- [6] doi:10.3390/diagnostics16172861 [code]
- Microstructural Changes in the Corpus Callosum in Different Forms of Sporadic Age-Related Cerebral Small Vessel Disease.Journal: Diagnostics (Basel, Switzerland)In common: DIPY, scikit-image, SciPy, 1 other tool, structural MRI / diffusion, 3 references
- [7] doi:10.1016/j.adro.2026.102092 [code]
- Effect of Anatomic Contextual Information on the Performance of a Convolutional Neural Network Tasked With Brain Metastasis Detection.Journal: Advances in radiation oncologyIn common: nnU-Net, SimpleITK, scikit-image, 2 other tools, 2 references
- [8] doi:10.21037/qims-2026-0792 [code]
- An nnU-Net-based framework with adaptive feature representation for 3D brain tumor segmentation.Journal: Quantitative imaging in medicine and surgeryIn common: nnU-Net, SimpleITK, scikit-image, 2 other tools, methods / tools, structural MRI / diffusion, 1 reference
- [9] doi:10.3389/fmed.2026.1875760 [code]
- Adaptive multi-stage domain unlearning for white-matter lesion segmentation.Journal: Frontiers in medicineIn common: nnU-Net, SimpleITK, scikit-image, 2 other tools, methods / tools, structural MRI / diffusion, 1 reference
- [10] doi:10.1038/s43856-026-01614-6 [code]
- Simulation-based inference at the theoretical limit for fast, robust microstructural MRI with minimal diffusion data.Journal: Communications medicineIn common: DIPY, scikit-image, SciPy, 1 other tool, structural MRI / diffusion, 3 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 13 scripts, and 1 match between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:edf8e1a4a83dbe31…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
