Skip to main content

Performance analysis of wavelet transforms and morphological operator-based classification of epilepsy risk levels


The objective of this paper is to compare the performance of singular value decomposition (SVD), expectation maximization (EM), and modified expectation maximization (MEM) as the postclassifiers for classifications of the epilepsy risk levels obtained from extracted features through wavelet transforms and morphological filters from electroencephalogram (EEG) signals. The code converter acts as a level one classifier. The seven features such as energy, variance, positive and negative peaks, spike and sharp waves, events, average duration, and covariance are extracted from EEG signals. Out of which four parameters like positive and negative peaksand spike and sharp waves, events and average duration are extracted using Haar, dB2, dB4, and Sym 8 wavelet transforms with hard and soft thresholding methods. The above said four features are also extracted through morphological filters. Then, the performance of the code converter and classifiers are compared based on the parameters such as performance index (PI) and quality value (QV).The performance index and quality value of code converters are at low value of 33.26% and 12.74, respectively. The highest PI of 98.03% and QV of 23.82 are attained at dB2 wavelet with hard thresholding method for SVD classifier. All the postclassifiers are settled at PI value of more than 90% at QV of 20.

1 Introduction

The electroencephalogram (EEG) is a measure of cumulative firing of neurons in various parts of the brain [1]. It contains information regarding changes in the electrical potential of the brain obtained from a given set of recording electrodes. These data include the characteristic waveforms with accompanying variations in amplitude, frequency, phase, etc., as well as brief occurrence of electrical patterns such as spindles, sharps, and spike waveforms [2]. EEG patterns have shown to be modified by a wide range of variables including biochemical, metabolic, circulatory, hormonal, neuroelectric, and behavioral factors in [3]. In the past, the encephalographer, by visual inspection, was able to qualitatively distinguish normal EEG activity from either the localized or generalized abnormalities contained within relatively long EEG records [4]. The most important activity possibly detected from the EEG is the epilepsy [5]. Epilepsy is characterized by an uncontrolled excessive activity or potential discharge by either a part or all of the central nervous system [5]. The different types of epileptic seizures are characterized by different EEG waveform patterns [6]. With real-time monitoring to detect epileptic seizures gaining widespread recognition, the advent of computers has made it possible to effectively apply a host of methods to quantify the changes occurring based on the EEG signals [4]. The EEG is an important clinical tool for diagnosing, monitoring, and managing neurological disorders related to epilepsy [7]. This disorder is characterized by sudden recurrent and transient disturbances of mental function and/or movements of body that results in excessive discharge group of brain cells [8]. The presence of epileptiform activity in the EEG confirms the diagnosis of epilepsy, which sometimes may be confused with other disorders producing similar seizure-like activity [9]. Between seizures, the EEG of a patient with epilepsy may be characterized by occasional epileptic form transients-spikes and sharp waves [10]. Seizures are featured by short episodic neural synchronous discharges with considerably enlarged amplitude. This uneven synchrony may happen in the brain accordingly, i.e., partial seizures can be visible only in few channels of the EEG signal or generalized seizures, that are seen in every channel of the EEG signal involving the whole brain [11]. Epileptic seizure is an abnormality in EEG gathering and is featured by short and episodic neuronal synchronous discharges with severely high amplitude. This anomalous synchrony may happen in the brain locally (partial seizures) and is visible only in fewer channels of the EEG signal or including the entire brain, i.e., visible in all the channels of the EEG signal [12].

1.1 Related works

In the last three decades, the analysis and classification of epilepsy from EEG signal has become a fascinating research. A huge volume of research has already been performed which includes spike detection, classification epilepsy seizures, ictal and inter ictal analysis, nonlinear and linear analysis and soft computing methods. Gotman [9] discussed the improvement of epileptic seizure detection and evaluation. Pang et al. [10] summarized the history and evaluation of various spike detecting algorithms. The authors in [13] have discussed the different neural networks as a function approximation and universal approximation for epilepsy diagnosis. Rezasarang [14] encapsulated the performance of spike detecting algorithms in terms of sensitivity, specificity, and average detection. Rezasarang [14] orders the performance of spike detecting algorithms in terms of good detection ratio (GDR). McSharry et al. [8] discussed and enumerated the nonlinear methods and its relevance to predict epilepsy by considering EEG samples as time series. Majumdar [15] reviews various soft computing approaches of EEG signals which emphasize more on pattern recognition techniques. The paper [15] mainly focuses on dimensionality reduction, SNR problems, linear and soft computing techniques for EEG signal processing. Majumdar concludes that the neural network and Bayesian approaches are two popular choices even though linear statistical discriminants are easier to implement. Great deals of support vector machines (SVM) are also discussed in this paper for their classification accuracy. Hence, the EEG signal occupies a great deal of data regarding the work of the brain. However, classification and estimation of the signals are inadequate. As there is no explicit category suggested by the experts, visual examination of EEG signals in time domain may be deficient. Routine clinical diagnosis necessitates the analysis of EEG signals [13]. Hence, automation and computer methods have been utilized for this reason. Current multicenter clinical analysis indicates confirmation of premonitory symptoms in 6.2% of 500 patients with epilepsy [16]. Another interview-based study found that 50% of 562 patients felt ‘auras’ before seizures. Those clinical data provide a motivation to search for pre-monitoring alterations on EEG recordings from the brain and to employ a device that can act without human intervention to forewarn the patient [17]. On the other hand, despite decades of research, existing techniques do not yield to better performance. This paper addresses the application and comparison of singular value decomposition (SVD), expectation maximization (EM), and modified expectation maximization (MEM) classifiers towards optimization of code converter outputs in the classification of epilepsy risk levels.

Weber et al. [18] have proposed the three-stage design of an EEG seizure detection system. The first stage of the seizure detector compresses the raw data stream and transforms the data into variables which represent the state of the subject's EEG. These state measures are referred to as context parameters. The second stage of the system is a neural network that transforms the state measures into smaller number of parameters that are intended to represent measures of recognized phenomena such as small seizure in the EEG [9, 10]. The third stage consists of a few simple rules that confirm the existence of the phenomena under consideration. Similarly, this paper also presents a three-stage design for epilepsy risk level classification. The first stage extracts the seven required distinct features from raw EEG data stream of the patient in time domain. The next stage transforms these features into a code word through a code converter with seven alphabets which represents the patient's state in five distinct risk levels for a 2-s epoch of EEG signal per channel. The last stage is a SVD, EM, or MEM which optimizes the epilepsy risk level of the patient. The organization of the paper is as follows. Section 1 introduces the paper and materials, and its methods are discussed in Section 2. Section 3 describes about the SVD, EM, and MEM as postclassifiers for epilepsy risk level classification. Results are discussed in Section 4, and the paper is concluded in Section 5.

