OpenNeuro is by far the best source of diverse, public fMRI data. So why is nobody building a foundation model using all of it? Answer: the scans are not preprocessed, leading to a time-consuming headache converting & readying the data for AI training.
We built a fast and efficient means to prepare them, and we're releasing the result, termed ReadyNeuro: about 16 TB of fMRI (22,000 hours from 817 OpenNeuro studies) that can immediately be fed into AI training pipelines. We have uploaded it all to a public S3 bucket.
We're also releasing the fMRI foundation model we trained on the dataset, CortexMAE-ReadyNeuro. Fully open-sourced training & evaluation code is on GitHub.
We examine whether the slow, traditional preprocessing approach (template-space brains using fMRIPrep) is actually necessary for fMRI foundation models. Surprisingly, we saw little to no performance decrease with our extremely minimal preprocessing approach (rigid registration in native brain space).
Figure 1. t-SNE visualization of the full-corpus CortexMAE-ReadyNeuro model's embeddings of OpenNeuro. Each of 70,943 points is the model's average embedding of one participant's scans for one task in one study. Points are colored by study (gray for the 178 studies with 10 or fewer subjects), or by sex or age where recorded. Points group by study first, which likely reflects each study's scanner and protocol as well as its participants and tasks. Hover over a point for its study, task, sex and age; click it to highlight its study.
Functional MRI (fMRI) records a 3D movie of brain activity (Figure 2). Usually an fMRI study consists of scanning a dozen or so college students while they perform various tasks, followed by the researcher spending a day or so preprocessing each subject's scans independently and fitting and evaluating a model on them.
A foundation model represents a drastically different approach: we take all the fMRI studies we can get our hands on and simply train a big vision transformer on everybody's scans using a self-supervised objective (meaning that the model has no idea whose brain belongs to whom, or what tasks are being done during the scan). We then take this foundation model and fine-tune it with a small task-labeled dataset to do well on any given downstream task (anything from decoding motor movement to classifying psychiatric disorders). This foundation modeling approach has already proved itself to work on text, images, weather, pathology, etc., so it stands to reason that this approach should also work for brain data, and that our results should get increasingly better as we scale up data and compute. Here we explored embracing the bitter lesson, skipping most preprocessing steps traditionally adopted by the field and seeing if we can just have the vision transformer learn everything.
Figure 2. One raw fMRI run (Haxby et al., 2001, subject 1; OpenNeuro ds000105): 121 whole-brain frames, one every 2.5 s, while the participant viewed blocks of pictures. Gray: the run's mean image. Blue and red: signal below or above its mean at that point by more than 0.75% (saturating at ±2.5%), after removing a linear trend and light smoothing in time and space. Trace: the signal under the crosshair; click a slice to move it.
fMRI foundation models have so far been pretrained on data from a few large studies, such as the Human Connectome Project Young Adult study (HCP-YA) and the Adolescent Brain Cognitive Development study (ABCD). For instance, we released our own open-source foundation model named CortexMAE pretrained on HCP-YA. We observed hitting a data bottleneck where training larger models (>37M parameters) did not reliably lead to downstream improvements. We believe that only pretraining on a few large homogeneous datasets likely prevents proper generalization of brain foundation models. Hence, we wanted to train a foundation model on high-quality diverse data. We expect diversity to matter just as much as size: a model pretrained on one study is likely to learn only that particular study's scanner, protocol and population.
OpenNeuro represents a possible solution to this generalization gap, as it is a public archive of about 1,000 fMRI studies contributed by labs around the world, with both size and diversity. However, most of its scans are shared raw, meaning that preparing them for analysis with standard tools takes many hours per subject, so it has been largely ignored by the fMRI foundation model literature. Here we describe a simpler preprocessing pipeline that skips the slowest steps, making it computationally very feasible to tap into this archive for pretraining. ReadyNeuro is our public release of this corpus of minimally preprocessed OpenNeuro as training-ready shards meant for anyone to easily train their own foundation models. To separate the effect of preprocessing from dataset size and diversity, we first compare native-space and template-space pretraining on the same HCP-YA subjects (with full ablations in the paper), and then pretrain CortexMAE-ReadyNeuro on ReadyNeuro and compare it with the same architecture pretrained on fully preprocessed, template-space HCP-YA.
We publicly share ReadyNeuro, the CortexMAE-ReadyNeuromodel weights, and our training and evaluation code online (we use Brainmarks as our standardized evaluation suite for fairly comparing fMRI foundation models across various downstream tasks on held-out datasets).
The OpenNeuro corpus
OpenNeuro has over 37,000 usable subjects; our training corpus draws roughly 30,000 of them across 837 studies and over 1,300 distinct tasks, encompassing 22,373 hours of scanning (Figure 3). In comparison, HCP-YA has 1,200 subjects doing seven tasks plus rest, ABCD has ~11,900 children doing three tasks plus rest, and UK Biobank has ~100,000 adults doing one short task plus rest. Note that our released ReadyNeuro corpus is slightly smaller at 22,083 hours of training scans from 817 studies (816 with training scans, plus one used only for validation), because 21 studies have since been withdrawn from OpenNeuro.
Figure 3. OpenNeuro is far more diverse than the large single studies. Distributions for our OpenNeuro training corpus (about 30,000 subjects from 837 studies) and the 880 HCP-YA subjects we pretrained on. Each large study has one protocol, so its task count (tasks plus rest), age range and study size are drawn as a line or band. ABCD (baseline visit) and UK Biobank are drawn from their published protocols, including hours per subject. Age is shown for the 54% of OpenNeuro subjects with a recorded value.
Preprocessing in a week
Standard pipelines such as fMRIPrep spend most of their time reconstructing each subject's cortical surface and nonlinearly warping each brain to a standard template brain, so that the same coordinates point to approximately the same anatomy in every subject ("template space"). fMRIPrep alone took about 5 hours per subject on 8 CPU cores in Ren et al.'s benchmark. At that rate, OpenNeuro's 37,000 usable subjects would take about 1,000 days on a 64-core machine. Even without surface reconstruction, which fMRIPrep's documentation puts at about 2 hours per subject on 4 cores, they would take about 190 days (Figure 4).
Following the "bitter lesson" from other fields of AI, general methods that scale with data and compute overtake hand-engineered ones. Hence, we asked whether a deep learning model needs these steps at all. Maybe our foundation model can simply learn how to best preprocess the raw scans itself, skipping heavy steps like cortical surface reconstruction (FreeSurfer) and nonlinear template warping (fMRIPrep).
We still do a few basic steps: correcting for head motion, rigidly aligning each brain to a template with SynthMorph (rotating and shifting it without changing its shape), resampling each scan to 2 mm voxels, and interpolating all scans to a 1-second TR. We skip distortion correction and several other standard correction steps. Processing one subject takes about 15 minutes on a single CPU core. With 64 CPU cores running in parallel, all 37,000 usable subjects take about six days.
Figure 4. It takes only about 6 days to preprocess OpenNeuro's roughly 37,000 usable subjects (on a 64-core CPU machine). The same machine using the traditional fMRIPrep approach would take over half a year without surface reconstruction, or around 3 years with surface reconstruction.
An important nuance is that each scan remains in its subject's own anatomy ("native space"). Instead of warping brains, all we do is make sure everyone's brain is oriented in the same position and rotation. However, the traditional approach for foundation modeling is to nonlinearly warp every brain to a template brain, basically resizing and stretching everyone's brain so that they all look the same (which is a computationally difficult process). Most people think that such "template space" normalization would be useful for foundation models to learn patterns across brain data given that spatial coordinates are fixed. To preview our results a bit, though, it appears to not be that necessary after all.
The model
Our model, CortexMAE-ReadyNeuro, follows CortexMAE-V, the volume-based version of CortexMAE, a masked autoencoder with a ViT-L encoder (about 300M parameters). During pretraining, it sees a random subset of patches of cortex (12 mm cubes, 4 s long) from a 16 s clip and learns to predict the signal in other, hidden patches (Figure 5). Instead of CortexMAE-V's learned embedding for each position on a fixed template grid, we give the model each patch's millimeter coordinates on the shared rigidly aligned grid, encoded with rotary embeddings. Details are in the paper.
Figure 5. Pretraining. Each 16 s clip is cut into patches of cortex, 12 mm cubes spanning 4 s. The encoder sees 96 random patch positions over the whole clip, and a cross-attending decoder predicts the signal of 32 hidden ones. After pretraining, the encoder is frozen and a small classifier is trained on its outputs for each evaluation task.
Brainmarks is our benchmark that standardizes the evaluation of fMRI foundation models. The seven tasks we evaluate on test how well a small classifier trained on the frozen model's outputs predicts task condition, the image a person is viewing, age group, sex, or whether they have Parkinson's disease, autism, or ADHD.
What we found
Native space holds up surprisingly well. We pretrained the same architecture on HCP-YA twice, once on our native-space output and once on HCP's template-space data, holding the subjects, architecture, and schedule fixed so only preprocessing changed. We expected skipping the warp to clearly hurt. Instead, both models scored similarly across all seven tasks, with template space tied or ahead by at most 1.5 percentage points (on autism, averaged over three runs; Figure 6). Notably, this setup should naturally favor the template-space model, since Brainmarks evaluates on scans normalized to template space that the native-space model never saw during pretraining.
Figure 6. Brainmarks scores on four of the seven tasks (all seven are in the paper) for models pretrained on HCP-YA in template space or native space, and on OpenNeuro in native space: a 1,520-hour subset about the size of HCP-YA (open circles) and the full 22,373-hour corpus (filled; the full-corpus CortexMAE-ReadyNeuro model). Evaluation scans are normalized to a template. Scores are accuracy for task condition and image category and balanced accuracy (accuracy averaged over groups) for age group and sex. Small labels name each task's evaluation dataset; each panel has its own vertical scale. Mean ± s.d. across three pretraining runs (two for the 1,520-hour subset).
Data diversity and scale help different tasks. Scaling OpenNeuro from 747 to 22,373 hours (up to 15x HCP-YA) over 200,000 updates on one H100 GPU helped age most (54.5% to 57.2%) and modestly improved sex and task condition, while image category already beat HCP-YA by ~1,520 hours and clinical tasks showed no clear trend (Figure 7). At full scale, CortexMAE-ReadyNeuro beat our template-space HCP-YA model on three of the seven tasks (age, image category, and Parkinson's) and stayed within 1.3 points on the rest without ever seeing a warped brain, with held-out loss still falling at the end of training.
Figure 7. Brainmarks scores on four of the seven tasks as OpenNeuro pretraining data grows from 747 to 22,373 hours (log scale). Every model trains for the same 200,000 updates and is evaluated on template-normalized scans. Horizontal lines and shaded bands mark the two HCP-YA models; on image category the lines coincide. Mean ± s.d. across pretraining runs (three for HCP-YA and the full corpus, two for each smaller subset); error bars smaller than a marker are hidden behind it.
Across published fMRI foundation models on Brainmarks, the full-corpus CortexMAE-ReadyNeuro model beats Omni-fMRI and NeuroSTORM by over 10 points on both state decoding tasks and scores highest on age (57.2%; Table 1 of the paper), while CortexMAE-V stays ahead on both state decoding tasks and the clinical tasks. Still, clinical diagnosis scores across all current fMRI foundation models remain weak and close to simple functional connectivity baselines (as we saw in our CortexMAE post).
Big picture
We still are not quite there in terms of foundation models being a critical part of most brain analysis pipelines, but it seems clear looking at other modalities that it is only a matter of time before this occurs. If we get there, not only can we extract higher quality signal from the same scans, but we can potentially enable new clinically meaningful use cases for fMRI. We still need to establish more robust scaling laws, working with larger and more diverse datasets, and benchmarking how foundation models fare across myriad downstream tasks and cohorts against strong baselines.
We hope our open-source releases are strong steps toward this future, showcasing a tangible way for the neuroimaging research community to explore approaches to foundation modeling with relatively cheap compute and draw directly from the largest public archives of fMRI data available:
ReadyNeuro: OpenNeuro fMRI corpus as shards ready for AI training
CortexMAE: fMRI foundation models trained on fully preprocessed, template-space HCP-YA (using flat maps, parcels, or a fixed template volume grid)
CortexMAE-ReadyNeuro: volumetric fMRI foundation model with rotary coordinate embeddings, trained on minimally preprocessed, native-space ReadyNeuro
Brainmarks: standardized evaluation suite for fairly evaluating fMRI foundation models
We encourage you to read our paper for more specific information, and to join our MedARC Discord server if you'd like to work together on this and other open-source medical foundation models.
Get the data
ReadyNeuro is released under CC0: 15.9 TB covering about 30,000 subjects across 817 OpenNeuro studies, with 22,083 hours of training scans.
These commands set up read-only access to our public S3 bucket:
curl -fsS https://openneuro.sophont.med/clients/aws-setup.sh | sh
aws --profile openneuro-public s3 ls s3://openneuro/v1/
Requires AWS CLI v2.13 or later (hosted publicly on Cloudflare R2, so no AWS account or egress fees are needed). See the GitHub repository for dataset manifests and data loading instructions.
To try ReadyNeuro without the full bucket, a 500 GB subset (one subject from each of 672 studies) is on Hugging Face: medarc/ReadyNeuro.
Get in touch
We want to further improve our brain foundation models by training on more data and working with academics and hospitals to showcase the new use cases possible with this approach.
Please email us if you want to collaborate or partner to expand our foundation model approach and demonstrate more practical applications built upon our models.
Xujin Chris Liu led this work during a summer 2026 internship at Sophont.
Citation
If you use ReadyNeuro, CortexMAE-ReadyNeuro, or our code, please cite our NeurIPS 2026 workshop paper:
@inproceedings{liu2026scaling,
title = {Scaling {fMRI} Foundation Models with Native-Space Data from Heterogeneous Public Studies},
author = {Liu, Xujin Chris and Lane, Connor and Muhammad, Hassan and Abraham, Tanishq Mathew and Scotti, Paul Steven},
booktitle = {NeurIPS 2026 Workshop on Foundation Models for the Brain and Body},
year = {2026},
url = {https://openreview.net/forum?id=rLMKAJCLc1}
}