Downloads · 30 days
0
vandijklab/brainlm
brainlm is a machine learning model from vandijklab. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-nc-nd-4.0.
The pretrained model of Brain Language Model (BrainLM) aims to achieve a general understanding of brain dynamics through self-supervised masked prediction. It is introduced in this paper and its code is available at t…
Downloads · 30 days
0
Access
Public
Updated Apr 2, 2024
Repo size
12.6 GB
Likes
20
Public
Click a slice to open those files.
.pt6.3 GB · 66%
From the Hugging Face model README
The pretrained model of Brain Language Model (BrainLM) aims to achieve a general understanding of brain dynamics through self-supervised masked prediction. It is introduced in this paper and its code is available at this repository
We introduce the Brain Language Model (BrainLM), a foundation model for brain activity dynamics trained on 6,700 hours of fMRI recordings. Utilizing self-supervised masked-prediction training, BrainLM demonstrates proficiency in both fine-tuning and zero-shot inference tasks. Fine-tuning allows for the prediction of clinical variables and future brain states. In zero-shot inference, the model identifies functional networks and generates interpretable latent representations of neural activity. Furthermore, we introduce a novel prompting technique, allowing BrainLM to function as an in silico simulator of brain activity responses to perturbations. BrainLM offers a novel framework for the analysis and understanding of large-scale brain activity data, serving as a “lens” through which new data can be more effectively interpreted.
BrainLM is a versatile foundation model for fMRI analysis. It can be used for:
Currently, this model has been trained and tested only on fMRI data. There are no guarantees regarding its performance on different modalities of brain recordings.
Use the code below to get started with the model.
Data stats:
Preprocessing Steps:
Feature Extraction:
Data Scaling
Data split:
BrainLM was pretrained on fMRI recordings from the UK Biobank and HCP datasets. Recordings were parcellated, embedded, masked, and reconstructed via a Transformer autoencoder. The model was evaluated on held-out test partitions of both datasets.
Objective: Mean squared error loss between original and predicted parcels
Pretraining:
Downstream training: Fine-tuning on future state prediction and regression/classification clinical variables
In this work, we use the following metrics to evaluate the model's performance:
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
BibTeX:
@article{ortega2023brainlm,
title={BrainLM: A foundation model for brain activity recordings},
author={Ortega Caro, Josue and Oliveira Fonseca, Antonio Henrique and Averill, Christopher and Rizvi, Syed A and Rosati, Matteo and Cross, James L and Mittal, Prateek and Zappala, Emanuele and Levine, Daniel and Dhodapkar, Rahul M and others},
journal={bioRxiv},
pages={2023--09},
year={2023},
publisher={Cold Spring Harbor Laboratory}
}