2 Materials and methods

2.1 Data acquisition of EEG signals

For a comparative study and to analyze the performance of the pre- and postclassifiers, we have obtained the raw EEG data of 20 epileptic patients in European data format (EDF) who underwent treatment in the Neurology Department of Sri Ramakrishna Hospital, Coimbatore. An issue that has been given great attention is the preprocessing stage of the EEG signals because it is important to use the best technique to extract the useful information embedded in the nonstationary biomedical signals. The obtained EEG records were continuous for about 30 s, each of them were divided into epochs of 2-s duration. A 2-s epoch is long enough to detect any significant changes in activity and presence of artifacts and also short enough to avoid any redundancy in the signal [19]. For a patient, there are 16 channels over three epochs. Having a frequency of 50 Hz, each epoch was sampled at a frequency of 200 Hz. Each sample corresponds to the instantaneous amplitude values of the signal, totaling to 400 values for an epoch. Figure 1 shows the model of the flow diagram of epilepsy risk level classification system. Four types of artifacts were present in our data. They included eye blink, electromyography (EMG) artifact, and chewing and motion artifacts [20]. Approximately, 1% of the data was artifacts. We did not make any attempt to select certain number of artifacts and of a specific nature. The objective of including artifacts was to have spikes versus nonspike categories of waveforms. The latter could be a normal background EEG and/or artifacts [21]. In order to train and test the feature extractor and classifiers, we need to select a suitable segment of EEG data. In our experiment, the training and testing were selected through a short sampling window and all EEG signals were visually examined by a qualified EEG technologist. A neurologist's decision regarding EEG features (or normal EEG segment) was used as the gold standard. We choose a sample window of 400 points corresponding to 2 s of the EEG data. This width can cover almost all types of transient epileptic patterns in the EEG signal, even though seizure often lasts longer [22].

Figure 1
figure 1

Flow diagram for epilepsy risk level classification system.

In order to classify the risk level of the patients, certain parameters were chosen which are detailed below:

  1. 1.

    For every epoch, the energy is calculated as [4]

    E = i = 1 n x i 2

where x i is the signal sample value and n is the number of such samples.

  1. 2.

    One of the simplest linear statistics that may be used for investigating the dynamics of underlying the EEG is the variance of the signal calculated in consecutive nonoverlapping windows. The variance (σ) is given by

    σ 2 = i = 1 n x i μ 2 n

where μ is the average amplitude of the epoch.

  1. 3.

    For the average variance, the covariance of duration is determined by using the equation below:

    CD = i = 1 p D t i 2 p D 2

The following are the four parameters which are extracted using morphological filters and wavelet transforms:

D = i = 1 p t i p

where t i is the peak to peak duration and p is the number of such durations.

  1. 1.

    The total number of positive and negative peaks is found above the threshold.

  2. 2.

    For a zero crossing function, if it lies between 20to 70 ms, then the spikes can be detected. If the zero crossing function lies between 70to 200 ms then the sharp waves are detected when the zero crossing function lies between 70 to 200 ms.

  3. 3.

    After having detected, the total number of spikes and sharp waves were determined as the events.

  4. 4.

    The duration for these waves is determined by the relation:

2.2 Wavelet transforms for feature extraction

The brain signals are nonstationary in nature. In order to capture the transients and events of the waveforms, we are in dire state to visualize the time and frequency simultaneously. Hence, the wavelet transforms are the better choice to extract the transient features and events from the EEG signals. The wavelet transform-based feature extraction is discussed as follows:

Let us consider a function f (t). The wavelet transform of this function is defined as [23]

wf a , b = f t ψ a , b t dt

where ψ* (t) is the complex conjugate of the wavelet function ψ (t).

With the set of the analyzing function, the wavelet family is deduced from the mother wavelet ψ (t) by [24]

ψ a , b t = 1 2 ψ t b a

where a is the dilation parameter and b is the translation parameter.

The feature extraction process is initialized by studying the effect of simple Haar threshold. The Haar wavelet function can be represented as [25].

ψ t = 1 ; 0 t < 1 / 2 1 ; 1 / 2 t < 1 0 : otherwise

Wavelet thresholding is a signal estimation technique that exploits the capabilities of wavelet transform for signal denoising or smoothing. It depends on the choice of a threshold parameter which determines to a great extent the efficacy of denoising.

ρ T x = x , if x > T 0 , if x T

where T is the threshold level.

Typical threshold operators for denoising include hard threshold, soft threshold, and affine (firm) threshold. Hard threshold is defined as [24]. Soft thresholding (wavelet shrinkage) is given by

ρ T x = x T , if x T x + T , if x T 0 , if x < T

Haar, Db2, Db4, and Sym8 wavelets with hard thresholding and four types of soft thresholding methods such as heursure, minimax, rigsure, and sqtwolog are used to extract the parameters from EEG signals. With the help of an expert's knowledge and our experiences with the references [5, 20, 26], we have identified the following parametric ranges for five linguistic risk levels (very low, low, medium, high, and very high) in the clinical description for the patients which is shown in Table 1.

Table 1 Parameter ranges for various risk levels

The output of code converter is encoded into the strings of seven codes corresponding to each EEG signal parameter based on the epilepsy risk levels threshold values as set in Table 1. The expert defined threshold values as containing noise in the form of overlapping ranges. Therefore, we have encoded the patient risk level into the next level of risk instead of a lower level. Likewise, if the input energy is at 3.4, then the code converter output will be at medium risk level instead of low level [26].

2.3 Code converter as a preclassifier

The encoding method processes the sampled output values as individual code. Since working on definite alphabets is easier than processing numbers with large decimal accuracy, we encode the outputs as a string of alphabets. The alphabetical representation of the five classifications of the outputs is shown in Table 2.

Table 2 Representation of risk level classifications

