Pre-processing and the role of horses in the history of M/EEG Vladimir Litvak Wellcome Trust Centre for Neuroimaging UCL Institute of Neurology.

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
STATISTICAL ANALYSIS AND SOURCE LOCALISATION
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Response to a Sinusoidal Input Frequency Analysis of an RC Circuit.
EEG / MEG: Experimental Design & Preprocessing Denisa Jamecna Sofie Meyer (Archy de Berker(
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.
Digital Signal Processing
Introduction The aim the project is to analyse non real time EEG (Electroencephalogram) signal using different mathematical models in Matlab to predict.
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Pre-processing for EEG and MEG
Artifact (artefact) reduction in EEG – and a bit of ERP basics CNC, 19 November 2014 Jakob Heinzle Translational Neuromodeling Unit.
Analog Data Processing with BioProc3 Part Two EMG Analysis Techniques.
MEG Experiments Stimulation and Recording Setup Educational Seminar Institute for Biomagnetism and Biosignalanalysis February 8th, 2005.
Electroencephalography The field generated by a patch of cortex can be modeled as a single equivalent dipolar current source with some orientation (assumed.
Introduction to Wavelets
M/EEG pre-processing Holly Rossiter
EEG/MEG: Experimental Design & Preprocessing Methods for Dummies 28 January 2009 Matthias Gruber Nick Abreu.
General Linear Model & Classical Inference
General Linear Model & Classical Inference Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM M/EEGCourse London, May.
M/EEG pre-processing Vladimir Litvak Wellcome Trust Centre for Neuroimaging UCL Institute of Neurology.
Wavelet transformation Emrah Duzel Institute of Cognitive Neuroscience UCL.
ERP DATA ACQUISITION & PREPROCESSING EEG Acquisition: 256 scalp sites; vertex recording reference (Geodesic Sensor Net)..01 Hz to 100 Hz analogue filter;
EEG / MEG: Experimental Design & Preprocessing Alexandra Hopkins Jennifer Jung.
Pre-processing and the role of horses in the history of M/EEG Vladimir Litvak Wellcome Trust Centre for Neuroimaging UCL Institute of Neurology.
Functional Brain Signal Processing: EEG & fMRI Lesson 8 Kaushik Majumdar Indian Statistical Institute Bangalore Center M.Tech.
Source localization for EEG and MEG Methods for Dummies 2006 FIL Bahador Bahrami.
Source localization MfD 2010, 17th Feb 2010
SENSOR LEVEL ANALYSIS AND SOURCE LOCALISATION in M/EEG METHODS FOR DUMMIES Mrudul Bhatt & Wenjun Bai.
The Wavelet Tutorial Dr. Charturong Tantibundhit.
The other stuff Vladimir Litvak Wellcome Trust Centre for Neuroimaging UCL Institute of Neurology, London, UK.
Under Supervision of Dr. Kamel A. Arram Eng. Lamiaa Said Wed
EEG/MEG Source Localisation SPM Course – Wellcome Trust Centre for Neuroimaging – Oct ? ? Jérémie Mattout, Christophe Phillips Jean Daunizeau Guillaume.
Functional Brain Signal Processing: EEG & fMRI Lesson 4
Contrasts & Inference - EEG & MEG Himn Sabir 1. Topics 1 st level analysis 2 nd level analysis Space-Time SPMs Time-frequency analysis Conclusion 2.
Templates, Image Pyramids, and Filter Banks
Dynamic Causal Modelling for EEG and MEG
1 Experimental Design, Contrasts & Inference - EEG & MEG Joseph Brooks (ICN) Maria Joao (FIL) Methods for Dummies 2007 Wellcome Department For Neuroimaging.
NCAF Manchester July 2000 Graham Hesketh Information Engineering Group Rolls-Royce Strategic Research Centre.
Six seconds of data, recorded 5 minutes apart. Electroencephalography First recording of electrical fields of animals, Caton (1875); humans, Berger.
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:
1 Unbiased All-Sky Search (Michigan) [as of August 17, 2003] [ D. Chin, V. Dergachev, K. Riles ] Analysis Strategy: (Quick review) Measure power in selected.
SPM short – Mai 2008 Linear Models and Contrasts Stefan Kiebel Wellcome Trust Centre for Neuroimaging.
Multimodal Brain Imaging Wellcome Trust Centre for Neuroimaging, University College, London Guillaume Flandin, CEA, Paris Nelson Trujillo-Barreto, CNC,
Methods for Dummies: Study Design and Pre-processing Tim West & Vanessa Meitanis Hans Berger- Inventor of EEG.
General Linear Model & Classical Inference London, SPM-M/EEG course May 2016 Sven Bestmann, Sobell Department, Institute of Neurology, UCL
Methods for Dummies M/EEG Analysis: Contrasts, Inferences and Source Localisation Diana Omigie Stjepana Kovac.
[Ran Manor and Amir B.Geva] Yehu Sapir Outlines Review
Statistical Analysis of M/EEG Sensor- and Source-Level Data
SPM Software & Resources
QRS Detection Linda Henriksson 1.
General Linear Model & Classical Inference
The general linear model and Statistical Parametric Mapping
SPM for M/EEG - introduction
Advanced applications of the GLM: Cross-frequency coupling
Fundamentals Data.
Advanced applications of the GLM: Cross-frequency coupling
Outline Linear Shift-invariant system Linear filters
M/EEG Statistical Analysis & Source Localization
Volume 69, Issue 3, Pages (February 2011)
Outline Linear Shift-invariant system Linear filters
Statistical Analysis of M/EEG Sensor- and Source-Level Data
The general linear model and Statistical Parametric Mapping
Dynamic Causal Modelling for M/EEG
Pre-processing and the role of horses in the history of M/EEG
Guillaume Flandin Wellcome Trust Centre for Neuroimaging
Machine Learning for Visual Scene Classification with EEG Data
M/EEG Statistical Analysis & Source Localization
Advanced applications of the GLM: Cross-frequency coupling
Presentation transcript:

Pre-processing and the role of horses in the history of M/EEG Vladimir Litvak Wellcome Trust Centre for Neuroimaging UCL Institute of Neurology

Hans Berger Berger originally had intended to study astronomy. While he was serving in the German army in the early 1890s, his horse slipped down an embankment, nearly seriously injuring Berger. His sister many miles away had a feeling he was in danger and got her father to telegram him. This astonished him so much that he switched to study psychology. (Blakemore, 1977) At the beginning there was a horse

What do we need? M/EEG signals Time axis (sampling frequency and onset) Sensor locations Events Possible source of artefact

~300 sensors <128 electrodes

resting state falling asleep sleep deep sleep coma 1 sec 50 uV Evoked response vs. spontaneous activity post-stim pre-stim evoked responseongoing rythms Averaging active awake state

Arbitrary ASCII Matlab MEG CTF Neuromag BTi-4D Yokogawa EEG EEGLAB Biosemi Brainvision Neuroscan EGI ANT SPM5 … Biosig Conversion Fieldtrip raw timelock freq Convert button (fileio) spm_eeg_convert spm_eeg_ft2spm GUI script SPM8 dataset *.dat – binary data file *.mat – header file

The *.mat file contains a struct, named D, which is converted to an meeg object by spm_eeg_load. The *.dat file is memory-mapped and linked to the object. Special functions called ‘methods’ provide a simple interface for getting information from the object and updating it and ensure that the header data remain consistent. Expert’s corner

Now lets take a step back

Sensor locations MEG: Requires quite complex sensor representation including locations and orientations of the coils and the way MEG channels are derived from the sensors. Sensor representation is read automatically from the original dataset at conversion. EEG: Presently only requires electrode locations. In the future will also include a montage matrix to represent different referencing arrangements. Usually electrode locations do not come with the EEG data. SPM assigns default electrode locations for some common systems (extended 10-20, Biosemi, EGI – with user’s input). Individually measured locations can be loaded; requires co-registration.

Coordinate systems can differ in their origin, units and orientation. MNI coordinates are defined using landmarks inside the brain. –Advantage: locations can be related to anatomy –Disadvantage: co-registration to a structural scan is required Head coordinates are defined based on the fiducials. Commonly used for MEG, but the definition differs between different MEG systems. –Advantage: once the location of the head is expressed in head coordinates, it can be combined with sensor locations even if the subject moves. –Disadvantage: requires fiducials; if the fiducials are moved, the coordinate system changes. Device coordinates are defined relative to some point external to the subject and fixed with respect to the measuring device. –Advantage: head locations can be compared between different experiments and subjects. –Disadvantage: head location needs to be tracked. Understanding coordinate systems

MNI coordinates Head coordinates Device coordinates EEG Head and sensors are fixed Head and sensors are fixed Head and sensors can move MEG Head is fixed Sensors can move Head is fixed Sensors can move Head can move Sensors are fixed

In SPM8 Before co-registration –MEG sensors are represented in head coordinates in mm. –EEG sensors can be represented in any Cartesian coordinate system. Units are transformed to mm. After co-registration –MEG sensor representation does not change. The head model is transformed to head coordinates. –EEG sensors are transformed to MNI coordinates. Understanding coordinate systems

Epoching Definition: Cutting segments around events. Need to know: What happens (event type, event value) When it happens (time of the events) Need to define: Segment borders Trial type (can be different triggers => single trial type) Note: SPM8 only supports fixed length trials (but there are ways to circumvent this). The epoching function also performs baseline correction (using negative times as the baseline).

Filtering High-pass – remove the DC offset and slow trends in the data. Low-pass – remove high-frequency noise. Similar to smoothing. Notch (band-stop) – remove artefacts limited in frequency, most commonly line noise and its harmonics. Band-pass – focus on the frequency of interest and remove the rest. More suitable for relatively narrow frequency ranges.

Unfiltered5Hz high-pass 10Hz high-pass 45Hz low-pass 20Hz low-pass Filtering - examples 10Hz low-pass

Average reference EEG – re-referencing

Re-referencing can be used to sensitize sensor level analysis to particular sources (at the expense of other sources). For other purposes (source reconstruction and DCM) it is presently necessary to use average reference. This will be relaxed in the future. Re-referencing in SPM8 is done by the Montage function that can apply any linear weighting to the channels and has a wider range of applications. EEG – re-referencing

EEG MEG Planar Eye blink Artefacts

SPM8 has an extendable artefact detection function where plug-ins implementing different detection methods ca be applied to subsets of channels. Presently, amplitude thresholding, jump detection and flat segment detection are implemented. Plug-in contributions are welcome. In addition, topography-based artefact correction method is available (in MEEGtools toolbox).

In the 1870s Sir Francis Galton ( ), became the first scientific sportsman. He derived the common facial features of winning horses by photographically superimposing heads of race-winning thoroughbreds. In addition to its innovation to sports, this is a first in the extraction of common features and blurring of noise. Encouraged by his horse racing success Galton went on to identify the common physical features in the faces of violent criminals and murderers of the 1880s. He hoped to be able to detect potential violent offenders before they committed their crimes. He superimposed photographs to obtain composites that, in this case, turned out to be nothing out of the ordinary. Averaging - horses, once again.

Galton, 1880s

Kilner, unpublished Wager et al. Neuroimage, 2005 Robust averaging

Robust averaging is an iterative procedure that computes the mean, down-weights outliers, re- computes the mean etc. until convergence. It relies on the assumption that for any channel and time point most trials are clean. The number of trials should be sufficient to get a distribution (at least a few tens). Robust averaging can be used either in combination with or as an alternative to trial rejection.

So that’s how we got to this point

Generating time x scalp images

Time Quiz What is the crucial difference between M/EEG and fMRI from the point of view of data analysis ?

How can we characterize this? ?

Joseph Fourier ( ) Any complex time series can be broken down into a series of superimposed sinusoids with different frequencies Fourier analysis

Original Different amplitude Different phase Fourier analysis

Methods of spectral estimation – example 1 Morlet 3 cycles Morlet 5 cycles Morlet 7 cycles Hilbert transform Multitaper

Methods of spectral estimation – example 2 Morlet 5 cycles Morlet 7 cycles Morlet 9 cycles Hilbert transform Multitaper Morlet w. fixed window Optimized multitaper

Unweighted averaging Robust averaging Robust averaging for TF

Raw Diff [-7 -4]s LogRel [-7 -4]s Rel [ ]sLogR [-7 -4]s TF rescaling

Thanks to: The people who contributed material to this presentation (knowingly or not): Stefan Kiebel Jean Daunizeau Gareth Barnes James Kilner Robert Oostenveld Hillel Pratt Arnaud Delorme Laurence Hunt and all the members of the methods group past and present

Frequency Wavelets