Skip to main content

ORIGINAL RESEARCH article

Front. Hum. Neurosci., 09 November 2023
Sec. Brain-Computer Interfaces

Variance characteristic preserving common spatial pattern for motor imagery BCI

  • 1Key Laboratory of Smart Manufacturing in Energy Chemical Process, Ministry of Education, East China University of Science and Technology, Shanghai, China
  • 2Shenzhen Research Institute of East China University of Science and Technology, Shenzhen, China
  • 3g.tec Medical Engineering GmbH, Schiedlberg, Austria
  • 4Systems Research Institute of Polish Academy of Science, Warsaw, Poland
  • 5Department of Informatics, Nicolaus Copernicus University, Toruń, Poland

Introduction: The common spatial patterns (CSP) algorithm is the most popular technique for extracting electroencephalogram (EEG) features in motor imagery based brain-computer interface (BCI) systems. CSP algorithm embeds the dimensionality of multichannel EEG data to extract features of motor imagery tasks. Most previous studies focused on the optimization of the time domain and the spectrum domain of EEG signal to improve the effectiveness of CSP, whereas ignoring the constraint on the projected feature space.

Methods: This study proposed a variance characteristic preserving CSP (VPCSP) that is modified by a regularization item based on graph theory. Specifically, we calculated the loss of abnormalities of the projected data while preserving the variance characteristic locally. Then the loss could be rewritten as a matrix with the introduction of the Laplace matrix, which turned it into a generalized eigenvalue problem equivalent to CSP. This study evaluated the proposed method on two public EEG datasets from the BCI competition. The modified method could extract robust and distinguishable features that provided higher classification performance. Experimental results showed that the proposed regularization improved the effectiveness of CSP significantly and achieved superior performance compared with reported modified CSP algorithms significantly.

Results: The classification accuracy of the proposed method achieved 87.88 %, 90.07 %, and 76.06 % on public dataset IV part I, III part IVa and the self-collected dataset, respectively. Comparative experiments are conducted on two public datasets and one self-collected dataset. Results showed that the proposed method outperformed the reported algorithm.

Discussion: The proposed method can extract robust features to increase the performance of BCI systems. And the proposal still has expandability. These results show that our proposal is a promising candidate for the performance improvement of MI-BCI.

1. Introduction

Brain-computer interfaces (BCIs) are communication systems that decode the information from the brain to control external devices (Romero-Laiseca et al., 2020; Zhang et al., 2021). Among the tasks for generating inputs for BCI systems, motor imagery (MI) is the mental imagination of movement without muscle’s activity, which depends on the users’ mental imagination of body movement without muscle activity (Aggarwal and Chugh, 2019). There is a variety of non-invasive and invasive ways of recording brain activities. For instance, Electroencephalogram (EEG), functional magnetic resonance imaging (fMRI), electrocorticography (ECoG), and magnetoencephalography (MEG) have been used as the input signal of BCI systems (Weiskopf et al., 2004; Rouse et al., 2016; Corsi et al., 2019). Of these acquisition ways, EEG is widely applied in BCI research, since it provides a low-cost and non-invasive way for bioelectric signal acquisition.

During the motor imagery tasks, the event-related desynchronization (ERD) and event-related synchronization (ERS) phenomena can be observed in EEG signals (Pfurtscheller and Neuper, 1997). Motor imagery related area presents regular spectrum changes within the alpha frequency band and beta frequency band, which provides the primary for distinguishing the motor imagery tasks. In practice, the capacity to recognize the EEG signals that correspond to the motor imagery tasks is essential for the reliability and effectiveness of MI-based BCI systems. Since EEG-based acquisition for motor imagery tasks has limitations such as low signal-to-noise ratio (SNR) and artifacts, decoding the motor imagery from EEG is challenging (Kevric and Subasi, 2017; McFarland and Wolpaw, 2017). Various algorithms have been proposed for feature extraction of EEG signals, in order to obtain high classification performance for BCI systems (Jafarifarmand et al., 2018; Chaudhary et al., 2020; Sadiq et al., 2020).

Of these algorithms, common spatial pattern (CSP) has been widely studied in feature extraction for motor imagery task classification. CSP algorithm was proposed to extract ERD/ERS features by projecting the multi-channel EEG signals (Müller-Gerking et al., 1999; Sun et al., 2020). The dimension of the channels is reduced by a spatial filter, which maximizes the variance of one class while minimizing the variance of the other one. This algorithm is an efficient tool to extract features for classifying motor imagery EEG signals (Meng et al., 2009; Xie et al., 2017).

However, the performance of CSP algorithm is affected by various factors such as the outliers (Qi et al., 2015). Since the CSP algorithm processes the covariance, the outliers may bring a negative impact on the spatial filter and then reduce the classification performance. To solve this problem, researchers have expanded CSP in many enhanced variants. Lotte and Guan (2011) proposed a theoretical framework for regularized CSP (RCSP) algorithm. Lemm et al. (2005) developed the common spatio-spectral patterns (CSSP) algorithm using the time delay embedding method, allowing for individual tuning of the temporal filter parameters at each EEG channel. To extend the temporal filter, Dornhege et al. (2006) introduced the finite impulse response (FIR) filter into CSP and proposed a common sparse spectral spatial pattern (CSSSP). Frequency band also has an impact on the effectiveness of the CSP method. Novi et al. (2007) proposed sub-band CSP (SBCSP), which used multiple frequency bands to extract CSP features and enhanced the classification performance. But for multi-frequency bands, not all frequency bands are conducive to the classification performance for the reason that some frequency bands contain little information on motor imagery. To increase the efficacy of CSP features, the filter bank CSP (FBCSP) chose discriminative filter bands with feature selection techniques (Ang et al., 2008). Considering the spatial and temporal domain, Qi et al. (2015) developed a novel framework for the CSP algorithm to optimize the spatial and temporal filters. Mishuhina and Jiang (2018) utilized a feature weighting and regularization method to use all CSP filters instead of using several CSP filters, which enhanced the classification accuracy. Combining temporal filters and spatial filters, Jiang et al. (2020) proposed an efficient CSP algorithm to alleviate the overfitting problem.

