think and type: decoding eeg signals for a brain-computer interface virtual speller

1
THINK AND TYPE: DECODING EEG SIGNALS FOR A BRAIN-COMPUTER INTERFACE VIRTUAL SPELLER Table 2: 10 x 10 CV Confusion matrix for 5 classes of MA using data from initial training session Com puter Monitor EEG A cquisition D evice N euroscan Q uikcap Subject undergoing experim ent Sherry Liu Jia Ni 1 , Joanne Tan Si Ying 1 , Yap Lin Hui 1 , Zheng Yang Chin 2 and Chuanchu Wang 2 . [1] Nanyang Girls’ High School, 2 Linden Drive, Singapore 288683 [2] 1 Fusionopolis Way, #21-01 Connexis (South Tower), Singapore 138632 4-8H z 8-12H z 36-40H z . . . Frequency Filtering CSP CSP CSP . . . Spatial Filtering Subject’s Task EEG MIBIF4 Feature Selection NBPW Classification Text output of the speller Cue provided to the user to start / stop performing motor imagery Grid of buttons which consists of letters and predicted words with a current highlighted row and column Methodology Methodology Conclusion Conclusion Results and Results and Discussion Discussion Abstract Abstract Text Prediction Theoretical no. of trials actual no. of trials time taken/s Characters per min/ min -1 With 13 16 115 2.61 Without 23 40 267 1.12 LeftH and M otorIm agery The R est -0.2 -0.1 0 0.1 0.2 0.3 R ightH and M otorImagery The R est -0.1 0 0.1 0.2 0.3 0.4 MentalArithmetic The R est -0.1 0 0.1 0.2 0.3 0.4 The R est -0.1 0 0.1 0.2 4. Analysis of CSP plots (Figure 5) These results also tallied with the understanding of the human homunculus. The spatial patterns arising from the 3 MI achieved a distinct, focused point of activation. As AR is not a type of MI, the activation in the spatial pattern for this MA is not well-defined. Predicted Class L R T F AR True Clas s L 77.50% 13.75% 1.250% 5.000% 2.500 % R 11.25% 86.25% 0.000% 1.250% 1.250 % T 6.330% 6.330% 39.24% 21.52% 26.58 % F 2.500% 1.250% 16.25% 62.50% 7.500 % AR 11.25% 1.250% 15.00% 3.750% 68.75 % Scalp brain signals or Electroencephalogram (EEG) exhibit different characteristics during different types of mental activities. These different characteristics could be classified by a Mental Activity Brain-Computer Interface (MA-BCI) (Figure 1), which allows the control of external devices using only EEG as a control input. This technology would be potentially useful for patients who are incapable of communication due to total paralysis arising from medical conditions. With the aim of fulfilling the needs of these patients, this project investigates: first, the performance of the BCI, which employs the Filter Bank Common Spatial Pattern (FBCSP) algorithm (Figure 2) in differentiating mental activities from the EEG; second, a proposed virtual speller prototype that allows its user to type words on the computer with the EEG as the input. 1. Designed and developed the Virtual Speller in Adobe Flash ActionScript3.0 (Figure 3 and Figure 4) 2. Conducted experiments to determine the accuracy of the FBCSP algorithm of the 5 mental activities (MA) Initial training session: subject performs 5 MA to train the FBCSP algorithm to classify EEG data Training Session with BCI Visual Feedback: subject performs 400 trials of MA: 80 Left-hand (L), 80 Right-hand (R), 80 Foot (F), 80 Tongue (T) motor imageries and 80 Mental Arithmetic (AR) to determine accuracy of the computational model obtained in the initial training session. 3. Analyzed the experiment results offline to obtain accuracies of the 5 MA 10x10 Cross Validation (CV) to estimate accuracy of FBCSP algorithm on unseen data Selection of 4 MA with the highest classification accuracies for proposed Virtual Speller 4. Tested Virtual Speller Testing session with Visual Speller: subject is tasked to type ‘hello’ with and without the word predictive function to determine speller’s efficiency Characters typed per minute to determine efficiency of the Virtual Speller Denoting L=left hand; R=right hand, T= tongue, AR=mental arithmetic and F=foot. 1. Classification accuracy of 10 x10 Cross Validation (CV) on initial training data •Splits data into n=10 sets, and uses k=9 sets for constructing classifier and remaining n-k sets for validation and repeats this 10 times, with different random partitions into training and validation sets. •Average classification accuracy of 10x10 CV about 66.62±1.8785%, as shown in Table 2. 2. Classification accuracy of 10x10 CV of L,R,T,F and L,R,F,AR using initial training data •Comparison of classification accuracy of L,R,T,F and L,R,F,AR was performed to determine the optimal 4 classes. Top 4 classes are L, R, F and AR. •Testing accuracies of the combinations L,R,T,F (72.50%) and L,R,F,AR (71.88%) are highly similar and not conclusive •Accuracy of 10x10 CV, with L,R,F,T having an average accuracy of 73.86±1.8762% and L, R, F, AR having that of 79.41±1.1918%. Thus, the latter was selected. 3. Performance of Virtual Speller •The number of single trials taken by the subject to type the word “hello” is summarized in Table 3. Figure 5: Common Spatial Pattern (CSP) Plots Table 3: Number of trials (theoretical and actual) needed to type “hello” Feature Type of Mental Activity Function Type letter on screen Right-hand, Left- hand, mental arithmetic Allows the user to select his desired row or column using mental activities The steps of typing a letter are illustrated in Figure 4. Word predictive function - Reduces the need to type the full word and increases efficiency of the speller Undo function Foot Takes into account the possibility of misclassifications by BCI as well as human error Table 1: Proposed features of the Speller Figure 1: BCI subject getting ready for training Figure 2: Filter Bank Common Spatial Pattern algorithm Figure 3: Screenshot of the Virtual Speller GUI Table 2: 10 x 10 CV confusion matrix for 5 classes of MA using data from initial training session Figure 4: Flow chart illustrating usage of the Virtual Speller • Results show that four types of mental activities, left-hand (L), right-hand (R) and foot (F), and mental arithmetic (AR) could be classified with an accuracy of 76.39% and thus, employed in virtual speller • L and R are more accurate compared to other classes; algorithm used was originally designed for these two types of MI • Undo function allowed error correction, while text prediction function improved the usability of the virtual speller as it decreased the time taken to type a five-letter word by 56.39% • Future extension includes an auto-elimination feature, which automatically eliminates the letters that must not follow the previous letter chosen and L (top) versus the Rest (bottom) R (top) versus the Rest (bottom) AR (top) versus the Rest (bottom) F (top) versus the Rest (bottom)

