# On the Use of Wavelet Domain and Machine Learning for the Analysis of Epileptic Seizure Detection from EEG Signals

Authors: K.V. N. Kavitha; Sharmila Ashok; Agbotiname Lucky Imoize; Stephen Ojo; K. Senthamil Selvan; Tariq Ahamed Ahanger; Musah Alhassan
Journal: Journal of Healthcare Engineering
 (2022)

---

## Abstract

Epileptic patients suffer from an epileptic brain seizure caused by the temporary and unpredicted electrical interruption. Conventionally, the electroencephalogram (EEG) signals are manually studied by medical practitioners as it records the electrical activities from the brain. This technique consumes a lot of time, and the outputs are unreliable. In a bid to address this problem, a new structure for detecting an epileptic seizure is proposed in this study. The EEG signals obtained from the University of Bonn, Germany, and real-time medical records from the Senthil Multispecialty Hospital, India, were used. These signals were disintegrated into six frequency subbands that employed discrete wavelet transform (DWT) and extracted twelve statistical functions. In particular, seven best features were identified and further fed into k-Nearest Neighbor (kNN), naïve Bayes, Support Vector Machine (SVM), and Decision Tree classifiers for two-type and three-type classifications. Six statistical parameters were employed to measure the performance of these classifications. It has been found that different combinations of features and classifiers produce different results. Overall, the study is a first attempt to find the best combination feature set and classifier for 16 different 2-class and 3-class classification challenges of the Bonn and Senthil real-time clinical dataset.


---

## Body

## 1. Introduction

Epilepsy is a brain disorder that includes repeated seizures in the brain due to uncontrolled electrical movement. It results in uninhibited jerking movement and momentary loss of consciousness. It is potentially life-threatening as it causes malfunction of the brain and lung, heart failure, and unexpected deaths caused by accident. Therefore, it is imperative to diagnose epilepsy [1]. The signal that records electrical movement and activity in the brain is the electroencephalogram (EEG) signal. Electrodes are placed on various parts of the scalp during this procedure and produce multichannel data. Since it is a noninvasive and inexpensive method, it serves as a vital data resource in neurological diagnosis such as seizure detection [1, 2]. Typically, medical personnel collect recordings by visually inspecting the long-term EEG. This method consumes time, is cumbersome and prone to errors, and requires a certain level of human expertise. Thus, an automated epilepsy seizure detection framework is needed.This tedious nature of reading EEG recordings by doctors to determine epileptic conditions has necessitated research into more straightforward, quicker, and more efficient methods of detecting epileptic conditions. In [3], a pattern recognition study was conducted using time-domain (TD) functions for detecting epileptic seizures, which includes waveform length (WL), some slope sign changes (SSC), and many zero-crossings (ZC) that are derivative of filtered EEG data and discrete wavelet transform (DWT) of filtered EEG data for the detection of epileptic seizures. Therefore, the performance of time-domain features was studied based on the support vector machines (SVM) classifiers and naïve Bayes (NB). With direct and DWT-based TD functions, the results revealed that the suggested technique should reach the best accuracy of 100 percent for regular eyes open and epileptic datasets.In [4], it is imperative to use the combination of electroencephalogram (EEG) with the technique of deep learning computation to diagnose epileptic seizures, as highlighted in the study. This study emphasized designing and evaluating seizure detection using the deep convolution neural network-based classifier. The outcome proposed was to determine the most accurate seizure detection, and it was classified into three methods. 99.21% was the highest average classification accuracy, which was proposed to be the FT-VGG16 classifier using the accuracy data with previous studies of the same set of data. The outcome shows that comparing the signal-to-image conversion method and accuracy data model surpassed all earlier investigations in the vast majority. Furthermore, to discover the most improved classification accuracy and the EEG frequencies feature, the SHapley Additive exPlanations (SHAP) analysis approach was used.In [5], the Bonn dataset was used to evaluate the new suggested technique for automatically recording epileptic electroencephalograms. This is based on approximated entropy and repetitive mixed quantification analysis, leveraging a convolution neural network. The results revealed that approximation entropy and recurrence quantification effectively detect epileptic seizures. 92.17%, 91.75%, and 92.00% show the recurrence rate of attainment of sensitivity and accuracy, respectively. The classic recordings automatically differentiate seizure electroencephalogram from convolutional neural networks, especially when combined with the approximate entropy and recurrence quantification analysis features. The results reached 98.84%, 99.35%, and 99.26%. Several other works in this domain all point to the fact that automatic detection of epileptic conditions can be a possibility, thus ruling out the tedious task of doctors inspecting EEGs. These tools would be helpful in epilepsy clinical diagnosis and therapy.In providing an accurate solution to the problem of an epileptic seizure, several algorithms have been proposed, and they provide several levels of accuracy. In [6–8], several time-frequency domain algorithms were introduced for the accurate characterization of epileptic seizures from collected EEG signals. Two of the algorithms are short-time Fourier transform and multiwavelet transform. The two algorithms provided satisfactory results upon validation. Discrete wavelet transform was employed in [9] for epileptic seizure detection. This method was primarily used to extract features from the EEG signals and carry out the principal component analysis, independent component analysis, and, lastly, the linear discriminant analysis, which was introduced to reduce the dimensions of the various signals and for straightforward representation. Support vector regression machine learning-based model was then employed to classify the mixed EEG signals in the multidimensional plane.As introduced, the Support Vector Machine is efficient for signal classification, but that does not come without the challenges of selecting the optimal number of parameters. Setting the proper parameter is crucial to achieving high accuracy in detecting epileptic seizures. This hyperparameter tuning and selection makes particle swarm optimization and genetic algorithms highly accurate. The detection of epileptic seizures must be done accurately and efficiently, and this is why machine learning algorithms have been recently introduced. The large volume of the dataset used in EEG signals can be processed accurately with the algorithms.Also, the robust network architecture that ML algorithms provide makes them scalable and useful when characterizing EEG signals. The epileptic seizure detection must be performed with the lowest false negative and false positive. ML algorithms have been introduced to ensure this efficiency and accuracy in feature characterization. The digital wavelet transformation (DWT) introduced in [9, 10] was able to handle the problem of spikes in epileptic seizures. The DWT algorithm can handle the spikes through the localization of these transient occurrences. The algorithm prevents the generalization of the spike occurrences and thus reduces or minimizes any form of error at that particular time during the signal characterization process.The detection of epileptic seizures was introduced using hybrid methods [11]. The generic algorithm was embedded into fuzzy logic and characterized both epileptic and nonepileptic signals. Various risk assessments to both the two signal characterizations (epileptic and nonepileptic) were provided by fusing the data into the genetic algorithm to make accurate predictions. Another hybrid method was introduced in [12], in which computational intelligence was integrated with a genetic algorithm to ensure optimal characterization of EEG signals. The entire dataset was divided into training and validation datasets. Features were extracted from the datasets and used to train the genetic algorithm. The validation datasets were then used to validate the trained model. The genetic algorithm-based model was able to detect epileptic seizures accurately. Hybrid models work efficiently and can adequately compensate for the deficiencies in each base model to produce a single model with high accuracy. For this particular base model, the accuracy largely depends on the proper tuning of the parameters of the genetic algorithm.In [13], another model stationary wavelet transform was introduced and employed to detect an epileptic seizure. This presented algorithm properly captured points on the edge of the signal which are stationary at all points. The ability to capture these stationary points reduces the probability of error. This is because the points on the wavelet that would have been normally left unaccounted for have now been adequately represented with the aid of this stationary wavelet algorithm. It was applied to both epileptic and nonepileptic signals under varying conditions to determine its optimization level. The stationary wavelet algorithm is also efficient for handling the data points along rough edges that could negatively affect the seizure detection algorithm. The stationary points for the nonepileptic signals present some form of complexities. Still, they could also be handled appropriately with the stationary wavelet transformation for linear signals and nonlinear signals.An algorithm was given to detect epileptic seizures in [14]. The study used data from both epileptic patients and those who are not epileptic patients to develop the framework. The authors then classified the sample features into various datasets using linear and nonlinear classifiers. The linear classifier handled the measurements taken from nonepileptic patients, while the nonlinear classifiers were used to classify epileptic patients. Digital wavelet transformation was then later used to analyze seizure detection. The datasets were also divided into the training and the test datasets to ensure proper characterization in all cases. While the detection algorithm was developed with the training dataset, the testing was carried out with the test datasets to prevent overfitting and reduce the number of outliers. Several other algorithms have been developed and used in epileptic seizure detection, but some present one form of limitation or the other. The concern is not just in the development of an algorithm. The focus should be on optimization and accurate characterization so that seizure detection can be done with the lowest possible form of error.This work combines the wavelet domain and machine learning approach to identify epileptic seizures. Time-frequency analysis is carried out on EEG signals as they are nonlinear, nonstationary, and complex. There are many methods for performing time-frequency analysis. In this study, the discrete wavelet transform technique is adopted. Extracting the hidden characteristics of the signal is done by using feature extraction, which helps in inspecting the signal. These derived features are fed into classifiers that differentiate between healthy and seizure signals. The classifiers used are k-Nearest Neighbor (kNN), Support Vector Machine (SVM), naïve Bayes, and Decision Tree classifier [15, 16]. The performance of these classifiers is measured using statistical parameters.The remainder of this work is structured as follows. Section2 presents the methodology. The results and discussions are given in Section 3. The comparison with other existing state-of-the-art developments is given in Section 4, and the conclusion is given in Section 5.


## 2. Methods

The EEG data is fragmented into six frequency subbands using the discrete wavelet transform. The essential characteristics, such as mean average power, lowest coefficient, average value, and highest coefficient, are removed and inputted into naïve Bayes, SVM, Decision Tree classifiers, and kNN. The computation performance is done for each classifier and feature. The proposed framework is indicated in Figure1.Figure 1
Block diagram of the proposed methodology.


### 2.1. Bonn University Dataset

This data is available on the website of the Department of Epileptology, Bonn University, Germany [15]. This is a single-channel data provided solely for research purposes. The record contains five datasets named as set A to set E. Each set of data has 100 samples. The time taken is 23.6 s for 100 EEG segments recorded on the head's surface via a single channel. Five healthy volunteers were chosen for clusters A and B, and the EEG signals were recorded with keen observation, respectively. For cluster C, there are the patients who do not have the epileptic attack at hemisphere hippocampal formation, and, for cluster D, the epileptogenic zone is where the recording took place. Set E of the EEG signal was recorded, while the patients were experiencing an epileptic attack. A 12-bit A/D converter with a 173.61 Hz sampling frequency is used for digitizing the data. Therefore, each EEG segment is found to contain 4096 points of sampling. The graphs of EEG signals are plotted and presented in Figure 2.Figure 2
Sample EEG signals from datasets A to E.


