OSCR

A comprehensive framework for automated segmentation of perivascular spaces in brain MRI with the nnU-Net.

Code ↔ Paper

1 match between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

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. [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

  1. #!/bin/bash
  2. # nnUNetv2 for the segmentation of perivascular spaces in T1w with co-registered FLAIR MRI scans
  3. # Author: William Pham
  4. # Date: 2025-11-04
  5. # Description: This script runs a nnUNet to label perivascular spaces and white matter hyperintensities in T1w and FLAIR MRI scans.
  6. # Usage:
  7. # Modify the script to include the INPUT_DIR and OUTPUT_DIR arguments, then run script:
  8. # ./pvs_predict_T1wFLAIR.sh
  9. # Input directory containing raw T1w and registered FLAIR Nifti images for inference
  10. # T1w images should end with "_0000.nii.gz"
  11. # FLAIR images should end with "_0001.nii.gz"
  12. INPUT_DIR=""
  13. # Output directory where PVS masks and model predictions will be outputs
  14. OUTPUT_DIR=""
  15. 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

Authors: William Pham1, Alexander Jarema2, Donggyu Rim1, Zhibin Chen1, Mohamed Khlif1, Vaughan Macefield1,3, Luke Henderson4, Amy Brodtmann1
  1. Department of Neuroscience, Monash University,Melbourne, Australia
  2. Department of Radiology, Alfred Health,Melbourne, Australia
  3. School of Medicine, Western Sydney University,Sydney, Australia
  4. Department of Anatomy and Histology, The University of Sydney,Sydney, Australia
Institutions: Monash University (Australia); Alfred Health (Australia); Western Sydney University (Australia); The University of Sydney (Australia)
Journal: Neuroradiology, volume 68, issue 6, pages 1465-1483
Dates: received 8 October 2025; accepted 5 April 2026; published online 17 April 2026; in print 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1007/s00234-026-03993-y · PMID 41995815 · PMCID PMC13323141 · OpenAlex W4405030596
Open access: hybrid, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: structural MRI / diffusion (modality), methods / tools (subfield)
Methods: Connectivity, Machine learning, Preprocessing, fMRI & imaging, Smoothing, state filtering, decompositions, Statistics
Keywords: Perivascular spaces, nnU-Net, Deep learning, MRI, Virchow-Robin spaces, Convolutional neural networks, 3T, 7T, Segmentation, U-Net
Topic: Cerebrospinal fluid and hydrocephalus (Clinical Neurology, Medicine), according to OpenAlex
Funding: Monash University
Citations: cited by 4 papers (Europe PMC); 60 references in the paper

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/s00234-026-03993-y.

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

License: MIT
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Commit: dd7798d81617ec375450b7c350714c15f1e99639, 18 September 2026
Languages: Shell (8), Python (5)
Size: 17 files, 13 scripts
Software Heritage: not archived
Found in: “Data availability”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: nnU-Net (12 files), NumPy (3 files), scikit-image (2 files), SimpleITK (2 files), DIPY (1 file), SciPy (1 file)
Availability: 1 check, the latest on 29 September 2026: the link answers
  • 29 September 2026: the link answers
15 files

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://github.com/wpham17/nnUNet-Perivascular-Spaces](https://github.com/wpham17/nnUNet-Perivascular-Spaces).

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://doi.org/10.1007/s00234-026-03993-y

BibTeX

@article{pham2026comprehensive,
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/s00234-026-03993-y},
url = {https://doi.org/10.1007/s00234-026-03993-y},
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/04/17
VL - 68
IS - 6
SP - 1465
EP - 1483
SN - 0028-3940
PB - Springer Science+Business Media
DO - 10.1007/s00234-026-03993-y
UR - https://doi.org/10.1007/s00234-026-03993-y
LA - en
ER -

CSL-JSON

{
"id": "10.1007/s00234-026-03993-y",
"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": "Neuroradiology",
"volume": "68",
"issue": "6",
"page": "1465-1483",
"DOI": "10.1007/s00234-026-03993-y",
"PMID": "41995815",
"PMCID": "PMC13323141",
"ISSN": "0028-3940",
"publisher": "Springer Science+Business Media",
"URL": "https://doi.org/10.1007/s00234-026-03993-y",
"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: Nature
In 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 reports
In 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 communications
In 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 behavior
In 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 communications
In 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 reports
In common: NumPy, structural MRI / diffusion, 6 references
[8] doi:10.1002/hbm.70462 [code]
segcsvd<sub>PVS</sub>: A Convolutional Neural Network-Based Tool for Quantification of Enlarged Perivascular Spaces (PVS) on T<sub>1</sub>-Weighted Images.
Journal: Human brain mapping
In 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 medicine
In 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 insight
In 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.

Add the badge to the code's README

OSCR: the badge of this paper

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 -->
[![OSCR](https://openscicode.org/badge/doi/10.1007/s00234-026-03993-y.svg)](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:end
HTML
<!-- 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.