Precise temporal localisation of M/EEG effects with Bayesian generalised additive multilevel models
Abstract
Time-resolved electrophysiological measurements such as those obtained through magneto- and electroencephalography (M/EEG) offer a unique window onto the neural activity underlying cognitive processes. Researchers are often interested in determining whether and when these signals differ across experimental conditions or participant groups. The conventional approach involves mass univariate statistical testing across time and space followed by corrections for multiple comparisons or some form of cluster-based inference. While effective for controlling error rates at the cluster-level, clusterbased inference comes with a significant limitation: by shifting the focus of inference from individual time points to clusters, it prevents drawing conclusions about the precise onset or offset of observed effects. Here, we present a model-based alternative for analysing M/EEG timeseries, such as event-related potentials or time-resolved decoding accuracy. Our approach leverages Bayesian generalised additive multilevel models, providing posterior odds that an effect exceeds zero (or chance) at each time point, while naturally accounting for temporal dependencies and between-subject variability. Using both simulated and empirical M/EEG datasets, we show that this approach substantially outperforms conventional methods in estimating the onset and offset of neural effects, yielding more precise and reliable estimates. We provide an open-source R package implementing the method and describe how it can be integrated into M/EEG analysis pipelines using MNE-Python.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 3
- Assay
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Bayesian Model Selection Maps for group studies using M/EEG data
Clare Diane Harris, Elise Rowe, … Marta Isabel Garrido·Frontiers in NeurosciencePeer-reviewed·Sep 28, 2018
- Using cluster-based permutation tests to estimate MEG/EEG onsets: how bad is it?
Guillaume A. Rousselet·European Journal of NeurosciencePeer-reviewed·Dec 1, 2024
- Trial-by-trial detection of cognitive events in neural time-series
Gabriel Weindel, Leendert van Maanen, Jelmer P. Borst·Imaging NeurosciencePeer-reviewed·Jan 1, 2024
- Spatiotemporally Resolved Multivariate Pattern Analysis for M/EEG
Cameron Higgins, Diego Vidaurre, … Mark W. Woolrich·Human Brain MappingPeer-reviewed·Mar 18, 2022
- Functionally-structured Bayesian model for localizing neural activity and information in magnetoencephalography signals
Kai Miyazaki, Shun Nirasawa, … Yoichi Miyawaki·bioRxiv·Jul 2, 2025
- Bayesian models for event-related potentials time-series and electrode correlations estimation
Simon Busch‐Moreno, Xiao Fu, Etienne Benoit Roesch·bioRxiv·Aug 2, 2022