EEG/MEG: Experimental Design & Preprocessing Methods for Dummies 28 January 2009 Matthias Gruber Nick Abreu.

Slides:



Advertisements
Similar presentations
Wellcome Dept. of Imaging Neuroscience University College London
Advertisements

Dynamic causal Modelling for evoked responses Stefan Kiebel Wellcome Trust Centre for Neuroimaging UCL.
EEG/MEG Source Localisation
Filtering Signal Processing.2
All slides © S. J. Luck, except as indicated in the notes sections of individual slides Slides may be used for nonprofit educational purposes if this copyright.
1 st Level Analysis: design matrix, contrasts, GLM Clare Palmer & Misun Kim Methods for Dummies
All slides © S. J. Luck, except as indicated in the notes sections of individual slides Slides may be used for nonprofit educational purposes if this copyright.
Electroencephalogram (EEG) and Event Related Potentials (ERP) Lucy J. Troup 28 th January 2008 CSU Symposium on Imaging.
All slides © S. J. Luck, except as indicated in the notes sections of individual slides Slides may be used for nonprofit educational purposes if this copyright.
Dynamic Causal Modelling for ERP/ERFs Valentina Doria Georg Kaegi Methods for Dummies 19/03/2008.
Early auditory novelty processing in humans: auditory brainstem and middle-latency responses Slabu L, Grimm S, Costa-Faidella J, Escera C.
Outline What is ‘1st level analysis’? The Design matrix
EEG / MEG: Experimental Design & Preprocessing Denisa Jamecna Sofie Meyer (Archy de Berker(
Inverse problem, raw EEG and re-reference From below the surface Dr. E. Tognoli, 25 September 2008 HBBL meeting.
Brain-computer interfaces: classifying imaginary movements and effects of tDCS Iulia Comşa MRes Computational Neuroscience and Cognitive Robotics Supervisors:
Contrasts & Inference - EEG & MEG Outi Tuomainen & Rimona Weil mfd.
Visualization of dynamic power and synchrony changes in high density EEG A. Alba 1, T. Harmony2, J.L. Marroquín 2, E. Arce 1 1 Facultad de Ciencias, UASLP.
Electrophysiology. Electroencephalography Electrical potential is usually measured at many sites on the head surface More is sometimes better.
Preprocessing for EEG & MEG
Overview Contrast in fMRI v contrast in MEG 2D interpolation 1 st level 2 nd level Which buttons? Other clever things with SPM for MEG Things to bear in.
MEG/EEG Module Trainees Kai Hwang Tina Rasmussen TA Gus Sudre Bronwyn Woods Instructor Bill Eddy, Ph.D. Anna Haridis Thanks to:
Pre-processing for EEG and MEG
All slides © S. J. Luck, except as indicated in the notes sections of individual slides Slides may be used for nonprofit educational purposes if this copyright.
Artifact (artefact) reduction in EEG – and a bit of ERP basics CNC, 19 November 2014 Jakob Heinzle Translational Neuromodeling Unit.
MEG Experiments Stimulation and Recording Setup Educational Seminar Institute for Biomagnetism and Biosignalanalysis February 8th, 2005.
Subdural Grid Intracranial electrodes typically cannot be used in human studies It is possible to record from the cortical surface Subdural grid on surface.
Electroencephalography The field generated by a patch of cortex can be modeled as a single equivalent dipolar current source with some orientation (assumed.
Electroencephalography and the Event-Related Potential
Brain Electrical Source Analysis This is most likely location of dipole Project “Forward Solution” Compare to actual data.
1 Affective Learning with an EEG Approach Xiaowei Li School of Information Science and Engineering, Lanzhou University, Lanzhou, China
M/EEG pre-processing Holly Rossiter
General Linear Model & Classical Inference
Closed and Open Electrical Fields
The M/EEG inverse problem and solutions Gareth R. Barnes.
General Linear Model & Classical Inference Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM M/EEGCourse London, May.
All slides © S. J. Luck, except as indicated in the notes sections of individual slides Slides may be used for nonprofit educational purposes if this copyright.
M/EEG pre-processing Vladimir Litvak Wellcome Trust Centre for Neuroimaging UCL Institute of Neurology.
EEG / MEG: Experimental Design & Preprocessing Lena Kästner Thomas Ditye.
EEG / MEG: Experimental Design & Preprocessing Alexandra Hopkins Jennifer Jung.
Analysis of Temporal Lobe Paroxysmal Events Using Independent Component Analysis Jonathan J. Halford MD Department of Neuroscience, Medical University.
Pre-processing and the role of horses in the history of M/EEG Vladimir Litvak Wellcome Trust Centre for Neuroimaging UCL Institute of Neurology.
Source localization for EEG and MEG Methods for Dummies 2006 FIL Bahador Bahrami.
SENSOR LEVEL ANALYSIS AND SOURCE LOCALISATION in M/EEG METHODS FOR DUMMIES Mrudul Bhatt & Wenjun Bai.
General Linear Model & Classical Inference London, SPM-M/EEG course May 2014 C. Phillips, Cyclotron Research Centre, ULg, Belgium
Functional Brain Signal Processing: EEG & fMRI Lesson 4
All slides © S. J. Luck, except as indicated in the notes sections of individual slides Slides may be used for nonprofit educational purposes if this copyright.
Contrasts & Inference - EEG & MEG Himn Sabir 1. Topics 1 st level analysis 2 nd level analysis Space-Time SPMs Time-frequency analysis Conclusion 2.
1 Experimental Design, Contrasts & Inference - EEG & MEG Joseph Brooks (ICN) Maria Joao (FIL) Methods for Dummies 2007 Wellcome Department For Neuroimaging.
EEG / MEG: Experimental Design & Preprocessing
GazeEEGLabImporter Date: 12/12/2013 Version: 1.0 Produced by: Anton Andreev, Gipsa-lab/CNRS Contact:
EEG DATA EEG Acquisition: 256 scalp sites; vertex recording reference (Geodesic Sensor Net)..01 Hz to 100 Hz analogue filter; 250 samples/sec. EEG Preprocessing:
Principal components analysis (PCA) as a tool for identifying EEG frequency bands: I. Methodological considerations and preliminary findings Jürgen Kayser,
A direct comparison of Geodesic Sensor Net (128-channel) and conventional (30-channel) ERPs in tonal and phonetic oddball tasks Jürgen Kayser, Craig E.
Signal Processing: EEG to ERP A Darren Parker Presentation.
All slides © S. J. Luck, except as indicated in the notes sections of individual slides Slides may be used for nonprofit educational purposes if this copyright.
All slides © S. J. Luck, except as indicated in the notes sections of individual slides Slides may be used for nonprofit educational purposes if this copyright.
Methods for Dummies: Study Design and Pre-processing Tim West & Vanessa Meitanis Hans Berger- Inventor of EEG.
Event-Related Potentials Chap2. Ten Simple Rules for Designing ERP Experiments (2/2) 임원진
Electrophysiology. Neurons are Electrical Remember that Neurons have electrically charged membranes they also rapidly discharge and recharge those membranes.
General Linear Model & Classical Inference London, SPM-M/EEG course May 2016 Sven Bestmann, Sobell Department, Institute of Neurology, UCL
General Linear Model & Classical Inference Short course on SPM for MEG/EEG Wellcome Trust Centre for Neuroimaging University College London May 2010 C.
Methods for Dummies M/EEG Analysis: Contrasts, Inferences and Source Localisation Diana Omigie Stjepana Kovac.
Directed Component Analysis
[Ran Manor and Amir B.Geva] Yehu Sapir Outlines Review
General Linear Model & Classical Inference
The general linear model and Statistical Parametric Mapping
M/EEG Statistical Analysis & Source Localization
Dynamic Causal Modelling for M/EEG
Machine Learning for Visual Scene Classification with EEG Data
M/EEG Statistical Analysis & Source Localization
Presentation transcript:

EEG/MEG: Experimental Design & Preprocessing Methods for Dummies 28 January 2009 Matthias Gruber Nick Abreu

Outline - Design Why EEG/MEG? What is an ERP/ERF? Interpretation/ Inferences from ERP/ ERFs –Based on prior knowledge (components) –Based on no prior knowledge Electrode montage General guidelines for a good design

Why EEG/MEG? High temporal resolution EEG: comparably cheap EEG/MEG or fMRI? –What is your hypothesis? –What method is the best to answer your question?

ERP/ ERF: Event-related Potential/ Field Definition: the average (across trials/ subjects) potential/field at the scalp relative to some specific event in time Stimulus/Event Onset What is an ERP/ ERF?

Averaging What is an ERP/ ERF?

ERPs are signal-averaged epochs of EEG that are time- locked to the onset of stimulus Non-time-locked activity (noise) is lost to averaging What is an ERP/ ERF?

sensor ERP/ERF waveforms are often interpreted in terms of their constituent components Component (def) - Scalp-recorded electrical activity that is generated by a given patch of cortex engaged in a specific computational operation How to interpret an ERP/ ERF waveform?

Any given electrode/sensor records a series of temporally overlapping latent components Latent ComponentsObserved Waveform OR many others… Components A given waveform could have arisen from many combinations of latent components

The morphology of a component is not necessarily obvious from the observed waveform when components overlap Latent ComponentsObserved Waveform Components

What to do? How can one make valid inferences about latent components from observed waveforms? Experimental design!

Focus on one specific component: Design experiment to stop other components from varying, especially temporally overlapping components Focus on components that are well-known: well-studied experimental manipulations Focus on large components: less sensitive to variations in others Focus on easily isolated components Test hypotheses that are component-independent Luck, S. J. (2005). Ten simple rules for designing ERP experiments, p , Event-Related Potentials: A Methods Handbook. MIT Design strategies

no prior knowledge = component-independent Define your ERP effect in four ways: Polarity Timing Amplitude Scalp distribution Inferences not based on prior knowledge

Condition 1 Condition 2 Fpz Word 2sWord 2s Fpz + max - max + max - max Recognized Forgotten + 5µV Polarity Timing Inferences not based on prior knowledge Amplitude Scalp distribution

Analysis of ERP effect (ANOVA design): Response (2) x Site (18)  Response (2) x Anterior-Posterior (3) x Hemisphere (2) x Inferior-Superior (3) Place Hits - CR What is my hypothesis? Where do I expect differences? Electrode Montage Memory test phase: Recollected – Correct Rejections

Frontal Central Parietal Left Right Inferior Medial Superior Anterior-Posterior (3) Hemisphere (2) Inferior-Superior (3) Analysis of ERP effect (ANOVA design): Response (2) x Sites (18)  Response (2) x Anterior-Posterior (3) x Hemisphere (2) x Inferior-Superior (3)

Specific EEG/ MEG issues: -Amplifier setting -small epochs General issues: -trial numbers -behavioural confounds -Only few conditions … developing a good design

EEG/MEG: Experimental Design & Preprocessing Methods for Dummies 28 January 2009 Matthias Gruber Nick Abreu

M/EEG Preprocessing in SPM8

Overview Goal: Raw data to signal-averaged ERPs or ERFs How: –Data conversion –Montage mapping –Specify location of sensors –Epoching –Downsampling –Filter –Artefact Removal –Signal Averaging –Rereferencing

SPM5 -> SPM8 Better conversion of data from native format to flexible matlab format New M/EEG data format Interface with user – GUI or two different scripting methods suitable for automating multi-subject data analysis Convert SPM data to FieldTrip or EEGLAB and back Source Reconstruction and Effective Connectivity (see next week’s talk)

Data conversion Native machine-dependent format  a Matlab-based, common SPM format Can also convert SPM5 data to SPM8 format by selecting the appropriate.mat file *.bdf *.mat *.dat

Data conversion “Just read” – Easy, no questions asked “Yes, define settings” “Continuous v. trials” – Is machine-dependent data already divided into trials? Follow-up q’s (see SPM8 manual) “Which channels should be converted?”

Montage mapping Refine the number and types of channels used for further processing User-defined –Script (see SPM8 manual) or GUI

Montage mapping Rename channel labels Delete any unwanted channels (delete rows) Review channel mapping Set up difference potentials (vEOG, hEOG) [1 -1]

Prepare (Specify location of sensors) SPM can recognize common EEG setups (extended 1020, Biosemi, EGI) based on channel labels and assigns 'EEG' channel type and default electrode locations But sometimes the user needs to specify additional info

Prepare in SPM 1) Load recently converted file 2) Change/review channel assignments (EEG v. EOG) 3) Set sensor positions: -Assign defaults -From.mat file -From user-written locations file Change/review 2D display of electrode locations Review preprocessing steps (scripting)

