Top Banner
The Impact of PSO based Dimension Reduction in EEG study Adham Atyabi, Martin Luerssen, Sean Fitzgibbon, and David M. W. Powers Scool of Computer Science, Engineering and Mathematics, Flinders University, SA, Australia {Adham.Atyabi,Martin.Luerssen,Sean.Fitzgibbon, David.Powers}@flinders.edu.au Abstract. High dimensionality nature of EEG data caused by the use of high number of electrodes and long periods of task time is one of the drawbacks in EEG study. Evolutionary based approaches are alternative methodologies to conventional dimension reduction methods with the advantage of not requiring the entire recording sessions for operation. Particle Swarm Optimization (PSO) is an Evolutionary method that achieves performance through evaluation of several generations of pos- sible solutions. This study investigates the feasibility of a 2 layer PSO structure for synchronous reduction of both electrode and task period dimensions using 4 motor imagery EEG data. The results indicate the potential of the proposed PSO paradigm for dimension reduction with non significant lost in classification performance in addition to feasibility to be used in subject transfer applications. Keywords: Particle Swarm Optimization, Electroencephalogram, Brain Computer Interface 1 Introduction Electroencephalogram (EEG) is a non-invasive technique for signal acquisition that records variations of surface potential from scalp using some electrodes. The dimensions of the EEG data is measured as a factor of number of used electrode for signal acquisition and the number of extracted feature points during the task period (epoch). The high dimensional nature of EEG data caused by the use of high number of electrodes (up to 256 electrodes) with long task periods (from few seconds to several hours) makes it unsuitable for being used with on-line systems specially with EEG based Brain Computer Interface (BCI). Dimension Reduction (DR) is a preprocessing step that reduces the dimension of the EEG data through the use of some techniques. Conventional decomposition methods such as Principle Component Analysis (PCA), Singular Value Decomposition (SVD), and Common Spatial Pattern (CSP) reduces the dimensions of the data by isolating a set of features or electrodes that comply with some certain criteria regardless of their impact on classification. In addition, these techniques require the entire trials of a recording session of subject for the reduction process.
12

The Impact of PSO based Dimension Reduction in EEG study

Apr 25, 2023

Download

Documents

Jason Groves
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: The Impact of PSO based Dimension Reduction in EEG study

The Impact of PSO based Dimension Reduction

in EEG study

Adham Atyabi, Martin Luerssen, Sean Fitzgibbon, and David M. W. Powers

Scool of Computer Science, Engineering and Mathematics,Flinders University, SA, Australia

{Adham.Atyabi,Martin.Luerssen,Sean.Fitzgibbon,

David.Powers}@flinders.edu.au

Abstract. High dimensionality nature of EEG data caused by the useof high number of electrodes and long periods of task time is one of thedrawbacks in EEG study. Evolutionary based approaches are alternativemethodologies to conventional dimension reduction methods with theadvantage of not requiring the entire recording sessions for operation.Particle Swarm Optimization (PSO) is an Evolutionary method thatachieves performance through evaluation of several generations of pos-sible solutions. This study investigates the feasibility of a 2 layer PSOstructure for synchronous reduction of both electrode and task perioddimensions using 4 motor imagery EEG data. The results indicate thepotential of the proposed PSO paradigm for dimension reduction withnon significant lost in classification performance in addition to feasibilityto be used in subject transfer applications.

Keywords: Particle Swarm Optimization, Electroencephalogram, BrainComputer Interface

1 Introduction

Electroencephalogram (EEG) is a non-invasive technique for signal acquisitionthat records variations of surface potential from scalp using some electrodes. Thedimensions of the EEG data is measured as a factor of number of used electrodefor signal acquisition and the number of extracted feature points during the taskperiod (epoch). The high dimensional nature of EEG data caused by the use ofhigh number of electrodes (up to 256 electrodes) with long task periods (fromfew seconds to several hours) makes it unsuitable for being used with on-linesystems specially with EEG based Brain Computer Interface (BCI). DimensionReduction (DR) is a preprocessing step that reduces the dimension of the EEGdata through the use of some techniques. Conventional decomposition methodssuch as Principle Component Analysis (PCA), Singular Value Decomposition(SVD), and Common Spatial Pattern (CSP) reduces the dimensions of the databy isolating a set of features or electrodes that comply with some certain criteriaregardless of their impact on classification. In addition, these techniques requirethe entire trials of a recording session of subject for the reduction process.

Page 2: The Impact of PSO based Dimension Reduction in EEG study

2 Lecture Notes in Computer Science: Authors’ Instructions

Evolutionary based approaches are common alternatives for conventionalmethods due to their capabilities in terms of addressing the short comings ofsuch methods. This study investigates the potential of an Evolutionary basedparadigm proposed in [1] to be used with a dataset containing EEG data of3 healthy subjects performing 4 motor imagery tasks in multiple sessions. Theoutline of the study is as follows: Section 2 introduces the used Evolutionarybased paradigm for synchronous feature and electrode reduction. Section 3 pro-vides details about the used EEG data and the applied preprocessing techniques.Conducted experiments and the achieved results are presented in section 4. Con-clusion is made in section 5.

2 Evolutionary based DR

several studies employed evolutionary methods such as Genetic Algorithm (GA)[2–6], Particle Swarm Optimization (PSO) [7–10], and Ant Colony Optimization(ACO) [11] for either electrode or feature reduction in EEG study. The usedparadigm in majority of these studies is based on generating populations ofpossible solutions (subsets of indexes for either feature or electrode dimensions)and smoothly guide the optimization toward including features or electrodesthat improve the overall classification performance. To do so, in most casesthe EEG data is divided to two subsets of training and testing sets and thesubset of indexes that results in the best discrimination of the performed taskis chosen as the final solution. Despite the encouraging results achieved by suchparadigm it is reasonable to expect data contamination through such paradigmdue to the fact that the final product is tuned to perform well on the testingset and it is likely to have low generalizability. Atyabi et al., in [1] and [12],suggested the addition of an extra evaluation step in the paradigm that allowsthe evaluation of the final product on an unseen set of data that is not being usedwithin the previous selection/evaluation stages. The results indicate the lack ofgeneralizability in the final product. This issue is resolved by introducing threenew index sets representing the best performing set on validation set, testingset, and most commonly used indexes. The results indicate the superiority ofthe set representing most commonly used indexes.

In [1], a new paradigm featuring a 2 layer PSO structure that allows over90% DR through synchronous reduction of both feature and electrode dimen-sions is used. Although the study reports encouraging results through the use ofmost commonly used indexes, the fact that only one dataset containing 2 motorimagery tasks is used for assessment prevents the conclusion about feasibilityof such paradigm in terms of being used as DR operator for motor imageryEEG data. The first objective of this study is to further analyze the proposedparadigm using a more complicated dataset featuring 4 motor imagery tasks.

In [13] the proposed paradigm in [1] is used in an inclusion with two frame-works to investigate Subject Specificity and Task Specificity in a subject transferstudy. The results indicate the possibility of improving the classification perfor-mance through the use of combination of commonly used indexes and a frame-

Page 3: The Impact of PSO based Dimension Reduction in EEG study

Lecture Notes in Computer Science: Authors’ Instructions 3

work that provides Task Specificity. The second objective of this study is tofurther analyze this issue using a dataset of 4 motor imagery tasks. The pro-posed PSO paradigm and the used frameworks for Subject and Task Specificity

are discussed in following section.

2.1 PSO Paradigm

Particle Swarm Optimization (PSO) is a population-based method that achievesperformance through local and global interactions among particles (members ofpopulation). PSO uses parameters such as velocity (v), position in the search/solutionspace (x), acceleration coefficients ( c1 and c2), and inertia weight (w) in its for-mulation and has limited memory containing the best found solution with eachparticle (member of the population) and the swarm denoted as Pbest) and Gbest

respectively. PSO achieves performance through updating the solutions in thepopulation with respect to local and global found solutions iteratively using Eqs.2 and 1 [14].

Vi,j(t) = w × Vi,j(t− 1) + Ci,j + Si,j

Ci,j = c1r1,j × (pi,j(t− 1)− xi,j(t− 1))Si,j = c2r2,j × (gi,j(t− 1)− xi,j(t− 1))

(1)

xi,j(t) = xi,j(t− 1) + Vi,j(t) (2)

The used PSO paradigm in this study follows a 2 layer swarm notation. Thepseudo-code is illustrated in 1 and 2. In the pseudo-code, the subset of extractedindexes that represent the chosen electrode and feature indexes is referred to asa Mask and the swarm is a population of masks.

Algorithm 1 PSO based Feature & Electrode reduction

Initialization: creates two instance of the population (P1 andGbest). Each sub-swarmPi represents a mask containing i) set of n × k out of N × K possible features (inPSO notation, this can be considered as xi,j for i ∈ [1...n] and k ∈ [1...k]), ii) a setof n out of N electrodes, iii) best achieved mask denoted as Pbest, iv) a Velocityvector denoted as vi for i ∈ [1...n].Gbest represent a mask containing i) set of n× k out of N ×K possible features, ii)a set of n out of N electrodes, and iii) the best achieved mask denoted as Pbest.Evaluation

repeatUpdating the population: Update the population using algorithm 2.Evaluation: Evaluate all members of the population (sub-swarms) using a classi-fier.Update Bests: Update Personal (Pbest) and Global (Gbest) Best.

until (Termination: the maximum iteration is achieved or the best member of thepopulation (Global Best) has reached to the desired optimum)Final Evaluation: Reevaluate the best mask of the swarm.

Page 4: The Impact of PSO based Dimension Reduction in EEG study

4 Lecture Notes in Computer Science: Authors’ Instructions

Algorithm 2 Pseudo-code for Updating the Population

Find the top 10 candidates: Sort particles based on their classification performanceand only preserve the top 10.for each particle Pi do

1) Generate a child particle with new set of electrodes that are positioned in nearbyareas.2) Generate a child particle with new set of electrodes that are positioned in thesame areas.3) Generate a child particle with new set of n× k features using velocity vector vand position matrix x and update equations 1 and 2.4) Generate a child particle with new set of randomly chosen electrodes that arepositioned in the same areas and a new set of n× k features using velocity vectorv and position matrix x and update equations 1 and 2.

end for

In [1] and [13], the proposed paradigm is used in a 10 × 20 cross validation(CV) resulting three sets of training, validation and testing with the ratio of0.9, 0.05, and 0.05 among which the training and the validation are used for theproduction of final solution in each fold and the testing set is used within thefinal evaluation step to assess the generalizability of the suggested masks.

2.2 Subject and Task Specificity

The proposed PSO based DR paradigm in [1] is used to investigate its feasibilityfor subject transfer through two frameworks (Frame work 1 and 2) representingSubject Specificity and Task Specificity in [13]. These frameworks are demon-strated with diagrams in Figs. 1 and 2.

The achieved results in [13] indicate feasibility of the combination of subsetsof most commonly used indexes in the applied 10 × 20 CV ( denoted as Com-Mask) and Framework 2 and superiority of Task Specificity compared to Subject

Specificity in a 2 motor imagery dataset.

3 Dataset

EEG data from the dataset IIIa of BCI Competition III is used [18]. The datasetcontains EEG data of 3 healthy subjects (k3b, k6b, l1b) performing 4 motorimagery tasks (left hand, right hand, foot, tongue). The sample rate is 250Hz andband pass filter in the range of 1Hz and 50Hz is applied. 60 electrodes are usedand the task period is set to 3s [18]. To be consistent with previous studies [1, 12,12] the first and last 0.5s of each epoch iare considered as pre and post transitionperiods and omitted and the signal is sub-windows to 0.5s. Common AverageReferencing (CAR) and Demeaning (D) are the applied and frequency featuresare extracted. Extreme Learning Machine (ELM) with sigmoid kernel and 80nodes is used for internal evaluation of particles in the swarm and polynomialSVM and a modified single layer perceptron that incorporates early stopping are

Page 5: The Impact of PSO based Dimension Reduction in EEG study

Lecture Notes in Computer Science: Authors’ Instructions 5

Fig. 1. Diagram representing the appliance of Framework 1 on a dataset with 3 sub-jects. Meta dataset represent a repository that contains the extracted masks for eachfold of 10 × 20 CV and their informedness results. ValMask and TesMask represents thebest performing masks on validation and testing sets respectively. ComMask representsa subset of most commonly used indexes in 10 × 20 CV.

used for final evaluation on the testing set. All experiments follow 10 × 20 crossvalidation (CV) paradigm that creates sets with ratio of 90%, 5%, and 5% fortraining, validation and testing respectively. Bookmaker informedness is used toassess the classification performance. detail discussion about bookmaker can befound in [19–21].

4 Experimental Design and Achieved Results

This section introduced the conducted experiments for investigating the objec-tives of the study presents the achieved results. In all experiments, the PSOparadigm is parameterized to generate masks that contain 30 feature and 10electrode indexes. In velocity equation of the PSO, EQ. 1, c1 and c2 are set to0.5 and 2.5 respectively and r1 and r2 are random values in the range of 0 and 1.Linear Decreasing Inertia Weight (LDIW) is used to update the inertia weight(w1=0.2 and w2=1).

4.1 Experiment 1: The impact of PSO paradigm

This experiment investigates the impact of proposed PSO paradigm as a DRmethod. The results depicted in Figs. 3 and 4 illustrate the average achievedinformedness with either of the used classifier (Polynomial SVM, Sigmoid ELM,and modified Perceptron) within each subject (k3b, k6b, l1b) with the masksthat best represent the testing set, validation set and most commonly selectedindexes. The procedure is based on first, applying PSO paradigm in a 10 × 20CV to extract the masks and later, reapply the suggested masks to a second10 × 20 CV to assess the performance. Given that the applied PSO paradigm

Page 6: The Impact of PSO based Dimension Reduction in EEG study

6 Lecture Notes in Computer Science: Authors’ Instructions

Fig. 2. Diagram representing the appliance of Framework 2 on a dataset with 3 sub-jects. Super Subject represent the EEG dataset resulted by the concatenation of prepro-cessed EEG signals of two other subjects that performed similar tasks. The preprocess-ing stage include demeaning, common average referencing, and extraction of frequencyfeatures. ValMask and TesMask represents the best performing masks on validationand testing sets respectively. ComMask represents a subset of most commonly usedindexes in 10 × 20 CV.

reduces approximately 90% of the dimensions of the data, the lost of average 0.1informedness with in subjects is likely to be acceptable. Among the used masksand classifiers, combination of common mask and polynomial SVM shows betterperformance across subjects. This is likely to be due to the fact that this maskrepresent provides better generalizability since it represent the indexes that ap-peared in most solutions while in each subject ValMask and Tesmask representsthe masks that are fine tuned on validation and testing sets in the first 10 ×

20 CV. The results achieved by each subject without any dimension reductionis included in figures to help understanding the impact. This is illustrated asFullSet in Figs. 3 and 4.

4.2 Experiment 2: Subject Specificity

This experiment is designed to investigate the feasibility of the extracted masksthrough PSO paradigm for Subject Specificity using Framework 1. The procedureis to use the masks generated by PSO on each subject on others. It is noteworthythat in experiment 1 the extracted masks through the first layer10 × 20 CVwhere fine tuned on 95% of the data within different folds of CV, contaminationbetween training and testing samples is possible. This issue can be resolvedthrough this experiment given that the used masks are generated based on theapplied procedure on EEG data of other subjects.

The issue of Subject Specificity is investigated with in two experiments. As-suming three target subjects (k3b, k6b, l1b), in experiment 2 (a) the masksgenerated on the EEG data of another subject is used to reduce the dimensionsof the target subject. As an instance, assuming subject k3b as target subject, twoexperiments are conducted to investigate the impact of masks originated from

Page 7: The Impact of PSO based Dimension Reduction in EEG study

Lecture Notes in Computer Science: Authors’ Instructions 7

Fig. 3. The feasibility of the used masks on subject k3b and k6b (Exp. 1).

subject k6b and subject l1b separately. In Fig. 5 this is denoted as k6b− > k3band l1b− > k3b respectively.

In experiment 2b the masks extracted from two subjects (individually) arecombined together in a meta dataset following the description of Framework 1in Fig. 1. As an instant, assuming subject k3b as the target subject, this issueis illustrated as k6bl1b− > k3b in Fig. 6.

4.3 Experiment 3: Task Specificity

This experiment is designed to investigate the feasibility of the extracted masksthrough PSO paradigm for Task Specificity using Framework 2 (Fig. 2). Giventhat the used dataset only contains 3 subjects, the experiment Super Subject iscreated based on the concatenation of EEG data of 2 subjects and the thirdsubject is considered as the target subject. The results are illustrated in Fig. 7.

Page 8: The Impact of PSO based Dimension Reduction in EEG study

8 Lecture Notes in Computer Science: Authors’ Instructions

Fig. 4. The feasibility of the used masks on subject l1b (Exp. 1).

Fig. 5. (Exp. 2a).

Page 9: The Impact of PSO based Dimension Reduction in EEG study

Lecture Notes in Computer Science: Authors’ Instructions 9

Fig. 6. (Exp. 2b).

Page 10: The Impact of PSO based Dimension Reduction in EEG study

10 Lecture Notes in Computer Science: Authors’ Instructions

Fig. 7. Exp. 3

Page 11: The Impact of PSO based Dimension Reduction in EEG study

Lecture Notes in Computer Science: Authors’ Instructions 11

A comparison between the achieved performance with the conducted exper-iments indicate the potential of Framework 1 to be used for subject transfer. Inaddition, the results indicate the generalizability of the generated masks. Withinthe conducted experiments for subject transfer, the best average classificationperformance across subjects achieved in experiment 2a with the combination ofComMask (commonly selected indexes) and polynomial SVM.

5 Conclusion

This study examined the potential of a proposed PSO paradigm for dimensionreduction of EEG data in addition to investigating its feasibility for subjecttransfer through the use of two Frameworks representing Subject Specificity andTask Specificity. The results illustrate the potential of the used paradigm fordimension reduction in terms of providing generalizable solutions in addition todemonstrating encouraging performance in subject transfer problem.

The illustrated generalizability within the generated solutions of PSO paradigmis consistent with our previous findings in [1]. The results achieved from Frame-works 1 and 2 that indicate Task Specificity and Subject Specificity contradictswith our previous findings in [13]. In [13], the best overall performance achievedthrough the use of a super subject representing EEG signal concatenation of 4subjects with in Framework 2 paradigm (using 2 motor imagery dataset) whilein this study the best overall performance across subject achieved through re-applying the ComMask (commonly selected indexes) generated from one sub-ject on target subject with in Framework 1. The poor performance achieved withFramework 2 in this study is likely to be due to the lack of having enough numberof subjects with proper variation of expertise for creation of Super Subject.

Further investigation with other datasets that contain higher number of sub-jects is required.

References

1. Atyabi, A., Luerssen, M., Fitzgibbon, S. P., Powers, D. M. W.: Dimension Reductionin EEG Data using Particle Swarm Optimization, IEEE Congress on computationalIntelligence (CEC12), (2012).

2. Tov, E. Y., and Inbar, G. F. (2002), feature selection for the classification of move-ments from single movement-related potentials, IEEE transactions on neural sys-tems and rehabilitation engineering, 10(3), 170-177.

3. Dias, N. S., Jacinto, L. R., Mendes, P. M., and Correia, J. H. (2009). Feature DownSelection in Brain Computer Interface, Proceeding of the 4th international IEEEEMBS conference on Neural Engineering, 323-326.

4. Largo, R., Munteanu, C., and Rosa, A. (2005). CAP Event Detection by Waveletsand GA Tuning, WISP 2005, 44-48.

5. Zhang, X., and Wang, X. (2008). A genetic algorithm based time-Frequency Ap-proach to a Movement Prediction task, Proceeding of the 7th world congress onintelligent control and automation, 1032-1036.

Page 12: The Impact of PSO based Dimension Reduction in EEG study

12 Lecture Notes in Computer Science: Authors’ Instructions

6. Palaniappan, R., and Raveendran, P. (2002). Genetic Algorithm to select featuresfor Fuzzy ARTMAP classification of evoked EEG, 53-56, 2002.

7. Jin, J., Wang, X., and Zhang, J. (2008), Optimal Selection of EEG Electrodes viaDPSO Algorithm, Proceeding of the 7th world congress on intelligent control andautomation, 5095-5099.

8. Hasan, B. A. S., Gan, J. Q., and Zhang, Q. (2010), Multi-Objective Evolution-ary Methods for channel selection in brain Computer interface: Some PreliminaryExperimental Results, Evolutionary Computation (CEC), 2010 IEEE Congress on,1-6.

9. Hasan, B. A. S., and Gan, J. Q. (2009), Multi-Objective Particle Swarm Opti-mization for Channel Selection in Brain Computer Interface, The UK Workshop onComputational Intelligence (UKCI2009), Nottingham, UK.

10. Moubayed, N. A., Hasan, B. A. S., Gan, J. Q., Petrovski, A., and McCall, J. (2010),Binary-SDMOPSO and its application in channel selection for brain computer in-terfaces, Computational Intelligence (UKCI), 2010 UK Workshop on, 1-6.

11. Khushaba, N. R., AL-Ani, A., Al-Jumaily, A., and Nguyen, H. T., (2008), A hybridNonlinear-Discriminant Analysis Feature Projection technique, Lecture Notes inComputer Science, AI 2008: Advances in Artificial Intelligence, LNAI 5360, W.Wobcke and M. Zhang (Eds.): Springer Berlin / Heidelberg, 544550.

12. Atyabi, A., Luerssen, M., Fitzgibbon, S. P., Powers, D. M. W.: Evolutionary fea-ture selection and electrode reduction for EEG classification, IEEE Congress oncomputational Intelligence (CEC12), (2012).

13. A. Atyabi, M. Luerssen, S. P. Fitzgibbon and D. M. W. Powers: Adapting Subject-Independent Task-Specific EEG Feature Masks using PSO, IEEE Congress on com-putational Intelligence (CEC12), (2012).

14. Y. K., Hwang and P. C., Chen, A Heuristic and Complete Planner for the Clas-

sical Movers Problem, Proceedings of the 1995 IEEE International Conference onRobotics and Automation, IEEE, pp. 729-736, 1995.

15. Atyabi, A., Fitzgibbon, S. P., Powers, D. M. W.: Multiplying the milage of yourdataset with subwindowing, Proceedings of the 2011 international conference onBrain informatics (BI’11), pp. 173–184, (2011)

16. Atyabi, A., Fitzgibbon, S. P., Powers, D. M. W.: Biasing the Overlapping andNon-Overlapping Sub-Windows of EEG recording, In. IEEE International JointConference on Neural Networks (IJCNN’12), (2012)

17. Atyabi, A., Powers, D. M. W.: The impact of Segmentation and Replication onNon-Overlapping windows: An EEG study, The Second International Conferenceon Information Science and Technology (ICIST2012), China, (2012)

18. Blankertz, B., Muller, K.-R., Krusienski, D. J., Schalk, G., Wolpaw, J.R., Schlogl,A., Pfurtscheller, G., del R. Millan, J., Schroder, M., Birbaumer, N.: The BCIcompetition III:Validating alternative approaches to actual BCI problems. NeuralSyst. Rehabil. Eng., 14(2), pp. 153–159, (2006)

19. Powers, D. M. W.: Recall and Precision versus the Bookmaker. International Con-ference on Cognitive Science (ICSC-2003), pp. 529–534, (2003)

20. Powers, D. M. W.: Evaluation: From Precision, Recall and F-Measure to ROC., In-formedness, Markedness & Correlation, Journal of Machine Learning Technologies,2(1), pp. 37–63 (2011)

21. Powers, D. M. W.: The Problem of Kappa, 13th Conference of the European Chap-ter of the Association for Computational Linguistics, Avignon France, April (2012)