LibriBrain: Over 50 Hours of Within-Subject MEG to Improve Speech Decoding Methods at Scale

Miran Özdogan, Gilad Landau, Gereon Elvers, Dulhan Jayalath, Pratik Somaiya, Francesco Mantegna, Mark Woolrich, Oiwi Parker Jones

TL;DR

The authors introduce LibriBrain, the largest single-subject magnetoencephalography (MEG) dataset for speech decoding to date, boasting over 50 hours of high-quality brain recordings. By providing 5$\times$ more within-subject data than any comparable non-invasive dataset, LibriBrain demonstrates that speech decoding performance scales predictably with data volume, opening up new possibilities for non-invasive brain-computer interfaces (BCIs).

What Problem Does This Paper Address?

Brain-computer interfaces (BCIs) that translate neural activity into text have recently achieved remarkable success, but they typically rely on invasive methods like electrocorticography (ECoG), which require brain surgery. Non-invasive alternatives like EEG and MEG are much safer and more practical, but their performance lags behind.

A major bottleneck has been the nature of open neuroimaging datasets. Most are "broad but shallow"—collecting 1–2 hours of data across dozens or hundreds of participants. However, recent machine learning insights show that speech decoding models perform significantly better when trained on "deep" data from a single subject, as it eliminates the massive variability between different people's brains. Before LibriBrain, the largest single-subject non-invasive speech dataset contained only about 10 hours of recordings, severely limiting the ability to train data-hungry deep learning models.

Methods

The researchers recorded a single healthy volunteer listening to naturalistic spoken English over 95 sessions, covering nearly the entire Sherlock Holmes canon by Arthur Conan Doyle.

Key technical components include:

  • Data Acquisition: Brain activity was captured using a state-of-the-art 306-channel MEGIN Triux Neo system, which measures the tiny magnetic fields generated by neural activity across the entire head.
  • Alignment & Annotation: To map brain signals to language, the audiobooks were force-aligned to text using the tool Gentle, followed by over 200 hours of manual expert correction to ensure precise word and phoneme boundaries.
  • Machine Learning Usability: The raw data was minimally preprocessed (head motion correction, filtering, and downsampling to 250 Hz) and packaged into serialised HDF5 files. The authors also released a companion Python library (pnpl) for seamless integration with deep learning frameworks like PyTorch.
Overview of the LibriBrain dataset including MEG sensor layout, text/phoneme alignment, and linguistic properties.

Datasets

The primary contribution is the LibriBrain dataset, which contains 52.32 hours of total data (51.57 hours for training, 0.36 hours for validation, and 0.38 hours for testing).

The paper compares LibriBrain against several existing language-focused M/EEG datasets, highlighting its unprecedented depth:

  • Armeni et al. (2022): The previous largest single-subject MEG dataset (10 hours per subject, 30 hours total).
  • Nieuwland et al. (2018): Large in total duration (171 hours) but highly distributed across 334 subjects (only 30 minutes per subject).
Figure 1: Comparison of within-subject data volume in non-invasive speech datasets.

Key Insights and Ideas

  • Logarithmic Scaling Laws: Across multiple speech decoding tasks, model performance improves approximately logarithmically with the amount of training data. This mirrors the scaling laws seen in computer vision and natural language processing, proving that "more data" is a viable path forward for non-invasive BCIs.
  • The Power of Token Averaging: In phoneme classification, averaging the MEG windows of multiple instances of the same phoneme dramatically boosts decoding accuracy. This simulates a practical BCI scenario where a user might repeat an input to ensure the system correctly understands them.
  • Data Depth Trumps Breadth: When matched hour-for-hour, models trained on LibriBrain's deep single-subject data scale more effectively and yield better decoding results than models trained on shallower datasets.

Key Results

The authors established baseline results on LibriBrain using lightweight convolutional neural networks (adapted from SEANet) and transformer architectures across three foundational tasks:

  • Speech Detection: The baseline model successfully distinguished between when the subject was listening to speech versus silence with an F1-score of 0.8989 (compared to a random baseline of 0.7848).
  • Phoneme Classification: Predicting which of the 39 ARPAbet phonemes was being heard achieved a Micro F1-score of 0.1168 (compared to a random baseline of 0.0442). When averaging 100 instances of the same phoneme, the balanced accuracy crossed 60%.
  • Word Classification: For a vocabulary of the 250 most frequent words, the model achieved a Top-10 Balanced Accuracy of 0.3621, significantly outperforming the model trained on the Armeni et al. dataset (0.3261) under identical conditions.
Impact of training data volume on speech detection, phoneme classification, and word classification performance.

Limitations and Future Work

While LibriBrain represents a massive leap forward in data volume, it has a few notable limitations:

  • Single-Subject Constraint: Because the data comes from one individual, models trained exclusively on it will not generalize well to other people's brains without domain adaptation techniques.
  • Listening vs. Production: The dataset focuses entirely on passive listening (speech perception) rather than imagined or overt speech (speech production), which is the ultimate goal for communication-focused BCIs.
  • Focused Content: The text is limited to a single author (Arthur Conan Doyle), genre (detective fiction), and narrator, which restricts vocabulary and prosodic diversity.

Future iterations of the project aim to strategically introduce multi-subject data and greater linguistic diversity to expand its utility.

Summary updated

BibTeX
@misc{ozdogan2025libribrain,
  author = {Miran Özdogan and Gilad Landau and Gereon Elvers and Dulhan Jayalath and Pratik Somaiya and Francesco Mantegna and Mark Woolrich and Oiwi Parker Jones},
  title = {{LibriBrain: Over 50 Hours of Within-Subject MEG to Improve Speech Decoding Methods at Scale}},
  year = {2025},
  eprint = {2506.02098},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.02098},
}
Figure