Epoching Specify ‘epoch’ time window –Directly associated with triggers? Specify [prestimulus time, poststimulus time] –Offset/unrelated to triggers? Specify N x 2* matrix – each row contains start and end of a trial (in samples) Automatic baseline-correction –The mean of the pre-stimulus time is subtracted from the whole trial. Set category labels Review individual trials by hand

Epoching in SPM See if all trials are there For multisubject/batch epoching in future

Issues in Epoching Segment length: At least 100 ms should precede the event onset (for baseline correction). The time - frequency analysis can distort the signal at both ends of the segment. Have padding (see SPM8 manual). The affected segment length depends on the frequency in an inverse manner (length ms ~ 2000/freq Hz) The segment should not be too long nevertheless, the longer it is the bigger the chance to include an artefact! (Tomalski & Kadosh 2008, MfD)

Downsampling Convert large dataset into smaller files –Useful when dealing with many subjects’ data 512 Hz (large file)  200 Hz (takes up less than 50% amount of space as original file) Set new sampling rate (must be smaller than initial value)

Filtering Why filter? –EEG consists of a signal plus noise – Some of the noise is sufficiently different in frequency content from the signal that it can be suppressed simply by attenuating different frequencies, thus making the signal more visible Non-neural physiological activity (skin/sweat potentials) Noise from electrical outlets