### 2.2. Real-Time Clinical Dataset

Real-time multichannel clinical data were acquired from six healthy patients and six epileptic patients from Senthil Multispecialty Hospital in Erode, Tamil Nadu, India. The data was 21-channel EEG data. The epileptic signal was recorded during the preseizure period. The sampling frequency is maintained at 256 Hz.


### 2.3. Preprocessing of Signal Using DWT

The Fast Fourier Transform (FFT) for frequency-domain analysis is applied in many applications. But, for biomedical signals such as EEG, the usage of FFT is restricted, since they include uneven patterns and are also nonstationary. The only time-domain analysis will not yield information regarding the frequency of the pattern. Therefore, the time-frequency analysis is applied for preprocessing the signal. Discrete wavelet transform is a widely used time-frequency analyzer for biomedical signals as it prefers variable window sizes. The DWT algorithm uses low-pass (LP) and high-pass (HP) quadrature mirror filters.The input signal is routed through the low- and high-pass filters to produce the approximate (A1) coefficient and their outputs detailed (D1) coefficient. The result obtained from the high-pass filter is provided to another filter of quadrature mirror type, and the process is repeated to determine the coefficients of the subsequent level. Every decomposition process leads to doubling the frequency resolution because of filtering and halved through downsampling.This work uses Daubechies order-4 wavelet function due to its orthogonal features and filtering efficiency. The necessary statistical features are acquired from the subbands frequency.


### 2.4. Statistical Features from Discrete Wavelet Transform (DWT) Coefficients

The following features were extracted.Mean Average Value (MAV). MAV relates to the information frequency of the signal and can be determined from the following equation:(1)MAV=1N∑i=1Nxi.Maximum Coefficient. The maximum coefficient measures the maximum frequency value for a given sample.Minimum Coefficient. The minimum coefficient measures the minimum value of frequency for a given sample.Standard Deviation (STD). Standard deviation relates to the proportionate changes in the frequency signal and is given by the following equation:(2)SD=1N−1∑i=1Nxi−μ.2Average Power. Average power represents information about the frequency content of the signal and is determined by the following equation:(3)AVP=1N∑i=1Nxi.2Shannon Entropy. The expression of Shannon entropy offers an easy mode to determine the average number of bits necessary to encode a string of symbols. It is given by the following equation:(4)HX=−∑i=0N−1pilog2pi.Approximate Entropy (ApEn). The extent of regularity and unpredictability of fluctuations over time-series data can be quantified by approximate entropy, ApEn (m, r, N). The parameters m and r are the run length and tolerance window input parameters, respectively. The parameter N is the number of points of the time series.


### 2.5. K-Fold Cross-Validation

10-fold cross-validation is used in this study to get reliable results. The original sample is divided into 10 subsamples. The 9 subsamples are used as training datasets, and one subsample is used as testing dataset. It is then repeated 10 times. In this way, each dataset is trained 9 times and tested one time. The 10 results obtained are then averaged to give a single estimated accuracy. This validation is applied to SVM, KNN, naïve Bayes, and Decision Tree classifier.


### 2.6. Support Vector Machine (SVM) Classifier

SVM is a binary classifier model based on a machine learning algorithm. In this format, a training dataset is classified into two groups so that the division is as wide as possible. The machine learning [46] algorithm generates a plot of hyperplane, which distributes the two groups using the training dataset. From the plot, a set of data is considered nonsensitive if the hyperplane is closer to that data. Thus optimal hyperplane is chosen, which is farthest from the data points. The optimal hyperplane is used to classify the testing dataset.The equation of hyperplane is(5)fx=β0+βTx,where β is the weight vector and β0 is the bias vector. An infinite number of hyperplanes can be obtained by varying the two parameters. The condition for optimal hyperplane is(6)β0+βTx=1,where x represents the support vector, the training set closest to the hyperplane.


### 2.7. k-Nearest Neighbor (kNN) Classifier

kNN is a nonparametric and nonlinear classifier. It is used for relatively larger training sets. The similarities between the training and testing [47] sets are considered for the measure. The class having the majority in the nearby “k” datasets is assigned to the test/unknown dataset. The dataset “nearness” is measured using Euclidean distance given by(7)ED=∑i=1nY1i−Y2i2,where Y1i=y11,y12,…,y1n and Y2i=y21,y22,…,y2n.The value ofk should be a positive integer. In this study, the value of k is 3.


### 2.8. Naïve Bayes (NB) Classifier

This classifier is based on Bayesian theory and is a probabilistic classifier. It is also based on the assumption that each class feature is independent of any other feature. The NB classifier needs less training data.AssumingD as a training set for n number of classes and Y as the attribute vector and associated class labels, the class with the highest posterior probability to which attribute Y belongs to is given by(8)PCi|Y>PCj|Yfor1≤j≤n,j≠i,where(9)PCi|Y=PY|CiPCiPY,by Bayes theorem.HerePCi represents the class probabilities, PY is the prior probability of Y, PCi|Y is the posterior probability, and PY|Ci is the posterior probability of Y conditioned on Ci.


### 2.9. Decision Tree (DT) Classifier

DT is a predictive modelling approach widely used in data mining, statistics, and machine learning algorithms. Tree models are used where the target variable is assigned with continuous values. The Decision Tree leaves represent the class labels, and the branches represent a combination of features that lead to those class labels.


### 2.10. Statistical Parameter

The performances of the four classifiers are evaluated using six parameters, namely, accuracy, specificity, sensitivity, positive predicted value (PPV), negative predicted value (NPV), and Mathews correlation coefficient (MCC) [4, 5]. These parameters are mathematically defined as follows:Accuracy:(10)accuracy%=CCPTPT×100%.Sensitivity:(11)sensitivty%=TPTP+FN×100%.Specificity:(12)specificity%=TNTN+FP×100%.Positive predictive value (PPV):(13)PPV%=TPTP+FP×100%.Negative predictive value (NPV):(14)NPV%=TNTN+FN×100%.Mathews correlation coefficient (MCC):(15)MCC=TP×TN−FP×FNTP+FPTP+FNTN+FPTN+FN,where CCP denotes correct classified patterns, and total patterns are denoted as TPT. TP denotes true positive, FN denotes false negative, FP denotes false positive, and TN denotes a true negative.


## 2.1. Bonn University Dataset

This data is available on the website of the Department of Epileptology, Bonn University, Germany [15]. This is a single-channel data provided solely for research purposes. The record contains five datasets named as set A to set E. Each set of data has 100 samples. The time taken is 23.6 s for 100 EEG segments recorded on the head's surface via a single channel. Five healthy volunteers were chosen for clusters A and B, and the EEG signals were recorded with keen observation, respectively. For cluster C, there are the patients who do not have the epileptic attack at hemisphere hippocampal formation, and, for cluster D, the epileptogenic zone is where the recording took place. Set E of the EEG signal was recorded, while the patients were experiencing an epileptic attack. A 12-bit A/D converter with a 173.61 Hz sampling frequency is used for digitizing the data. Therefore, each EEG segment is found to contain 4096 points of sampling. The graphs of EEG signals are plotted and presented in Figure 2.Figure 2
Sample EEG signals from datasets A to E.


## 2.2. Real-Time Clinical Dataset

Real-time multichannel clinical data were acquired from six healthy patients and six epileptic patients from Senthil Multispecialty Hospital in Erode, Tamil Nadu, India. The data was 21-channel EEG data. The epileptic signal was recorded during the preseizure period. The sampling frequency is maintained at 256 Hz.


## 2.3. Preprocessing of Signal Using DWT

The Fast Fourier Transform (FFT) for frequency-domain analysis is applied in many applications. But, for biomedical signals such as EEG, the usage of FFT is restricted, since they include uneven patterns and are also nonstationary. The only time-domain analysis will not yield information regarding the frequency of the pattern. Therefore, the time-frequency analysis is applied for preprocessing the signal. Discrete wavelet transform is a widely used time-frequency analyzer for biomedical signals as it prefers variable window sizes. The DWT algorithm uses low-pass (LP) and high-pass (HP) quadrature mirror filters.The input signal is routed through the low- and high-pass filters to produce the approximate (A1) coefficient and their outputs detailed (D1) coefficient. The result obtained from the high-pass filter is provided to another filter of quadrature mirror type, and the process is repeated to determine the coefficients of the subsequent level. Every decomposition process leads to doubling the frequency resolution because of filtering and halved through downsampling.This work uses Daubechies order-4 wavelet function due to its orthogonal features and filtering efficiency. The necessary statistical features are acquired from the subbands frequency.


## 2.4. Statistical Features from Discrete Wavelet Transform (DWT) Coefficients

The following features were extracted.Mean Average Value (MAV). MAV relates to the information frequency of the signal and can be determined from the following equation:(1)MAV=1N∑i=1Nxi.Maximum Coefficient. The maximum coefficient measures the maximum frequency value for a given sample.Minimum Coefficient. The minimum coefficient measures the minimum value of frequency for a given sample.Standard Deviation (STD). Standard deviation relates to the proportionate changes in the frequency signal and is given by the following equation:(2)SD=1N−1∑i=1Nxi−μ.2Average Power. Average power represents information about the frequency content of the signal and is determined by the following equation:(3)AVP=1N∑i=1Nxi.2Shannon Entropy. The expression of Shannon entropy offers an easy mode to determine the average number of bits necessary to encode a string of symbols. It is given by the following equation:(4)HX=−∑i=0N−1pilog2pi.Approximate Entropy (ApEn). The extent of regularity and unpredictability of fluctuations over time-series data can be quantified by approximate entropy, ApEn (m, r, N). The parameters m and r are the run length and tolerance window input parameters, respectively. The parameter N is the number of points of the time series.


## 2.5. K-Fold Cross-Validation

10-fold cross-validation is used in this study to get reliable results. The original sample is divided into 10 subsamples. The 9 subsamples are used as training datasets, and one subsample is used as testing dataset. It is then repeated 10 times. In this way, each dataset is trained 9 times and tested one time. The 10 results obtained are then averaged to give a single estimated accuracy. This validation is applied to SVM, KNN, naïve Bayes, and Decision Tree classifier.


## 2.6. Support Vector Machine (SVM) Classifier

