91
1 Biomedical signal processing engineer and Data Acquisition specialist PhD students in Biomedical Engineering at Tehran university Foroogh Najafi Basics of EEG recording and signal processing in brain mapping [email protected]

Basics of EEG recording and signal processing in brain

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Basics of EEG recording and signal processing in brain

1

Biomedical signal processing engineer and Data Acquisition specialist

PhD students in Biomedical Engineering at Tehran university

Foroogh Najafi

Basics of EEG recording and signal processing in brain mapping

[email protected]

Page 2: Basics of EEG recording and signal processing in brain

Neuroimaging/Brain Imaging

• is the use of various techniques to either directly or indirectly image the structure, function, of the nervous system

2

Page 3: Basics of EEG recording and signal processing in brain

Brain imaging

3

Structural Functional

X-ray

MRI

CT

fMRI

PET

SPECT

EEG fNIRS

fMRI

QEEG X-ray MRI

Page 4: Basics of EEG recording and signal processing in brain

4

Data acquisition Data preprocess

Data-processing – feature extraction

Producing result/output

Statistical test

Feature selection

classification

Classification performance measurement

Page 5: Basics of EEG recording and signal processing in brain

5

Data acquisition Data preprocess

Data-processing – feature extraction

Producing result/output

Statistical test

Feature selection

classification

Classification performance measurement

Page 6: Basics of EEG recording and signal processing in brain

6

Stage 1 : Data acquisition

Page 7: Basics of EEG recording and signal processing in brain

Outline

• Part 1:• Neural basis of the EEG • EEG recording setup

• Part 2:• Rest EEG vs Task based EEG• Task designing

• Part 3:• EEG Dataset

7

Page 8: Basics of EEG recording and signal processing in brain

Neural basis of the EEG

Part 1.1

8

Page 9: Basics of EEG recording and signal processing in brain

Neurons

• Neurons Cells within the nervous system

• Electrically excitable cell

9

Action potential

Page 10: Basics of EEG recording and signal processing in brain

10

Page 11: Basics of EEG recording and signal processing in brain

EEG

• The EEG represents a set of field potentials from the summated activity of many neurons, recorded by multiple electrodes on the surface of the scalp.

• activity that occurs in the superficial layers of the cortex

11

Page 12: Basics of EEG recording and signal processing in brain

Advantages

• Direct method

• Non invasive method

• High temporal resolution

• Less cost than nearly all other brain imaging devices

• Simple to use

• portable

12

Page 13: Basics of EEG recording and signal processing in brain

Advantages

• Safe and Painless no real safety restrictions

• EEG does not aggravate claustrophobia

• EEG is silent

• Relatively tolerant of subject movement

13

Page 14: Basics of EEG recording and signal processing in brain

Disadvantages

• Low spatial resolution

• Record electrical activity of cortex

• Low signal to noise ratio

• Hard to interpret (noise, artifacts)

14

Page 15: Basics of EEG recording and signal processing in brain

15

Page 16: Basics of EEG recording and signal processing in brain

Applications of EEG

• study the brain

• clinical EEG

• Diagnostic tests

• evaluate the effect of medical and psychological treatment

16

mental illness/disorderbrain deathEpilepsyParkinsonAlzheimer's

Page 17: Basics of EEG recording and signal processing in brain

Applications of EEG

• Brain Computer Interfaces (BCI):

• Sleep Study

• Alertness, Drowsiness Detection

• Sport study

• Neuromarketing

17

Page 18: Basics of EEG recording and signal processing in brain

EEG recording setupPart 1.2

18

Page 19: Basics of EEG recording and signal processing in brain

EEG Recording setup

• Electrodes

• Amplifier

• Recording software

19

Electrode cap

Page 20: Basics of EEG recording and signal processing in brain

Electrodes

• Wet Electrodes :

• Dry Electrodes :

20

Saline-based electrode

Gel-based electrode

Page 21: Basics of EEG recording and signal processing in brain

Electrodes (cont.)

• Passive Electrodes

• Active Electrodes

21

Page 22: Basics of EEG recording and signal processing in brain

Reference Electrode

22

Page 23: Basics of EEG recording and signal processing in brain

Bipolar and unipolar measurements

23

Bipolarunipolar

Page 24: Basics of EEG recording and signal processing in brain

EEG Electrode placement

• International system

24

is an internationally recognized method to describe and apply the location of scalp electrodes in the context of an EEG exam

10–20 system or International 10–20 system

10-10 placement

10 – 5 placement

Page 25: Basics of EEG recording and signal processing in brain

10–20 system vs 10–10 system

25

Page 26: Basics of EEG recording and signal processing in brain

International 10–20 system

26

Page 27: Basics of EEG recording and signal processing in brain

27

Page 28: Basics of EEG recording and signal processing in brain

Rest EEG vs Task based EEG

Part 2.1

28

Page 29: Basics of EEG recording and signal processing in brain