Most previous studies focused on the optimization of the time domain and the spectrum domain. These methods ignored the robustness of the projected space. In this study, we focused on the projected space of the CSP algorithm and modified the CSP algorithm to enhance the effectiveness of the CSP feature. Since the CSP algorithm reduced the dimensionality of spatiality but did not reckon the robustness of the resulted space, the outliers in the time domain could easily affect the extracted features and cause misclassification of the classifier. We proposed a new version of CSP with smoothing regularization. Considering the smoothness of the projected space, a regularization was developed and added to the CSP algorithm, which aimed at stabilizing the projected space and reducing the influence of outliers.

The rest part of the paper is organized as follows. Section 2 introduces our method. Section 3 presents the experimental results and the details of our proposed framework. Then the experimental results are discussed in Section 4. Section 5 presents the conclusion of this study.

2. Methods

2.1. Common spatial pattern

In terms of feature extraction of motor imagery BCI systems, the CSP methods have been applied and extended widely in numbers of researches. The CSP algorithm builds a spatial filter wRC for multi-channel EEG data, which aims to find projections that maximize the separation of two classes (Ramoser et al., 2000). In detail, the spatial filter is generated by maximizing the variance/power of one class while minimizing the variance/power of another class in resulted space (Noh and de Sa, 2013).

The multi-channel EEG data is denoted as XiRC×T, where i indicates the ith sample, C is the number of channels, T is the number of sample points in time series and ϵn is the nth class set. The covariance of the EEG data can be estimated as:

Γn=1ϵniϵnXiXi    (1)

Spatial filters of CSP are defined as W=w1w2w2K,WRC×2K, where K denotes the employment of K pairs of filters. And the embedding feature of nth class EEG data is denoted as zn=Xw. Then the objective function of CSP can be formulated as follows:

wopt=argmaxwz1z1z2z2=argmaxwwΓ1wwΓ2w    (2)

The above problem can be solved by the Lagrange multiplier method with equality constraint: wΓ2w=1, and Γn is symmetric positive definite. Then we can solve the generalized eigenvalue problem to obtain the spatial filer w:

Γ21Γ1w=λw    (3)

Hence, 2K eigenvectors corresponding to the K smallest and the K largest eigenvalues of Γ21Γ1, are obtained as the spatial filters W=w1w2w2K, resulting in Z=XW. The feature vector of kth filter is transformed by logarithmic transformation for classification:

fk=logvarZki=12KvarZi    (4)

where Zj is the jth column of the matrix Z.

2.2. Variance characteristics preserving spatial pattern

The feature extraction algorithm described above obtains efficient features for recognition in motor imagery-based BCI systems. However, before the logarithmic transformation, the feature vectors z are easily affected by abnormal points. In this study, we aim to mitigate the effect of this type of point to improve the robustness of the CSP algorithm. Therefore, we consider z as a graph, with building connections at l points per interval.

For the embedded vector zRT, reducing the loss of two connected points can G=VE preserve local variance characteristics while declining the sequence’s abnormalities. V=v1v2vn denotes the nodes of the graph, and E=e1e2em denotes the edges of the graph. The adjacency matrix of the graph is defined as:

Ai,j    (5)=1if|ij|=l0otherwise

where ART×T, Ai,j denotes the elements of A, l is a user-defined parameter, l1T.

Figure 1 shows an example (l=3), we try to reduce the abnormalities of the whole sequence (as the difference between connected points with red lines), whereas preserving the local variance characteristic (as the gray box in Figure 1).

FIGURE 1
www.frontiersin.org

Figure 1. Illustration of the designed graph for projected space.

In this study, the embedded feature z can be viewed as a sequence that is generated from the channel dimension by a spatial filter. The regularization term is designed to be the sum of the Euclidean distances of any two points in the graph. We quantified the loss as Eq. (6). The loss function is designed to calculate the difference between two nodes separated by l points (satisfying the condition |ij|=l). However, when |ij|<l, the internal inter-node difference is not calculated, so the internal variance information is preserved as the loss function decreases. This allows the subsequent processing of the filtered feature to retain discernible energy differences, so we call it variance characteristics preserving CSP (VPCSP). With the decrease of the loss function, the difference between each interval l point of the filtered feature decreases, which makes the energy information of the filtered feature more stable.

Rz=i,jzizj2Ai,j=i,jzi2+zj22zizjAi,j=izi2Di,i+jzj2Dj,j2i,jzizjAi,j=2zDAz=2zLz    (6)

where zi is the ith of the embedded vector z, L is the Laplacian matrix, such that L=DA, and D is the degree matrix.