SVM is a binary classifier model based on a machine learning algorithm. In this format, a training dataset is classified into two groups so that the division is as wide as possible. The machine learning [46] algorithm generates a plot of hyperplane, which distributes the two groups using the training dataset. From the plot, a set of data is considered nonsensitive if the hyperplane is closer to that data. Thus optimal hyperplane is chosen, which is farthest from the data points. The optimal hyperplane is used to classify the testing dataset.The equation of hyperplane is(5)fx=β0+βTx,where β is the weight vector and β0 is the bias vector. An infinite number of hyperplanes can be obtained by varying the two parameters. The condition for optimal hyperplane is(6)β0+βTx=1,where x represents the support vector, the training set closest to the hyperplane.


## 2.7. k-Nearest Neighbor (kNN) Classifier

kNN is a nonparametric and nonlinear classifier. It is used for relatively larger training sets. The similarities between the training and testing [47] sets are considered for the measure. The class having the majority in the nearby “k” datasets is assigned to the test/unknown dataset. The dataset “nearness” is measured using Euclidean distance given by(7)ED=∑i=1nY1i−Y2i2,where Y1i=y11,y12,…,y1n and Y2i=y21,y22,…,y2n.The value ofk should be a positive integer. In this study, the value of k is 3.


## 2.8. Naïve Bayes (NB) Classifier

This classifier is based on Bayesian theory and is a probabilistic classifier. It is also based on the assumption that each class feature is independent of any other feature. The NB classifier needs less training data.AssumingD as a training set for n number of classes and Y as the attribute vector and associated class labels, the class with the highest posterior probability to which attribute Y belongs to is given by(8)PCi|Y>PCj|Yfor1≤j≤n,j≠i,where(9)PCi|Y=PY|CiPCiPY,by Bayes theorem.HerePCi represents the class probabilities, PY is the prior probability of Y, PCi|Y is the posterior probability, and PY|Ci is the posterior probability of Y conditioned on Ci.


## 2.9. Decision Tree (DT) Classifier

DT is a predictive modelling approach widely used in data mining, statistics, and machine learning algorithms. Tree models are used where the target variable is assigned with continuous values. The Decision Tree leaves represent the class labels, and the branches represent a combination of features that lead to those class labels.


## 2.10. Statistical Parameter

The performances of the four classifiers are evaluated using six parameters, namely, accuracy, specificity, sensitivity, positive predicted value (PPV), negative predicted value (NPV), and Mathews correlation coefficient (MCC) [4, 5]. These parameters are mathematically defined as follows:Accuracy:(10)accuracy%=CCPTPT×100%.Sensitivity:(11)sensitivty%=TPTP+FN×100%.Specificity:(12)specificity%=TNTN+FP×100%.Positive predictive value (PPV):(13)PPV%=TPTP+FP×100%.Negative predictive value (NPV):(14)NPV%=TNTN+FN×100%.Mathews correlation coefficient (MCC):(15)MCC=TP×TN−FP×FNTP+FPTP+FNTN+FPTN+FN,where CCP denotes correct classified patterns, and total patterns are denoted as TPT. TP denotes true positive, FN denotes false negative, FP denotes false positive, and TN denotes a true negative.


## 3. Results and Discussions

### 3.1. Results from the University of Bonn Dataset

The datasets from sets A, B, C, D, and E are decomposed into different subbands. The different frequency subbands are D1 (43.4–86.8 Hz), D2 (21.7–43.4 Hz), D3 (10.85–21.7 Hz), D4 (5.42–10.85 Hz), D5 (2.70–5.43 Hz), and A5 (0–2.70 Hz). Since the most useful information is available in subbands D3–D5 and A5, only they are considered [10]. Features such as Mean Absolute Value, maximum coefficients, minimum coefficients, Standard Deviation, average power, Shannon entropy, and approximate entropy are derived from subbands D3, D4, D5, and A5 for five datasets A, B, C, D, and E.Sixteen cases are considered, including 2 class classifications and 3 class classifications on data readily available from the University of Bonn, Germany. 7 features were obtained in the study. However, the number of features generated for each EEG signal should be 4 x 7 = 28. For every 100 signals of datasets A to E, 28 features were generated. In each case, 10-fold cross-validation is applied, dividing whole data into 10 equal parts, where 9 data parts are used for training against 1 used for testing purposes. The SVM, KNN, naïve Bayes, and Decision Tree classifiers are then fed the following training and testing sets, and performance measures such as Accuracy, Specificity, Sensitivity, Positive Predicted Value, Negative Predicted Value, and Mathews Correlation coefficients are obtained.From Table1, we can observe the result for 16 different classifications for the SVM classifier. For A-E classification, estimated entropy from the D5 frequency subband provides the highest level of accuracy of 100%. Similarly, for B-E classification, minimum coefficients extracted from D3, D4, and A5 frequency subbands give only 90%, 91%, and 92% accuracy, respectively, but approximate entropy extracted from D5 frequency subband gives the highest accuracy of 99.5%. For C-E classification, in D4 frequency subband, maximum coefficient gives the highest accuracy of 98%. For D-E classification, in the D3 frequency subband, MAV gives the best accuracy of 96%. For AB-E classification, in the D5 frequency subband, approximate entropy provides the highest level of accuracy of 99.67%. For AC-E classification, in the D5 frequency subband, MAV provides the highest level of accuracy of 98.66%. For AD-E classification, in the D3 frequency subband, MAV provides the highest level of accuracy of 98%. For BC-E classification, in the D3 frequency subband, the minimum coefficient gives an accuracy of 92.6%. For BD-E classification, in the D5 frequency subband, MAV provides the highest level of accuracy of 96.3%. For CD-E classification, in the D3 frequency subband, MAV gives the highest accuracy of 98%. For ABC-E classification, in the D5 frequency subband, MAV gives the highest accuracy of 99%. For ABD-E classification, in the D5 frequency subband, MAV gives the highest accuracy of 97%. For ACD-E classification, in the D3 frequency subband, MAV gives the highest accuracy of 98.25%. For BCD-E, in the D5 frequency subband, MAV gives the highest accuracy of 97%. For ABCD-E classification, in the D3 frequency subband, the minimum coefficient gives the best accuracy of 100%. For AB-CD classification, in the D3 frequency subband, approximate entropy gives an accuracy of 80%. Moreover, we can infer that the feature that provides SVM the best result is the Mean Absolute Value. The highest accuracy is achieved for A-E and ABCD-E classification, which is 100%. The lowest classification accuracy is achieved for AB-CD classification.Table 1
SVM results for University of Bonn dataset.
Sets (cases)Frequency subbandFeatureClassifier accuracy (%)Sensitivity (%)Specificity (%)PPVNPVMCCA-ED3Max. coeff.979410010094.840.94D4Max. coeff.98.59710010097.20.97D5Ap. entropy1001001001001001A5Min. coeff.94.5909999.0991.510.89B-ED3Min. coeff.90829897.8885.190.81D4Min. coeff.91859796.7287.780.83D5Ap. entropy99.59910010099.090.99A5Min. coeff.92889695.7289.530.81C-ED3MAV97.5969999.0996.360.95D4Max. coeff.98979999.0997.420.96D5Ap. entropy98979999.0997.420.96A5Max. coeff.79.5659492.4674.460.62D-ED3MAV96949898.1894.690.92D4MAV94919797.2792.070.88D5Ap. entropy93.5979091.5497.180.87A5Min. coeff.75.5668583.8772.610.53AB-ED3Max. coeff.928595.591.1892.880.82D4Min. coeff.94.668997.597.1894.940.88D5Ap. entropy99.6710099.599.091000.99A5Min. coeff95.3909896.2795.30.89AC-ED3MAV98.339699.599.0998.130.96D4Min. coeff.94.668997.595.294.90.88D5MAV98.669799.599.0998.570.97A5Min. coeff.87838980.0291.570.71AD-ED3MAV98969998.1898.090.95D4MAV969397.595.8796.80.91D5MAV96.66969794.3698.10.92A5Ap. entropy84.666793.584.6885.30.64BC-ED3Min. coeff.92.6869692.0293.40.83D4MAV93919498.195.60.84D5MAV98.69799.599.198.540.97A5Min. coeff.86.6809080900.87BD-ED3Min. coeff.91.33869489.593.420.81D4MAV92.66909488.995.110.84D5MAV96.39696.593.6897.960.92A5Min. Coeff.82.667387.578.1787.150.62CD-ED3MAV989798.597.2798.610.95D4MAV96.69398.597.0996.60.92D5MAV96.3959794.4297.50.91A5STD82.3619378.7583.20.57ABC-ED3Max. Coeff.94.59195.688.897.10.86D4MAV96.69398.597.196.60.92D5MAV999799.699.199.10.97A5Min. Coeff.88.58589.674.5950.71ABD-ED3Max. Coeff92.58794.3384.0195.60.80D4Shannon ent.95.758310010094.740.88D5MAV97979791.69990.92A5Min. Coeff.87.758289.6673.193.820.69ACD-ED3MAV98.25969997.198.60.95D4STD97.5969894.698.70.93D5MAV97.259697.6693.698.60.93A5STD86.25639479.2888.60.61BCD-ED3Min. Coeff.92.75839694.6089.550.81D4Shannon ent.94.58099.3393.8797.870.85D5MAV979697.3398.6698.60.92A5STD85.756393.3388.4388.430.60ABCD-ED3Min. Coeff.1001001001001001D4Shannon ent.87.45196.579.988.90.56D5MAV97.49797.590.8799.250.922A5Shannon ent.88.2579679.290.000.60AB-CDD3Approx. Ent.8076.583.583.0978.50.60D4Approx. Ent.64.5428778.660.20.33D5Min. Coeff.72.5717473.972.020.45A5Approx. Ent.69.756871.570.769.60.391Ap. entropy: approximate entropy; Max. coeff.: maximum coefficient; MAV: mean absolute value; Approx. entropy: approximate entropy.From Table2, we can observe the result for 17 different classifications for the kNN classifier. For A-E classification, approximate entropy from the D5 frequency subband gives the highest accuracy of 100%. For B-E classification, maximum and minimum coefficients extracted from D3, D4, and A5 frequency subbands give poor results, but MAV extracted from D5 gives the best result of 100%. For C-E classification, in the D3, D4, and D5 frequency subbands, STD gives the highest accuracy of 98%, and in the A5 frequency subband, ApEp gives the accuracy of 79.5%. For D-E classification, in the D3 frequency subband, MAV gives the best accuracy of 97%. For AB-E classification, in the D5 frequency subband, MAV gives the highest accuracy of 100%. For AC-E classification, in the D3 frequency subband, STD gives the highest accuracy of 98.7%. For AD-E classification, in the D3 frequency subband, MAV gives the highest accuracy of 98%. For BC-E classification, in the D5 frequency subband, MAV gives a better result. The highest accuracy achieved for A-E, B-E, AB-E, and ABCD-E classification is 100%. The lowest classification accuracy is achieved for AB-CD and AB-CD-E classification, with the highest accuracy of 98.6%. For BD-E classification, in the D5 frequency subband, Shannon entropy gives the highest accuracy of 95.33%. For CD-E classification, in the D3 frequency subband, MAV gives the highest accuracy of 97.66%. For ABC-E classification, in the D5 frequency subband, MAV gives the highest accuracy of 99%. For ABD-E classification, in the D5 frequency subband, MAV provides the highest level of accuracy of 96.5%. For ACD-E classification, in the D3 frequency subband, Shannon entropy provides the highest level of accuracy of 98%. For BCD-E classification, in the D5 frequency subband, MAV provides the highest level of accuracy of 97%. For ABCD-E classification, in the D3 frequency subband, the minimum coefficient gives the best accuracy of 100%. For AB-CD classification, in the D5 frequency subband, MAV gives the best accuracy of 75%. For AB-CD-E classification, in the D5 frequency subband, Shannon entropy gives the best accuracy of 75%. Moreover, we can infer that Mean Absolute Value and Shannon entropy are the features that offer the best result for kNN.Table 2
kNN results for University of Bonn dataset.
Sets (cases)Frequency subbandFeatureClassifier accuracy (%)Sensitivity (%)Specificity (%)PPVNPVMCCA-ED3Max. coeff.979410010094.840.94D4Min. coeff.98.59710010097.270.97D5Ap. entropy1001001001001001A5Min. coeff.94.5909999.0991.510.89B-ED3Max. coeff.92.5909595.5591.360.85D4Min. coeff.93.5919696.0792.560.87D5MAV1001001001001001A5Min. coeff.93.5919696.0992.110.87C-ED3STD98989898.1898.10.96D4STD98989898.198.10.96D5MAV98979999.197.30.96A5Approx. ent79.5758482.877.60.59D-ED3MAV97979797.197.10.94D4Shannon ent.95969494.496.10.90D5MAV93.5949393.894.50.87A5Max. coeff.73727475.273.50.47AB-ED3Max. coeff.95.68899.598.894.40.9D4Max. coeff.93.69294.590.8960.86D5MAV1001001001001001A5Min. coeff.93.6879794.394.10.86AC-ED3STD98.7989998.199.10.97D4Max. coeff.93.79294.59195.90.86D5MAV98.79799.599.198.60.97A5Ap. entropy85719386.387.020.68AD-ED3MAV989798.597.1898.540.95D4MAV95.39396.593.7396.610.89D5MAV95.79496.593.5997.030.90A5Min. coeff.80.76787.573.4284.390.56BC-ED3Max. coeff.95.33889998.0994.590.89D4MAV94889793.9594.320.84D5MAV98.669799.599.0998.610.97A5Ap. entropy85.337391.582.4787.720.67BD-ED3Max. coeff.93.33889692.3294.220.85D4MAV94.66889895.7294.410.88D5Shannon ent.95.339595.591.4397.570.89A5Min. coeff.817086.574.0285.320.57CD-ED3MAV97.669698.597.3398.070.94D4MAV94.66929692.7892.780.88D5MAV95.33949692.5492.540.89A5Ap. entropy806587.574.0383.330.54ABC-ED3Max. coeff.94.58998.3395.7896.570.89D4MAV94.66929692.7896.150.88D5MAV999799.6699.0999.050.97A5Min. coeff88.257094.3380.6590.530.67ABD-ED3Min. coeff.91.758095.6687.1893.560.78D4MAV95.758898.3395.7896.250.88D5MAV96.59497.3392.2998.060.90A5Ap. entropy86.256892.3377.0189.890.63ACD-ED3Shannon ent.989798.3395.2798.980.94D4Shannon ent.97.259697.6694.2098.70.93D5STD96.259397.3392.8297.730.90A5Ap. entropy85.56592.3374.7688.970.60BCD-ED3Max. coeff.93.58496.6689.6394.830.82D4STD94.258597.3392.1695.150.84D5MAV96.59497.3392.8798.080.91A5Ap. entropy85.56492.6676.4788.620.60ABCD-ED3Min. Coeff.1001001001001001D4Avg power88.46095.576.8590.740.60D5MAV97939892.7298.30.90A5Avg power885995.2575.8490.390.59AB-CDD3Ap. entropy82.5709593.0976.560.67D4MAV59.7556.56360.959.090.19D5MAV7559.590.586.5269.210.52A5Ap. entropy73.255195.592.7966.590.52AB-CD-ED3MAV73.87473.7542.4791.870.40D4MAV64.2855934.2194.170.35D5Shannon ent.75957044.8298.350.52A5Ap. entropy66.46566.7533.2388.370.26Ap. entropy: approximate entropy; Min. coeff.: minimum coefficient, MAV: mean absolute value; Approx. entropy: approximate entropy; Shannon ent.: Shannon entropy; STD: standard deviation.From Table3, we can observe the results for 16 different classifications for the naïve Bayes classifier. For A-E classification, MAV from the D5 frequency subband gives the highest accuracy of 100%. For B-E classification, the minimum coefficient extracted from D3, average power extracted from D4, and ApEp extracted from A5 frequency subband give poor results. Still, MAV extracted from D5 gives the best result of 99.5%. For C-E classification, in D3, D4, D5, and A5 frequency subbands, the STD has been extracted, and the highest accuracy of 100% has been attained only in the D5 frequency subband. For D-E classification, in the D3 frequency subband, MAV gives the best accuracy of 97.5%. For AB-E classification, in the D5 frequency subband, STD provides the highest level of accuracy of 99.7%. For AC-E classification, in the D3 frequency subband, STD provides the highest level of accuracy of 98.7%. For AD-E classification, in the D3 frequency subband, MAV provides the highest level of accuracy of 98%. For BC-E classification, in the D5 frequency subband, ApEp provides the highest level of accuracy of 98.7%. For BD-E classification, in the D5 frequency subband, ApEp gives the maximum accuracy of 96%. For CD-E classification, in the D3 and D4 frequency subbands, MAV gives the maximum accuracy of 97.7%. For ABC-E classification, in the D5 frequency subband, MAV gives the maximum accuracy of 99%. For ABD-E classification, in the D5 frequency subband, ApEp gives the maximum accuracy of 96.25%. For ACD-E classification, in the D5 frequency subband, ApEp gives the maximum accuracy of 97.6%. For ABCD-E classification, in D3 frequency subband, the minimum coefficient gives the best accuracy of 97.4%. For AB-CD classification, in the D3 frequency subband, approximate entropy gives the maximum accuracy of 82.5%. Moreover, from Table 3, we can infer that the attributes which show the best result for naïve Bayes are Mean Absolute Value and approximate entropy. The maximum accuracy is achieved for A-E and C-E, 100%. The lowest accuracy is achieved for AB-CD classification.Table 3
Naïve Bayes results for University of Bonn dataset.
Sets (cases)Frequency subbandFeatureClassifier accuracy (%)Sensitivity (%)Specificity (%)PPVNPVMCCA-ED3STD99.59910010099.090.99D4MAV99.59910010099.090.99D5MAV1001001001001001A5Min. coeff.93.5919696.3392.350.87B-ED3Min. coeff.90.583989886.070.82D4Avg. power92.5869998.8889.050.86D5MAV99.51009999.091000.99A5Ap. entropy92879797.0989.080.85C-ED3STD1001001001001001D4STD98989898.1898.180.96D5STD98979999.0999.090.96A5STD79.5629794.9072.960.63D-ED3MAV97.5979898.1897.270.95D4MAV94919797.1892.980.88D5Ap. entropy94979192.0397.180.88A5Min. coeff.75609088.8670.340.54AB-ED3Min. coeff.93859794.6293.080.84D4MAV94.339096.593.5895.220.87D5STD99.710099.599.091000.99A5Min. coeff.94869896.2293.520.86AC-ED3STD98.7989998.1899.040.97D4MAV94.39096.593.5895.220.87D5Ap. ent.98.7989998.199.020.97A5STD86.76597.593.3584.880.69AD-ED3MAV98969998.3398.090.95D4MAV96.3939896.2796.710.92D5Ap. ent.95.7979591.5498.540.91A5Min. coeff.82.7609484.3882.860.59BC-ED3Min. coeff.93.38398.597.0792.30.85D4MAV94.7909793.9195.40.88D5Ap. ent.98.79799.599.1098.50.97A5Max. coeff.80.36497.593.2584.70.68BD-ED3Max. coeff.90749895.588.560.77D4MAV93.38597.594.7593.040.85D5Ap. ent.969795.592.4398.430.91A5Min. coeff.83.3609586.4683.170.61CD-ED3MAV97.7979896.2798.540.94D4MAV97.79398.596.7296.730.92D5Ap. ent.969795.592.0998.520.91A5Min. coeff.82.3559665.8281.880.59ABC-ED3Min. coeff.94.58597.6794.0295.330.85D4MAV96.679398.596.7296.730.92D5MAV999899.3398.1899.350.97A5Max. coeff.89.756498.3393.6789.470.70ABD-ED3Min. coeff.93.25799893.4193.420.81D4Avg power95.75929792.5297.390.89D5Ap. ent.96.259397.392.6697.710.90A5Min. Coeff.87.256096.384.7688.050.63ACD-ED3MAV98.25969997.2798.720.95D4STD97.259498.395.4298.100.92D5Ap. ent.97979791.8798.970.92A5Min. coeff.87.255797.386.8887.480.63BCD-ED3Min. coeff.93789892.6793.230.80D4MAV958897.391.8496.110.86D5Ap. ent.97979791.8798.990.92A5Min. coeff.87.258996.6787.8787.750.90ABCD-ED3Min. coeff.97.48710010096.890.91D4Min. coeff.89.86097.2585.5190.810.65D5Ap. ent.97.69797.2591.899.240.92A5Min. coeff.906097.586.0990.780.66AB-CDD3Ap. ent.82.5709593.0976.560.67D4Ap. ent.64.5428778.6860.230.33D5MAV7453.594.590.6267.320.52A5MAV7453.594.590.6267.320.52Ap. entropy: approximate entropy; MAV: mean absolute value; STD: standard deviation.From Table4, we can observe the results for 16 different classifications for the Decision Tree classifier. For A-E classification, MAV from the D5 frequency subband gives the highest accuracy of 100%. For B-E classification, the maximum coefficient extracted from D3 and D4 and STD extracted from A5 frequency subband give poor results, but MAV extracted from D5 give the best result of 100%. For C-E classification, Shannon entropy extracted from D4 gives the highest accuracy of 98. For D-E classification, in the D3 frequency subband, MAV gives the best accuracy of 96.5%. For AB-E classification, in the D5 frequency subband, MAV gives the maximum accuracy of 100%. For AC-E classification, in the D3 frequency subband, STD provides the highest level of accuracy of 98.67%. In the D5 frequency subband, ApEp provides the highest level of accuracy of 98.67%. For AD-E classification, in the D3 frequency subband, MAV provides the highest accuracy of 98%. For BC-E classification, in the D5 frequency subband, MAV provides the highest level of accuracy of 98.33%. For BD-E classification, in the D5 frequency subband, MAV provides the highest level of accuracy of 94.67%. For CD-E classification, in the D3 frequency subband, MAV provides the highest level of accuracy of 96.67%. For ABC-E classification, in the D3 frequency subband, the minimum coefficient gives the best accuracy of 94.5%. For ABD-E classification, in the D4 frequency subband, the maximum coefficient gives the highest accuracy of 95.75%. For ACD-E classification, in the D3 frequency subband, MAV gives the maximum accuracy of 98%. For BCD-E classification, in the D5 frequency subband, ApEp gives the maximum accuracy of 96.25%. For ABCD-E classification, in the D3 frequency subband, the minimum coefficient gives the best accuracy of 100%. For AB-CD classification, in the D3 frequency subband, MAV gives the maximum accuracy of 79.75%. Moreover, we can infer that the attributes that show the Decision Tree's best result are Mean Absolute Value and Shannon entropy. The highest accuracy is achieved for A-E, B-E, AB-E, and ABCD-E classifications, which is 100%. The lowest classification is performed for AB-CD classification.Table 4
Decision Tree results for University of Bonn dataset.
Sets (cases)Frequency subbandFeatureClassifier accuracy (%)Sensitivity (%)Specificity (%)PPVNPVMCCA-ED3Avg. power999910010099.090.99D4MAV99.59910099.0999.090.99D5MAV1001001001001001A5Min. coeff.92.5929393.5492.380.85B-ED3Max. coeff.91.5889595.4591.210.84D4Max. coeff.90.5899292.489.80.81D5MAV1001001001001001A5STD89.5918889.2392.170.8C-ED3STD98989898.1898.180.96D4Shannon ent.98989898.3398.180.96D5MAV97.5979899.0997.270.96A5Max. coeff.80778382.4779.250.6D-ED3MAV96.5979696.2797.180.93D4MAV92.5939292.8793.160.85D5MAV91.5919293.0991.910.83A5Max. coeff.69706869.3569.80.38AB-ED3Max. coeff.92.67889591.0994.350.84D4MAV94.33879896.594.110.87D5MAV1001001001001001A5Min. coeff.928794.589.2893.830.82AC-ED3STD98.67989998.1899.040.97D4MAV94.339096.593.5895.220.87D5Ap. ent.98.67989998.199.020.97A5STD86.678997.593.3584.880.69AD-ED3MAV989798.597.1898.540.95D4MAV94.39295.591.4796.150.87D5Ap. ent.94.679196.59395.70.88A5Min. coeff.81.33728673.6486.810.59BC-ED3Max. coeff.93.67879795.193.850.86D4MAV93.3889693.2894.390.85D5MAV98.33979998.1898.570.96A5Ap. ent.81.67718776.0285.680.59BD-ED3Max. coeff.88.38291.584.3491.310.74D4MAV91.678893.587.9494.080.81D5MAV94.67929693.0996.330.88A5Min. coeff.80.337085.573.4185.460.56CD-ED3MAV96.679796.594.1198.540.93D4MAV949394.590.1896.640.87D5Ap. ent.94929590.7596.370.86A5Min. coeff.76.666582.565.8282.730.47ABC-ED3Min. coeff.94.5879790.8695.970.85D4MAV949394.590.1896.650.87D5MAV98.59699.398.1898.720.96A5Max. coeff.89.756899.187.3290.430.7ABD-ED3Min. coeff.92.58495.3386.3294.760.8D4Max. coeff.95.759097.6693.6196.750.8D5Ap. ent.95.25909791.6896.850.87A5Min. coeff.85.757290.372.1890.860.62ACD-ED3MAV989798.3395.7599.050.95D4STD96.75969791.8198.60.91D5Ap. ent.95.5919792.1897.130.88A5MAV82.256687.6663.8588.750.53BCD-ED3Min. coeff.91.258593.3381.7294.930.77D4Avg. power94.258597.3391.7795.170.84D5Ap. ent.96.259596.691.298.350.9A5STD82.756389.336888.150.53ABCD-ED3Min. coeff.1001001001001001D4Min. coeff.85.8659164.7291.290.55D5Ap. ent.96.89597.2590.9398.750.9A5Avg. power85.2589263.4389.860.51AB-CDD3MAV79.7574.58584.2377.090.63D4Avg. power57.7556.55958.1557.950.15D5Min. coeff.73.5687976.5972.880.48A5Avg. power74529693.6267.060.53


### 3.2. Results from Clinical Real-Time Dataset

A real-time clinical dataset from a healthy signal is distinguished from an epileptic patient signal. We have applied DWT and generated the features for different subbands. This work has considered all the 21-channel datasets obtained for 24 sec. The features were generated from subbands D3–D5 and A5, and these features were used for classification [15, 16, 18]. But the better result has been obtained only for the average power feature derived from the D5 subband using the SVM classifier. Table 5 shows the results. Here, we applied 10-fold cross-validation for classification, since most of the useful information [48] required for distinguishing healthy and seizure patient signals might be in subband D5.Table 5
Results for real-time clinical datasets using average power feature for different classifiers.
Sets (cases)ClassifierClassifier accuracy (%)Sensitivity (%)Specificity (%)PPVNPVMCCHealthy versus epileptic patientsSVM91.66783.3310010087.50.85kNN755010010067.50.58Naïve Bayes75100507500Decision Tree5001000500SVM: support vector machine.


## 3.1. Results from the University of Bonn Dataset

The datasets from sets A, B, C, D, and E are decomposed into different subbands. The different frequency subbands are D1 (43.4–86.8 Hz), D2 (21.7–43.4 Hz), D3 (10.85–21.7 Hz), D4 (5.42–10.85 Hz), D5 (2.70–5.43 Hz), and A5 (0–2.70 Hz). Since the most useful information is available in subbands D3–D5 and A5, only they are considered [10]. Features such as Mean Absolute Value, maximum coefficients, minimum coefficients, Standard Deviation, average power, Shannon entropy, and approximate entropy are derived from subbands D3, D4, D5, and A5 for five datasets A, B, C, D, and E.Sixteen cases are considered, including 2 class classifications and 3 class classifications on data readily available from the University of Bonn, Germany. 7 features were obtained in the study. However, the number of features generated for each EEG signal should be 4 x 7 = 28. For every 100 signals of datasets A to E, 28 features were generated. In each case, 10-fold cross-validation is applied, dividing whole data into 10 equal parts, where 9 data parts are used for training against 1 used for testing purposes. The SVM, KNN, naïve Bayes, and Decision Tree classifiers are then fed the following training and testing sets, and performance measures such as Accuracy, Specificity, Sensitivity, Positive Predicted Value, Negative Predicted Value, and Mathews Correlation coefficients are obtained.From Table1, we can observe the result for 16 different classifications for the SVM classifier. For A-E classification, estimated entropy from the D5 frequency subband provides the highest level of accuracy of 100%. Similarly, for B-E classification, minimum coefficients extracted from D3, D4, and A5 frequency subbands give only 90%, 91%, and 92% accuracy, respectively, but approximate entropy extracted from D5 frequency subband gives the highest accuracy of 99.5%. For C-E classification, in D4 frequency subband, maximum coefficient gives the highest accuracy of 98%. For D-E classification, in the D3 frequency subband, MAV gives the best accuracy of 96%. For AB-E classification, in the D5 frequency subband, approximate entropy provides the highest level of accuracy of 99.67%. For AC-E classification, in the D5 frequency subband, MAV provides the highest level of accuracy of 98.66%. For AD-E classification, in the D3 frequency subband, MAV provides the highest level of accuracy of 98%. For BC-E classification, in the D3 frequency subband, the minimum coefficient gives an accuracy of 92.6%. For BD-E classification, in the D5 frequency subband, MAV provides the highest level of accuracy of 96.3%. For CD-E classification, in the D3 frequency subband, MAV gives the highest accuracy of 98%. For ABC-E classification, in the D5 frequency subband, MAV gives the highest accuracy of 99%. For ABD-E classification, in the D5 frequency subband, MAV gives the highest accuracy of 97%. For ACD-E classification, in the D3 frequency subband, MAV gives the highest accuracy of 98.25%. For BCD-E, in the D5 frequency subband, MAV gives the highest accuracy of 97%. For ABCD-E classification, in the D3 frequency subband, the minimum coefficient gives the best accuracy of 100%. For AB-CD classification, in the D3 frequency subband, approximate entropy gives an accuracy of 80%. Moreover, we can infer that the feature that provides SVM the best result is the Mean Absolute Value. The highest accuracy is achieved for A-E and ABCD-E classification, which is 100%. The lowest classification accuracy is achieved for AB-CD classification.Table 1
SVM results for University of Bonn dataset.
Sets (cases)Frequency subbandFeatureClassifier accuracy (%)Sensitivity (%)Specificity (%)PPVNPVMCCA-ED3Max. coeff.979410010094.840.94D4Max. coeff.98.59710010097.20.97D5Ap. entropy1001001001001001A5Min. coeff.94.5909999.0991.510.89B-ED3Min. coeff.90829897.8885.190.81D4Min. coeff.91859796.7287.780.83D5Ap. entropy99.59910010099.090.99A5Min. coeff.92889695.7289.530.81C-ED3MAV97.5969999.0996.360.95D4Max. coeff.98979999.0997.420.96D5Ap. entropy98979999.0997.420.96A5Max. coeff.79.5659492.4674.460.62D-ED3MAV96949898.1894.690.92D4MAV94919797.2792.070.88D5Ap. entropy93.5979091.5497.180.87A5Min. coeff.75.5668583.8772.610.53AB-ED3Max. coeff.928595.591.1892.880.82D4Min. coeff.94.668997.597.1894.940.88D5Ap. entropy99.6710099.599.091000.99A5Min. coeff95.3909896.2795.30.89AC-ED3MAV98.339699.599.0998.130.96D4Min. coeff.94.668997.595.294.90.88D5MAV98.669799.599.0998.570.97A5Min. coeff.87838980.0291.570.71AD-ED3MAV98969998.1898.090.95D4MAV969397.595.8796.80.91D5MAV96.66969794.3698.10.92A5Ap. entropy84.666793.584.6885.30.64BC-ED3Min. coeff.92.6869692.0293.40.83D4MAV93919498.195.60.84D5MAV98.69799.599.198.540.97A5Min. coeff.86.6809080900.87BD-ED3Min. coeff.91.33869489.593.420.81D4MAV92.66909488.995.110.84D5MAV96.39696.593.6897.960.92A5Min. Coeff.82.667387.578.1787.150.62CD-ED3MAV989798.597.2798.610.95D4MAV96.69398.597.0996.60.92D5MAV96.3959794.4297.50.91A5STD82.3619378.7583.20.57ABC-ED3Max. Coeff.94.59195.688.897.10.86D4MAV96.69398.597.196.60.92D5MAV999799.699.199.10.97A5Min. Coeff.88.58589.674.5950.71ABD-ED3Max. Coeff92.58794.3384.0195.60.80D4Shannon ent.95.758310010094.740.88D5MAV97979791.69990.92A5Min. Coeff.87.758289.6673.193.820.69ACD-ED3MAV98.25969997.198.60.95D4STD97.5969894.698.70.93D5MAV97.259697.6693.698.60.93A5STD86.25639479.2888.60.61BCD-ED3Min. Coeff.92.75839694.6089.550.81D4Shannon ent.94.58099.3393.8797.870.85D5MAV979697.3398.6698.60.92A5STD85.756393.3388.4388.430.60ABCD-ED3Min. Coeff.1001001001001001D4Shannon ent.87.45196.579.988.90.56D5MAV97.49797.590.8799.250.922A5Shannon ent.88.2579679.290.000.60AB-CDD3Approx. Ent.8076.583.583.0978.50.60D4Approx. Ent.64.5428778.660.20.33D5Min. Coeff.72.5717473.972.020.45A5Approx. Ent.69.756871.570.769.60.391Ap. entropy: approximate entropy; Max. coeff.: maximum coefficient; MAV: mean absolute value; Approx. entropy: approximate entropy.From Table2, we can observe the result for 17 different classifications for the kNN classifier. For A-E classification, approximate entropy from the D5 frequency subband gives the highest accuracy of 100%. For B-E classification, maximum and minimum coefficients extracted from D3, D4, and A5 frequency subbands give poor results, but MAV extracted from D5 gives the best result of 100%. For C-E classification, in the D3, D4, and D5 frequency subbands, STD gives the highest accuracy of 98%, and in the A5 frequency subband, ApEp gives the accuracy of 79.5%. For D-E classification, in the D3 frequency subband, MAV gives the best accuracy of 97%. For AB-E classification, in the D5 frequency subband, MAV gives the highest accuracy of 100%. For AC-E classification, in the D3 frequency subband, STD gives the highest accuracy of 98.7%. For AD-E classification, in the D3 frequency subband, MAV gives the highest accuracy of 98%. For BC-E classification, in the D5 frequency subband, MAV gives a better result. The highest accuracy achieved for A-E, B-E, AB-E, and ABCD-E classification is 100%. The lowest classification accuracy is achieved for AB-CD and AB-CD-E classification, with the highest accuracy of 98.6%. For BD-E classification, in the D5 frequency subband, Shannon entropy gives the highest accuracy of 95.33%. For CD-E classification, in the D3 frequency subband, MAV gives the highest accuracy of 97.66%. For ABC-E classification, in the D5 frequency subband, MAV gives the highest accuracy of 99%. For ABD-E classification, in the D5 frequency subband, MAV provides the highest level of accuracy of 96.5%. For ACD-E classification, in the D3 frequency subband, Shannon entropy provides the highest level of accuracy of 98%. For BCD-E classification, in the D5 frequency subband, MAV provides the highest level of accuracy of 97%. For ABCD-E classification, in the D3 frequency subband, the minimum coefficient gives the best accuracy of 100%. For AB-CD classification, in the D5 frequency subband, MAV gives the best accuracy of 75%. For AB-CD-E classification, in the D5 frequency subband, Shannon entropy gives the best accuracy of 75%. Moreover, we can infer that Mean Absolute Value and Shannon entropy are the features that offer the best result for kNN.Table 2
kNN results for University of Bonn dataset.
Sets (cases)Frequency subbandFeatureClassifier accuracy (%)Sensitivity (%)Specificity (%)PPVNPVMCCA-ED3Max. coeff.979410010094.840.94D4Min. coeff.98.59710010097.270.97D5Ap. entropy1001001001001001A5Min. coeff.94.5909999.0991.510.89B-ED3Max. coeff.92.5909595.5591.360.85D4Min. coeff.93.5919696.0792.560.87D5MAV1001001001001001A5Min. coeff.93.5919696.0992.110.87C-ED3STD98989898.1898.10.96D4STD98989898.198.10.96D5MAV98979999.197.30.96A5Approx. ent79.5758482.877.60.59D-ED3MAV97979797.197.10.94D4Shannon ent.95969494.496.10.90D5MAV93.5949393.894.50.87A5Max. coeff.73727475.273.50.47AB-ED3Max. coeff.95.68899.598.894.40.9D4Max. coeff.93.69294.590.8960.86D5MAV1001001001001001A5Min. coeff.93.6879794.394.10.86AC-ED3STD98.7989998.199.10.97D4Max. coeff.93.79294.59195.90.86D5MAV98.79799.599.198.60.97A5Ap. entropy85719386.387.020.68AD-ED3MAV989798.597.1898.540.95D4MAV95.39396.593.7396.610.89D5MAV95.79496.593.5997.030.90A5Min. coeff.80.76787.573.4284.390.56BC-ED3Max. coeff.95.33889998.0994.590.89D4MAV94889793.9594.320.84D5MAV98.669799.599.0998.610.97A5Ap. entropy85.337391.582.4787.720.67BD-ED3Max. coeff.93.33889692.3294.220.85D4MAV94.66889895.7294.410.88D5Shannon ent.95.339595.591.4397.570.89A5Min. coeff.817086.574.0285.320.57CD-ED3MAV97.669698.597.3398.070.94D4MAV94.66929692.7892.780.88D5MAV95.33949692.5492.540.89A5Ap. entropy806587.574.0383.330.54ABC-ED3Max. coeff.94.58998.3395.7896.570.89D4MAV94.66929692.7896.150.88D5MAV999799.6699.0999.050.97A5Min. coeff88.257094.3380.6590.530.67ABD-ED3Min. coeff.91.758095.6687.1893.560.78D4MAV95.758898.3395.7896.250.88D5MAV96.59497.3392.2998.060.90A5Ap. entropy86.256892.3377.0189.890.63ACD-ED3Shannon ent.989798.3395.2798.980.94D4Shannon ent.97.259697.6694.2098.70.93D5STD96.259397.3392.8297.730.90A5Ap. entropy85.56592.3374.7688.970.60BCD-ED3Max. coeff.93.58496.6689.6394.830.82D4STD94.258597.3392.1695.150.84D5MAV96.59497.3392.8798.080.91A5Ap. entropy85.56492.6676.4788.620.60ABCD-ED3Min. Coeff.1001001001001001D4Avg power88.46095.576.8590.740.60D5MAV97939892.7298.30.90A5Avg power885995.2575.8490.390.59AB-CDD3Ap. entropy82.5709593.0976.560.67D4MAV59.7556.56360.959.090.19D5MAV7559.590.586.5269.210.52A5Ap. entropy73.255195.592.7966.590.52AB-CD-ED3MAV73.87473.7542.4791.870.40D4MAV64.2855934.2194.170.35D5Shannon ent.75957044.8298.350.52A5Ap. entropy66.46566.7533.2388.370.26Ap. entropy: approximate entropy; Min. coeff.: minimum coefficient, MAV: mean absolute value; Approx. entropy: approximate entropy; Shannon ent.: Shannon entropy; STD: standard deviation.From Table3, we can observe the results for 16 different classifications for the naïve Bayes classifier. For A-E classification, MAV from the D5 frequency subband gives the highest accuracy of 100%. For B-E classification, the minimum coefficient extracted from D3, average power extracted from D4, and ApEp extracted from A5 frequency subband give poor results. Still, MAV extracted from D5 gives the best result of 99.5%. For C-E classification, in D3, D4, D5, and A5 frequency subbands, the STD has been extracted, and the highest accuracy of 100% has been attained only in the D5 frequency subband. For D-E classification, in the D3 frequency subband, MAV gives the best accuracy of 97.5%. For AB-E classification, in the D5 frequency subband, STD provides the highest level of accuracy of 99.7%. For AC-E classification, in the D3 frequency subband, STD provides the highest level of accuracy of 98.7%. For AD-E classification, in the D3 frequency subband, MAV provides the highest level of accuracy of 98%. For BC-E classification, in the D5 frequency subband, ApEp provides the highest level of accuracy of 98.7%. For BD-E classification, in the D5 frequency subband, ApEp gives the maximum accuracy of 96%. For CD-E classification, in the D3 and D4 frequency subbands, MAV gives the maximum accuracy of 97.7%. For ABC-E classification, in the D5 frequency subband, MAV gives the maximum accuracy of 99%. For ABD-E classification, in the D5 frequency subband, ApEp gives the maximum accuracy of 96.25%. For ACD-E classification, in the D5 frequency subband, ApEp gives the maximum accuracy of 97.6%. For ABCD-E classification, in D3 frequency subband, the minimum coefficient gives the best accuracy of 97.4%. For AB-CD classification, in the D3 frequency subband, approximate entropy gives the maximum accuracy of 82.5%. Moreover, from Table 3, we can infer that the attributes which show the best result for naïve Bayes are Mean Absolute Value and approximate entropy. The maximum accuracy is achieved for A-E and C-E, 100%. The lowest accuracy is achieved for AB-CD classification.Table 3
Naïve Bayes results for University of Bonn dataset.
Sets (cases)Frequency subbandFeatureClassifier accuracy (%)Sensitivity (%)Specificity (%)PPVNPVMCCA-ED3STD99.59910010099.090.99D4MAV99.59910010099.090.99D5MAV1001001001001001A5Min. coeff.93.5919696.3392.350.87B-ED3Min. coeff.90.583989886.070.82D4Avg. power92.5869998.8889.050.86D5MAV99.51009999.091000.99A5Ap. entropy92879797.0989.080.85C-ED3STD1001001001001001D4STD98989898.1898.180.96D5STD98979999.0999.090.96A5STD79.5629794.9072.960.63D-ED3MAV97.5979898.1897.270.95D4MAV94919797.1892.980.88D5Ap. entropy94979192.0397.180.88A5Min. coeff.75609088.8670.340.54AB-ED3Min. coeff.93859794.6293.080.84D4MAV94.339096.593.5895.220.87D5STD99.710099.599.091000.99A5Min. coeff.94869896.2293.520.86AC-ED3STD98.7989998.1899.040.97D4MAV94.39096.593.5895.220.87D5Ap. ent.98.7989998.199.020.97A5STD86.76597.593.3584.880.69AD-ED3MAV98969998.3398.090.95D4MAV96.3939896.2796.710.92D5Ap. ent.95.7979591.5498.540.91A5Min. coeff.82.7609484.3882.860.59BC-ED3Min. coeff.93.38398.597.0792.30.85D4MAV94.7909793.9195.40.88D5Ap. ent.98.79799.599.1098.50.97A5Max. coeff.80.36497.593.2584.70.68BD-ED3Max. coeff.90749895.588.560.77D4MAV93.38597.594.7593.040.85D5Ap. ent.969795.592.4398.430.91A5Min. coeff.83.3609586.4683.170.61CD-ED3MAV97.7979896.2798.540.94D4MAV97.79398.596.7296.730.92D5Ap. ent.969795.592.0998.520.91A5Min. coeff.82.3559665.8281.880.59ABC-ED3Min. coeff.94.58597.6794.0295.330.85D4MAV96.679398.596.7296.730.92D5MAV999899.3398.1899.350.97A5Max. coeff.89.756498.3393.6789.470.70ABD-ED3Min. coeff.93.25799893.4193.420.81D4Avg power95.75929792.5297.390.89D5Ap. ent.96.259397.392.6697.710.90A5Min. Coeff.87.256096.384.7688.050.63ACD-ED3MAV98.25969997.2798.720.95D4STD97.259498.395.4298.100.92D5Ap. ent.97979791.8798.970.92A5Min. coeff.87.255797.386.8887.480.63BCD-ED3Min. coeff.93789892.6793.230.80D4MAV958897.391.8496.110.86D5Ap. ent.97979791.8798.990.92A5Min. coeff.87.258996.6787.8787.750.90ABCD-ED3Min. coeff.97.48710010096.890.91D4Min. coeff.89.86097.2585.5190.810.65D5Ap. ent.97.69797.2591.899.240.92A5Min. coeff.906097.586.0990.780.66AB-CDD3Ap. ent.82.5709593.0976.560.67D4Ap. ent.64.5428778.6860.230.33D5MAV7453.594.590.6267.320.52A5MAV7453.594.590.6267.320.52Ap. entropy: approximate entropy; MAV: mean absolute value; STD: standard deviation.From Table4, we can observe the results for 16 different classifications for the Decision Tree classifier. For A-E classification, MAV from the D5 frequency subband gives the highest accuracy of 100%. For B-E classification, the maximum coefficient extracted from D3 and D4 and STD extracted from A5 frequency subband give poor results, but MAV extracted from D5 give the best result of 100%. For C-E classification, Shannon entropy extracted from D4 gives the highest accuracy of 98. For D-E classification, in the D3 frequency subband, MAV gives the best accuracy of 96.5%. For AB-E classification, in the D5 frequency subband, MAV gives the maximum accuracy of 100%. For AC-E classification, in the D3 frequency subband, STD provides the highest level of accuracy of 98.67%. In the D5 frequency subband, ApEp provides the highest level of accuracy of 98.67%. For AD-E classification, in the D3 frequency subband, MAV provides the highest accuracy of 98%. For BC-E classification, in the D5 frequency subband, MAV provides the highest level of accuracy of 98.33%. For BD-E classification, in the D5 frequency subband, MAV provides the highest level of accuracy of 94.67%. For CD-E classification, in the D3 frequency subband, MAV provides the highest level of accuracy of 96.67%. For ABC-E classification, in the D3 frequency subband, the minimum coefficient gives the best accuracy of 94.5%. For ABD-E classification, in the D4 frequency subband, the maximum coefficient gives the highest accuracy of 95.75%. For ACD-E classification, in the D3 frequency subband, MAV gives the maximum accuracy of 98%. For BCD-E classification, in the D5 frequency subband, ApEp gives the maximum accuracy of 96.25%. For ABCD-E classification, in the D3 frequency subband, the minimum coefficient gives the best accuracy of 100%. For AB-CD classification, in the D3 frequency subband, MAV gives the maximum accuracy of 79.75%. Moreover, we can infer that the attributes that show the Decision Tree's best result are Mean Absolute Value and Shannon entropy. The highest accuracy is achieved for A-E, B-E, AB-E, and ABCD-E classifications, which is 100%. The lowest classification is performed for AB-CD classification.Table 4
Decision Tree results for University of Bonn dataset.
Sets (cases)Frequency subbandFeatureClassifier accuracy (%)Sensitivity (%)Specificity (%)PPVNPVMCCA-ED3Avg. power999910010099.090.99D4MAV99.59910099.0999.090.99D5MAV1001001001001001A5Min. coeff.92.5929393.5492.380.85B-ED3Max. coeff.91.5889595.4591.210.84D4Max. coeff.90.5899292.489.80.81D5MAV1001001001001001A5STD89.5918889.2392.170.8C-ED3STD98989898.1898.180.96D4Shannon ent.98989898.3398.180.96D5MAV97.5979899.0997.270.96A5Max. coeff.80778382.4779.250.6D-ED3MAV96.5979696.2797.180.93D4MAV92.5939292.8793.160.85D5MAV91.5919293.0991.910.83A5Max. coeff.69706869.3569.80.38AB-ED3Max. coeff.92.67889591.0994.350.84D4MAV94.33879896.594.110.87D5MAV1001001001001001A5Min. coeff.928794.589.2893.830.82AC-ED3STD98.67989998.1899.040.97D4MAV94.339096.593.5895.220.87D5Ap. ent.98.67989998.199.020.97A5STD86.678997.593.3584.880.69AD-ED3MAV989798.597.1898.540.95D4MAV94.39295.591.4796.150.87D5Ap. ent.94.679196.59395.70.88A5Min. coeff.81.33728673.6486.810.59BC-ED3Max. coeff.93.67879795.193.850.86D4MAV93.3889693.2894.390.85D5MAV98.33979998.1898.570.96A5Ap. ent.81.67718776.0285.680.59BD-ED3Max. coeff.88.38291.584.3491.310.74D4MAV91.678893.587.9494.080.81D5MAV94.67929693.0996.330.88A5Min. coeff.80.337085.573.4185.460.56CD-ED3MAV96.679796.594.1198.540.93D4MAV949394.590.1896.640.87D5Ap. ent.94929590.7596.370.86A5Min. coeff.76.666582.565.8282.730.47ABC-ED3Min. coeff.94.5879790.8695.970.85D4MAV949394.590.1896.650.87D5MAV98.59699.398.1898.720.96A5Max. coeff.89.756899.187.3290.430.7ABD-ED3Min. coeff.92.58495.3386.3294.760.8D4Max. coeff.95.759097.6693.6196.750.8D5Ap. ent.95.25909791.6896.850.87A5Min. coeff.85.757290.372.1890.860.62ACD-ED3MAV989798.3395.7599.050.95D4STD96.75969791.8198.60.91D5Ap. ent.95.5919792.1897.130.88A5MAV82.256687.6663.8588.750.53BCD-ED3Min. coeff.91.258593.3381.7294.930.77D4Avg. power94.258597.3391.7795.170.84D5Ap. ent.96.259596.691.298.350.9A5STD82.756389.336888.150.53ABCD-ED3Min. coeff.1001001001001001D4Min. coeff.85.8659164.7291.290.55D5Ap. ent.96.89597.2590.9398.750.9A5Avg. power85.2589263.4389.860.51AB-CDD3MAV79.7574.58584.2377.090.63D4Avg. power57.7556.55958.1557.950.15D5Min. coeff.73.5687976.5972.880.48A5Avg. power74529693.6267.060.53


