Next Article in Journal
Development of High-Temperature Wire-Grid Thin Film Strain Gauges
Next Article in Special Issue
An Ensemble Learning Method for Emotion Charting Using Multimodal Physiological Signals
Previous Article in Journal
Comparison of RetinaNet-Based Single-Target Cascading and Multi-Target Detection Models for Administrative Regions in Network Map Pictures
Previous Article in Special Issue
Cooperative Energy-Efficient Routing Protocol for Underwater Wireless Sensor Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Classification of EEG Using Adaptive SVM Classifier with CSP and Online Recursive Independent Component Analysis

by
Mary Judith Antony
1,
Baghavathi Priya Sankaralingam
2,
Rakesh Kumar Mahendran
3,
Akber Abid Gardezi
4,
Muhammad Shafiq
5,*,
Jin-Ghoo Choi
5,* and
Habib Hamam
6,7,8,9,*
1
Department of Computer Science and Engineering, Loyola-ICAM College of Engineering and Technology, Chennai 600034, India
2
Department of Computer Science and Engineering, Rajalakshmi Engineering College, Chennai 602105, India
3
Department of Electronics and Communication Engineering, Veltech Multitech Dr. Rangarajan Dr. Sakunthala Engineering College, Chennai 600062, India
4
Department of Computer Science, COMSATS University Islamabad, Islamabad 45550, Pakistan
5
Department of Information and Communication Engineering, Yeungnam University, Gyeongsan 38541, Korea
6
Faculty of Engineering, Uni de Moncton, Moncton, NB E1A 3E9, Canada
7
International Institute of Technology and Management, Commune d’Akanda, BP, Libreville 1989, Gabon
8
School of Electrical and Electronic Engineering Science, Department of Electrical Engineering, University of Johannesburg, Johannesburg 2006, South Africa
9
Spectrum of Knowledge Production & Skills Development, Sfax 3027, Tunisia
*
Authors to whom correspondence should be addressed.
Sensors 2022, 22(19), 7596; https://doi.org/10.3390/s22197596
Submission received: 11 August 2022 / Revised: 22 September 2022 / Accepted: 28 September 2022 / Published: 7 October 2022
(This article belongs to the Special Issue Advances in IoMT for Healthcare Systems)

Abstract

:
An efficient feature extraction method for two classes of electroencephalography (EEG) is demonstrated using Common Spatial Patterns (CSP) with optimal spatial filters. However, the effects of artifacts and non-stationary uncertainty are more pronounced when CSP filtering is used. Furthermore, traditional CSP methods lack frequency domain information and require many input channels. Therefore, to overcome this shortcoming, a feature extraction method based on Online Recursive Independent Component Analysis (ORICA)-CSP is proposed. For EEG-based brain—computer interfaces (BCIs), especially online and real-time BCIs, the most widely used classifiers used to be linear discriminant analysis (LDA) and support vector machines (SVM). Previous evaluations clearly show that SVMs generally outperform other classifiers in terms of performance. In this case, Adaptive Support Vector Machine (A-SVM) is used for classification together with the ORICA-CSP method. The results are promising, and the experiments are performed on EEG data of 4 classes’ motor images, namely Dataset 2a of BCI Competition IV.

1. Introduction