Rest EEG vs Task based EEG

• Resting-state EEG

• Task based EEG

29

eyes closed

eyes open

Page 30: Basics of EEG recording and signal processing in brain

Task designing

Part 2.2

30

Page 31: Basics of EEG recording and signal processing in brain

Why we need task designing?

• We need to display different kind of stimulus

• In specific orders with specific timing

• We need to mark each event on our EEG or we want to have each event start time

31

Page 32: Basics of EEG recording and signal processing in brain

32

Page 33: Basics of EEG recording and signal processing in brain

33

100 ms 300 ms

Page 34: Basics of EEG recording and signal processing in brain

Task designing software/toolbox

• All coding language

• Psychtoolbox

• PsychoPy

34

Page 35: Basics of EEG recording and signal processing in brain

Task designing software/toolbox (cont.)

35

Page 36: Basics of EEG recording and signal processing in brain

EEG Dataset

free EEG data database

36

Page 37: Basics of EEG recording and signal processing in brain

physionet

• https://www.physionet.org/

37

EEG MOTOR MOVEMENT/IMAGERY DATASET

Sleep-EDF Database

CHB-MIT SCALP EEG DATABASE

MAMEM SSVEP DATABASE

Page 38: Basics of EEG recording and signal processing in brain

BCI Competitions

• BCI Competition I

• BCI Competition II (also called BCI Competition 2003)

• BCI Competition III

• BCI Competition IV

38

http://www.bbci.de/competition/

Page 39: Basics of EEG recording and signal processing in brain

Temple University Hospital (TUH) Corpus

• A large collection of EEG recorded in clinical settings (hospital data).

39

https://www.isip.piconepress.com/projects/tuh_eeg/

Page 40: Basics of EEG recording and signal processing in brain

40

Data acquisition Data preprocess

Data-processing – feature extraction

Producing result/output

Page 41: Basics of EEG recording and signal processing in brain

Frequency

Amplitude

41

Frequency Is speed of an oscillation/ rhythm (number

of oscillation per second)

Unit: HZ

0-100 HZ

0-45 HZ

Power: amount of energy in each frequency band

Squared amplitude

Power

Amplitude in time

Amount of synchronization among neurons or

Page 42: Basics of EEG recording and signal processing in brain

Stage 1 : Preprocessing

42

Stage 1 : Preprocessing

Page 43: Basics of EEG recording and signal processing in brain

Outline

• Preprocessing

• EEG Artifact

• EEG Preprocessing method

43

Page 44: Basics of EEG recording and signal processing in brain

1st stage: Preprocessing

• Artifact rejection and noise removal

• Normalization

• Signal segmentation

44

Page 45: Basics of EEG recording and signal processing in brain

What is an artifact or noise in EEG?

• Any unwanted signal that appears with your signal(data) and prevent you to see or analysis the main signal(data)

45

Page 46: Basics of EEG recording and signal processing in brain

46

Page 47: Basics of EEG recording and signal processing in brain

47

EEG Artifact

Page 48: Basics of EEG recording and signal processing in brain

What we could do?

• Prevent it :• Take control step so we have as MINIMUM as possible unwanted signal

• Clean it and try to remove it :• Artifact removal method in preprocessing stage

48

Page 49: Basics of EEG recording and signal processing in brain

Physiological artifacts: Eye movement (EOG)

49

Page 50: Basics of EEG recording and signal processing in brain

Physiological artifacts: Eye movement (EOG)

50Eye blink (EB), horizontal eye movement (HEM), vertical eye movement (VEM) .

Page 51: Basics of EEG recording and signal processing in brain

Physiological artifacts: Muscle activity (EMG)

51

The duration of EMG artifact varies

according to the duration of the muscle

activity; thus, it ranges from less than a

second to an entire EEG record.

Muscle Artefact (EMG ) artifact starts as low as 12 Hz

and ranges to 300 Hz.

Most of the spectrum lies between 30-150 Hz.

Page 52: Basics of EEG recording and signal processing in brain

Physiological artifacts: Muscle activity (EMG)

52

Head shaking movement (HSM), swallowing, teeth tapping (TT) and grinding teeth (GT).

Page 53: Basics of EEG recording and signal processing in brain

Physiological artifacts: Heart activity (ECG)

time locked to cardiac contractions

most easily identified by their synchronization with complexes in the ECG channel

53

Page 54: Basics of EEG recording and signal processing in brain

NON - Physiological artifacts : line artifact (50/60 HZ)

54

Page 55: Basics of EEG recording and signal processing in brain

55

Page 56: Basics of EEG recording and signal processing in brain

Preprocessing method

• Filtering (high-pass filter- low-pass filter- notch filter(Band-stop filter))

• Baseline removal

• Re-reference

• Channel rejection

• Data rejection

• ICA

• Interpolate all the removed channels

56

Page 57: Basics of EEG recording and signal processing in brain

Applying Filter

57

Page 58: Basics of EEG recording and signal processing in brain