## 3.2. Results from Clinical Real-Time Dataset

A real-time clinical dataset from a healthy signal is distinguished from an epileptic patient signal. We have applied DWT and generated the features for different subbands. This work has considered all the 21-channel datasets obtained for 24 sec. The features were generated from subbands D3–D5 and A5, and these features were used for classification [15, 16, 18]. But the better result has been obtained only for the average power feature derived from the D5 subband using the SVM classifier. Table 5 shows the results. Here, we applied 10-fold cross-validation for classification, since most of the useful information [48] required for distinguishing healthy and seizure patient signals might be in subband D5.Table 5
Results for real-time clinical datasets using average power feature for different classifiers.
Sets (cases)ClassifierClassifier accuracy (%)Sensitivity (%)Specificity (%)PPVNPVMCCHealthy versus epileptic patientsSVM91.66783.3310010087.50.85kNN755010010067.50.58Naïve Bayes75100507500Decision Tree5001000500SVM: support vector machine.


## 4. Comparison with Existing State of the Art

Different researchers had proposed several techniques to detect epileptic seizures from EEG signals. Their works are compared with this work and tabulated in Table6. The methods that used the same dataset are shown for comparison. It has been noticed that several strategies, such as DTCWT, empirical mode decomposition, CNN, and Fuzzy Neural Network, are used to examine EEG to identify epileptic seizures from normal conditions.Table 6
Comparison with the existing state of the art.
ReferencesYearMethodsCasesCA (%)[30]2006DWT adaptive neurofuzzy networkAD-E85.9[31]2009DWT + ApEn and surrogate data analysisACD-E96.65[18]2010Line length feature and ANNA-E99.6ACD-E97.75ABCD-E97.5[20]2011Statistical features from DWT + kNN classifierA-E100.0AB-CD-E95.6[21]2012Permutation entropy + SVMA-E100.0B-E82.88C-E88.0D-E79.94[32]2012Statistical features from DWT + PCA + ANN classifierA-E100.0[17]2012ApEp + SampEp + phase entropy 1 + phase entropy 2-Fuzzy Sugeno classifierAB-CD-E98.1[29]2013DWT + permutation and sample entropy + Hurst exponent + genetic algorithm + extreme learning machine (ELM)A-E94.8[34]2013DWT + Hurst and Lyapunov exponentB-E96.5[24]2014Dual-tree complex wavelet transform + kNN transformA-E100.0CD-E100.0ABCD-E100.0[25]2015Empirical mode decomposition-based temporal spectral features + SVMA-E100.0[26]2015DTCWT + complex-valued neural networkAB-CD-E98.28[33]2016DTCWT + general regression neural networkA-E100.0B-E98.9C-E98.7D-E93.3AB-E99.2[28]2016Key-point based local binary pattern of EEG signalsCD-E99.45AB-CD-E98.8[35]2017Tunable-Q wavelet transform + kNN entropy + SVMAB-CD-E98.6[4]2016DWT – MVP + SD + AVP – NB/kNN classifierA-E100.0B-E99.25C-E99.5D-E95.62AB-E99.16AC-E99.5AD-E97.08BC-E98.25BD-E96.5CD-E98.75ABC-E98.68ACD-E97.31BCD-E97.72ABCD-E97.1[36]2018CNNAB-CD-E88.67[37]2018CNNA-E100B-E99.8C-E99.1D-E99.4AB-E99.8AC-E99.7BC-E99.5BD-E99.6CD-E99.7ABC-E99.97ACD-E99.8BCD-E99.3ABCD-E99.7AB-CD99.9AB-CD-E99.1AB-CDE99.7This work (University of Bonn dataset)2020DWT + SVM/KNN/NB/DTA-E100.0B-E100.0C-E100.0D-E97.5AB-E100.0AC-E98.67AD-E98.0BC-E98.67BD-E96.33CD-E98.0ABC-E99.0ABD-E97.0ACD-E98.25BCD-E97.0ABCD-E100.0AB-CD82.5AB-CD-E95.0This work (real-time clinical dataset)2020DWT + SVM/KNN/NB/DTHealthy- epileptic patient91.67The majority of the researchers classified set A with set E for the two-class classifications and got a classification accuracy from 94.8% to 100% [19–31, 39–42]. Many researchers also classified set B with set E and achieved a classification accuracy from 82.88% to 99.25% [19, 25, 29, 31, 41]. On classifying set C with set E, researchers got a classification accuracy from 88% to 99.6% [23, 25, 29, 31, 41]. For classification of set D with set E, researchers got classification accuracy from 79.94% to 95.85% [23, 25, 29, 31, 41]. We, too, have achieved 100% in A-E classification in our work. We have got better results for B-E, C-E, and D-E classifications. We achieved 100% accuracy for B-E classification, whereas the maximum accuracy to date has been 99.25% only. Similarly, for C-E classification, we achieved 100% accuracy, whereas the maximum accuracy to date has been 99.6% only. We have achieved 97.5% for D-E classification, but the maximum accuracy achieved to date has been 95.85%.Researchers also combined two datasets from set A to set D and classified them with set E. In the case of AB-E classification, the maximum accuracy achieved to date has been 99.2% [29]. In our work, we have achieved 100% accuracy. Our accuracy is 98.6% for AC-E classification, but the maximum accuracy achieved has been 99.5% [23]. For AD-E classification, researchers got classification accuracy of 85.9% [30] and 97.08% [29], but we got better accuracy of 98%. Researchers got a classification accuracy of 98.25% [31], but we got a better accuracy of 98.67%. In the case of BD-E classification, we got a classification accuracy of 96.33%, but the maximum accuracy achieved has been 96.5% [28]. Similarly, for CD-E classification, we got a classification accuracy of 98%, but the maximum accuracy achieved is 100% [26]. Likewise, researchers have combined three different datasets and classified them with set E. Researchers have achieved a classification accuracy of 98.68% [31] for ABC-E, but we have achieved a better accuracy of 99% in our work. For ACD-E classification, researchers have achieved classification accuracy from 96.65% to 98.15% [20, 25, 31, 34]. We have achieved a slightly better accuracy of 98.25% in our work. We have also classified ABD-E, which has not been computed in any previous work, and have achieved an accuracy of 97%. We have achieved a classification accuracy of 97% for BCD-E classification, but the highest accuracy has been 97.72% [31].The other two-class classifications are ABCD-E and AB-CD. For ABCD-E classification, our result is comparable with those of other researchers. Researchers have achieved accuracy ranging from 97.1% [28] to 100% [26]. In our work also, we have reached an accuracy of 100%. Additionally, we have combined set A with set B and set C with set D and classified these two combined datasets. This type of classification has not been attempted previously, and we got a classification accuracy of 82.5%.Furthermore, for three-class classification, AB-CD-E, researchers have achieved classification accuracy ranging from 95.6% to 98.8% [22, 28, 31, 35, 36]. We have got a lesser accuracy of 95% only in our work.Many studies have been carried out on applying ensemble techniques to various aspects of science and engineering. Ensemble models combine several base models to achieve an overall model with high predictive ability. Ensemble models as used in various areas of science and engineering are provided in [5, 43–45].


