The BERGEN Plug-in for EEGLAB

Similar documents
M/EEG pre-processing 22/04/2014. GUI Script Batch. Clarification of terms SPM speak. What do we need? Why batch?

ADJUST: An Automatic EEG artifact Detector based on the Joint Use of Spatial and Temporal features

TMSEEG Tutorial. Version 4.0. This tutorial was written by: Sravya Atluri and Matthew Frehlich. Contact:

ERPEEG Tutorial. Version 1.0. This tutorial was written by: Sravya Atluri, Matthew Frehlich and Dr. Faranak Farzan.

SPM Course! Single Subject Analysis

Single Subject Demo Data Instructions 1) click "New" and answer "No" to the "spatially preprocess" question.

2. Creating Field Maps Using the Field Map GUI (Version 2.0) in SPM5

1. Introduction Installation and requirements... 2

A short tutorial for RIDE toolbox

Autonomate Technical Manual

Tutorial BOLD Module

DSI-STREAMER TO EEGLAB EXTENSION

FMRI Pre-Processing and Model- Based Statistics

ProLog. Creating BrainVoyager protocol files out of Presentation log files

Autonomate Technical Manual

fmri Preprocessing & Noise Modeling

SPM8 for Basic and Clinical Investigators. Preprocessing. fmri Preprocessing

Source Reconstruction in MEG & EEG

Autonomate Technical Manual

Basic fmri Design and Analysis. Preprocessing

GLM for fmri data analysis Lab Exercise 1

41126 Cognento (MODENA) Italy Via Bottego 33/A Tel: +39-(0) Internet: Fax: +39-(0)

Table of Contents. IntroLab < SPMLabs < Dynevor TWiki

Managing custom montage files Quick montages How custom montage files are applied Markers Adding markers...

Analysis of fmri data within Brainvisa Example with the Saccades database

Functional MRI in Clinical Research and Practice Preprocessing

Using EEGLAB history for basic scripting

Playing with data from lab

Version. Getting Started: An fmri-cpca Tutorial

EPI Data Are Acquired Serially. EPI Data Are Acquired Serially 10/23/2011. Functional Connectivity Preprocessing. fmri Preprocessing

CS 229 Final Project Report Learning to Decode Cognitive States of Rat using Functional Magnetic Resonance Imaging Time Series

SpikeDet SPM EEG Spike detection toolbox Manual

cief Data Analysis Chapter Overview Chapter 12:

Batch processing of GLMs

Supplementary methods

SPM8 for Basic and Clinical Investigators. Preprocessing

Group ICA of EEG Toolbox (EEGIFT) Walk Through

OHBA M/EEG Analysis Workshop. Mark Woolrich Diego Vidaurre Andrew Quinn Romesh Abeysuriya Robert Becker

1. Introduction Installation and requirements... 2

Introduction to fmri. Pre-processing

Programming-By-Example Gesture Recognition Kevin Gabayan, Steven Lansel December 15, 2006

NA-MIC National Alliance for Medical Image Computing fmri Data Analysis

Performing a resequencing assembly

Padaco Instruction Manual

1. Introduction Installation and requirements... 3

FSL Pre-Processing Pipeline

Section 9. Human Anatomy and Physiology

PATTERN SEQUENCER GUIDE

fmri Basics: Single Subject Analysis

MAT 106: Trigonometry Brief Summary of Function Transformations

MIKE URBAN Tools. Result Verification. Comparison between results

PERFORMANCE COMPARISON OF BACK PROPAGATION AND RADIAL BASIS FUNCTION WITH MOVING AVERAGE FILTERING AND WAVELET DENOISING ON FETAL ECG EXTRACTION

Color Touchscreen Users Manual

Group (Level 2) fmri Data Analysis - Lab 4

BDTB Manual. Ver /08/07

Preprocessing of fmri data

TUTORIAL for using the web interface

A Framework for Evaluating ICA Methods of Artifact Removal from Multichannel EEG

PREPROCESSING FOR ADVANCED DATA ANALYSIS

New Features. BioGraph Infiniti version 5.0. Overall Improvements. Enhancing Compatibility with Windows Vista. Quick and Easy Sessions

SensIT Test and Measurement Version Software Manual

Epoch Definition Guide

- Graphical editing of user montages for convenient data review - Import of user-defined file formats using generic reader

User Manual for TeraRanger Hub Evo

Using the Spectrum Management Tools

JAMMER Pro Plugin. Copyright All Rights Reserved

Version 1.0 PROTEOMICA DEMYSTIFYING PROTEINS. Indian Institute of Technology Bombay, India Bhushan N Kharbikar

The organization of the human cerebral cortex estimated by intrinsic functional connectivity

Multivariate pattern classification

How to change clip speed and direction

Zmachine Data Viewer Software Quick Start