The ease of operation in using characteristic representation is obviously evident than that in performing cumbersome operations of numbers. By encoding each risk level from one of the five states, a string of seven characters is obtained for each of the 16 channels of each epoch. A sample output with actual patient readings is shown in Table 3 for eight channels over three epochs.

Table 3 Output of code converter for patient 2

It can be seen that channel 1 shows low-risk levels while channel 7 shows high-risk levels. Also, the risk level classification varies between adjacent epochs. There are 16 different channels for input to the system at three epochs. This gives a total of 48 input and output pairs. Since we deal with known cases of epileptic patients, it is necessary to find the exact level of epilepsy risk in the patient. This will also aid towards the development of automated systems that can be precisely classify the risk level of the epileptic patient under observation. Hence, an optimization is necessary. This will improve the classification of the patient and can provide the EEG with a clear picture [20]. The outputs from each epoch are not identical and are varying in condition such as [YYZXXXX] to [WYZYYYY] to [YYZZYYY]. In this case, energy factor is predominant and thus results in the high-risk level for two epochs and low-risk level for middle epoch. Channels 5 and 6 settle at high-risk level. Due to this type of mixed state output, we cannot come to a proper conclusion. Therefore, we group four adjacent channels and optimize the risk level. The frequently repeated patterns show the average-risk level of the group channels. Same individual patterns depict the constant risk level associated in a particular epoch. Whether a group of channel is at the high-risk level or not is identified by the occurrences of at least one Z pattern in an epoch. It is also true that the variation of the risk level is abrupt across epochs and eventually in channels. Hence, we are in a dilemma and cannot come up with the final verdict. The five risk levels are encoded as Z > Y > X > W > U in binary strings of length five bits using weighted positional representation as shown in Table 4. Encoding each output risk level gives us a string of seven alphabets, the fitness of which is calculated as the sum of probabilities of the individual alphabets. For example, if the output of an epoch is encoded as ZZYXWZZ, its fitness would be 0.419352.

Table 4 Binary representation of risk levels

The performance index of the code converter is given as [19].

PI = PC MC FA PC × 100

Where PI is the performance index, PC is the perfect classification, MC is the missed classification and FA is the false alarm.

The performance of code converter is 44.81%. The perfect classification represents when the physician agrees with the epilepsy risk level. Missed classification represents a high level as low level. False alarm represents a low level as high level with respect to the physician's diagnosis. The other performance measures are also defined as below:

The sensitivity Se and specificity Sp are represented as [19]

Se = PC / PC + FA × 100 0.5 / 0.6 × 100 = 83.33 %
Sp = PC / PC + MC × 100 0.5 / 0.7 × 100 = 71.42 %
Average detection AD = Sensitivity + Specificity / 2 AD = 78.875 .
Relative risk = Sensitivity / Specificity 1.166

The relative risk factor indicates the stability and sensitivity of the classifier. For an ideal classifier, the relative risk will be unity. More sensitive classifier will have this factor slightly above unity, whereas slow response classifier makes this factor lower than unity. We have obtained a low value of just 40% for performance index and 83.33%, 71.42%, 78.87%, and 1.166 for sensitivity, specificity, average detection, and relative risk for the code converter. Due to the low performance measures, it is essential to optimize the output of the code converter. Performance index of code converters output using different wavelet transforms for hard thresholding methods are tabulated in Table 5.

Table 5 Performance of code converter output based on wavelet transform along hard thresholding

2.4 Rhythmicity of code converter

Now, we are about to identify the rhythmicity of code converter techniques which is associated with nonlinearities of the epilepsy risk levels. Let the rhythmicity be defined as [10]

R = C D

where C is the number of categories of patterns and D is the total number of patterns which is 960 in our case. For an ideal classifier, C is to be one and R = 0.001042. Table 6 shows the rhythmicity of the code converter classifier for hard thresholding of each wavelet. Table 6 shows that the value of R is highly deviated from its ideal value. Hence, it is necessary to optimize the code converter output to endure a singleton risk level. In the following section, we discuss about the morphological filtering of EEG signals.

Table 6 Rhythmicity of code converter for wavelets with hard thresholding

2.5 Morphological filtering for feature extraction of EEG signals

Morphological filtering was chosen over other methods such as the temporal approach of the EEG signal and wavelet-based approach due to the fact that morphological filtering can precisely determine the spikes with a very high accuracy rate [14]. Let us call it as a function f (t). Let us also take into account a structuring element g (t) which together with f (t) be the subsets of Euclidean space E.

Accordingly, the Minkowski addition and subtraction [6] for the function f (t) is given by the relation


f g t = max t u F u G f t u + g u


fΘg t = min t u F u G f t u - g u

The opening and closing functions of the morphological filter is given as:


f ° g t = g S g t


f g t = f g S Θg t

The abovementioned equations help us in determining the peaks and valleys in the original recording [7]. The opening function (erosion-dilation) is used in smoothing of the convex peak of the original signal, and the closing function (dilation-erosion) is used in smoothing the concave peak of the signal. Combinations of opening and closing function lead to the formation of a new filter which when fed with the original signal can divide it into two, the first signal being defined by a structuring element and the second signal being the residue of f (t). This type of filtering is done in order to detect the spikes with high accuracy. For two structuring elements, say g1 (t) and g2 (t), the open-close (OC) and close-open (CO) functions are defined as

OC f t = f t ° g 1 t g 2 t
CO f t = f t g 1 t ° g 2 t

When considered separately, the OC and CO functions result in a variation in amplitude, i.e., while OC results in lower amplitude; the CO function yields higher amplitude. For easier interpretation and calculation, we go for the average of the two defined as opening-closing and closing-opening (OCCO) function. The same is depicted below as

OCCO f t = OC f t + CO f t / 2

f (t) is the original signal represented as

f t = x t + OCCO f t

where x (t) is the spiky part of the signal.

Performance index, sensitivity, and specificity of code converter outputs through morphological filter-based feature extraction arrived at the low value of 33.46%, 76.23%, and 77.42%, respectively. This scenario impacts the optimization of code converter outputs using postclassifier to accomplish a singleton result. The following section describes about the outcome of SVD, EM, and MEM techniques as postclassifier.

3. Singular value decomposition, expectation maximization, and modified EM as postclassifier for classification of epilepsy risk levels