### 4.1. Discussion of Key Findings

For A-E classification, MAV, STD, and average power extracted from the D5 frequency subband are fed into kNN, NB, and DT classifiers, giving the best result of 100% accuracy. The SVM classifier gives 100% accuracy for approximate entropy features from the D5 frequency subband. For B-E classification, MAV, STD, and average power taken out from the D5 frequency subband are fed into kNN and DT classifier, which gives the best result of 100% accuracy. For C-E classification, STD and average power extracted from the D3 frequency subband are fed into the NB classifier, giving the best result of 100% accuracy. For D-E classification, MAV extracted from the D3 frequency subband is fed into the NB classifier, which gives the best result of 97.5% accuracy. For AB-E classification, MAV and Shannon entropy extracted from the D5 frequency subband are fed into the kNN and DT classifier, giving the best accuracy result of 100% accuracy. For AC-E classification, STD extracted from the D3 and D5 frequency subbands is fed into kNN and DT classifier, giving the best result of 98.67% accuracy. For AD-E classification, MAV extracted from the D3 frequency subband is fed into all classifiers, giving the best result of 98% accuracy. For BC-E classification, MAV extracted from the D5 frequency subband is fed into kNN, NB, and DT classifier, giving the best result of 98.67% accuracy. For BD-E classification, MAV extracted from the D5 frequency subband is fed into the SVM classifier, giving the best result of 96.33% accuracy. For CD-E classification, MAV extracted from the D3 frequency subband is fed into the SVM classifier, giving the best result of 98% accuracy. For ABC-E classification, MAV extracted from the D5 frequency subband is fed into SVM, kNN, and NB classifier, which gives the best result of 99% accuracy. For ABD-E classification, MAV extracted from the D5 frequency subband is fed into the SVM classifier, which gives the best result of 97% accuracy. For ACD-E classification, MAV extracted from the D3 frequency subband is fed into SVM and NB classifier giving the best result of 98.25% accuracy. For BCD-E classification, MAV extracted from the D5 frequency subband is fed into SVM and NB classifier, which gives the best result of 97% accuracy. For the ABCD-E classification, minimum coefficient extracted from the D5 frequency subband is fed into SVM, kNN, and DT classifier, giving the best result of 100% accuracy. For AB-CD classification, ApEp extracted from the D3 frequency subband is fed into kNN and NB classifier, which gives the best result of 82.5% accuracy. For AB-CD-E classification, Shannon entropy from the D5 frequency subband is fed into the kNN classifier, which gives the best result of 95% accuracy. From Table6, we can conclude that we have achieved 100% accuracy for A-E, B-E, C-E, AB-E, and ABCD-E classifications, which have been achieved previously. Additionally, we achieved better accuracy for the dataset combinations of D-E, BC-E, and ABC-E in the detection of epileptic seizure.


