CNS Open Data
Latest UpdatesOpen DatasetsClinical TrialsResearch GuidesTrend ReportsGlossaryData SourcesAbout
CNS Open Data— Open Science Portal for Central Nervous System Research|Research Guides|Trend Reports|Glossary|Ranking|Open Datasets|About|Privacy Policy
AlzforumOpenNeuroDANDI ArchiveAgora (AMP-AD)
Back to Research Playbooks & Guides
Modality & Pipeline TutorialMultiple SclerosisMRI

Advanced MS Neuroimaging Pipeline: Automated Lesion Segmentation, Paramagnetic Rim Lesions (PRLs) & Spinal Cord Atrophy Quantification

End-to-end BIDS neuroimaging workflow for 3D-FLAIR/T1w lesion volumetry, QSM/SWI chronic active rim detection, Central Vein Sign (CVS), and cervical cord cross-sectional area.

CNS Open Data Neuroimaging & MS Biomarker TeamUpdated: 2026-10-1714 min read
Executive Summary

With the 2024 revisions to the McDonald Diagnostic Criteria and the shift toward targeting smoldering neurodegeneration, Multiple Sclerosis neuroimaging has evolved far beyond simple T2 lesion counting. Modern computational pipelines integrate isotropic 3D-FLAIR and T1w MP2RAGE with T2* phase / Quantitative Susceptibility Mapping (QSM) and cervical spinal cord MRI. This guide provides a reproducible engineering playbook for automated white/cortical lesion segmentation (FreeSurfer SAMSEG / LST / nnU-Net), Paramagnetic Rim Lesion (PRL) and Central Vein Sign (CVS) quantification, re-baselined brain atrophy modeling, and Spinal Cord Toolbox (SCT) cross-sectional area analysis.

Table of Contents

  1. 01.1. From Acute Focal Lesions to Smoldering PRLs, SELs, and the Central Vein Sign
  2. 02.2. Quantifying Cervical Spinal Cord Atrophy & Tract Damage with SCT
  3. 03.Reproducible Python Starter Code
  4. 04.Governance & Reproducibility Checklist
SECTION 01

1. From Acute Focal Lesions to Smoldering PRLs, SELs, and the Central Vein Sign

In clinical trials and open neuroimaging cohorts, MRI markers are stratified into two biological axes: (1) Acute focal inflammatory activity, quantified by Gadolinium-enhancing (Gd+) T1 lesions and new or enlarging hyperintense T2/FLAIR lesions; and (2) Chronic smoldering compartment inflammation, captured by Paramagnetic Rim Lesions (PRLs on T2* phase / QSM), Slowly Expanding Lesions (SELs computed via longitudinal Jacobian determinant warps between baseline and follow-up T1w/T2w scans), and subpial/leukocortical demyelination on 7T MP2RAGE or DIR (Double Inversion Recovery). Additionally, the Central Vein Sign (CVS on FLAIR* fusion) provides >90% diagnostic specificity for perivenular MS demyelination versus small-vessel ischemic hyperintensities.
Key Practical Takeaways
  • Co-register isotropic 3D-FLAIR (1 mmÂł) and 3D-T1w before running automated lesion segmentation (FreeSurfer SAMSEG, LST-AI, or MICCAI MSSEG-2 nnU-Net models).
  • Perform 'lesion filling' on T1w anatomical volumes prior to FreeSurfer cortical thickness or SIENA brain atrophy estimation to prevent hypointense black holes from skewing gray-white boundary placement.
  • Apply a 're-baseline' MRI scan 3–6 months after initiating anti-inflammatory DMTs to separate steroid/anti-edema pseudoatrophy from true neuroaxonal volume loss.
SECTION 02

2. Quantifying Cervical Spinal Cord Atrophy & Tract Damage with SCT

Because pyramidal and sensory tracts are densely packed within the spinal cord, cervical cord pathology correlates far more strongly with Kurtzke EDSS physical disability than supratentorial brain white matter lesion load (the 'clinico-radiological paradox'). The open-source Spinal Cord Toolbox (SCT) automates spinal cord centerline detection (sct_deepseg_sc), vertebral level labeling (C2–C3), PAM50 template registration, and gray/white matter cross-sectional area (CSA) computation from BIDS-formatted spinal or whole-brain 3D-T1w scans covering the upper cervical region.

Python Example: Longitudinal 3D MS Lesion Connected-Component Labeling & Volume Change (mmÂł) with NiBabel & SciPy

Standard Python template ready for integration into local Jupyter notebooks or automated pipelines.

import nibabel as nib
import numpy as np
from scipy.ndimage import label

