Information-Theoretical Analysis of EEG Microstate Sequences in Python
We present an open-source Python package to compute information-theoretical quantities for electroencephalographic data. Electroencephalography (EEG) measures the electrical potential generated by the cerebral cortex and the set of spatial patterns projected by the brain's electrical potential...
Main Authors: | , |
---|---|
Format: | Article |
Language: | English |
Published: |
Frontiers Media S.A.
2018-06-01
|
Series: | Frontiers in Neuroinformatics |
Subjects: | |
Online Access: | https://www.frontiersin.org/article/10.3389/fninf.2018.00030/full |
_version_ | 1818253207982309376 |
---|---|
author | Frederic von Wegner Frederic von Wegner Helmut Laufs Helmut Laufs |
author_facet | Frederic von Wegner Frederic von Wegner Helmut Laufs Helmut Laufs |
author_sort | Frederic von Wegner |
collection | DOAJ |
description | We present an open-source Python package to compute information-theoretical quantities for electroencephalographic data. Electroencephalography (EEG) measures the electrical potential generated by the cerebral cortex and the set of spatial patterns projected by the brain's electrical potential on the scalp surface can be clustered into a set of representative maps called EEG microstates. Microstate time series are obtained by competitively fitting the microstate maps back into the EEG data set, i.e., by substituting the EEG data at a given time with the label of the microstate that has the highest similarity with the actual EEG topography. As microstate sequences consist of non-metric random variables, e.g., the letters A–D, we recently introduced information-theoretical measures to quantify these time series. In wakeful resting state EEG recordings, we found new characteristics of microstate sequences such as periodicities related to EEG frequency bands. The algorithms used are here provided as an open-source package and their use is explained in a tutorial style. The package is self-contained and the programming style is procedural, focusing on code intelligibility and easy portability. Using a sample EEG file, we demonstrate how to perform EEG microstate segmentation using the modified K-means approach, and how to compute and visualize the recently introduced information-theoretical tests and quantities. The time-lagged mutual information function is derived as a discrete symbolic alternative to the autocorrelation function for metric time series and confidence intervals are computed from Markov chain surrogate data. The software package provides an open-source extension to the existing implementations of the microstate transform and is specifically designed to analyze resting state EEG recordings. |
first_indexed | 2024-12-12T16:36:25Z |
format | Article |
id | doaj.art-6e46d78193d448c0b3c00546decf8797 |
institution | Directory Open Access Journal |
issn | 1662-5196 |
language | English |
last_indexed | 2024-12-12T16:36:25Z |
publishDate | 2018-06-01 |
publisher | Frontiers Media S.A. |
record_format | Article |
series | Frontiers in Neuroinformatics |
spelling | doaj.art-6e46d78193d448c0b3c00546decf87972022-12-22T00:18:39ZengFrontiers Media S.A.Frontiers in Neuroinformatics1662-51962018-06-011210.3389/fninf.2018.00030371270Information-Theoretical Analysis of EEG Microstate Sequences in PythonFrederic von Wegner0Frederic von Wegner1Helmut Laufs2Helmut Laufs3Epilepsy Center Rhein-Main, Goethe University Frankfurt, Frankfurt am Main, GermanyDepartment of Neurology and Brain Imaging Center, Goethe University Frankfurt, Frankfurt am Main, GermanyDepartment of Neurology and Brain Imaging Center, Goethe University Frankfurt, Frankfurt am Main, GermanyDepartment of Neurology, University Hospital Kiel, Kiel, GermanyWe present an open-source Python package to compute information-theoretical quantities for electroencephalographic data. Electroencephalography (EEG) measures the electrical potential generated by the cerebral cortex and the set of spatial patterns projected by the brain's electrical potential on the scalp surface can be clustered into a set of representative maps called EEG microstates. Microstate time series are obtained by competitively fitting the microstate maps back into the EEG data set, i.e., by substituting the EEG data at a given time with the label of the microstate that has the highest similarity with the actual EEG topography. As microstate sequences consist of non-metric random variables, e.g., the letters A–D, we recently introduced information-theoretical measures to quantify these time series. In wakeful resting state EEG recordings, we found new characteristics of microstate sequences such as periodicities related to EEG frequency bands. The algorithms used are here provided as an open-source package and their use is explained in a tutorial style. The package is self-contained and the programming style is procedural, focusing on code intelligibility and easy portability. Using a sample EEG file, we demonstrate how to perform EEG microstate segmentation using the modified K-means approach, and how to compute and visualize the recently introduced information-theoretical tests and quantities. The time-lagged mutual information function is derived as a discrete symbolic alternative to the autocorrelation function for metric time series and confidence intervals are computed from Markov chain surrogate data. The software package provides an open-source extension to the existing implementations of the microstate transform and is specifically designed to analyze resting state EEG recordings.https://www.frontiersin.org/article/10.3389/fninf.2018.00030/fullEEG microstatesinformation theoryentropymutual informationMarkovianityopen-source |
spellingShingle | Frederic von Wegner Frederic von Wegner Helmut Laufs Helmut Laufs Information-Theoretical Analysis of EEG Microstate Sequences in Python Frontiers in Neuroinformatics EEG microstates information theory entropy mutual information Markovianity open-source |
title | Information-Theoretical Analysis of EEG Microstate Sequences in Python |
title_full | Information-Theoretical Analysis of EEG Microstate Sequences in Python |
title_fullStr | Information-Theoretical Analysis of EEG Microstate Sequences in Python |
title_full_unstemmed | Information-Theoretical Analysis of EEG Microstate Sequences in Python |
title_short | Information-Theoretical Analysis of EEG Microstate Sequences in Python |
title_sort | information theoretical analysis of eeg microstate sequences in python |
topic | EEG microstates information theory entropy mutual information Markovianity open-source |
url | https://www.frontiersin.org/article/10.3389/fninf.2018.00030/full |
work_keys_str_mv | AT fredericvonwegner informationtheoreticalanalysisofeegmicrostatesequencesinpython AT fredericvonwegner informationtheoreticalanalysisofeegmicrostatesequencesinpython AT helmutlaufs informationtheoreticalanalysisofeegmicrostatesequencesinpython AT helmutlaufs informationtheoreticalanalysisofeegmicrostatesequencesinpython |