Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

48
Investigating EEG for Saliency and Segmentation Applications in Image Processing Eva Mohedano 1

Transcript of Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

Page 1: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

Investigating EEG for Saliency and Segmentation Applications in Image

Processing

Eva Mohedano

1

Page 2: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

CONTENT

1 - Problem statement

2 – Related Work

3 – Local exploration of the image

4 – Experimental set-up

5 – Signal Processing of EEG Signals

6 – Conclusions

2

Page 3: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

CONTENT

1 - Problem statement

2 – Related Work

3 – Local exploration of the image

4 – Experimental set-up

5 – Signal Processing of EEG Signals

6 – Conclusions

3

Page 4: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

1- PROBLEM STATEMENT

Design a system based on a Brain Computer Interface (BCI) wich measureElectroencephalography (EEG) signals to answer the following questions:

BCI Data Processing

Visual stimulus

EEG Signals

2 - Are the EEG signals useful to images segmentation?

1 - Are the EEG signals to compute Saliency Maps?

4

Page 5: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

1- PROBLEM STATEMENT

Design a system based on a Brain Computer Interface (BCI) wich measureElectroencephalography (EEG) signals to answer the following questions:

Data Processing

2 - Are the EEG signals useful to images segmentation?

1 - Are the EEG signals to compute Saliency Maps?

Visual stimulus

BCI

5

Page 6: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

1- PROBLEM STATEMENT

Design a system based on a Brain Computer Interface (BCI) wich measureElectroencephalography (EEG) signals to answer the following questions:

Data Processing

2 - Are the EEG signals useful to images segmentation?

1 - Are the EEG signals to compute Saliency Maps?

Visual stimulus

BCI

6

Page 7: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

1- PROBLEM STATEMENT

1 - Are the EEG signals to compute Saliency Maps?

Data Processing

Visual stimulus

BCI

Motivation:

- New way to compute maps of the atention of the imagebased directly in the reaction of the brain and not in thefeatures of the images (Niebur and Koch (1996) algorithm).

7

Page 8: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

1- PROBLEM STATEMENT

2 - Are the EEG signals useful to images segmentation?

- Reduce the user interaction to the minimun expression.

- Measure the brain reaction at local scale of the image.

Motivation:

Data Processing

Visual stimulus

BCI

8

Page 9: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

CONTENT

1 - Problem statement

2 – Related Work

3 – Local exploration of the image

4 – Experimental set-up

5 – Signal Processing of EEG Signals

6 – Conclusions

9

Page 10: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

2- RELATED WORK

2.1 – BCI in image processing applications

The oddball paradigm

10

Page 11: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

2- RELATED WORK

2.1 – BCI in image processing applications

The oddball paradigm

P300

11

Page 12: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

2- RELATED WORK

2.1 – BCI in image processing applications

The oddball paradigm

P300

• Speed rate around 10Hz

• Usually experiements centered tofind target images not target regions

12

Page 13: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

2- RELATED WORK

•8 electrodes placed mainly in theposterior points on the scalp.

• Which is consistent with thediscriminating activity typicallyproduced by a P300 ERP.[Optimising the Number of Channels inEEG-Augmented Image Search. GrahamHealy]

Event-Related Potential

13

Page 14: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

2- RELATED WORK

•8 electrodes placed mainly in theposterior points on the scalp.

• Which is consistent with thediscriminating activity typicallyproduced by a P300 ERP.[Optimising the Number of Channels inEEG-Augmented Image Search. GrahamHealy]

Event-Related PotentialHow to present the image to generate and detect this signal?

14

Page 15: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

CONTENT

1 - Problem statement

2 – Related Work

3 – Local exploration of the image

4 – Experimental set-up

5 – Signal Processing of EEG Signals

6 – Conclusions

15

Page 16: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

First Design: Sliding Window

http://www.youtube.com/watch?v=bKTGKVx58Ps

3- LOCAL EXPLORATION OF THE IMAGE

16

Page 17: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

CHALLENGE 1

• Eyes movement affect to the EEG signals – Introduce Artifacts to the signal

Opened eyes / Closed eyes. Image from the slides Dr. Ranjith Polusani

3- LOCAL EXPLORATION OF THE IMAGE

17

Page 18: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

CHALLENGE 2

• Progressive inspection may not generate a useful reaction in the EEG waves.

- Follow Oddball Paradigm and perform RSVP od the windows

P300

Suggestions meeting Thomas Ward and Nima Bidgely Shamlo :

