OSL Preprocessing Henry Luckhoo. Wednesday, 23 October 13

Similar documents
PROCESSING YOUR EEG DATA

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

DATA! NOW WHAT? Preparing your ERP data for analysis

Artifact rejection and running ICA

Pre-processing pipeline

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

Brain-Computer Interface (BCI)

FA ST manual. FA ST developpers at the Cyclotron Research Centre

StaMPS Persistent Scatterer Exercise

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

Keywords Separation of sound, percussive instruments, non-percussive instruments, flexible audio source separation toolbox

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

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

CS229 Project Report Polyphonic Piano Transcription

Motion Artifact removal in Ambulatory ECG Signal using ICA

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

Muscle Sensor KI 2 Instructions

Package icaocularcorrection

Artifact Removal in Magnetoencephalogram Background Activity with Independent Component Analysis

Introduction to QScan

StaMPS Persistent Scatterer Practical

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

HBI Database. Version 2 (User Manual)

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

Identification, characterisation, and correction of artefacts in electroencephalographic data in study of stationary and mobile electroencephalograph

Music BCI ( )

WU-Minn HCP MEG Initial Data Release: Reference Manual

19 th INTERNATIONAL CONGRESS ON ACOUSTICS MADRID, 2-7 SEPTEMBER 2007

Image Denoising by Data Adaptive and Non-Data Adaptive Transform Domain Denoising Method Using EEG Signal

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

THE importance of music content analysis for musical

Multi echo Multi slice (MEMS) High Performance fmri at CFMRI... 1

gresearch Focus Cognitive Sciences

Music Source Separation

Smart Traffic Control System Using Image Processing

International Journal of Advance Research in Engineering, Science & Technology

Quantitative Evaluation of Artifact Removal in Real. Separation

PulseCounter Neutron & Gamma Spectrometry Software Manual

Getting started with Spike Recorder on PC/Mac/Linux

User Guide EMG. This user guide has been created to educate and inform the reader about doing EMG measurements

Removal Of EMG Artifacts From Multichannel EEG Signal Using Automatic Dynamic Segmentation

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

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

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

EEG Eye-Blinking Artefacts Power Spectrum Analysis

Central Software Suite

Vector-Valued Image Interpolation by an Anisotropic Diffusion-Projection PDE

GYROPHONE RECOGNIZING SPEECH FROM GYROSCOPE SIGNALS. Yan Michalevsky (1), Gabi Nakibly (2) and Dan Boneh (1)

Multi-Frame Matrix Capture Common File Format (MFMC- CFF) Requirements Capture

MUSI-6201 Computational Music Analysis

A Novel Video Compression Method Based on Underdetermined Blind Source Separation

Instrument Recognition in Polyphonic Mixtures Using Spectral Envelopes

Reconstruction of Ca 2+ dynamics from low frame rate Ca 2+ imaging data CS229 final project. Submitted by: Limor Bursztyn

Scout 2.0 Software. Introductory Training

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

A Comparison of Peak Callers Used for DNase-Seq Data

High Quality Digital Video Processing: Technology and Methods

Hidden Markov Model based dance recognition

Template Matching for Artifact Detection and Removal

DART Tutorial Sec'on 18: Lost in Phase Space: The Challenge of Not Knowing the Truth.

Reproducibility Assessment of Independent Component Analysis of Expression Ratios from DNA microarrays.

Heart Rate Variability Preparing Data for Analysis Using AcqKnowledge

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

EDDY CURRENT IMAGE PROCESSING FOR CRACK SIZE CHARACTERIZATION

B I O E N / Biological Signals & Data Acquisition

Configuring and Troubleshooting Set-Top Boxes

Composer Style Attribution

BEAMAGE 3.0 KEY FEATURES BEAM DIAGNOSTICS PRELIMINARY AVAILABLE MODEL MAIN FUNCTIONS. CMOS Beam Profiling Camera

Re: ENSC 370 Project Physiological Signal Data Logger Functional Specifications

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

hit), and assume that longer incidental sounds (forest noise, water, wind noise) resemble a Gaussian noise distribution.

Getting Started with the LabVIEW Sound and Vibration Toolkit

Simple LCD Transmitter Camera Receiver Data Link

Improving Frame Based Automatic Laughter Detection

Module 4: Video Sampling Rate Conversion Lecture 25: Scan rate doubling, Standards conversion. The Lecture Contains: Algorithm 1: Algorithm 2:

Reconfigurable Neural Net Chip with 32K Connections

Detecting Musical Key with Supervised Learning

... A Pseudo-Statistical Approach to Commercial Boundary Detection. Prasanna V Rangarajan Dept of Electrical Engineering Columbia University

Automatic Labelling of tabla signals

(12) Patent Application Publication (10) Pub. No.: US 2017/ A1

Speech and Speaker Recognition for the Command of an Industrial Robot