Visualizing the evolution of software using softchange

SilkTest Workbench. Getting Started with Visual Tests

Processing each single plane

PHASEQUANT (User Manual)

Chapter 3: Intensity Transformations and Spatial Filtering

Importing data in a database with levels

Viewer for Luma Fisheye IP Surveillance Camera. Software Manual

SIVIC GUI Overview. SIVIC GUI Layout Overview

PSYCHLAB 8 Analysis for recordings in pychophysiology: Software manual.

WNS Waves Noise Suppressor

A Simple Generative Model for Single-Trial EEG Classification

The x-intercept can be found by setting y = 0 and solving for x: 16 3, 0

Aircraft Smooth Motion Controls with Intel Perceptual Computing SDK. Cédric Andreolli - Intel

ECDL / ICDL Spreadsheets Syllabus Version 5.0

Oracle Financial Consolidation and Close Cloud

Physics MRI Research Centre UNIFIT VERSION User s Guide

EasySense Mac OSX Quick Start Guide

FSL Pre-Processing Pipeline

Multivariate Calibration Quick Guide

SPM Introduction. SPM : Overview. SPM: Preprocessing SPM! SPM: Preprocessing. Scott Peltier. FMRI Laboratory University of Michigan

Silk Test Workbench Getting Started with Visual Tests

MEG & PLS PIPELINE: SOFTWARE FOR MEG DATA ANALYSIS AND PLS STATISTICS

FlukeView Forms. Documenting Software. Getting Started

SPM Introduction SPM! Scott Peltier. FMRI Laboratory University of Michigan. Software to perform computation, manipulation and display of imaging data

Lab 2 Functions in matlab and Playing Sounds

A Tutorial Guide to Tribology Plug-in

Software Installation and Quick Start Guide. PowerMax-Pro PC

Using the Spectrum Management Tools

VSPlayer Software User Manual

Transcription:

The BERGEN Plug-in for EEGLAB July 2009, Version 1.0 What is the Bergen Plug-in for EEGLAB? The Bergen plug-in is a set of Matlab tools developed at the fmri group, University of Bergen, Norway, which allow the correction of fmri-related gradient artifacts from EEG data. These tools are designed to work within the EEGLAB environment, providing a GUI to remove fmri gradient artifacts from the EEG. All of the tools can also be used from the Matlab command line, providing expert users with the ability to use them in custom scripts. The Bergen plug-in basically offers the choice between the moving average algorithm which was introduced by Allen and co-workers (Allen et al. Neuroimage, 2000) and the realignment parameter informed algorithm (RP-info, Moosmann et al. Neuroimage, 2009). The RP-info algorithm that takes potential head movements into account for a better correction of the fmri gradient artifacts. Requirements Matlab. The plug-in is tested on Matlab 7.4 (r2007a) but other versions should work as well. EEGLAB (get it here: http://sccn.ucsd.edu/eeglab/). The plug-in is tested with version 6.01b For the gradient artifact correction with the Realignment Parameter informed algorithm the realignment parameter file from the SPM realigment procedure (rp_*.txt) is needed. Typically it is located in the folder where the individual fmri images are stored If you have a multiprocessor PC, make shure to activate multithreading (Preferences -> General-> Multithreading -> Enable multithreaded

computation -> Automatic, now the number of processors should be automatically detected) Also, if you encounter memory problems, please read how to handle large datasets: http://www.mathworks.com/support/tech-notes/1100/1107.html Download and Installation The Bergen plug-in can be downloaded at: http://fmri.uib.no/tools/eeg_fmri_recording.zip Extract the zip file and copy the content into your 'plugins' directory of your EEGLAB distribution. Tutorial The correction process is structured in 5 individual steps which are described below Step 1 fmri Volume onsets detection In this step the timing of the fmri volume onsets is estimated, or defined according to recorded markers. If no markers coding the beginning of each fmri volume were recorded during the experiment the plug-in tries to estimate the onsets via an autocorrelation method.

Options: Use Marker from fmri recording: Use this option if the EEG dataset was recorded with a marker coding the timing onset of each MR volume (uses the EEG.event structure) Marker: Choose the marker that codes the fmri volume onsets from the drop-down menu. When selecting a marker, a plot of the first 7 fmri Volumes will appear. A red cross indicates the fmri volume onsets. Manual fmri volume onsets detection: By choosing this option the time onsets of the fmri volumes plug-in are estimated using an autocorrelation method. The algorithm requires an approximate value of the repetition time (TR) of the fmri recording. For continuous fmri recordings (no "silent gap") it might require more accurate values (+- 50ms). Around the specified TR fmri volume onsets are identified by a threshold criterion that takes the first derivative of the signal into account. After all settings are defined, press the Read fmri volumes onset button. A plot of the first 7 Markers will appear. A red cross indicates the fmri volume onsets. If the volume onset detection fails, an error message is generated and the user has to change the settings before proceeding. Specify approximate fmri repetition rate (TR): Time between two consecutive fmri volume in milli-seconds. For continuous fmri recordings ('no silent gap') this number has to be quite accurate (+- 50ms). EEG reference channel: Here the user can specify a particular EEG channel on which the detection method will be based on.. Auto option will automatically select the channel with median variance. Make sure that the channel selected is not an

