osl-dynamics: A toolbox for modelling fast dynamic brain activity

Neural activity contains rich spatio-temporal structure that corresponds to cognition. This includes oscillatory bursting and dynamic activity that span across networks of brain regions, all of which can occur on timescales of a tens of milliseconds. While these processes can be accessed through brain recordings and imaging, modelling them presents methodological challenges due to their fast and transient nature. Furthermore, the exact timing and duration of interesting cognitive events is often a priori unknown. Here we present the OHBA Software Library Dynamics Toolbox (osl-dynamics), a Python-based package that can identify and describe recurrent dynamics in functional neuroimaging data on timescales as fast as tens of milliseconds. At its core are machine learning generative models that are able to adapt to the data and learn the timing, as well as the spatial and spectral characteristics, of brain activity with few assumptions. osl-dynamics incorporates state-of-the-art approaches that can be, and have been, used to elucidate brain dynamics in a wide range of data types, including magneto/electroencephalography, functional magnetic resonance imaging, invasive local field potential recordings and electrocorticography. It also provides novel summary measures of brain dynamics that can be used to inform our understanding of cognition, behaviour and disease. We hope osl-dynamics will further our understanding of brain function, through its ability to enhance the modelling of fast dynamic processes. Highlights An open-source toolbox for identifying and describing brain dynamics in neuroimaging data on fast timescales. Includes visualisation and quantification of oscillatory bursting and network dynamics. Provides novel summary measures and group analysis tools of brain dynamics that can be used to inform our understanding of cognition, behaviour and disease. Implemented in Python and makes use of TensorFlow. Includes comprehensive documentation and tutorials.

[1]  M. Woolrich,et al.  The GLM-Spectrum: A multilevel framework for spectrum analysis with covariate and confound modelling , 2023, bioRxiv.

[2]  Mats W.J. van Es,et al.  Large-scale cortical networks are organized in structured cycles , 2023, bioRxiv.

[3]  M. Woolrich,et al.  Dissecting unsupervised learning through hidden Markov modeling in electrophysiological data , 2023, bioRxiv.

[4]  D. Vidaurre,et al.  Toward stability of dynamic FC estimates in neuroimaging and electrophysiology: Solutions and limits , 2023, bioRxiv.

[5]  Y. Gal,et al.  Mixtures of large-scale dynamic functional brain network modes , 2022, NeuroImage.

[6]  H. Johansen-Berg,et al.  Frequency modulation of entorhinal cortex neuronal activity drives distinct frequency-dependent states of brain-wide dynamics , 2021, Cell reports.

[7]  Emery N. Brown,et al.  A hidden Markov model reliably characterizes ketamine-induced spectral dynamics in macaque local field potentials and human electroencephalograms , 2021, PLoS Comput. Biol..

[8]  M. Woolrich,et al.  Balance between competing spectral states in subthalamic nucleus is linked to motor impairment in Parkinson’s disease , 2021, Brain : a journal of neurology.

[9]  Alex Lamb A Brief Introduction to Generative Models , 2021, ArXiv.

[10]  M. Woolrich,et al.  Replay bursts in humans coincide with activation of the default mode and parietal alpha networks , 2020, Neuron.

[11]  A. Schnitzler,et al.  Differential dopaminergic modulation of spontaneous cortico–subthalamic activity in Parkinson’s disease , 2020, bioRxiv.

[12]  M. Woolrich,et al.  Changes in electrophysiological static and dynamic human brain functional architecture from childhood to late adulthood , 2020, Scientific Reports.

[13]  Mark W. Woolrich,et al.  The role of transient spectral ‘bursts’ in functional connectivity: A magnetoencephalography study , 2020, NeuroImage.

[14]  Xiangyu Ma,et al.  Altered Temporal Organization of Brief Spontaneous Brain Activities in Patients with Alzheimer’s Disease , 2019, Neuroscience.

[15]  Mark W. Woolrich,et al.  Unpacking Transient Event Dynamics in Electrophysiological Power Spectra , 2019, Brain Topography.

[16]  D. Vidaurre,et al.  Behavioural relevance of spontaneous, transient brain network interactions in fMRI , 2019, NeuroImage.

[17]  Mark W. Woolrich,et al.  How Sensitive Are Conventional MEG Functional Connectivity Metrics With Sliding Windows to Detect Genuine Fluctuations in Dynamic Functional Connectivity? , 2019, Front. Neurosci..