def quantify_longitudinal_ms_lesions(baseline_mask_path: str, followup_mask_path: str, min_cluster_voxels: int = 5):
    """
    Quantify total T2/FLAIR lesion volume (mL) and count newly formed 3D lesion clusters
    between baseline and follow-up BIDS derivative masks.
    """
    nii_base = nib.load(baseline_mask_path)
    nii_fup = nib.load(followup_mask_path)
    
    # Calculate single-voxel volume in mm^3 from NIfTI header zooms
    voxel_vol_mm3 = float(np.prod(nii_base.header.get_zooms()[:3]))
    
    mask_base = nii_base.get_fdata() > 0.5
    mask_fup = nii_fup.get_fdata() > 0.5
    
    # Identify newly appearing lesion voxels not present at baseline
    diff_new = np.logical_and(mask_fup, np.logical_not(mask_base))
    labeled_clusters, num_raw_clusters = label(diff_new)
    
    # Filter out noise speckles smaller than min_cluster_voxels (e.g., < 5 mm^3 / 3 mm diameter rule)
    cluster_sizes = np.bincount(labeled_clusters.ravel())[1:]
    valid_new_lesions = int(np.sum(cluster_sizes >= min_cluster_voxels))
    
    base_vol_ml = (np.sum(mask_base) * voxel_vol_mm3) / 1000.0
    fup_vol_ml = (np.sum(mask_fup) * voxel_vol_mm3) / 1000.0
    print(f"Baseline T2LV: {base_vol_ml:.2f} mL | Follow-up T2LV: {fup_vol_ml:.2f} mL | New Lesions: {valid_new_lesions}")
    return {"baseline_ml": base_vol_ml, "followup_ml": fup_vol_ml, "new_lesion_count": valid_new_lesions}

Research Governance & Reproducibility Checklist

  • Enforce a minimum lesion size threshold (≥3 mm in long axis or ≥5–10 contiguous isotropic voxels) to prevent false-positive speckle counts.
  • Perform white-matter lesion filling before running cortical surface reconstruction or thalamic volume estimation.
  • Adjust cervical spinal cord cross-sectional area (C2–C3 CSA) for intracranial volume or spinal canal area, age, and sex.

Key Biomarkers & Standards Referenced in This Guide

View Full Glossary
PRL
Paramagnetic Rim Lesions (Chronic Active Smoldering MS Lesions)

Chronic white matter MS lesions bordered by a dense rim of iron-laden, proinflammatory activated microglia/macrophages, visible on T2* phase MRI, SWI, and QSM.

Read entry
CVS
Central Vein Sign (Perivenular Demyelination MRI Biomarker)

MRI finding showing a small thin vein running centrally through a white matter hyperintense lesion on T2*-weighted / FLAIR* imaging, reflecting the perivenular pathology of Multiple Sclerosis.

Read entry
McDonald Criteria
McDonald Diagnostic Criteria for Multiple Sclerosis (2017 / 2024 Revisions)

International consensus diagnostic framework integrating clinical attacks, MRI topography (Dissemination in Space/Time, optic nerve, CVS, PRLs), and CSF oligoclonal bands to diagnose MS.

Read entry
DTI
Diffusion Tensor Imaging & Tractography (dMRI / NODDI)

MRI technique measuring anisotropic water diffusion along white matter tracts to quantify axonal integrity, demyelination, and structural connectomes.

Read entry
EDSS
Kurtzke Expanded Disability Status Scale

Standard 0.0–10.0 ordinal clinical rating scale quantifying neurological disability across 8 functional systems and ambulation capacity in Multiple Sclerosis.

Read entry
PIRA
Progression Independent of Relapse Activity

Irreversible accumulation of neurological disability occurring outside of clinical relapses, driven by diffuse smoldering neuroinflammation, chronic active lesions, and neuroaxonal loss in MS.

Read entry
OCT
Optical Coherence Tomography (Retinal pRNFL & GCIPL Neuroaxonal Thickness)

High-resolution near-infrared interferometric imaging of unmyelinated retinal axons (pRNFL) and ganglion cell neurons (GCIPL), serving as a non-invasive 'window into CNS neurodegeneration' in MS.

Read entry
BIDS
Brain Imaging Data Structure (BIDS Specification)

Community ISO-aligned standard for organizing and describing neuroimaging (MRI, fMRI, dMRI, PET) and neurophysiological (EEG, MEG, iEEG) datasets.

Read entry

Live Open Datasets & Papers Matching This Guide

Explore all matching resources
OpenNeuroAlzheimer's & DementiaOpen Dataset
Commercial Use Allowed - CC0 Public Domain

OpenNeuro ds004504: Multimodal MRI & PET Repository for Early Alzheimer’s Disease and Mild Cognitive Impairment (BIDS)

An exceptional multimodal neuroimaging repository providing 3T structural MRI, resting-state fMRI, and [18F]Florbetapir Amyloid-PET scans from 180 subjects formatted strictly to BIDS standard. This open dataset serves as a benchmark resource for deep learning and diagnostic biomarker discovery in early Alzheimer's and MCI.

AI Summary
fMRIT1w MRIdMRIPET#BIDS#fMRI#Structural MRI#Diffusion MRISample Size: 180 Subjects (450+ Sessions)
May 10, 2026
Neuroimaging Open Data Consortium
Visit SourceDOIData
View Details
OpenNeuroParkinson's & MovementOpen Dataset
Commercial Use Allowed - CC0 Public Domain

OpenNeuro ds003505: Dopaminergic Striato-Cortical Circuit Connectivity in Parkinson’s Disease during Motor Execution

This open-access 3T fMRI dataset evaluates striato-cortical circuit connectivity across 72 Parkinsonian patients and controls under levodopa ON vs. OFF states. Complete with behavioral logs, it offers foundational data for modeling dopaminergic network dynamics in motor execution.

AI Summary
Task fMRIResting fMRIBehavioral logs#BIDS#Task fMRI#Levodopa#Basal GangliaSample Size: 72 Subjects
Mar 12, 2026
Brain Connectivity Initiative
Visit SourceDOIData
View Details
MS Data AllianceMultiple SclerosisDatabase / Portal
Academic / Non-Commercial - Open Access Standard (CC-BY 4.0)

MSDA Core Dataset (CDS): Standardized Global Real-World Data Harmonization Framework for Multiple Sclerosis

The MSDA Core Dataset (CDS) establishes a 44-variable international harmonization schema mapped to the OMOP Common Data Model, enabling privacy-preserving federated analytics across global Multiple Sclerosis registries.

AI Summary
OMOP CDMClinical MetricsEDSS DisabilityBrain MRI LesionsDMT Treatment History#MSDA#Multiple Sclerosis#Core Dataset#OMOP CDMSample Size: 44 Standardized Core Variables
Aug 12, 2026
Peleman T +3
Visit SourceDOI
View Details
OpenNeuroBroad CNS / NeuroimagingOpen Dataset
Commercial Use Allowed - CC0 Public Domain

OpenNeuro ds008898: sample dataset for odor- and speech-evoked fMRI experiment at 7 Tesla

BIDS neuroimaging dataset containing MRI scans from 1 Subjects. Freely available for computational neuroscience.

Abstract / Summary
MRI#OpenNeuro#BIDS#MRISample Size: 1 Subjects
Oct 5, 2026
Toshiki Okumura +2
Visit SourceDOIData
View Details
OpenNeuroBroad CNS / NeuroimagingOpen Dataset
Commercial Use Allowed - CC0 Public Domain

OpenNeuro ds008948: Grid-like coding of affective space

BIDS neuroimaging dataset containing MRI scans from 19 Subjects. Freely available for computational neuroscience.

Abstract / Summary
MRI#OpenNeuro#BIDS#MRISample Size: 19 Subjects
Oct 16, 2026
Yumeng Ma +1
Visit SourceDOIData
View Details
bioRxiv (Neuroscience)Broad CNS / NeuroimagingPreprint
Academic / Non-Commercial - cc_by_nc_nd

Aligning transformer circuit mechanisms to neural representations in relational reasoning

Relational reasoning, the capacity to understand how elements relate to one another, is a defining feature of human intelligence, yet its computational basis remains unclear. Here, we combined human neuroimaging (7T fMRI) with artificial neural network modeling to identify circuit-level analogues of...

Abstract / Summary
Preprint ArticleOpen Science#bioRxiv Preprint#neuroscience
Oct 7, 2026
Hearne, L. J. +3
Visit SourceDOIData
View Details

More Research Playbooks & Tutorials

Disease Research Playbook

Alzheimer's Disease (AD) Open Data Guide: Integrating Neuroimaging (BIDS), Plasma Biomarkers & Multi-Omics

12 min read
Disease Research Playbook

Parkinson's Disease (PD) Open Data Guide: Alpha-Synuclein Assays, Basal Ganglia LFP & Cohort Harmonization

11 min read
Disease Research Playbook

ALS & Motor Neuron Disease Open Data Guide: TDP-43 Cryptic Exons, NfL Trajectories & ENCALS Models

11 min read