Datasets:
Upload README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: SpatialBrain
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
license: other
|
| 6 |
+
task_categories:
|
| 7 |
+
- image-to-text
|
| 8 |
+
- feature-extraction
|
| 9 |
+
tags:
|
| 10 |
+
- fmri
|
| 11 |
+
- neuroscience
|
| 12 |
+
- brain-decoding
|
| 13 |
+
- spatial-reasoning
|
| 14 |
+
- coco
|
| 15 |
+
- multimodal
|
| 16 |
+
size_categories:
|
| 17 |
+
- 10K<n<100K
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# SpatialBrain
|
| 21 |
+
|
| 22 |
+
SpatialBrain links 73,000 COCO natural images with spatial-semantic annotations and processed visual-cortex fMRI responses from eight Natural Scenes Dataset participants. It is intended for visual brain decoding, brain-image representation alignment, and spatial-relation modeling.
|
| 23 |
+
|
| 24 |
+
This release contains 20 data files and occupies approximately 29.4 GiB.
|
| 25 |
+
|
| 26 |
+
## Dataset Contents
|
| 27 |
+
|
| 28 |
+
- `coco_images_73k_224_float16.hdf5`: 73,000 images resized to 224 x 224 and stored as float16.
|
| 29 |
+
- `annotations.json`: COCO IDs, instances, bounding boxes, attributes, captions, absolute positions, and pairwise relations.
|
| 30 |
+
- `subject_to_COCO73k_ID.hdf5`: subject-specific stimulus-to-image mappings.
|
| 31 |
+
- `shared_COCO73k_ID.npy`: image IDs shared across participants.
|
| 32 |
+
- `subjXX/func1pt8mm/*_nsdgeneral_betas.hdf5`: trial-by-voxel beta matrices for the NSD general ROI.
|
| 33 |
+
- `subjXX/func1pt8mm/*_prf-visualrois_betas.hdf5`: trial-by-voxel beta matrices for pRF visual ROIs.
|
| 34 |
+
|
| 35 |
+
The processed beta matrices are stored as float16 HDF5 datasets. Each row represents a stimulus trial and each column represents a selected voxel. The HDF5 files also contain trial, session, COCO image ID, mask, and voxel-index metadata. Convert beta arrays to float32 at load time when required by a model; this does not restore precision lost during float16 storage.
|
| 36 |
+
|
| 37 |
+
This release does not include session-level `betas_fithrf` volumes or processed whole-brain `brainmask` beta matrices.
|
| 38 |
+
|
| 39 |
+
## Minimal Loading Example
|
| 40 |
+
|
| 41 |
+
```python
|
| 42 |
+
import h5py
|
| 43 |
+
|
| 44 |
+
path = "subj01/func1pt8mm/subj01_nsdgeneral_betas.hdf5"
|
| 45 |
+
|
| 46 |
+
with h5py.File(path, "r") as f:
|
| 47 |
+
betas = f["betas"][:] # trial x voxel, float16
|
| 48 |
+
betas_fp32 = betas.astype("float32")
|
| 49 |
+
coco73k_ids = f["coco73k_ids"][:]
|
| 50 |
+
sessions = f["sessions"][:]
|
| 51 |
+
trials = f["trials"][:]
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
## Access and Use
|
| 55 |
+
|
| 56 |
+
The fMRI data originate from the Natural Scenes Dataset. Users must review and comply with the [NSD Terms and Conditions](https://cvnlab.slite.page/p/IB6BSeW_7o/Terms-and-Conditions) and complete the [NSD Data Access form](https://forms.gle/xue2bCdM9LaFNMeb7). COCO-derived images and annotations remain subject to the applicable COCO terms and source-image licenses. No additional license is granted by this repository.
|
| 57 |
+
|
| 58 |
+
The dataset contains human neuroimaging data. Use it only for research consistent with the original consent, ethics approvals, and applicable institutional requirements. Do not attempt participant re-identification.
|
| 59 |
+
|
| 60 |
+
## Citation
|
| 61 |
+
|
| 62 |
+
Please cite the Natural Scenes Dataset:
|
| 63 |
+
|
| 64 |
+
```bibtex
|
| 65 |
+
@article{allen2022massive,
|
| 66 |
+
title = {A massive 7T fMRI dataset to bridge cognitive neuroscience and artificial intelligence},
|
| 67 |
+
author = {Allen, Emily J. and St-Yves, Ghislain and Wu, Yihan and Breedlove, Jesse L. and Prince, Jacob S. and Dowdle, Logan T. and Nau, Matthias and Caron, Brad and Pestilli, Franco and Charest, Ian and Hutchinson, J. Benjamin and Naselaris, Thomas and Kay, Kendrick},
|
| 68 |
+
journal = {Nature Neuroscience},
|
| 69 |
+
volume = {25},
|
| 70 |
+
pages = {116--126},
|
| 71 |
+
year = {2022},
|
| 72 |
+
doi = {10.1038/s41593-021-00962-x}
|
| 73 |
+
}
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
When using COCO images or annotations, cite the relevant COCO publications as required by the original dataset.
|