[18]  Mohammad Sadegh Helfroush,et al.  An automatic single-channel EEG-based sleep stage scoring method based on hidden Markov Model , 2019, Journal of Neuroscience Methods.

[19]  Mark Woolrich,et al.  Altered transient brain dynamics in multiple sclerosis: Treatment or pathology? , 2019, Human brain mapping.

[20]  T. Ge,et al.  Resting brain dynamics at different timescales capture distinct aspects of human behavior , 2019, Nature Communications.

[21]  M. Woolrich,et al.  Discovery of key whole-brain transitions and dynamics during human wakefulness and non-REM sleep , 2019, Nature Communications.

[22]  M. De Vos,et al.  A dynamic system of brain networks revealed by fast transient EEG fluctuations and their fMRI correlates , 2019, NeuroImage.

[23]  Mark W. Woolrich,et al.  Task-Evoked Dynamic Network Analysis Through Hidden Markov Modeling , 2018, Front. Neurosci..

[24]  Vince D. Calhoun,et al.  Classification and Prediction of Brain Disorders Using Functional Connectivity: Promising but Challenging , 2018, Front. Neurosci..

[25]  Benjamin A. E. Hunt,et al.  Spontaneous cortical activity transiently organises into frequency specific phase-coupling networks , 2018, Nature Communications.

[26]  Eduardo Martin Moraud,et al.  Predicting beta bursts from local field potentials to improve closed-loop DBS paradigms in Parkinson’s patients , 2018, 2018 40th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC).

[27]  A. Nobre,et al.  Neural Oscillations: Sustained Rhythms or Transient Burst-Events? , 2018, Trends in Neurosciences.

[28]  Mark W. Woolrich,et al.  Short timescale abnormalities in the states of spontaneous synchrony in the functional neural networks in Alzheimer's disease , 2018, NeuroImage: Clinical.

[29]  C. Moore,et al.  The rate of transient beta frequency events predicts behavior across tasks and species , 2017, eLife.

[30]  Stephen M. Smith,et al.  Brain network dynamics are hierarchically organized in time , 2017, Proceedings of the National Academy of Sciences.

[31]  Mark W. Woolrich,et al.  Discovering dynamic brain networks from big data in rest and task , 2017, NeuroImage.

[32]  Diego Vidaurre,et al.  Spontaneous cortical activity transiently organises into frequency specific phase-coupling networks , 2017, bioRxiv.

[33]  S. Jones When brain rhythms aren't ‘rhythmic’: implication for their mechanisms and meaning , 2016, Current Opinion in Neurobiology.

[34]  Mark W. Woolrich,et al.  Spectrally resolved fast transient brain states in electrophysiological data , 2016, NeuroImage.

[35]  P. Fries Rhythms for Cognition: Communication through Coherence , 2015, Neuron.

[36]  Mark W. Woolrich,et al.  A symmetric multivariate leakage correction for MEG connectomes , 2015, NeuroImage.

[37]  Richard N Henson,et al.  A multi-subject, multi-modal human neuroimaging dataset , 2015, Scientific Data.

[38]  Hirokazu Takahashi,et al.  Parameters for burst detection , 2014, Front. Comput. Neurosci..

[39]  Max Welling,et al.  Auto-Encoding Variational Bayes , 2013, ICLR.

[40]  Robert Frysch,et al.  Hidden Markov model and support vector machine based decoding of finger movements using electrocorticography , 2013, Journal of neural engineering.

[41]  Stephen M Smith,et al.  Correspondence of the brain's functional architecture during activation and rest , 2009, Proceedings of the National Academy of Sciences.

[42]  E. Basar,et al.  A review of brain oscillations in cognitive disorders and the role of neurotransmitters , 2008, Brain Research.

[43]  Nasser M. Nasrabadi,et al.  Pattern Recognition and Machine Learning , 2006, Technometrics.

[44]  L. M. Ward,et al.  Synchronous neural oscillations and cognitive processes , 2003, Trends in Cognitive Sciences.

[45]  A. Engel,et al.  Neuronal Oscillations, Coherence, and Consciousness , 2016 .

[46]  Marisa O. Hollinshead,et al.  The organization of the human cerebral cortex estimated by intrinsic functional connectivity , 2011 .

[47]  G. Buzsáki Rhythms of the brain , 2006 .

[48]  Stephen J. Roberts,et al.  Ensemble Hidden Markov Models with Extended Observation Densities for Biosignal Analysis , 2005 .