accidentally unplugged electrode. Users can check the channel with the Preview button. Preview: It plots the first derivative of selected channel. It might be useful to estimate a value for the Artifact Threshold. This button is only available if an EEG reference channel is selected. Threshold for fmri artifact detection: Threshold that defines the occurrence of an fmri gradient artifact. The first derivative (gradient value) of the EEG signal is taken into account. It can be specified as an absolute value (in micro volts per data point) or in percentage relative to the maximum value of the gradient of the artifact signal. Use the 'Preview' button to adjust to dedicated values. Step 2 Artifact Duration Parameters During step 2 artifact duration parameters such as 'start' and 'end' of the artifact period relative to the marker onset are specified.

Options: Continuous recording: Choose this option if you have an fmri recording without silent gaps. If selected, the 'Start' of the artifact period is defined as the volume onset (as defined in 'step 1'). The 'End' of the Artifact will be the time point immediately before the subsequent volume onset marker. (i.e. Start = 0, End = TR). Manually adjust Start and End values of the artifact period: If selected, the user can adjust the 'Start' and 'End' of the artifact relative to the first volume onset marker (as defined in 'step 1'). 'Start' and 'End' values must be in milliseconds and will be positive or negative depending if they are after or before the volume onset marker position (respectively). Alternatively, user may select graphically Start and End points by pushing 'Select Point from graph'. A zoom tool is available and the buttons '+' and '-'' can be used adjust the artifact position. Note: Overlapping artifact periods (negative 'silent gap') are not cannot be negative. Step 3 Baseline Correction Baseline Correction (BL) of the artifact periods as defined in 'step 2' Options: Use mean of artifact period itself:

The artifact period itself (as defined in 'step 2') is used as baseline epoch. This option is recommended for continuous fmri recordings without 'silent gap'. Each baseline interval (equiv. to artifact volume) is mean corrected. Use mean of preceding silent gap: The period of the 'silent gap' (as defined in 'step 2') is used as baseline epoch (i.e. BL start='stop of artifact volume t ', BL stop='start of artifact volume t+1') This option is only available if silent gaps exists. If selected, each artifact interval as defined in 'step 2' is averaged and shifted to the average of precedent silent gap. Use mean of a specific time interval: If selected, each artifact interval as defined on step 2 is averaged and shifted to the mean of defined time interval. The time interval is defined in the BL start and BL stop fields. The values are in milliseconds and are be positive or negative depending if they are after or before the marker, respectively. Advanced Option - Baseline correct data before and after the fmri recording: This option corrects borders at the beginning and end of the fmri recording. In this case, the whole initial part of dataset (until the beginning of fmri recording) is averaged and then shifted to the average of the first corrected artifact. In the same way, the last part of the dataset (from the end of fmri recording until the end of the dataset) is averaged and then shifted to the average of last artifact corrected. If selected, it will take effect after baseline correction as defined above. Step 4 Correction Method In this step the user chooses the method for the correction gradient artifacts. All methods are based on a template subtraction algorithm. A correction matrix is showing graphically which artifact volumes (x-axis) constitute to the individual template for the correction of the respective artifact volume (y-axis).

Options: Moving Average: This artefact correction method is based on Allen et al (Neuroimage, 2000) and calculates individual templates which are subtracted from respective artefact periods to correct the MR-imaging related artefacts. The templates are calculated from a moving average of a constant number of artefact volumes centred around the artefact volume to correct. A correction matrix is showing graphically which artifact volumes (x-axis) constitute to the individual template for the correction of the respective artifact volume (y-axis) Number of artifacts volumes that constitute the templates: Number of Number of artifacts volumes that constitute the individual templates of the Moving Average correction algorithm. A typical number is 25 artifact volumes. Realignment Parameter Informed : Modification of the Moving Average algorithm which yields a better artifact correction in case of abrupt head movements of the subject. The head movements of the subject (as identified by the realignment procedure of the fmri preprocessing) are taken into account to identify the appropriate artifact volumes that constitute the individual correction templates. Basically, movements above threshold act as a barrier in order to avoid averaging over discontinuities of the artefact properties. See Moosmann et al. Neuroimage, 2009 for more details. If no head movements are