In this section, we discuss the possible usage of SVD, EM, and MEM as a postclassifier for classification of epilepsy risk levels. The SVD was established in 1870s by Beltrami and Jordan for real square matrices [27]. It is used mainly for dimensionality reduction and determining the modes of a complex linear dynamical system [27]. Since then, SVD is regarded as one of the most important tools of modern numerical analysis and numerical linear algebra.

3.1 SVD theorem

Let us have an m × n matrix A = [a1, a2, a3…………, an]. The SVD theorem states that [28]:


where ARm × n (with m ≥ n), URm × n, VRn × n, And S is a diagonal matrix of size Rn × n.

Equation 24 can be further realized as:

A = P σ k u k v k T

The columns of U are called the left singular vectors of matrix A, and the columns of V are called the right singular vectors of A. P = min (m, n) and ∑ is called as the singular value matrix with along the diagonal.

We have taken the EEG records of 20 patients for our study. Each patient's sample is composed of a 16 × 3 matrix as code converter outputs depicted in Table 3. Considering this to be as matrix A, SVD is computed. The so obtained eigenvalue is eventually regarded as the patient's epilepsy risk level. The similar procedure is carried out in finding out the remaining eigenvalues of other patients as well.

3.2 Expectation maximization as a postclassifier

The EM is often defined as a statistical technique for maximizing complex likelihoods and handling incomplete data problem. EM algorithm consists of two steps namely:

  • Expectation step (E Step): Say for data x, having an estimate of the parameter and the observed data, the expected value is initially computed [29]. For a given measurement,y1 and based on the current estimate of the parameter, the expected value of x1 is computed as given below:

    x 1 k + 1 = E x 1 | y 1 , p k

    This implies

    x 1 k + 1 = y 1 1 / 4 1 4 + p k 2
  • Maximization step (M Step): From the expectation step, we use the data which were actually measured to determine the maximum likelihood (ML) estimate of the parameter.

  • Considering the code converter output, let us take a set of unit vectors to be as ?. We will have to find out the parameters µ and ? of the distribution Md (µ, k). Accordingly, we can form the equation as [30]

    ? = X i | X i ~ Md µ , k for 1 = i = n
  • Considering xi??, the likelihood of ? is:

    P ? | µ , k = P x i .. xn | µ , k = ? i = 1 n f ( x i | µ , k ) = ? i = 1 n c d k e k µ T x i
  • The log likelihood of Equation 25 can be written as:

    L ? | µ , k = ln P ? | µ , k = n ln cd k + k µ Tr

    where r?=?? i x i .

  • In order to obtain the likelihood parameters µ and ?, we will have to maximize Equation 28 with the help of Lagrange operator ?. The equation can be written as:

    L µ , ? , ? , ? = n ln cd k + k µ Tr + ? 1 - µ T µ
  • Derivating Equation 29 with respect to µ, ?, and ? and equating these to zero will yield the parameter constraints as

    µ ^ = k ^ 2 ? ^ r
    µ ^ T µ ^ = 1
    n c ' k ^ c d k ^ = - µ ^ T r
  • In the expectation step, the threshold data are estimated, given the observed data and current estimate of the model parameters [31]. This is achieved using the conditional expectation, explaining the choice of terminology. In the M step, the likelihood function is maximized under the assumption that the threshold data are known. The estimate of the missing data from the E step is used in lieu of the actual threshold data.

3.3 Modified expectation maximization algorithm

In this paper, a ML approach uses a modified EM algorithm for pattern optimization. Similar to the conventional EM algorithm, this algorithm alternated between the estimation of the complete loglikelihood function (E step) and the maximization of this estimate over values of the unknown parameters (M step) [32]. Because of the difficulties in the evaluation of the ML function [33], modifications are made to the EM algorithm as follows.

The method of maximum likelihood corresponds to many well-known estimation methods in statistics. For example, one may be interested in the heights of adult female giraffes, but been unable due to cost or time constraints, to measure the height of every single giraffe in a population. Assuming that the heights are normally (Gaussian) distributed with some unknown mean and variance, the mean and variance can be estimated with MLE while only knowing the heights of some sample of the overall population.

Given a set of samples X = {x1, x2xn}, the complete data set S = (X, Y) consists of the sample set X and a set Y of variable indicating from which component of the mixtures the samples came. The description which is given below explains how to estimate the parameters of the Gaussian mixtures with the maximization algorithm. After optimization of the patterns, maximum likelihood is adopted to redesign the intracranial area into two clusters. Basically, maximum likelihood algorithm is a statistical estimation algorithm used for finding log likelihood estimates of parameters in probabilistic models [30].

  1. 1.

    Find the initial values of the maximum likelihood parameters which are mean, covariance, and mixing weights.

  2. 2.

    Assign each x i to its nearest cluster centerck by Euclidean distance (d).

  3. 3.

    In maximization step, maximization can be used.The likelihood function is written as:

    Q θ i + 1 θ i = max Q θ i θ , θ i + 1 = arg max Q θ , θ i
    d p , q = d p , q = i + 1 n ( q i p i ) 2
  4. 4.

    Repeat iterations and do not stop the loop until it becomes small enough.

The algorithm terminates when the difference between the log likelihood for the previous iteration and current iteration fulfills the tolerance. For μ = 0 and σ = 1, the likelihood function was applied to the 16 × 3 matrix of the code converter output by having truncated to the known endpoints.

4. Results and discussion

To study the relative performance of these code converter and SVD, EM, and MEM, we measure two parameters, the performance index and the quality value. These parameters are calculated for each set of 20 patients and compared.

4.1 Performance index

A sample of performance index of morphological filter-based feature extraction with code converters, singular value decomposition, EM, and MEM for an average of 20 known epilepsy data set shown in Table 7. As shown in Table 7, the morphological filter-based feature extraction along with SVD optimization is ranked at first with high PI of 89.48% against the 80.1% and 83.35% of EM and MEM methods, respectively. But the morphological filter may be plugged into more missed classification rather than less false alarm which is a dangerous trend. Therefore, this method will be considered as a lazy and high threshold classifier.

Table 7 Performance index for morphological based feature extraction

Table 8 depicts the performance analysis of wavelet transform with hard thresholding method. In case of hard thresholding, while code converter has got an average classification rate and false alarm of 62.68% and 18.105%, respectively, EM optimizer has 87.39% of perfect classification with a false alarm rate of 4.43%. With not much of deviations, MEM has 89.36% and 4.46% of average perfect classification and false alarm, respectively. SVD optimization has the highest value of perfect classification rate of 96.58% with zero false alarms. Hence, SVD optimizer can be regarded as the best postclassifier. In all the four wavelet transforms, SVD postclassifier is the best suited one to achieve the high classification rate. EM and MEM techniques fail miserably to achieve better classification accuracy when compared with SVD classifier.

