OpenBrain / README.md
nielsr's picture
nielsr HF Staff
Add Hugging Face paper link
329c9a6 verified
|
Raw History Blame
5.63 kB
---
license: cc0-1.0
size_categories:
- 10K<n<100K
task_categories:
- image-segmentation
pretty_name: OpenBrain v1.0
tags:
- medical-imaging
- brain-mri
- parcellation
- quality-control
- neurips-2026
configs:
- config_name: sample_manifest
data_files:
- split: sample
path: sample/sample_manifest.csv
default: true
---
<h1 align="center">OpenBrain</h1>
<p align="center"><strong>An Auditable Generated-Label Release for Whole-Brain MRI Parcellation</strong></p>
<p align="center">
<a href="https://openreview.net/forum?id=dR9OMtUEEC"><img src="https://img.shields.io/badge/NeurIPS_2026-Accepted_%C2%B7_E%26D-2563eb?style=flat-square"></a>
<a href="https://openreview.net/forum?id=dR9OMtUEEC"><img src="https://img.shields.io/badge/OpenReview-Paper-8C1D18?style=flat-square&logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8%2F9hAAAAf0lEQVR4nGNggIDVDAwM%2Fwngj4yMjBYMaIARyQAZBgaGXgbcAKTmEyMjo%2Fv%2F%2F%2F9PYJNczYAfYHUJEwPpgO%2F%2F%2F%2F87YYawkKBxDRLb4v%2F%2F%2F8UMDAyhpBgQisReTYkXUAATA4WAadQAhoEPA%2BSEBMpMIUTqA6l9gixATHZGx%2BDUCAAQ9i3RJuqC5QAAAABJRU5ErkJggg%3D%3D" alt="Paper on OpenReview"></a>
<a href="https://github.com/lanqz7766/openbrain"><img src="https://img.shields.io/badge/GitHub-Code-181717?style=flat-square&logo=github" alt="Code on GitHub"></a>
<a href="https://huggingface.co/papers/2611.05348"><img src="https://img.shields.io/badge/Hugging%20Face-Paper-f5c451?style=flat-square" alt="Paper on Hugging Face"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/Data-CC0--1.0-64748b?style=flat-square"></a>
</p>
<p align="center">
Qizhen Lan · Yu-Chun Hsu · Yuxiang Wei · Lijing Zhu · Zenan Sun · Liang He · Lishan Yu · Xiaoqian Jiang
</p>
<p align="center"><sub>✉️ Contact: <a href="mailto:Qizhen.Lan@uth.tmc.edu">Qizhen.Lan@uth.tmc.edu</a></sub></p>
35,838 skull-stripped T1w MRI scans from 607 OpenNeuro datasets, each with a
110-region parcellation, two committee parcellations, and seven quality checks.
Labels are model output, not manual annotation. All data are CC0.
| Scans | Source datasets | Regions | Quality checks | Size |
|:---:|:---:|:---:|:---:|:---:|
| 35,838 | 607 | 110 | 7 | 226 GB |
## Files
One tar per OpenNeuro dataset. Inside, one folder per case with five files.
```
cases/ds000001.tar
ds000001__sub-01__ses-DEFAULT__sub-01_T1w/
t1w_brain.nii.gz skull-stripped T1w, 1 mm
brain_mask.nii.gz SynthStrip mask
parcellation_modernsurfer.nii.gz 110-region parcellation (primary label)
parcellation_swinunetr.nii.gz committee model 2
parcellation_unetr.nii.gz committee model 3
metadata/cases.csv one row per case: source dataset, archive, DOI, license, age/sex/scanner when known
metadata/quality.csv Q1–Q7, r1–r7, R, tier
metadata/labels.json region ids and names
metadata/q2_fences.csv which volume fence each case used
metadata/training_selections.csv the paper's three training selections, release part (906 / 935 / 931 cases)
metadata/sources.csv raw_paths.csv excluded.csv archives.csv checksums.csv
sample/ 64 cases, unpacked, one per dataset
```
## Download
```bash
pip install -U huggingface_hub
hf download lanqz7766/OpenBrain --repo-type dataset --local-dir openbrain --include "metadata/**" # 60 MB
hf download lanqz7766/OpenBrain --repo-type dataset --local-dir openbrain --include "sample/**" # 64 cases
hf download lanqz7766/OpenBrain --repo-type dataset --local-dir openbrain cases/ds000001.tar # one dataset
hf download lanqz7766/OpenBrain --repo-type dataset --local-dir openbrain # everything, 226 GB
```
## Load a case
```python
# pip install git+https://github.com/lanqz7766/openbrain
from openbrain import load_case
case = load_case("ds000001__sub-01__ses-DEFAULT__sub-01_T1w") # downloads cases/ds000001.tar once, then extracts
case.t1w, case.parcellation, case.quality # nibabel images and the quality row
```
To pick cases by quality first:
```python
import pandas as pd
q = pd.read_csv("openbrain/metadata/quality.csv")
ids = q.loc[q.tier == "HighConf", "case_id"]
```
## Quality fields
| Field | Meaning |
|---|---|
| `Q1` | labeled voxels outside the brain mask |
| `Q2` | regions whose volume is an outlier for its source dataset |
| `Q3` | labeled voxels in fragments far from their region |
| `Q4` | intensity variation inside regions |
| `Q5` | overlap between the primary and the two committee parcellations |
| `Q6` | voxel-level disagreement among the three |
| `Q7` | region-volume disagreement among the three |
| `r1`–`r7` | each `Q` as a percentile over all cases; higher is riskier |
| `R` | mean of `r1`–`r7` |
| `tier` | `HighConf` lowest quarter of `R` · `Standard` middle half · `Flagged` top quarter |
<p align="center">
<a href="assets/release_examples.png"><img src="assets/release_examples.png" width="800"></a><br>
<sub>A low-risk (left) and a high-risk (right) case</sub>
</p>
Definitions, provenance accounting and limitations are in the paper and in
[docs/datasheet.md](https://github.com/lanqz7766/openbrain/blob/main/docs/datasheet.md).
## Citation
```bibtex
@inproceedings{lan2026openbrain,
title = {OpenBrain: An Auditable Generated-Label Release for Whole-Brain MRI Parcellation},
author = {Lan, Qizhen and Hsu, Yu-Chun and Wei, Yuxiang and Zhu, Lijing and Sun, Zenan and He, Liang and Yu, Lishan and Jiang, Xiaoqian},
booktitle = {Advances in Neural Information Processing Systems (NeurIPS), Evaluations and Datasets Track},
year = {2026}
}
```