spacenet

Classify patient versus control groups from voxel-wise neuroimaging maps using sparse SpaceNet models.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It provides model-level guidance for running classical, non-deep-learning disease classification on neuroimaging data, producing sparse and interpretable voxel-wise weight maps instead of opaque deep learning predictions. ## Core Features & Use Cases - Case-Control Classification: Train supervised SpaceNet models to discriminate patient versus control groups from aligned subject-level voxel maps. - Interpretable Outputs: Export predictions, decision scores, cross-validation metrics (accuracy, AUC, sensitivity, specificity), and coefficient maps highlighting discriminative brain regions. - Delegated Workflow: Coordinates with fmri-skill and smri-skill for preprocessing and nilearn-tool for concrete SpaceNet fitting. - Use Case: Given a moderate-sized cohort of aligned fMRI or sMRI images with diagnosis labels, fit a sparse SpaceNet classifier and visualize which brain regions drive the patient/control distinction. ## Quick Start Ask the agent to run a SpaceNet disease classification on your prepared voxel maps and labels, delegating preprocessing to fmri-skill or smri-skill and fitting to nilearn-tool.

Frequently Asked Questions about spacenet

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

FAQPage Schema
How do I run SpaceNet disease classification on neuroimaging data?

Prepare aligned subject-level voxel maps and a labels file, then delegate fitting to nilearn-tool's spacenet_classifier_reference.py script with inputs for image list, labels, target column, mask, and output directory. Preprocessing should be delegated to fmri-skill or smri-skill first.

When should I use SpaceNet instead of a deep learning model?

Use SpaceNet when the dataset is moderate in size, interpretability matters, and you want sparse voxel-wise weight maps showing discriminative regions. It suits case-control prediction and cross-validated disease discrimination rather than large-scale phenotype prediction.

What inputs does SpaceNet classification require?

It requires subject-level labels (patient/control) and aligned neuroimaging images in a common space. Optional inputs include covariates such as age, sex, and site, a train/validation/test split file, a group mask, and hyperparameters like C, l1 ratio, and CV folds.

What outputs does a SpaceNet classifier produce?

It produces predicted labels and decision scores, cross-validation metrics such as accuracy, AUC, sensitivity, and specificity, plus a fitted model artifact and a coefficient map for interpreting discriminative brain regions.

What are the limitations of SpaceNet for disease classification?

SpaceNet requires well-aligned images in a common space and is computationally heavier than ROI-based methods. Site effects and confounds can dominate results if uncontrolled, and small samples can yield optimistic estimates without rigorous split strategies.