Datasets:
BrainBench
BrainBench is a benchmark for evaluating AI agents on practical EEG and polysomnography reasoning tasks. This repository hosts the fixed case JSON files used by the benchmark. Each JSON file contains the agent input, parsing instructions, ground truth, and evaluation metrics for one benchmark instance.
No original EEG or PSG recordings are distributed in this repository. Users must obtain the required source datasets from their official providers and prepare them locally with the BrainBench framework.
Quick links
- Dataset: https://huggingface.co/datasets/xbb083/BrainBench
- Code: https://github.com/xiaobaben/BrainBench
- Paper: https://arxiv.org/abs/2608.04156
Contents
| Subset | BrainBench ID | Tasks | Instances | Status |
|---|---|---|---|---|
| Foundational Analysis | foundational_analysis |
40 | 950 | Released |
| Sleep Assessment | sleep_assessment |
43 | 1,025 | Released |
| Neurocognitive Assessment | neurocognitive_assessment |
- | - | In progress |
| Physiological Integration | physiological_integration |
- | - | In progress |
The current release contains 1,975 fixed evaluation instances across the first two subsets.
Folder layout
<root>/
βββ foundational_analysis/
β βββ cases/
β βββ case01/
β β βββ case01_01.json
β β βββ ...
β βββ ...
βββ sleep_assessment/
βββ cases/
βββ case01/
β βββ case01_01.json
β βββ ...
βββ ...
Conventions:
<subset>/cases/contains all fixed instances for one BrainBench subset.caseNN/identifies one benchmark task; the numeric suffix is zero-padded for natural file-browser ordering.caseNN_XX.jsonidentifies one fixed instance of that task.- Case JSON files are intended to remain unchanged during evaluation.
Case JSON format
Each case keeps the benchmark input and validation configuration together:
{
"meta_info": {
"case_id": "...",
"bench_subset": "...",
"difficulty": 1.0
},
"agent_input": {
"data_path": "data/core/example.edf",
"label_path": "data/sleep/example.npy",
"instruction": "..."
},
"eval_config": {
"parser_prompt": "...",
"metrics": []
}
}
Depending on the task, agent_input may contain data_path, label_path, or both. Paths are relative to the BrainBench repository after local data preparation.
Download
Install the Hugging Face CLI:
python -m pip install --upgrade huggingface_hub
Download all released cases:
hf download xbb083/BrainBench \
--repo-type dataset \
--local-dir ./benchmarks
Download only Foundational Analysis:
hf download xbb083/BrainBench \
--repo-type dataset \
--include "foundational_analysis/**" \
--local-dir ./benchmarks
Download only Sleep Assessment:
hf download xbb083/BrainBench \
--repo-type dataset \
--include "sleep_assessment/**" \
--local-dir ./benchmarks
When --local-dir ./benchmarks is used from the BrainBench code repository, cases are placed directly at:
benchmarks/foundational_analysis/cases/
benchmarks/sleep_assessment/cases/
Use with BrainBench
The complete workflow is:
- Clone and install the BrainBench code repository.
- Download the case JSON files from this Hugging Face dataset.
- Obtain the required EEG/PSG datasets from their official providers.
- Run the subset prepare command to create local benchmark inputs.
- Run the subset with the built-in CodeAct paradigm or a custom Agent adapter.
Example commands after the code repository is released:
# Prepare all Foundational Analysis inputs from locally downloaded source data.
python main.py prepare foundational_analysis \
--data-root /path/to/foundational_analysis_raw_data
# Evaluate all 950 Foundational Analysis instances with CodeAct.
python main.py run foundational_analysis --agent codeact
# Prepare all Sleep Assessment inputs from locally downloaded source data.
python main.py prepare sleep_assessment \
--data-root /path/to/sleep_assessment_raw_data
# Evaluate all 1,025 Sleep Assessment instances with CodeAct.
python main.py run sleep_assessment --agent codeact
Prepared EEG/PSG inputs stay on the user's machine under data/core/ or data/sleep/. They are not uploaded back to Hugging Face.
Inspect a case
Case files are plain JSON and do not execute code when loaded:
import json
from pathlib import Path
case_path = Path(
"benchmarks/foundational_analysis/cases/case01/case01_01.json"
)
case = json.loads(case_path.read_text(encoding="utf-8"))
print(case["meta_info"])
print(case["agent_input"]["instruction"])
print(case["eval_config"]["metrics"])
List available tasks and count instances:
from pathlib import Path
for subset in ("foundational_analysis", "sleep_assessment"):
case_root = Path("benchmarks") / subset / "cases"
tasks = sorted(path.name for path in case_root.iterdir() if path.is_dir())
instances = list(case_root.rglob("*.json"))
print(subset, "tasks:", len(tasks), "instances:", len(instances))
Data availability
This repository contains benchmark case definitions only. It does not redistribute any source EEG/PSG dataset or locally prepared EDF/NPY files.
The BrainBench code release will document the official access routes and required local folder layout for every source dataset. Users are responsible for complying with the corresponding dataset licenses, data-use agreements, and access requirements.
Reproducibility and integrity
- Treat the case JSON files as immutable evaluation inputs.
- Use a tagged dataset revision together with the matching BrainBench code release.
- Do not modify instructions, ground truth, parser prompts, metric parameters, or relative data paths.
- Report the BrainBench code version, case dataset revision, model configuration, and execution mode with evaluation results.
- A case with an infrastructure or parser error should not be interpreted as an Agent capability failure without further diagnosis.
License and citation
The current Hugging Face metadata uses license: other because the formal dataset license is maintained with the BrainBench code and paper releases.
If you use BrainBench, please cite:
@misc{zhou2026brainbenchbenchmarkinglargelanguage,
title={BrainBench: Benchmarking Large Language Models for Comprehensive EEG Understanding},
author={Yangxuan Zhou and Sha Zhao and Yuning Chen and Chen Wu and Jiquan Wang and Shijian Li and Gang Pan},
year={2026},
eprint={2608.04156},
archivePrefix={arXiv},
primaryClass={cs.AI},
url={https://arxiv.org/abs/2608.04156},
}
- Downloads last month
- 11