Table 8 Performance analysis of wavelet transforms with hard thresholding

Table 9 represents the performance analysis of wavelet transforms with soft thresholding with code converter, SVD, EM, and MEM. It can be found that, in soft thresholding, the code converter has an average perfect classification of 65.6 and false alarm of 11.94. SVD has a classification rate of over 85% with comparatively higher values of false alarms. MEM optimizer claims to be the best optimizer as it has a classification rate of 93.97% with a false alarm rate of 3.5 only. This is obtained when Haar wavelet is used with minimax soft thresholding.

Table 9 Performance analysis of Haar wavelet transforms with soft thresholding

4.2 Quality value

This parameter determines the overall quality of the classifiers used. The relation for quality value is given by [19],

Q V = C R fa + 0.2 × T dly × P dct + 6 × P msd

Where C is the scaling constant, Rfa is the false alarm per set, Tdly is the average delay of onset classification, Pdct is the percentage of perfect classification, and Pmsd is the percentage of perfect risk level missed.

By setting the value of ‘C’ to a constant value, say 10, the classifier with the highest QV is the better one. Table 10 depicts the quality value of wavelet transforms with hard thresholding and SVD, EM, and MEM optimization methods. It was observed that SVD with dB2 wavelet in hard thresholding attained the maximum value of QV at 23.82, and EM with Haar wavelet has the low value of QV at 18.32.

Table 10 Quality value of wavelet transforms with hard thresholding

Table 11 shows the performance analysis of 20 patients using dB2 wavelet hard thresholding with SVD, EM, and MEM as postclassifiers. The evaluation parameters achieved an appreciable value in the case of SVD postclassifier when compared to the other two classifiers. Hence, we can choose SVD as a good postclassifier for epilepsy risk level classification. All the three postclassifiers are bestowed with the best sensitivity and specificity measures. EM and MEM classifiers are plugged into the higher false alarm rate, and this leads to the lower QV and PI for the system.

Table 11 Performance analysis of twenty patients using db2 wavelet hard thresholding with SVD, EM, and MEM postclassifiers

Since the Haar wavelet is a predominant wavelet, we had chosen this wavelet for the four types of soft thresholding methods and the same is depicted in Table 12. As seen in Table 12, the highest QV of 22.54 is attained in the minimax soft thresholding with MEM as a postclassifier.

Table 12 Quality value of Haar wavelet transforms with soft thresholding

Table 13 exhibits the performance analysis of 20 patients using Haar wavelet in soft thresholding with SVD, EM, and MEM postclassifiers. MEM postclassifier with minimax soft thresholding reached the better QV and PI when compared to SVD and EM classifiers. A slight incremental tradeoff in the weighted delay for MEM is responsible for this performancewhen comparedwith SVD and EM classifiers. SVD fails to achieve a good performance in this methodology due to more false alarm rate. EM is struck in the middle path as far as performance index is concerned.

Table 13 Performance analysis of 20 patients using Haar wavelet in soft thresholding with SVD, EM, and MEM postclassifiers

Table 14 shows the performance analysis of 20 patients using morphological filters with SVD, EM, and MEM postclassifiers. In this method, SVD outperforms other classifiers in terms of QV and PI. This morphological filtering is inherited with slow response and is considered to be a high-threshold classifier. SVD classifier is summed with low false alarm and weighted delays. All these methods are in an average, positioned at more than 90% of performance index, and around quality value of 18. Since for all these classifiers, the obtained weighted delay is more than 2 s; it leads to larger threshold and slow response system.

Table 14 Performance analysis of 20 patients using morphological filters with SVD, EM, and MEM postclassifiers

We wish to analyze the time complexity of the postclassifiers in terms of weighted delay and quality value. Table 15 shows the performance analysis of postclassifiers in terms of weighted delay and quality value. It is observed that the four types of wavelet transforms in hard thresholding method along with SVD postclassifier attained low weighted delay and high value of QV.

Table 15 Performance analysis of postclassifiers in terms of weighted delay and quality value

In the case of Table 15, the EM and MEM classifiers are either plugged into more missed classification or false alarms and subsequently leads to lower value of QV less than 20 in most of the wavelet transforms. In case of soft thresholding, dB2 wavelet in rigsure thresholding for MEM postclassifier outperforms other fifteen methods. Morphological filters are stacked at higher delay with QV set at near 20.