Automatic Piano Music Transcription

Voice & Music Pattern Extraction: A Review

VivoSense. User Manual Galvanic Skin Response (GSR) Analysis Module. VivoSense, Inc. Newport Beach, CA, USA Tel. (858) , Fax.

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

Lab 1 Introduction to the Software Development Environment and Signal Sampling

Procedures for conducting User QA on the scanner

Research Topic. Error Concealment Techniques in H.264/AVC for Wireless Video Transmission in Mobile Networks

InSync White Paper : Achieving optimal conversions in UHDTV workflows April 2015

Case study: how to create a 3D potential scan Nyquist plot?

SIL-2 8-Ch Analog Input Series Thermocouple, High Level, Low Level

Subjective Similarity of Music: Data Collection for Individuality Analysis

FPA (Focal Plane Array) Characterization set up (CamIRa) Standard Operating Procedure

REPORT DOCUMENTATION PAGE

ONE SENSOR MICROPHONE ARRAY APPLICATION IN SOURCE LOCALIZATION. Hsin-Chu, Taiwan

Latest Assessment of Seismic Station Observations (LASSO) Reference Guide and Tutorials

Study of White Gaussian Noise with Varying Signal to Noise Ratio in Speech Signal using Wavelet

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

Ultra-Wideband Scanning Receiver with Signal Activity Detection, Real-Time Recording, IF Playback & Data Analysis Capabilities

How-to Setup Motion Detection on a Dahua DVR/NVR

Transcription:

OSL Preprocessing

OHBA s So7ware Library OSL SPM FMRIB fastica Neuromag Netlab Custom Fieldtrip OSL can be used for task and rest analyses preprocessing sensor space analysis source reconstrucaon staasacs

Overview 1. IntroducAon to MEG artefacts 2. Manual Preprocessing 1.Visual InspecAon Con>nuous Data using oslview.m 2.MaxFilter Artefacts how to avoid them! 3.De- noising using ICA Intro to ICA and osl_africa.m 3. Automated Preprocessing (*Recommended approach) OPT (OSL s Preprocessing Pipeline)

Artefacts - Know thy Enemy Biological ar*facts Saccades, blinks, microsaccades Muscular artefacts (high freq.) Heartbeat Respira>on Electrical/other 50 Hz line noise Scanner ar>facts (jumps, spikes) Channel satura>on MRI magne>sa>on

Ul>mate Strategy Avoid Artefacts Good Experiment Design Self- ini>ated trials, with preceding blink Fixa>on prior to s>muli Monitor subject and tell them if they blink Frequent breaks Good Screening/Communica*on No make- up, unsuitable clothing e.g. bras with under- wires. Let your subject know in advance. ASK FOR HELP FROM EXPERIENCED SCANNERS

Backup Strategy Record Artefacts We can t stop someone s heart bea>ng can we? Some artefacts can t be avoided (e.g. heart beat) Recording these artefacts gives us a bezer chance to detect and remove them Record ECG, Eyetracker, EOG, ( EMG, Respira>on) This may be restricted by your specific experimental constraints. THE MORE EXTERNAL SIGNALS THE BETTER!

Con>nuous vs. Trial- wise Data MaxFilter Con3nuous Downsampling Visual inspec*on T with oslview Reject bad channels Flag BadEpochs De- noising with AfRICA Trial- wise MaxFilter Downsampling Visual inspec*on with oslview T Reject bad channels Flag BadEpochs De- noising with AfRICA Bad channel and trial rejec*on & inspec*on These are the recommended manual strategies.

Visual Inspec>on is EssenAal! All clever artefact rejecaons tools fail at some point If running the manual pipeline, you must check the output at each stage. e.g. use oslview to check pre- epoched data. You will play with this today If running the automated pipeline (OPT) inspect the diagnos*c output plots See later

oslview(d) save bu;on change channel type Right click in this space to set data to Bad save bu;on channel variances data in viewing window average absolute data whole scan, 1 sensor type BadEpoch segments

Maxfilter Maxfilter is a program provided by Elekta, which implements a spatial signal space separation (SSS) algorithm to remove the external noise (bout):

Movement Compensa>on Maxfilter can use MaxMove to compensate for head movements by reprojecting the data onto the sensors as if it had been recorded with the head in a different position. This can be used in two ways: 1) to continuously compensate for movements made within a recording session (-movecomp option) - requires that the HPI signal from the coils was recorded continuously during the MEG session 2) to bring different sessions / subjects into a common frame, making the sensor-space results more comparable between sessions / subjects (-trans option)

Maxfilter Maxfilter can also: detect bad channels downsample data, output log files for head posi*on, and other things besides - see the manual for the full set of op*ons There is a func>on to call MaxFilter called osl_call_maxfilter.m

