You are on page 1of 21

STUDY clustering overview

STEP 1 Build a STUDY STEP 2 Precompute the data STEP 3 Precluster the data STEP 4 Cluster the data STEP 5 Edit/view the clusters

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

STUDY clustering overview

STEP 1 Build a STUDY STEP 2 Precompute the data STEP 3 Precluster the data STEP 4 Cluster the data STEP 5 Edit/view the clusters

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

Build a STUDY

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

Build a STUDY, cont'd

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

Edit dataset info

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

ICs to cluster

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

STUDY structure
STUDY =

name: 'Synonyms'
task: 'Word Recognition' notes: '' filename: 'workshop.study' cluster: [1x1 struct] history: [1x6654 char] datasetinfo: [1x10 struct] filepath: '/data/STUDY' subject: {'S02' group: {} session: [] condition: {'non-synonyms' setind: [2x5 double] etc: [1x1 struct] preclust: [1x1 struct] saved: 'no' changrp: [] >>
EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

'S05'

'S07'

'S08'

'S10'}

'synonyms'}

Subject info in STUDY structure


>> STUDY.datasetinfo

Gives information for each subject

ans =

1x10 struct array with fields:

filepath
filename subject session condition group comps index

>>

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

STUDY clustering overview

STEP 1 Build a STUDY STEP 2 Precompute the data STEP 3 Precluster the data STEP 4 Cluster the data STEP 5 Edit/view the clusters

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

Precompute data measures

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

10

Precompute data measures

Recommend: 'alpha',.01

TIP: Compute all measures and so you can test different combinations for later clustering

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

11

STUDY clustering overview

STEP 1 Build a STUDY STEP 2 Precompute the data STEP 3 Precluster the data STEP 4 Cluster the data STEP 5 Edit/view the clusters

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

12

Precluster the data

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

13

Precluster the data

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

14

STUDY clustering overview

STEP 1 Build a STUDY STEP 2 Precompute the data STEP 3 Precluster the data STEP 4 Cluster the data STEP 5 Edit/view the clusters

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

15

Cluster components

Tip: start with a lot of clusters (~25) and work down if necessary

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

16

Cluster info in 'STUDY'

>>

STUDY.cluster

Gives information for each cluster (1st cluster is always the parent cluster)

ans = 1x26 struct array with fields: name parent child More on comps cluster info sets algorithm in later centroid >> STUDY.cluster(2) tutorials preclust dipole ans = topo name: 'Cls 2' parent: {'ParentCluster 1'} topox child: [] topoy comps: [9 10 21 18 26 20 27] topoall sets: [2x7 double] topopol
algorithm: {'Kmeans' [12]} centroid: [] preclust: [1x1 struct]

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

17

STUDY clustering overview

STEP 1 Build a STUDY STEP 2 Precompute the data STEP 3 Precluster the data STEP 4 Cluster the data STEP 5 Edit/view the clusters

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

18

View and edit clusters

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

19

Plot cluster data

Plot mean scalp maps for easy reference

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

20

Plot cluster data

Choose which cluster

Choose which components

EEGLAB Workshop V, Nov. 8-10, 2007, San Diego: Scott Makeig The STUDY gui

21

You might also like