pmcSensors (Basel)Sensors (Basel)1660sensors101204366sensorsSensors (Basel, Switzerland)1424-8220Multidisciplinary Digital Publishing Institute (MDPI)PMC8624422PMC8624422.1862442286244223483378010.3390/s21227710sensors-21-077101ArticleEpileptic Seizures Detection in EEG Signals Using Fusion Handcrafted and Deep Learning FeaturesMalekzadehAnis1https://orcid.org/0000-0003-4983-3698ZareAssef1*YaghoobiMahdi2KobraviHamid-Reza2https://orcid.org/0000-0003-0898-5054AlizadehsaniRoohallah3ZhangYu-DongAcademic EditorGorrizJuan ManuelAcademic EditorHuoYuankaiAcademic EditorDepartment of Electrical Engineering, Gonabad Branch, Islamic Azad University, Gonabad 6518115743, Iran; anismalekzade@yahoo.comDepartment of Electrical Engineering, Mashhad Branch, Islamic Azad University, Mashhad 9187147578, Iran; yaghoobi@mshdiau.ac.ir (M.Y.); hkobravi@mshdiau.ac.ir (H.-R.K.)Institute for Intelligent Systems Research and Innovation (IISRI), Deakin University, Waurn Ponds, VIC 3216, Australia; r.alizadehsani@deakin.edu.auCorrespondence: assefzare@gmail.com19112021112021212239448777101310202115112021191120212711202128092024© 2021 by the authors.2021https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).

Epilepsy is a brain disorder disease that affects people’s quality of life. Electroencephalography (EEG) signals are used to diagnose epileptic seizures. This paper provides a computer-aided diagnosis system (CADS) for the automatic diagnosis of epileptic seizures in EEG signals. The proposed method consists of three steps, including preprocessing, feature extraction, and classification. In order to perform the simulations, the Bonn and Freiburg datasets are used. Firstly, we used a band-pass filter with 0.5–40 Hz cut-off frequency for removal artifacts of the EEG datasets. Tunable-Q Wavelet Transform (TQWT) is used for EEG signal decomposition. In the second step, various linear and nonlinear features are extracted from TQWT sub-bands. In this step, various statistical, frequency, and nonlinear features are extracted from the sub-bands. The nonlinear features used are based on fractal dimensions (FDs) and entropy theories. In the classification step, different approaches based on conventional machine learning (ML) and deep learning (DL) are discussed. In this step, a CNN–RNN-based DL method with the number of layers proposed is applied. The extracted features have been fed to the input of the proposed CNN–RNN model, and satisfactory results have been reported. In the classification step, the K-fold cross-validation with k = 10 is employed to demonstrate the effectiveness of the proposed CNN–RNN classification procedure. The results revealed that the proposed CNN–RNN method for Bonn and Freiburg datasets achieved an accuracy of 99.71% and 99.13%, respectively.

epileptic seizuresEEGdiagnosisTQWTnonlinear featuresCNN–RNNpmc-status-qastatus0pmc-status-liveyespmc-status-embargonopmc-status-releasedyespmc-prop-open-accessyespmc-prop-olfnopmc-prop-manuscriptnopmc-prop-legally-suppressednopmc-prop-has-pdfyespmc-prop-has-supplementnopmc-prop-pdf-onlynopmc-prop-suppress-copyrightnopmc-prop-is-real-versionnopmc-prop-is-scanned-articlenopmc-prop-preprintnopmc-prop-in-epmcyespmc-license-refCC BY
1. Introduction

Epilepsy is a noncontagious disease and one of the most prominent brain disorders. About 1% of the world’s population has been diagnosed with epilepsy [1]. Patients with epileptic seizures suffer from some temporary electric disorders [1,2,3]. About 20–30 percent of the patients diagnosed with epilepsy experience one or more strokes in a month [4,5,6]. In the epileptic seizures period, physical damages might even cause the death of the patient. The patients also suffer from lack of a good social position and experience some severe mental disorders [4,5,6].

In 2017, the International League Against Epilepsy (ILAE) presented a new classification of the epileptic seizure types: focal epilepsy, generalized epilepsy, and epilepsy with unknown symptoms [7]. In this classification, some detailed and precise information about each of the epileptic seizure types, including the types and the brain areas experiencing convulsion, are presented [7]. The early diagnosis of epileptic seizures has enormous importance and will prevent the disease progression significantly.

Many screening methods to diagnose epilepsy have been proposed until now, and the neuroimaging modalities have gained much attention from the specialized Specialist doctors [8]. Basically, the neuroimaging modalities in the diagnosis process of epileptic seizures include structural and functional methods. In the neuroimaging modalities, an epileptic seizure diagnosis based on EEG signals has remarkable popularity. EEG signal recording includes scalp EEG (sEEG) and intracranial EEG (IEEG) modalities [9]. EEG modalities include essential information from the functions of the brain in the epileptic seizures period. In comparison with other neuroimaging modalities, some benefits of EEG are a lower cost, the easiness of carrying, and suitable performance in epileptic seizure detection [9]. To diagnose epileptic seizures, doctors need to have a long record of the patient’s EEG signals. The EEG signals also usually have many various channels and artifacts, which cause some difficulties and challenges for doctors in the epileptic seizures diagnosis process [9,10].

To address these challenges, using CADS based on artificial intelligence (AI) can help to improve the speed and accuracy of the epilepsy diagnosis process [11,12,13]. AI-based CADS include ML and DL methods [14,15,16,17]. The most significant difference between CADS based on ML and DL is in the feature extraction step [9]. In CDAS based on ML, the most important feature extraction techniques include the time domain, frequency, and nonlinear features [18]. Choosing different feature extraction algorithms together to reach a high diagnosis accuracy demands a fair amount of knowledge in the field of ML [19,20].

On the other hand, the feature extraction and selection steps in CADS based on DL will be implemented on the deep layers. Many research projects are being conducted in the field of epileptic seizures diagnosis using DL and ML techniques [21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]. The purpose of these papers is to reach an authentic and accurate epileptic seizures diagnosis using EEG signals.

One recently developed AI field in epileptic seizures detection uses feature fusion techniques [77,78]. In these methods, a combination of features from different domains will improve the functionality and accuracy of the disease diagnosis process [77,78]. In this work, a novel epileptic seizure diagnosis method using a combination of handcrafted features and DL has been proposed; the summary of its steps is shown in Figure 1.

The proposed method includes the dataset, preprocessing, feature extraction, and classification steps. The two different datasets of Bonn [79] and Freiburg [80] were used to implement the proposed method. In the preprocessing step, the TQWT was used in EEG signal decomposition of different sub-bands.

Three variables are used for adjusting and reducing the search space of filter banks. The three important parameters of TQWT are the Q-factor, redundancy (r), and the number of sub-bands (J) [81]. The parameters Q = 1, r = 3, and J = 8 were chosen in this paper, similar to Reference [82]. After EEG signal decomposition using TQWT, various statistical, frequency, and nonlinear features are extracted. The EEG signals have a chaotic and nonlinear nature. Related works showed that nonlinear feature extraction methods play a significant role in improving the functionality and accuracy of the epileptic seizure diagnosis using EEG signals [23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40]. The most important nonlinear feature extraction methods from EEG signals include various types of entropies [83], FDs [84], graphs [85], the largest Lyapunov exponent (LLE) [86], and correlation coefficients (CC) [87]. In this step, various statistical, frequency, and nonlinear features are extracted in the TQWT sub-bands.

In this paper, a novel class of entropy and fractal theory-based features was used. The combination of this class of handcrafted features was used in this paper for the first time as the first innovation. In this section, feature extraction algorithms were chosen and combined based on exploring other research papers and, also, their epileptic seizure diagnosis functionality. Fractal-based nonlinear features include Higuchi [88], Katz [88], Petrosian [88], and the detrended fluctuation analysis (DFA) [89,90]. Entropy-based feature extraction techniques also include Shannon [91,92,93], Log-Energy [93], spectral [94], Sample [95], permutation [96], Fuzzy [97], refined composite multiscale fuzzy [98], graph [99], Permutation Rényi [100], average Shannon wavelet [101], average Rényi wavelet [101], average Tsallis wavelet [101], inherent [102], fractional fuzzy [103], and average fuzzy [104]; all of these methods will be covered and fully explained in the third section.

In the classification step, a variety of classification methods based on ML methods and DL are used. Classification techniques based on ML involve the support vector machine (SVM) [105] and k-nearest neighbors (KNN) [106] methods. The DL method is a CNN–RNN with the proposed number of layers and is another the novelty of the paper.

The proposed CNN–RNN model has two inputs. In the first input, handcrafted features will be fed into the network. In the second input, raw EEG signals of each dataset will be fed into the network differently, and various features will be extracted after passing the convolutional and long short-term memory (LSTM) layers. These features will be combined afterward and will pass into the classification algorithm.

This paper is organized as follows: the proposed method for epileptic seizure detection in EEG signals is introduced in Section 2. In Section 3, the statistical metrics for the proposed method are presented. The results of the proposed method are shown in Section 4. The limitations of the study are presented in Section 5. Finally, the discussions, conclusions, and future works are introduced in Section 6.

2. Materials and Methods 2.1. Dataset2.1.1. Bonn Dataset

The Bonn dataset was recorded at the University of Bonn by a group of researchers, and it has been extensively used in the area of epileptic seizure analysis and detection [48]. The Bonn dataset is publicly available as 500-EEG single-channel data. It was sampled at 173.6 Hz with a 23.6 s duration. They consisted of five classes, viz., S, F, N, O, and Z, with 100 channel recordings in each class [79]. Five healthy controls in the relaxed and awake state with 10–20 standard electrode placement schemes contributed to the classes O and Z EEG surface data. Intracranial electrodes were used with five patients suffering from epilepsy to collect data of the S, F, and N classes. The hemisphere of the epileptogenic zone and the opposite hemisphere were used, respectively, for the recording of the F and S classes’ signals during the interictal (seizure-free) period. The ictal (seizure) period was taken into account in case of the recording of class S [79]. Samples of EEG signals of the dataset for each class are shown in Figure 2.

Other details about the Bonn dataset are shown in Table 1.

To perform the experiments, 6 different classification problems are used, which are shown in Table 2.

2.1.2. Freiburg Dataset