Double Maxfilter Procedure We advise you use the following Double Maxfilter Procedure when using MaxFilter. 1. Call osl_call_maxfilter without MaxFilter S.nosss = 1; 2. Convert to SPM and open in oslview 3. Mark any channels with scanner artefacts as Bad. 4. Call osl_call_maxfilter with MaxFilter & bad channels. S.nosss = 0; S.spmfile points to the SPM file from steps 2 & 3.

De- noising with AfRICA Artefact Rejec*on using Independent Component Analysis Data driven method to split our MEG data N channels N Y samples into a linear mixture of temporally independent components and topographies. N components N samples N channels A x N components S

ICA a brief introduc>on A blind source separa>on technique for un- mixing. Y = A x S Data Mixing Matrix Underlying Sources Because we don t know A or S the problem seems ill- posed We employ the CENTRAL LIMIT THEOREM to help us.

The Central Limit Theorem Non- Gaussianity (kurtosis) A mixture of signals is always more Gaussian than the underlying signals. As long as there are enough signals! White noise sources Mixture of sources Number of mixed signals By searching for the set of maximally non- Gaussian signals we can reverse the mixing process and recover our unknown sources. That s ICA!

Classifying Components ICA un- mixes our MEG data but doesn t tell us which components are artefacts AfRICA has two ways of helping you do this: 1.) Correla>on with external signals If you have acquired ECG, Eyetracker, EOG etc AfRICA will flag components that match these. 2.) Extreme temporal kurtosis ( peakedness of the distribu>on ) Extreme high and low kurtosis. You can see both at work in osl_example_africa.m

Classifying Components ICA un- mixes our MEG data but doesn t tell us which components are artefacts AfRICA can be run in two modes: 1.) Manual In which you manually label components as artefacts (AFRICA will offer up those that are artefact channel correlated or have extreme kurtosis) 2.) Automated AFRICA automa>cally thresholds artefact channel correla>ons and kurtosis (used by OPT)

Manually Classifying Components Correla>on with external signals High Kurtosis Please approve artefacts for removal (e.g. [1 3 5] to select subset, - 1 to select all for removal, enter to keep all artefacts):

Alterna>ve: PCA/Spa>al Regression Isolate spa*al topographies associated with ar*fact 1. Find some blinks in EOG, Create average MEG blink Regress topography out of raw, con>nuous data 2. Run PCA of average blink to iden>fy spa>al topographies underlying blink

OPT (OSL s Preproc Toolbox) Fully automated pipeline OPT runs through the following pipeline steps (any of which can be op>onally turned off): 1. For Elekta Neuromag data: Runs the "Double Maxfilter Procedure" (to help Maxfilter with detec>on of bad channels): 2. Conversion of data into SPM format 3. Downsampling 4. Automated AFRICA denoising 5. High- pass filtering 6. Coregistra>on (needed if intending to do subsequent analysis in source space) 7. Epoching (If appropriate) 8. Automated outlier trial and channel rejec>on

OPT - Data Input Data can be input as: Either (only for Elekta Neuromag data): Or: Or: - the full path of the raw fif files (pre-sss) to pass to the Maxfilter - the full path of the input files that will be passed to the SPM convert function (for Elekta Neuromag data this will be post-sss.fif files - the full path of the (already converted) SPM MEEG files

Using OPT Use osl_check_opt call to setup an OPT struct: opt= osl_check_opt(opt); Requires limited mandatory settings Fills other field with default values (which can then be adjusted before running) Use osl_run_opt to run an OPT: opt=osl_run_opt(opt);

OPT Output Results are stored in the directory specified in opt.dirname, with a.opt suffix opt=osl_run_opt(opt) also returns: opt.results This contains: opt.results.logfile (file containing the matlab text output) opt.results.report: (Web page report with diagnostic plots) opt.results.spm_files: (list of SPM MEEG object files for the continuous data, e.g. to pass into an OAT analysis) opt.results.spm_files_epoched: (list of SPM MEEG object files for the epoched data, e.g. to pass into an OAT analysis)

OPT Output It is highly recommended that you inspect both the opt.results.logfile and opt.results.report, to ensure that OPT has run successfully (See the practical).

Today s Prac>cals Prac>cals + data are on the OSL Wiki Prac>cal is in two parts: 1) Manual Preprocessing Pipeline 2) Automated Preprocessing Pipeline (OPT)

Recommended Reading Look at and use the OSL Wiki! Independent Component Analysis (easy) Independent Component Analysis A Tutorial Introduc>on James V. Stone fastica & ICASSO (advanced) Hyvärinen, A., 1999. Fast and robust fixed- point algorithms for independent component analysis. IEEE Trans. Neural Netw. 10 (3), 626 634. ICA de- noising in MEG (relevant) Man>ni, D., et al. 2011. A Signal- Processing Pipeline for Magnetoencephalography Res>ng- State Networks. Brain Connec>vity, 1(1), 49 59.