## 4.1. Discussion of Key Findings

For A-E classification, MAV, STD, and average power extracted from the D5 frequency subband are fed into kNN, NB, and DT classifiers, giving the best result of 100% accuracy. The SVM classifier gives 100% accuracy for approximate entropy features from the D5 frequency subband. For B-E classification, MAV, STD, and average power taken out from the D5 frequency subband are fed into kNN and DT classifier, which gives the best result of 100% accuracy. For C-E classification, STD and average power extracted from the D3 frequency subband are fed into the NB classifier, giving the best result of 100% accuracy. For D-E classification, MAV extracted from the D3 frequency subband is fed into the NB classifier, which gives the best result of 97.5% accuracy. For AB-E classification, MAV and Shannon entropy extracted from the D5 frequency subband are fed into the kNN and DT classifier, giving the best accuracy result of 100% accuracy. For AC-E classification, STD extracted from the D3 and D5 frequency subbands is fed into kNN and DT classifier, giving the best result of 98.67% accuracy. For AD-E classification, MAV extracted from the D3 frequency subband is fed into all classifiers, giving the best result of 98% accuracy. For BC-E classification, MAV extracted from the D5 frequency subband is fed into kNN, NB, and DT classifier, giving the best result of 98.67% accuracy. For BD-E classification, MAV extracted from the D5 frequency subband is fed into the SVM classifier, giving the best result of 96.33% accuracy. For CD-E classification, MAV extracted from the D3 frequency subband is fed into the SVM classifier, giving the best result of 98% accuracy. For ABC-E classification, MAV extracted from the D5 frequency subband is fed into SVM, kNN, and NB classifier, which gives the best result of 99% accuracy. For ABD-E classification, MAV extracted from the D5 frequency subband is fed into the SVM classifier, which gives the best result of 97% accuracy. For ACD-E classification, MAV extracted from the D3 frequency subband is fed into SVM and NB classifier giving the best result of 98.25% accuracy. For BCD-E classification, MAV extracted from the D5 frequency subband is fed into SVM and NB classifier, which gives the best result of 97% accuracy. For the ABCD-E classification, minimum coefficient extracted from the D5 frequency subband is fed into SVM, kNN, and DT classifier, giving the best result of 100% accuracy. For AB-CD classification, ApEp extracted from the D3 frequency subband is fed into kNN and NB classifier, which gives the best result of 82.5% accuracy. For AB-CD-E classification, Shannon entropy from the D5 frequency subband is fed into the kNN classifier, which gives the best result of 95% accuracy. From Table6, we can conclude that we have achieved 100% accuracy for A-E, B-E, C-E, AB-E, and ABCD-E classifications, which have been achieved previously. Additionally, we achieved better accuracy for the dataset combinations of D-E, BC-E, and ABC-E in the detection of epileptic seizure.


## 5. Conclusions

A new approach for identifying epileptic seizures by using the time-frequency domain features and various classifiers is proposed in this work. The dataset developed by the University of Bonn in Germany achieves the highest classification rate of 100%. The overall accuracy of 91.67% is obtained in real-time data from the Senthil Multispecialty Hospital, India. The proposed method is successful after verifying and comparing it with the accuracies of the existing methods in several existing literature. The work also presented different base classifier machine learning models to characterize EEG signals and accurately detect epileptic seizures. One of the significant contributions of this work is that if offered wide-ranging machine learning models on the dataset, the proposed method could guarantee accurate prediction. In contrast, other existing works on EEG signals do not examine as many models explored in this work. Examining the different base classifier models is vital for generalization. This is one of the strengths and critical contributions of this paper. Since we could test the validity of the results clinically, we would develop this algorithm further to implement it in the hospitals in our future work.



---

*Source: 8928021-2022-02-25.xml*