- 1Department of Biomedical Technologies, Izmir Katip Celebi University, İzmir, Türkiye
- 2Department of Computer Engineering, Alanya Alaaddin Keykubat University, Antalya, Türkiye
- 3Faculty of Natural Sciences and Mathematics, University of Maribor, Maribor, Slovenia
- 4Department of Medical Research, China Medical University Hospital, China Medical University, Taichung, Taiwan
- 5Alma Mater Europaea, Maribor, Slovenia
- 6Complexity Science Hub Vienna, Vienna, Austria
- 7Department of Physics, Kyung Hee University, Seoul, Republic of Korea
- 8Department of Biomedical Engineering, Izmir Katip Celebi University, İzmir, Türkiye
In recent studies, in the field of Brain-Computer Interface (BCI), researchers have focused on Motor Imagery tasks. Motor Imagery-based electroencephalogram (EEG) signals provide the interaction and communication between the paralyzed patients and the outside world for moving and controlling external devices such as wheelchair and moving cursors. However, current approaches in the Motor Imagery-BCI system design require effective feature extraction methods and classification algorithms to acquire discriminative features from EEG signals due to the non-linear and non-stationary structure of EEG signals. This study investigates the effect of statistical significance-based feature selection on binary and multi-class Motor Imagery EEG signal classifications. In the feature extraction process performed 24 different time-domain features, 15 different frequency-domain features which are energy, variance, and entropy of Fourier transform within five EEG frequency subbands, 15 different time-frequency domain features which are energy, variance, and entropy of Wavelet transform based on five EEG frequency subbands, and 4 different Poincare plot-based non-linear parameters are extracted from each EEG channel. A total of 1,364 Motor Imagery EEG features are supplied from 22 channel EEG signals for each input EEG data. In the statistical significance-based feature selection process, the best one among all possible combinations of these features is tried to be determined using the independent t-test and one-way analysis of variance (ANOVA) test on binary and multi-class Motor Imagery EEG signal classifications, respectively. The whole extracted feature set and the feature set that contain statistically significant features only are classified in this study. We implemented 6 and 7 different classifiers in multi-class and binary (two-class) classification tasks, respectively. The classification process is evaluated using the five-fold cross-validation method, and each classification algorithm is tested 10 times. These repeated tests provide to check the repeatability of the results. The maximum of 61.86 and 47.36% for the two-class and four-class scenarios, respectively, are obtained with Ensemble Subspace Discriminant among all these classifiers using selected features including only statistically significant features. The results reveal that the introduced statistical significance-based feature selection approach improves the classifier performances by achieving higher classifier performances with fewer relevant components in Motor Imagery task classification. In conclusion, the main contribution of the presented study is two-fold evaluation of non-linear parameters as an alternative to the commonly used features and the prediction of multiple Motor Imagery tasks using statistically significant features.
1. Introduction
Brain–computer Interfaces (BCIs) help to establish and realize the interaction between humans and computers using physiological signals acquired from the brain (Tiwari et al., 2022). It allows individuals who can not control a part of their resulting from paralysis or similar diseases but who are conscious to communicate with the outside world and control the robot arm, wheelchair, computer, and similar devices with thought power. The basic concept of BCIs is based on capturing brain's electrical signals, analyzing them on the artificial intelligence-powered software, and converting them to emotions and thoughts for particular purposes. The first step of BCI system design is data acquisition to obtain physiological signals. A neuron captures the information about any thought, which is passed to the other neurons after being processed. This communication among neurons generates electrical activities that can be measured from the body surface (Tan and Nijholt, 2010; Bansal and Mahajan, 2019). If these activities are originated from the brain, they can be captured using electroencephalography (EEG) visualization devices. EEG is a non-invasive method of placing electrodes over the scalp (just as near to the brain cortex as possible) (Yuan and He, 2014; Tiwari et al., 2022). Motor Imagery (MI) EEG signals are acquired during mental tasks. In the field of BCI, MI signals are generated when the subject only imagines a movement of a body part without actually performing it (Musallam et al., 2021). Similar to other BCI systems, MI-based BCI systems' goal is to control one or more extrinsic devices by translating EEG signals into commands (Tiwari et al., 2022). Hence, the processing of these signals plays an important role in the design of assistive devices for motor-disabled and paralyzed persons (Degirmenci et al., 2022c).
In recent studies, the traditional handcrafted feature extraction processes have been studied to classify MI tasks. These studies analyze EEG signals using traditional machine learning methods. The handcrafted feature extraction process includes some basic and definite steps after acquiring EEG signals from subjects. These are signal preprocessing, feature extraction, feature selection, and classification. Among these steps, the feature extraction and selection processes play an important role in EEG-based studies (Degirmenci et al., 2022b). The preprocessing step includes different and significant operations such as signal filtering, signal normalization, artifact removal, and signal segmentation (Altaheri et al., 2021). In the feature extraction step, various approaches have been introduced to extract task-related intrinsic information from EEG signals by researchers. The MI features are separated into three categories based on the processing domain which are temporal features, spectral features, and spatial features.
Temporal features are supplied from the time domain of signals using time points or different time segments and include features such as mean value, kurtosis, variance, skewness, root mean square value, and Hjorth parameters (Pawar and Dhage, 2020; Degirmenci et al., 2022b). Spectral features contain both frequency domain features such as power spectral density and fast Fourier transform (Djamal et al., 2017; Degirmenci et al., 2022c) and time-frequency domain features such as short-time Fourier transform (Ha and Jeong, 2019) and Wavelet transform (Chaudhary et al., 2020). Spatial features supply information about particular electrode locations on the brain cortex. The common spatial patterns (Blanco-Diaz et al., 2022) and its different versions such as sparse common spatial patterns (Arvaneh et al., 2011), stationary common spatial patterns (Samek et al., 2012), divergence common spatial patterns (Samek et al., 2013), probabilistic common spatial patterns (Wu et al., 2014), and filter bank common spatial patterns (Ang et al., 2012) are the mostly-studied feature extraction methods to capture spatial information in MI task classification. The compatibility of all these different feature categories with the non-stationary structure of the EEG is important in determining the features to be used. According to the non-stationary structure of the EEG signals, the spectral components of the these signals change as a function of time. Thus, signal processing the EEG signals only in the time-domain or the frequency-domain might not be sufficient to provide information about the spectral characteristics of the EEG signals (Boashash, 2015). The combination of these different categories should be analyzed in accordance with the nature of the EEG signals, using time-frequency domain features and non-linear parameters, in addition to the frequently used time-domain, frequency-domain, and spatial-domain features.
Although there are different MI task features to analyze within MI EEG signals, the correlations among these features are significant for algorithm performance. The simultaneous combination of a large number of various features unnecessarily increases the complexity of classifiers due to confusion caused by redundant information in the feature set. In addition, the classifier performance decreases in some cases due to this confusion (Hart et al., 2000; Isler, 2009; Narin et al., 2014). As one of the solutions to this problem, all possible feature subsets can be defined and the separability of each feature subset can be evaluated based on classifier performance. Then, the relevant feature subset which provides the highest separability between MI tasks can be determined. Unfortunately, when too many features are studied, too many combinations need to be tried to explore the relevant and effective feature set. However, such an approach requires and results in the computational load of classifier algorithms (Narin et al., 2014). These feature selection algorithms are classified into two main groups based on whether they consider a certain criterion for classifier performance or not, which are wrapper and filter approaches, respectively (Blum and Langley, 1997; Kohavi and John, 1997; Guyon and Elisseeff, 2003). Statistical significance-based selection, backward elimination, forward selection, principal component analysis (PCA), and genetic algorithms (GAs) are mostly used feature selection algorithms to analyze biomedical signals in the literature (Isler, 2009; Narin et al., 2014; Mousa et al., 2016). In the classification process, various machine learning algorithms have been computed to classify MI tasks such as Naive Bayes, k-nearest neighbors (k-NN), linear discriminant analysis, support vector machine, multi-layer perceptron, radial basis function, extreme learning machine, and deep neural network (Meziani et al., 2019; Degirmenci et al., 2022b,c; Tiwari et al., 2022). This study aims to introduce an effective approach for MI task classification using various features of EEG signals and different machine learning algorithms. The main contributions of this study can be highlighted as follows:
• We investigated a multi-directional handcrafted feature extraction-based approach that makes use of different feature categories including temporal, spectral, and non-linear features.
• We implemented the non-linear feature extraction method computing Poincare plot measurements of EEG signals to ensure the information about non-linear dynamics of signals in MI task classification.
• We investigated the performance effect of the statistical significance-based feature selection method on MI task classification.
• We comparatively evaluated the performance effect of the seven different machine learning algorithms with the combination of different MI EEG features.
In the following section, we preferred to give a brief review of MI task studies separately from this introduction. Then, we gave methods and materials as a new section to explain the dataset used in addition to feature extraction, statistical significance-based feature selection, classifier algorithms, and performance evaluation metrics utilized in this study. Next, we introduced all the achieved classifier performances in the Results section. In the last two separate sections, we discussed what these results mean and we concluded the outcomes of the study, respectively.
2. Related works
The feature extraction and feature selection methods are critical steps for the prediction of MI-based EEG tasks since these steps have a direct impact on the classification performance. In the literature, different approaches were tested to extract MI features and determine which of them gives higher classifier performances than other feature and classifier combinations. MI EEG signals supply the temporal, spectral, and spatial features from their intrinsic structure. These features extracted different features from different categories can be combined to classify MI tasks in research studies. In 2022, Degirmenci et al. presented a temporal feature extraction-based approach that uses 24 different time-domain features. They also investigated the effectiveness of the statistical significance (ANOVA)-based feature selection process for the classification of the four MI tasks (Degirmenci et al., 2022b). In classification, 11 various machine learning algorithms were tested, and the maximum average accuracy value was found as 44.00% using linear discriminant analysis. In a study conducted by Hamedi et al., integrated EEG (IEEG) and root mean square (RMS) measures were extracted from the time domain of EEG signals. In the classification of the three-class MI task, the effectiveness of neural network-based algorithms, which are multi-layer perceptron and radial basis function neural networks, was investigated. The results revealed that RMS was more capable than IEEG for differentiating MI tasks, and radial basis function was more accurate and faster than multi-layer perceptron (Hamedi et al., 2014). The fast Fourier transform is one of the most applied methods to extract spectral features. In the study by Jusas and Samuvel (2019), band power, time domain parameters, fast Fourier transform, and channel variance were evaluated for the feature extraction process, and different feature selection methods, which are PCA, sequential forward selection, sequential backward selection, locality preserving projections, and local Fisher discriminant analysis, were investigated. They concluded that the combination of fast Fourier transform and covariance matrix-based feature extraction with PCA-based feature selection supplied the best classification performance among all combinations. In the literature, recent studies have investigated the effect of EEG sub-bands using fast Fourier transform-based frequency band extraction. In 2019, Isa et al. presented a binary MI task classification study based on the EEG frequency band extraction using the fast Fourier transform. The linear discriminant analysis was applied over these spectral features to minimize the number of feature dimensions. They evaluated the maximum accuracy value as 79.23% using the Naive Bayes algorithm for the classification of right-hand and left-hand tasks (Isa et al., 2019). The main drawbacks of fast Fourier transform are two-fold: it is non-suitable for the non-stationary characteristic of EEG signals and it does not include time information. Therefore, different methods which include time and frequency information were used to extract spectral features. Short-time Fourier transform is one of the time-frequency representation techniques that process the local characteristics of a signal utilizing a window. It supplies the spectral features using the time-frequency domain. In the study by Ha and Jeong (2019), the authors proposed a method for binary classification of MI tasks using the short-time Fourier transform, and a capsule network (CapsNet). EEG signals were converted to 2D images using the short-time Fourier transform and these images were classified with CapsNet and other well-known machine learning algorithms. They concluded that CapsNet-based classification outperforms all the other machine learning-based classifications with an average classification accuracy of 78.44% in their presented study. Other time-frequency domain features can be extracted using Wavelet Transform. It supplies multi-resolution analysis from EEG signals using several filters with different bandwidths (Ha and Jeong, 2019). In a study presented by Luo et al., the effect of the Wavelet packet decomposition-based EEG subband extraction approach was investigated for the binary classification (right-hand and left-hand movement tasks). They also applied the Dynamic frequency feature selection (DFFS) method to reduce the extracted features. They calculated the average accuracy value of 68.32% using random forest algorithm (Lu et al., 2020). In spatial feature extraction, the common spatial pattern algorithm is the most preferred method which uses spatial filters. In the study by Kato et al. (2020), a five-class MI task classification study based on the multi-class common spatial patterns method was proposed. Five different finger movements were differentiated with an accuracy of 40.60% using support vector machine. Unfortunately, the common spatial patterns' drawback is the manual frequency band selection based on individual structures. The filter-bank common spatial pattern method, which utilizes several different frequency bands in parallel, has been presented to overcome this problem. Adopting the FBSCP method improved the classification performance for MI task studies (Ha and Jeong, 2019). In 2008, a common spatial pattern and filter-bank common spatial pattern-based MI task classification study is performed using publicly available BCI competition III dataset IVa. In the Naive Bayesian Parzen Window (NBPW)-based classification, filter-bank common spatial pattern yielded superior averaged test accuracy of 81.10%, while the common spatial patterns-based approach yielded an accuracy of 73.30%. They concluded that filter-bank common spatial patterns supplied statistically outstanding performance than common spatial patterns (Ang et al., 2008).
In recent studies, it has been observed that three different feature categories are generally used in the feature extraction process for MI-based EEG signals, but it has been noted that the most studied feature extraction approaches are the spectral domain and spatial domain features. Unfortunately, the effect of non-linear features on MI task classification has not been studied much. The Poincare plot measurements are one of the non-linear feature extraction methods that were studied in the analysis of different biomedical signals and supplied high classification results. Its simple visual interpretation and its proven clinical ability as a predictor of disease and cardiac dysfunction made this technique popular in the analysis of different physiological signals (Isler and Kuntalp, 2007; Isler, 2009; Narin et al., 2014; Isler et al., 2019). Taking into account its performance in other studies (Isler and Kuntalp, 2009; Cancioglu et al., 2021), Poincare plot measurements can be an effective method for non-linear dynamics of EEG signals that complicate the processing of them. Considering the contributions and deficiencies of the existing studies, in this study, a feature extraction method based on the combination of Poincare plot measurements from the non-linear feature extraction methods with temporal features and spectral features is implemented for MI task classification.
3. Materials and methods
In this section, the EEG dataset and methodologies that are adopted and used for feature extraction, feature selection, and classification for MI-based EEG signals are described in detail. The flowcharts of the suggested multi-class and binary class Motor Imagery task classification studies are presented in Figures 1, 2, respectively.
Figure 1. The block diagram of the suggested multi-class Motor Imagery task classification study. Three-second segments from EEG signals are used for the feature extraction process. Well-known classifiers are tested to discriminate the BCI command using selected features among extracted features (The dashed line representation refers to analyses in which ANOVA-based feature selection is applied, and statistically significant features are applied to classifiers instead of all features.).
Figure 2. The block diagram of the suggested binary class Motor Imagery task classification study. Three-second segments from EEG signals are used for the feature extraction process. Well-known classifiers are tested to discriminate the BCI command using selected features among extracted features (The dashed line representation refers to analyses in which the independent t-test based feature selection is applied, and statistically significant features are applied to classifiers instead of all features.).
3.1. Dataset
In this study, the publicly available BCI Competition IV Dataset IIa was used to evaluate the performance of the classifier methods for binary and multiple MI task classification (Brunner et al., 2008). The dataset contains the EEG and EOG signals, which were captured and recorded using 22 EEG channels and 3 EOG channels, respectively. EEG signals were recorded using 22 Ag/AgCl electrodes, and the sampling rate was defined as 250 Hz. The signals were collected for four different MI tasks which are the imagination of movement of the left hand (LH), right hand (RH), feet (F), and tongue (T) from 9 subjects of which 4 were females and 5 were males. Two sessions were organized to collect EEG signals on different days, and each session includes 6 runs separated by breaks. In each run, 48 different MI tasks were available, and these trials were designed to be 12 MI tasks for each of the four classes. During the recording, a visual cue was shown to the subject to imagine the movements for four different tasks. The preprocessing step of EEG signals includes a band-pass filtering process between 0.5 and 100 Hz and an additional 50 Hz notch filter application to eliminate line noise for this dataset.
3.2. Feature extraction
Initially, the relevant MI EEG segments, where EEG tasks were performed, are decomposed from original EEG signals for the feature extraction process. In this study, we extracted four feature sets of MI EEG features for the classification of MI task segments. The first set includes temporal features that are supplied from time-domain information of EEG segments. In the second set, spectral features are extracted using the fast Fourier transform-based frequency domain information of EEG segments. As a third set, time-frequency features are calculated based on Wavelet Transform. Finally, in the last set, Poincare plot measurements are calculated to extract non-linear features.
First, the relevant and distinctive temporal features are extracted based on the time-domain information of EEG signals. A total of 24 different temporal features, which include information about amplitude and statistical changes of the EEG signals, are supplied for each EEG segment (Sayilgan et al., 2021a; Degirmenci et al., 2022b). These temporal features are minimum, maximum, mean, standard deviation, integrated EEG value, mean absolute value, simple square integral value, variance, root mean square value, waveform length value, average amplitude change value, absolute difference in standard deviation, mode value of the signal, kurtosis, skewness, Hjorth parameters (activity, mobility, and complexity) inter-quarter intervals (1st quartile, 2nd quartile, and 3rd quartile), zero crossing, slope-change value, and signal range.
Next, the EEG subbands' energy, variance, and entropy values, and these values are calculated based on the frequency distribution of EEG signals. Hence, these spectral features include the information about frequency distribution embedded in EEG signals (Degirmenci et al., 2022c). The different oscillations are embedded in EEG signals which are known to be liable for various cognitive brain functions (Cura and Akan, 2021). These are known as delta (δ), theta (θ), alpha (α), beta (β), and gamma (γ) waves. The frequency bands of these waves are identified as delta (0.5–4 Hz), theta (4–8 Hz), alpha (8–13 Hz), beta (13–30 Hz), and gamma (30–100 Hz) for this study. The delta, theta, alpha, beta, and gamma bands are decomposed from the frequency distribution of MI EEG signals using the fast Fourier transform, and the energy, variance, and entropy values of these bands are calculated as spectral features. In the various EEG-based classification problems, machine learning-based approaches commonly use the energy, variance, and entropy values of EEG subbands, which are calculated from the frequency domain of signals as spectral features (Sayilgan et al., 2021c). Here, energy, variance, and entropy of frequency bands are calculated in the study by Sayilgan et al. (2021a) and Degirmenci et al. (2022c) as follows:
Here, the energy of each frequency band is calculated based on the power spectrum, and f indicates the type of EEG subbands which are δ, θ, α, β, and γ. Energyf corresponds to the energy of a frequency band, and M corresponds to the maximum frequency. The Fourier Transform of the EEG segment is indicated as y. Variancef corresponds to the variance of a frequency band, and denotes the average of the y signal. The spectral entropy measures the regularity of the power spectrum of the EEG signal, and Entropyf corresponds to the entropy of a frequency band. P(y(i)) indicates the probability that the signal is in the given frequency domain.
Then, Wavelet Transform-based feature extraction process is conducted to calculate time-frequency features. EEG signals have non-stationarities and their spectral features do not include any time information. Wavelet Transform uses both time and frequency information and supplies multi-resolution analysis using several filters and bandwidths. It is a smooth and fast oscillation function that is well-localized in frequency and time (Sayilgan et al., 2021b). It can be used as a specially prepared dual Finite-Impulse Response (FIR) filter. The high-frequency and low-frequency components of EEG signals are extracted using frequency responses of FIR filters. Half of the data sampling rate is known as Nyquist frequency. The dividing point of the signal frequency is generally between 0 Hz and the specified Nyquist frequency. The same wavelet coefficients are employed in both low-pass (LP) and high-pass (HP) filters for the multi-resolution algorithm of Wavelet Transform (Gandhi et al., 2011). The LP filter coefficients are linked with a scaling parameter that defines the oscillatory frequency and the length of the wavelet, whereas the HP filter is linked with the wavelet function. The outputs of the LP filters and HP filters are denoted as the approximation (a) coefficients and detail (d) coefficients, respectively. EEG time signals can be completely divided into (a) and (d) coefficients depending on the decomposition level. The analysis of different statistical and non-statistical parameters over time and frequency can be performed by applying the Wavelet Transform to EEG signals. The subsets of the relevant coefficients of decomposition levels are categorized based on the frequency domain of EEG subbands for the extraction of EEG frequency bands. In this study, the Wavelet packet decomposition-based EEG subband extraction is used to calculate time-frequency features. The MI EEG signals are decomposed into seven decomposition levels. The approximation ai and detail di coefficients were obtained for the decomposition levels of i = 1, 2,..., 7 for 250 Hz sampling frequency.
The various Discrete Wavelet Transform functions (Haar, Db2, Sym4, Coif1, Bior3.5, and Rbior2.8) can be used in Wavelet Transform-based feature extraction. There are several types of mother wavelets; therefore, determining a suitable mother wavelet is an important step. In the study by Sayilgan et al. (2021a), researchers conducted a study to define the effective wavelet function in steady-state visual-evoked potential (SSVEP) signals. The results of the study showed that the most successful wavelet function was the Haar wavelet. Hence, in this study, the Haar wavelet function was applied to the Wavelet packet decomposition process. MI EEG signals are subdivided into frequency bands (δ, θ, α, β, and γ) from ai and di coefficients. The energy, variance, and entropy of these frequency bands are calculated as time-frequency features. The energy of each decomposition level was computed corresponding to the following equation (Gandhi et al., 2011):
In the equations, detail (di) and approximate (ai) coefficients are used to supply subsets of each EEG frequency band (δ, θ, α, β, and γ) from the decomposition tree. The (a) and (d) coefficients of these frequency band subsets are denoted with dij and aij, respectively. i = 1,2,3,l corresponds to the wavelet decomposition level that takes value from 1 to l. The number of d and a coefficients at each decomposition level is indicated with N.
By using the following equation, the entropy of each decomposition level is calculated (Isler, 2009).
The variance of each decomposition level is computed as follows (Gandhi et al., 2011):
Hence, μi expresses the mean of the decomposition level.
In the last feature extraction process, the non-linear parameters are extracted in addition to the temporal, spectral, and time-frequency features. MI EEG signals have non-linear dynamics in their characteristics. In recent studies, Poincare plot measures were commonly used as non-linear measures to analyze the different EEG signals. It characterized the non-linear dynamics inherent in the signal. The Poincare plot is a graph of each EEG sample (xi) on the x-axis and the next EEG sample (xi+lag) on the y-axis (Isler, 2009). In the x and y axes, (xi) and (xi+lag) intervals are placed to ensure the Poincare plot, respectively. The Poincare plot-based feature extraction process is adopted for this study, considering its favorable outcomes in the literature such as its simple visual interpretation and proven clinical ability (Isler and Kuntalp, 2007; Isler, 2009; Narin et al., 2014; Isler et al., 2019; Cancioglu et al., 2021). These drawings are procured from raw MI EEG segment data after defining (xi) and (xi+lag) intervals within EEG segments. An ellipse is fitted to the Poincare plot graph, and the standard deviation of the distance of the points on these plots indicates the width (SD1) and length (SD2) of the ellipse (Brennan et al., 2001). Poincare plot measures can be calculated as follows (Isler, 2009; Isler and Kuntalp, 2009):
where xi and xi+lag represent the EEG segment data and the next EEG data interval in the Equations (8) and (9), respectively. With respect to defined intervals, SD1 and SD2 measurements were calculated utilizing Equations (10) and (11). SD indicates the standard deviation of the extracted time interval vectors in Equation (11). The m-lagged Poincare plot measurements were conducted to define different intervals. SD1 and SD2 measurements are calculated considering lag=m and m was set as 1 and 9 for this study. In this study, Poincare plot measures for lag=9 were also calculated due to the positive effect on MI EEG signal classification (Degirmenci et al., 2022a). In our previous study (Degirmenci et al., 2022a), we investigated the performances of different feature vectors which were extracted from 10 lag values and the feature vector which is the combination of these vectors, separately. The results demonstrated that the most discriminative and effective feature set is the ninth feature vector that includes the features extracted when the lag value is defined as 9. The values of (SD1) and (SD2), for which we determined the m values as 1 and 9, were calculated. In addition, in addition to (SD1) and (SD2) calculations, the products (SD1SD2) and the rates (SD1/SD2) are calculated to investigate the relationships between these components. A total of four non-linear features were extracted for lag=1 condition. In our Poincare plot process, eight non-linear features were extracted from lag=1 and lag=9 conditions for each EEG segment.
3.3. Statistical significance-based feature selection
The feature selection process aims to determine the relevant and effective features that will supply the highest discrimination between the classes of interest and also can minimize the complexity of classifiers (Isler et al., 2023). In this study, the statistical significance-based feature selection is applied to indicate the most effective combination of temporal, spectral, time-frequency, and non-linear features which provides the best discrimination of the MI tasks (Narin et al., 2014; Sayilgan et al., 2021b; Degirmenci et al., 2022b). This statistical significance-based feature selection approach is applied for each MI EEG feature set separately. In this study, two different classification models, which are binary and multi-class MI task classifications, are studied. Hence, two different types of statistical significance-based feature selection were used, i.e., the independent t-test and one-way analysis of variance (ANOVA test). The selected tests were determined considering the class number of the classification models. In binary classification, the independent t-test, which is commonly applied to define the significance of differences between measures of two different classes, is used for feature selection (Narin et al., 2014; Degirmenci et al., 2022c). In multi-class classification, the ANOVA test is adopted for feature selection (Bulut et al., 2022; Degirmenci et al., 2022b). ANOVA is a test applied when it is required to determine whether there is a difference between the means in conditions where there are two or more groups. Thus, the effects of the independent t-test and ANOVA test-based feature selection methods were investigated with temporal, spectral, time-frequency, and non-linear features. The statistical significance of every MI EEG feature were defined by calculating p-values. The statistical significances are measured based on the statistical significance level (α) equal to 0.05. A total of two feature sets containing the features that provide the statistical evidence range were obtained after the significant features were determined using the feature selection models (the independent t-test and ANOVA) for both two classification models. These selected feature vectors were given to the classification algorithms as input data to predict the MI tasks.
3.4. Classification
In this study, the MI EEG features described in the previous feature extraction section are used to predict MI tasks of EEG segments. We also compare the performance of the binary (RH and LH) and multi-task (RH, LH, F, and T) classifications using extracted features from temporal, spectral, time-frequency, and non-linear methods. The different versions of six different basic classifiers are computed to classify the extracted features (Hart et al., 2000). Hence, 24 different classification methods are tested considering the different sub-parameters of 6 classifier algorithms (Sayilgan et al., 2021a; Degirmenci et al., 2022a). The set of classifiers contains decision trees (fine, medium, and coarse), discriminant analysis (linear, quadratic), Naive Bayes (Gaussian, Kernel), support vector machine (linear, quadratic, cubic, fine Gaussian, medium Gaussian, and coarse Gaussian), k-NN (fine, medium, coarse, cubic, cosine, and weighted), and ensemble learning (boosted, bagged, subspace discriminant, subspace k-NN, and RUSBoosted Trees) algorithms. All these classification algorithms with different sub-parameters are available in the “Classification Learner” application of Matlab. Additionally, the logistic regression algorithm is tested for binary classification (Degirmenci et al., 2022c).
3.4.1. Decisions trees
The decision tree is a machine learning algorithm that can divide the data into several different sub-groups and can also be utilized for classification outside of the regression process. The characteristic tree-like structure of this algorithm which includes branches and nodes gives the name of the algorithm (Tzallas et al., 2009). The training process is carried out based on learning a set of decision rules. A leaf node is created when the decision is made, whereas a decision node which is another branch is generated when the decision is not definite (Cura and Akan, 2021). In the decision tree-based classification process, the fine, medium, and coarse algorithms are used for this study.
3.4.2. Discriminant analysis
The discriminant analysis classifier is one of the pattern recognition methods, and its main purpose is to correctly divide the independent variables in the data into homogeneous groups. In this study, the classification is carried out using both linear and quadratic algorithms from the discriminant analysis. Linear discriminant analysis from these classifiers determines the group elements and calculates the probability that each element belongs to different groups. Then, the element is assigned to the group with the highest probability score. Linear discriminant analysis assumes that the predictors are normally distributed (Gaussian distribution). It also creates a linear discrimination function that assumes different classes have class-specific elements and equal variance/covariance. Unlike the linear discriminant analysis algorithm, in the quadratic discriminant analysis algorithm, variance/covariance equality is not accepted. The covariance matrix for quadratic discriminant analysis may be different for each class category. Hence, it configures the discriminant function to be quadratic (Hart et al., 2000; Lotte et al., 2018).
3.4.3. Naive Bayes
Naive Bayes is a classifier algorithm that utilizes Bayes' theorem based on probability which is connected to the relationship between marginal and conditional probabilities (Hart et al., 2000). In the working principle of the algorithm, all features are regarded to be independent, and this is also the reason for using the name “Naive”. However, all features have the same effect value on classification, which means each of the features has an equal weight in the training (Tzallas et al., 2009). It is the mostly preferred algorithm in machine learning approaches due to its simple calculation mechanism created by the non-realistic approach (Cura and Akan, 2021; Sayilgan et al., 2021a; Degirmenci et al., 2022b). The Gaussian and Kernel algorithms of this Naive Bayes classifier were computed for this study.
3.4.4. Support vector machine
Support vector machine is a well-known supervised learning algorithm, which is a non-probabilistic approach that uses the geometric characteristics of input data. It is mostly used in both classification and regression studies. N dimensional space is created utilizing the elements of the coordinate systems. These elements consist of the data including n features. The decision boundaries, which are named “hyperplane”, are generated to discriminate the input data into different classes. Although many hyperplanes can be defined to categorize the different classes in the process, the optimum hyperplane that separates the different classes best is selected to provide a more accurate classification. The distance between the “support vectors” that belong to different class categories is defined as the “margin”. In this algorithm, the maximum margin is a critical parameter. The data placed on different parts of the hyperplane are indicated as a component of a different class (Vapnik, 1999; Hart et al., 2000; Lotte et al., 2018). All different types of support vector machine classifiers were computed in this study, i.e., linear, quadratic, cubic, fine Gaussian, medium Gaussian, and coarse Gaussian algorithms.
3.4.5. K-nearest neighbors (KNN)
KNN is a successful machine learning algorithm that is mostly preferred in classification and regression processes. The learning process is carried out based on the data in this algorithm (Isler et al., 2023). As a first step, the distance between the sample to be predicted and all input data in the training set is calculated. Among the k-nearest neighbors, those which provide the minimum distance are determined. Then, the class of the new sample is indicated as the most common class among these k-Nearest Neighbors (Isler, 2009; Tzallas et al., 2009). The distance calculation can be performed using different distance measurement methods such as Euclidean, Manhattan, Minkowski, and Hamming (Hart et al., 2000). In this study, fine, medium, coarse, cubic, cosine, and weighted algorithms of the k-NN classifier were executed. “Euclidean” distance measurement method is one of the most selected distance calculation methods (Isler, 2009; Cura and Akan, 2021). Hence, it was selected and adopted for the execution of fine, medium, coarse, and weighted algorithms in this study. Additionally, “cubic” and “cosine” distance metrics were used in cubic and cosine algorithms, respectively.
3.4.6. Logistic regression
The basic concept of logistic regression is the modeling of the probability of an event. The probability value is defined as a continuous variable, and two different outputs are available in logistic regression-based classifications. Hence, this algorithm can be used for binary classification studies. In the process, the logistic function which is also defined as the sigmoid function is fitted to the input data utilizing probability (Tzallas et al., 2009). The logistic regression algorithm projects the data points based on a line and all log-odd values evaluated. These log-odd values which are considered inputs are converted to probability values. These calculated probability values are defined as outputs of the algorithm. Hence, the sigmoid function is fitted using this input–output transformation. The different line rotations are tested by calculating, logging, and summing conditional probabilities for all steps. Then, the best fitting function which obtained the maximum probability is evaluated (Alkan et al., 2005).
3.4.7. Ensemble learning
Ensemble learning is a meta-algorithm that combines multiple machine learning techniques into a single prediction model (classifier) to reduce variance (bagging), bias (boosting), and/or improve predictions by preventing the overfitting problem. This algorithm generally assumes that a single classifier cannot achieve certain and precise classification accuracy due to possible noise, overlapping data distributions, and outliers in the data. Hence, this algorithm supposes that there is no single model (classifier) that works best for every classification problem (Sayilgan et al., 2021b). Consequently, recently, ensemble learning methods have become frequently preferred classification algorithms in the recent literature. In this study, the algorithms of Boosted, Bagged, Subspace Discriminant, Subspace k-NN, and RUSBoosted Trees which are developed under ensemble learning classifiers are tested since they have been implemented in Matlab already.
3.5. Performance evaluation metrics
In the performance evaluation of classification results, the reel label of MI EEG segments was compared with the predicted label assigned by classifier algorithms. The MI tasks classification results of the classifiers are calculated using true positive (TP), true negative (TN), false positive (FP), and false negative (FN). These values are calculated from the confusion matrix, and they are used to calculate accuracy (ACC) performance metric.
On the other hand, the k-fold cross-validation (CV) method is computed to evaluate classifier performance. k-fold CV randomly separated the extracted feature set as k different folds with equal sizes. Among these folds, the (k-1) fold is used as training data, and the remaining one-fold is used as test/validation data. In each classification, this process is repeated k times, and accuracy values are calculated for each iteration. At the end of the k iterations, the average accuracy value of the classification is calculated. In this study, the k value is chosen as 5 to apply the k-fold CV method. Additionally, 10 repeated tests were performed to check the repeatability of classification results. The mathematical formulas of performance metric computed to evaluate the classifier performance are expressed in the following equations (Hart et al., 2000; Isler, 2009; Degirmenci et al., 2021):
Here, while the number of data that actually belongs to a class and is marked to the same class by the classifier is expressed as TP, the number of data incorrectly marked to a different class is also expressed as FN. However, the number of data that actually belongs to a different class and is marked to a different class by the classifier is expressed as TN, and the number of data incorrectly marked to the same class is expressed as FP.
4. Results
In this study, we aim to classify MI tasks of EEG segments using all extracted features and statistically significance-based selected features only. As the implementation details of this study, the segmentation of EEG signals, feature extraction, and classification steps in the study was performed in MATLAB application. In the feature selection process, the software package “IBM SPSS Statistics 25”, which is generally used in statistical analysis, was used to perform the independent t-test for the 2-class task and the ANOVA test for the multiple-class task. The p-values which define the statistical significance are also found using this software program.
EEG signals are supplied from BCI Competition IV Dataset IIa in this study. MI EEG segments are extracted for 22-channel EEG recordings of 9 subjects. The feature set is calculated from temporal, spectral, time-frequency, and non-linear methods. In the time domain, 24 different features were extracted from 22 EEG channels for each MI EEG task sample. Hence, a total of 528 temporal features were supplied for each sample. The detailed description of 528 temporal features is “(number of EEG channels) × (number of features)”. The spectral features, energy, entropy, and variance of EEG sub-frequency bands (δ, θ, α, β, and γ) were calculated using fast Fourier transform-based frequency band extraction. These spectral features were extracted from 22 EEG channels for each MI EEG task sample. Hence, a total of 330 spectral features were supplied for each sample. In the time-frequency domain, energy, entropy, and variance of EEG sub-frequency bands (δ, θ, α, β, and γ) were calculated using Wavelet Transform-based frequency band extraction. These time-frequency features were calculated from 22 EEG channels for each MI EEG task sample. Then, a total of 330 spectral features were supplied for each sample. The detailed description for both 330 spectral and 330 time-frequency features is “(number of EEG channels) × (number of frequency subbands) × (number of features)”. As non-linear features, the values of (SD1) and (SD2), the product (SD1xSD2), and the ratio (SD1/SD2) were calculated from 22 EEG channels for each MI EEG task sample. The non-linear features were calculated for 2 different lag conditions, and a total of 176 non-linear features were supplied for each sample in the assumption of both lag=1 and lag=9. The detailed description for 176 non-linear features is “(number of lag conditions) × (number of EEG channels) × (number of features)”. The “(2592 × 1364)” feature vector which includes 2,592 samples and 1,364 features was supplied for multi-task classification at the end of the feature extraction process for all subjects. The “(1296 × 1364)” feature vector which includes 1,296 samples and 1,364 features was supplied for binary classification at the end of the feature extraction process for all subjects. In addition to the feature extraction process, we also aimed to investigate the effectiveness of the statistical significance-based feature selection method for both multi-task and binary classification. The statistically significant features were defined based on the statistical significance level using the ANOVA test and independent t-test for multi-task and binary classification processes, respectively. The results of ANOVA-based statistical analysis show that 673 out of 1,364 features yielded a significant p-value for multi-task classification. The independent t-test-based statistical analysis showed that 91 out of 1,364 features yielded a significant p-value for binary classification. The extracted and selected feature sets were given to the classifier algorithms using five-fold cross-validation to predict the MI tasks of samples. Finally, various classifiers such as decision tree, discriminant analysis, Naive Bayes, support vector machine, k-NN, logistic regression, and ensemble learning were utilized for the classification. The results of each classifier algorithm were evaluated based on the 10 repeated tests. Then, the average accuracy values of these repeated tests were evaluated for each classification process.
Tables 1, 2 show the accuracy-based performance evaluation results of the study. In the tables, the highest classification result for the related component is indicated with boldface numbers. The performance evaluation of the binary classification is presented in Table 1. In the table, “1st Task” indicates that the classifications were performed using the feature set combining the time-domain, frequency-domain, time-frequency domain features, and non-linear parameters. On the other hand, “2nd Task” denotes that classifications were performed using the selected feature set by a statistically significant (the independent t-test) based feature selection method. Among all 1st task classifications, the highest average accuracy value of 57.30% is achieved using the ensemble boosted trees algorithm and all features. In the 1st task, there are N/A results among classification results due to the fact that the prepared feature set does not provide suitable parameters for the structure of the classifier. In addition, the highest average accuracy value of 61.86% is achieved using the ensemble subspace discriminant algorithm and selected features by the independent t-test among all 2nd task classifications.
Table 1. Binary classification performance of the time-domain, frequency-domain, time-frequency domain, and non-linear features and the effectiveness of the independent t-test-based feature selection.
Table 2. Multi-task classification performance of the time-domain, frequency-domain, time-frequency domain, and non-linear features and the effectiveness of the independent t-test-based feature selection.
To investigate the effect of the study on the four-task classification task, the feature set is prepared to extract the same features from EEG signals. Additionally, the significant features are determined using the statistical significance (ANOVA test)-based feature selection method, and the selected feature set is obtained. The four-task classification performance results are presented in Table 2. As the previous table, “1st Task” indicates that the classifications are performed using the feature set by combining the time-domain, frequency-domain, time-frequency domain features, and non-linear parameters. On the other hand, the “2nd Task” indicates that the classifications are performed using the selected feature set by statistical significance (ANOVA test)-based feature selection method. The highest classification average accuracy value of 35.60% is obtained using ensemble boosted trees among all 1st task classifications. On the other hand, the highest classification average accuracy value of 47.36% is obtained with the ensemble subspace discriminant algorithm among all 2nd Task classifications.
In addition to accuracy-based performance evaluations, the sensitivity and specificity values were also calculated for only ensemble subspace discriminant algorithm-based classification since it provides the highest average accuracy value for both the binary and four-task classifications. These results are presented in Table 3. SEN and SPE values are calculated as 47.61% and 82.54% for the four-task classification in the 2nd Task, respectively. On the other hand, for the binary MI task classification, 65.28% SEN and 58.49% SPE values are calculated with the ensemble subspace discriminant classifier in the 2nd Task.
Table 3. Comparison of various multi-class and binary Motor Imagery task classification studies with the results of the study.
5. Discussion
In this study, we introduced a multi-directional handcrafted feature extraction-based approach for the representation and classification of multi-channel MI EEG signals. In the study, temporal features, spectral features, time-frequency features, and non-linear parameters of EEG signals are extracted. In addition, the effect of the statistical significance-based feature selection method is investigated to indicate significant and effective features from extracted feature set which includes the combination of various MI EEG features. The binary and multi-task classification studies were performed with the same feature extraction approach. In these studies, two different scenarios are available. “1st Task” denotes the classifications of the feature set that includes all features. “2nd Task” denotes the classifications of the selected feature set that includes statistically significant features. The extracted and selected feature sets are classified using 24 different classifier algorithms. In the binary classification process, logistic regression is also used. The accuracy, sensitivity, and specificity-based performance evaluations are performed to analyze the classifier performances implemented in this study.
In the binary classification task, classification could not be performed in 9 of all classifiers, and the highest average accuracy among the remaining classifications was achieved with ensemble boosted trees for the 1st task. On the other hand, for the 2nd task, it was possible to classify with all classifiers and the highest average accuracy value was obtained with the ensemble subspace discriminant algorithm. Moreover, the aim of the study included the investigation of statical significance-based feature selection in binary classification. To investigate the effectiveness of the independent t-test-based feature selection approach, 1st and 2nd scenarios of Table 1 are compared. It was observed that the feature selection method based on the independent t-test increased the performance in 13 classifiers, decreased the performance in 2 classifiers, and did not change the performance in 1 of them. We should note that considering the significant improvement in classifier performances, the independent t-test-based feature selection may be used as an effective feature extraction approach for binary classification studies.
In multi-task classification approaches for the 1st task, two algorithms from all classifiers could not be used for the classification of MI tasks, and the ensemble boosted trees algorithm yielded the highest average accuracy value among the remaining classifiers. In the 2nd Task, all classifiers were used for classification, and the highest average accuracy value was acquired with the ensemble subspace discriminant algorithms. ANOVA test-based feature selection process was performed to predict statistically significant features. Hence, the 1st and 2nd tasks of Table 2 are compared to determine the effectiveness of this statistical significance-based feature selection process on multiple MI task classification. According to Table 2, the classification was performed using ANOVA test selected features for two classifiers. It was observed that the feature selection method based on the ANOVA test increased the performance in 20 classifiers, decreased the performance in 1 classifier, and did not change the performance in 1 of them. Hence, the ANOVA test-based dimensionality reduction of EEG features approach is an effective feature selection method that provides a significant improvement in classifier performances for multiple MI task classification studies. In binary and multiple MI task classification, experimental results revealed that the selected statistically significant features introduced in this study outperform the results achieved using all EEG features.
In Table 3, we summarize some of the previous binary and multiple MI task classification studies and compare their performances with the performance of the study. The details of the studies including dataset, channel selection, feature extraction approaches, feature selection method, classes (binary or multiple), classifier algorithms, and classification performances based on the various metrics (ACC, SEN, and SPE) are given in Table 3 for effective comparison of these studies. In the study by Degirmenci et al. (2022b), the multiple (left hand, right hand, feet, and tongue) tasks were tried to be differentiated using 24 different time-domain features which were extracted from 22 channel EEG signals. On the other hand, the effectiveness of ANOVA-based feature selection was investigated, and the highest average accuracy was calculated as 44.30% using only statistically significant features. Each introduced feature extraction method of EEG signals is a factor that plays a significant role in the classification success of the study. In our study, the frequency domain, time-frequency domain, and non-linear parameters are also introduced, and these features provide higher success rates than that of their study. In the study by Degirmenci et al. (2022c), the independent t-test-based feature selection approach was performed using time-domain and frequency-domain features. All EEG channels of the BCI Competition IV Dataset-IIa were used for binary classification, and the highest average accuracy value of 62.52% was obtained. Their results revealed that the independent t-test-based feature selection process of that study generally improves the classifier performances. They reported higher average accuracy values than the ones in our study, but in their study, they did not use the time-frequency domain and non-linear features. In another study, Lu et al. (2020) used BCI Competition IV Dataset-IIa, and Wavelet packet decomposition-based binary classification was adopted. The accuracy value of 68.32% was achieved with the random forest classifier algorithm, and the reported value is higher than our binary classification results. However, in that study, both channel selection (C3 and C4) and DFSS-based feature selection processes were conducted. Since the feature selection provides the important features among all features from all EEG channels, a channel selection process is not adopted in our study. In the study by Kato et al. (2020), five finger movements are predicted using 21 EEG channels of the MISCP dataset. Multi-class common spatial pattern-based features were differentiated using support vector machine, and an accuracy value of 40.60% was achieved. Although more EEG channels were evaluated, the reported accuracy value was lower. If they adopted a feature selection algorithm for their study, they might reach a higher classifier performance. In addition, as the number of classes to be classified increases, the success of multi-task classifications remains at lower levels compared to the binary classification as in that study and our study. In another study, Sakhavi et al. (2015), filter-bank common spatial patterns and energy-based features are extracted using 22 EEG channels of BCI Competition IV Dataset-IIa. Then, convolutional neural networks were used to classify four different MI tasks, and an accuracy value of 70.60% was achieved. The reported classification result was higher than the accuracy achieved in our study. Although convolutional neural network-based approaches might increase the classification success, the training time generates a high computational load for the designed system. However, the computational complexity of our feature extraction, feature selection, and classification processes is lower than in convolutional neural network-based studies. In the study by Garcia-Laencina et al. (2014), a feature extraction process including band power features, Hjorth parameters, and adaptive auto-regressive coefficients is presented using five BCI-EEG datasets. Local Fisher discriminant analysis is applied for feature selection. Five-finger movements are classified using the linear discriminant analysis algorithm with an accuracy of 77.30%. The reported accuracy value is higher than the accuracy in our study, but the channel reduction process is conducted in addition to the feature selection, and only C3 and C4 channels are evaluated for their proposed methods. In another study by Jusas and Samuvel (2019), the channel reduction and feature selection processes were conducted, and the authors performed an analysis with 8 EEG channels by applying channel selection and also used the PCA-based feature selection process. PCA-based selected fast Fourier transform and channel variance features of EEG signals are classified with an accuracy of 56.00% using the least squares support vector machine. In the study by Nguyen et al. (2018), common spatial patterns and in the study by Lindig-Leon and Bougrain (2015) common spatial patterns and band power feature extraction methods were applied to classify multiple tasks, achieving higher classification performances than the accuracy in our study. Although more EEG channels are evaluated, only the spatial features are considered, and time domain features, time-frequency domain features, and non-linear features were not included in their feature extraction process. Although common spatial pattern-based feature selection was applied, which is known to have a positive effect on MI task classification performance success, the performance is still not at very high levels for these studies. In another study by Ma et al. (2018), the sliding window method and transposed matrix were used to represent 64-channel EEG signals. They used EEG signals from Movement/Imagery Database (eegmmidb) for the prediction of five classes, and these classes were eye closed (baseline), and tasks imagining moving both feet, both fists, left fist, and right fist. The accuracy value of 68.20% is yielded with recurrent neural networks. The classification accuracy is higher than the accuracy achieved in our multi-task classification task. On the other hand, such deep learning approaches have more computational complexity than our study since they combine feature selection and classification processes. In a binary task classification study by Xu et al. (2019), the time-frequency representations of EEG signals are obtained using the short-time Fourier transform method, and 2D EEG images are given to convolutional neural network structure for classification. The accuracy value of 74.20% is calculated by their proposed approach. Although the success of the study appears to be higher than our study, the computational complexity due to image transformation of EEG signals and convolutional neural network-based classification should not be ignored. In addition to computational load, less number of channels (C3, Cz, and C4) are only evaluated. Considering the high performance of deep learning approaches and the effectiveness of channel reduction on performance, better classification results could be achieved. In another binary classification study by Zhao et al. (2019), Wavelet Transform and convolutional neural network-based approach using 22 EEG channels of BCI Competition IV Dataset-IIa are introduced. The classification result showed that the accuracy value is calculated as 69.00%. As in the previous study, there is no significant performance improvement considering the advantages and drawbacks of convolutional neural network-based approaches, despite the occurred additional computational complexity. In the study by Lee et al. (2019), time-domain parameters are extracted from 64 EEG channels, and a private dataset is used. Four different tasks which are Grasp, Spread, Pronation, and Supination are differentiated with an accuracy of 58.20% using the shrinkage-regularized linear discriminant analysis algorithm. They used more EEG channels and different multiple-task categories, but only temporal features were extracted as EEG features, and the other feature extraction categories were ignored.
Considering the contributions, benefits, and drawbacks of these binary and multiple-task classification studies, some parameters play important roles in the MI task classification process. These are dataset, number of channels, channel selection, feature extraction methods, feature selection methods, classifier algorithms, and number of classes. The main drawback is computational complexity due to feature extraction methods and the classification process of EEG signals. In EEG signal processing, the basic goal is to achieve high-performance values using all channels of EEG signals. Another important aspect is adopting an effective feature selection method that indicates the relevant and discriminative MI EEG features and improves the classifiers' performance. The statistically significant feature-based approach we used in the study, which has computational advantages, resulted in an accuracy of 61.86 and 47.36% for binary classification and four-task classification, respectively. In addition, 22 channels of EEG signals are evaluated for process, and different feature categories which are time-domain, frequency-domain, time-frequency domain, and non-linear are used for feature extraction. The classification results indicate that the statistically significance-based feature selection process is an effective feature selection method that generally improves classifier performances. Therefore, the encouraging performance results of this study with the computational advantages demonstrate that the statistically significant feature-based approach may be applied to other EEG-based studies.
6. Conclusion
Decoding of MI tasks has an important role to provide a reliable and convenient way of information interaction for paralyzed patients to control external devices. EEG signals are commonly used in the classification of MI tasks due to ease of recording and low cost. However, the monitoring and analysis of long-term EEG signals are time-consuming and not reliable because of changes in the experiences of experts. Hence, the selection of effective signal processing and classification approaches plays an important role in the accurate analysis of MI EEG signals.
In this study, we extracted features using time-domain, frequency-domain, time-frequency domain features, and non-linear methods. In addition, the effectiveness of the statistically significance-based feature selection method is investigated. The statistically significant MI EEG features are determined using statistical significance (ANOVA test and independent t-test)-based feature selection for four tasks and binary task classifications. The results showed that the ensemble learning classifiers (boosted trees and subspace discriminant algorithms) yielded the maximum classifier performance in four tasks and binary task classifications. Ensemble subspace discriminant algorithm yielded accuracy values of 47.36 and 61.86% using the selected feature set including statistically significant MI EEG features for four-task and binary task classifications, respectively. The main contribution of this study is the implementation of Poincare plot measures based on non-linear features to commonly use time-domain, frequency-domain, and time-frequency domain features. In our experiments, we observed that the ANOVA test-based and the independent t-test-based feature selection processes provide significant improvements in classifiers' performance. Hence, the statistically significance-based selection is a practical feature selection method and may be used to analyze different EEG signal-based studies. Additionally, this study has the advantage of low computational complexity in terms of feature extraction, feature selection, and classification approaches. Therefore, the statistically significant time-domain, frequency-domain, time-frequency domain features, and non-linear parameters are presented as the novel effective features in this study and successfully implemented to predict binary and multiple MI tasks.
Data availability statement
Publicly available datasets were analyzed in this study. This data can be found here: https://www.bbci.de/competition/iv/#dataset2a.
Author contributions
YY, MP, and YI contributed to the conception and design of the study. MD implemented all feature extraction, feature selection, and machine learning algorithms in Matlab. MD and YI wrote the first draft of the manuscript. All authors wrote sections of the manuscript and contributed to the manuscript revision, read, and approved the submitted version.
Funding
MP was supported by the Slovenian Research Agency (Grant Nos. P1-0403 and J1-2457). This study was also supported by the Izmir Katip Celebi University Scientific Research Council Agency as project number 2023-TDR-FEBE-0002 for MD's doctoral thesis studies. In addition, MD has a research fellowship from the Higher Education Institution within the 100/2000 Higher Education Institution Ph.D. scholarship and the 2211A general doctorate scholarship from the Scientific and Technological Research Council of Türkiye (TUBITAK).
Conflict of interest
The 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
Alkan, A., Koklukaya, E., and Subasi, A. (2005). Automatic seizure detection in EEG using logistic regression and artificial neural network. J. Neurosci. Methods 148, 167–176. doi: 10.1016/j.jneumeth.2005.04.009
Altaheri, H., Muhammad, G., Alsulaiman, M., Amin, S. U, Altuwaijri, G. A., Abdul, W., et al. (2021). Deep learning techniques for classification of electroencephalogram (EEG) motor imagery (MI) signals: a review. Neural Comput. Appl. 35, 14681–14722. doi: 10.1007/s00521-021-06352-5
Ang, K. K., Chin, Z. Y., Wang, C., Guan, C, and Zhang, H. (2012). Filter bank common spatial pattern algorithm on BCI competition IV datasets 2a and 2b. Front. Neurosci. 6, 39. doi: 10.3389/fnins.2012.00039
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: IEEE), 2390–2397. doi: 10.1109/IJCNN.2008.4634130
Arvaneh, M., Guan, C., Ang, K. K., and Quek, C. (2011). Optimizing the channel selection and classification accuracy in EEG-based BCI. IEEE Trans. Biomed. Eng. 58, 1865–1873. doi: 10.1109/TBME.2011.2131142
Bansal, D., and Mahajan, R. (2019). EEG-Based Brain-Computer Interfaces: Cognitive Analysis and Control Applications. Academic Press. doi: 10.1016/C2017-0-01267-3
Blanco-Diaz, C. F., Antelis, J. M., and Ruiz-Olaya, A. F. (2022). Comparative analysis of spectral and temporal combinations in CSP-based methods for decoding hand motor imagery tasks. J. Neurosci. Methods 371, 109495. doi: 10.1016/j.jneumeth.2022.109495
Blum, A. L., and Langley, P. (1997). Selection of relevant features and examples in machine learning. Artif. Intell. 97, 245–271. doi: 10.1016/S0004-3702(97)00063-5
Boashash, B. (2015). Time-frequency Signal Analysis and Processing: A Comprehensive Reference. Academic Press.
Brennan, M., Palaniswam, M., and Kamen, P. (2001). Do existing measures of Poincare plot geometry reflect nonlinear features of heart rate variability? IEEE Trans. Biomed. Eng. 48, 1342–1347. doi: 10.1109/10.959330
Brunner, C., Leeb, R., Muller-Putz, G., Schlogl, A., and Pfurtscheller, G. (2008). BCI Competition 2008–Graz Data Set A. Institute for Knowledge Discovery (Laboratory of Brain-Computer Interfaces), Graz University of Technology. 1–6. Available online at: http://www.bbci.de/competition/iv/desc_2a.pdf
Bulut, A., Ozturk, G., and Kaya, I. (2022). Classification of sleep stages via machine learning algorithms. J. Intell. Syst. Appl. 5, 66–70. doi: 10.54856/jiswa.202205210
Cancioglu, E., Sahin, S., and Isler, Y. (2021). Fault detection and diagnosis on process control systems using ensemble learning algorithms from Poincare plot measures. Eur. J. Sci. Technol. 26, 30–34. doi: 10.31590/ejosat.952761
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
Cura, O. K., and Akan, A. (2021). Analysis of epileptic EEG signals by using dynamic mode decomposition and spectrum. Biocybernet. Biomed. Eng. 41, 28–44. doi: 10.1016/j.bbe.2020.11.002
Degirmenci, M., Ozdemir, M. A., Izci, E., and Akan, A. (2021). Arrhythmic heartbeat classification using 2d convolutional neural networks. Innovat. Res. Biomed. Eng. 43, 422–433. doi: 10.1016/j.irbm.2021.04.002
Degirmenci, M., Yuce, Y. K., and Isler, Y. (2022a). Classification of multi-class motor imaginary tasks using Poincare measurements extracted from EEG signals. J. Intell. Syst. Appl. 5, 74–78. doi: 10.54856/jiswa.202212204
Degirmenci, M., Yuce, Y. K., and Isler, Y. (2022b). “Motor imaginary task classification using statistically significant time-domain EEG features,” in 2022 30th Signal Processing and Communications Applications Conference (SIU) (Safranbolu: IEEE), 1–4. doi: 10.1109/SIU55565.2022.9864745
Degirmenci, M., Yuce, Y. K., and Isler, Y. (2022c). Motor imaginary task classification using statistically significant time domain and frequency domain eeg features. J. Intell. Syst. Appl. 5, 49–54. doi: 10.54856/jiswa.202205203
Djamal, E. C., Abdullah, M. Y., and Renaldi, F. (2017). Brain computer interface game controlling using fast Fourier transform and learning vector quantization. J. Telecommun. Electron. Comput. Eng. 9, 71–74.
Gandhi, T., Panigrahi, K. B., and Anand, S. (2011). A comparative study of wavelet families for EEG signal classification. Neurocomputing 74, 3051–3057. doi: 10.1016/j.neucom.2011.04.029
Garcia-Laencina, P. J., Rodriguez-Bermudez, G., and Roca-Dorda, J. (2014). Exploring dimensionality reduction of EEG features in motor imagery task classification. Expert Syst. Appl. 41, 5285–5295. doi: 10.1016/j.eswa.2014.02.043
Guyon, I., and Elisseeff, A. (2003). An introduction to variable and feature selection. J. Mach. Learn. Res. 3, 1157–1182.
Ha, K. W., and Jeong, J. W. (2019). Motor imagery EEG classification using capsule networks. Sensors 19, 2854. doi: 10.3390/s19132854
Hamedi, M., Salleh, S. H., Noor, A. M., and Mohammad-Rezazadeh, I. (2014). “Neural network-based three-class motor imagery classification using time-domain features for BCI applications,” in 2014 IEEE Region 10 Symposium (Kuala Lumpur: IEEE), 204–207. doi: 10.1109/TENCONSpring.2014.6863026
Hart, P. E., Stork, D. G., and Duda, R. O. (2000). Pattern Classification. 2nd Edn. New Jersey, NJ: A Wiley-Interscience Publication.
Isa, N. M., Amir, A., Ilyas, M. Z., and Razalli, M. S. (2019). Motor imagery classification in Brain computer interface (BCI) based on EEG signal by using machine learning technique. Bull. Electric. Eng. Inform. 8, 269–275. doi: 10.11591/eei.v8i1.1402
Isler, Y. (2009). A detailed analysis of the effects of various combinations of heart rate variability indices in congestive heart failure (Ph.D. thesis). Dokuz Eylul University, Izmir, Türkiye.
Isler, Y., and Kuntalp, M. (2007). Combining classical HRV indices with wavelet entropy measures improves to performance in diagnosing congestive heart failure. Comput. Biol. Med. 37, 1502–1510. doi: 10.1016/j.compbiomed.2007.01.012
Isler, Y., and Kuntalp, M. (2009). “Diagnosis of congestive heart failure patients using Poincare measures derived from ECG signals,” in 2009 14th National Biomedical Engineering Meeting (Izmir: IEEE), 1–4. doi: 10.1109/BIYOMUT.2009.5130287
Isler, Y., Narin, A., Ozer, M., and Perc, M. (2019). Multi-stage classification of congestive heart failure based on short-term heart rate variability. Chaos Solitons Fractals 118, 145–151. doi: 10.1016/j.chaos.2018.11.020
Isler, Y., Ozturk, U., and Sayilgan, E. (2023). Decreasing the running time of the k-nearest neighbors algorithm with data reduction techniques for diagnosing congestive heart failure. Sadhana Acad. Proc. Eng. Sci. 48, 35. doi: 10.1007/s12046-023-02105-3
Jusas, V., and Samuvel, S. G. (2019). Classification of motor imagery using combination of feature extraction and reduction methods for brain-computer interface. Inform. Technol. Control 48, 225–234. doi: 10.5755/j01.itc.48.2.23091
Kato, M., Kanoga, S., Hoshino, T., and Fukami, T. (2020). “Motor imagery classification of finger motions using multiclass CSP,” in 2020 42nd Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC) (Montreal, QC: IEEE), 2991–2994. doi: 10.1109/EMBC44109.2020.9176612
Kohavi, R., and John, G. H. (1997). Wrappers for feature subset selection. Artif. Intell. 97, 273–324. doi: 10.1016/S0004-3702(97)00043-X
Lee, S. B., Kim, H. J., Kim, H., Jeong, J. H., Lee, S. W., and Kim, D. J. (2019). Comparative analysis of features extracted from EEG spatial, spectral and temporal domains for binary and multiclass motor imagery classification. Inform. Sci. 502, 190–200. doi: 10.1016/j.ins.2019.06.008
Lindig-Leon, C., and Bougrain, L. (2015). “A multi-label classification method for detection of combined motor imageries,” in 2015 IEEE International Conference on Systems, Man, and Cybernetics (IEEE), 3128–3133. doi: 10.1109/SMC.2015.543
Lotte, F., Baugrain, L., Cichocki, A., Clerc, M., Congedo, M., Rakotomamonjy, A., et al. (2018). A review of classification algorithms for EEG-based brain-computer interfaces: a 10 year update. J. Neural Eng. 15, 031005. doi: 10.1088/1741-2552/aab2f2
Luo, J., Gao, X., Zhu, X., Wang, B., Lu, N., and Wang, J. (2020). Motor imagery EEG classification based on ensemble support vector learning. Comput. Methods Prog. Biomed. 193, 105464. doi: 10.1016/j.cmpb.2020.105464
Ma, X., Qiu, S., Du, C., Xing, J., and He, H. (2018). “Improving EEG-based motor imagery classification via spatial and temporal recurrent neural networks,” in 2018 40th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC) (Honolulu, HI: IEEE), 1903–1906. doi: 10.1109/EMBC.2018.8512590
Meziani, A., Djouani, K., Medkour, T., and Chibani, A. (2019). A Lasso quantile periodogram based feature extraction for EEG-based motor imagery. J. Neurosci. Methods 328, 108434. doi: 10.1016/j.jneumeth.2019.108434
Mousa, M. A., El-Khoribi, R. A., and Shoman, M. E. (2016). A novel brain computer interface based on principle component analysis. Proc. Comput. Sci. 82, 49–56. doi: 10.1016/j.procs.2016.04.008
Musallam, Y. K., AlFassam, N. I., Muhammad, G., Amin, S. U., Alsulaiman, M., Abdul, W., et al. (2021). Electroencephalography-based motor imagery classification using temporal convolutional network fusion. Biomed. Signal Process. Control 69, 102826. doi: 10.1016/j.bspc.2021.102826
Narin, A., Isler, Y., and Ozer, M. (2014). Investigating the performance improvement of HRV Indices in CHF using feature selection methods based on backward elimination and statistical significance. Comput. Biol. Med. 45, 72–79. doi: 10.1016/j.compbiomed.2013.11.016
Nguyen, T., Hettiarachchi, I., Khatami, A., Gordon-Brown, L., Lim, C. P., and Nahavandi, S. (2018). Classification of multi-class BCI data by common spatial pattern and fuzzy system. IEEE Access 6, 27873–27884. doi: 10.1109/ACCESS.2018.2841051
Pawar, D., and Dhage, S. (2020). Feature extraction methods for electroencephalography based brain-computer interface: a review. Int. J. Comput. Sci. 47, 501–515.
Sakhavi, S., Guan, C., and Yan, S. (2015, August). Parallel convolutional-linear neural network for motor imagery classification,” in 2015 23rd European Signal Processing Conference (EUSIPCO) (Nice: IEEE), 2736–2740. doi: 10.1109/EUSIPCO.2015.7362882
Samek, W., Kawanabe, M., and Muller, K. R. (2013). Divergence-based framework for common spatial patterns algorithms. IEEE Rev. Biomed. Eng. 7, 50–72. doi: 10.1109/RBME.2013.2290621
Samek, W., Vidaurre, C., Muller, K. R., and Kawanabe, M. (2012). Stationary common spatial patterns for brain-computer interfacing. J. Neural Eng. 9, 026013. doi: 10.1088/1741-2560/9/2/026013
Sayilgan, E„ Yuce, Y. K., and Isler, Y. (2021b). Evaluation of wavelet features selected via statistical evidence from steady-state visually-evoked potentials to predict the stimulating frequency. J. Faculty Eng. Arch. Gazi Univ. 36, 593–605. doi: 10.17341/gazimmfd.664583
Sayilgan, E., Yuce, Y. K., and Isler, Y. (2021a). “Evaluating steady-state visually evoked potentials-based brain-computer interface system using wavelet features and various machine learning methods,” in Brain-Computer Interface, ed V. Asadpour (IntechOpen). doi: 10.5772/intechopen.98335
Sayilgan, E., Yuce, Y. K., and Isler, Y. (2021c). Frequency recognition from temporal and frequency depth of the brain-computer interface based on steady-state visual evoked potentials. J. Intell. Syst. Appl. 4, 68–73. doi: 10.54856/jiswa.202105160
Tan, D., and Nijholt, A., (eds.). (2010). “Brain-computer interfaces and human-computer interaction,” in Brain-Computer Interfaces (London: Springer), 3–19. doi: 10.1007/978-1-84996-272-8_1
Tiwari, S., Goel, S., and Bhardwaj, A. (2022). MIDNN-a classification approach for the EEG based motor imagery tasks using deep neural network. Appl. Intell. 52, 4824–4843. doi: 10.1007/s10489-021-02622-w
Tzallas, A. T., Tsipouras, M. G., and Fotiadis, D. I. (2009). Epileptic seizure detection in EEGs using time-frequency analysis. IEEE Trans. Inform. Technol. Biomed. 13, 703–710. doi: 10.1109/TITB.2009.2017939
Vapnik, V. (1999). The Nature of Statistical Learning Theory, 2nd Edn. New York, NY: Springer. doi: 10.1007/978-1-4757-3264-1
Wu, W., Chen, Z., Gao, X., Li, Y., Brown, E. N., and Gao, S. (2014). Probabilistic common spatial patterns for multichannel EEG analysis. IEEE Trans. Pattern Anal. Mach. Intell. 37, 639–653. doi: 10.1109/TPAMI.2014.2330598
Xu, G., Shen, X., Chen, S., Zong, Y., Zhang, C., Yue, H., et al. (2019). A deep transfer convolutional neural network framework for EEG signal classification. IEEE Access 7, 112767–112776. doi: 10.1109/ACCESS.2019.2930958
Yuan, H., and He, B. (2014). Brain-computer interfaces using sensorimotor rhythms: current state and future perspectives. IEEE Trans. Biomed. Eng. 61, 1425–1435. doi: 10.1109/TBME.2014.2312397
Keywords: brain-computer interfaces (BCIs), electroencephalogram (EEG), feature selection, machine learning, Motor Imagery (MI) task classification
Citation: Degirmenci M, Yuce YK, Perc M and Isler Y (2023) Statistically significant features improve binary and multiple Motor Imagery task predictions from EEGs. Front. Hum. Neurosci. 17:1223307. doi: 10.3389/fnhum.2023.1223307
Received: 15 May 2023; Accepted: 23 June 2023;
Published: 11 July 2023.
Edited by:
Kang Hao Cheong, Singapore University of Technology and Design, SingaporeCopyright © 2023 Degirmenci, Yuce, Perc and Isler. 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: Yalcin Isler, islerya@yahoo.com