Upload: oona

Post on 05-Jan-2016

79 views

Category:

Documents


4 download

DESCRIPTION

Text output of the speller. Cue provided to the user to start / stop performing motor imagery. Grid of buttons which consists of letters and predicted words with a current highlighted row and column. THINK AND TYPE: DECODING EEG SIGNALS FOR A BRAIN-COMPUTER INTERFACE VIRTUAL SPELLER. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: THINK AND TYPE: DECODING EEG SIGNALS FOR A BRAIN-COMPUTER INTERFACE VIRTUAL SPELLER

THINK AND TYPE: DECODING EEG SIGNALS FOR A BRAIN-COMPUTER

INTERFACE VIRTUAL SPELLER

Table 2: 10 x 10 CV Confusion matrix for 5 classes of MA using data from initial training session

Computer Monitor

EEG Acquisition

Device

Neuroscan Quikcap

Subject undergoing experiment

Sherry Liu Jia Ni1, Joanne Tan Si Ying1, Yap Lin Hui1, Zheng Yang Chin2 and Chuanchu Wang2.

[1] Nanyang Girls’ High School, 2 Linden Drive, Singapore 288683[2]1 Fusionopolis Way, #21-01 Connexis (South Tower), Singapore 138632

4-8Hz

8-12Hz

36-40Hz

.

.

.

Frequency Filtering

CSP

CSP

CSP

.

.

.

Spatial Filtering

Subject’s Task

EEG

MIBIF4

Feature Selection

NBPW

Classification

Text output of the speller

Cue provided to the user to start / stop performing

motor imagery

Grid of buttons which consists of letters and

predicted words with a current highlighted row

and column

MethodologyMethodology

ConclusionConclusion

Results and DiscussionResults and Discussion

AbstractAbstract

Text Prediction Theoretical no. of trials actual no. of trials time taken/s Characters per min/ min-1

With 13 16 115 2.61

Without 23 40 267 1.12

Left Hand Motor Imagery

The Rest

-0.2 -0.1 0 0.1 0.2 0.3

Right Hand Motor Imagery

The Rest

-0.1 0 0.1 0.2 0.3 0.4

Mental Arithmetic

The Rest

-0.1 0 0.1 0.2 0.3 0.4

Foot Motor Imagery

The Rest

-0.1 0 0.1 0.2

4. Analysis of CSP plots (Figure 5)

These results also tallied with the understanding of the human homunculus. The spatial patterns arising from the 3 MI achieved a distinct, focused point of activation. As AR is not a type of MI, the activation in the spatial pattern for this MA is not well-defined.

Predicted Class

L R T F AR

True Class

L 77.50% 13.75% 1.250% 5.000% 2.500%

R 11.25% 86.25% 0.000% 1.250% 1.250%

T 6.330% 6.330% 39.24% 21.52% 26.58%

F 2.500% 1.250% 16.25% 62.50% 7.500%

AR 11.25% 1.250% 15.00% 3.750% 68.75%

Scalp brain signals or Electroencephalogram (EEG) exhibit different characteristics during different types of

mental activities. These different characteristics could be classified by a Mental Activity Brain-Computer

Interface (MA-BCI) (Figure 1), which allows the control of external devices using only EEG as a control input.

This technology would be potentially useful for patients who are incapable of communication due to total

paralysis arising from medical conditions. With the aim of fulfilling the needs of these patients, this project

investigates: first, the performance of the BCI, which employs the Filter Bank Common Spatial Pattern

(FBCSP) algorithm (Figure 2) in differentiating mental activities from the EEG; second, a proposed virtual

speller prototype that allows its user to type words on the computer with the EEG as the input.

1. Designed and developed the Virtual Speller in Adobe Flash ActionScript3.0 (Figure 3 and Figure 4)

2. Conducted experiments to determine the accuracy of the FBCSP algorithm of the 5 mental activities (MA)

• Initial training session: subject performs 5 MA to train the FBCSP algorithm to classify EEG data

• Training Session with BCI Visual Feedback: subject performs 400 trials of MA: 80 Left-hand (L), 80 Right-hand (R), 80 Foot (F), 80 Tongue (T) motor imageries and 80 Mental Arithmetic (AR) to determine accuracy of the computational model obtained in the initial training session.

3. Analyzed the experiment results offline to obtain accuracies of the 5 MA

• 10x10 Cross Validation (CV) to estimate accuracy of FBCSP algorithm on unseen data

• Selection of 4 MA with the highest classification accuracies for proposed Virtual Speller

4. Tested Virtual Speller

• Testing session with Visual Speller: subject is tasked to type ‘hello’ with and without the word predictive function to determine speller’s efficiency

• Characters typed per minute to determine efficiency of the Virtual Speller

Denoting L=left hand; R=right hand, T= tongue, AR=mental arithmetic and F=foot.

1. Classification accuracy of 10 x10 Cross Validation (CV) on initial training data

• Splits data into n=10 sets, and uses k=9 sets for constructing classifier and remaining n-k sets for validation and repeats this 10 times, with different random partitions into training and validation sets.

• Average classification accuracy of 10x10 CV about 66.62±1.8785%, as shown in Table 2.

2. Classification accuracy of 10x10 CV of L,R,T,F and L,R,F,AR using initial training data

• Comparison of classification accuracy of L,R,T,F and L,R,F,AR was performed to determine the optimal 4 classes. Top 4 classes are L, R, F and AR.

• Testing accuracies of the combinations L,R,T,F (72.50%) and L,R,F,AR (71.88%) are highly similar and not conclusive

• Accuracy of 10x10 CV, with L,R,F,T having an average accuracy of 73.86±1.8762% and L, R, F, AR having that of 79.41±1.1918%. Thus, the latter was selected.

3. Performance of Virtual Speller• The number of single trials taken by the subject to type the word “hello” is summarized in Table 3.

Figure 5: Common Spatial Pattern (CSP) Plots

Table 3: Number of trials (theoretical and actual) needed to type “hello”

Feature Type of Mental Activity Function

Type letter on screen

Right-hand, Left-hand, mental arithmetic

Allows the user to select his desired row or column using mental activitiesThe steps of typing a letter are illustrated in Figure 4.

Word predictive function

- Reduces the need to type the full word and increases efficiency of the speller

Undo function Foot Takes into account the possibility of misclassifications by BCI as well as human error

Table 1: Proposed features of the Speller

Figure 1: BCI subject getting ready for training

Figure 2: Filter Bank Common Spatial Pattern algorithm

Figure 3: Screenshot of the Virtual Speller GUI

Table 2: 10 x 10 CV confusion matrix for 5 classes of MA using data from initial training session

Figure 4: Flow chart illustrating usage of the Virtual Speller

• Results show that four types of mental activities, left-hand (L), right-hand (R) and foot (F), and mental arithmetic (AR) could be classified with an accuracy of 76.39% and thus, employed in virtual speller

• L and R are more accurate compared to other classes; algorithm used was originally designed for these two types of MI

• Undo function allowed error correction, while text prediction function improved the usability of the virtual speller as it decreased the time taken to type a five-letter word by 56.39%

• Future extension includes an auto-elimination feature, which automatically eliminates the letters that must not follow the previous letter chosen and shorten the number of trials required, improving its usability for real-world applications

L (top) versus the

Rest (bottom)

R (top) versus the Rest (bottom)

AR (top) versus the

Rest (bottom)

F (top) versus the

Rest (bottom)