SNAP - Simulation and Neuroscience Application Platform

3- LOCAL EXPLORATION OF THE IMAGE

18

Page 19: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

CHALLENGE 3

•Syncronitzation Problem

3- LOCAL EXPLORATION OF THE IMAGE

19

Page 20: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

CHALLENGE 4

•Size of the object / window

Grabcut Dataset – Objects of different size

Suggestions meeting Thomas Ward and Nima Bidgely Shamlo :

To use images with an homogeneus background with a salient object.The number of distractors (windows with background) must be higher than the number of targets (windows with object).

3- LOCAL EXPLORATION OF THE IMAGE

20

Page 21: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

CHALLENGE 5

•What am I seeing?

3- LOCAL EXPLORATION OF THE IMAGE

21

Page 22: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

CHALLENGE 5

•What am I seeing?

3- LOCAL EXPLORATION OF THE IMAGE

22

Page 23: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

CHALLENGES SOLUTIONS

1 - Eyes movement

2 - Progressive inspection

3 - Syncronitzation Problem

5 - What am I seeing?• Is it just noise?• Am I able to detect something?

Display a fixed window on the screen

SNAP to perform a random RSVP

First test with flashes to find ERPS

Real time visualitzation of the signal

4 - Size of the object / window Generate my own dataset

3- LOCAL EXPLORATION OF THE IMAGE

23

Page 24: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

CONTENT

1 - Problem statement

2 – Related Work

3 – Local exploration of the image

4 – Experimental set-up

5 – Signal Processing of EEG Signals

6 – Conclusions

24

Page 25: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

Second Design: Starting from the easiest case

a) Device CalibrationI. Real time visualization of Alpha wavesII. Detecting ERPS

b) Synthetic ImagesI. RSVP synthetic images fitted in the window.

c) RSVP real images

4- EXPERIMENTAL SET-UP

http://www.youtube.com/watch?v=KsgtvQkOElQ&feature=youtu.be

25

Page 26: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

a) Device Calibration

4- EXPERIMENTAL SET-UP

Is the device wellconnected?

Is the syncronitzationmethod correct ?

Am I able to detectsomething?

?

26

Page 27: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

4- EXPERIMENTAL SET-UP

a) Device Calibration

SIGNAL EXPECTED - Closed eyes – Alpha waves (8-12 Hz)

Closed-eye EEG alpha waves (10-20 channels Pz-Top, Fz-Bottom) extracted from http://blog.grahamhealy.com/

27

Page 28: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

4- EXPERIMENTAL SET-UP

a) Device Calibration

SIGNAL OBTAINED

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5-40

-20

0

20

40

Time (sec)

Am

plit

ude (

uV

)

5 seconds Closed Eyes

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5-40

-20

0

20

40

Time (sec)

Am

plit

ude (

uV

)

5 seconds Opened Eyes

28

Page 29: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

4- EXPERIMENTAL SET-UP

Finding ERPS response after a white flash

Presenting a serie of white flashes (2 seconds between the flashes)

SIGNAL EXPECTED: After the flash P100 and a negative peak between 150-200ms

a) Device Calibration

29

Page 30: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

SIGNAL OBTAINED: 60 Flashes to get the response.

Channel P100 (ms) N1 (ms)

1 130 320

2 90 210

3 90 210

4 10 220

5 110 220

6 90 210

7 10 220

8 100 22

Mean 80 23

0 100 200 300 400 500 600 700 800 900 1000-15

-10

-5

0

5

10

Time (ms)

Am

plit

ude (

uV

)

Averaged ERP waveform per channel

a) Device Calibration

Finding ERPS response after a white flash

4- EXPERIMENTAL SET-UP

30

Page 31: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

CONTENT

1 - Problem statement

2 – Related Work

3 – Local exploration of the image

4 – Experimental set-up

5 – Signal Processing of EEG Signals

6 – Conclusions

31

Page 32: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

5- SIGNAL PROCESSING OF EEG SIGNALS

1 Target

99 Distractors

100 windows per Image

Data adquisition

32

Page 33: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

5- SIGNAL PROCESSING OF EEG SIGNALS

Preprocessing: Single trial

1 2

3 4

5

7

6

8

One Image

33

Page 34: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

5- SIGNAL PROCESSING OF EEG SIGNALS

Preprocessing: Single trial - PROBLEM

- Signal very noisy

- Single Targets and Single Distractors very similar

34

Page 35: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

