A comprehensive framework for automated segmentation of perivascular spaces in brain MRI with the nnU-Net.
One block of code here has a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 1 match · it ties a paragraph to a whole file without 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 · block
oscr:b:F8XJJ4K3GPQMD-X· Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: 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.1162/imag.a.960 [code]
- GOUHFI: A novel contrast- and resolution-agnostic segmentation tool for ultra-high-field MRI.Journal: Imaging neuroscience (Cambridge, Mass.)In common: nnU-Net, SimpleITK, scikit-image, 2 other tools, methods / tools, structural MRI / diffusion, 5 references
- [2] doi:10.1038/s41586-025-09708-2 [code]
- A probabilistic histological atlas of the human brain for MRI segmentation.Journal: NatureIn common: nnU-Net, DIPY, SimpleITK, 3 other tools, methods / tools, structural MRI / diffusion, 4 references
- [3] 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
- [4] doi:10.1093/braincomms/fcaf200 [code]
- Brain glymphatic fluid mapping in Alzheimer's disease: a human MRI and PET study.Journal: Brain communicationsIn common: nnU-Net, SciPy, NumPy, structural MRI / diffusion, 7 references
- [5] doi:10.1016/j.cccb.2025.100396 [code]
- Cerebral small vessel disease lesion segmentation methods: A systematic review.Journal: Cerebral circulation - cognition and behaviorIn common: SimpleITK, scikit-image, SciPy, 1 other tool, structural MRI / diffusion, 4 references
- [6] doi:10.1038/s41467-024-53550-5 [code]
- Self-supervised learning for accurately modelling hierarchical evolutionary patterns of cerebrovasculature.Journal: Nature communicationsIn common: nnU-Net, SimpleITK, scikit-image, 2 other tools, 4 references
- [7] doi:10.1038/s41598-021-04287-4 [code]
- Automated grading of enlarged perivascular spaces in clinical imaging data of an acute stroke cohort using an interpretable, 3D deep learning framework.Journal: Scientific reportsIn common: NumPy, structural MRI / diffusion, 6 references
- [8] doi:10.1002/hbm.70462 [code]
- segcsvd&
lt;sub& gt;PVS& lt;/ sub& gt;: A Convolutional Neural Network-Based Tool for Quantification of Enlarged Perivascular Spaces (PVS) on T& lt;sub& gt;1& lt;/ sub& gt;-Weighted Images. Journal: Human brain mappingIn common: structural MRI / diffusion, 7 references - [9] doi:10.1038/s43856-024-00452-8 [code]
- Multi-scale V-net architecture with deep feature CRF layers for brain extraction.Journal: Communications medicineIn common: DIPY, scikit-image, SciPy, 1 other tool, 6 references
- [10] doi:10.1172/jci.insight.170270 [code]
- Continuous positive airway pressure increases CSF flow and glymphatic transport.Journal: JCI insightIn common: DIPY, SciPy, NumPy, 6 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:16914b9876a4ad61…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1007/s00234-026-03993-y)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1007/s00234-026-03993-y.svg
:target: https://openscicode.org/badge/doi/10.1007/s00234-026-03993-y
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1007/s00234-026-03993-y"><img src="https://openscicode.org/badge/doi/10.1007/s00234-026-03993-y.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
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: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