Di,j    (7)={degviifi=j0otherwise

where degvi denotes the number of edges connecting to node vi. In Eq. (6), Rz represents the degree of smoothness of the projected features. Therefore, minimizing Eq. (6) can make the projected data smooth. As can be seen in Eq. (5), due to several adjacent points are not connected, the local variance characteristics are not weakened as the features become smooth. The proposed item tries to decline the outliers which could make an impact on the CSP features as Eq. (4).

In terms of the spatial filter, the proposed method needs to optimize two goals. Like the CSP algorithm, VPCSP tries to find spatial filters that maximize the projected power of one class of data while minimizing the projected power of another class of data. In addition, VPCSP also tries to minimize the proposed regularization item. The above two terms can be written as the objective function in the form of a generalized Rayleigh quotient.

Jw=wΓ1w1βwΓ2w+βz1,2Lz1,2,z1,2Lz1,2=wX1LX1w+wX2LX2w    (8)

where β01 is a user-defined parameter. When β=0, the above equation is equivalent to the traditional CSP.

Since Γ1,2 and XiLXi are symmetric positive definite matrices, we can simplify the above formula by the following abbreviations:

M=1βΓ2+βX1LX1+X2LX2    (9)

Then we can give the objective function of the proposed VPCSP:

maxwwΓ1wwMws.t.wMw=1    (10)

The solution to the above problem is the same as the traditional CSP algorithm since M is a symmetric positive definite matrix.

M1Γ1w=λw    (11)

Further feature optimization is obtained using multiple constraints. Above we use one constraint item to optimize the projected feature. More constraint items can be used to obtain further optimization. In above Eq. (8), the constraint item can be replaced by the multiple constraint items as:

L=L1+L2+L3+Lq    (12)

where the Li denotes the Laplacian matrix that obtained with l=i in Eq. (5). In addition, to extract invariant features, we extended the observation signal by one delayed coordinate as Lemm et al. (2005): X̂τ=XδX, with this modification, the objective function described above could be rewritten by changing the covariance matrix.

Additionally, the proposed method aimed at optimizing the extracted features from the spatial filters. However, most of the new algorithms that had been proposed recently used the filter bands technique, which achieved high classification performance on the MI-based BCI systems. Therefore, the combination of the spatial optimization and the spectra optimization would achieve further improvements. The EEG signals were divided into three frequency bands (4–20 Hz, 8–24 Hz, and 12–28 Hz), with 4th order Butterworth bandpass filters which covered alpha, beta, and mu rhythms. Since multiple frequency bands were used, multiple classifiers were generated. Probabilistic fusion was used to fuse the probabilistic score of classifiers from multiple branches, as in Figure 2B.

FIGURE 2
www.frontiersin.org

Figure 2. Illustration of the proposed framework. (A) The framework of the proposed optimization method for feature extraction. (B) The decoding procedure of the proposed method.

2.3. Bayesian optimization

In the proposed method, a number of user-defined parameters should be customized for each participant, including the l in Eq. (5), the β in Eq. (9) and the q in Eq. (12). To obtain the high performance of the proposed framework, Bayesian Optimization (BO) was introduced to optimize the user-defined parameters. BO works by constructing a posterior distribution of functions (Gaussian process) that best describes the function. The Expected Improvement (EI) was optimized in this work for parameters optimization (Bergstra et al., 2011).

In this study, we used Hyperopt on GitHub as the BO tool for optimization of the parameters in our experiments (Bergstra et al., 2013). Using five-fold split strategy, data was split into training set, validation set, and testing set (64, 16, and 20% respectively). Firstly, initial parameters (l, β, q) were used to train on the training set. Then, parameters were optimized by BO algorithm based on the performance on the validation set. This procedure contained fifty loops to optimize the parameters for the model. Finally, the optimized model was tested on the testing set as the evaluated performance in these experiments.

2.4. Modified CSP algorithms for comparison

In the space domain, the CSP algorithm had been modified with a number of methods to obtain an efficient spatial filter. Different spatial filters were created using different modification techniques. Therefore, we compared the performance of the proposed method and the CSP algorithm described below.

The Tikhonov regularization CSP (TRCSP) was introduced to the CSP algorithm for improving the performance (Lotte and Guan, 2011). The TRCSP aimed at mitigating the effect of artifacts and outliers. The Tikhonov regularization was considered as an effective regularization item in the proposed framework (Lotte and Guan, 2011).

The sparse common spatial pattern (SCSP) algorithm used L1-norm regularization to modify the CSP algorithm (Yong et al., 2008). By introducing the regularization item designed, the sparse filter could be produce.

Lu et al. (2010) proposed the Regularized Covariance-Matrix Estimation (R-CSP) in small sample situations. R-CSP modified the covariance matrix by introducing a robust covariance matrix estimation technique.

The common spatio-spectral pattern (CSSP) modified CSP with the time delay embedding method (Lemm et al., 2005). The CSSP extended CSP algorithm to the state space, which aimed at obtaining invariant features.

The Filter Bank Common Spatial Pattern (FBCSP) (Ang et al., 2008): multiple bandpass filters were used to obtain CSP features in different frequency bands. Then, the mutual information based best individual feature algorithm was used to select the optimal filter bands with corresponding CSP features.

2.5. Classification

The support vector machine (SVM) has been widely applied in the BCI field (Miao et al., 2021). It is effective for the classification task on small dataset, such as motor imagery classification. SVM tries to find the separating the hyperplane with the maximum margin which makes the maximum distance between hyperplane and the nearest sample data (Cortes and Vapnik, 1995). It can be expressed as the following constrained optimization problem:

minw,b,ζ=12w2+Ci=1Nζis.t.yiwxi+b1ζi,i=1,2,,Nζi0,i=1,2,,N    (14)

where ζi is the slack variable, yi is the true label of the data xi.

In this study, we used the radial basis function kernel based SVM as the tool for classification (Amari and Wu, 1999).

3. Results

3.1. Dataset description

The effectiveness of the proposed VPCSP was verified in two datasets from public BCI competition datasets.

Dataset 1 was from the BCI Competition IV, part I (Zhang et al., 2012). The EEG data in this dataset consisted of 59 channels and were recorded at a sampling rate of 1,000 Hz. This dataset contained 7 participants’ EEG data. Since the 3 participants’ EEG data (‘c’, ‘d’, and ‘e’) were made artificially, we only consider the rest of the 4 participants for verification (‘a’, ‘b’, ‘f’, and ‘g’). Three motor imagery tasks (left hand, right hand, and foot imagery) were designed in the experiment, which used left, right and down arrows as cues separately for 4 s. Each subject performed only two tasks of them, a total of 200 trials. We used the data that was downsampled to 100 Hz. The following website had further information about this dataset: http://www.bbci.de/competition/iv/.

Dataset 2 was from the BCI Competition III, part IVa (Blankertz et al., 2006). This dataset consisted of 118-channel EEG data which were set as the 10–20 EEG system using 1,000 Hz sampling rate. In the experiment, the cues were displayed for 3.5 s in each trial and then participants relaxed in periods of random time length ranging from 1.75 to 2.25 s. Left hand, right hand, and right foot motor imagery tasks were set, but only two motor imagery tasks (right hand and right foot imagery tasks) were provided in this public dataset. It contained 5 healthy participants’ EEG data (marked: aa, al, av., aw, and ay) during the experiment and 280 trials total for each participant. We used the data that was downsampled to 100 Hz. The following website had further information about this dataset: http://www.bbci.de/competition/iii/.

Dataset 3 was collected in our lab. Its paradigm was similar to the public datasets from the BCI competition that used the left and right arrows as cues separately for left motor imagery task and right motor imagery task. In this experiment, the cures were displayed for three seconds. Dataset 3 consisted of 10 participants (S1,S2,…,S10) who were graduate students between the ages of 21 and 27 years. The experiments used 16-channel (FC5, FC1, FCZ, FC2, FC6, C5, C3, C1, CZ, C2, C4, C6, CP5, CP1, CP2, and CP6)with a sample rate of 600 Hz. A bandpass filter from 8 Hz to 32 Hz and a notch filter at 50 Hz was applied to remove artifacts. Each participant performs 120 trials of motor imagery tasks (60 trials per class).

3.2. Data preprocessing

The EEG signals were bandpass filtered from 8–32 Hz using the Butterworth filter (4th order). The Butterworth filter’s configuration aimed to eliminate high-frequency noise like power line noise while keeping track of the brain activity associated with motor imagery. In our experiment setup, we used all the EEG channels and the time window that covered the whole time after the cue except the first 0.5 s. In other words, the time windows used were [0.5, 3.5], [0.5, 3], and [0.5, 3] in Datasets 1, 2, and 3 separately.

3.3. Comparison results

We divided the dataset into three parts: training set, validation set, and testing set. Five-fold cross-validation was used to generate the test sets. The training process was applied in the training set, model selection was based on the validation set, and the test set was to estimate the performance of the algorithm. Since the proposed VPCSP method contains two parameters that need to be preset, we set a series of parameter subsets in the training fold. And then with the proposed model selection strategy, we evaluated all the parameter subsets and selected the optimal parameters in the training set and validation set. The framework of our study can be seen in Figure 2A.

To verify the effectiveness of the penalty item, we compared the performance of the proposed method and the traditional CSP algorithm firstly. In addition, most previous studies reckoned without the projected features. Instead, the EEG signal before projection was optimized mostly. Therefore, we compared the proposed VPCSP with the CSP algorithm improved by other modification methods in space domain.

Table 1 presented the performance comparison of various spatial filters, including two versions of the VPCSP algorithm (one without filter bands (FB) and the other with filter bands). Additionally, A Wilcoxon Signed Rank Test (Rey and Neuhäuser, 2011) was also used to assess the results. Between the compared methods and the proposed method, there are statistically significant differences between their classification performance (p < 0.05). With the same experimental condition (the same preprocessing method and the same classifier), only the feature extraction methods were different from each other. And the data met the requirements for statistical differences. It meant that the proposed method generated higher mean classification accuracy than the compared one.

TABLE 1
www.frontiersin.org

Table 1. Comparison results with other modified CSP algorithms on two public datasets.

Results showed that the VPCSP improved the performance of all subjects in all datasets compared with the traditional CSP algorithm. In two public datasets, the proposed method achieved the best performance in two datasets. Compared with the traditional CSP, average classification accuracy with VPCSP (w/o FB) increased over 13% on Dataset 1 and over 7% on Dataset 2, respectively. For subject ‘aw’, classification performance improved the most by approximately 14%. Furthermore, with the filter bands, the VPCSP achieved higher classification performance than that of VPCSP without FB. VPCSP with filter bands (VPCSP-FB) increased over 22% on Dataset 1 and increased over 13% on Dataset 2 comparing with the traditional CSP algorithm. The results demonstrated that the integration of the proposed spatial optimization and frequency domain optimization significantly enhanced the effectiveness of feature extraction for classification purposes. All comparison results showed statistical significance (p < 0.05).

To avoid the proposed model overfitting the public datasets, we collected the EEG data on MI task in our lab. The comparison result was presented on the Table 2. And this table presented the effectiveness of the proposed method. The proposed method achieved an average classification accuracy improvement of approximately 7% compared to the CSP method. Moreover, the robustness of the proposed method was also evident. As the results showed that the effectiveness of the feature extraction might fail in some cases compared to the baseline. Mostly, the proposed method showed a good robustness since only one subject failed in this experiment, which was superior to the reported methods.

TABLE 2
www.frontiersin.org

Table 2. Comparison results with the reported methods on Dataset 3.

Additionally, more evaluation indexes were used to evaluate the performance of the proposal. Recall measures the ability of a model to correctly identify all relevant instances. On the other hand, precision focuses on the accuracy of positive predictions made by a model. And accuracy, the widely used index in BCI, measures the overall correctness of predictions made by a model. In Table 3, the precision score, recall score and accuracy score were presented. Besides, a comparison with the recent approaches was also presented. In Table 4, our proposal achieved the highest average accuracy in the table.

TABLE 3
www.frontiersin.org

Table 3. Evaluation of decoding model.

TABLE 4
www.frontiersin.org

Table 4. Classification accuracy of the proposed approach and existing approaches.

3.4. Modified spatial filter

The results show that the weights obtained by VPCSP (without filter bands) are smoother than those obtained by CSP. According to Figure 3, the spatial filter of VPCSP only adjusts the weights on a small number of leads, and the whole filter is smoother than that of CSP. At the same time, it can be seen that VPCSP generates several positive and negative spatial filters, such as Pz, P2 and PO1 in the figure. However, in combination with Figure 4, it is found that the feature amplitudes extracted by the two kinds of filters on aw are significantly different, especially in Class 2. It can be seen that the spatial filter of VPCSP in Class 2 realizes the elimination of outliers by weight compensation of Pz, P2 and PO1 (visible dark blue and dark red parts, representing larger negative and larger positive values respectively). It also shows that these outliers are distributed in the spatial domain. The same phenomenon can be found on subject f, and it is more obvious. In Figure 3, VPCSP smoothed the spatial filter of Class 1 more than CSP. In combination with Figure 4, it can be seen that in subject f, the absolute value of the amplitude extracted by the modified method is less than 50, and. The features extracted by CSP not only have large amplitudes but also have outliers. In other words, the differences in energy become more evident, and certain outliers are attenuated. Therefore, the proposed method not only makes the filtered feature have distinguishable variance characteristics but also generates filters that are robust to prevent artifacts and outliers.

FIGURE 3
www.frontiersin.org

Figure 3. Spatial filter of proposed VPCSP and traditional CSP.

FIGURE 4
www.frontiersin.org

Figure 4. Electrode weight topography of spatial filters obtained by the proposed VPCSP and the traditional CSP algorithm. (A) VPCSP feature on subject ‘f’ (B) CSP feature on subject ‘f’ (C) VPCSP feature on subject ‘aw’ (D) CSP feature on subject ‘aw’.

3.5. Classification model comparison

The classification model utilized in this algorithm was a radial basis function kernel (RBF) based SVM classifier which was applied in the BCI field widely. Compared with the RBF-based SVM, the Linear Discriminant Analysis (LDA) (Fisher, 1936), which was also a standard classification model in the BCI field, was simpler. In certain scenarios, the classification performance relied on both the feature extraction module and the classification model. Hence, two standard classification models were employed and compared within the proposed feature extraction method, and the results are presented in Table 5. The comparison revealed that the two standard models attained comparable classification performance to the proposed feature extraction module (p > 0.05). As a result, the proposed method demonstrated similar effectiveness on both the SVM classifier and LDA classifier.

TABLE 5
www.frontiersin.org

Table 5. Comparison results with different classification models.

4. Discussion

4.1. Sensitivity analysis

The proposed method contains two tunable parameters, including l in Eq. (5) and β in Eq. (8). The classification performance of four subjects under different parameter subsets is presented in Figure 5. When β=0, the proposed method is equal to the traditional CSP algorithm. Therefore, the performance of the CSP algorithm is shown by the black color in Figure 5. It shows that a large part of the parameter subsets can obtain good classification performance. Quite large parameter areas can obtain over 10\% improvement in accuracy. In this parameter range, the high classification performance obtained has little difference, which makes it easy to obtain optimal or suboptimal parameters.

FIGURE 5
www.frontiersin.org

Figure 5. Parameter sensitivity of the proposed method in test fold [l: the parameter in Eq. (5), beta: the parameter β in Eq. (9)]. (A) Performance of subject ‘a’ under different parameters. (B) Performance of subject ‘f’ under different parameters. (C) Performance of subject ‘av’ under different parameters. (D) Performance of subject ‘aw’ under different parameters.

Considering the classifier used in our method, several user-defined parameters probably had an impact on the classification performance. To show the influence of this factor, we analyzed two standard classification models with the same feature extraction procedure. The comparison of classification performance between the SVM classifier and the LDA is shown in Table 5. Statistical analysis was also done for these results, which suggested that the SVM classifier’s performance and that of the LDA classifier did not show a statistical difference (p  > 0.05). Therefore, the classifiers showed similar performance on the feature that was extracted by the proposed algorithm.

4.2. Computational efficiency

The computational efficiency directly affected the practical application of the proposed method. In our framework, Bayesian optimization required conducting iterations on the training set, which meant that our algorithm needed to consume more computing during the training process. Table 6 showed the computing time within one fold, including the training procedure and the testing procedure. The experiment ran on a personal computer with Intel(R) Xeon(R) Gold 5,222 3.80 GHz CPU and 128 GB of RAM. It indicated that the proposed framework consumed approximately 3 min in the training procedure, which was longer than that of the CSP method. Though consuming more time, it could meet the requirement of practical application and the classification accuracy obtained was much higher. The long computing time was cost in the training mode while the computing time in the testing mode was much shorter. It meant that our proposed method could output the command in a short time which met the requirement for practical application.

TABLE 6
www.frontiersin.org

Table 6. Running time in one fold.

4.3. The characteristic of projected features

For the projected features, a comparison between the proposed VPCSP and the classical CSP algorithm on subjects ‘f’ and ‘aw’ was shown in Figure 4. The orange line denoted the average projected features of one class, whereas the blue line denoted the average features of the other one class. It could be observed that the projected features of VPCSP were more regular than that of CSP. In addition, the projected feature of VPCSP on subject ‘f’ was more discriminative compared with the classical CSP. From another point of view, the feature that was used to train the SVM classifier was calculated by Eq. (4), which contained the calculation of variance. Therefore, in terms of the power of the projected series of the proposed method and the CSP method, the proposed method could generate more robust power by calculating the feature in Eq. (4). In summary, in Figures 4A,B, it was shown that the features of VPCSP contained more discriminative variance characteristics than the classical CSP. In addition to the variance characteristics, as shown in Figure 4, the proposed method also mitigated the influence of the high amplitude artifacts. However, it is hard to conclude that the phenomena depicted in Figure 4 demonstrate consistency across the dataset since the associated visualizations may not reveal differences perceptible to the naked eye. We still can see that significant disparities can be observed in these two participants who exhibited substantial improvements.

4.4. Expandability and future work

The proposed VPCSP focused on the space domain of EEG data. We developed a regularization item for the CSP algorithm. The proposed method constrains the projected feature, which indicates that the spatial filters are constrained. From another point of view, the VPCSP without filter bands only improves the space domain of the CSP algorithm. And the time domain or the frequency domain of data is not considered in this scheme. Moreover, previous studies showed that the optimization of the time domain and frequency domain can improve the classification performance of the traditional CSP algorithm (Park and Chung, 2019; Zhang et al., 2019; Miao et al., 2021). Therefore, we considered the scheme that used the VPCSP with filter bands (VPCSP-FB). In this scheme, we utilize the filter bands technique to optimize the frequency domain of the extracted features further.

However, the proposed algorithm still has room for improvement. For instance, the time domain of this algorithm is still not optimized. And the frequency bands used in this research are limited. Considering more filter bands, effective feature selection methods could be utilized such as the least absolute shrinkage and selection operator (LASSO) method (Tibshirani, 1996). Thirdly, the classifier fusion strategy used in this work might be the easiest method. Other methods like the Fuzzy fusion method (Nazemi et al., 2017) could be considered in future work. Moreover, transfer learning has been applied in the BCI field (He and Wu, 2020). Consequently, the combination of these approaches and our method may generate new vitality in MI-based BCI field.

Actually, the state-of-the-art models mostly are the neural network models. But both the neural network models and the feature extraction models are evolving simultaneously. Although neural network models can achieve state-of-the-art performance, these models also have some defects in practical application. For one thing, these models tend to have higher complexity and more user-defined parameters. Compared with the CSP algorithm, training these models often requires more data to ensure the stability of the model. When the dataset is too small to train a large-scale CNN, there comes the overfitting problem that decreases the performance of CNN (Ma et al., 2022). This limits its promotion in practical applications, because each data sample requires users to perform tasks to obtain, users will feel tired because of the execution of tasks, so the amount of data is small. For another, some transfer learning algorithms have been successfully applied to CSP algorithms (He and Wu, 2020; Wu et al., 2022). Through these algorithms, subjects do not have to spend a lot of time on data collection to train the model, and only a small amount of data can be used to calibrate the criteria to obtain satisfactory classification performance, and then the BCI system can be used. This can improve users’ comfort with BCI systems to some extent. And the proposed method still has the enough expandability to these algorithms. Further studies are worth doing in future for this problem.

5. Conclusion

In this study, we propose a variance-feature-preserving CSP algorithm. We will focus on the characteristics of the projection space and develop a regularization project. We design a graph for the projected data and calculate the loss of the edges in the graph. Then the total loss of the projected data is taken as the regularization term. By introducing the designed regularization term, the local variance feature is preserved while solving the spatial filter, the deviation of the whole projection data is reduced, and the delay operator is combined for further optimization. In addition, we introduce Bayesian optimization algorithm to avoid manual selection of user-defined parameters and obtain excellent classification performance. The proposed feature extraction algorithm still retains scalability and can be further optimized with other transfer learning algorithms. The performance of the proposed model is verified on two public data sets and one self-collected data set. The experimental results show that compared with the existing improved CSP algorithm, the proposed method is more robust and can obtain better classification performance, which indicates that our method is an improvement of the CSP algorithm. It can be used for decoding of BCI system based on motor imagination tasks.

Data availability statement

The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation. Further inquiries can made to the corresponding author.

Ethics statement

The studies involving humans were approved by Ethics Committee of East China University of Science and Technology. The studies were conducted in accordance with the local legislation and institutional requirements. The participants provided their written informed consent to participate in this study.

Author contributions

WL raised the idea of the manuscript and designed the experiment. JJ made effective suggestions on the manuscript’s structure and provided the experimental site. RX has embellished the language of the manuscript and made key suggestions. XW and AC provided inputs for optimizing the data processing flow. All authors contributed to the manuscript revision, read, and approved the submitted version.

Funding

This work was supported by STI 2030-major projects 2022ZD0208900 and the Grant National Natural Science Foundation of China under Grant 62176090; in part by Shanghai Municipal Science and Technology Major Project under Grant 2021SHZDZX, in part by the Program of Introducing Talents of Discipline to Universities through the 111 Project under Grant B17017; This research is also supported by National Government GuidedSpecial Funds for Local Science and Technology Development (Shenzhen, China) (No. 2021Szvup043) and by Project of Jiangsu Province Science and Technology Plan Special Fund in 2022 (Key research and development plan industry foresight and key core technologies) under Grant BE2022064-1.

Conflict of interest

RX was employed by g.tec Medical Engineering GmbH.

The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

References

Aggarwal, S., and Chugh, N. (2019). Signal processing techniques for motor imagery brain computer interface: a review. Array 1-2:100003. doi: 10.1016/j.array.2019.100003

CrossRef Full Text | Google Scholar

Amari, S., and Wu, S. (1999). Improving support vector machine classifiers by modifying kernel functions. Neural Netw. 12, 783–789. doi: 10.1016/S0893-6080(99)00032-5

PubMed Abstract | CrossRef Full Text | Google Scholar

Ang, K. K., Chin, Z. Y., Zhang, H., and Guan, C. (2008). Filter bank common spatial pattern (FBCSP) in brain-computer interface. in 2008 IEEE international joint conference on neural networks (IEEE world congress on computational intelligence), Hong Kong, China. 2390–2397.

Google Scholar

Bergstra, J., Bardenet, R., Bengio, Y., and Kégl, B. (2011). “Algorithms for hyper-parameter optimization” in Advances in neural information processing systems. eds. J. Shawe-Taylor, R. Zemel, P. Bartlett, F. Pereira, and K. Q. Weinberger (New York: Curran Associates, Inc)

Google Scholar

Bergstra, J., Yamins, D., and Cox, D. (2013). “Making a science of model search: Hyperparameter optimization in hundreds of dimensions for vision architectures” in Proceedings of the 30th international conference on machine learning proceedings of machine learning research. eds. S. Dasgupta and D. McAllester (Atlanta, Georgia, USA: PMLR), 115–123.

Google Scholar

Blankertz, B., Muller, K.-R., Krusienski, D. J., Schalk, G., Wolpaw, J. R., Schlogl, A., et al. (2006). The BCI competition III: validating alternative approaches to actual BCI problems. IEEE Trans. Neural Syst. Rehabil. Eng. 14, 153–159. doi: 10.1109/TNSRE.2006.875642

PubMed Abstract | CrossRef Full Text | Google Scholar

Chaudhary, S., Taran, S., Bajaj, V., and Siuly, S. (2020). A flexible analytic wavelet transform based approach for motor-imagery tasks classification in BCI applications. Comput. Methods Prog. Biomed. 187:105325. doi: 10.1016/j.cmpb.2020.105325

PubMed Abstract | CrossRef Full Text | Google Scholar

Corsi, M.-C., Chavez, M., Schwartz, D., Hugueville, L., Khambhati, A. N., Bassett, D. S., et al. (2019). Integrating EEG and MEG signals to improve motor imagery classification in braincomputer interface. Int. J. Neural Syst. 29:1850014. doi: 10.1142/s0129065718500144

PubMed Abstract | CrossRef Full Text | Google Scholar

Cortes, C., and Vapnik, V. (1995). Support-vector networks. Mach. Learn. 20, 273–297. doi: 10.1023/A:1022627411411

CrossRef Full Text | Google Scholar

Dai, M., Zheng, D., Liu, S., and Zhang, P. (2018). Transfer kernel common spatial patterns for motor imagery brain-computer interface classification. Comput. Math. Methods Med. 2018, 1–9. doi: 10.1155/2018/9871603

PubMed Abstract | CrossRef Full Text | Google Scholar

Dornhege, G., Blankertz, B., Krauledat, M., Losch, F., Curio, G., and Muller, K.-R. (2006). Combined optimization of spatial and temporal filters for improving brain-computer interfacing. IEEE Trans. Biomed. Eng. 53, 2274–2281. doi: 10.1109/tbme.2006.883649

CrossRef Full Text | Google Scholar

Fisher, R. A. (1936). The use of multiple measurements in taxonomic problems. Ann. Eugenics 7, 179–188. doi: 10.1111/j.1469-1809.1936.tb02137.x

CrossRef Full Text | Google Scholar

He, H., and Wu, D. (2020). Transfer learning for brain-computer interfaces: a Euclidean space data alignment approach. IEEE Trans. Biomed. Eng. 67, 399–410. doi: 10.1109/TBME.2019.2913914

PubMed Abstract | CrossRef Full Text | Google Scholar

Hou, Y., Chen, T., Lun, X., and Wang, F. (2022). A novel method for classification of multi-class motor imagery tasks based on feature fusion. Neurosci. Res. 176, 40–48. doi: 10.1016/j.neures.2021.09.002

PubMed Abstract | CrossRef Full Text | Google Scholar

Jafarifarmand, A., Badamchizadeh, M. A., Khanmohammadi, S., Nazari, M. A., and Tazehkand, B. M. (2018). A new self-regulated neuro-fuzzy framework for classification of EEG signals in motor imagery BCI. IEEE Trans. Fuzzy Syst. 26, 1485–1497. doi: 10.1109/tfuzz.2017.2728521

CrossRef Full Text | Google Scholar

Jiang, A., Shang, J., Liu, X., Tang, Y., Kwan, H. K., and Zhu, Y. (2020). Efficient CSP algorithm with Spatio-temporal filtering for motor imagery classification. IEEE Trans. Neural Syst. Rehabil. Eng. 28, 1006–1016. doi: 10.1109/TNSRE.2020.2979464

PubMed Abstract | CrossRef Full Text | Google Scholar

Kevric, J., and Subasi, A. (2017). Comparison of signal decomposition methods in classification of EEG signals for motor-imagery BCI system. Biomed. Signal Proces. Control 31, 398–406. doi: 10.1016/j.bspc.2016.09.007

CrossRef Full Text | Google Scholar

Lemm, S., Blankertz, B., Curio, G., and Muller, K.-R. (2005). Spatio-spectral filters for improving the classification of single trial EEG. IEEE Trans. Biomed. Eng. 52, 1541–1548. doi: 10.1109/TBME.2005.851521

PubMed Abstract | CrossRef Full Text | Google Scholar

Lotte, F., and Guan, C. (2011). Regularizing common spatial patterns to improve BCI designs: unified theory and new algorithms. IEEE Trans. Biomed. Eng. 58, 355–362. doi: 10.1109/TBME.2010.2082539

PubMed Abstract | CrossRef Full Text | Google Scholar

Lu, H., Eng, H.-L., Guan, C., Plataniotis, K. N., and Venetsanopoulos, A. N. (2010). Regularized common spatial pattern with aggregation for EEG classification in small-sample setting. IEEE Trans. Biomed. Eng. 57, 2936–2946. doi: 10.1109/TBME.2010.2082540

PubMed Abstract | CrossRef Full Text | Google Scholar

Ma, Y., Song, Y., and Gao, F. (2022). A novel hybrid CNN-transformer model for EEG motor imagery classification. in 2022 International Joint Conference on Neural Networks (IJCNN), Padua, Italy. 1–8.

Google Scholar

McFarland, D. J., and Wolpaw, J. R. (2017). EEG-based brain-computer interfaces. Curr. Opin. Biomed. Eng. 4, 194–200. doi: 10.1016/j.cobme.2017.11.004

PubMed Abstract | CrossRef Full Text | Google Scholar

Meng, J., Liu, G., Huang, G., and Zhu, X. (2009). Automated selecting subset of channels based on CSP in motor imagery brain-computer interface system. in 2009 IEEE International Conference on Robotics and Biomimetics (ROBIO), Guilin, China. 2290–2294.

Google Scholar

Miao, Y., Jin, J., Daly, I., Zuo, C., Wang, X., Cichocki, A., et al. (2021). Learning common time-frequency-spatial patterns for motor imagery classification. IEEE Trans. Neural Syst. Rehabil. Eng. 29, 699–707. doi: 10.1109/TNSRE.2021.3071140

PubMed Abstract | CrossRef Full Text | Google Scholar

Mishuhina, V., and Jiang, X. (2018). Feature weighting and regularization of common spatial patterns in EEG-based motor imagery BCI. IEEE Signal Proces. Lett. 25, 783–787. doi: 10.1109/LSP.2018.2823683

CrossRef Full Text | Google Scholar

Müller-Gerking, J., Pfurtscheller, G., and Flyvbjerg, H. (1999). Designing optimal spatial filters for single-trial EEG classification in a movement task. Clin. Neurophysiol. 110, 787–798. doi: 10.1016/s1388-2457(98)00038-8

PubMed Abstract | CrossRef Full Text | Google Scholar

Nazemi, A., Fatemi Pour, F., Heidenreich, K., and Fabozzi, F. J. (2017). Fuzzy decision fusion approach for loss-given-default modeling. Eur. J. Oper. Res. 262, 780–791. doi: 10.1016/j.ejor.2017.04.008

CrossRef Full Text | Google Scholar

Noh, E., and Sa, V. R.de (2013). Canonical correlation approach to common spatial patterns. in 2013 6th International IEEE/EMBS Conference on Neural Engineering (NER) (IEEE), San Diego, CA. 669–672.

Google Scholar

Novi, Q., Guan, C., Dat, T. H., and Xue, P. (2007). Sub-band common spatial pattern (SBCSP) for brain-computer interface. in 2007 3rd International IEEE/EMBS Conference on Neural Engineering, Kohala Coast, HI. 204–207.

Google Scholar

Park, Y., and Chung, W. (2018). BCI classification using locally generated CSP features. in 2018 6th International Conference on Brain-Computer Interface (BCI), Gangwon, Korea. 1–4.

Google Scholar

Park, Y., and Chung, W. (2019). Frequency-optimized local region common spatial pattern approach for motor imagery classification. IEEE Trans. Neural Syst. Rehabil. Eng. 27, 1378–1388. doi: 10.1109/TNSRE.2019.2922713

CrossRef Full Text | Google Scholar

Pfurtscheller, G., and Neuper, C. (1997). Motor imagery activates primary sensorimotor area in humans. Neurosci. Lett. 239, 65–68. doi: 10.1016/s0304-3940(97)00889-6

CrossRef Full Text | Google Scholar

Qi, F., Li, Y., and Wu, W. (2015). RSTFC: a novel algorithm for spatio-temporal filtering and classification of single-trial EEG. IEEE Trans. Neural Netw. Learn. Syst. 26, 3070–3082. doi: 10.1109/tnnls.2015.2402694

CrossRef Full Text | Google Scholar

Ramoser, H., Muller-Gerking, J., and Pfurtscheller, G. (2000). Optimal spatial filtering of single trial EEG during imagined hand movement. IEEE Trans. Rehabil. Eng. 8, 441–446. doi: 10.1109/86.895946

PubMed Abstract | CrossRef Full Text | Google Scholar

Rey, D., and Neuhäuser, M. (2011). “Wilcoxon-signed-rank test” in International encyclopedia of statistical science. ed. M. Lovric (Berlin, Heidelberg: Springer Berlin Heidelberg), 1658–1659.

Google Scholar

Romero-Laiseca, M. A., Delisle-Rodriguez, D., Cardoso, V., Gurve, D., Loterio, F., Posses Nascimento, J. H., et al. (2020). A low-cost lower-limb brain-machine interface triggered by pedaling motor imagery for post-stroke patients rehabilitation. IEEE Trans. Neural Syst. Rehabil. Eng. 28, 988–996. doi: 10.1109/TNSRE.2020.2974056

CrossRef Full Text | Google Scholar

Rouse, A. G., Williams, J. J., Wheeler, J. J., and Moran, D. W. (2016). Spatial co-adaptation of cortical control columns in a micro-ECoG braincomputer interface. J. Neural Eng. 13:056018. doi: 10.1088/1741-2560/13/5/056018

PubMed Abstract | CrossRef Full Text | Google Scholar

Sadiq, M. T., Yu, X., Yuan, Z., and Aziz, M. Z. (2020). Motor imagery BCI classification based on novel two-dimensional modelling in empirical wavelet transform. Electron. Lett. 56, 1367–1369. doi: 10.1049/el.2020.2509

CrossRef Full Text | Google Scholar

Selim, S., Tantawi, M., Shedeed, H., and Badr, A. (2017). “Reducing execution time for real-time motor imagery based BCI systems” in Proceedings of the international conference on advanced intelligent systems and informatics 2016. eds. A. E. Hassanien, K. Shaalan, T. Gaber, A. T. Azar, and M. F. Tolba (Cham: Springer International Publishing), 555–565.

Google Scholar

Selim, S., Tantawi, M. M., Shedeed, H. A., and Badr, A. (2018). A CSP\AM-BA-SVM approach for motor imagery BCI system. IEEE Access 6, 49192–49208. doi: 10.1109/access.2018.2868178

CrossRef Full Text | Google Scholar

Sun, H., Jin, J., Kong, W., Zuo, C., Li, S., and Wang, X. (2020). Novel channel selection method based on position priori weighted permutation entropy and binary gravity search algorithm. Cogn. Neurodyn. 15, 141–156. doi: 10.1007/s11571-020-09608-3

CrossRef Full Text | Google Scholar

Tibshirani, R. (1996). Regression shrinkage and selection via the lasso. J. Royal Stat. Soc. Series B 58, 267–288. doi: 10.1111/j.2517-6161.1996.tb02080.x

CrossRef Full Text | Google Scholar

Weiskopf, N., Mathiak, K., Bock, S. W., Scharnowski, F., Veit, R., Grodd, W., et al. (2004). Principles of a brain-computer interface (BCI) based on real-time functional magnetic resonance imaging (fMRI). IEEE Trans. Biomed. Eng. 51, 966–970. doi: 10.1109/TBME.2004.827063

CrossRef Full Text | Google Scholar

Wu, D., Jiang, X., and Peng, R. (2022). Transfer learning for motor imagery based brain-computer interfaces: a tutorial. Neural Netw. 153, 235–253. doi: 10.1016/j.neunet.2022.06.008

PubMed Abstract | CrossRef Full Text | Google Scholar

Xie, X., Yu, Z. L., Lu, H., Gu, Z., and Li, Y. (2017). Motor imagery classification based on bilinear sub-manifold learning of symmetric positive-definite matrices. IEEE Trans. Neural Syst. Rehabil. Eng. 25, 504–516. doi: 10.1109/TNSRE.2016.2587939

PubMed Abstract | CrossRef Full Text | Google Scholar

Yong, X., Ward, R. K., and Birch, G. E. (2008). Sparse spatial filter optimization for EEG channel reduction in brain-computer interface. in 2008 IEEE International Conference on Acoustics, Speech and Signal Processing, Las Vegas, NV. 417–420.

Google Scholar

Zhang, H., Guan, C., Ang, K. K., and Chin, Z. Y. (2012). BCI competition IV – data set i: learning discriminative patterns for self-paced EEG-based motor imagery detection. Front. Neurosci. 6:7. doi: 10.3389/fnins.2012.00007

CrossRef Full Text | Google Scholar

Zhang, X., Jin, J., Li, S., Wang, X., and Cichocki, A. (2021). Evaluation of color modulation in visual P300-speller using new stimulus patterns. Cogn. Neurodyn. 15, 873–886. doi: 10.1007/s11571-021-09669-y

PubMed Abstract | CrossRef Full Text | Google Scholar

Zhang, Y., Nam, C. S., Zhou, G., Jin, J., Wang, X., and Cichocki, A. (2019). Temporally constrained sparse group spatial patterns for motor imagery BCI. IEEE Trans. Cyber. 49, 3322–3332. doi: 10.1109/TCYB.2018.2841847

PubMed Abstract | CrossRef Full Text | Google Scholar

Keywords: motor imagery, EEG, brain-computer interface, common spatial pattern, variance characteristic preserving

Citation: Liang W, Jin J, Xu R, Wang X and Cichocki A (2023) Variance characteristic preserving common spatial pattern for motor imagery BCI. Front. Hum. Neurosci. 17:1243750. doi: 10.3389/fnhum.2023.1243750

Received: 21 June 2023; Accepted: 23 October 2023;
Published: 09 November 2023.

Edited by:

Jiahui Pan, South China Normal University, China

Reviewed by:

Fangzhou Xu, Qilu University of Technology, China
Omar Mendoza Montoya, Monterrey Institute of Technology and Higher Education (ITESM), Mexico
Gan Huang, Shenzhen University, China

Copyright © 2023 Liang, Jin, Xu, Wang and Cichocki. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Jing Jin, jinjingat@gmail.com

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.