Several EEG signal feature extraction methods have been introduced in recent years. These feature extraction methods include Empirical Mode Decomposition, Autoregressive approaches, Wavelet transform methods, Phase-Space Reconstruction Approach, and CSP-based methods [1]. In this article [2] combined the methods of Variational Mode Decomposition (VMD) and Hilbert Transform (HT) to extract valuable characteristics from EEG recordings and the stacking neural network to identify epilepsy seizures to suggest an intelligent system. The HT approach extracts characteristics from EEG signals after the VMD method decomposes EEG signals into intrinsic mode functions. Using extracted features, the stacked-NN method is used to identify epilepsy seizures [3]. A Common Spatial Pattern (CSP), one of the well-liked and effective approaches for Motor Imagery (MI) Brain Computer Interface (BCI), was used to extract features for the categorization of motor-imaging tasks [4,5]. This approach provides spatial filters that enable separation of two conditions by optimizing variance differences between them. CSP filters are perfectly suited to identify mental states that are characterized by motor sensory rhythm effects since the variance of band-pass filtered signals is equivalent to band-power [6].
Despite being highly efficient, the CSP approach is noise sensitive for small datasets [7]. In attempt to address this problem, a number of CSP variations have been proposed that boost its robustness. In [8] this proposed work the Common Spatio-Spectral Pattern (CSSP) to enhance the performance of CSP even more. Within CSP in CSSP, a finite impulse response filter has been optimized in this approach. This is accomplished by including a temporal delay, which improves CSSP performance and makes it possible to specify separate frequency filters. The CSSSP (Common Sparse Spectral Spatial Pattern) methodology was suggested to improve the CSSP method [9].This strategy finds spectral patterns that are common to all the channels rather than finding unique spectral patterns for each channel as in CSSP.
The technique known as the Sub-Band Common Spatial Pattern (SBCSP), in which the motor imagery EEG signals are filtered at different sub-bands and CSP features are extracted from each of the sub-bands [10] and in this work [11], created the Filter Bank CSP (FBCSP) to undertake autonomous selection of significant temporal-spatial discriminative EEG properties in order to address this problem. SBCSP, however, has not taken into account the probable correlation of the CSP characteristics collected from multiple sub-bands. Then, CSP characteristics are retrieved from each of the bands created by bandpass-filtering the EEG readings into different ranges of frequency. Automatically choosing discriminative pairings of frequency bands and matching CSP features is then done using a feature selection method. FBCSP performed better than SBCSP, but it also used more sub-bands, which raised the computational cost.
The authors proposed utilizing the Discriminant Filter Bank CSP (DFBCSP) to choose the highest discriminant sub-bands from a number of overlapping sub-bands [12]. DFBCSP improved classification accuracy while using less CPU power than SBCSP and FBCSP. The spatial patterns produced by the CSP algorithm draw attention to the underlying neural activity that is crucial for differentiating between different motor tasks. The phase discrepancies between spatial places are not explicitly treated by CSP, which is a drawback. According to [13,14], the phase can provide important information for identifying the different forms of motor imagery activity.
The Analytical Common Spatial Pattern (ACSP), which enables the definition of magnitude and phase features, was used for the first time [15]. By choosing a group of spatial filters that maximise variance for one class of data while reducing variance for the other, the ACSP approach aims to discriminate between two classes of data. As opposed to its real-valued cousin, ACSP can handle complex-valued variance, which may be more illuminating. To achieve the best results, the authors [16] suggested using a manually calibrated decimation filter. The dimensionality of the features was decreased using Fishers’ Discriminant Analysis (FDA), and an SVM classifier was deployed. The technique (known as CD-CSP-FDA) produced improved performance compared to cutting-edge alternatives. The multiple filter band Sparse Filter Bank CSP (SFBCSP) method, Ref. [17] introduced, is used to optimize the sparse patterns. Significant CSP characteristics are chosen from many overlapping frequency bands using a supervised approach. Then, using the chosen characteristics, an SVM classifier is utilized to categorize motor images.
Sparse Bayesian learning, which has been applied for feature selection in a variety of applications, has also lately attracted more interest. The decomposition of the EEG signal into several sub-bands and extraction of CSP characteristics [18]. The Bayesian learning technique is utilized to create sparse features, and the SVM classifier is then employed for classification. Empirical averaging of covariance matrices for training samples is carried out in CSP. This includes the poor signal quality, which reduces system performance. As a result. In [19], presented a sparsity-aware technique that added weighted averaging. Weight coefficients are allocated to each of the trial. The efficiency of the CSP algorithm was enhanced by using this weighting approach to calculate the average covariance matrix.
As the CSP approach needs a lot of electrodes to obtain good results, According to [20], introduced a unique feature extraction technique called common spatial patterns with autoregressive parameters to boost the CSP classification accuracy with less electrodes (CSP-AR). The CSP-AR approach optimizes the differences between two populations in addition to making explicit use of frequency data (i.e., right and left motor imagery). The test results reveal that the CSP-AR has a higher classification accuracy of 87.1 percent than standard CSP and AR parameters, which is demonstrated using the motor imagery data set from the second BCI Competition. The CSP-AR technique improves classification results while simultaneously offering the advantages of high robustness.
A linear classifier establishes classification boundaries based on the value of a linear combination of variables or features. Linear Discriminant Analysis (LDA) and Support Vector Machines (SVMs) are the most often used classifiers in EEG-based BCIs, especially in online and real-time BCIs [21,22]. SVM often outperforms competing classifiers [23].
The classification methods used in EEG-based BCIs may be broken down into four categories: transfer learning, deep learning, adaptive classifiers, grid, and tensor classifiers. It is clear that, even for unsupervised adaptation, adaptive classifiers outperform static ones. By modifying the classifier online, fresh data entered while using the BCI may be used for ongoing training of the classifier, minimizing the amount of training data needed while also enhancing execution by enhancing the classifier’s ability to alter data. When fresh EEG data become available for adaptive classifiers, the settings are continually reviewed and changed. As a result, it is suggested to pair the ORICA-CSP based feature extraction approach with an Adaptive Support Vector Machine classifier. The suggested technique is used to differentiate between four motor imagery tasks using actual EEG data from nine human individuals.
The remaining paper is organized as follows: Section 2 explains the Adaptive SVM classifier and the framework of A-SVM with ORICA is explained in Section 3. The experimental results of the proposed approach are discussed in Section 4 and finally the work is concluded in Section 5.

2. Adaptive SVM Classifier

The standard SVM is a non-probabilistic binary linear classifier, for example prediction is done for every information that is given and identifies where between the two classes is the information [24]. An assumption is made by SVM that the information sources are numeric. In the event where categorical information sources are present, they must be changed to binary dummy variables (one variable for every classification). SVM can do linear classification and work as a nonlinear classification using kernel tricks where the inputs are mapped to high-dimensional feature spaces. In taking care of the nonlinear classification problem of SVM, the kernel function is utilized rather than the internal product calculation and nonlinear problems are changed over to linear classification problems by increasing their dimensionality.
Consider a training set of the form ( m 1 ,   n 1 )……( m n , n n ), where m i belongs to the class n i that is represented as 1 or −1. SVM uses a hyperplane to segregate the datasets m i with n i as 1 from the datasets m i with n i being −1. Datasets   m i are expanded; it is said to be the maximum margin hyperplane; this is done when the distance of the hyperplane is closest. The hyperplane is written as v .   m b = 0 , where v is a normal vector. The offset of the hyperplane along the vector can be determined through the parameter   b | | v | | . To maximize the distances between the planes, | | v | | needs to be maximized.
Adaptive classifiers with progressively updated online parameters were developed to address EEG non-stationarity and monitor changes in EEG features over time. Additionally, by learning online, adaptive classifiers can function with little to no offline training data. Due to the non-stationarity of brain signals, the adaptive processing can lessen accuracy loss in the subsequent classification step as well as modest changes in the global mean during the course of evaluation sessions. Since these oscillations have nothing to do with the activity at hand, they can be handled without supervision. The same classification model may be used for training and assessment sessions.
Guided user training is necessary for supervised BCI adaptation, during which the users’ orders are enforced and the appropriate EEG class labels are therefore known. With free BCI use, supervised adaptation is not feasible since the real label of the incoming EEG data is unknown. The entering EEG data’s label is unknown with unsupervised adaptation. As a result, unsupervised adaptation is based on an estimation of the data class labels for retraining or updating, or it is based on class-unspecific adaptation, such as updating the classifier model with the general all classes EEG data mean.
The weights given to each feature in a linear discriminant hyperplane, for example, are adaptive classifier parameters that are progressively re-estimated and modified over time when fresh EEG data become available. As a result, even with non-stationary inputs like an EEG, the classifier can follow potentially changing feature distribution and continue to function well. Both supervised and unsupervised adaptation, or knowing the actual class labels of the incoming data, may be used by adaptive classifiers. In supervised adaptation, the real class labels of the entering EEG signals are known, and the classifier is either updated solely using the new data and retrained using the existing training data enriched with the new, labelled incoming data.

3. A-SVM with ORICA-CSP Framework

It is proposed to pair the ORICA-CSP based feature extraction approach with an adaptive support vector machine classifier. The suggested technique is used to differentiate between four motor imagery tasks using actual EEG data from nine human individuals. In an MI movement, the applicant imagines how the actual action would be executed, and the EEG modality records the appropriate neuro-electric processes. There are several varieties of EEG-based BCI, including single finger motions from one hand utilizing human EEG signals, continuous arm movement using EEG signals, simple and compound limb motor imagery, etc. The majority of research studies in the current MI literature are concerned with two-class or three-class problems, such as left hand vs. right hand and left hand, right hand, and feet, respectively. In this case, the two feet are treated as a single class. When two-foot movement needs to be discriminated, between multiclass MI movement or more than three class classification work, is always a difficult issue.

3.1. System Architecture

The overall system architecture is represented in Figure 1. The figure describes the workflow with the proposed feature extraction and classification approaches. Initially, the raw EEG signals are preprocessed with the ORICA approach to remove the signal artifacts and the Common Spatial Pattern filter is generated to extract the features, which is then sent for classification by the proposed Adaptive SVM based approach that classifies the signals into four classes as Left hand, Right hand, Feet, and Tongue. This approach of signal processing is explained further in detail.

3.2. Dataset Description

The BCI COMP IV 2a dataset, which was created from data collected from nine people in the BNCI Horizon 2020 database, served as the basis for the Motor Imagery EEG data used in this study. Four motor imagining tasks were included in the cue-based BCI paradigm: left hand (class 1), right hand (class 2), both feet (class 3), and tongue movement (class 4). Two separate sessions were videotaped for each subject on several days. In each session, six runs were spaced apart by brief pauses. At the beginning of each session, a recording of around five minutes was produced to gauge the EOG impact. Three segments of the tape were used: two minutes of open eyes (gazing at a fixation cross on the screen), one minute of closed eyes, and one minute of eye movements.
Twenty-two Ag/AgCl electrodes with 3.5 cm between them were used to capture the EEG. The left mastoid served as the reference and the right mastoid as the ground while all signals were collected monopolarly. Data between 0.5 and 100 Hz were bandpass filtered after being recorded at 250 Hz. The sensitivity of the amplifier was set at 100 volts. An extra 50 Hz notch filter was turned on to lessen line noise. Along with the 22 EEG channels, three monopolar EOG channels were also captured and sampled at 250 Hz. They had a 0.5 to 100 Hz bandpass filter applied to them (with the 50 Hz notch filter enabled), and the amplifier’s sensitivity was set at 1 mV [25].

3.3. ORICA

To enable the ORICA algorithm and CSP appropriate for MI EEG data feature extraction, a novel framework is developed. The original sources may be successfully retrieved using this framework and supplied to CSP as input for feature extraction. The ICA algorithm’s goal is to identify the de-mixing matrix M−1, where M is the mixing matrix in the recorded EEG signal, and then to recover the EEG sources. The independent source signals may combine into dependent signals during the mixing process. The whitening procedure is thought to address this issue by making the source independent by lowering the correlation between the signals. The whitening process and the separation process, where the whitened signals are applied for the de-mixing process, are therefore two processes that make up the separation process.
The recordings will be separated into blocks, with the same number of samples in each block, in order to simplify processing and make the method more universal and usable. Instead of repeating the iteration for every sample, it will be done in brief blocks of samples. The number of block sizes affects how quickly the method converges. The effective duration of the time frame is determined by the forgetting factor. The appropriate window length will be short if the value of the forgetting factor is high. A large beginning value of the forgetting factor is often required to achieve rapid convergence, whereas a lower starting value is employed to reduce variation.
To make the mixed sources independent, the signals after pre-processing are subjected to the online whitening process. The artifact-contaminated MI EEG recording source is accurately and successfully separated using the ORICA algorithm [26]. For each iteration, the whitening matrix X and the de-mixing matrix W are computed according to Equations (1) and (3), respectively, by adding the block-update rule on matrix W. Since the iteration is processed in blocks instead of each sample, the computational complexity can be reduced:
X i + 1 = X i + u i 1 u i   [ I v i × v i T 1 + u i ( v i T × v i 1 ) ]     × X i
where Xi, Whitening matrix; i, number of iterations; v i = X i x i , the whitened data; u i , factor to be forgotten; I, an identity matrix:
W i + 1 = W i + l r   [ I f ( a i ) × a i T ] × W i
W i + 1 = W i + u i 1 u i   [ I a i × f T ( a i ) 1 + u i ( f T ( a i 1 ) ]   ×   W i
where W = M 1 , demixing matrix a   i = W i v i ;   l r , learning rate; f ( a i ) , activation function.
Original EEG and EOG sources are restored once ORICA is applied. When people do MI, just one specific area of the brain is activated. The contralateral areas over the motor cortex, for instance, are active during hand imaging. The mid-central or parietal regions are engaged in images of the feet and tongue. However, it is unknown which of the separated components corresponds to the active region of the brain.

3.4. ORICA-CSP

Consider using the ORICA-processed characteristic elements of a motor imaging process in an experiment as the input for the CSP algorithm. Calculations should be made using the CSP feature extraction approach, and all feature vectors should be chosen to create a spatial filter W for multiclass EEG data. Apply the aforementioned filter W on data1 and use the filtered results as data 2. Do the math to get the data energy of the number of independent components—also known as the number of channels.
To create a new filter W′, the feature vector that best represents the energy difference between the various categories in each training set is chosen. Feature extraction is done when filtering is done using the enhanced filter W′. The final features for classification are acquired after performing a logarithmic transformation on the feature values due to the significant variance between particular feature values. The ORICA-CSP working is explained in the Algorithm 1.
Algorithm 1: ORICA-CSP algorithm.
Input decomposed EEG signal using HOL-SSA
for I = 1 to n
Compute X i + 1 = X i + u i 1 u I   [ I v i v i T 1 + u i ( v i T v i 1 ) ] *   I   // whitening matrix
Compute   W i + 1 = W i + u i 1 I i   [ I a i f T ( a i ) 1 + u i ( f T ( a i 1 ) ] *   I   // demixing matrix
end
for k=1 to 4
Compute
S k =   U K U K T / trace ( U K U K T )
U o   Δ U o T // diagonal decomposition
M = Δ 1 / 2   U o T // whitening matrix
Compute W k and W k // whitening covariance matrices S k and S k
W k =   MS k M T
W k =   MS k M T
Compute P k =   U k T     M
Decompose  S k = D k / P ks
Generate P s = k = 1 4 P ks
end
for trial t=1 to n
Compute f v = log ( V m / t = 1 V m ) // V m , variance matrix
end
The separated sources are sent for feature extraction through the construction of a spatial filter W for multiclass EEG data, using the filter W to select the most obvious feature vector of the energy difference between different categories in each training set to form a new filter W’. This is done after the whitening matrix X and the de-mixing matrix W have been computed in accordance with Equations (2) and (3), respectively. The final features for classification are acquired after performing a logarithmic transformation on the feature values because of the significant variance between particular feature values.
Current brain–computer interfaces raise concerns about the non-stationarity of the underlying signals. It becomes difficult to transfer a classifier from one session to the next as a result, and the need for input sample collection at the conclusion of each session results. Employing an adaptive classifier is one way to maintain performance while lowering the likelihood of the training required for ideal BCI performance. It is suggested to use an adaptive classification method based on support vector machines.
Due to its effective classification performance, versatility in handling multi-dimensional data, and explicit error control, SVM is a popular classification paradigm in BCI systems. The fundamental goal of SVM is to build hyperplanes with the highest possible classification accuracy by reducing the cost function and maximizing the margins between classes. Support vectors display hyperplanes.
The main advantage of SVM is that it can be used as both an inconsistent and a consistent classifier. SVM may be turned into an inconsistent classifier by using one of the numerous kinds of kernel functions available, such as polynomial, radial basis, and sigmoid functions. In the current investigation, a sigmoid function was employed. Platt’s probabilistic output is used to determine the sigmoid function that calculates the posterior class probabilities v j . Since it has been shown to outperform consistent classifiers in terms of classification accuracy, an inconsistent SVM was chosen. The accuracy of the BCI system may be significantly higher after adaptation than it would be without adaptation, showing that online BCI adaptation improves performance. The Algorithm 2 below explains how the adaptive SVM works with the ORICA-CSP feature extraction approach.
Algorithm 2: A-SVM with ORICA-CSP.
Step 1: Input features vectors
f v = log ( V m / t = 1 V m )
/ / V m , variance matrix of EEG signal projection
Step 2: Determine the class label with function
f ( s i ) = ( w ,   s i ) + b
/ / s i   Rn ,   with   N   samples   { I , ,   s N }
Step 3: Classify the   new   sample   by   u j     and   v j
// u j = sign ( f ( s i ) )   and   the   posterior   class   probability ,   v j = Pb ( v j = v j | s i ) is calculated using Platt’s probabilistic output.
/ / Classifier   is   adapted   with   u j   and   v j
Step 4: Define threshold th
Step 5:   if   v j   >   th   holIs ,   s i is introduced to the dataset for training T
Step 6: Update whenever new samples are included in the solution
To avoid completely retraining each iteration, we adopted an incremental training strategy. Every time a new sample is added, the adaptive SVM will progressively update the solution. Due to its increased speed and ability to handle high-dimensional data, the adaptive classifier may now be employed in an online setting. The algorithm above explains how the Adaptive SVM works in terms of classification. Determine the class labels using the training data samples s i as indicated in step 2. If the posterior class probability is higher than the threshold set, the classifier should be updated with the new data when new samples like u j and v j are discovered.

4. Results and Discussion

The signal variable comprises 25 channels that are processed between 8 and 12 Hz (the latter three are EOG signals, while the first 22 are EEG signals). The EOG channels should not be utilized for classification; instead, they should be used for artifact processing operations thereafter. Here, the artifact removal strategy is the ORICA method.
The accuracy of the classifier and the associated Information Transfer Rate (ITR) were determined in order to assess the results from several sessions and for the various adaption approaches.
Although the ITR is a commonly used indicator of BCI performance that takes into account a better correlation of different BCI frameworks, it is a way for evaluating the BCI execution that ignores the actual plan of the BCI application and will thus often overestimate the performance. ITR and accuracy are used to gauge how well the suggested technique is working.
The analysis of artifact removal from the motor imagery signals using the proposed method is explained below. Figure 2 represents the channels used to acquire the motor imagery signals and their locations. The signals acquired by each of these channels are represented in Figure 3 as channel data. These signals are further decomposed using the proposed decomposition approach and the topoplots of all the independent components are shown in Figure 4.
A sample of two component’s topoplot is explained below for analysis. Figure 5 depicts the topoplot of component 12 and the presence of brain signals and other artifacts. The ERP (Event Related Potential) of component 12 is represented in Figure 6. Similarly, the presence of EEG signals and artifacts in the other components are shown in Table 1.
With the Online Recursive Independent Component Analysis approach of artifact removal, the original source signal is separated from the other artifact signals. This separation of signal is represented in Figure 7 where the signals in red denote the artifact free EEG signals.
The categorization of imaginary motor tasks for EEG-based BCI using the ORICA-CSP feature extraction method is the focus of this work. The effectiveness of the suggested method is evaluated using dataset 2a from the BCI Competition IV’s multiclass problem. The performances were contrasted with those of the other publicly available approaches, CSP and ICA + Wavelet-CSP. According to our study, using the ORICA+CSP feature extraction approach in combination with adaptive classification would boost the classification accuracy since it provided much higher kappa values than other methods, as will be detailed below.
The results of the suggested approach are compared to those of the Wavelet-CSP on the BCI Competition IV 2a and the results of the standard CSP based on the 8–30 Hz IIR band-pass filters (4 class motor imagery dataset). A kappa coefficient (k) was utilized in this competition as a criterion of uniqueness. Table 2 displays the k values for the two techniques as well as the suggested strategy. In comparison to Wavelet-CSP and traditional CSP with a band-pass filter, the suggested technique yields an average k value of 0.75 rather than 0.68 and 0.51, respectively. Figure 8 also shows the performance analysis of each participant using a different feature extraction approach, and Figure 9 compares the average results.
The results of the proposed method are compared to those of the ORICA-CSP method, which produces better results because it computes complex-valued spatial filters instead of choosing a wavelet function that necessitates the extraction of sources’ prior knowledge, as opposed to the Wavelet-CSP method. This enhancement raises the possibility that spatial filters derived from ORICA-CSP might offer more information on the interactions between different cortical areas when mental activities are being carried out. Our findings essentially indicate that ORICA-CSP produced a more reliable motor imaging feature extraction than the conventional CSP and Wavelet-CSP methods. This indicates that a greater categorization success rate may result from the suggested strategy. The major cause of this situation is the noise sensitivity of traditional CSP.
The signal quality change will be accompanied by variations in the classification success rate. Studies have shown a frequency overlap between the artifacts and the motor imagery signals. Since the Wavelet-CSP depends on the chosen wavelet function and an 8–30 Hz IIR band-pass filter cannot only eliminate certain distortions but also runs the risk of damaging motor imagery signals, choosing a wavelet function necessitates extracting previous knowledge from the sources.
However, by isolating the motor imagery signals from the raw EEG to eliminate the artifacts, the ICA approach may better preserve the integral of the motor-related signals. However, the ORICA method outperforms the conventional ICA in terms of efficiency when compared to high-density EEG data. This suggests that the ORICA algorithm is a viable technique for live time series identification since it has the capacity to adapt to the immediate mixing. Therefore, the suggested approaches may retain accurate classification results even when the raw EEG is of low quality.
The results in Table 3 are the comparative analysis of the LDA, SVM, Adaptive LDA, and Adaptive SVM based classification approaches applied on the acquired motor imagery signals from nine subjects. In addition, the corresponding Information Transfer Rate (ITR) for the accuracy achieved is represented in Table 4.
This analysis is also represented in Figure 10. From this experimentation, it is observed that Adaptive SVM based classification achieves better accuracy with an average of 91% compared to the linear SVM, LDA, and Adaptive LDA classification which resulted in an accuracy of 89%, 81%, and 86%, respectively, with the proposed approach of ORICA-CSP based feature extraction where ORICA-CSP seems to perform better with all the classifiers used for analysis. Similarly, the Information Transfer Rate represented in Table 4 reports Adaptive SVM with the highest rate of 360.38 bits/min, whereas the other classifiers used in the comparative study linear SVM, LDA, and Adaptive LDA have achieved 347.10 bits/min, 251.80 bits/min, and 313.38 bits/min, respectively.
The classification of the same motor imagery signals achieved with the LDA, SVM, A-LDA, and A-SVM with different existing and proposed feature extraction methods of CSP, ICA+Wavelet-CSP, and ORICA-CSP are presented in Table 5. It is observed from the results that the Adaptive Support Vector Machine and other classifiers achieve the highest accuracy with the proposed ORICA-CSP approach of feature extraction compared to the CSP and ICA+Wavelet-CSP approach. This comparison analysis is explained graphically in Figure 11.
Highlighting the proposed results, Figure 12 is constructed to represent the accuracy achieved by the Adaptive Support Vector Machine with the CSP, ICA-Wavelet-CSP, and ORICA-CSP feature extraction approaches which are 0.81, 0.86, and 0.91, respectively, where A-SVM seems to perform better with ORICA-CSP comparatively. Similarly, Figure 13 depicts the ORICA-CSP feature extraction approach applied on the LDA, SVM, A-LDA, and A-SVM methods, which resulted in an accuracy of 0.81, 0.89, 0.86, and 0.91, respectively. It is observed that ORICA-CSP with LDA performs much better comparatively.

5. Conclusions

The proposed work attempted to use the adaptive classifier on the Motor Imagery based BCI which was not tried earlier in the past. The classifier used was an adaptive SVM classifier implemented on the BCI COMP IV 2a, four class MI EEG signals. The benefits of the ORICA-CSP feature extraction method are combined with the Adaptive SVM based classifier in the proposed work to optimize the classification accuracy and the information transfer rate. The Adaptive SVM classifier proved to produce better accuracy compared to the existing LDA and adaptive LDA based classifiers as LDAs are not highly applicable on nonlinear problems and as they are preferred only for a smaller number of samples. Similarly, the accuracy of the ORICA-CSP feature extraction method is compared with other classifiers to check the accuracy level that has been achieved for the four class MI signals. The experimentation is carried with different combinations of the discussed feature extraction and classification techniques. Upon conclusion, it is observed that the proposed Adaptive SVM with the ORICA-CSP feature extraction method is found to result in an improved accuracy and rate of information transfer on the preferred MI. The work is planned to be enhanced under two phase classification in future.

Author Contributions

Conceptualization, M.J.A., B.P.S. and R.K.M.; methodology, M.J.A., R.K.M., M.S. and J.-G.C.; software, M.J.A., B.P.S. and R.K.M.; validation, B.P.S., M.S., A.A.G., H.H. and J.-G.C.; investigation, B.P.S., M.S. and J.-G.C.; resources, M.J.A., B.P.S., M.S., H.H. and R.K.M.; data curation, A.A.G., M.S. and J.-G.C.; writing—original draft preparation, M.J.A., B.P.S., R.K.M., H.H., and J.-G.C.; writing—review and editing, B.P.S., R.K.M., M.S. and J.-G.C.; visualization M.J.A., B.P.S. and R.K.M.; supervision, B.P.S., A.A.G., R.K.M. and J.-G.C.; project administration, M.S., H.H., A.A.G. and R.K.M.; funding acquisition, H.H., M.S. and J.-G.C. All authors have read and agreed to the published version of the manuscript.

Funding

The author thanks Natural Sciences and Engineering Research Council of Canada (NSERC) and New Brunswick Innovation Foundation (NBIF) for the financial support of the global project. These granting agencies did not contribute in the design of the study and collection, analysis, and interpretation of data.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Sokhal, J.; Garg, B.; Aggarwal, S.; Jain, R. Classification of EEG Signals Using Empirical Mode Decomposition and Lifting Wavelet Transforms. In Proceedings of the 2017 International Conference on Computing, Communication and Automation (ICCCA), Greater Noida, India, 5–6 May 2017; pp. 1197–1202. [Google Scholar]
  2. Kumar, G.; Chander, S.; Almadhor, A. An intelligent epilepsy seizure detection system using adaptive mode decomposition of EEG signals. Phys. Eng. Sci. Med. 2022, 45, 261–272. [Google Scholar] [CrossRef] [PubMed]
  3. Sivasaravanababu, S.; Prabhu, V.; Parthasarathy, V.; Mahendran, R.K. An efficient epileptic seizure detection based on tunable Q-wavelet transform and DCVAE-stacked Bi-LSTM model using electroencephalogram. Eur. Phys. J. Spec. Top. 2022, 231, 2425–2437. [Google Scholar] [CrossRef]
  4. Korhan, N.; Dokur, Z.; Olmez, T. Motor Imagery Based EEG Classification by Using Common Spatial Patterns and Convolutional Neural Networks. In Proceedings of the 2019 Scientific Meeting on Electrical-Electronics & Biomedical Engineering and Computer Science (EBBT), Istanbul, Turkey, 24–26 April 2019; pp. 1–4. [Google Scholar]
  5. Zhang, Y.; Wang, Y.; Jin, J.; Wang, X. Sparse Bayesian Learning for Obtaining Sparsity of EEG Frequency Bands Based Feature Vectors in Motor Imagery Classification. Int. J. Neural Syst. 2016, 27, 1650032. [Google Scholar] [CrossRef] [PubMed]
  6. Vidaurre, T.C.; Jorajuría, A.; Ramos-Murguialday, K.-R.; Müller, M.; Gómez; Nikulin, V.V. Improving motor imagery classification during induced motor perturbations. J. Neural Eng. 2021, 18, 0460b1. [Google Scholar] [CrossRef] [PubMed]
  7. Darvish Ghanbar, K.; Yousefi Rezaii, T.; Farzamnia, A.; Saad, I. Correlation-based common spatial pattern (CCSP): A novel extension of CSP for classification of motor imagery signal. PLoS ONE 2021, 16, e0248511. [Google Scholar]
  8. Lemm, S.; Blankertz, B.; Curio, G.; Muller, K. Spatio-spectral filters for improving the classification of single trial EEG. IEEE Trans. Biomed. Eng. 2005, 52, 1541–1548. [Google Scholar] [CrossRef] [PubMed]
  9. Dornhege, G.; Blankertz, B.; Krauledat, M.; Losch, F.; Curio, G.; Muller, K.-R. Combined Optimization of Spatial and Temporal Filters for Improving Brain-Computer Interfacing. IEEE Trans. Biomed. Eng. 2006, 53, 2274–2281. [Google Scholar] [CrossRef] [PubMed]
  10. Novi, Q.; Cuntai, G.; Dat, T.H.; Ping, X. Sub-Band Common Spatial Pattern (Sbcsp) for Brain-Computer Interface. In Proceedings of the 2007 3rd International IEEE/EMBS Conference on Neural Engineering, Kohala Coast, HI, USA, 2–5 May 2007; pp. 204–207. [Google Scholar]
  11. Ang, K.K.; Chin, Z.Y.; Zhang, H.; Guan, C. Filter Bank Common Spatial Pattern (Fbcsp) in Brain-Computer Interface. In Proceedings of the IEEE International Joint Conference on Neural Networks (IEEE World Congress on Computational Intelligence), Hong Kong, China, 1–8 June 2008; pp. 2390–2397. [Google Scholar]
  12. Higashi, H.; Tanaka, T. Simultaneous Design of FIR Filter Banks and Spatial Patterns for EEG Signal Classification. IEEE Trans. Biomed. Eng. 2013, 60, 1100–1110. [Google Scholar] [CrossRef] [PubMed]
  13. Scherer, R.; Vidaurre, C. Motor Imagery Based Brain–Computer Interfaces. In Smart Wheelchairs and Brain-Computer Interfaces; Pablo, D., Ed.; Academic Press: Cambridge, MA, USA, 2018; pp. 171–195. [Google Scholar]
  14. Nouri, A.; Ghanbari, Z.; Aslani, M.R.; Moradi, M.H. 3—A New Approach to Feature Extraction in MI-Based BCI Systems. In Artificial Intelligence-Based Brain-Computer Interface; Varun, B., Sinha, G.R., Eds.; Academic Press: Cambridge, MA, USA, 2022; pp. 75–98. [Google Scholar] [CrossRef]
  15. Nicolas-Alonso, L.F.; Corralejo, R.; Álvarez, D.; Hornero, R. Analytic Common Spatial Pattern and Adaptive Classification for Multiclass Motor Imagery-Based BCI. In Proceedings of the 6th International IEEE/EMBS Conference on Neural Engineering (NER), San Diego, CA, USA, 6–8 November 2013; pp. 1084–1087. [Google Scholar]
  16. Kumar, S.; Sharma, R.; Sharma, A.; Tsunoda, T. Decimation Filter with Common Spatial Pattern and Fishers Discriminant Analysis for Motor Imagery Classification. In Proceedings of the 2016 International Joint Conference on Neural Networks (IJCNN), Vancouver, BC, Canada, 24–29 July 2016; pp. 2090–2095. [Google Scholar]
  17. Zhang, Y.; Zhou, G.; Jin, J.; Wang, X.; Cichocki, A. Optimizing spatial patterns with sparse filter bands for motor-imagery based brain-computer interface. J. Neurosci. Methods 2015, 255, 85–91. [Google Scholar] [CrossRef]
  18. Zhang, S.; Zhu, Z.; Zhang, B.; Feng, B.; Yu, T.; Li, Z. The CSP-Based New Features Plus Non-Convex Log Sparse Feature Selection for Motor Imagery EEG Classification. Sensors 2020, 20, 4749. [Google Scholar] [CrossRef]
  19. Kumar, S.; Sharma, A.; Tsunoda, T. An improved discriminative filter bank selection approach for motor imagery EEG signal classification using mutual information. BMC Bioinform. 2017, 18 (Suppl. S16), 125–137. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  20. Feng, M.; Wang, X.; Zheng, S. A Novel Feature Extraction Method for Motor Imagery Based on Common Spatial Patterns with Autoregressive Parameters. In Proceedings of the Fourth International Conference on Intelligent Control and Information Processing (ICICIP), Beijing, China, 9–11 June 2013; pp. 225–230. [Google Scholar]
  21. Bhatnagar, M.; Gupta, G.S.; Sinha, R.K. Linear Discriminant Analysis Classifies the EEG Spectral Features Obtained from Three Class Motor Imagination. In Proceedings of the 2018 2nd International Conference on Power, Energy and Environment: Towards Smart Technology (ICEPE), Shillong, India, 1–2 June 2018; pp. 1–6. [Google Scholar]
  22. Wu, Y.-T.; Huang, T.H.; Lin, C.Y.; Tsai, S.J.; Wang, P.-S. Classification of EEG Motor Imagery Using Support Vector Machine and Convolutional Neural Network. In Proceedings of the 2018 International Automatic Control Conference (CACS), Taoyuan, Taiwan, 4–7 November 2018; pp. 1–4. [Google Scholar]
  23. Costantini, G.; & Todisco, M.; Casali, D.; Carota, M.; Saggio, G.; Bianchi, L.; Abbafati, M.; Quitadamo, L.R. SVM Classification of EEG Signals for Brain Computer Interface. Front. Artif. Intell. Appl. 2009, 204, 229–233. [Google Scholar]
  24. Awad, M.; Khanna, R. Support Vector Machines for Classification. In Efficient Learning Machines; Apress: Berkeley, CA, USA, 2015; pp. 39–66. [Google Scholar] [CrossRef] [Green Version]
  25. Tangermann, M.; Müller, K.-R.; Aertsen, A.; Birbaumer, N.; Braun, C.; Brunner, C.; Leeb, R.; Mehring, C.; Miller, K.J.; Müller-Putz, G.R.; et al. Review of the BCI Competition IV. Front. Neurosci. 2012, 6, 55. [Google Scholar] [CrossRef] [Green Version]
  26. Mary Judith, S.A. Baghavathi Priya, Rakesh Kumar Mahendran, ’Artifact Removal from EEG signals using Regenerative Multi-Dimensional Singular Value Decomposition and Independent Component ‘Analysis’. Biomed. Signal Process. Control 2022, 74, 103452. [Google Scholar] [CrossRef]
Figure 1. System architecture.
Figure 1. System architecture.
Sensors 22 07596 g001
Figure 2. Channel locations.
Figure 2. Channel locations.
Sensors 22 07596 g002
Figure 3. Original channel data of MI signals.
Figure 3. Original channel data of MI signals.
Sensors 22 07596 g003
Figure 4. Topoplots of the independent components.
Figure 4. Topoplots of the independent components.
Sensors 22 07596 g004
Figure 5. Component 12 with brain signals and other signals.
Figure 5. Component 12 with brain signals and other signals.
Sensors 22 07596 g005
Figure 6. ERP of component 12.
Figure 6. ERP of component 12.
Sensors 22 07596 g006
Figure 7. Pruned data after artifact removal.
Figure 7. Pruned data after artifact removal.
Sensors 22 07596 g007
Figure 8. Performance comparison in terms of Cohen’s Kappa coefficient.
Figure 8. Performance comparison in terms of Cohen’s Kappa coefficient.
Sensors 22 07596 g008
Figure 9. Comparison of average kappa value with CSP, ICA + Wavelet-CSP, and ORICA + CSP.
Figure 9. Comparison of average kappa value with CSP, ICA + Wavelet-CSP, and ORICA + CSP.
Sensors 22 07596 g009
Figure 10. Subjects’ average classification comparison in terms of accuracy and ITR.
Figure 10. Subjects’ average classification comparison in terms of accuracy and ITR.
Sensors 22 07596 g010
Figure 11. Classifier comparison chart with different feature extraction methods.
Figure 11. Classifier comparison chart with different feature extraction methods.
Sensors 22 07596 g011
Figure 12. Average accuracy of A-SVM with various feature extraction methods.
Figure 12. Average accuracy of A-SVM with various feature extraction methods.
Sensors 22 07596 g012
Figure 13. Comparative results of the proposed feature extraction method with different classifiers.
Figure 13. Comparative results of the proposed feature extraction method with different classifiers.
Sensors 22 07596 g013
Table 1. EEG and artifacts present in the observed signals.
Table 1. EEG and artifacts present in the observed signals.
Components/SignalsEEG (%)Muscle (%)Eye (%)Heart (%)Line Noise (%)Channel Noise (%)Other (%)
IC 137.17.00.21.03.92.548.2
IC 26.926.50.60.12.12.761.1
IC 34.938.70.00.21.50.753.9
IC 491.70.30.00.14.40.03.6
IC 539.80.40.10.816.20.042.7
IC 678.11.50.21.30.50.717.6
IC 773.61.40.00.312.20.112.5
IC 8420.80.20.22.50.521.5
IC 991.70.10.00.14.10.03.9
IC 1067.00.00.00.08.30.024.7
IC 1191.00.00.00.10.90.08.0
IC 1221.60.30.40.144.01.632.0
IC 1384.38.50.10.41.70.14.9
IC 1443.40.50.13.236.53.412.9
IC 156.10.90.13.13.95.380.4
IC 1699.10.00.00.60.10.00.2
IC 1712.33.22.60.35.90.775.0
IC 1895.80.00.00.02.20.11.9
IC 190.50.10.01.45.50.292.2
IC 2042.50.80.10.216.60.139.8
IC 212.50.99.60.28.30.877.8
IC 225.22.08.90.22.75.175.9
IC 235.22.08.80.22.75.176.1
IC 241.60.30.30.531.20.565.7
IC 254.53.20.26.05.90.679.6
Table 2. Performance comparison of every participant in terms of Cohen’s Kappa coefficient.
Table 2. Performance comparison of every participant in terms of Cohen’s Kappa coefficient.
Subject/ParticipantsCSPICA + Wavelet-CSPORICA + CSP
A010.690.750.79
A020.340.610.76
A030.710.800.86
A040.440.630.71
A050.160.570.69
A060.210.520.61
A070.660.770.82
A080.730.740.81
A090.690.720.76
Mean0.510.680.75
Table 3. Results of LDA, SVM, A-LDA, and A-SVM in terms of accuracy on Motor Imagery data.
Table 3. Results of LDA, SVM, A-LDA, and A-SVM in terms of accuracy on Motor Imagery data.
Subjects/ParticipantsLDA (%)SVM (%)A-LDA (%)A-SVM (%)
A01799085.690.1
A0279.588.889.391.3
A0381.187.68788
A0481.787.282.290.8
A0575.988.984.892.2
A0679.887.885.885.9
A0780.989.285.789.2
A0879.886.586.988.9
A0978.290.582.689.6
Mean81898691
Table 4. Results of LDA, SVM, A-LDA, and A-SVM in terms of ITR (bits/min) on Motor Imagery data.
Table 4. Results of LDA, SVM, A-LDA, and A-SVM in terms of ITR (bits/min) on Motor Imagery data.
Subject/ParticipantsLDASVMA-LDAA-SVM
A01246.39365.33313.33366.60
A02251.08350.44356.57382.16
A03266.46336.11329.13340.83
A04272.39331.44277.41375.60
A05218.62351.66304.58394.29
A06253.91338.46315.55316.66
A07264.50355.34314.44355.34
A08253.91323.42327.98351.66
A09239.02371.71281.47360.30
Mean251.808347.101313.384360.382
Table 5. The average classification accuracy of several feature extraction techniques is compared.
Table 5. The average classification accuracy of several feature extraction techniques is compared.
Feature Extraction/ClassifierLDASVMA-LDAA-SVM
CSP0.690.720.730.81
ICA-Wavelet-CSP0.780.820.810.86
ORICA-CSP0.810.890.860.91
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Antony, M.J.; Sankaralingam, B.P.; Mahendran, R.K.; Gardezi, A.A.; Shafiq, M.; Choi, J.-G.; Hamam, H. Classification of EEG Using Adaptive SVM Classifier with CSP and Online Recursive Independent Component Analysis. Sensors 2022, 22, 7596. https://doi.org/10.3390/s22197596

AMA Style

Antony MJ, Sankaralingam BP, Mahendran RK, Gardezi AA, Shafiq M, Choi J-G, Hamam H. Classification of EEG Using Adaptive SVM Classifier with CSP and Online Recursive Independent Component Analysis. Sensors. 2022; 22(19):7596. https://doi.org/10.3390/s22197596

Chicago/Turabian Style

Antony, Mary Judith, Baghavathi Priya Sankaralingam, Rakesh Kumar Mahendran, Akber Abid Gardezi, Muhammad Shafiq, Jin-Ghoo Choi, and Habib Hamam. 2022. "Classification of EEG Using Adaptive SVM Classifier with CSP and Online Recursive Independent Component Analysis" Sensors 22, no. 19: 7596. https://doi.org/10.3390/s22197596

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop