/ Модель

Характеристики

Лицензия
CC BY-NC-ND 4.0
Опубликована
6 авг 2026

Brain2Vec

Эмбеддинги изображенийИзображение → embedding3 профессии

Brain2Vec извлекает эмбеддинги из структурной МРТ мозга для построения моделей прогноза возраста и ИМТ, а также классификации заболеваний.

22скачиваний за 30 дней12лайковвеса обновлены3 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Brain2Vec — модель представлений для структурной МРТ головного мозга, разработанная авторами проекта Brain2Vec и предварительно обученная без учителя на 74 425 T1-взвешенных снимках консорциума iSTAGING. Это 3D foundation-модель на основе Vision Transformer, которая кодирует снимки в 768-мерные эмбеддинги для последующего обучения классификаторов и регрессионных моделей.

Модель предназначена для извлечения признаков из структурной МРТ, а также для дообучения под задачи классификации заболеваний и оценки возраста мозга. Авторы сообщают о высоких результатах на BrainFMBench для прогнозирования возраста мозга и ИМТ, а также классификации пола. Для локального запуска нужны предварительная обработка снимков с удалением черепа и линейной регистрацией, доступ к весам и специализированная инфраструктура; сервис NiChart позволяет работать со снимками без локальной установки и GPU.

Доступ к весам предоставляется по запросу. Лицензия CC-BY-NC-ND-4.0 запрещает коммерческое использование и распространение производных материалов на условиях лицензии; перед применением следует учитывать требования лицензии и правила доступа авторов.

Сценарии применения

  • извлечение признаков из T1-взвешенных МРТ головного мозга
  • подготовка эмбеддингов для классификатора заболеваний мозга
  • оценка возраста мозга по структурной МРТ
  • прогнозирование ИМТ по структурной МРТ
  • дообучение энкодера для классификации пола по МРТ

Ограничения

Для локального инференса требуются удаление черепа и линейная регистрация; авторы предостерегают от запуска на исходных необработанных снимках. Доступ к весам ограничен, а лицензия запрещает коммерческое использование.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Brain2Vec: A Self-Supervised 3D Foundation Model for Structural Brain MRI

This is the hugging face model card for Brain2Vec, a 3D foundation model pre-trained on 74,425 T1-weighted brain MRI scans from the iSTAGING consortium.
If you are looking for the preprint, it is located here: Brain2Vec-preprint.
If you are looking for the github repo, it is located here: Brain2Vec-repo.

We are happy to announce that Brain2Vec achieved top spots on BrainFMBench:

  • #1 Ranked foundation model
  • 🥇 Brain age and BMI prediction on NKI
  • 🥈 Brain age and BMI prediction on HBN, Sex classification on NKI

[!IMPORTANT] To use our model locally, you first need to apply for access to our hugging face model card. We follow a 2-step preprocessing with skull-stripping and linear registration, make sure to follow the steps here. Don't perform inference on raw images locally. You can always use Brain2Vec on NiChart where you can upload your raw T1w MRI scans via cloud and obtain Brain2Vec scores without preprocessing steps, installation or specialized infastructure (GPU).

Gaining access

We suggest to either apply for access on huggingface and use our model directly (i.e. for fine-tuning, ablation studies, etc.) or use our model on NiChart for simpler tasks. We want our model to help the neuroimaging community (researchers, students, etc.), in order to gain access, please mention your university/company, PI and the purpose of usage. If 1) you are not affiliated with a research group or at least with a professor (as an undergrad/masters/doctoral student) and 2) won't use your academic/professional email then you will be rejected. You can always use Brain2Vec without access to weights on NiChart

Once you gain access, you can infer using our CLI that automatically install the weights using huggingface hub.

You can install Brain2Vec using pip from our GitHub codebase:

git clone https://github.com/CBICA/Brain2Vec
cd Brain2Vec/
pip install -e .

Inference

One way of using Brain2Vec is for feature extraction. We can use the Brain2Vec frozen encoder to produce 768-dimensional embeddings from T1 scans. This compact numerical representation serves as input for lightweight downstream classifiers, such as SVM or MLP models.

You can also perform brain age prediction with our finetuned ViT-BA.

python inference.py brain2vec_inference --model brain2vec_base \
                                    --img_size 128 \
                                    --in_dir "path to directory with nifti scans" \
                                    --out_json "name of json file with output embeddings" \
                                    --device cuda

python inference.py vit_inference --model vit_base \
                                --num_classes 1 \
                                --img_size 128 \
                                --mode regression \
                                --in_dir "path to directory with nifti scans" \
                                --out_csv "output CSV file with predictions" \
                                --device cuda

Fine-tuning

One way of using Brain2Vec is for encoder fine-tuning. The pre-trained encoder weights can serve as initialization for Vision Transformer (ViT) models applied to downstream tasks like disease classification or brain age regression.

The only thing you need is a csv with MRID and target columns. We provide all the code needed to pre-train/fine-tune on SLURM environments on github.

srun Brain2Vec vit_finetune --img_size 128 \
                         --mode binary \
                         --model vit_base \
                         --label_dict "csv with MRID and target columns" \
                         --target "target column" \
                         --pretrain "pre-trained model weights (.pth)" \
                         --in_dir "input_dir/"
                         --batch_size 32 \
                         --out_dir "output_dir/" \
                         --model_name "model name (.pth)" \
                         --device cuda \
                         --lr 0.001 \
                         --weight_decay 0.05 \
                         --optimizer AdamW \
                         --epochs 200 \
                         --patience 20 \
                         --distributed \
                         --verbose

Pre-training

We trained with two A100 GPUs for 500 epochs with a patience of 20 epochs. For more training details please read the Brain2Vec paper. Using our code, you can parallelize your training on SLURM cluster environments. Other environments are supported but not tested, so bugs may appear.

srun Brain2Vec brain2vec_pretrain --img_size 128 \
                         --masking_type random \
                         --mask_ratio 0.75 \
                         --model brain2vec_base \
                         --in_dir "input_dir/"
                         --batch_size 32 \
                         --out_dir "output_dir/" \
                         --model_name "model name(.pth)" \
                         --device cuda \
                         --lr 0.001 \
                         --weight_decay 0.05 \
                         --optimizer AdamW \
                         --epochs 500 \
                         --patience 20 \
                         --distributed \
                         --verbose \

Usage on NiChart

You can use Brain2Vec -- for both feature extraction and disease classification/brain age regression -- on NiChart by simply dragging and dropping your NIfTI files. No GPU or installation required.

Citation

If you use our model, make sure to cite our work:

@misc{maggioros2026brain2vecselfsupervised3dfoundation,
      title={Brain2Vec: A Self-Supervised 3D Foundation Model for Structural Brain MRI}, 
      author={Spiros Maggioros and Guray Erus and Gareth Harman and George Aidinis and Alexander Getka and Aristeidis Sotiras and Christos Davatzikos},
      year={2026},
      eprint={2610.28411},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2610.28411}, 
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

Доступ к модели ограничен автором; у платформы нет доступа к весам.

Ревизия весов
e53f9a6

0 моделей