mschallenge-skill

Orchestrates validation, lesion analysis, and QC for the Longitudinal MS Lesion Segmentation Challenge dataset.

89|5|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/CUHK-AIM-Group/NeuroDiscovery --skill mschallenge-skill-cuhk-aim-group
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mschallenge-skill
Source: https://github.com/CUHK-AIM-Group/NeuroDiscovery/tree/main/skills/mschallenge-skill
Command: npx skills add https://github.com/CUHK-AIM-Group/NeuroDiscovery --skill mschallenge-skill-cuhk-aim-group

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, nibabel, scipy, and includes scripts (resource) components.

What problem does it solve? Processing the ISBI 2015 Longitudinal MS Lesion Segmentation Challenge dataset requires coordinating multimodal MRI validation, lesion quantification, longitudinal change tracking, and quality control across subjects and timepoints, which is error-prone when done manually. ## Core Features & Use Cases - Data Validation: Verify MS Challenge directory structure, modality completeness (T1w, T2w, FLAIR, PD), and ground truth mask presence with a compliance report. - Lesion Analysis: Compute lesion volume, count, and voxel statistics from binary NIfTI masks into CSV outputs. - Longitudinal Tracking: Detect new, resolved, and stable lesion voxels across subject timepoints. - QC Summaries: Generate per-subject quality control reports and exclusion lists. - Use Case: A researcher downloads the MS Challenge training data and asks the agent to validate the dataset, analyze lesion burden per subject, and produce a QC exclusion list before running segmentation benchmarks. ## Quick Start Ask the agent to validate the MS Challenge dataset at a given path and run the full lesion analysis and QC pipeline on it.

Frequently Asked Questions about mschallenge-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate MS Lesion Challenge data structure in Python?

Run the validate_mschallenge.py script with --input pointing to the dataset root and --output for the CSV report. It checks subject directories, timepoint folders, modality completeness for T1, T2, FLAIR, and PD, and ground truth lesion mask presence.

How to compute lesion volume from NIfTI masks?

Load the binary mask with nibabel, count non-zero voxels, and multiply by the voxel volume from the header zooms to get volume in cubic millimeters. The analyze_lesions.py script automates this and also counts connected lesion components using scipy.ndimage.label.

Does this skill work with MS Challenge test data without ground truth?

Yes, pass the --no-ground-truth flag to the validation and QC scripts to skip lesion mask checks. This is intended for the 14 test subjects whose ground truth is hidden by the challenge organizers.

What Python libraries are needed for MS lesion analysis?

The scripts require numpy and nibabel for NIfTI loading and array operations, with scipy as an optional dependency for connected-component lesion counting. Without scipy, the analysis falls back to a simpler lesion presence count.

What are the limitations of longitudinal lesion change tracking?

The longitudinal script compares binary masks voxel-wise between consecutive timepoints to classify new, resolved, and stable lesion voxels. Enlarged lesion detection is not implemented because it requires connected-component analysis across registered timepoints.