eeg signal background and real-time processing

31
EEG signal background and real-time processing Robert Oostenveld [email protected] Donders Institute, Radboud University, Nijmegen, NL Karolinska Institute, Stockholm, SE

Upload: robert-oostenveld

Post on 22-Jan-2018

649 views

Category:

Engineering


0 download

TRANSCRIPT

Page 1: EEG signal background and real-time processing

EEG signal background and real-time processing

Robert Oostenveld

[email protected]

Donders Institute, Radboud University, Nijmegen, NL

Karolinska Institute, Stockholm, SE

Page 2: EEG signal background and real-time processing

Outline

Brain activity and how to measure it

The source of EEG signals

Controlling alpha oscillations

Realtime processing and closed-loop systems

Page 3: EEG signal background and real-time processing

Brain activity

spiking activity

(local) field potentials

magnetic fields

blood flow

blood oxigenation

biochemical concentrations

Page 4: EEG signal background and real-time processing

Methods to record brain activity

(sharp-tipped electrodes)

multi electrode array (c.f. Utah array)

sEEG multitrodes

ECoG surface electrodes

(voltage sensitive dyes)

scalp EEG

MEG

NIRS

arterial spin labeling

BOLD

MRS

Page 5: EEG signal background and real-time processing

EEG Instrumentation

Page 6: EEG signal background and real-time processing

Recording EEG

Page 7: EEG signal background and real-time processing

Outline

Brain activity and how to measure it

The source of EEG signals

Controlling alpha oscillations

Realtime processing and closed-loop systems

Page 8: EEG signal background and real-time processing
Page 9: EEG signal background and real-time processing
Page 10: EEG signal background and real-time processing
Page 11: EEG signal background and real-time processing

pre-synapticaction potential

post-synapticpotential

Page 12: EEG signal background and real-time processing

electric current

Page 13: EEG signal background and real-time processing

Superposition of source activity

Page 14: EEG signal background and real-time processing

Standard electrode placement

Page 15: EEG signal background and real-time processing

High-density electrode placement

Page 16: EEG signal background and real-time processing

Outline

Brain activity and how to measure it

The source of EEG signals

Controlling alpha oscillations – and others

Realtime processing and closed-loop systems

Page 17: EEG signal background and real-time processing

Adapted from Jensen & Mazaheri (2010) Frontiers Neurosci.

a

b

c

Page 18: EEG signal background and real-time processing

Adapted from Jensen & Mazaheri (2010) Frontiers Neurosci.

a

b

c

Page 19: EEG signal background and real-time processing

Adapted from Jensen & Mazaheri (2010) Frontiers Neurosci.

a

b

c

High alpha = inattention

Low alpha = attending

Page 20: EEG signal background and real-time processing

Other brain signals used in EEG-BCI

pay attention to one feature, ignore others

SSVEP – steady state visual evoked potential

P300 – positivity around 300 ms after stimulus

imagine movements

Mu rhythm – mix of 10 and 20 Hz over sensory-motor regions

Page 21: EEG signal background and real-time processing

Outline

Brain activity and how to measure it

The source of EEG signals

Controlling alpha oscillations

Realtime processing and closed-loop systems

Page 22: EEG signal background and real-time processing

Conventional experiment

M/EEG, fMRI,...data source

analysis

stimuluspresentation hard disk

hard disk

collect many data from many subjects, analyse later

Page 23: EEG signal background and real-time processing

Realtime experiment / BCI loop

• Challenge: timely handling of incoming data, preprocessing, analysis, sending outputs

M/EEG, fMRI,...data source

preprocessingfeature extract.

analysis

stimuluspresentation

Page 24: EEG signal background and real-time processing

Buffering relaxes timing constraints...

• analysis side can pick data when convenient

• can look back in time if needed

M/EEG, fMRI,...data source

analysissoftware

stimuluspresentation

datastream or

ringbuffer

Page 25: EEG signal background and real-time processing

... and facilitates talking to different devices more easily

MEG: CTF,Neuromag

fMRI:Siemens

EEG: TMSI, Biosemi, OpenBCI

NIRS:Artinis

analysissoftware

FieldTripbuffer

ECoG:Neuralynx,Micromed

Page 26: EEG signal background and real-time processing

Multiple applications for analysis etc.

applications can communicate through buffer („events“)

FieldTripbuffer

analysissoftware

analysissoftware

otherplatforms

onlinedisplay

MEG: CTF,Neuromag

fMRI:Siemens

EEG: TMSI, Biosemi, OpenBCI

NIRS:Artinis

ECoG:Neuralynx,Micromed

Page 27: EEG signal background and real-time processing

Extends naturally to pipelines

EEG system

„raw“EEGdata

translate into control signals

filter & re-reference

„clean“EEG data

monitor data qualitye.g. drift

loose electrodes

Page 28: EEG signal background and real-time processing

Concepts of pipeline sequence

artifactdetection

spectral estimation

classificationor regression

rawdata

“control” signal

many numbers few numbers

Page 29: EEG signal background and real-time processing

amplifier analysis computer

storage

Controlled device

Experimental controlTherapeutic operator

Subject

data

feedback signal

EE

G

co

ntro

l sig

na

l

da

taOptimization

Behavior, analysis and control signals

In green the basic minimal BCI setup.

In pink the additional feedback signal for a neurofeedback system.

In orange the registration and storage of all data to reconstruct and analyze the neurofeedback system.

In yellow the optimization of the analysis and/or control.

In red the control of the experimentor or therapist.

co

ntr

ol fe

ed

back

Page 30: EEG signal background and real-time processing
Page 31: EEG signal background and real-time processing

Pyt

ho

nm

od

ule

s

Red

is

FieldTrip buffer

USBCV/gate

webserver

USB-MIDI interface

OpenBCIinterface

audience/subjectartist/performer

scientist/engineer