| Literature DB >> 21716603 |
Thomas Hartmann1, Hannah Schulz, Nathan Weisz.
Abstract
Recent years have seen huge advancements in the methods available and used in neuroscience employing EEG or MEG. However, the standard approach is to average a large number of trials for experimentally defined conditions in order to reduce intertrial-variability, i.e., treating it as a source of "noise." Yet it is now more and more accepted that trial-to-trial fluctuations bear functional significance, reflecting fluctuations of "brain states" that predispose perception and action. Such effects are often revealed in a pre-stimulus period, when comparing response variability to an invariant stimulus. However such offline analyses are disadvantageous as they are correlational by drawing conclusions in a post hoc-manner and stimulus presentation is random with respect to the feature of interest. A more direct test is to trigger stimulus presentation when the relevant feature is present. The current paper introduces Constance System for Online EEG (ConSole), a software package capable of analyzing ongoing EEG/MEG in real-time and presenting auditory and visual stimuli via internal routines. Stimulation via external devices (e.g., transcranial magnetic stimulation) or third-party software (e.g., PsyScope X) is possible by sending TTL-triggers. With ConSole it is thus possible to target the stimulation at specific brain states. In contrast to many available applications, ConSole is open-source. Its modular design enhances the power of the software as it can be easily adapted to new challenges and writing new experiments is an easy task. ConSole is already pre-equipped with modules performing standard signal processing steps. The software is also independent from the EEG/MEG system, as long as a driver can be written (currently two EEG systems are supported). Besides a general introduction, we present benchmark data regarding performance and validity of the calculations used, as well as three example applications of ConSole in different settings. ConSole can be downloaded at: http://console-kn.sf.net.Entities:
Keywords: EEG; brain states; neurofeedback; oscillation; real-time analysis; single-trial analysis
Year: 2011 PMID: 21716603 PMCID: PMC3110935 DOI: 10.3389/fpsyg.2011.00036
Source DB: PubMed Journal: Front Psychol ISSN: 1664-1078
Figure 1Comparison between the classic offline and the proposed online approach. By targeting the presentation of events and/or stimuli to hypothesized brain states, the hypothesis can be more easily verified or falsified.
Figure 2Coarse overview over the structure of ConSole. The general purpose modules implemented in C++ are used in conjunction with the actual real-time paradigm. Both are joined by the framework that ConSole provides. ConSole then displays all necessary information on a computer screen via its GUI.
Figure A1Schematic of a typical ConSole paradigm. Data are acquired from the source and propagated from module to module, each further processing the data. The data can also be sent to multiple modules. Eventually, ConSole uses the final results to trigger an event like a TMS pulse or the display of a stimulus.
Signal processing modules implemented in ConSole including details and references where applicable.
| Module | Details | References |
|---|---|---|
| Average reference | Re-reference data to average reference. Subtract the mean over all channels at each sample. | |
| Check peak | Calculates the FFT on the block of data and rejects blocks that do not show a peak in a specified frequency range. | |
| Combine orientations | Combines the orientations resulting from source projection by either rotating the components using a PCA and choosing the one with the highest eigen value or by calculating the total energy. | |
| Complex demodulation | Complex demodulation of the incoming signal. | |
| Distribution | Calculates the percentile of the data based on a distribution acquired in a calibration run. | |
| FFT | Fast Fourier transform using the fftw library. | Frigo and Johnson ( |
| FIR filter (lowpass and highpass) | Finite impulse response filter calculation using Windowed-Sinc algorithm with Blackman-Window. | Octave-Forge ( |
| Hilbert | Calculates the Hilbert transform. | |
| ICA artifact correction | Corrects the data for artifacts using filters calculated by PCA or ICA (currently only JADE is implemented) | Cardoso and Souloumiac ( |
| IIR filter (lowpass, highpass, and bandpass) | Infinite impulse response filter calculation using the Butterworth algorithm. | Octave-Forge ( |
| Interpolator | Interpolates the signal of all channels in a block of data that are identified of including artifacts based on variance and maximum amplitude using spline interpolation. | Perrin et al. ( |
| Matlab | Sends the data to Matlab and runs a script on the data. The result is fed back to ConSole. | |
| Normalizer | Compute | |
| RejectVarMax | Rejects blocks of data that show high variance or amplitude specified in the paradigm. | |
| Source projection | Dipole source projection using a four-shell concentric sphere model. Adapted from Fieldtrip (Oostenveld et al., | Cuffin and Cohen ( |
| Spatial filter | Applies an externally calculated spatial filter to the data by matrix multiplication. |
Figure A2This figure shows the artifact component selection process of ConSole's built-in artifact correction. An ICA algorithm was applied to calibration data. The upper panel shows the original data to identify the time points when artifacts were present. The middle panel shows the components calculated by the ICA algorithm. The user selects components representing artifacts by clicking on the number to the left. The lower panel shows the resulting data after correction to verify the outcome.
Figure A3Schematic overview of the setup to measure the delay and jitter of ConSole. The Button-Box sends a TTL pulse to the Function Generator and the amplifier. The Function Generator immediately sends the analog signal (negative pulse or 10 Hz sine wave) to the amplifier. Both the TTL pulse and the analog signal are recorded by ConSole. ConSole then sends a TTL pulse to the amplifier as soon as it reacts on the incoming analog signal generated by the Function Generator. This second TTL pulse is also acquired by the amplifier and recorded by ConSole. The difference between the two TTL pulses is the delay between signal generation and ConSole's reaction.
Figure 3Distribution of the delays between signal generation and reaction of ConSole. (A) Shows the histogram for the detection of a pulse, (B) shows the histogram for the detection of a 10-Hz oscillation.
Figure 4Results of example 1. (A,B) Show the comparison between trials identified as high alpha versus low alpha. (A) Time course at one representative occipital electrode. The maximum difference is between 400 and 300 ms before ConSole sent the trigger. (B) Topography at the point of maximum difference. Higher alpha is not restricted to the area analyzed but extends to the other hemifield as well as to frontal areas. The stimulated area is depicted by the TMS coil sketch. (C) Box and whiskers plot showing the distribution of alpha power for all four conditions. The red lines represent the medians, the edges of the boxes mark the first and third quartile. Whiskers extend to the most extreme value not considered an outlier. Outliers are values that exceed the first or third quartile by 1.5 times the total range between the first and third quartile.
Figure 5(A) Screenshot of the patient's training screen. The fish takes 10 s to move from the left to the right of the screen. The first 5 s are the “baseline” period for the patient without any stimulation. In the second half, the patients were stimulated with a sound that resulted in an alpha desynchronization. The patient's task was then to increase temporal alpha power which was indicated by the height of the displayed fish. The patient was rewarded after the trial if the fish stayed above the target line for a sufficient amount of time. (B) Normalized alpha power of all subjects over all 10 sessions before and after neurofeedback training. Alpha power increased significantly within and between sessions. Error bars denote SE. (C) Distress rating of all subjects over all 10 sessions before and after neurofeedback training. Distress was reduced significantly within and between sessions. Error bars denote SE.
Figure 6Schematic drawing of the setup to automatically identify TMS-induced MEPs.