Table 16 shows a good collection of recent papers in this area are given in the review paper by Rajendra Acharya etal. in [34]. Studies that presented techniques for two-class (normal, ictal) epilepsy activity classification are that of Nigam and Graupe [35] who used a multistage nonlinear pre-processing filter along with an artificial neural network (ANN) for the automated detection of epileptic signals and obtained an accuracy of around 97.20%. Nonlinear parameters like CD, LLE, H, and entropy were used to characterize the EEG signal and discriminate epileptic and alcoholic EEG from normal EEG with more than 90%accuracy [36]. Using the same dataset, the same group automatically classified EEG signals into normal and epileptic using different entropies using an adaptive neuro-fuzzy interference system(ANFIS) and obtained an accuracy of 92.22% [37]. Time domain and frequency domain EEG features combined with Elman network were used to classify the two classes with an accuracy, sensitivity, and specificity of 99.6% [38]. Normal and epileptic EEG signals were automatically identified with a classification accuracy of85.9% using discrete wavelet transform (DWT) sub-band energy as input features to adaptive neural fuzzy network [39]. Srinivasan et al. [40] developed an automated epileptic EEG detection system using approximate entropy as the feature in Elman and probabilistic neural networks. Elman network yielded an overall accuracy of 100%. Tzallas et al. [41] employed time-frequency methods to analyze selected segments of EEG signals for automated detection of seizure using neural network and obtained an accuracy ranging from 97.72% to 100%. Subasi [42] applied DWT on EEG signals and decomposed them into frequency sub-bands. DWT coefficients were converted into four statistical features, and these were fed to a modular neural network called mixture of experts (MEs). They classified normal and epileptic EEG signals with an accuracy of 94.5%, sensitivity of 95%, and specificity of 94%. Polat and Gunes [43] classified EEG signals into epileptic and normal using fast Fourier transform (FFT)-based Welch method and decision tree classifier and achieved a maximum classification accuracy of 98.72%, sensitivity of 99.4%, and specificity of 99.31%. The same group [44] used the Welch FFT method for feature extraction, PCA for dimensionality reduction, and a new hybrid automated identification system based on artificial immune recognition system (AIRS) with fuzzy resource allocation mechanism for classification of normal and epileptic segments. They reported an accuracy of 100%.The same group ([45] used autoregressive (AR) for feature extraction and C4.5 decision tree classifier for classification and reported an accuracy of99.32%. Ocak [46] developed a method for automated seizure detection based on ApEn and DWT. They were able to distinguish seizures with more than 96% accuracy. Guo et al.conducted many studies using ANN for classification and reported an accuracy of95.2%, sensitivity of 98.17%, and specificity of 92.12% using relative wavelet energy-based features [47]; an accuracy of 99.85%, sensitivity of 100%, and specificity of 99.2% using wavelet transform and ApEn features [48]; an accuracy of 99.60% using wavelet transform and line length feature [49]; and an accuracy of 99% using genetic programming-based features in a K-nearest neighbor (KNN)classifier [50]. The DWT features were reduced using PCA, ICA, andLDA, and the resultant features were used to classify normal andepilepsy EEG signals using SVM classifier [51]. They obtained an accuracy of 98.85% using PCA method,99.5% using ICA method, and 100% using LDA method. Ubeyli [52] used AR methods for feature extraction and SVM for classificationand reported an accuracy of 99.56%. In other recent studies, 100% classification accuracy was achieved by Lima et al. [53] (wavelet transform and SVM), Wang et al. [54] (wavelet packet entropy and KNN), Iscan et al. [55] (cross correlation and PSDand SVM), and Orhan et al. [56] (DWT and ANN). Finally, the proposed system by authors used seven parameters along with wavelet hard thresholding and obtained an accuracy of 99.03%, sensitivityof 99.05%,and specificity of 99.1%.Table 16 gives a summary of the above listed studies for automated detection of normal and epileptic classes. It can be observed that a variety of methods like FFT, time-frequency, DWT, morphological filtering,wavelet, statisticalmeasures, nonlinear, chaotic, and entropy measures, and dimension reduction methods like PCA, ICA,SVD,EM,MEM, and LDA are used to analyzeEEG to detect epileptic state from normal state.

Table 16 Summary of previous works for automated detection of normal and epileptic classes

5 Conclusions

The objective of this paper is to classify the risk level of the epileptic patients from the EEG signals. The aim is to obtain high classification rate, performance index, quality value with low false alarm, and missed classification. Due to the nonlinearity obtained and also the poor performance found in the code converters, an optimization was vital for the effective classification of the signals. We opted SVD, EM, and MEM as postclassifiers. Morphological filters were also used for the feature extraction of the EEG signals. After having computed the values of PI and QV discussed under the results column, we found that SVD was working perfectly with a high classification rate of 91.22% and a false alarm as low as 1.42. Therefore, SVD was chosen to be the best postclassifier. The accuracy of the results obtained can be made even better by using extreme learning machine as a postclassifier, and further research will be in this direction.


  1. Yuan Y: Detection of Epileptic Seizure Based on EEG Signals, 3rd International Congress on Image and Signal Processing (CISP2010), and IEEE. Piscataway: IEEE; 2010:4209-4211.

    Google Scholar 

  2. Herculano-Houzel S: The human brain in numbers: a linearly scaled-up primate brain. Front. Hum. Neurosci. 2009, 3: 1-11. doi:3389/neuro.09.031.2009

    Article  Google Scholar 

  3. Zainuddin Z, KeeHuong L, Ong P: On the use of wavelet neural networks in the task of epileptic seizure detection from electroencephalography signals, proceedings of the 3rd International Conference on Computational Systems. Biol. Bioinformatics. 2012, 11: 149-159.

    Google Scholar 

  4. Dingle AA, Jones RD, Carroll GJ, Fright RR: A multistage system to detect epileptic form activity in the EEG. IEEE Trans. Biomed. Eng. 1993, 40(12):1260-1268. 10.1109/10.250582

    Article  Google Scholar 

  5. Harikumar R, Sukanesh R, Bharathi PA: Genetic algorithm optimization of fuzzy outputs for classification of epilepsy risk levels from EEG signals. J. Interdiscip. Panels I.E.(India) 2005, 86(1):1-10.

    Google Scholar 

  6. Xanthopoulos P, Rebennack S, Liu CC, Zhang J, Holmes GL, Uthman BM, Pardalos PM: A novel wavelet based algorithm for spike and wave detection in absence of epilepsy. In Proc of IEEE International Conference on Bio informatics and Bio Engg. Piscataway: IEEE; 2006:14-19.

    Google Scholar 

  7. Mirzaei A, Ayatollahi A, Gifani P, Salehi L: EEG analysis based on wavelet-spectral entropy for epileptic seizures detection. In Proc. of 3rd International Conference on Biomedical Engineering and Informatics(BMEI 2010); Changai, January 2010. Piscataway: IEEE; 2010:878-882.

    Chapter  Google Scholar 

  8. McSharry PE, Smith LA, Tarassenko L: Prediction of epileptic seizures: are non linear methods relevant? Nat. Med. 2003, 9: 241-242. 10.1038/nm0303-241

    Article  Google Scholar 

  9. Gotman J: Automatic seizure detection: improvements and evaluation. Electroencephalogr. Clin. Neurophysiol. 1990, 76: 317-324. 10.1016/0013-4694(90)90032-F

    Article  Google Scholar 

  10. Pang CCC, Upton ARM, Shine G, Kamath MV: A comparison of algorithms for detection of spikes in the electroencephalogram. IEEE Trans. BME 2003, 50(4):521-526. 10.1109/TBME.2003.809479

    Article  Google Scholar 

  11. Tarassenko L, Khan YU, Holt MRG: Identification of inter-ictal spikes in the EEG using neural network analysis. IEE Proc. Sci. Meas. Technol. 1998, 145: 270-278. 10.1049/ip-smt:19982328

    Article  Google Scholar 

  12. van Gils M: Signal processing in prolonged EEG recordings during intensive care. IEEE EMB Mag. 1997, 16(6):56-63.

    Google Scholar 

  13. Sezer E, Isik H, Saracoglu E: Employment and comparison of different artificial neural networks for epilepsy diagnosis from EEG signals. J. Med. Syst. 2012, 36(1):347-362. 10.1007/s10916-010-9480-5

    Article  Google Scholar 

  14. Rezasarang A: A strong adaptive and comprehensive evaluation of wavelet based epileptic EEG spike detection methods. In Proc.of International conference on Bio medical and Pharmaceutical Engineering, (ICBPE 2006) Singapore, 2006. Piscataway: IEEE; 2006:432-437.

    Google Scholar 

  15. Majumdar K: Human scalp EEG processing: various soft computing approaches. Appl. Soft Comput. 2011, 11(8):4433-4447. 10.1016/j.asoc.2011.07.004

    Article  Google Scholar 

  16. Costa RP, Oliveria P, Rodrigues G, Burno L, Burno A: Epileptic seizure classification using neural networks with 14 features. In Proceedings of the 12th International Conference on Knowledge Based Intelligent Information and Engineering System, Zageed, Croatia, Part II Lecture Notes of Computer Science Series. Heidelberg, Germany: Springer; 2008:281-288.

    Google Scholar 

  17. Adeli H: Chaos-wavelet- neural network models for automated EEGbased diagnosis of the neurological disorders. In Proc. Of 17th International Conference on Systems, signals and Image Processing (IWSSIP 2010), Rio de Janerio, Brazil, June 17–19 2010. Piscataway: IEEE; 2010:45-48.

    Google Scholar 

  18. Webber WRS, Lesser RP, Richardson RT, Wilson K: An approach to seizure detection using an artificial neural network (ANN). Electroencephalogr. Clin. Neurophysiol. 1996, 98: 250-272. 10.1016/0013-4694(95)00277-4

    Article  Google Scholar 

  19. Qu H, Gotman J: A patient specific algorithm for detection onset in long-term EEG monitoring-possible use as warning device. IEEE Trans. Biomed. Eng. 1997, 44(2):115-122. 10.1109/10.552241

    Article  Google Scholar 

  20. Harikumar R, Vijayakumar T, Sreejith MG: Performance analysis of SVD and support vector machines for optimization of fuzzy outputs in classification of epilepsy risk level from EEG signals. In IEEE Conference on Recent Advances in Intelligent Computational Systems (RAICS) RAICS.201; Trivandrum, India. Piscataway: IEEE; 2009:718-728.

    Google Scholar 

  21. Rangayyan RM: Biomedical Signal Analysis a Case Study Approach. New York: IEEE Press-John Wiley; 2002.

    Google Scholar 

  22. Patnaik LM, Manyam OK: Epileptic EEG detection using neural networks and post classification. Comput. Methods Programs Biomed. 2008, 91: 100-109. 10.1016/j.cmpb.2008.02.005

    Article  Google Scholar 

  23. Tzallas AT, Tsipouras MG, Fotiadis DI: A time-frequency based method for the detection of epileptic seizure in EEG recording. In 12th IEEE International Symposium on Computer based Medical Systems (CBMS ’07); Melbourn, Australia. Piscataway: IEEE; 2007:23-27.

    Google Scholar 

  24. Prasad VVKDV, Siddiah P, Prabhakararao B: A new wavelet based method for denoising biological signals. Int. J. Comput. Sci. Netw. Secur. 2008, 8(1):238-244.

    Google Scholar 

  25. Kumar P, Agnihotri D: Bio signal denoising via wavelet thresholds. IETE J. Res. 2010, 56(3):132-138. 10.4103/0377-2063.67097

    Article  Google Scholar 

  26. Harikumar R, Sabarish Narayanan B: Fuzzy techniques for classification of epilepsy risk level from EEG signals. In Proceedings of IEEE Tencon – 2003, Bangalore, India, 14–17 October 2003. Piscataway: IEEE; 2003:209-213.

    Google Scholar 

  27. Klema VC, Laub AJ: The singular value decomposition: its computation and some applications. IEEE Trans. Autom. Control Ac 1980, 25(2):164-176. 10.1109/TAC.1980.1102314

    Article  MATH  MathSciNet  Google Scholar 

  28. Sadasivam PK, Narayana Dutt D: SVD based technique for noise reduction in electroencephalographic signal. Signal Process. 1996, 55: 179-189. 10.1016/S0165-1684(96)00129-6

    Article  MATH  Google Scholar 

  29. Moon TK: The expectation maximization algorithm in signal processing. IEEE Signal Process. Mag. 1996, 13(6):47-60. 10.1109/79.543975

    Article  Google Scholar 

  30. Mc CE: Culloch, Maximum likelihood algorithm for generalized linear mixed models. J. Am. Stat. Assoc. 1991, 92: 162-170.

    Google Scholar 

  31. Tian GJ, Xia Y, Zhang Y, Feng D: Hybrid genetic and variational expectation-maximization algorithm for Gaussian-mixture-model-based brain MR image segmentation. IEEE Trans. Inf. Technol. Biomed. 2011, 15(3):373-380.

    Article  Google Scholar 

  32. Zhou Y, Jim P, Lee Y: A modified expectation maximization algorithm for maximum likelihood. IEEE Conf. Signals Syst. Comput. 2000, 1: 613-617.

    Google Scholar 

  33. Jinlong X, Jianwu L, Yang Y: A new EM acceleration algorithm for multi-user detection. IEEE Int. Conf. Measuring Technol. Mechatronics Automation 2011, 1: 150-153.

    Google Scholar 

  34. Rajendra Acharya U, Vinitha Sree S, Swapna G, Martis RJ, Suri JS: Automated EEG analysis of epilepsy: a review. Knowl. Based Syst. 2013, 45: 147-165.

    Article  Google Scholar 

  35. Nigam VP, Graupe D: A neural-network-based detection of epilepsy. Neurol. Res. 2004, 26(1):55-60. 10.1179/016164104773026534

    Article  Google Scholar 

  36. Kannathal N, Acharya UR, Lim CM, Weiming Q, Hidayat M, Sadasivan PK: Characterization of EEG: a comparative study. Comput. Methods Programs Biomed. 2005, 80(1):17-23. 10.1016/j.cmpb.2005.06.005

    Article  Google Scholar 

  37. Kannathal N, Lim CM, Acharya UR, Sadasivan PK: Entropies for detection of epilepsy in EEG. Comput. Methods Programs Biomed. 2005, 80(3):187-194. 10.1016/j.cmpb.2005.06.012

    Article  Google Scholar 

  38. Srinivasan V, Eswaran C, Sriraam N: Artificial neural network based epileptic detection using time-domain and frequency domain features. J. Med. Syst. 2005, 29(6):647-660. 10.1007/s10916-005-6133-1

    Article  Google Scholar 

  39. Sadati N, Mohseni HR, Magshoudi A: Epileptic seizure detection using neural fuzzy networks. In Proceedings of the IEEE International Conference on Fuzzy Systems; Taiwan, 2006. Pisctawaya: IEEE; 2006:596-600.

    Chapter  Google Scholar 

  40. Srinivasan V, Eswaran C, Sriraam N: Approximate entropy-based epileptic EEG detection using artificial neural networks. IEEE Trans. Inform. Technol. Biomed. 2007, 11(3):288-295.

    Article  Google Scholar 

  41. Tzallas AT, Tsipouras MG, Fotiadis DI: Automatic seizure detection based on time-frequency analysis and artificial neural networks. Comput. Intell. Neurosci. 2007.

    Google Scholar 

  42. Subasi A: EEG Signal classification using wavelet feature extraction and a mixture of expert model. Expert Syst. Appl. 2007, 32(4):1084-1093. 10.1016/j.eswa.2006.02.005

    Article  Google Scholar 

  43. Polat K, Gunes S: Classification of epileptiform EEG using a hybrid systems based on decision tree classifier and fast Fourier transform. Appl. Math. Comput. 2007, 187(2):1017-1026. 10.1016/j.amc.2006.09.022

    Article  MATH  MathSciNet  Google Scholar 

  44. Polat K, Gunes S: Artificial immune recognition system with fuzzy resource allocation mechanism classifier, principal component analysis and FFT method based new hybrid automated identification system for classification of EEG signals. Expert Syst. Appl. 2008, 34(3):2039-2048. 10.1016/j.eswa.2007.02.009

    Article  Google Scholar 

  45. Polat K, Gunes S: A novel data reduction method: distance based data reduction and its application to classification of epileptiform EEG signals. Appl. Math. Comput. 2008, 200(1):10-27. 10.1016/j.amc.2007.12.028

    Article  MATH  MathSciNet  Google Scholar 

  46. Ocak H: Automatic detection of epileptic seizures in EEG using discrete wavelet transform and approximate entropy. Expert Syst. Appl. 2009, 36(2):2027-2036. 10.1016/j.eswa.2007.12.065

    Article  Google Scholar 

  47. Guo L, Rivero D, Seoane JA, Pazos A: Classification of EEG signals using relative wavelet energy and artificial neural networks. In Conf Proc of the First ACM/SIGEVO Summit on Genetic and, Evolutionary Computation; Changai, 2009. Piscataway: IEEE; 2009:177-184.

    Google Scholar 

  48. Guo L, Rivero D, Pazos A: Epileptic seizure detection using multiwavelet transform based approximate entropy and artificial neural networks. J. Neurosci. Methods 2010, 193(1):156-163. 10.1016/j.jneumeth.2010.08.030

    Article  Google Scholar 

  49. Guo L, Rivero D, Dorado J, Rabunal JR, Pazos A: Automatic epileptic seizure detection in EEGs based on line length feature and artificial neural networks. J. Neurosci. Methods 2010, 191(1):101-109. 10.1016/j.jneumeth.2010.05.020

    Article  Google Scholar 

  50. Guo L, Rivero D, Dorado J, Munteanu CR, Pazos A: Automatic feature extraction using genetic programming: an application to epileptic EEG classification. Expert Syst. Appl. 2011, 38(8):10425-10436. 10.1016/j.eswa.2011.02.118

    Article  Google Scholar 

  51. Subasi A, Gursoy MI: EEG signal classification using PCA, ICA, LDA and support vector machine. Expert Syst. Appl. 2010, 37(12):8659-8686. 10.1016/j.eswa.2010.06.065

    Article  Google Scholar 

  52. Ubeyli ED: Least squares support vector machine employing model-based methods coefficients for analysis of EEG signals. Expert Syst. Appl. 2010, 37(1):233-239. 10.1016/j.eswa.2009.05.012

    Article  Google Scholar 

  53. Lima CA, Coelho AL, Eisencraft M: Tackling EEG signal classification with least squares support vector machines: a sensitivity analysis study. Comput. Biol. Med. 2010, 40(8):705-714. 10.1016/j.compbiomed.2010.06.005

    Article  Google Scholar 

  54. Wang D, Miao D, Xie C: Best basis-based wavelet packet entropy feature extraction and hierarchical EEG classification for epileptic detection. Expert Syst. Appl. 2011, 38(11):14314-14320.

    Google Scholar 

  55. Iscan Z, Dokur Z, Tamer D: Classification of electroencephalogram signals with combined time and frequency features. Expert Syst. Appl. 2011, 38(8):10499-10505. 10.1016/j.eswa.2011.02.110

    Article  Google Scholar 

  56. Orhan U, Hekim M, Ozer M: EEG signals classification using the K-means clustering and a multilayer perceptron neural network model. Expert Syst. Appl. 2011, 38(10):13475-13481. 10.1016/j.eswa.2011.04.149

    Article  Google Scholar 

Download references


The authors express their sincere thanks to the Management and the Principal of Bannari Amman Institute of Technology, Sathyamangalam for providing the necessary facilities for the completion of this paper. This research is also funded by AICTE RPS: F. No 8023/BOR/RID/RPS-41/2009-10, dated 10 Dec 2010.

Author information

Authors and Affiliations


Corresponding author

Correspondence to Rajaguru Harikumar.

Additional information

Competing interests

The authors declare that they have no competing interests.

Authors’ original submitted files for images

Rights and permissions

Open Access This article is distributed under the terms of the Creative Commons Attribution 2.0 International License (, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Harikumar, R., Vijayakumar, T. Performance analysis of wavelet transforms and morphological operator-based classification of epilepsy risk levels. EURASIP J. Adv. Signal Process. 2014, 59 (2014).

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: