Datasets:

Modalities:
Audio
Languages:
English
ArXiv:
License:
Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 9 new columns ({'units', 'description', 'sampling_frequency', 'status', 'status_description', 'low_cutoff', 'type', 'name', 'high_cutoff'}) and 12 missing columns ({'duration', 'idx', 'timeds', 'timemeg', 'phonemeidx', 'wavile', 'wordidx', 'kind', 'sentenceidx', 'timechapter', 'segment', 'timesentence'}).

This happened while the csv dataset builder was generating data using

hf://datasets/pnpl/LibriBrain/metadata/channels.tsv (at revision 3649c4738806f4abb340502b9e73eb65e8adcab8)

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1831, in _prepare_split_single
                  writer.write_table(table)
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 714, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              name: string
              type: string
              units: string
              low_cutoff: double
              high_cutoff: double
              description: string
              sampling_frequency: double
              status: string
              status_description: double
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1339
              to
              {'idx': Value('int64'), 'wavile': Value('string'), 'kind': Value('string'), 'segment': Value('string'), 'sentenceidx': Value('float64'), 'wordidx': Value('float64'), 'phonemeidx': Value('float64'), 'timemeg': Value('float64'), 'timeds': Value('float64'), 'timechapter': Value('float64'), 'timesentence': Value('float64'), 'duration': Value('float64')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1334, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 911, in stream_convert_to_parquet
                  builder._prepare_split(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1833, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 9 new columns ({'units', 'description', 'sampling_frequency', 'status', 'status_description', 'low_cutoff', 'type', 'name', 'high_cutoff'}) and 12 missing columns ({'duration', 'idx', 'timeds', 'timemeg', 'phonemeidx', 'wavile', 'wordidx', 'kind', 'sentenceidx', 'timechapter', 'segment', 'timesentence'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/pnpl/LibriBrain/metadata/channels.tsv (at revision 3649c4738806f4abb340502b9e73eb65e8adcab8)
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

idx
int64
wavile
string
kind
string
segment
string
sentenceidx
float64
wordidx
float64
phonemeidx
float64
timemeg
float64
timeds
float64
timechapter
float64
timesentence
float64
duration
float64
1
segments/
silence
null
null
null
null
18.776
18.776
0
null
0.692
2
segments/
word
Book
0
0
null
19.56
19.56
0.772
0.08
0.23
3
segments/
phoneme
b_B
0
0
0
19.56
19.56
0.772
0.08
0.08
4
segments/
phoneme
uh_I
0
0
1
19.64
19.64
0.852
0.16
0.07
5
segments/
phoneme
k_E
0
0
2
19.71
19.712
0.922
0.23
0.08
6
segments/
word
two
0
1
null
19.79
19.788
1.002
0.31
0.43
7
segments/
phoneme
t_B
0
1
0
19.79
19.788
1.002
0.31
0.1
8
segments/
phoneme
uw_E
0
1
1
19.89
19.888
1.102
0.41
0.33
9
segments/
word
chapter
0
2
null
20.28
20.28
1.492
0.8
0.33
10
segments/
phoneme
ch_B
0
2
0
20.28
20.28
1.492
0.8
0.1
11
segments/
phoneme
ae_I
0
2
1
20.38
20.38
1.592
0.9
0.05
12
segments/
phoneme
p_I
0
2
2
20.43
20.428
1.642
0.95
0.06
13
segments/
phoneme
t_I
0
2
3
20.49
20.492
1.702
1.01
0.07
14
segments/
phoneme
er_E
0
2
4
20.56
20.56
1.772
1.08
0.05
15
segments/
word
three
0
3
null
20.61
20.608
1.822
1.13
0.44
16
segments/
phoneme
th_B
0
3
0
20.61
20.608
1.822
1.13
0.12
17
segments/
phoneme
r_I
0
3
1
20.73
20.728
1.942
1.25
0.12
18
segments/
phoneme
iy_E
0
3
2
20.85
20.852
2.062
1.37
0.2
19
segments/
word
of
0
4
null
21.07
21.068
2.282
1.59
0.13
20
segments/
phoneme
ah_B
0
4
0
21.07
21.068
2.282
1.59
0.08
21
segments/
phoneme
v_E
0
4
1
21.15
21.152
2.362
1.67
0.05
22
segments/
word
a
0
5
null
21.2
21.2
2.412
1.72
0.07
23
segments/
phoneme
ah_S
0
5
0
21.2
21.2
2.412
1.72
0.07
24
segments/
word
Study
0
6
null
21.27
21.268
2.482
1.79
0.3
25
segments/
phoneme
s_B
0
6
0
21.27
21.268
2.482
1.79
0.05
26
segments/
phoneme
t_I
0
6
1
21.32
21.32
2.532
1.84
0.07
27
segments/
phoneme
ah_I
0
6
2
21.39
21.388
2.602
1.91
0.07
28
segments/
phoneme
d_I
0
6
3
21.46
21.46
2.672
1.98
0.04
29
segments/
phoneme
iy_E
0
6
4
21.5
21.5
2.712
2.02
0.07
30
segments/
word
in
0
7
null
21.57
21.568
2.782
2.09
0.11
31
segments/
phoneme
ih_B
0
7
0
21.57
21.568
2.782
2.09
0.04
32
segments/
phoneme
n_E
0
7
1
21.61
21.608
2.822
2.13
0.07
33
segments/
word
Scarlet
0
8
null
21.68
21.68
2.892
2.2
0.58
34
segments/
phoneme
s_B
0
8
0
21.68
21.68
2.892
2.2
0.08
35
segments/
phoneme
k_I
0
8
1
21.76
21.76
2.972
2.28
0.08
36
segments/
phoneme
aa_I
0
8
2
21.84
21.84
3.052
2.36
0.05
37
segments/
phoneme
r_I
0
8
3
21.89
21.888
3.102
2.41
0.04
38
segments/
phoneme
l_I
0
8
4
21.93
21.928
3.142
2.45
0.06
39
segments/
phoneme
ah_I
0
8
5
21.99
21.992
3.202
2.51
0.07
40
segments/
phoneme
t_E
0
8
6
22.06
22.06
3.272
2.58
0.2
41
segments/
word
by
0
9
null
22.33
22.332
3.542
2.85
0.31
42
segments/
phoneme
b_B
0
9
0
22.33
22.332
3.542
2.85
0.13
43
segments/
phoneme
ay_E
0
9
1
22.46
22.46
3.672
2.98
0.18
44
segments/
word
Sir
0
10
null
22.65
22.648
3.862
3.17
0.19
45
segments/
phoneme
s_B
0
10
0
22.65
22.648
3.862
3.17
0.1
46
segments/
phoneme
er_E
0
10
1
22.75
22.748
3.962
3.27
0.09
47
segments/
word
Arthur
0
11
null
22.84
22.84
4.052
3.36
0.31
48
segments/
phoneme
aa_B
0
11
0
22.84
22.84
4.052
3.36
0.13
49
segments/
phoneme
r_I
0
11
1
22.97
22.968
4.182
3.49
0.01
50
segments/
phoneme
th_I
0
11
2
22.98
22.98
4.192
3.5
0.11
51
segments/
phoneme
er_E
0
11
3
23.09
23.088
4.302
3.61
0.06
52
segments/
word
Conan
0
12
null
23.15
23.148
4.362
3.67
0.34
53
segments/
phoneme
k_B
0
12
0
23.15
23.148
4.362
3.67
0.09
54
segments/
phoneme
ow_I
0
12
1
23.24
23.24
4.452
3.76
0.12
55
segments/
phoneme
n_I
0
12
2
23.36
23.36
4.572
3.88
0.01
56
segments/
phoneme
ah_I
0
12
3
23.37
23.372
4.582
3.89
0.04
57
segments/
phoneme
n_E
0
12
4
23.41
23.408
4.622
3.93
0.08
58
segments/
word
Doyle
0
13
null
23.49
23.492
4.702
4.01
0.21
59
segments/
phoneme
d_B
0
13
0
23.49
23.492
4.702
4.01
0.08
60
segments/
phoneme
oy_I
0
13
1
23.57
23.568
4.782
4.09
0.12
61
segments/
phoneme
l_E
0
13
2
23.69
23.692
4.902
4.21
0.01
62
segments/
silence
null
null
null
null
23.868
23.868
5.068
null
0.424
63
segments/
word
This
1
0
null
24.37
24.372
5.562
0.07
0.19
64
segments/
phoneme
dh_B
1
0
0
24.37
24.372
5.562
0.07
0.06
65
segments/
phoneme
ih_I
1
0
1
24.43
24.428
5.622
0.13
0.06
66
segments/
phoneme
s_E
1
0
2
24.49
24.492
5.682
0.19
0.07
67
segments/
word
LibriVox
1
1
null
24.57
24.568
5.762
0.27
0.48
68
segments/
phoneme
oov_S
1
1
0
24.57
24.568
5.762
0.27
0.48
69
segments/
word
recording
1
2
null
25.05
25.052
6.242
0.75
0.54
70
segments/
phoneme
r_B
1
2
0
25.05
25.052
6.242
0.75
0.02
71
segments/
phoneme
ih_I
1
2
1
25.07
25.068
6.262
0.77
0.07
72
segments/
phoneme
k_I
1
2
2
25.14
25.14
6.332
0.84
0.09
73
segments/
phoneme
ao_I
1
2
3
25.23
25.228
6.422
0.93
0.07
74
segments/
phoneme
r_I
1
2
4
25.3
25.3
6.492
1
0.02
75
segments/
phoneme
d_I
1
2
5
25.32
25.32
6.512
1.02
0.05
76
segments/
phoneme
ih_I
1
2
6
25.37
25.372
6.562
1.07
0.07
77
segments/
phoneme
ng_E
1
2
7
25.44
25.44
6.632
1.14
0.15
78
segments/
silence
null
null
null
null
25.59
25.588
6.782
1.29
0.27
79
segments/
word
is
1
3
null
25.86
25.86
7.052
1.56
0.16
80
segments/
phoneme
ih_B
1
3
0
25.86
25.86
7.052
1.56
0.1
81
segments/
phoneme
z_E
1
3
1
25.96
25.96
7.152
1.66
0.06
82
segments/
word
in
1
4
null
26.02
26.02
7.212
1.72
0.12
83
segments/
phoneme
ih_B
1
4
0
26.02
26.02
7.212
1.72
0.07
84
segments/
phoneme
n_E
1
4
1
26.09
26.088
7.282
1.79
0.05
85
segments/
word
the
1
5
null
26.14
26.14
7.332
1.84
0.09
86
segments/
phoneme
dh_B
1
5
0
26.14
26.14
7.332
1.84
0.05
87
segments/
phoneme
ah_E
1
5
1
26.19
26.192
7.382
1.89
0.04
88
segments/
word
public
1
6
null
26.23
26.228
7.422
1.93
0.33
89
segments/
phoneme
p_B
1
6
0
26.23
26.228
7.422
1.93
0.06
90
segments/
phoneme
ah_I
1
6
1
26.29
26.288
7.482
1.99
0.08
91
segments/
phoneme
b_I
1
6
2
26.37
26.372
7.562
2.07
0.03
92
segments/
phoneme
l_I
1
6
3
26.4
26.4
7.592
2.1
0.04
93
segments/
phoneme
ih_I
1
6
4
26.44
26.44
7.632
2.14
0.05
94
segments/
phoneme
k_E
1
6
5
26.49
26.492
7.682
2.19
0.07
95
segments/
word
domain
1
7
null
26.56
26.56
7.752
2.26
0.35
96
segments/
phoneme
d_B
1
7
0
26.56
26.56
7.752
2.26
0.02
97
segments/
phoneme
ow_I
1
7
1
26.58
26.58
7.772
2.28
0.07
98
segments/
phoneme
m_I
1
7
2
26.65
26.648
7.842
2.35
0.07
99
segments/
phoneme
ey_I
1
7
3
26.72
26.72
7.912
2.42
0.11
100
segments/
phoneme
n_E
1
7
4
26.83
26.828
8.022
2.53
0.08
End of preview.

LibriBrain (Sherlock Holmes 1–7)

This repository contains the LibriBrain data organised by book: MEG recordings (.h5), event annotations (.tsv), and the audiobook stimulus audio (.wav).

Repository structure

Data are organised into seven top-level directories:

  • Sherlock1/
  • Sherlock2/
  • Sherlock7/

Each Sherlock{i} directory contains:

  • Sherlock{i}/derivatives/events/ — event annotation files (.tsv)
  • Sherlock{i}/derivatives/serialised/ — MEG recordings (.h5)
  • Sherlock{i}/stimuli/audio/ — stimulus audio (.wav)

Stimulus audio (LibriVox)

The spoken-audio stimuli are derived from LibriVox public-domain recordings of the first seven Sherlock Holmes books (recording versions linked below). The stimuli are provided in this repository as WAV files converted from the LibriVox downloads.

LibriVox source URLs (recording versions)

  1. https://librivox.org/a-study-in-scarlet-version-6-by-sir-arthur-conan-doyle/
  2. https://librivox.org/the-sign-of-the-four-version-3-by-sir-arthur-conan-doyle/
  3. https://librivox.org/the-adventures-of-sherlock-holmes-version-4-by-sir-arthur-conan-doyle/
  4. https://librivox.org/the-memoirs-of-sherlock-holmes-by-sir-arthur-conan-doyle-2/
  5. https://librivox.org/the-hound-of-the-baskervilles-version-4-by-sir-arthur-conan-doyle/
  6. https://librivox.org/the-return-of-sherlock-holmes-by-sir-arthur-conan-doyle-2/
  7. https://librivox.org/the-valley-of-fear-version-3-by-sir-arthur-conan-doyle/

Audio format

The WAV files in this repository are:

  • WAV (PCM), mono (1 channel), 22,050 Hz, 16-bit signed integer PCM

Example conversion command (SoX):

sox "INPUT_FROM_LIBRIVOX.mp3" -c 1 -r 22050 -b 16 "OUTPUT.wav"

Citation

@article{ozdogan2025libribrain,
  author    = {Özdogan, Miran and Landau, Gilad and Elvers, Gereon and Jayalath, Dulhan and Somaiya, Pratik and Mantegna, Francesco and Woolrich, Mark and Parker Jones, Oiwi},
  title     = {{LibriBrain}: Over 50 Hours of Within-Subject {MEG} to Improve Speech Decoding Methods at Scale},
  year      = {2025},
  journal   = {NeurIPS, Datasets \& Benchmarks Track},
  url       = {https://arxiv.org/abs/2506.02098},
}
Downloads last month
904

Models trained or fine-tuned on pnpl/LibriBrain