present this methods is equivalent to the 'Moving average' correction algorithm. A correction matrix is showing graphically which artifact volumes (x-axis) constitute to the individual template for the correction of the respective artifact volume (y-axis). Number of Artifacts that constitute the template: Number of Number of artifacts volumes that constitute the individual templates of the 'Realignment Parameter Informed' correction algorithm. A typical number is 25 artifact volumes Threshold of head movement (in millimeter per data point): The translational realignment parameters of the fmri realignment procedure are transformed to a single parameter by Euclidian metric, resulting in a measure for the speed of the movements. This motion parameter is then thresholded so that only critical abrupt movements remained, and not slow drifts of the head. Typical values are ~0.5mm for 1.5T and ~0.3mm for 3T fmri recordings (@ a EEG sampling rate of 5kHz). Realignment Parameter File: Choose the realignment parameter file from the SPM realignment procedure. Typically it is called "rp_*.txt" and is located in the same folder as the fmri image files. If fmri images are excluded before the realignment procedure (to allow T1 saturation) the number of volume onset markers as identified in 'step 1 '(equiv. to the number of artifact volumes to correct) and the number of lines in the realignment parameter file (equiv. to the number of fmri image files used for the realignment procedure) do not match. In this case the movement vector zero-padded. All artifacts volumes: This method uses all artifact volumes with the same weight to calculate the correction template.

Load correction matrix file: This option allows users to load their own correction matrix by Matlab (*.MAT) file. This file must contain a variable called 'weighting_matrix'. This variable must be quadratic [N x N], where N is the number of artifacts considered for correction. If N is smaller than the number of fmri volume onsets identified in 'step 1', the first (M-N) artifacts will be discard from correction. Step 5 Filtering Options In this step some basic filtering and down sampling options are provided. Options: Resample dataset: Choose new (lower) sampling rate. Use this option to reduce the size of your dataset. This option uses the pop_resample() function from EEGLAB. New sampling rate [Hz] Define new sampling rate in Hz, e. g. 200 Hz Apply band-pass filter: Band pass filter data using an elliptic IIR filter. Forward and reverse filtering are used to avoid phase distortions. It uses the pop_iirfilt()function from EEGLAB. It applies consecutively the low-pass filter and then the high-pass filter.

From/To Specify the filter border is Hz, e.g 'From 1 Hz To 70 Hz'. Step 6 Review settings Before the correction process is executed, a final summary of all parameters is shown. Since the correction process can take several minutes to run, a brief simulation is executed in order to identify possible errors. In this case, the algorithm trries to identify possible causes and advises user to change some of the parameters. Step 7 Overview and report log When the artifact removal process is complete, a representative corrected EEG stretch is shown. It is possible to save a log file with all defined parameters.

Batch jobs with the Bergen Plug-in After having processed a single subject with the GUI of the Bergen plug-in you might want to apply the same settings to several other subjects. To do this call the EEG.history function in Matlab to modify the filenames and folders. Bugs and Suggestions If bugs show up please send us a note (moosmann@gmail.com and netemanuel@gmail.com). Also, please do not hesitate to contact us with suggestions or comments. We would also welcome any collaboration in extending the tools or adding new features Contributors This plug-in was written by Emanuel Neto and Matthias Moosmann. Valuable comments were provided by Karsten Specht and Kenneth Hugdahl. Citing the Bergen plug-in This is a free software distributed under the GPL. However, we do ask those that find this program of use to cite it in their work. Please refer to it as the "Bergen plug-in for EEGLAB, provided by the fmri group of the University of Bergen, Norway" and cite reference [1] below. Also, please make sure that EEGLAB is cited properly as described in the EEGLAB website. Licence The Bergen plug-in for EEGLAB, Release 1.0 2009, The University of Bergen (the "Software"). The Software remains the property of the University of Bergen ("the University").

The Bergen plug-in functions, sources and programs are released under the terms of the GPL (http://www.gnu.org/copyleft/gpl.html). The Bergen plug-in is distributed "AS IS" under this Licence in the hope that it will be useful, but in order that the University as a charitable foundation protects its assets for the benefit of its educational and research purposes, the University makes clear that no condition is made or to be implied, nor is any warranty given or to be implied, as to the accuracy of the Software, or that it will be suitable for any particular purpose or for use under any specific conditions. Furthermore, the University disclaims all responsibility for the use which is made of the Software. It further disclaims any liability for the outcomes arising from using the Software. By downloading or making this software available to others you agree to the terms of this licence and agree to let these terms known to other parties to whom you make this software available. References (1) Realignment parameter-informed artefact correction for simultaneous EEG fmri recordings. Moosmann M, Schönfelder VH, Specht K, Scheeringa R, Nordby H, Hugdahl K. Neuroimage. 2009, 45(4):1144-50. (2) A method for removing imaging artifact from continuous EEG recorded during functional MRI. Allen PJ, Josephs O, Turner R. Neuroimage. 2000 12(2):230-9.