catalog / Healthcare / Nilearn — Machine Learning for NeuroImaging
PipelineHealthcareFree

Nilearn — Machine Learning for NeuroImaging

Python library for ML on brain imaging data: fMRI decoding, connectivity analysis, surface plotting.

Installations43k
⟳ upstream 0.14.0 · updated 26d ago
Dépôt source
Grade A · 95/100 · SafeSecurity assessment
No compromise signals27capabilities surfaced1known CVE9of 20 OWASP controls clear
External endpoints declaredExternal endpoints declaredExternal endpoints declaredExternal endpoints declared
scanned 18d agoosv · gitleaks · opengrep · picklescan + heuristicsfull breakdown in the Security tab ↓

Nilearn — Machine Learning for NeuroImaging

Nilearn is a Python library for machine learning on neuroimaging data (fMRI, MRI). It bridges scikit-learn with nibabel/NifTI data formats, enabling brain decoding, functional connectivity analysis, and biomarker extraction without low-level data wrangling.

Key features

  • Mass-univariate GLM for fMRI task analysis (SPM-compatible)
  • Functional connectivity matrices and ICA-based parcellations
  • 30+ built-in brain atlases (AAL, Destrieux, Schaefer, DiFuMo)
  • High-quality 3D/4D brain plot functions (glass brain, stat maps, surfaces)
  • Compatible with BIDS-formatted datasets via niworkflows

Quick start

pip install nilearn
from nilearn import datasets, plotting
from nilearn.connectome import ConnectivityMeasure

# Load example resting-state data
data = datasets.fetch_development_fmri(n_subjects=5)
measure = ConnectivityMeasure(kind="correlation")
matrices = measure.fit_transform([img for img in data.func])
plotting.plot_matrix(matrices[0], colorbar=True)
plotting.show()
npx ai-supply add nilearn-neuroimaging-ml

Curated mirror of the open-source Nilearn (BSD-3-Clause). Get it from the source.

More from @ai-supply

View profile →
Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
1.0M
Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
892k
Connector
Meilisearch
Lightning-fast open-source search engine with typo-tolerance, semantic hybrid search, and sub-50ms response times.
811k
Eval
Weights & Biases (wandb)
ML experiment tracking and visualization — log metrics, hyperparameters, models, and media in real time.
784k