Skip to content

About

A living benchmark for structural brain MRI models, with reproducible frozen feature extraction on HPC and scoring through GitHub Actions.

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

0 stars

Watchers

0 watching

Forks

 
 

BrainFMBench

A living benchmark for structural brain MRI foundation models

Paper Leaderboard Docs Hugging Face Space Models Probes Submissions open Scoring


Every model runs as a frozen encoder on the same subjects from five Reproducible Brain Charts cohorts, and the same linear and random forest probes predict sex, age, BMI and mental health scores from its features. To add a model, open a pull request: see CONTRIBUTING.md. The leaderboard updates automatically.

Paper: MICCAI 2026 MedAGI workshop · Papers with Code · Code MIT, labels CC BY-NC-SA 4.0 (details)

BrainFMBench overview

Interactive version

Models: 3D-Neuro-SimCLR · AnatCL (Global) · AnatCL (Local) · BrainIAC · Dinov3D-neuro · Neuro-JEPA-B · Neuro-JEPA-L · NiChart-Brain2Vec · SwinBrain · un-CNN · FS aparc · FS Schaefer

Paper ready LaTeX table of every model: use in your paper

Full tables with every dataset, task and probe, plus model details: LEADERBOARD.md.

Leaderboard

See LEADERBOARD.md for the full table and the interactive site to switch between the linear and random forest probes and to check sensitivity to rigid versus affine registration. Scores come from probes on frozen features. The overview heatmap shows the held out test mean over 5 seeds, with the best model in each row boxed; the boxplots show 5 fold CV across 5 seeds as the box and the held out test results as points. Earlier versions stay browsable on the site; see CHANGELOG.md.

Releases are quarterly. New datasets, tasks and preprocessing options are batched into one release every three months; the next is planned for March 2027. New models do not wait for a release: they appear on the leaderboard as soon as their PR is merged. Suggestions for datasets, tasks or models are welcome as an issue or a PR.

Tasks & data

Models are evaluated on five datasets from the Reproducible Brain Charts (RBC) initiative:

  • NKI — Nathan Kline Institute Rockland Sample (958 subjects)
  • HBN — Healthy Brain Network (997 subjects)
  • PNC — Philadelphia Neurodevelopmental Cohort (1439 subjects)
  • BHRC — Brazil High Risk Cohort (542 subjects)
  • CCNP — Chinese Color Nest Project (178 subjects)

Labels are derived from RBC and distributed under CC BY-NC-SA 4.0; see labels/README.md.

Tasks: sex classification (balanced accuracy and AUC), age / BMI regression (mean absolute error and R²), the RBC harmonized p factor, internalizing and externalizing scores as regression (MAE and R²) on all five datasets, p factor zero vs nonzero classification (balanced accuracy and AUC) on PNC, and handedness, left vs right, as classification (balanced accuracy and AUC) on PNC, HBN and NKI. Inputs are offered with four preprocessing options: turboprep with rigid registration (default), turboprep with affine registration to MNI 1 mm, CAT12 gray matter maps, and the raw T1w for models with their own pipeline.

How it works

BrainFMBench splits the work between a computing cluster and GitHub actions:

  contributor PR                     Alliance cluster (Rorqual)        GitHub Actions
  ─────────────                      ────────────────────────         ─────────
  model.yaml                                                          validate PR
  extract.py        ── merge ──▶     extract features    ──▶       score features
  weights.txt                        (on preprocessed data)               │
                                                                       leaderboard
                                                                       updates
  • Feature extraction runs on the cluster, against preprocessed data. Only the resulting feature vectors come back.
  • Scoring runs in CI, publicly and reproducibly, so anyone can verify how the leaderboard numbers were produced.

Repository layout

models/<name>/          submitted models (model.yaml + features, or + extract.py)
labels/<DS>.csv         shared task labels per dataset (see labels/README.md)
eval/scorer.py          the downstream probing protocol
scripts/                scoring, leaderboard, and submission validation
cluster/                the async cluster runner (reap/sow) + sbatch template
example-submission/     a minimal, working submission you can copy
.github/workflows/      validation, scoring, and cluster-extraction workflows

Contributing a model

See CONTRIBUTING.md for the full guide. In short, open a PR adding models/<your-model>/ with:

  • model.yaml — metadata (name, preprocessing, embedding_dim, datasets, tasks)
  • extract.py — defines extract(input_dir, output_csv, weights_dir)
  • weights.txt — direct-download URL(s) to your checkpoint(s) (Hugging Face, Zenodo, etc.)
  • requirements.txt — optional; pinned dependencies. If present, extraction runs in an isolated virtualenv built from it rather than the shared cluster environment.

Copy example-submission/ as a starting point. A PR validation check runs your extract.py on a synthetic volume before anything touches the cluster. Because extraction runs on our allocation, only maintainer-reviewed submissions are executed.

Scoring protocol

For each model / dataset / task, at the full training size:

  • Box = 5-fold cross-validation across 5 seeds (25 values)
  • Points = held-out test result for the same 5 seeds
  • Two probes on the same splits: a RandomForest (200 trees, depth 6) and a linear probe (ridge for regression, L2 logistic regression for classification, regularization chosen by inner 5 fold CV on the training data)
  • Classification reports balanced accuracy and AUC; regression reports MAE and R²

Dependencies are pinned (scikit-learn 1.7.1, numpy 2.4.2, pandas 2.2.3) so the leaderboard is reproducible run to run.

Citation

If you use BrainFMBench, please cite:

@inproceedings{encin2026comparative,
  author    = {Encin, Arel and Gilmore, Asa and Rokem, Ariel and Dickie, Erin and Glatard, Tristan},
  title     = {A Comparative Evaluation of Structural {MRI} Foundation Models for Age, Sex, and Body-Mass Index Predictions},
  booktitle = {Medical Image Computing and Computer Assisted Intervention -- {MICCAI} 2026 Satellite Events. Foundation Models, World Models, and Multimodal Learning (I)},
  series    = {Lecture Notes in Computer Science},
  volume    = {17261},
  publisher = {Springer},
  year      = {2026},
  doi       = {10.1007/978-3-032-43331-2_13}
}

About

A living benchmark for structural brain MRI models, with reproducible frozen feature extraction on HPC and scoring through GitHub Actions.

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages