PROCESSING YOUR EEG DATA

Similar documents
Artifact rejection and running ICA

DATA! NOW WHAT? Preparing your ERP data for analysis

Pre-processing pipeline

Pre-Processing of ERP Data. Peter J. Molfese, Ph.D. Yale University

HBI Database. Version 2 (User Manual)

THE BERGEN EEG-fMRI TOOLBOX. Gradient fmri Artifatcs Remover Plugin for EEGLAB 1- INTRODUCTION

OSL Preprocessing Henry Luckhoo. Wednesday, 23 October 13

Common Spatial Patterns 3 class BCI V Copyright 2012 g.tec medical engineering GmbH

BrainMaster tm System Type 2E Module & BMT Software for Windows tm. Display Screens for Master.exe

qeeg-pro Manual André W. Keizer, PhD October 2014 Version 1.2 Copyright 2014, EEGprofessionals BV, All rights reserved

Common Spatial Patterns 2 class BCI V Copyright 2012 g.tec medical engineering GmbH

Hybrid Wavelet and EMD/ICA Approach for Artifact Suppression in Pervasive EEG

qeeg-pro Manual André W. Keizer, PhD v1.5 Februari 2018 Version 1.5 Copyright 2018 qeeg-pro BV, All rights reserved

MAutoPitch. Presets button. Left arrow button. Right arrow button. Randomize button. Save button. Panic button. Settings button

Appendix D. UW DigiScope User s Manual. Willis J. Tompkins and Annie Foong

Experiment PP-1: Electroencephalogram (EEG) Activity

A Matlab toolbox for. Characterisation Of Recorded Underwater Sound (CHORUS) USER S GUIDE

StaMPS Persistent Scatterer Exercise

Detection and correction of artefacts in EEG for neurofeedback and BCI applications

Heart Rate Variability Preparing Data for Analysis Using AcqKnowledge

StaMPS Persistent Scatterer Practical

User Guide Slow Cortical Potentials (SCP)

Analysis of AP/axon classes and PSP on the basis of AP amplitude

Yuan Zou, Student Member, IEEE,ViswamNathan, Student Member, IEEE, and Roozbeh Jafari, Senior Member, IEEE

Please feel free to download the Demo application software from analogarts.com to help you follow this seminar.

PS User Guide Series Seismic-Data Display

Brain-Computer Interface (BCI)

Package icaocularcorrection

Thought Technology Ltd Belgrave Avenue, Montreal, QC H4A 2L8 Canada

BioGraph Infiniti Physiology Suite

The EEGer 4.3 Tutorial

TechNote: MuraTool CA: 1 2/9/00. Figure 1: High contrast fringe ring mura on a microdisplay

Getting started with Spike Recorder on PC/Mac/Linux

How to Optimize Ad-Detective

Design of effective algorithm for Removal of Ocular Artifact from Multichannel EEG Signal Using ICA and Wavelet Method

TECHNICAL SPECIFICATIONS, VALIDATION, AND RESEARCH USE CONTENTS:

Linrad On-Screen Controls K1JT

MestReNova A quick Guide. Adjust signal intensity Use scroll wheel. Zoomen Z

Digital Image and Fourier Transform

NanoGiant Oscilloscope/Function-Generator Program. Getting Started

Spectrum Analyser Basics

Analyzing and Saving a Signal

Environmental Controls Laboratory

Getting Started with the LabVIEW Sound and Vibration Toolkit

I. INTRODUCTION. Electronic mail:

Automatic LP Digitalization Spring Group 6: Michael Sibley, Alexander Su, Daphne Tsatsoulis {msibley, ahs1,

Recap: Representation. Subtle Skeletal Differences. How do skeletons differ? Target Poses. Reference Poses

Object selectivity of local field potentials and spikes in the macaque inferior temporal cortex

The Influence of Explicit Markers on Slow Cortical Potentials During Figurative Language Processing

ECE3296 Digital Image and Video Processing Lab experiment 2 Digital Video Processing using MATLAB

Spectral Decomposition in HRS

Topic: Instructional David G. Thomas December 23, 2015

Department of Electrical & Electronic Engineering Imperial College of Science, Technology and Medicine. Project: Real-Time Speech Enhancement

Neurite-J 1.1. ImageJ plug-in. User manual. October, 2014

PulseCounter Neutron & Gamma Spectrometry Software Manual

MTurboComp. Overview. How to use the compressor. More advanced features. Edit screen. Easy screen vs. Edit screen

SEM- EDS Instruction Manual

Table of Contents Introduction

Quantitative Evaluation of Artifact Removal in Real Magnetoencephalogram Signals with Blind Source Separation

Processing data with Mestrelab Mnova

User Guide. qeeg NeXus-32. This user guide has been created to educate and inform the reader about doing qeeg measurements with the NeXus-32

Template Matching for Artifact Detection and Removal

Lesson 1 EMG 1 Electromyography: Motor Unit Recruitment

Torsional vibration analysis in ArtemiS SUITE 1

E X P E R I M E N T 1

Browsing News and Talk Video on a Consumer Electronics Platform Using Face Detection

Activity P32: Variation of Light Intensity (Light Sensor)

Quantitative Evaluation of Artifact Removal in Real. Separation

Analysis. mapans MAP ANalysis Single; map viewer, opens and modifies a map file saved by iman.

Agilent ESA Series Spectrum Analyzers

Automatic removal of eye movement and blink artifacts from EEG data using blind component separation

Preparation of the participant. EOG, ECG, HPI coils : what, why and how

Standard Operating Procedure of nanoir2-s

Advanced IC analysis

An Introduction to the Spectral Dynamics Rotating Machinery Analysis (RMA) package For PUMA and COUGAR

MDynamicsMB. Overview. Easy screen vs. Edit screen

Meeting Embedded Design Challenges with Mixed Signal Oscilloscopes

#PS168 - Analysis of Intraventricular Pressure Wave Data (LVP Analysis)

EEG Eye-Blinking Artefacts Power Spectrum Analysis

HX0074 DEMO Kit for METRIX Oscilloscopes

NENS 230 Assignment #2 Data Import, Manipulation, and Basic Plotting

Pre-processing of revolution speed data in ArtemiS SUITE 1

Introduction to GRIP. The GRIP user interface consists of 4 parts:

ME EN 363 ELEMENTARY INSTRUMENTATION Lab: Basic Lab Instruments and Data Acquisition

Getting Started. Connect green audio output of SpikerBox/SpikerShield using green cable to your headphones input on iphone/ipad.

SedLine Sedation Monitor

Using DICTION. Some Basics. Importing Files. Analyzing Texts

Guide to Analysing Full Spectrum/Frequency Division Bat Calls with Audacity (v.2.0.5) by Thomas Foxley

SpectraPlotterMap 12 User Guide

Advanced Techniques for Spurious Measurements with R&S FSW-K50 White Paper

MindMouse. This project is written in C++ and uses the following Libraries: LibSvm, kissfft, BOOST File System, and Emotiv Research Edition SDK.

Artifact Removal in Magnetoencephalogram Background Activity with Independent Component Analysis

Problem 5 Example Solutions

User Manual OVP Raman

BitWise (V2.1 and later) includes features for determining AP240 settings and measuring the Single Ion Area.

Channel calculation with a Calculation Project

Semantic priming modulates the N400, N300, and N400RP

The Measurement Tools and What They Do

MAutoDynamicEq. Now, how is the level measured? Overview. The Band Settings

Supplemental Material for Gamma-band Synchronization in the Macaque Hippocampus and Memory Formation

Transcription:

PROCESSING YOUR EEG DATA Step 1: Open your CNT file in neuroscan and mark bad segments using the marking tool (little cube) as mentioned in class. Mark any bad channels using hide skip and bad. Save the file. Step 2: Open Matlab. Change default directory to P:\EEG\Matlab. In the Current Folder window, find S1_EEG_Preprocess.m and double click. It will open in the editor window. Step 3: Run each cell in the script. Place your cursor at the top of the editor window, and then press the little button, or press Ctl Shift Enter to run the cell and advance to the next. Follow any instructions that appear in the popup box. Step 4: Open and run script S2_Identify_ICs_to_remove.m. This runs the ADJUST algorithm to remove ocular and other artifacts. a. For more information on this refer to the ADJUST Tutorial (appended to these instructions) b. Once you have determined which ICs to remove make sure to click the Accept button of the IC component so it changes to say Reject. After it changes hit OK and the window will close and the color above the headmap will change to a pinkish color. Step 5: IMPORTANT!!!! Once you finish using ADJUST to mark bad components (all pink on the component number), and close both windows with the head maps (by clicking OK on those windows), you must type the following in the command window: WriteICsToRemove (Case Sensitive). This last step saves your list of independent components that you selected for removal. You ll see a text file has been created named _ICs2Remove.txt (where is your file name) in the folder where the data are stored. Step 6: Your mission is complete for now. You have an epoched file that has removed bad segments, interpolated bad channels, removed crap at the end, and you have selected the independent components that need to be removed. Next, we ll be conducting re referencing, running the FFT using a Hamming window, and getting the average spectral power by site. This script is awaiting a few tweaks so that you get feedback and instruction as you go. I ll update you when it s read. Await further instructions!

What is ICA? ICA is a "blind source separation" technique. ICA separates sources of activity that are mixed together at recording electrodes.

What is ICA? For EEG data Channel data (X) can be thought of as a weighted (W) combination of independent component activations (Wx), each of which has a scalp projection (W -1 ). You can think of ICs as putative sources of the scalp-recorded EEG.

What is ADJUST? ADJUST= Automatic EEG artifact Detection based on the Joint Use of Spatial and Temporal features Automatic ICA-based algorithm that identifies artifact-related IC components Uses both spatial and temporal distributions Combines stereotyped features to efficiently and systematically reject an artifact Mognon, Jovicich, Bruzzone, & Buiatti, 2010

How does it work? EEG is decomposed into ICs (done in EEGlab) ICs defined only by statistical relationships. It knows nothing about where electrodes are Detectors are applied for 4 types of artifacts Computes class-specific spatial and temporal features on all ICs Each feature has a threshold dividing artifacts from non-artifacts For each detector, ICs identified as artifacts if features associated with the artifact exceed their respective threshold. Mognon, Jovicich, Bruzzone, & Buiatti, 2010

Features Spatial Average Difference (SAD) Temporal Kurtosis (TK) Maximum Epoch Variance (MEV) Spatial Eye Difference (SED) Generic Discontinuities Spatial Feature (GDSF)

Features Spatial Average Difference (SAD) Spatial topography of blink ICs Looks for higher amplitude in frontal vs. posterior areas Temporal Kurtosis (TK) Kurtosis over the IC time course Kurtosis is "peakedness" of the distribution (i.e. distribution of timepoints in the epoch) Looks for outliers in amplitude distribution typical of blinks Mognon, Jovicich, Bruzzone, & Buiatti, 2010

Features Maximum Epoch Variance (MEV) Is a ratio of variance in epoch with most variance compared to mean variance over all epochs Looks for slower fluctuations typical of vertical eye movement Spatial Eye Difference (SED) Looks for large amplitudes in frontal areas in antiphase typical of horizontal eye movement Generic Discontinuities Spatial Feature (GDSF) Looks for local spatial discontinuities Mognon, Jovicich, Bruzzone, & Buiatti, 2010

Where to begin? Pre-processing Clean file for non-stereotyped gross artifacts AKA Muscle activity and other external factors Variable spatial distribution that could take up a lot of ICs Low-Pass filtering, if appropriate for your data, can remove some artifacts and prevent so many ICs from capturing these higherfrequency noise artifacts ICA From EEGlab or, if not performed already, can be called from ADJUST Run ICA d files with ADJUST Import dataset into EEGLab Tools ADJUST Use script and select file OR

Component Head Maps # of channels in EEG data = # of components Typically more true components than channels Multiple true components combined into a single ICA component We have 64 components because we had 64 channels ADJUST will highlight in red the components it identified as artifacts

Looking at an individual IC Head map IC activity plotted against trial Activity power spectrum Features and thresholds Press to Reject IC

Component Data Scroll Shows the activity of 64 components across epochs 10

Eye blinks Features used Spatial Average Difference (SAD) Temporal Kurtosis (TK) Frontal distribution High power in delta frequency band In component data scroll high potentials with morphology of eye blink (like in EEG) can be observed

All have SAD and TK features over threshold All have a frontal distribution All have higher power in delta band

Look at Component Scroll for what IC 1 looks like High potentials with these morphology further suggest the IC component is in fact eye blink related

Vertical Eye Movement Features used Spatial Average Difference (SAD) Maximum Epoch Variance (MEV) Frontal distribution similar to that of an eye blink

Frontal distribution It appears that the artifact is mostly driven by what is happening around trial 200 SAD and MEV features are over threshold

Horizontal Eye Movement Features used Spatial Eye Difference (SED) Maximum Epoch Variance (MEV) Frontal distribution in anti-phase (one positive and one negative)

Anti-phase, primarily frontal distribution In the IC Activity by trial, three sections stand out SED and MEV features are over threshold

Trial 75-79 Trials 110-114

Generic Discontinuities Features used Generic Discontinuities Spatial Feature (GDSF) Maximum Epoch Variance (MEV) Variable distribution Sudden amplitude fluctuations with no spatial preference Could be present in as little as one or 2 trials, and limited to 1 channel In component data scroll weird activity in the trial plotted on the IC activity

GDSF and MEV features over threshold Variable distribution even at a single channel IC activity shows a lot of variability across epochs and doesn t show one as responsible

GDSF and MEV features over threshold Variable distribution. In this case, present at a single channel In the IC Activity by trial, one section stands out

So do we reject all of the ICs ADJUST tells us too? If ADJUST has identified a component as bad, we mark it as bad UNLESS there is clear evidence that over-rules that verdict. Additionally, we need to be looking for cases where ADJUST will miss artifacts Specially, lateral eye movements seem to be missed with some frequency in ERP tasks since folks don't make large movements.