classifying eeg data driven by rhythmic stimuli using a ...€¦ · source 1 do stimuli of di erent...

27
Neurobiological problem Experimental setup: description and acquisition Projective Method Statistical analysis and preliminary results Classifying EEG data driven by rhythmic stimuli using a projective test A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Work in progress FAPESP - CEPID NeuroMat January 23, 2014 A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Upload: others

Post on 05-Oct-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

Classifying EEG data driven by rhythmic stimuli

using a projective test

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas

Work in progress

FAPESP - CEPID NeuroMat

January 23, 2014

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 2: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

Neurobiological problem

Source 2

Source 1

Do stimuli of different sources produce distinct brain processes?

Can we classify them?

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 3: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

The stimuli consist of independent samples produced by different

stochastic rhythmic sources.

Each sample is a sequence of strong and weak beats, and silent units

generated by a probabilistic source

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 4: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

More Precisely

Each stochastic source is characterized by a probabilistic context

tree.

Statistical fact: each of them can be estimated consistently.

Question: Can we distinguish samples produced by different

sources?

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 5: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

Goal

Our goal is to classify EEG signals driven by rhythmic stimuli.

This is a problem of functional random data classification.

Model selection in Electroencephalographic (EEG) data is a

challenging task.

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 6: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

First rhythm: Waltz (Ternary).

Symbols:

2 - strong beat.

1 - weak beat.

0 - silence unit.

Stochastic rhythm generation:

start with a deterministic sequence

· · · 2 1 1 2 1 1 2 1 1 2 · · ·

replace in a iid way each symbol 1 by 0 with a probability (say 20%).

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 7: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

A typical sample would be

· · · 2 1 1 2 1 1 2 1 1 2 · · ·· · · 2 1 1 2 1 0 2 0 1 2 · · ·

The correspondent context tree is

0

0 1 2

1

0 1 2

2

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 8: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

Second rhythm: simplified Samba (Quaternary).

Symbols:

2 - strong beat.

1 - weak beat.

0 - constitutive silence unit or omitted weak beat.

Stochastic rhythm generation:

start with a deterministic sequence

· · · 2 1 0 1 2 1 0 1 2 1 0 1 2 · · ·

replace in a iid way each symbol 1 by 0 with a probability

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 9: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

A typical sample would be

· · · 2 1 0 1 2 1 0 1 2 1 0 1 2 · · ·· · · 2 1 0 0 2 1 0 1 2 0 0 0 2 · · ·

The correspondent context tree is

0

0

0

1 2

1

0 2

2

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 10: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

Third rhythm: Independent rhythmic units.

Symbols:

2 - strong beat.

1 - weak beat.

0 - silence unit.

Chain generation:

choose any symbol in a iid way with probability 1/3.

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 11: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

A typical sample would be

· · · 2 1 0 1 1 2 2 0 1 0 2 · · ·

The correspondent context tree is reduced to the root. Why?

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 12: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

Acquisition

Each volunteer was exposed to two rhythmic blocks of 12 min each.

Each rhythmic block is a concatenation of three rhythms:

BWIS = {Waltz, Independent, Samba}BSIW = {Samba, Independent,Waltz}

Each sample corresponding to a given rhythm lasts for 3 min and is

preceded by a one minute interval of silence.

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 13: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

We mark each stimulus onset:

Constitutive silence unit −→ V0

Weak beat −→ V1

Strong beat −→ V2

Omitted weak beat −→ Miss

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 14: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

EEG data

45

+−

Scale

v2

v1

a

v

0

v1

b

v2

v1

a

v

0

m

iss

v2

134 135 136 137 138 139 140

E27

E26

E24

E23

E22

E21

E20

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 15: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

Summarizing

Stochastic Sources modeled by Probabilistic Context Trees.

Each source can be statistically retrieved from a sample.

EEG samples associated to each context tree rhythmic source.

Are the EEG samples statistically different?

How to tackle this question?

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 16: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

Projective Method

Given two random samples of functional data, we want to test if

these two samples came from the same source.

Projective method: choose a randomly direction and perform a one

dimensional statistical test for the projected data.

This method was introduced in Cuesta-Albertos, Fraiman and

Ransford (2006).

This approach was successfully employed in the classification of

linguistic sonority data in Cuesta-Albertos, Fraiman, Galves, Garcia

and Svarc (2007).

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 17: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

Projective Method: groundwork

If the laws of two random mechanisms are such that:

one of them is not “heavy-tailed”.

the set of the directions in which the laws are the same has positive

probability.

Then: the laws are equals!

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 18: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

How to apply it?

Consider each EEG signals collected from each electrode as an

outcome of suitable random mechanisms.

Given the Samba and Waltz EEG signals, we want to test

H0 = {PSamba = PWaltz} (null hypothesis)

H1 = {PSamba 6= PWaltz} (alternative hypothesis)

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 19: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

Under H0 = {PSamba = PWaltz}, for each direction the laws are different.

Algorithm:

Choose N independent directions Wi , i = 1, · · ·N. (Brownian motions)

For each i :

Test the null at level η by projecting Samba and Waltz on Wi , using

Kolmogorov-Smirnov test.

Define

Zi =

{1, if we rejected H0

0, if we do not rejected H0.

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 20: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

Define the average value

Z̄ =1

N

N∑i=1

Zi

and reject H0 if Z̄ ≥ cα.

Question: what should be the value of cα to have a test of level α?

To answer this question we use a bootstrap procedure.

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 21: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

Planning:

To use the protective method to classify EEG samples driven by

Samba, Waltz and IID stimuli.

This has not been done yet: our data sample is not big enough.

Data is being collected!

But something can be done immediately with the small data set of the

pilot study.

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 22: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

Preliminary question: for the EEG data driven by Samba

Both Miss and V0 time intervals correspond to silence units.

However, from a structural point of view Miss and V0 are entirely

different.

Remember:

Miss is an omitted weak beat.

V0 is a constitutive silence unit.

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 23: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

From a structural point of view Miss and V0 are entirely different.

Is the brain “aware” of this distinction?

More pragmatically: is our statistical tool able to catch this

difference in the EEG signal?

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 24: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

V0 and Miss samples

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 25: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

Results

The number of elements in M and V are 54 and 126 respectively.

We applied the test with N = 1000, B = 100, η = α = 0.1.

Pilot 6:

Elect p-value

4 0.04

6 0.01

19 0.01

117 0.02

118 0.03

124 0.04

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 26: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

128 of 128 electrode locations shown

2

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

82

83

84

85

86

89

90

91

92

95

96

97

100

108

Pilot 6

1

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51 52

53

54

55

56

57

58 59

60

61

62

63

64

80

81

87

88

93

94

98

99

101

102

103

104

105106

107

109

110111

112113

114

115

116117118119

120

121122123

124

125

126127

128

Reject H0

Do not reject H0

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test

Page 27: Classifying EEG data driven by rhythmic stimuli using a ...€¦ · Source 1 Do stimuli of di erent sources produce distinct brain processes? Can we classify them? A. Duarte, R. Fraiman,

Neurobiological problemExperimental setup: description and acquisition

Projective MethodStatistical analysis and preliminary results

To be continued....

A. Duarte, R. Fraiman, A. Galves, G. Ost, C. Vargas Classifying EEG data driven by rhythmic stimuli using a projective test