5- SIGNAL PROCESSING OF EEG SIGNALS

Preprocessing: Feature

Mean Absolute Amplitude looks different

Energy from 0 to 600ms

96 Distractors

96 Targets

Feature for the window presented

35

Page 36: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

5- SIGNAL PROCESSING OF EEG SIGNALS

Preprocessing: Averaged trials

1 averaged target

99 averaged distractors

Energy from 0-600 ms

36

Page 37: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

5- SIGNAL PROCESSING OF EEG SIGNALS

Preprocessing: Averaged trials

1 x 32 single repeats

99 x 32 single repeats

1 x 32 window repeats

99 x 32 single repeats

1 x 32 window repeats

99 x 32 single repeats

Average by 32

1 averaged target

99 averaged distractors

1 averaged target

99 averaged distractors

1 averaged target

99 averaged distractors

SINGLE AVERAGED

37

Page 38: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

5- SIGNAL PROCESSING OF EEG SIGNALS

Preprocessing: Averaged trials

Problem:

Too few (target) samples for training

1 averaged target

99 averaged distractors

1 averaged target

99 averaged distractors

1 averaged target

99 averaged distractors

38

Page 39: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

5- SIGNAL PROCESSING OF EEG SIGNALS

Bootstrapping

1 x 32 single repeats

99 x 32 single repeats

1 x 32 window repeats

99 x 32 single repeats

1 x 32 window repeats

99 x 32 single repeats

SINGLE

Bootstrapping

1 x 32 averaged target

99 x 1 averaged distractors

1 x 32 averaged target

99 x 1 averaged distractors

1 x 32 averaged target

99 x 1averaged distractors

AVERAGED

39

Page 40: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

5- SIGNAL PROCESSING OF EEG SIGNALS

Classification

Problem:

Unbalanced dataset for binary classification

1 x 32 averaged target

99 x 1 averaged distractors

1 x 32 averaged target

99 x 1 averaged distractors

1 x 32 averaged target

99 x 1averaged distractors

AVERAGED

40

Page 41: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

5- SIGNAL PROCESSING OF EEG SIGNALS

Classification

1 x 32 averaged targets

99 x 1 averaged distractors

1 x 32 averaged targets

99 x 1 averaged distractors

1 x 32 averaged targets

99 x 1averaged distractors

AVERAGED

Subsample

Subsample

Subsample

1 x 32 averaged targets

32 x 1 avgd distractors

1 x 32 averaged targets

32 x 1 avgd distractors

1 x 32 averaged targets

32 x 1 avgd distractors

AVERAGED

41

Page 42: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

5- SIGNAL PROCESSING OF EEG SIGNALS

Classification

1 x 32 averaged targets

32 x 1 avgd distractors

1 x 32 averaged targets

32 x 1 avgd distractors

1 x 32 averaged targets

32 x 1 avgd distractors

AVERAGED HISTOGRAM

42

Page 43: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

5- SIGNAL PROCESSING OF EEG SIGNALS

Classification

1 x 32 averaged targets

32 x 1 avgd distractors

1 x 32 averaged targets

32 x 1 avgd distractors

1 x 32 averaged targets

32 x 1 avgd distractors

AVERAGED

SVMTRAIN(linear kernel)

Classifier

43

Page 44: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

5- SIGNAL PROCESSING OF EEG SIGNALS

Classification

100 x 32 single repeatsAverage by 32

100 avgd windows

44

Page 45: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

5- SIGNAL PROCESSING OF EEG SIGNALS

Classification

100 x 32 single repeats

SVMPREDICT

ClassifierAverage by 32

100 avgd samples

45

Page 46: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

5- SIGNAL PROCESSING OF EEG SIGNALS

8 samples feature vectors

Cross validation approach 3 train + 1 test

Page 47: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

CONTENT

1 - Problem statement

2 – Related Work

3 – Local exploration of the image

4 – Experimental set-up

5 – Signal Processing of EEG Signals

6 – Conclusions

47

Page 48: Eva Mohedano, "Investigating EEG for Saliency and Segmentation Applications in Image Processing"

48

6- CONCLUSIONS

- Results from sythetic images provide and evidence that BCI devices could beused to located an object into an image.

- Simplicity of the system: Energy value from 8 channels to train SVM withlineal kernel.

Future work

-Study the impact of the number of repetitions.

- Extract better features.

-Analize data from real images.

-Tool to evaluate and compare the EEG mask (ROC, Jaccard index)