The Freiburg dataset is another most frequently used resource for epileptic seizure detection [80]. It is also a freely accessible and downloadable EEG recording dataset. Twenty-one epileptic patients were considered for 24 h invasive presurgical continuous EEG signal recordings. During the time period, many seizures were recorded and occurred. This dataset includes epileptic seizure types of tonic–clonic (GTC), complex partial (CP), and simple partial (SP). Each of the cases has at least two types of epileptic seizures. The patients were from different age groups. They also differed in type and locality of seizures. The patients came to the University Hospital of Freiburg, Germany for a presurgical diagnosis. A Neurofile NT digital video EEG was used with a 256-Hz sampling rate and 128 channels [80]. The channels were numbers from 1 to 6, where the 1–3 channels were for focal recoding and 4–6 channels corresponded to extra focal ones. Interictal and ictal were the two types of signal files. The duration of the EEG signals for each patient in the ictal files was one hour. The format of the data files was ASCII. More details about this dataset is described in Table 3.

2.2. PreprocessingTunable-Q Wavelet Transform

The TQWT method is described in this section. TQWT is one of the newest wavelets transforms that is widely used in the processing of biological signals such as EEG signals. In TQWT, the redundancy (r), number of frequency sub-bands (J), and Q-factor (Q) can be tuned. The TQWT method consists of two low-pass and high-pass filter banks and is used to decompose EEG signals into different sub-bands. In this section, the low- and high-pass scale factors for filter banks with two channels are represented by α and β. The low-pass filter frequency response can be described as follows [81]:T0ω=1              if ω<1 –απ θω+α−1πβ+α−1       if 1−απ≤ ω<βπ0             if βπ≤ ω<π

The mathematical expression for the high-pass filter frequency response is as follows:T1ω=0           if ω<1 –απθβπ−ωβ+α−1   if 1−απ≤ ω<βπ1        if βπ≤ ω<π

In this paper, the TQWT parameters for the two datasets are r = 3, Q = 1, and J = 8, respectively. Figure 3 and Figure 4 show the TQWT sub-bands for the Bonn and Freiburg datasets. In Figure 3 and Figure 4, EEG signals with different sub-band frequencies are shown. The selection of the EEG signal decomposition level was made similar Reference [81].

Additionally, Figure 5 shows the frequency response for TQWT based on the r = 3, Q = 1, and J = 8 parameters.

2.3. Feature Extraction

In this section, various feature extraction methods are employed in epileptic seizure detection in the EEG signals. The feature extraction methods in the EEG signals contain the statistical, frequency domain, and nonlinear features. The nonlinear features are based on fractal theory entropy techniques. In the following section, each of these methods is discussed.

2.3.1. Statistical Features

The statistical features extract useful signal information, the most important of which are selected as shown in Table 4 [24].

2.3.2. Frequency Features

Intensity Weighted Mean Frequency (IWMF)

The intensity weighted mean frequency (IWMF) or mean frequency is an average frequency that is calculated as the sum of the product of the normalized power spectral density (PSD) and the frequency. Consider xk  as the normalized PSD of the signal epoch at the frequency of  fk, and the IWMF is calculated by [107] IWMFx=∑kxkfk 

Intensity Weighted Bandwidth (IWBW)

The weighted standard deviation of the frequency and a measure of the PSD width can be obtained from [107]. IWBWx=∑kxkfk−IMWFx2 where x[k] is the normalized PSD, and IMWF is the mean frequency of the input signal epoch. Whenever the PSD changes sharply, it results in a lower IWBW [107].

2.3.3. Fractal Features

The fractal dimensions (FDs) are an important class of nonlinear features and play a crucial role in the processing of EEG signals. FD-based feature extraction techniques, due to their properties, increase the accuracy of epileptic seizures detection in EEG signals. In this paper, the most important FDs, including Higuchi, Katz, Petrosian, and DFA are used to epileptic seizures detection in EEG signals. In the following, each of the FDs methods is presented along with their mathematical equations.

Higuchi Fractal

In this section, the theory of the Higuchi method is presented. Higuchi proposed this method in 1988, after which it has become a widely used technique for analyzing time series [88]. The Higuchi method is one of the most important FDs techniques that work well on nonlinear time series such as EEG signals. In the following, the steps of the Higuchi algorithm are proposed [88].

Consider x1, x2,…, xN the time sequence to be examined. The new time series xmk is as follows [88]. xmk=xm,xm+k,xm+2k,…….xm+N−mkk, for m=1,2,…k

In Equation (11), k is means the discrete time interval between points, and m is means the initial time value. For each time series xmk, the average length Lmk is as follows [88]. Lmk=N−1⌊N−mk⌋k∑i=1⌊(N−m)/k⌋|xm+ik−x(m+i−1k|

In Equation (12), N−1⌊N−mk⌋k is a normalization factor, and N is the total length of the sequence of the data x. The delay k is computed for all EEG data with an average length k as the mean of the k lengths Lmk for m=1,2,…,k. For each k ranging from 1 to kmax, the procedure is repeated, producing the sum of the average lengths Lk for each k as indicated below [88]. Lk=∑m=1kLmk

Katz Fractal

The FD of a curve can be termed as [88]. D=log10Llog10d 

In Equation (14), d is the estimated diameter as the distance between the points of the sequence. Also, L parameter is the total length of the curve. The equation of the d is as follows [88]:d=maxdistance1,i

In Equation (15), Point i is the one that maximizes the first point. The measurement units used depends on the computed FDs. The FDs are different if the units are different. Katz’s approach tries to resolve the issue by creating a general unit. The average step between successive points, a normalizes the distance [88]:D=log10L/a_log10d/a_ where n is the number of steps in the curve. Finally, Katz’s approach for feature extraction in EEG signals is defined as follows [88]: D=log10nlog10(dL)+log10n 

Petrosian Fractal

This section presents the theory of the Petrosian method. In the Petrosian method, rapid FD estimation is performed, and the results show that this method has satisfactory results. The mathematical theory of the Petrosian method is shown in (18) [88]:D=log10nlog10n+log10nn+0.4 N∆

Detrended Fluctuation Analysis

The Reference [89] introduced DFA, which can be used in feature extraction from time series such as EEG signals. The RR interval of the time series is incorporated yk and divided into nonoverlapping and equal segments of length n for conducting such an analysis. Least squares fitting is applied to obtain the local trend ynk in each segment and subtracted from yk. Fn, the root mean square fluctuation estimates, are calculated at last, and the scaling exponents are measured as the slope of the double-log plot of F(n) against n [89,90]:Fn=1N∑k=1Nyk−ynk2

2.3.4. Entropy Features

In this paper, different entropies are exploited to extract the characteristics of EEG signals. The entropy-based features indicate the presence of signal irregularities and are also more resistant to noise than other methods. The entropy relationships used are shown below.

Shannon Feature

This entropy was proposed by Reference [94] and defined as ESh=−∑n=1xSnlog2Sn

In Equation (20), Sn is the probability of the feature’s value.

Log-Energy Entropy

The log-energy entropy estimates the complex intensity of the signals. The log-energy entropy can be termed as [91,93] ELog=∑i=0KlogEi2

Average Shannon Wavelet Entropy

In this section, the average entropy of wavelet Shannon is presented. If Et represents the energy of the 1st sub-band signal calculated from the wavelet coefficients, we can write the total energy of the signal as follows [101]:Et=∑i=1KEi where K represents the total number of EEG signals obtained from the wavelet sub-bands. The wavelet energy can be calculated as follows [101]:qi=EiEt

The Shannon-based wavelet entropy relationship is defined as follows [101]:Swn=−∑i=1Kqilog(qi)

Finally, the average wavelet Shannon entropy is defined based on swnx and swny, which represent the Swn of the time series x and y of the EEG signal, as follows [101]:swnavg=swnx+swny2

Average Rényi Wavelet Entropy

The entropy of wavelet Rényi is defined in Relation (26) [101]:Rwnα=11−αlog∑i=1Kqiα, α≠1 

Here, the parameter α is considered equal to 2. In another definition, Rényi entropy is expressed by Relation (27) [101]:Rwn2=−log∑i=1Kqi2

Similar to Equation (25), the average wavelet Rényi entropy is defined as follows [35]:RwnAvg=Rwnx+Rwny2

Average Tsallis Wavelet Entropy

In Reference [101], the entropy of wavelet Tsallis is studied in detail. Wavelet Tsallis entropy is defined as follows:Twnα=11−α1−∑i=1Kqiα, α≠1  where parameter a is called the nonextensivity index. The average wavelet Tsallis entropy is calculated as follows [101]:TwnAvg=Twnx+Twny2 

Permutation Rényi Entropy

Consider the following time series. The Xt vectors are constructed by selecting samples with identical distances from x, starting from the time point t [100]:Xt=[xt,xt+L,…,x(t+m−1L]T

The values of Xt are transformed in ascending order and, by generating Xrt, the modified version of Xt, the time points are renamed [100]:Xrt=xt+t1−1L, xt+t2−1L,…,xt+tm−1LT

Therefore, each Xt vector can be considered uniquely mapped on a symbol vector π = [t1, t2,…, tm]. PE can be calculated as follows [100]:Hm=−∑i=1m!pπilogpπi where log is a natural logarithm, and m! is the number of possible permutations. Since Hm can reach ln (m!), PE is normalized. Then, the normalized PE relationship is defined by [100]. Hnm=−∑i=1m!pπilogpπi lnm!

Here is a new definition of PE based on Rényi’s theory as follows [100]:HRm=−11−αlog∑i=1m!pπiα 

Graph Entropy

A new entropy method based on graph theory was proposed by Reference [99]. The relation of the graph entropy is described as [99]. Hnm=−∑i=1m!pπilogpπi lnm! Hnm=−∑i=1m!pπilogpπi lnm! where Wij is the weight of the link between the ith node and the jth node, and m is the number of nodes connected to the ith node [99].

Fuzzy Entropy

For a time series xi, fuzzy entropy (FuEn) establishes vector sequences xim, i=1,2,…,N−m+1 as given below [97]:Xim=xi,xi+1,…,xi+m−1−x0i where m is the length of the sequences.

Dijm is the maximum absolute difference between Xim and  Xjm [97]. Dijmn,r=μdijm,n,r μdijm,n,r=e−dijmnr

In Equations (40) and (41), r parameter is the predefined gradient, and n is the width of the exponential function. The Φm function shows in the Eqation (41) [97]:Φmn,r=1N−m∑i=1N−m1N−m−1∑j=1,j≠iN−mDijm

Finally, the FuEn is introduced as Equation (42) [97]:FuEnm,n,r,N=−lnΦm+1rΦmr

Refined Composite Multiscale Fuzzy Entropy (RCMFE)

The RCMFEσ is computed as follows [98]:RCMFEσ (x, m, n, r)=−lnΦ¯rm+1Φ¯rm

RCMFEσ and RCMFEμ have differences that both use different equations in the first steps of their algorithms. The tolerance (r), Fuzzy entropy power (n), and the embedding dimension (m) [98].

Inherent Fuzzy Entropy

This section expresses inherent fuzzy entropy (IFuEn). The steps of IFuEn are as follows [102]:

Step 1. Multiple IMFs are made by breaking down the original x(t) signal and reconstructing the x^t signal using EMD techniques, which are done as follows [102]:

Calculating the extremes to cover emint and emaxt [102].

Calculating the average [102]:mt=emint+emaxt2

Candidates of inherent functions are derived intrinsic mode functions (IMFs) [102]:dt=xt−mt

Calculating the value of r(t) as follows [102]:rt=xt−∑i=1tdt

Given t = t + 1, consider d(t + 1) as the input EEG data; while iterating on the residual m(t), which continues until the final residue r that becomes a monotonic function from which no more IMF can be extracted [102].

The total accumulated residual IMFs are used to reconstruct the x^t signal [102]:x^t=∑i=ni=mdt

Step 2: FuEn to evaluate the complexity, which is similar to Equation (42) [102].

Step 3: Multi-scale version [102]

yjτ is the coarse-grained time series, and its equation is as follows [102]:yjτ=1τ∑i=j−1τ+1jτxi

In this regard, τ is the scale factor. Also, the length of each coarse-grained time series is N/τ [102].

Averaged Fuzzy Entropy

Average fuzzy entropy (AFuEn) is an improved model of FuEn. In AFuEn method, an improved m_ pattern ΓkXjm is compared to Xim. At this AFuEn, Equation (49) is modified as follows [104]: D kijmn,r=μdXim,ΓkXjm,n,r

In the following, four different types of ΓkXmj  operations with k=T,R,I,G are defined as follows [104]:

A translation of n samples, k=T corresponds to ΓTXjm=Xj+nm.

A reflection at the position n, k=R corresponds to ΓRXjm=X−j+nm.

An inversion at the position n, k=I corresponds to ΓIXjm=−X−j+nm.

A glide reflection of n samples, k=G corresponds to ΓGXjm=−Xj+nm.

In this case, FuEnT, FuEnR, FuEnI, and FuEnG are obtained. The following FuEna is as follows [104]:FuEnam,n,r,N=FuEnT+FuEnR+FuEnI+FuEnG4 

Finally, the AFuEn is shows as Equation (51) [104]: AFuEnm,n,r,N=lnΦkmn,rΦkm+1n,r

Fractional Fuzzy Entropy

In Reference [103], researchers introduced the fractional-order entropy of Shannon, which is defined as Sα=∑ipi−pi−αΓα+1lnpi+ψ1−ψ1−α 

In Equation (52), α is the fractional-order derivation. Moreover, Γ and ψ denote the gamma and digamma functions, respectively. The equation of fractional-order information is defined as Equation (53):Iα=−pi−αΓα+1lnpi+ψ1−ψ1−α 

In Equation (42), FuEn is introduced. Placing Equation (53) in Equation (42), fractional fuzzy entropy (FFuEn) may be stated as FFuEnm,r,α,xN=−Φm+1rΦmr−αlnΦm+1rΦmr+ψ1−ψ1−αΓ 1+α 

Spectral Entropy

This method is normalized Shannon entropy, which quantitatively defines the spectral complexity of the EEG signals as follows [94]:Sent=∑fPflog1Pf

Sample Entropy

In the equation below, the sample entropy formula is shown [95]:SampEn=−logAB where A refers to the total number of vector pairs of length m + 1, and B comprises the total number of vector pairs of length m [95].

Permutation Entropy

Permutation entropy estimates the complexity of biomedical signals, such as EEG signals, by measuring the couplings between two classes. The equation of permutation entropy is presented as follows [96]:PE=−∑j=1nPjlog2Pj where n defines the sequence length, and pj illustrates the likelihood of the nth occurrence [96].

2.4. Classification2.4.1. SVM

While these methods have been around for longer than many other machine learning algorithms, in recent decades, despite many advances in machine learning and the introduction of a wide variety of novel algorithms, support vector machines [105] have not lost their popularity and are still considered one of the most well-known and applied methods among researchers. These algorithms, which are generally based on finding hyperplanes that maximize the margin, use the kernel trick to classify data in complex and high-dimensional spaces with suitable accuracy. Linear, RBF, and polynomial are the most popular SVM kernels [105].

2.4.2. KNN

One of the simplest and, at the same time, most practical machine learning methods is the KNN algorithm [106], which is widely used for classification. There is no learning phase in this method, but in the test phase, the classifier finds the K-nearest neighbor to this data point (as the name of the method implies) and assigns the data label according to their dominant label. Nevertheless, this method works very slowly in times when the amount of training data is enormous [106].

2.4.3. CNN–RNN

In this section, the proposed DL architecture for the detection of epileptic seizures based on EEG signals is discussed. The network used in this paper has a CNN–RNN structure with the use of extracted features. Nowadays, combined deep learning models such as CNN–RNN have achieved successful results in diagnosing and predicting diseases from medical data.

Convolutional layers are usually used in the primary layers to combine CNN models with RNN, which are responsible for extracting the features. The output of the convolutional layers is then applied to the RNN layers to use their superiority to identify the global pattern [108,109]. The purpose of this work is because the convolution layers empirically find local and spatial patterns far better than RNNs in signals [109]. Second, adding convolution layers allows the RNN to see the data faster, thus finding more distance patterns. Additionally, in this study, it has been proven that combining handcrafted features with CNN–RNN networks helps to increase the efficiency and accuracy of the CADS detection of epileptic seizures from EEG signals. In this study, the selection of the number of layers of the CNN–RNN model is presented for the first time by the researchers in this paper.

In this paper, a deep CNN–RNN network with the proposed number of layers, along with handcrafted features, is used to diagnose epileptic seizures. The proposed CNN–RNN model is applied to the Bonn and Freiburg datasets, along with the handcrafted features. The CNN–RNN model has the same structure for both datasets. Figure 6 shows the proposed CNN–RNN model. Additionally, the hyper parameters of the model are shown in Table 5.

In the proposed deep learning method, there are three convolutional layers in the convolutional section to extract features and one max-pooling layer with a feature reduction purpose. After that, there is a flatten layer to transform the extracted features into feature vectors. Then, an LSTM block with 64 neurons was used to extract the RNN features. Afterwards, a combination block was used to combine the CNN–RNN and handcrafted features. Finally, three fully connected layers were implemented to classify the data. In the proposed CNN–RNN model, each layer’s selection and its parameters were made by trial and error.

3. Statistical Metrics

In this paper, the classification results are evaluated using the 10-fold cross-validation techniques. In K-fold cross-validation, the total number of observations are split into K-folds, where the data samples are limited. Finally, the performance of the algorithm was estimated using statistical metrics include specificity (Spec), sensitivity (Sens), accuracy (Acc), and F1-score (F1-S), and precision (Prec). The true positive (TP), true negative (TN), false negative (FN), and false positive (FP) parameters are extracted from the confusion matrix [110]. Acc=TP+TNFP+FN+TP+TN Sens=TPFN+TP Spec=TNFP+TN Prec=TPTP+FP FS=2 TP2TP+FP+FN

4. Results

The experiments are performed on a Ryzen 1700 machine with 8-GB RAM using MATLAB for feature extraction and TensorFlow 2 and scikit-learn for the classification algorithms. In this part of the paper, we present the results of the proposed method. The proposed method includes the preprocessing, feature extraction, and classification steps. The preprocessing step includes windowing, noise removal, and decomposition of the EEG signals into various sub-bands by the TQWT. In the first step of preprocessing, the signals from the Bonn and Freiburg datasets are decomposed into different time windows. For the Bonn dataset, each EEG signal is segmented into time windows of 5 s, and for the Freiburg dataset, each EEG signal is segmented into time windows of 4 s. In the following, a Butterworth band-pass filter is used to preprocess the signals of the datasets. In the third preprocessing step, TQWT is used for EEG signal decomposition. As mentioned earlier, the important TQWT parameters are selected as Q = 1, r = 3, and J = 8 for both datasets.

In the following, various statistical, frequency, and nonlinear features are extracted from the TQWT sub-bands. The combination of these features has been done for the first time in this paper and is considered an important novelty.

In the final part of CADS, the epileptic seizure detection based on EEG signals, ML classifier algorithms, and deep learning was examined and tested. The ML classifier techniques include SVM and KNN methods. On the other hand, the DL method is a CNN–RNN model. This method of classification is another novelty of this paper. Here, the proposed CNN–RNN method has two separate inputs. In the first input, Bonn or Freiburg dataset signals are applied to one of the proposed CNN–RNN network inputs. After passing the raw signals of the datasets through the one-dimensional (1D) convolutional layers, they finally reach the flatten layer. On the other hand, handcrafted feature extraction methods are applied to the second input of the proposed CNN–RNN architecture (Figure 6). Then, the handcrafted features and the features extracted from the 1D convolutional layers are merged and passed through the RNN layers to be finally classified.

In the proposed CNN–RNN implementation on the Bonn dataset, each data is broken into 5 s windows, and after preprocessing, some features are extracted from it. At the same time, each 5 s window, which contains 868 frames of data, is broken by 25 overlaps into 33 windows, each containing 50 frames, which are used for CNN–RNN input as the raw data. In the proposed method, each 100-epoch network is trained using the categorical cross-entropy error function and Adam optimizer.

It is also important to note that the implementation and configuration of the proposed CNN–RNN model for the Freiburg dataset are similar to the Bonn dataset. As can be seen in Table 6 and Table 7, the proposed CNN–RNN model has been successful in epileptic seizure detection from the Bonn and Freiburg datasets. In Table 6, the different classifications are reviewed.

The classifications were chosen similar to the research papers about epileptic seizure diagnosis based on EEG signals using the Bonn dataset [21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]. Figure 7 and Table 6 show the performances of different classifier methods for the Bonn dataset.

Additionally, the results of the Fribourg dataset are shown in Table 7.

5. Limitations of Study

In this section, the limitations of the study are discussed. As mentioned before, epileptic seizures have various types, and their on-time diagnosis has great importance. There has been no dataset on the types of epileptic seizures so far. Therefore, researchers cannot do serious research in this field. In addition, the available EEG datasets for epileptic seizure diagnosis have limited use, and achieving actual and accurate epileptic seizure detection based on AI techniques is not possible due to this limitation. Another limitation of epileptic seizure diagnosis from EEG signals is that there are no dataset of EEG signals with preictal, ictal, and interictal times being highlighted in them. In the case of addressing these limitations, it is possible to use advanced and novel DL models to diagnose various types of epileptic seizures.

6. Discussion, Conclusions, and Future Works

Epileptic seizures are defined as a group of neurological disorders, and their early diagnosis is of particular importance for specialist physicians and neurologists [82,111]. In order to epileptic seizures detection, several techniques have been proposed until now. Among the neuroimaging modalities, EEG is pivotally significant to specialist physicians compared to other modalities. EEG signals provide specialist physicians with accurate information about brain functions, which helps to accurately diagnose epileptic seizures. EEG signals, though very beneficial, are not bereft of disadvantages and always cause problems for specialist physicians. Long-term recording, multiple EEG channels, various noises in EEG signals, etc. are some of the physicians’ difficulties that pose problems for accurately and quickly diagnosing epileptic seizures.

So far, various AI methods have been proposed to epileptic seizures detection, aiming to aid specialist physicians in the rapid diagnosis of epileptic seizures based on EEG signals. Researchers in the past have mostly exploited ML methods to diagnose epileptic seizures. Inefficiency in large amounts of input data, the complexity of the methods, the need for great knowledge to use ML methods in diagnosing epileptic seizures, etc. are the most important deficiencies of these methods. To address this issue, in recent years, DL approaches have been proposed that possess appropriate efficiency and performance for diagnosing various diseases, including epileptic seizures, by using a large amount of input data.

The proposed method consisted of three parts: preprocessing, feature extraction, and classification. Two datasets, Bonn and Freiburg, were exploited for the experiments. Bonn dataset signals were selected for 5 s time windows and Freiburg dataset signals for 4 s time windows. In the preprocessing step, first, a Butterworth band-pass filter was utilized for the initial preprocessing of the two dataset signals. Following the preprocessing step, the TQWT technique was adopted to decompose the EEG signal datasets into different su-bands. The TQWT parameters were selected to be applied to the two datasets similar to Reference [82].

In the following, a variety of statistical, frequency, and nonlinear features were extracted from TQWT sub-bands. Statistical features contain statistical moments. Nonlinear features also involve two categories of FDs and entropies. FD-based nonlinear features include Higuchi, Katz, Petrosian, and DFA. Entropy-based feature extraction techniques also include Shannon, Log-Energy, spectral, Sample, permutation, Fuzzy, refined composite multiscale fuzzy, graph, Permutation Rényi, average Shannon wavelet, average Rényi wavelet, average Tsallis wavelet, inherent, fractional fuzzy, and average fuzzy. In the feature extraction section, for the first time, a combination of these features has been used to epileptic seizures detection based on EEG signals and is considered the first novelty of this article.

Finally, ML methods and a CNN–RNN based on a DL model were exploited in the classification step. Among the classification methods, the CNN–RNN was applied for the first time in this study and was carried to account for another novelty. Here, the proposed CNN–RNN approach entailed two separate inputs. In the first input, the EEG signals of the Bonn or Freiburg datasets were fed to one of the proposed CNN–RNN network inputs. After the raw signals of the datasets passing through the 1D convolutional layers, they eventually attained the flatten layer. On the other hand, handcrafted feature extraction methods were applied to the second input of the proposed CNN–RNN architecture (Figure 6). Then, the handcrafted features and the features extracted from the one-dimensional convolutional layers were combined and passed through the RNN layers to finally be classified. In the classification section, K-fold cross-validation with K = 10 was used to calculate the valid outcomes. The proposed CNN–RNN architecture is a novel feature fusion procedure. Among the advantages of the proposed architecture, its high accuracy and greater efficiency in practical applications can be meaningful. The results identified that the proposed CNN–RNN scheme was able to achieve the maximum level of accuracy among all the algorithms used.

Then, in Table 8 and Table 9, the researchers conducted on the Bonn and Freiburg datasets for the diagnosis of epileptic seizures using AI methods are presented and compared with the proposed method.

According to Table 8 and Table 9, it can be perceived that the proposed CADS for the diagnosis of epileptic seizures using the handcrafted features and the proposed CNN–RNN model have achieved successful results.

As shown in Table 8 and Table 9, the proposed method could improve the performance and accuracy of an epileptic seizure diagnosis in the Bonn and Freiburg datasets. The proposed method has higher performance in comparison with other research projects. Table 8 and Table 9 shows that the results are reliable, and it is possible to use this proposed method in clinical applications to diagnose epileptic seizures. The proposed method in this paper has high efficacy in the diagnosis of epileptic seizures. In this method, different handcrafted features are used in combination with DL that improved the accuracy of diagnosing epileptic seizures based on EEG signals. The proposed method can help specialists rapidly diagnose epileptic seizures. This study shows that the proposed method can be implemented on a software platform and used in hospitals.

In future works, graph theory methods will be utilized, coupled with novel handcrafted features [112,113]. Additionally, applying new fuzzy entropies as feature extraction methods can be a future work. Additionally, another future work is to use fuzzy methods [114,115] in epileptic seizure detection. In other future works, effective connectivity techniques may be used to diagnose epileptic seizures [116,117,118]; first, EEG signals are transformed into 2D images using effective connectivity methods. Then, these 2 D images are applied to different 2D deep learning networks. Another future work is using novel DL techniques such as attention learning [119,120,121,122], transformers [123,124], and other advanced deep learning techniques [125,126,127,128,129,130,131,132,133,134] for epileptic seizure detection. Finally, adopting novel deep feature fusion techniques to epileptic seizures detection based on EEG signals can be noteworthy as one of the future works [135].

Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Author Contributions

Conceptualization, A.M. and A.Z.; methodology, A.Z., A.M. and M.Y.; software, A.M. and H.-R.K.; validation, R.A. and M.Y.; formal analysis, A.M., R.A., A.Z. and M.Y.; resources, A.Z. and A.M.; writing—original draft preparation, A.M., R.A. and H.-R.K.; writing—review and editing, A.M., A.Z., M.Y., R.A. and H.-R.K.; and visualization, A.Z., A.M. and R.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References GastautH. Clinical and Electroencephalographical Classification of Epileptic SeizuresEpilepsia19701110211210.1111/j.1528-1157.1970.tb03871.x5268244 WHO Improving Access to Epilepsy CareAvailable online: https://www.who.int/mental_health/neurology/epilepsy/en/(accessed on 29 August 2019) ArunkumarN. RamkumarK. VenkatramanV. AbdulhayE. FernandesS.L. KadryS. SegalS. Classification of focal and non focal EEG using entropiesPattern Recognit. Lett.201794112117 PatiS. AlexopoulosA.V. Pharmacoresistant epilepsy: From pathogenesis to current and emerging therapiesClevel. Clin. J. Med.20107745746710.3949/ccjm.77a.0906120601619 NewtonM.R. BerkovicS. AustinM.C. RoweC.C. McKayW.J. BladinP.F. SPECT in the localisation of extratemporal and temporal seizure fociJ. Neurol. Neurosurg. Psychiatry199559263010.1136/jnnp.59.1.267608705PMC1073597 SeeckM. LazeyrasF. MichelC. BlankeO. GerickeC. IvesJ. DelavelleJ. GolayX. HaenggeliC. de TriboletN. Non-invasive epileptic focus localization using EEG-triggered functional MRI and electromagnetic tomographyElectroencephalogr. Clin. Neurophysiol.199810650851210.1016/S0013-4694(98)00017-09741750International League against EpilepsyAvailable online: https://www.ilae.org/(accessed on 13 November 2021) ShoeibiA. KhodatarsM. GhassemiN. JafariM. MoridianP. AlizadehsaniR. PanahiazarM. KhozeimehF. ZareA. Hosseini-NejadH. Epileptic Seizures Detection Using Deep Learning Techniques: A ReviewInt. J. Environ. Res. Public Health202118578010.3390/ijerph1811578034072232PMC8199071 ShoeibiA. GhassemiN. KhodatarsM. JafariM. MoridianP. AlizadehsaniR. NahavandiS. Applications of Epileptic Seizures Detection in Neuroimaging Modalities Using Deep Learning Techniques: Methods, Challenges, and Future WorksarXiv20212105.14278 BeerakaS.M. KumarA. SameerM. GhoshS. GuptaB. Accuracy Enhancement of Epileptic Seizure Detection: A Deep Learning Approach with Hardware Realization of STFTCircuits Syst. Signal Process.202112410.1007/s00034-021-01789-4 TzallasA.T. TsipourasM.G. TsalikakisD.G. KarvounisE.C. AstrakasL. KonitsiotisS. TzaphlidouM. Automated Epileptic Seizure Detection Methods: A Review StudyEpilepsy-Histological, Electroencephalographic and Psychological AspectsIntechOpenLondon, UK20127598 PediaditisM. TsiknakisM. LeitgebN. Vision-based motion detection, analysis and recognition of epileptic seizures—A systematic reviewComput. Methods Programs Biomed.20121081133114810.1016/j.cmpb.2012.08.00522954620 HusseinA.F. ArunkumarN. GomesC. AlZubaidiA.K. HabashQ.A. Santamaria-GranadosL. Mendoza-MorenoJ. Ramirez-GonzalezG. Focal and Non-Focal Epilepsy Localization: A ReviewIEEE Access20186493064932410.1109/ACCESS.2018.2867078 ShoeibiA. SadeghiD. MoridianP. GhassemiN. HerasJ. AlizadehsaniR. GorrizJ.M. Automatic Diagnosis of Schizophrenia using EEG Signals and CNN-LSTM ModelsarXiv20212109.0112010.3389/fninf.2021.777977PMC865714534899226 ShoeibiA. KhodatarsM. JafariM. MoridianP. RezaeiM. AlizadehsaniR. KhozeimehF. GorrizJ.M. HerasJ. PanahiazarM. Applications of deep learning techniques for automated multiple sclerosis detection using magnetic resonance imaging: A reviewComput. Biol. Med.202113610469710.1016/j.compbiomed.2021.10469734358994 AlizadehsaniR. SharifraziD. IzadiN.H. JoloudariJ.H. ShoeibiA. GorrizJ.M. AcharyaU.R. Uncertainty-aware semi-supervised method using large unlabelled and limited labeled COVID-19 dataarXiv20212102.06388 AlizadehsaniR. RoshanzamirM. HussainS. KhosraviA. KoohestaniA. ZangooeiM.H. AbdarM. BeykikhoshkA. ShoeibiA. ZareA. Handling of uncertainty in medical data using machine learning and probability theory techniques: A review of 30 years (1991–2020)Ann. Oper. Res.202114210.1007/s10479-021-04006-2PMC798227933776178 ObukhovY.V. KershnerI.A. TolmachevaR.A. SinkinM.V. ZhavoronkovaL.A. Wavelet Ridges in EEG Diagnostic Features Extraction: Epilepsy Long-Time Monitoring and Rehabilitation after Traumatic Brain InjurySensors202121598910.3390/s2118598934577198PMC8468146 AkterM. IslamR. TanakaT. IimuraY. MitsuhashiT. SuganoH. WangD. MollaK.I. Statistical Features in High-Frequency Bands of Interictal iEEG Work Efficiently in Identifying the Seizure Onset Zone in Patients with Focal EpilepsyEntropy202022141510.3390/e22121415PMC776552133334058 KotiuchyiI. PerniceR. PopovA. FaesL. KharytonovV. A Framework to Assess the Information Dynamics of Source EEG Activity and Its Application to Epileptic Brain NetworksBrain Sci.20201065710.3390/brainsci1009065732971835PMC7564380 PatidarS. PachoriR.B. UpadhyayA. AcharyaU.R. An integrated alcoholic index using tunable-Q wavelet transform based features extracted from EEG signals for diagnosis of alcoholismAppl. Soft Comput.201750717810.1016/j.asoc.2016.11.002 SharafA.I. Abu El-SoudM. El-HenawyI.M. An Automated Approach for Epilepsy Detection Based on Tunable Q-Wavelet and Firefly Feature Selection AlgorithmInt. J. Biomed. Imaging20182018581287210.1155/2018/581287230275820PMC6151675 Abdel-GhaffarE.A. Effect of tuning TQWT parameters on epileptic seizure detection from EEG signalsProceedings of the 2017 12th International Conference on Computer Engineering and Systems (ICCES)Cairo, Egypt19–20 December 2017IEEEPiscataway Township, NJ, USA20174751 Al GhayabH.R. LiY. SiulyS. AbdullaS. A feature extraction technique based on tunable Q-factor wavelet transform for brain signal classificationJ. Neurosci. Methods2019312435210.1016/j.jneumeth.2018.11.01430468823 BhattacharyyaA. PachoriR.B. UpadhyayA. AcharyaU.R. Tunable-Q Wavelet Transform Based Multiscale Entropy Measure for Automated Classification of Epileptic EEG SignalsAppl. Sci.2017738510.3390/app7040385 BhattacharyyaA. SinghL. PachoriR.B. Identification of Epileptic Seizures from Scalp EEG Signals Based on TQWTMachine Intelligence and Signal AnalysisAdvances in Intelligent Systems and ComputingSpringer International PublishingSingapore2019209221 BhattacharyyaA. PachoriR.B. AcharyaU.R. Tunable-Q Wavelet Transform Based Multivariate Sub-Band Fuzzy Entropy with Application to Focal EEG Signal AnalysisEntropy2017199910.3390/e19030099 GuptaV. BhattacharyyaA. PachoriR.B. Classification of seizure and non-seizure EEG signals based on EMD-TQWT methodProceedings of the 2017 22nd International Conference on Digital Signal Processing (DSP)London, UK23–25 August 2017IEEEPiscataway Township, NJ, USA201715 HassanA.R. SiulyS. ZhangY. Epileptic seizure detection in EEG signals using tunable-Q factor wavelet transform and bootstrap aggregatingComput. Methods Programs Biomed.201613724725910.1016/j.cmpb.2016.09.00828110729 NishadA. PachoriR.B. AcharyaU.R. Application of TQWT based filter-bank for sleep apnea screening using ECG signalsJ. Ambient. Intell. Humaniz. Comput.201811210.1007/s12652-018-0867-3 SharmaR. KumarM. PachoriR.B. AcharyaU.R. Decision support system for focal EEG signals using tunable-Q wavelet transformJ. Comput. Sci.201720526010.1016/j.jocs.2017.03.022 ReddyG.R.S. RaoR. Automated identification system for seizure EEG signals using tunable-Q wavelet transformEng. Sci. Technol. Int. J.2017201486149310.1016/j.jestch.2017.11.003 JindalK. UpadhyayR. SinghH.S. Application of tunable-Q wavelet transform based nonlinear features in epileptic seizure detectionAnalog. Integr. Circuits Signal Process.201910043745210.1007/s10470-019-01424-y GuptaV. NishadA. PachoriR.B. Focal EEG signal detection based on constant-bandwidth TQWT filter-banksProceedings of the 2018 IEEE International Conference on Bioinformatics and Biomedicine (BIBM)Madrid, Spain3–6 December 2018IEEEPiscataway Township, NJ, USA201825972604 SharmaR.R. PachoriR.B. Time–frequency representation using IEVDHM–HT with application to classification of epileptic EEG signalsIET Sci. Meas. Technol.201812728210.1049/iet-smt.2017.0058 ZhangT. ChenW. LiM. Complex-valued distribution entropy and its application for seizure detectionBiocybern. Biomed. Eng.20204030632310.1016/j.bbe.2019.10.006 RoutS.K. BiswalP.K. An efficient error-minimized random vector functional link network for epileptic seizure classification using VMDBiomed. Signal Process. Control.20205710178710.1016/j.bspc.2019.101787 TuncerT. DoganS. AkbalE. A novel local senary pattern based epilepsy diagnosis system using EEG signalsAustralas. Phys. Eng. Sci. Med.20194293994810.1007/s13246-019-00794-x31482442 AlturkiF.A. AlsharabiK. AbdurRaqeebA.M. AljalalM. EEG Signal Analysis for Diagnosing Neurological Disorders Using Discrete Wavelet Transform and Intelligent TechniquesSensors202020250510.3390/s20092505PMC736195832354161 Sukriti ChakrabortyM. MitraD. Epilepsy Seizure Detection using Non-linear and DWT-based FeaturesProceedings of the 2019 International Conference on Wireless Communications Signal Processing and Networking (WiSPNET)Chennai, India21–23 March 2019IEEEPiscataway Township, NJ, USA2019158163 HousseinE.H. HamadA. HassanienA.E. FahmyA.A. Epileptic detection based on whale optimization enhanced support vector machineJ. Inf. Optim. Sci.20194069972310.1080/02522667.2018.1453671 RamannaS. TirunagariS. WindridgeD. Epileptic seizure detection using constrained singular spectrum analysis and 1D-local binary patternsHealth Technol.20201069970910.1007/s12553-019-00395-4 ChenS. ZhangX. ChenL. YangZ. Automatic Diagnosis of Epileptic Seizure in Electroencephalography Signals Using Nonlinear Dynamics FeaturesIEEE Access20197610466105610.1109/ACCESS.2019.2915610 ZhangT. ChenW. LiM. Fuzzy distribution entropy and its application in automated seizure detection techniqueBiomed. Signal Process. Control.20183936037710.1016/j.bspc.2017.08.013 ZhangT. ChenW. LiM. Classification of inter-ictal and ictal EEGs using multi-basis MODWPT, dimensionality reduction algorithms and LS-SVM: A comparative studyBiomed. Signal Process. Control.20194724025110.1016/j.bspc.2018.08.038 MamliS. KalbkhaniH. Gray-level co-occurrence matrix of Fourier synchro-squeezed transform for epileptic seizure detectionBiocybern. Biomed. Eng.201939879910.1016/j.bbe.2018.10.006 Aayesha QureshiM.B. AfzaalM. FayazM. Machine learning-based EEG signals classification model for epileptic seizure detectionMultimed. Tools Appl.202180178491787710.1007/s11042-021-10597-6 LiY. WangX.-D. LuoM.-L. LiK. YangX.-F. GuoQ. Epileptic Seizure Classification of EEGs Using Time–Frequency Analysis Based Multiscale Radial Basis FunctionsIEEE J. Biomed. Health Inform.20182238639710.1109/JBHI.2017.265447928362595 AcharyaU.R. OhS.L. HagiwaraY. TanJ.H. AdeliH. Deep convolutional neural network for the automated detection and diagnosis of seizure using EEG signalsComput. Biol. Med.201810027027810.1016/j.compbiomed.2017.09.01728974302 SiulyS. AlcinO.F. BajajV. SengurA. ZhangY. Exploring Hermite transformation in brain signal analysis for the detection of epileptic seizureIET Sci. Meas. Technol.201913354110.1049/iet-smt.2018.5358 RiazF. HassanA. RehmanS. NiaziI.K. DremstrupK. EMD-Based Temporal and Spectral Features for the Classification of EEG Signals Using Supervised LearningIEEE Trans. Neural Syst. Rehabil. Eng.201624283510.1109/TNSRE.2015.244183526068546 SharmaM. PachoriR.B. AcharyaU.R. A new approach to characterize epileptic seizures using analytic time-frequency flexible wavelet transform and fractal dimensionPattern Recognit. Lett.20179417217910.1016/j.patrec.2017.03.023 ChandelG. UpadhyayaP. FarooqO. KhanY. Detection of Seizure Event and Its Onset/Offset Using Orthonormal Triadic Wavelet Based FeaturesIRBM20194010311210.1016/j.irbm.2018.12.002 ChenD. WanS. XiangJ. BaoF.S. A high-performance seizure detection algorithm based on Discrete Wavelet Transform (DWT) and EEGPLoS ONE201712e017313810.1371/journal.pone.017313828278203PMC5344346 SharmaR.R. VarshneyP. PachoriR.B. VishvakarmaS.K. Automated System for Epileptic EEG Detection Using Iterative FilteringIEEE Sens. Lett.201821410.1109/LSENS.2018.2882622 TiwariA.K. PachoriR.B. KanhangadV. PanigrahiB.K. Automated Diagnosis of Epilepsy Using Key-Point-Based Local Binary Pattern of EEG SignalsIEEE J. Biomed. Health Inform.20162188889610.1109/JBHI.2016.258997127416609 ZhangT. ChenW. LiM. Generalized Stockwell transform and SVD-based epileptic seizure detection in EEG using random forestBiocybern. Biomed. Eng.20183851953410.1016/j.bbe.2018.03.007 AbbasiM.U. RashadA. BasalamahA. TariqM. Detection of Epilepsy Seizures in Neo-Natal EEG Using LSTM ArchitectureIEEE Access2019717907417908510.1109/ACCESS.2019.2959234 KarimA.M. KaralÖ. ÇelebiF.V. A new automatic epilepsy serious detection method by using deep learning based on discrete wavelet transformProceedings of the 3rd International Conference on Engineering Technology and Applied Sciences (ICETAS)Skopje, Macedonia17–21 July 20181518 GaoX. YanX. GaoP. GaoX. ZhangS. Automatic detection of epileptic seizure based on approximate entropy, recurrence quantification analysis and convolutional neural networksArtif. Intell. Med.202010210171110.1016/j.artmed.2019.10171131980085 RamakrishnanS. MurugavelA.S.M. Epileptic seizure detection using fuzzy-rules-based sub-band specific features and layered multi-class SVMPattern Anal. Appl.2018221161117610.1007/s10044-018-0691-6 Al-HadeethiH. AbdullaS. DiykhM. DeoR.C. GreenJ. Adaptive boost LS-SVM classification approach for time-series signal classification in epileptic seizure diagnosis applicationsExpert Syst. Appl.202016111367610.1016/j.eswa.2020.113676 WaqarH. XiangJ. ZhouM. HuT. AhmedB. ShaporS.H. IqbalM.S. RaheelM. Towards Classifying Epileptic Seizures Using Entropy VariantsProceedings of the 2019 IEEE Fifth International Conference on Big Data Computing Service and Applications (BigDataService)Newark, CA, USA4–9 April 2019IEEEPiscataway Township, NJ, USA2019296300 TzimourtaK.D. TzallasA.T. GiannakeasN. AstrakasL.G. TsalikakisD.G. TsipourasM.G. Epileptic Seizures Classification Based on Long-Term EEG Signal Wavelet AnalysisProceedings of the VI Latin American Congress on Biomedical Engineering CLAIB 2014Paraná, Argentina29–31 October 2014Springer Science and Business Media LLCBerlin/Heidelberg, Germany2018165169 TruongN.D. KaveheiO. Low Precision Electroencephalogram for Seizure Detection with Convolutional Neural NetworkProceedings of the 2019 IEEE International Conference on Artificial Intelligence Circuits and Systems (AICAS)Hsinchu, Taiwan18–20 March 2019IEEEPiscataway Township, NJ, USA2019299301 NassrallaM. HaidarM. AlawiehH. El HajjA. DawyZ. Patient-Aware EEG-Based Feature and Classifier Selection for e-Health Epileptic Seizure PredictionProceedings of the 2018 IEEE Global Communications Conference (GLOBECOM)Abu Dhabi, United Arab Emirates9–13 December 2018IEEEPiscataway Township, NJ, USA201816 YuanQ. ZhouW. ZhangL. ZhangF. XuF. LengY. WeiD. ChenM. Epileptic seizure detection based on imbalanced classification and wavelet packet transformSeizure2017509910810.1016/j.seizure.2017.05.01828649016 ZhouM. TianC. CaoR. WangB. NiuY. HuT. GuoH. XiangJ. Epileptic Seizure Detection Based on EEG Signals and CNNFront. Aging Neurosci.2018129510.3389/fninf.2018.0009530618700PMC6295451 MahmoodianN. BoeseA. FriebeM. HaddadniaJ. Epileptic seizure detection using cross-bispectrum of electroencephalogram signalSeizure20196641110.1016/j.seizure.2019.02.00130769009 del RincónJ.M. SantofimiaM.J. del ToroX. BarbaJ. RomeroF. NavasP. LópezJ.C. Non-linear classifiers applied to EEG analysis for epilepsy seizure detectionExpert Syst. Appl.2017869911210.1016/j.eswa.2017.05.052 JaafarS.T. MohammadiM. Epileptic Seizure Detection using Deep Learning ApproachUHD J. Sci. Technol.20193415010.21928/uhdjst.v3n2y2019.pp41-50 TruongN.D. NguyenA.D. KuhlmannL. BonyadiM.R. YangJ. IppolitoS. KaveheiO. Integer Convolutional Neural Network for Seizure DetectionIEEE J. Emerg. Sel. Top. Circuits Syst.2018884985710.1109/JETCAS.2018.2842761 AbbaszadehB. YagoubM. Optimum Window Size and Overlap for Robust Probabilistic Prediction of Seizures with iEEGProceedings of the 2019 IEEE Conference on Computational Intelligence in Bioinformatics and Computational Biology (CIBCB)Siena, Italy9–11 July 2019IEEEPiscataway Township, NJ, USA201915 MohammadiM. KhanN.A. PouyanA.A. Automatic seizure detection using a highly adaptive directional time–frequency distributionMultidimens. Syst. Signal Process.2017291661167810.1007/s11045-017-0522-8 SunC. CuiH. ZhouW. NieW. WangX. YuanQ. Epileptic Seizure Detection with EEG Textural Features and Imbalanced Classification Based on EasyEnsemble LearningInt. J. Neural Syst.201929195002110.1142/S012906571950021731505978 AbugabahA. AlZubiA.A. Al-MaitahM. AlarifiA. Brain epilepsy seizure detection using bio-inspired krill herd and artificial alga optimized neural network approachesJ. Ambient. Intell. Humaniz. Comput.2021123317332810.1007/s12652-020-02520-y QinH. DengB. WangJ. YiG. WangR. ZhangZ. Deep Multi-scale Feature Fusion Convolutional Neural Network for Automatic Epilepsy Detection Using EEG SignalsProceedings of the 2020 39th Chinese Control Conference (CCC)Shenyang, China27–30 July 2020IEEEPiscataway Township, NJ, USA202070617066 AminS.U. AlsulaimanM. MuhammadG. MekhticheM.A. HossainM.S. Deep Learning for EEG motor imagery classification based on multi-layer CNNs feature fusionFuture Gener. Comput. Syst.201910154255410.1016/j.future.2019.06.027EEG Time Series Data (Department of Epileptology University of Bonn, Germany)Available online: http://epileptologie-bonn.de/cms/front_content.php?idcat=193&lang=3&changelang=3(accessed on 13 November 2021)EEG DatabaseAvailable online: https://epilepsy.uni-freiburg.de/freiburg-seizure-prediction-project/eeg-database/(accessed on 13 November 2021) SelesnickI. Wavelet Transform with Tunable Q-FactorIEEE Trans. Signal Process.2011593560357510.1109/TSP.2011.2143711 GhassemiN. ShoeibiA. RouhaniM. Hosseini-NejadH. Epileptic seizures detection in EEG signals using TQWT and ensemble learningProceedings of the 2019 9th International Conference on Computer and Knowledge Engineering (ICCKE)Mashhad, Iran24–25 October 2019403408 KumarS.P. SriraamN. BenakopP. JinagaB. Entropies based detection of epileptic seizures with artificial neural networkExpert Syst. Appl.2010373284329110.1016/j.eswa.2009.09.051 PolychronakiG.E. KtonasP.Y. GatzonisS. SiatouniA. AsvestasP.A. TsekouH. SakasD. NikitaK.S. Comparison of fractal dimension estimation algorithms for epileptic seizure onset detectionJ. Neural Eng.2010704600710.1088/1741-2560/7/4/04600720571184 SupriyaS. SiulyS. WangH. CaoJ. ZhangY. Weighted Visibility Graph with Complex Network Features in the Detection of EpilepsyIEEE Access201646554656610.1109/ACCESS.2016.2612242 GolovkoV. ArtsiomenkaS. KistenV. EvstigneevV. Towards automatic epileptic seizure detection in eegs based on neural networks and largest lyapunov exponentInt. J. Comput.201414364710.47839/ijc.14.1.650 HarrisonM.A.F. OsorioI. FreiM.G. AsuriS. LaiY.-C. Correlation dimension and integral do not predict epileptic seizuresChaos Interdiscip. J. Nonlinear Sci.20051503310610.1063/1.193513816252980 EstellerR. VachtsevanosG. EchauzJ. LittB. A comparison of waveform fractal dimension algorithmsIEEE Trans. Circuits Syst. I Regul. Pap.20014817718310.1109/81.904882 MártonL. BrassaiS. BakóL. LosoncziL. Detrended Fluctuation Analysis of EEG SignalsProcedia Technol.20141212513210.1016/j.protcy.2013.12.465 KantelhardtJ.W. ZschiegnerS.A. Koscielny-BundeE. HavlinS. BundeA. StanleyH. Multifractal detrended fluctuation analysis of nonstationary time seriesPhys. A Stat. Mech. Its Appl.20023168711410.1016/S0378-4371(02)01383-3 DasA.B. BhuiyanM.I.H. Discrimination and classification of focal and non-focal EEG signals using entropy-based features in the EMD-DWT domainBiomed. Signal Process. Control.201629112110.1016/j.bspc.2016.05.004 AcharyaU.R. FujitaH. SudarshanV.K. BhatS. KohJ.E.W. Application of entropies for automated diagnosis of epilepsy using EEG signals: A reviewKnowl.-Based Syst.201588859610.1016/j.knosys.2015.08.004 RaghuS. SriraamN. KumarG.P. Effect of Wavelet Packet Log Energy Entropy on Electroencephalogram (EEG) SignalsInt. J. Biomed. Clin. Eng.20154324310.4018/IJBCE.2015010103 ZhangA. YangB. HuangL. Feature Extraction of EEG Signals Using Power Spectral EntropyProceedings of the 2008 International Conference on BioMedical Engineering and InformaticsSanya, China27–30 May 2008IEEEPiscataway Township, NJ, USA2008Volume 2435439 RizalA. HadiyosoS. Sample Entropy on Multidistance Signal Level Difference for Epileptic EEG ClassificationSci. World J.20182018846325610.1155/2018/846325630279635PMC6157202 LiJ. YanJ. LiuX. OuyangG. Using Permutation Entropy to Measure the Changes in EEG Signals during Absence SeizuresEntropy2014163049306110.3390/e16063049 AcharyaU.R. HagiwaraY. DeshpandeS.N. SurenS. KohJ.E.W. OhS.L. ArunkumarN. CiaccioE.J. LimC.M. Characterization of focal EEG signals: A reviewFuture Gener. Comput. Syst.20199129029910.1016/j.future.2018.08.044 AzamiH. EscuderoJ. Refined composite multivariate generalized multiscale fuzzy entropy: A tool for complexity analysis of multichannel signalsPhys. A Stat. Mech. Its Appl.201746526127610.1016/j.physa.2016.07.077 MohammadpooryZ. NasrolahzadehM. HaddadniaJ. Epileptic seizure detection in EEGs signals based on the weighted visibility graph entropySeizure20175020220810.1016/j.seizure.2017.07.00128732281 MammoneN. Duun-HenriksenJ. KjaerT.W. MorabitoF.C. Differentiating Interictal and Ictal States in Childhood Absence Epilepsy through Permutation Rényi EntropyEntropy2015174627464310.3390/e17074627 SharmaR. PachoriR.B. AcharyaU.R. An Integrated Index for the Identification of Focal Electroencephalogram Signals Using Discrete Wavelet Transform and Entropy MeasuresEntropy2015175218524010.3390/e17085218 CaoZ. LinC.-T. Inherent Fuzzy Entropy for the Improvement of EEG Complexity EvaluationIEEE Trans. Fuzzy Syst.2018261032103510.1109/TFUZZ.2017.2666789 HeS. SunK. WangR. Fractional fuzzy entropy algorithm and the complexity analysis for nonlinear time seriesEur. Phys. J. Spéc. Top.201822794395710.1140/epjst/e2018-700098-x GiraultJ.-M. Humeau-HeurtierA. Centered and Averaged Fuzzy Entropy to Improve Fuzzy Entropy PrecisionEntropy20182028710.3390/e20040287PMC751280433265378 NobleW.S. What is a support vector machine?Nat. Biotechnol.2006241565156710.1038/nbt1206-156517160063 LiaoY. VemuriV.R. Use of K-Nearest Neighbor classifier for intrusion detectionComput. Secur.20022143944810.1016/S0167-4048(02)00514-X ZarjamP. EppsJ. ChenF. Spectral EEG featuresfor evaluating cognitive loadProceedings of the 2011 Annual International Conference of the IEEE Engineering in Medicine and Biology SocietyBoston, MA, USA30 August–3 September 2011IEEEPiscataway Township, NJ, USA2011Volume 20113841384410.1109/IEMBS.2011.609095422255177 MichielliN. AcharyaU.R. MolinariF. Cascaded LSTM recurrent neural network for automated sleep stage classification using single-channel EEG signalsComput. Biol. Med.2019106718110.1016/j.compbiomed.2019.01.01330685634 KuanarS. AthitsosV. PradhanN. MishraA. RaoK. Cognitive Analysis of Working Memory Load from Eeg, by a Deep Recurrent Neural NetworkProceedings of the 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)Calgary, AB, Canada15–20 April 201825762580 ShoeibiA. GhassemiN. KhodatarsM. MoridianP. AlizadehsaniR. ZareA. GorrizJ.M. Detection of Epileptic Seizures on EEG Signals Using ANFIS Classifier, Autoencoders and Fuzzy EntropiesarXiv20212109.04364 ShoeibiA. GhassemiN. AlizadehsaniR. RouhaniM. Hosseini-NejadH. KhosraviA. PanahiazarM. NahavandiS. A comprehensive comparison of handcrafted features and convolutional autoencoders for epileptic seizures detection in EEG signalsExpert Syst. Appl.202116311378810.1016/j.eswa.2020.113788 HasanzadehF. MohebbiM. RostamiR. Graph theory analysis of directed functional brain networks in major depressive disorder based on EEG signalJ. Neural Eng.20201702601010.1088/1741-2552/ab761332053813 TamburroG. Di FronsoS. RobazzaC. BertolloM. ComaniS. Modulation of Brain Functional Connectivity and Efficiency During an Endurance Cycling Task: A Source-Level EEG and Graph Theory ApproachFront. Hum. Neurosci.20201424310.3389/fnhum.2020.0024332733219PMC7363938 HuX. PedryczW. WangX. Fuzzy classifiers with information granules in feature space and logic-based computingPattern Recognit.20188015616710.1016/j.patcog.2018.03.011 SahaA. KonarA. NagarA.K. EEG Analysis for Cognitive Failure Detection in Driving Using Type-2 Fuzzy ClassifiersIEEE Trans. Emerg. Top. Comput. Intell.2017143745310.1109/TETCI.2017.2750761 Al-EzziA. YahyaN. KamelN. FayeI. AlsaihK. GunaseliE. Severity Assessment of Social Anxiety Disorder Using Deep Learning Models on Brain Effective ConnectivityIEEE Access20219868998691310.1109/ACCESS.2021.3089358 CaoJ. ZhaoY. ShanX. WeiH. GuoY. ChenL. ErkoyuncuJ.A. SarrigiannisP.G. Brain functional and effective connectivity based on electroencephalography recordings: A reviewHum. Brain Mapp.202110.1002/hbm.25683PMC872020134668603 PhangC.R. TingC.M. NomanF. OmbaoH. Classification of EEG-based brain connectivity networks in schizophrenia using a multi-domain connectome convolutional neural networkarXiv20191903.0885810.1109/JBHI.2019.294122231536026 KhodatarsM. ShoeibiA. SadeghiD. GhaasemiN. JafariM. MoridianP. KhademA. AlizadehsaniR. ZareA. KongY. Deep learning for neuroimaging-based diagnosis and rehabilitation of Autism Spectrum Disorder: A reviewComput. Biol. Med.202113910494910.1016/j.compbiomed.2021.10494934737139 ZhangG. DavoodniaV. Sepas-MoghaddamA. ZhangY. EtemadA. Classification of Hand Movements from EEG Using a Deep Attention-Based LSTM NetworkIEEE Sens. J.2020203113312210.1109/JSEN.2019.2956998 LiD. XuJ. WangJ. FangX. JiY. A Multi-Scale Fusion Convolutional Neural Network Based on Attention Mechanism for the Visualization Analysis of EEG Signals DecodingIEEE Trans. Neural Syst. Rehabil. Eng.2020282615262610.1109/TNSRE.2020.303732633175681 KrishnaG. TranC. CarnahanM. TewfikA.H. EEG based Continuous Speech Recognition using TransformersarXiv20192001.00501 LiuJ. ZhangL. WuH. ZhaoH. Transformers for EEG Emotion RecognitionarXiv20212110.06553 KhozeimehF. SharifraziD. IzadiN.H. JoloudariJ.H. ShoeibiA. AlizadehsaniR. IslamS.M.S. Combining a convolutional neural network with autoencoders to predict the survival chance of COVID-19 patientsSci. Rep.2021111534310.1038/s41598-021-93543-834321491PMC8319175 LuS. ZhuZ. GorrizJ.M. WangS. ZhangY. NAGNN: Classification of COVID-19 based on neighboring aware representation from deep graph neural networkInt. J. Intell. Syst.202110.1002/int.22686PMC865293638607823 SadeghiD. ShoeibiA. GhassemiN. MoridianP. KhademA. AlizadehsaniR. NahavandiS. An Overview on Artificial Intelligence Techniques for Diagnosis of Schizophrenia Based on Magnetic Resonance Imaging Modalities: Methods, Challenges, and Future WorksarXiv20212103.0308110.1016/j.compbiomed.2022.10555435569333 AlbardiF. KabirH.M. BhuiyanM.M.I. KebriaP.M. KhosraviA. NahavandiS. A Comprehensive Study on Torchvision Pre-trained Models for Fine-grained Inter-species ClassificationarXiv20212110.07097 AlizadehsaniR. KhosraviA. RoshanzamirM. AbdarM. SarrafzadeganN. ShafieD. KhozeimehF. ShoeibiA. NahavandiS. PanahiazarM. Coronary Artery Disease Detection Using Artificial Intelligence Techniques: A Survey of Trends, Geographical Differences and Diagnostic Features 1991–2020Comput. Biol. Med.202012810409510.1016/j.compbiomed.2020.10409533217660 GórrizJ.M. RamírezJ. OrtízA. Martínez-MurciaF.J. SegoviaF. SucklingJ. LemingM. ZhangY.-D. Álvarez-SánchezJ.R. BolognaG. Artificial intelligence within the interplay between natural and artificial computation: Advances in data science, trends and applicationsNeurocomputing202041023727010.1016/j.neucom.2020.05.078 SharifraziD. AlizadehsaniR. Hassannataj JoloudariJ. ShamshirbandS. HussainS. Alizadeh SaniZ. HasanzadehF. ShoaibiA. DehzangiA. Alinejad-RoknyH. CNN-KCL: Automatic Myocarditis Diagnosis using Convolutional Neural Network Combined with K-means ClusteringPreprints2020202007065010.20944/preprints202007.0650.v135240789 YuanY. XunG. SuoQ. JiaK. ZhangA. Wave2Vec: Deep representation learning for clinical temporal dataNeurocomputing2019324314210.1016/j.neucom.2018.03.074 KebriaP.M. AlizadehsaniR. SalakenS.M. HossainI. KhosraviA. KabirD. KoohestaniA. AsadiH. NahavandiS. TunselE. Evaluating Architecture Impacts on Deep Imitation Learning Performance for Autonomous DrivingProceedings of the 2019 IEEE International Conference on Industrial Technology (ICIT)Melbourne, Australia13–15 February 2019865870 DaiM. ZhengD. NaR. WangS. ZhangS. EEG Classification of Motor Imagery Using a Novel Deep Learning FrameworkSensors20191955110.3390/s1903055130699946PMC6387242 AyoobiN. SharifraziD. AlizadehsaniR. ShoeibiA. GorrizJ.M. MoosaeiH. KhosraviA. NahavandiS. ChofrehA.G. GoniF.A. Time Series Forecasting of New Cases and New Deaths Rate for COVID-19 using Deep Learning MethodsarXiv20212104.1500710.1016/j.rinp.2021.10449534221854PMC8233414 RajinikanthV. Joseph RajA.N. ThanarajK.P. NaikG.R. A customized VGG19 network with concatenation of deep and handcrafted features for brain tumor detectionAppl. Sci.202010342910.3390/app10103429

Proposed method for epileptic seizure detection.

Exemplary EEGs from five datasets.

EEG signal decomposition using TQWT for the Bonn dataset.

EEG signal decomposition using TQWT for the Freiburg dataset.

The frequency response for TQWT with the R = 3, Q = 1, and J = 8 parameters.

Block diagram of the proposed CNN–RNN network.

Results for different methods in different classification problems of the Bonn dataset.

sensors-21-07710-t001_Table 1

A thorough explanation of the five subsets of the dataset.

SetsSubjects
Patient StageElectrode TypeNum. of CasesNum. of DataLength of Segments
Set AEye OpenSurface51004097
Set BEye CloseSurface51004097
Set CSeizure FreeIntracranial51004097
Set DSeizure FreeIntracranial51004097
Set ESeizure ActivityIntracranial51004097
sensors-21-07710-t002_Table 2

More details about the six problem classifications.

SubjectsProblem ClassificationsDescription
Subject 1A–EHealthy—Ictal
Subject 2B–EHealthy—Ictal
Subject 3C–EInterictal—Ictal
Subject 4D and EInterictal—Ictal
Subject 5ABCD and ENormal—Seizure
Subject 6AB and CD and EHealthy—Interictal—Seizure
sensors-21-07710-t003_Table 3

More details about the Fribourg dataset.

PatientAgeGenderSeizure OriginSeizure TypeNumber of Seizures
115FemaleTemporal SP, CP4
238MaleFrontal SP, CP, GTC3
314MaleTemporalSP, CP5
426FemaleTemporalSP, CP, GTC5
516FemaleFrontalSP, CP, GTC5
631FemaleTemporalCP, GTC3
742FemaleTemporalSP, CP, GTC3
832FemaleTemporalSP, CP2
944MaleFrontalCP, GTC5
1047MaleFrontalSP, CP, GTC5
1110FemaleFrontalSP, CP, GTC4
1242FemaleFrontalSP, CP, GTC4
1322FemaleTemporalSP, CP, GTC2
1441FemaleTemporalCP, GTC4
1531MaleFrontalSP, CP, GTC4
1650FemaleTemporalSP, CP, GTC5
1728MaleTemporalSP, CP, GTC5
1825FemaleTemporalSP, CP5
1928FemaleFrontalSP, CP, GTC4
2033MaleTemporalSP, CP, GTC5
2113MaleTemporalSP, CP5
sensors-21-07710-t004_Table 4

Statistic features for epileptic seizure detection.

FormulaFeature NameEquations
Xmean=1n∑1nxi Mean(3)
Xvar=∑n=1Nxn−AM2N−1 Variance(4)
Xku=∑n=1Nxn−AM4N−1SD4 Kurtosis(5)
XSke=∑n=1Nxn−AM3N−1SD3 Skewness(6)
Xstd=∑n=1Nxn−AM 2n−1 Standard Deviation(7)
Maxxn Max(8)
sensors-21-07710-t005_Table 5

CNN–RNN hyper-parameters.

ParametersLayer
Kernel size = 3, activation = ‘relu’, filters = 32Conv1d
Kernel size = 3, activation = ‘relu’, filters = 32Conv1d_1
Pool_size = 2Maxpooling1d
Kernel size = 3, activation = ‘relu’, filters = 32Conv1d_2
---Flatten
Number of neurons = 64LSTM
Number of neurons = 128, activation = ‘relu’Dense
Number of neurons = 128, activation = ‘relu’Dense_1
Number of neurons = 2 or 3, activation = ‘softmax’Dense_2
sensors-21-07710-t006_Table 6

Results for the Bonn dataset.

MethodsSetsAccuracyPrecisionSpecSensF1-Score
Standard SVMA–E97.5097.3197.2997.3697.66
B–E98.1198.0698.0498.8298.03
C–E98.0598.5498.5698.4797.95
D and E98.6799.1198.4398.6298.48
ABCD and E98.1799.0398.1897.2698.26
AB and CD and E98.0398.7198.7298.1798.01
SVM-RBFA–E98.3898.6198.9498.9998.53
B–E98.2499.0998.7199.0298.96
C–E98.3398.9898.7699.1398.83
D and E98.2499.8698.8399.2299.03
ABCD and E98.1499.1798.3198.7298.97
AB and CD and E98.1799.0399.0398.6698.69
KNN (K = 3)A–E96.6296.3296.5094.7594.51
B–E96.3796.2496.2396.4996.37
C–E96.6295.3795.2898.0896.67
D and E97.8798.1298.4198.4698.57
ABCD and E96.9094.6296.8795.1994.34
AB and CD and E96.3195.1897.3097.4496.11
KNN (K = 5)A–E95.1295.7592.3492.2594.92
B–E96.3796.2598.2598.4997.37
C–E96.4994.9294.6297.2196.56
D and E96.7197.7797.7296.7397.75
ABCD and E95.9093.2196.3893.5092.34
AB and CD and E94.4294.3896.1595.3396.97
CNN–RNNA–E99.6199.7899.8199.4399.69
B–E99.4699.5199.1799.2299.46
C–E99.5199.4299.3199.4399.28
D and E99.8299.5999.6899.8299.61
ABCD and E99.7898.7198.9198.8398.81
AB and CD and E99.7199.6899.7999.6199.73
sensors-21-07710-t007_Table 7

Results for the Fribourg dataset.

MethodsAccuracySensitivitySpecificityPrecisionF1-Score
SVM97.1397.2497.3197.3997.28
SVM–RBF97.4197.8697.7397.4397.59
3NN96.6696.1995.9396.3997.11
5NN96.7196.0296.9396.0396.97
CNN–RNN99.1398.9698.9699.0199.11
sensors-21-07710-t008_Table 8

Comparison of the proposed method with other related works for the Bonn dataset.

WorkPreprocessingFeature ExtractionFeature SelectionClassifiersAccuracy
[21]TQWTCCEnt PCALS-SVM97.02%
[22]TQWTHybrid FeaturesFireflyRF97%
[23]TQWTAVP, STDNoK-NN98.80%
[24]TQWTStatistic FeaturesNoK-NN100%
[25]TQWTKNN EntropyWrapperSVM100%
[26]TQWTCTM, 2D-RPS plotsN/ANAN/A
[27]TQWTMvFENoLS-SVM84.67%
[28]EMD–TQWTIPDifferent MethodsLS-SVM99%
[29]TQWTSC, SS, SF, SSlNobootstrap100%
[30]TQWTCorrentropiesN/ARF92.78%
[31]TQWTKnnEnt, CCorrEnt, FzEntNoLS-SVM95%
[32]TQWTCentered correntropyNoRF98.30%
[33]TQWTRFFDs, AppEntNoSVMRF100%
[34]TQWTMixture CorrentropyVarious MethodsLS-SVM90.10%
[35]IEVDHM–HTVarious FeaturesStudent’s t-testLS-SVM100%
[36]FAWTCVDistEnt, logarithmic energy N/AFKNN100%
[37]Multi-Classes = 99.46%VMD, HTBLIMFsNoEMRVFLNTwo-Classes = 100%Multi-Classes = 99.46%
[38]Multi-Classes = 96.50%FilteringLSPNCASVMTwo-Classes = 99.10%
[39]Multi-Classes = 99.70%Filtering, DWTDifferent Features N/ASVMTwo-Classes = 99.50%Multi-Classes = 99.70%
[40]DWTLinear and Non-Linear FeaturesNoSVM99.50%
[41]DWTStatistic Features, Entropy, RWEWOASVM99.80%
[42]SSA1D-LBPNoSVMN/A
[43]DWTEntropy FeaturesANOVA-FSFSSVM99.50%
[44]Multi-Classes = 99.07%WPTFDEKruskal WallisKNNTwo-Classes = 99.69%Multi-Classes = 99.07%
[45]MODWPTStatistic ParametersDifferent MethodsLS-SVM99.60%
[46]FSSTGLCMN/AKNN99.59%
[47]ECTGraph Theory, FDNoRF98.50%
[48]MRBF–MPSOPSDPCASVM98.73%
[49]Z-Score Normalization1D-CNNNoSoftmax86.67%
[50]DWTPSRSVCMLS-SVM98.55%
[51]EMDSpectral and Temporal FeaturesNoSVMN/A
[52]ATFFWTFDDifferent MethodsLS-SVMTwo-Classes = 100%
[53]Multi-Classes = 100%TWDStatistical Features NoKNNMulti-Classes = 100%99.33%
[54]DWTStatistical FeaturesN/ASVMTwo-Classes = 97.97%
[55]Multi-Classes = 98%IMFsAmEDESARFMulti-Classes = 98%Two-Classes = 99.41%
[56]DoGLBP and Histogram FeaturesNoSVMMulti-Classes = 98.80%99.12%
[57]GSTSVD FeatureNoRF97.78%
[58]DCTHE and ARMA Model NoLSTM96%
[59]DWTFeature ExtractionNoN/A99.26%
[60]--ApEn and RQA NoN/A95%
[61]WTApproximate Entropy, LLE, Correlation DimensionFRBSN/A99%
[62]Clustering, Covariance MatrixStatistical Features Non-Parametric TestsAB-LS-SVMTwo-Classes = 99.64%
Proposed MethodTQWTStatistical + Frequency + Fractal and Entropy FeaturesProposed Convolutional RNN (CNN–RNN)Multi-Classes = 99.71%
sensors-21-07710-t009_Table 9

Comparison of the proposed method with other related works on the Fribourg dataset.

WorksPreprocessingFeature ExtractionFeature SelectionClassificationAccuracy
[63]FilteringApEn, SampEn, PE, PFuzzy--SVM95.3%
[64]DWTEnergy, Entropy, STD, Mean--SVM99.26%
[65]FFT----CNN92%
[66]NADWT, DESA, Temporal and Spatial AveragingFeature AggregationRF, Logistic, SVM95%
[67]WPTRelative Amplitude, PSD, PMRS--weighted ELM--
[68]Time and Frequency Domain ----CNN --
[69]Filtering, CSALinear and Non-Linear Features--SVM96.8%
[70]WTMaximum, Minimum, Mean, STDBag-of-WordsSVM--
[71]Filtering----LSTM97.75%
[72]FFT, Filtering----Integer-Net93.2%
[73]FilteringDifferent Features--SVM97.5%
[74]Filtering, HADTFDTF-Flux, TF-Entropy, TF-FlatnessSpatial AveragingLinear98.56%
[75]DWTUniform 1 D-LBP--Different Methods95.33%
[76]--Linear and Non-Linear Features Krill Herd AlgorithmProposed Method98.9%
Proposed MethodTQWTStatistical + Frequency + Fractal and Entropy FeaturesProposed Convolutional RNN (CNN–RNN)99.13