{"title": "Optimizing Multi-Class Spatio-Spectral Filters via Bayes Error Estimation for EEG Classification", "book": "Advances in Neural Information Processing Systems", "page_first": 2268, "page_last": 2276, "abstract": "The method of common spatio-spectral patterns (CSSPs) is an extension of common spatial patterns (CSPs) by utilizing the technique of delay embedding to alleviate the adverse effects of noises and artifacts on the electroencephalogram (EEG) classification. Although the CSSPs method has shown to be more powerful than the CSPs method in the EEG classification, this method is only suitable for two-class EEG classification problems. In this paper, we generalize the two-class CSSPs method to multi-class cases. To this end, we first develop a novel theory of multi-class Bayes error estimation and then present the multi-class CSSPs (MCSSPs) method based on this Bayes error theoretical framework. By minimizing the estimated closed-form Bayes error, we obtain the optimal spatio-spectral filters of MCSSPs. To demonstrate the effectiveness of the proposed method, we conduct extensive experiments on the data set of BCI competition 2005. The experimental results show that our method significantly outperforms the previous multi-class CSPs (MCSPs) methods in the EEG classification.", "full_text": "Optimizing Multi-class Spatio-Spectral Filters via\n\nBayes Error Estimation for EEG Classi\ufb01cation\n\nWenming Zheng\n\nResearch Center for Learning Science\n\nSoutheast University\n\nNanjing, Jiangsu 210096, P.R. China\nwenming zheng@seu.edu.cn\n\nZhouchen Lin\n\nMicrosoft Research Asia\nBeijing 100190, P.R. China\n\nzhoulin@microsoft.com\n\nAbstract\n\nThe method of common spatio-spectral patterns (CSSPs) is an extension of com-\nmon spatial patterns (CSPs) by utilizing the technique of delay embedding to al-\nleviate the adverse effects of noises and artifacts on the electroencephalogram\n(EEG) classi\ufb01cation. Although the CSSPs method has shown to be more power-\nful than the CSPs method in the EEG classi\ufb01cation, this method is only suitable for\ntwo-class EEG classi\ufb01cation problems. In this paper, we generalize the two-class\nCSSPs method to multi-class cases. To this end, we \ufb01rst develop a novel theory of\nmulti-class Bayes error estimation and then present the multi-class CSSPs (MC-\nSSPs) method based on this Bayes error theoretical framework. By minimizing the\nestimated closed-form Bayes error, we obtain the optimal spatio-spectral \ufb01lters of\nMCSSPs. To demonstrate the effectiveness of the proposed method, we conduct\nextensive experiments on the BCI competition 2005 data set. The experimental\nresults show that our method signi\ufb01cantly outperforms the previous multi-class\nCSPs (MCSPs) methods in the EEG classi\ufb01cation.\n\n1 Introduction\n\nThe development of non-invasive brain computer interface (BCI) using the electroencephalogram\n(EEG) signal has become a very hot research topic in the BCI community [1]. During the last sev-\neral years, a large number of signal processing and machine learning methods have been proposed\nfor EEG classi\ufb01cation [6]. It is challenging to extract the discriminant features from the EEG signal\nfor EEG classi\ufb01cation. This is because in most cases the EEG data are centered at zero and thus\nmany traditional discriminant feature extraction methods, e.g., Fisher\u2019s linear discriminant analysis\n(FLDA) [7], cannot be successfully used. Among the various EEG feature extraction methods, the\ncommon spatial patterns (CSPs) method [2] is one of the most popular. Given two classes of EEG\nsignal, the basic idea of CSPs is to \ufb01nd some projection directions such that the projections of the\nEEG signal onto these directions will maximize the variance of one class and simultaneously mini-\nmize the variance of the other class. Although CSPs have achieved great success in EEG classi\ufb01ca-\ntion, this method only utilizes the spatial information of the EEG signal. To utilize both the spatial\nand the temporal information of the EEG signal for classi\ufb01cation, Lemm et al. [3] proposed a new\nEEG feature extraction method, called common spatio-spectral patterns (CSSPs), which extended\nthe CSPs method by concatenating the original EEG data and a time-delayed one to form a longer\nvector sample, and then performed EEG feature extraction, which is similar to the CSPs method,\nfrom these padded samples. The experiments in [3] showed that the CSSPs method outperforms the\nCSPs method.\n\nA multi-class extension of the two-class CSPs method (MCSPs) was proposed by Dornhege et al.\n[4] who adopted a joint approximate diagonalization (JAD) technique to \ufb01nd the optimal spatial\n\ufb01lters. Grosse-Wentrup and Buss [5] recently pointed out that the MCSPs method has two major\n\n1\n\n\fdrawbacks. The \ufb01rst drawback is that this method lacks solid theoretical foundation with respect to\nits classi\ufb01cation error. The second one is that the selection of the optimal spatial \ufb01lters of MCSPs\nis based on heuristics. To overcome these drawbacks, they proposed a method based on mutual\ninformation to select the optimal spatial \ufb01lters from the original MCSPs result. Nevertheless, it\nshould be noted that both the MCSPs methods are based on the JAD technique, where a closed-form\nsolution is unavailable, making the theoretical analysis dif\ufb01cult.\n\nIn this paper, we generalize the two-class CSSPs method to multi-class cases, hereafter called the\nMCSSPs method. However, we do not adopt the same JAD technique used in the MCSPs method\nto derive our MCSSPs method. Instead, we derive our MCSSPs method directly based on the Bayes\nerror estimation, and thus provide a solid theoretic foundation. To this end, we \ufb01rst develop a novel\ntheory of multi-class Bayes error estimation, which has a closed-form solution to \ufb01nd the optimal\ndiscriminant vectors. Based on this new theoretic framework, we propose our MCSSPs method for\nEEG feature extraction and recognition.\n\n2 Brief Review of CSPs and CSSPs\n\ni = {xt\n\ni,j \u2208 IRd|j = 1,\u00b7\u00b7\u00b7 , mi,t} (t = 1,\u00b7\u00b7\u00b7 , ni; i = 1,\u00b7\u00b7\u00b7 , c) denote the EEG data set from\nLet Xt\nthe tth trial of the ith class, where d, c, ni, and mi,t denote the number of channels (i.e., recording\nelectrodes), the number of classes, the number of trials of the ith class, and the number of samples\n(i.e., recording points) in the tth trial of the ith class, respectively. Assume that the EEG data\nconditioned on each class follows a Gaussian distribution with a zero mean, i.e., pi(x) = N (0, \u03a3i)\n(i = 1,\u00b7\u00b7\u00b7 , c)1. Then the main task of EEG feature extraction is to \ufb01nd a linear transformation\nW \u2208 IRd\u00d7k (k < d), such that for \ufb01nite training data using the projected vectors yt\ni,j to\nclassify the EEG signal may lead to better classi\ufb01cation accuracy than using xt\ni,j.\n\ni,j = WT xt\n\n2.1 The CSPs Method\n\nFor the two-class EEG classi\ufb01cation problem, the basic idea of CSPs is to \ufb01nd a transformation\nmatrix W that simultaneously diagonalizes both class covariance matrices \u03a31 and \u03a32 [2], i.e.,\n\n(1)\nwhere \u039bi = diag{\u03bbi,1,\u00b7\u00b7\u00b7 , \u03bbi,d} (i = 1, 2) are diagonal matrices. The spatial \ufb01lters can be chosen\n(j = 1,\u00b7\u00b7\u00b7 , d). Parra et\nas the columns of W associated with the maximal or minimal ratio of \u03bb1,j\n\u03bb2,j\nal. [6] proved that the CSPs method can be formulated as the following optimization problem:\n\nWT \u03a3iW = \u039bi, (i = 1, 2),\n\n(cid:189)\n\n(cid:190)\n\n\u03c9 = arg max\n\n\u03c9\n\nmax\n\n\u03c9T \u03a31\u03c9\n\u03c9T \u03a32\u03c9\n\n,\n\n\u03c9T \u03a32\u03c9\n\u03c9T \u03a31\u03c9\n\n,\n\n(2)\n\nand this optimization problem boils down to solving the following generalized eigenvalue decom-\nposition problem:\n\n\u03a31\u03c9 = \u03bb\u03a32\u03c9.\n\n(3)\nLet \u03c91,\u00b7\u00b7\u00b7 , \u03c9d and \u03bb1,\u00b7\u00b7\u00b7 , \u03bbd be the eigenvectors and the corresponding eigenvalues of equation\n(3), then the spatial \ufb01lters \u03c9i1,\u00b7\u00b7\u00b7 , \u03c9ik can be chosen from the eigenvectors \u03c91,\u00b7\u00b7\u00b7 , \u03c9d associated\nwith the largest and the smallest eigenvalues.\nThen W = [\u03c9i1,\u00b7\u00b7\u00b7 , \u03c9ik] and the projection of Xt\n\ni with W can be expressed as:\n\nYt\n\ni = WT Xt\ni.\n\n(4)\n\n2.2 The CSSPs Method\n\nThe CSSPs method is an extension of CSPs by concatenating the original EEG data and a time-\ndelayed one to form a longer vector sample, and then performing EEG feature extraction, which\nis similar to the CSPs method, from these padded samples. More speci\ufb01cally, let \u03b4\u03c4 denote the\ntime-delay operator with the delayed time \u03c4 , i.e.,\n\ni,j) = xt\n1This model is often assumed in the literature, e.g., [5].\n\n\u03b4\u03c4 (xt\n\ni,j\u2212\u03c4 .\n\n(5)\n\n2\n\n\fThen, equation (4) can be re-written as the following:\ni + WT\n\ni = WT\n\n(0)Xt\n\n\u02c6Yt\n\n(6)\nwhere W(0) and W(\u03c4 ) are the transformation matrices on the EEG data Xt and \u03b4\u03c4 (Xt), respec-\ntively.\n\n(\u03c4 )\u03b4\u03c4 (Xt\n\ni),\n\nTo express the above equation in a similar form as CSPs, we de\ufb01ne\n\n(cid:181)\n\n(cid:182)\n\n\u02c6Xt\n\ni =\n\nXt\ni\n\u03b4\u03c4 (Xt\ni)\n\ni=1\n\nj=1\n\n3\n\n.\n\n(7)\n\nIn this way, solving the CSSPs problem boils down to solving a similar generalized eigenvalue\nproblem as de\ufb01ned in equation (3), if we use the new class covariance matrices \u02c6\u03a31 and \u02c6\u03a32 to\nreplace the original class covariance matrices \u03a31 and \u03a32, where\n\n\u02c6\u03a3i =\n\n\u02dc\u03a3i\n\ntrace( \u02dc\u03a3i)\n\n,\n\nand\n\n\u02dc\u03a3i =\n\n\u02c6Xt\n\ni( \u02c6Xt\n\ni)T .\n\n(8)\n\n(cid:88)\n\nt\n\n3 MCSSPs Based on Multi-class Bayes Error Estimation\n\nIn this section, we extend the CSSPs method to the multi-class case. To begin with, we develop a\nnovel theory of multi-class Bayes error estimation. Then we present our MCSSPs method based on\nthis Bayes error framework.\n\n3.1 Multi-class Bayes Error Estimation\n\n(cid:90)\n\nIt is well known that the Bayes error regarding classes i and j can be expressed as [7]:\n\n\u03b5 =\n\nmin(Pipi(x), Pjpj(x))dx,\n\n(9)\n\n(cid:82)(cid:112)\n\n(cid:112)\n\nwhere Pi and pi(x) are the apriori probability and the probability density function of the ith class,\nrespectively. Let \u03b5ij =\n\nPiPjpi(x)pj(x)dx. By applying the following inequality:\n\nand the assumption pi(x) = N (0, \u03a3i), we obtain the following upper bound of the Bayes error:\n\n(10)\n\nmin(a, b) \u2264\n\n\u221a\n\nab,\n\n\u2200a, b \u2265 0,\n\n(cid:33)\n\n(cid:112)\n\n(cid:195)\n\u22121\n2\n\n(cid:112)\n(cid:182)\u2212 1\n\n2\n\n(cid:33)\u2212 1\n\n2\n\n(cid:195)\n\n| \u00af\u03a3ij|\n\n(cid:112)|\u03a3i||\u03a3j|\n(cid:33)\u2212 1\n\n2\n\n| \u00af\u03a3ij|\n\n(cid:112)|\u03a3i||\u03a3j|\n(cid:195)\n(cid:112)\n\n\u03b5 \u2264 \u03b5ij =\n\nPiPj exp\n\n(11)\n2(\u03a3i + \u03a3j). The expression in exp(\u00b7) is the simpli\ufb01ed Bhattacharyya distance [7]. If\n\nwhere \u00af\u03a3ij = 1\nwe project the samples to 1D by a vector \u03c9, then the upper bound \u03b5ij becomes:\n\nPiPj\n\nln\n\n,\n\n=\n\n\u03b5ij =\n\nPiPj\n\n\u03c9T \u00af\u03a3ij\u03c9\n\n(\u03c9T \u03a3i\u03c9)(\u03c9T \u03a3j\u03c9)\n\nDe\ufb01ne u = \u03c9T \u00af\u03a3ij\u03c9 and v = \u03c9T \u2206\u03a3ij\u03c9, where \u2206\u03a3ij = 1\n\nu\u221a\nu2 \u2212 v2\n\nPiPj\n\n\u03b5ij =\n\n(cid:112)\n\n(cid:181)\n(cid:80)c\nestimated as \u03b5 \u2264(cid:80)c\u22121\n\u03b5 \u2264 c\u22121(cid:88)\nc\u22121(cid:88)\n\ni=1\n\ni=1\n\nc(cid:88)\nc(cid:88)\n\nj=i+1\n\n=\n\ni=1\n\nj=i+1\n\n(cid:181)\n\n(cid:112)\n\n=\n\nPiPj\n\n1 \u2212\n\n(cid:179) v\n\nu\n\n\u03b5ij \u2264 c\u22121(cid:88)\n(cid:112)\n\ni=1\n\nc(cid:88)\n(cid:112)\nc(cid:88)\nc(cid:88)\n\nj=i+1\n\nPiPj\n\n(cid:112)\n\nPiPj \u2212 1\n8\n\n.\n\nPiPj\n\n(cid:182)\n\n(cid:181)\n\n(cid:180)2\n\n1 \u2212 1\n4\n\n(12)\n(cid:182) 1\n(cid:180)2\n4 \u2264(cid:112)\n2(\u03a3i \u2212 \u03a3j). Then \u03b5ij can be written as\n(cid:195)\n(cid:181)\n1 \u2212 1\n(cid:181)\n4\n\n(cid:179) v\n(cid:33)\n(cid:182)2\n(cid:182)2\n\n\u03c9T \u2206\u03a3ij\u03c9\n\u03c9T \u00af\u03a3ij\u03c9\n\n(13)\n\nu\n\n.\n\n.\n\n(14)\n\nPiPj\n\n\u03c9T (\u2206\u03a3ij)\u03c9\n\n\u03c9T \u00af\u03a3ij\u03c9\n\nFor the c classes problem, the upper bound of the Bayes error in the reduced feature space can be\n\nj=i+1 \u03b5ij [8]. Then, from equation (13), we obtain that\n\n\f(cid:180)2\n\n(cid:179)\n\na+c\nb+d\n\n, \u2200a, c \u2265 0; b, d > 0 to the\n\n(cid:33)2\n\nj=1(PiPj) 5\n\n4|\u03c9T \u2206\u03a3ij\u03c9|\n\nj=1 PiPj\u03c9T \u00af\u03a3ij\u03c9\n\n.\n\n.\n\n(cid:33)2\n\n(15)\n\n(16)\n\n(17)\n\nPiPj \u00af\u03a3ij =\n\nPiPj(\u03a3i + \u03a3j) = \u00af\u03a3.\n\nLet \u00af\u03a3 =\n\ni=1 Pi\u03a3i be the global covariance matrix. Then we have\n\nc\nd\n\na\nb\n\ni=1\n\n(cid:161)\n(cid:162)2 \u2265\n(cid:162)2 +\n(cid:161)\n(cid:195)(cid:80)c\n(cid:80)c\n(cid:112)\n(cid:80)c\n(cid:80)c\nPiPj \u2212 1\n8\nc(cid:88)\nc(cid:88)\n(cid:195)(cid:80)c\n\n(cid:80)c\n\n1\n2\n\nj=1\n\ni=1\n\ni=1\n\n(cid:80)c\n\nRecursively applying the following inequality\nerror bound in equation (14), we have\n\nj=i+1\n\ni=1\n\ni=1\n\nj=1\n\n\u03b5 \u2264 c\u22121(cid:88)\nc(cid:88)\nc(cid:88)\nc(cid:88)\n\u03b5 \u2264 c\u22121(cid:88)\n\u03b5 \u2264 c\u22121(cid:88)\nc(cid:88)\n\nc(cid:88)\n\ni=1\n\nj=i+1\n\n(cid:112)\nCombining equations (15) and (16), we have\nPiPj \u2212 1\n8\n(cid:195)\n(cid:175)(cid:175)(cid:175)(cid:175)(cid:175)(cid:175) c(cid:88)\n\nOn the other hand, from \u00af\u03a3 =\n\n|\u03c9T (\u03a3i \u2212 \u03a3j)\u03c9| \u2265\n\nc(cid:88)\n(cid:80)c\n\ni=1 Pi\u03a3i =\n\nP \u2212 1\n8\n\nj=i+1\n\ni=1\n\nP\n\nj=1\n\ni=1\n\nCombining equations (19) and (18), we obtain that\n3\n2\n\n\u03b5 \u2264 c\u22121(cid:88)\n\nc(cid:88)\n\ni=1\n\nj=i+1\n\nP \u2212 1\n8\n\n(cid:195)\n\nP\n\ni=1\n\nj=1(PiPj) 5\n\u03c9T \u00af\u03a3\u03c9\n\n4|\u03c9T \u2206\u03a3ij\u03c9|\n\n(cid:80)c\n(cid:80)c\n\n5\n2\n\nP\n\ni=1\n\ni=1 P \u03a3i, we obtain that\n\n.\n\n(cid:80)c\nj=1 |\u03c9T (\u03a3i \u2212 \u03a3j)\u03c9|\n2\u03c9T \u00af\u03a3\u03c9\n\n(cid:33)2\n(cid:175)(cid:175)(cid:175)(cid:175)(cid:175)(cid:175) = |\u03c9T (\u03a3i \u2212 \u00af\u03a3)\u03c9|.\n(cid:33)2\n\n(cid:80)c\ni=1 |\u03c9T (\u03a3i \u2212 \u00af\u03a3)\u03c9|\n\n.\n\n2\u03c9T \u00af\u03a3\u03c9\n\nP \u03c9T (\u03a3i \u2212 \u03a3j)\u03c9\n\nAssume that the prior probabilities of the classes are the same, i.e., Pi = Pj = P , which holds for\nmost EEG experiments. Then equation (17) becomes\n\n(18)\n\n(19)\n\n(20)\n\n3.2 MCSSPs Based on Multi-class Bayes Error Estimation\nLet \u02c6\u03a3i (k = 1,\u00b7\u00b7\u00b7 , c) denote the new class covariance matrices computed via equation (8). Then\nto minimize the Bayes error, we should minimize its upper bound, which boils down to maximizing\nthe following discriminant criterion\n\n(21)\nwhere \u02c6\u00af\u03a3 is the global covariance matrix. Based on this criterion, we de\ufb01ne the k optimal spatial\n\ufb01lters of MCSSPs as follows:\n\n\u03c9T \u02c6\u00af\u03a3\u03c9\n\n.\n\nJ(\u03c9) =\n\n(cid:80)c\ni=1 |\u03c9T ( \u02c6\u03a3i \u2212 \u02c6\u00af\u03a3)\u03c9|\n(cid:80)c\ni=1 |\u03c9T ( \u02c6\u03a3i \u2212 \u02c6\u00af\u03a3)\u03c9|\n\n.\n\n(22)\n\n\u03c9. Then solving the optimization problem of\n\n\u03c91 = arg max\n\u00b7\u00b7\u00b7\n\n\u03c9\n\n\u03c9k = arg\n\nmax\n\n\u03c9T \u02c6\u00af\u03a3\u03c9j = 0,\n\n\u03c9T \u02c6\u00af\u03a3\u03c9\n\n,\n\n(cid:80)c\ni=1 |\u03c9T ( \u02c6\u03a3i \u2212 \u02c6\u00af\u03a3)\u03c9|\n\n\u03c9T \u02c6\u00af\u03a3\u03c9\n\nLet \u02c6\u02c6\u03a3i = \u02c6\u00af\u03a3\nequation (22) is equivalent to solving the following optimization problem\n\n\u02c6\u00af\u03a3\n\nj = 1, \u00b7 \u00b7 \u00b7 , k \u2212 1\n\u2212 1\n2 (i = 1,\u00b7\u00b7\u00b7 , c) and \u03b1 = \u02c6\u00af\u03a3\n\n1\n2\n\n\u2212 1\n2 \u02c6\u03a3i\n\n(cid:80)c\ni=1 |\u03b1T ( \u02c6\u02c6\u03a3i \u2212 I)\u03b1|\n\n\u03b11 = arg max\n\u00b7\u00b7\u00b7\n\n\u03b1\n\n\u03b1k = arg\n\nmax\n\n\u03b1T Uk\u22121 = 0\n\n4\n\n,\n\n\u03b1T \u03b1\n\n(cid:80)c\ni=1 |\u03b1T ( \u02c6\u02c6\u03a3i \u2212 I)\u03b1|\n\n\u03b1T \u03b1\n\n,\n\n(23)\n\n\fwhere Uk\u22121 = [\u03b11,\u00b7\u00b7\u00b7 , \u03b1k\u22121] and I is the identity matrix. Suppose that si \u2208 {+1,\u22121} denotes\nthe positive or negative sign of \u03b1T ( \u02c6\u02c6\u03a3i \u2212 I)\u03b1. Then\n\n(24)\n\n,\n\nSo equation (23) can be expressed as\n\n\u03b11 = arg max\n\u00b7\u00b7\u00b7\n\n\u03b1\n\n|\u03b1T ( \u02c6\u03a3i \u2212 I)\u03b1| = \u03b1T si( \u02c6\u03a3i \u2212 I)\u03b1.\n\n\u03b1T(cid:80)c\n\ni=1 si( \u02c6\u02c6\u03a3i \u2212 I)\u03b1\n\n\u03b1T \u03b1\n\n\u03b1T(cid:80)c\n\ni=1 si( \u02c6\u02c6\u03a3i \u2212 I)\u03b1\n\nmax\n\n\u03b1T Uk\u22121 = 0\n\n\u03b1k = arg\n\n(cid:80)c\ni=1 si( \u02c6\u02c6\u03a3i \u2212 I), where s = [s1, s2,\u00b7\u00b7\u00b7 , sc]T and si \u2208 {+1,\u22121}. Then the \ufb01rst vector\nLet T(s) =\n\u03b11 de\ufb01ned in equation (25) is the principal eigenvector associated with the largest eigenvalue of the\nmatrix T(s). Suppose that we have obtained the \ufb01rst k vectors \u03b11,\u00b7\u00b7\u00b7 , \u03b1k. To solve the (k + 1)-th\nvector \u03b1k+1, we introduce Theorems 1 and 2 below. The similar proofs of both theorems can be\nfound in [9].\nTheorem 1. Let QkRk be the QR decomposition of Uk. Then \u03b1k+1 de\ufb01ned in (25) is the principal\neigenvector corresponding to the largest eigenvalue of the following matrix\n\n\u03b1T \u03b1\n\n(25)\n\n.\n\nTheorem 2. Suppose that QkRk is the QR decomposition of Uk. Let Uk+1 = (Uk \u03b1k+1),\nq = \u03b1k+1 \u2212 Qk(QT\n\nk \u03b1k+1), and Qk+1 =\n\nQk\n\n(Id \u2212 QkQT\n\n(cid:180)\n\nk )T(s)(Id \u2212 QkQT\nk ).\n(cid:182)\n\n. Then\n\n(cid:179)\n(cid:181)\n\nq(cid:107)q(cid:107)\nRk QT\n0\n\nk \u03b1k+1\n(cid:107)q(cid:107)\n\nQk+1\n\nk(cid:89)\n\nId \u2212 QkQT\n\nis the QR decomposition of Uk+1.\nThe above two theorems are crucial to design our fast algorithm for solving MCSSPs: Theorem 1\nmakes it possible to use the power method to solve MCSSPs, while Theorem 2 makes it possible to\nupdate Qk+1 from Qk by adding a single column. Moreover, it is notable that\nk\u22121)(Id \u2212 qkqT\nk ),\n\n(26)\nwhere qi is the i-th column of Qk. Equation (26) makes it possible to update the matrix (Id \u2212\nk\u22121) by the rank-one update\nQkQT\ntechnique.\nLet S = {s|s \u2208 {+1,\u22121}c} denote the parameter vector set, whose cardinality is 2c. Then we have\nthat\n\nk\u22121)T(s)(Id \u2212 Qk\u22121QT\n\nk ) from (Id \u2212 Qk\u22121QT\nc(cid:88)\n\ni ) = (Id \u2212 Qk\u22121QT\n\nk )T(s)(Id \u2212 QkQT\n\n(Id \u2212 qiqT\n\nk =\n\ni=1\n\nmax\n(cid:107)\u03b1(cid:107)=1\n\ni=1\n\n|\u03b1T ( \u02c6\u02c6\u03a3i \u2212 I)\u03b1| = max\ns\u2208S\n\nmax\n(cid:107)\u03b1(cid:107)=1\n\n\u03b1T T(s)\u03b1.\n\n(27)\n\nIf c is not too large, a full search on S similar to that proposed in [9] is affordable. We present the\npseudo-code of our MCSSPs method using the full search on S in Algorithm 1. However, if c is a\nbit large, we may adopt a similar approach as proposed in [10], which is based on a greedy search,\nto \ufb01nd the suboptimal solution. The pseudo-code based on the greedy search is given in Algorithm\n2.\n\n4 EEG Feature Extraction Based on the MCSSPs\n\ni be the EEG sample points from the tth trial under the ith condition (i.e., the ith class). Let \u03c9j\n,\n\nLet Xt\nbe the jth optimal spatial \ufb01lter of the MCSSPs method. Construct the new data \u02c6Xt\nand let\n\nXt\ni\n\u03b4\u03c4 (Xt\ni)\n\ni =\n\n(cid:181)\n\n(cid:182)\n\n(28)\n\n\u02c6Xt\n\ni\n\n\u02c6pt\ni,j = \u03c9T\n\nj\n\n5\n\n\fAlgorithm 1: The MCSSPs Algorithm Based on the Full Search Strategy\nInput:\u2022 Input data matrix X and the class label vector l.\nInitialization:\n\n1. Compute the average covariance matrices \u02c6\u03a3i (i = 1,\u00b7\u00b7\u00b7 , c) and \u02c6\u00af\u03a3;\n2. Perform SVD of \u02c6\u00af\u03a3: \u02c6\u00af\u03a3 = U\u039bUT , compute \u02c6\u00af\u03a3\n3. Compute \u02c6\u02c6\u03a3i = \u02c6\u00af\u03a3\n4. Enumerate all the elements of S and denote them by S = {s1, s2,\u00b7\u00b7\u00b7 , s2c};\n\n\u2212 1\n2 and \u2206 \u02c6\u02c6\u03a3i = \u02c6\u02c6\u03a3i \u2212 I (i = 1,\u00b7\u00b7\u00b7 , c);\n\n\u2212 1\n2 = U\u039b\u2212 1\n\n2 UT and \u02c6\u00af\u03a3\n\n\u2212 1\n2 \u02c6\u03a3i\n\n\u02c6\u00af\u03a3\n\n\u22121\n\n= U\u039b\u22121UT ;\n\nFor i = 1, 2,\u00b7\u00b7\u00b7 , k, Do\n1. For j=1 to 2c\n\n\u2022 Compute T(si);\n\u2022 Solve the principal eigenvector of T(si)\u03b1(j) = \u03bb(j)\u03b1(j) via the power iteration\n\nmethod;\n\n2. Select the eigenvector \u03b1 with the largest eigenvalue maxj=1,\u00b7\u00b7\u00b7,2c{\u03bb(j)};\n3. If i = 1, then qi \u2190 \u03b1, qi \u2190 qi/(cid:107)qi(cid:107), and Q1 \u2190 qi;\ni\u22121\u03b1), qi \u2190 qi/(cid:107)qi(cid:107), and Qi \u2190 (Qi\u22121 qi);\n\nelse qi \u2190 \u03b1 \u2212 Qi\u22121(QT\n\n4. Compute \u2206 \u02c6\u02c6\u03a3p \u2190 \u2206 \u02c6\u02c6\u03a3p\u2212(\u2206 \u02c6\u02c6\u03a3pqi)qT\n\ni \u2212qi(qT\n\ni \u2206 \u02c6\u02c6\u03a3p)+qi(qT\n\ni \u2206 \u02c6\u02c6\u03a3pqi)qT\n\ni (p = 1,\u00b7\u00b7\u00b7 , c);\n\nOutput: \u03c9i = \u02c6\u00af\u03a3\n\n\u2212 1\n2\n\n\u03b1i, i = 1,\u00b7\u00b7\u00b7 , k.\n\nAlgorithm 2: The MCSSPs Algorithm Based on the Greedy Search Strategy\nInput:\u2022 Input data matrix X and the class label vector l.\nInitialization:\n\n1. Compute the average covariance matrices \u02c6\u03a3i (i = 1,\u00b7\u00b7\u00b7 , c) and \u02c6\u00af\u03a3;\n2. Perform SVD of \u02c6\u00af\u03a3: \u02c6\u00af\u03a3 = U\u039bUT , compute \u02c6\u00af\u03a3\n3. Compute \u02c6\u02c6\u03a3i = \u02c6\u00af\u03a3\n\n\u2212 1\n2 and \u2206 \u02c6\u02c6\u03a3i = \u02c6\u02c6\u03a3i \u2212 I (i = 1,\u00b7\u00b7\u00b7 , c);\n\n\u2212 1\n2 = U\u039b\u2212 1\n\n\u2212 1\n2 \u02c6\u03a3i\n\n\u02c6\u00af\u03a3\n\n2 UT and \u02c6\u00af\u03a3\n\nFor i = 1, 2,\u00b7\u00b7\u00b7 , k, Do\n\n\u22121\n\n= U\u039b\u22121UT ;\n\n1. Set s \u2190 (1,\u00b7\u00b7\u00b7 , 1)T , s1 \u2190 \u2212s, and compute T(s);\n2. Solve the principal eigenvector of T(s)\u03b1 = \u03bb\u03b1 associated with the largest absolute eigen-\n\nvalue |\u03bb| via the power iteration method. Set \u03bb0 \u2190 |\u03bb|;\nWhile s (cid:54)= s1, Do\n(a) Set s1 \u2190 s;\n(b) For j = 1, 2,\u00b7\u00b7\u00b7 , c, Do\n\n\u2022 Set sj \u2190 \u2212sj, where sj denotes the jth element of s. Compute T(s);\n\u2022 Solve the principal eigenvector of T(s)\u03b1 = \u03bb\u03b1 associated with the largest abso-\nlute eigenvalue |\u03bb| via the power iteration method, and set \u03bb1 \u2190 |\u03bb|;\n\u2022 If \u03bb1 \u2264 \u03bb0, then sj \u2190 \u2212sj, else \u03bb0 \u2190 \u03bb1;\nwith the largest absolute eigenvalue |\u03bb| via the power iteration method;\n\n(c) Compute T(s) and solve the principal eigenvector \u03b1i of T(s)\u03b1i = \u03bb\u03b1i associated\n\n3. If i = 1, then qi \u2190 \u03b1i, qi \u2190 qi/(cid:107)qi(cid:107), and Q1 \u2190 qi;\n\nelse qi \u2190 \u03b1i \u2212 Qi\u22121(QT\n\n4. Compute \u2206 \u02c6\u02c6\u03a3p \u2190 \u2206 \u02c6\u02c6\u03a3p\u2212(\u2206 \u02c6\u02c6\u03a3pqi)qT\n\ni\u22121\u03b1i), qi \u2190 qi/(cid:107)qi(cid:107), and Qi \u2190 (Qi\u22121 qi);\ni \u2206 \u02c6\u02c6\u03a3pqi)qT\n\ni \u2206 \u02c6\u02c6\u03a3p)+qi(qT\n\ni \u2212qi(qT\n\ni (p = 1,\u00b7\u00b7\u00b7 , c);\n\nOutput: \u03c9i = \u02c6\u00af\u03a3\n\n\u2212 1\n2\n\n\u03b1i, i = 1,\u00b7\u00b7\u00b7 , k.\n\n6\n\n\fbe the projections of the EEG data \u02c6Xt onto the projection vector \u03c9j. Then the covariance of the\nelements in the projections \u02c6pt\n\ni,j can be expressed as\n\u02c6Xt\n\ni,j = var(\u03c9T\nvt\n\nj\n\ni) = \u03c9T\n\nj\n\n\u02c6\u03a3t\n\ni\u03c9j.\n\n(29)\n\ni denotes the covariance matrix of the EEG data in the tth trial of the ith class.\n\nwhere \u02c6\u03a3t\ni,j (j = 1,\u00b7\u00b7\u00b7 , k) from the\nFor all the k spatio-spectral \ufb01lters \u03c91,\u00b7\u00b7\u00b7 , \u03c9k, we obtain the k features vt\ni,k]T be the feature vector associated with the tth\ntth trial of EEG data. Now let vt\ntrial of the ith class. Similar to the method used in [2], the following log-transformation form is\nused as the \ufb01nal feature vector of the EEG signal:\n\ni = [vt\n\ni,1,\u00b7\u00b7\u00b7 , vt\n(cid:195)\ni(cid:80)\n\nvt\nk vt\ni,k\n\n(cid:33)\n\ni = log\nf t\n\n,\n\n(30)\n\nwhere the log function is applied to each element of the vector independently.\ntransformation serves to approximate the normal distribution of the data [2].\nFor the given unknown EEG data Z, we use the same procedures to extract the corresponding fea-\ntures, i.e., we \ufb01rst construct the new data \u02c6Z =\nextract the corresponding discriminant feature vector f z, where\n\n, and then adopt the above method to\n\nThe log-\n\n\u03b4\u03c4 (Z)\n\n(cid:181)\n\n(cid:182)\n\nZ\n\nf z = log\n\n, vz = [vz\n\n1,\u00b7\u00b7\u00b7 , vz\n\nk]T , and vz\n\nj = \u03c9T\n\nj\n\n\u02c6\u03a3z\u03c9j,\n\n(31)\n\n(cid:182)\n\n(cid:181)\n\nvz(cid:80)\n\nk vz\nk\n\nin which \u02c6\u03a3z denotes the covariance matrix of \u02c6Z.\ni (i = 1,\u00b7\u00b7\u00b7 , c; t = 1, 2\u00b7\u00b7\u00b7 , ni) and f z, we can\nAfter obtaining the discriminant feature vectors f t\nclassify the unknown EEG data into one of the c classes by using a classi\ufb01er, e.g., the K-nearest\nneighbor (K-NN) classi\ufb01er [7].\n\n5 Experiments\n\nTo test the performance of our MCSSPs method, we use the real world EEG data set to conduct\nexperiments. The data set used here is from \u201cBCI competition 2005\u201d - data set IIIa [11]. This data set\nconsists of recordings from three subjects (k3b, k6b, and l1b), which performed four different motor\nimagery tasks (left/right hand, one foot, or tongue) according to a cue. During the experiments, the\nEEG signal is recorded in 60 channels, using the left mastoid as reference and the right mastoid as\nground. The EEG was sampled at 250 Hz and was \ufb01ltered between 1 and 50 Hz with the notch \ufb01lter\non. Each trial lasted for 7 s, with the motor imagery performed during the last 4 s of each trial. For\nsubjects k6b and l1b, a total of 60 trials per condition were recorded. For subject k3b, a total of 90\ntrials per condition were recorded. Similar to the method in [5], we discard the four trials of subject\nk6b with missing data. For each trial of the EEG raw data, we only use part of the sample points,\ni.e., from No.1001 to No.1750, as the experiment data since they carry most of the information in\nthe EEG signal. Consequently, each trial contains 750 data points. We adopt the two-fold cross\nvalidation strategy to perform the experiment, i.e., for all the trials of each condition per subject, we\ndivide them into two groups. Each group is used as training data and testing data once. We conduct\n\ufb01ve rounds of experiments in total, with different divisions of the training and testing data sets, to\nobtain ten recognition rates, which are averaged as the \ufb01nal recognition rate. For comparison, we\nalso conduct the same experiment using both MCSPs methods proposed by [4] and [5], respectively.\nTo better identify the effect of using different EEG \ufb01lters, a simple classi\ufb01er, K-NN classi\ufb01er with\nthe Euclidean distance and 7 nearest neighbors, is used for \ufb01nal classi\ufb01cation.\n\nTable 1 shows the average classi\ufb01cation rates (%) versus the standard deviations (%) of the three\nmethods2, while \ufb01gure 1 shows the average recognition rates of our MCSSPs method with different\nchoices of the delayed time \u03c4 . From table 1, we can see that the MCSSPs method achieves much\nbetter classi\ufb01cation performance than the MCSPs methods.\n\n2The results using the MCSPs method proposed in [5] are inferior to those reported in [5] because we did\nnot pre-\ufb01lter the EEG signals with a Butterworth \ufb01lter and did not use the logistic regression classi\ufb01ers for\nclassi\ufb01cation either, as we are more interested in comparing the effect of different EEG \ufb01lters.\n\n7\n\n\fTable 1: Comparison of the classi\ufb01cation rates (%) versus standard deviations (%) between MCSPs\nand MCSSPs.\n\nSubject MCSPs [4] MCSPs [5] MCSSPs/Bayes\n\nk3b\nk6b\nl1b\n\n46.17 (6.15)\n33.54 (4.27)\n35.17 (3.92)\n\n84.89 (2.74)\n50.09 (2.59)\n62.08 (3.99)\n\n85.83 (2.23)\n56.28 (3.87)\n68.58 (6.16)\n\nFigure 1: The classi\ufb01cation rates (%) of our MCSSPs method with different choices of \u03c4 .\n\n6 Conclusions\n\nIn this paper, we extended the two-class CSSPs method to the multi-class cases via the Bayes error\nestimation. We \ufb01rst proposed a novel theory on multi-class Bayes error estimation, which has a\nclosed-form solution to \ufb01nd the optimal discriminant vectors for feature extraction. Then we applied\nthe multi-class Bayes error estimation theory to generalize the two-class CSSPs method to multi-\nclass cases. The experiments on the data set IIIa from BCI competition 2005 have shown that\nour MCSSPs method is superior to the MCSPS methods. With more elaborate treatments, e.g.,\npreprocessing the EEG signal and adopting a more advanced classi\ufb01er, even higher classi\ufb01cation\nrates are possible. These will be reported in our forthcoming papers.\n\nAcknowledgment\n\nThis work was partly supported by National Natural Science Foundation of China under Grants\n60503023 and 60872160.\n\nReferences\n\n[1] B. Blankertz, G. Curio, & K.-R. M\u00a8uller (2002) Classifying single trial EEG: towards brain computer\ninterfacing. In: T.G. Dietterich, S. Bechker, Z. Ghaharamani (Eds.), Advances in Neural Information\nProcessing Systems14, pp.157-164. Cambridge, MA:MIT Press.\n\n[2] H. Ramoser, J. Mueller-Gerking, & G. Pfurtscheller (2000) Optimal spatial \ufb01ltering of single trial EEG\n\nduring imaged hand movement. IEEE Transactions on Rehabilitation Engineering. 8(4):441-446.\n\n8\n\n12345678910505560657075808590tClassification rates (%) k3bk6bl1b\f[3] S. Lemm, B. Blanketz, G. Curio, & K.-R. M\u00a8uller (2005) Spatio-spectral \ufb01lters for improved classi\ufb01cation\n\nof single trial EEG. IEEE Transactions on Biomedical Engineering. 52(9):1541-1548.\n\n[4] G. Dornhege, B. Blankertz, G. Curio, & K.-R. M\u00a8uller (2004) Boosting bit rates in noninvasive EEG single-\ntrial classi\ufb01cations by feature combination and multiclass paradigms. IEEE Transactions on Biomedical\nEngineering. 51(6):993-1002.\n\n[5] M. Grosse-Wentrup, & M. Buss (2008) Multiclass Common Spatial Patterns and Information Theoretic\n\nFeature Extraction. IEEE Transactions on Biomedical Engineering. 55:1991-2000.\n\n[6] L. C. Parra, C. D. Spence, A. D. Gerson, & P. Sajda (2005) Recipes for linear analysis of EEG. Neuroim-\n\nage, 28:326-341.\n\n[7] K. Fukunaga (1990) Introduction to Statistical Pattern Recognition (Second Edition). New York: Aca-\n\ndemic Press.\n\n[8] J.T. Chu & J.C. Chuen (1967) Error Probability in Decision Functions for Character Recognition. Journal\n\nof the Association for Computing Machinery. 14(2):273-280.\n\n[9] W. Zheng (2009) Heteroscedastic Feature Extraction for Texture Classi\ufb01cation. IEEE Signal Processing\n\nLetters, 16(9):766-769.\n\n[10] W. Zheng, H. Tang, Z. Lin, & T.S. Huang (2009) A Novel Approach to Expression Recognition from\nNon-frontal Face Images. Proceedings of 2009 IEEE International Conference on Computer Vision\n(ICCV2009), pp.1901-1908.\n\n[11] G. Blankertz, K.R. Mueller, D. Krusienski, G. Schalk, J.R. Wolpaw, A. Schloegl, G. Pfurtscheller, J. R.\nMillan, M. Schroeder, & N. Birbaumer (2006) The BCI competition III: Validating alternative approaches\nto actual BCI problems. IEEE Transactions on Rehabilitation Engineering 14:153-159.\n\n9\n\n\f", "award": [], "sourceid": 31, "authors": [{"given_name": "Wenming", "family_name": "Zheng", "institution": null}, {"given_name": "Zhouchen", "family_name": "Lin", "institution": null}]}