A comprehensive framework for statistical testing of brain dynamics
- 19 January 2026
- journal article
- review article
- Published by Springer Nature in Nature Protocols
- Vol. 21 (7) , 3148-3179
Abstract
Neural activity data can be associated with behavioral and physiological variables by analyzing their changes in the temporal domain. However, such relationships are often difficult to quantify and test, requiring advanced computational modeling approaches. Here, we provide a protocol for the statistical analysis of brain dynamics and for testing their associations with behavioral, physiological and other non-imaging variables. The protocol is based on an open-source Python package built on a generalization of the hidden Markov model (HMM)—the Gaussian-linear HMM—and supports multiple experimental modalities, including task-based and resting-state studies, often used to explore a wide range of questions in neuroscience and mental health. Our toolbox is available as both a Python library and a graphical interface, so it can be used by researchers with or without programming experience. Statistical inference is performed by using permutation-based methods and structured Monte Carlo resampling, and the framework can easily handle confounding variables, multiple testing corrections and hierarchical relationships within the data, among other features. The package includes tools developed to facilitate the intuitive visualization of statistical results, along with comprehensive documentation and step-by-step tutorials for data interpretation. Overall, the protocol covers the full workflow for the statistical analysis of functional neural data and their temporal dynamics.Keywords
All Related Versions
This publication has 36 references indexed in Scilit:
- Characterizing and Differentiating Brain State Dynamics via Hidden Markov ModelsBrain Topography, 2014
- MNE software for processing MEG and EEG dataNeuroImage, 2014
- Alpha-band oscillations, attention, and controlled access to stored informationTrends in Cognitive Sciences, 2012
- The Human Connectome Project: A data acquisition perspectiveNeuroImage, 2012
- FSLNeuroImage, 2012
- Conn : A Functional Connectivity Toolbox for Correlated and Anticorrelated Brain NetworksBrain Connectivity, 2012
- The structural basis of inter-individual differences in human behaviour and cognitionNature Reviews Neuroscience, 2011
- The Role of Alpha-Band Brain Oscillations as a Sensory Suppression Mechanism during Selective AttentionFrontiers in Psychology, 2011
- Nonparametric statistical testing of EEG- and MEG-dataJournal of Neuroscience Methods, 2007
- AFNI: Software for Analysis and Visualization of Functional Magnetic Resonance NeuroimagesComputers and Biomedical Research, 1996