Filtering SPM8 invokes Butterworth filter –Bandpass filter: e.g., 0.1 – 40 Hz Caution –Any filter distorts at least some part of the signal –Gamma band activity occupies higher frequencies compared to standard ERPs

Artefact Removal Problem: Some trials contain BOTH signal of interest & a large amount of signal from other sources What causes artefacts? –Eye movement –Eye blinks –Head movement Talking, itching, etc. –Sweating –Swelling –‘Boredom’ alpha waves

Artefact Removal Avoid having artefacts in the first place –Blinking – Avoid contact lenses – Build ‘blink breaks’ into your paradigm – If subject is blinking too much – tell them –EMG – Ask subjects to relax, shift position, open mouth slightly –Alpha waves – Ask subject to get a decent night’s sleep beforehand – Have more runs of shorter length – talk to subject in between – Vary ISI – alpha waves can become entrained to stimulus

Artefact Removal Hand-picked Use of a more sophisticated Matlab algorithm Automatic SPM functions –Thresholding 2 passes (1 st – bad channels, 2 nd – bad trials) Note: no change to data, just tagged to be rejected –Robust averaging Estimates weights (0-1) indicating how artefactual a trial is

Signal Averaging S/N ratio increases as a function of the square root of the number of trials. As a general rule, it’s always better to try to decrease sources of noise than to increase the number of trials.

Rereferencing Set appropriate reference (true, unbiased zero value) –Use of a single electrode, in theory free from any neuronal activity of interest e.g., mastoid, vertex –Use of average across multiple electrodes, less susceptible to bias due to electrode location “virtual electrode”

Rerefencing in SPM Familiar function – ‘Montage’ Reference to A1 electrode

Rereferencing in SPM Rereference to average electrode N = number of EEG channels Diagonals of matrix = (N-1)/N All other values in matrix = -1/N

References S. J. Kiebel: 10 November ppt-slides on ERP analysis at J. Brooks and M. Joao: 13 February ppt-slides on EEG & MEG Experimental Design at G. Galli: ppt-slides on methodological issues about ERP analyses. Presented at the CEUK Workshop 2008 in Stirling. Todd, C. Handy (ed.) Event-Related Potentials: A Methods Handbook. MIT Luck, S. J. (2005). An Introduction to the Event-Related Potential Technique. MIT Press.

Thank you!