• The frequency range of signal

• The range for signal analysis

• Processing method

• The goal of analysis

58

Sampling frequency

Page 59: Basics of EEG recording and signal processing in brain

EEG with Muscle artifact: before and after filtering

59

Page 60: Basics of EEG recording and signal processing in brain

50 HZ noise removal by applying notch filter

60

Page 61: Basics of EEG recording and signal processing in brain

Baseline correction

61

detrend

Filtering High pass filter

Page 62: Basics of EEG recording and signal processing in brain

ICA

62

Page 63: Basics of EEG recording and signal processing in brain

ICA for denoising

63

Page 64: Basics of EEG recording and signal processing in brain

64

Page 65: Basics of EEG recording and signal processing in brain

65

Lateral eye movement

Page 66: Basics of EEG recording and signal processing in brain

66

Muscle

Page 67: Basics of EEG recording and signal processing in brain

67

Page 68: Basics of EEG recording and signal processing in brain

Automatic ICA component removal(cont.)

•Visual inspection

• Toolbox and plugins

68

ICLabel

ADJUST

MARA

Page 69: Basics of EEG recording and signal processing in brain

Automatic ICA component removal(cont.)

69

Page 70: Basics of EEG recording and signal processing in brain

ADJUST

70

Page 71: Basics of EEG recording and signal processing in brain

MARA (Multiple Artifact Rejection Algorithm)

71

Page 72: Basics of EEG recording and signal processing in brain

ICLabel

• EEGLAB plug-in for automatic independent component (IC) classification.

72

trained on thousands of labeled ICs and hundreds of thousands of unlabeled ICs.

Page 73: Basics of EEG recording and signal processing in brain

Practice

73

https://labeling.ucsd.edu/tutorial/practice

Page 74: Basics of EEG recording and signal processing in brain

74

Data acquisition Data preprocess

Data-processing – feature extraction

Producing result/output

Page 75: Basics of EEG recording and signal processing in brain

Feature extraction

75

Page 76: Basics of EEG recording and signal processing in brain

Stage 2 : Processing (Feature Extraction)

Why we need feature extraction?

76

Page 77: Basics of EEG recording and signal processing in brain

77

Page 78: Basics of EEG recording and signal processing in brain

Frequency

Amplitude

78

Frequency Is speed of an oscillation/ rhythm (number

of oscillation per second)

Unit: HZ

0-100 HZ

0-45 HZ

Power: amount of energy in each frequency band

Squared amplitude

Power

Amplitude in time

Amount of synchronization among neurons or

Page 79: Basics of EEG recording and signal processing in brain

EEG Frequency Band

79

Page 80: Basics of EEG recording and signal processing in brain

Delta wave

oslow, < 3.5 Hz

oin adults

onormal sleep rhythm (stages III & IV)

80

Page 81: Basics of EEG recording and signal processing in brain

Theta wave

orhythmic, 4-7 Hz

oDrowsy, sleep (stage I)

81

Page 82: Basics of EEG recording and signal processing in brain

Alpha wave

orhythmic, 8-13 Hz

omostly on occipital lobe

o20-200 μ V

oNormal

o Physically and mentally relaxed

orelaxed awake rhythm with eyes closed

82

Page 83: Basics of EEG recording and signal processing in brain

Beta wave

oirregular, 14-30 Hz

omostly on temporal and frontal lobe

omental activity, sensory-motory recovery

oexcitement

83

Page 84: Basics of EEG recording and signal processing in brain

Gamma wave

o>30 Hz

ofrontal and central lobes

oinspiration, focus, higher learning

84

Page 85: Basics of EEG recording and signal processing in brain

85

Frequency Is speed of an oscillation/ rhythm (number

of oscillation per second)

Unit: HZ

0-100 HZ

0-45 HZ

Power: amount of energy in each frequency band

Squared amplitude

Amplitude in time

Amount of synchronization among neurons or

Page 86: Basics of EEG recording and signal processing in brain

Time-Domain analysis

• Maximum and Minimum

• Mean

• Variance

• Skewness

• kurtosis

Frequency-Domain analysis

• Absolute Power

• Relative Power

• Mean frequency

Time-Frequency analysis

• Wavelet Transform

• Hilbert–Huang transform

• STFT

Non-Linear analysis

• Approximate entropy

• Correlation dimension

86

Page 87: Basics of EEG recording and signal processing in brain

ERP

• Event-related potentials (ERPs) are very small voltages generated in the brain structures in response to specific events or stimuli (Blackwood and Muir, 1990).

• Stimulus-locked

87

Page 88: Basics of EEG recording and signal processing in brain

ERP (cont.)

88

Page 89: Basics of EEG recording and signal processing in brain

ERP (cont.)

89

Occurrence

Amplitude

Latency

Page 90: Basics of EEG recording and signal processing in brain

90

Page 91: Basics of EEG recording and signal processing in brain

Thank you for your attention

91