Keywords

1 Introduction

Spikes of electrical activity in different brain regions are determined by the EEG signal, and we can determine the position and relative strength. Epilepsy is a disease that was taken using electricity unusual EEG activity. Fifty million people suffer from epilepsy seizures [1] around the world. Factors that may cause epilepsy, brain injury, metabolic disorders, alcohol or drug abuse, brain tumors, and genetic disorders.

A moment in time, epilepsy is not possible to predict in most cases. Classification purposes, required for continuous recording of the EEG. In some cases, EEG recording requires a very large duration of time, perhaps until a week or two. Since the traditional method was boring and slow, an automatic epileptic seizure classification system was developed [2]. The proposed work is an automatic epileptic EEG classification system using SVM and feature extraction and reduction by using approximate entropy (ApEn).

This is shown in the image below, and we will mark the EEG inputs. ApEn technique [3] is used to mark features. Extracted features are then applied to the classifier to classify seizures or non-seizures data (Fig. 1).

Fig. 1
figure 1

Block diagram

Epilepsy since recording began in the mid-1970s, the programmer investigation and discover EEG Signal. Epilepsy and seizures EEG analysis of the placement, the current PC-based test and discuss two issues: Epilepsy seizure classification and EEG analysis. Many feature extraction techniques have been used for the classification of epilepsy seizure. SVM (Support Vector Machine) - based classification system for epilepsy seizure has been proposed by many researchers.

The Lyapunov exponent [4, 5] provides significant details about changes in EEG activity in turn facilitating early detection of epilepsy. The correlation dimension [6] is useful to measure correlation which quantifies complex neural activity of human brain. During epileptic seizure, the value of ApEn has been found to exhibit strong relationship with synchronous discharge of large groups of neurons. The features obtained from complexity analysis and spectral analysis of EEG signals has been effectively used for diagnosis of epilepsy [7]. Recently, the approximate entropy (ApEn) [3] - based methods have been developed for analyzing linear signals for classification of epileptic seizures in epilepsy seizure [8, 9]. The mean frequency parameter of IMFs has been proposed to discriminate well between seizure and seizure-free EEG signals. For classification between healthy and epileptic EEG signals, weighted frequency has been found to be some parameter [10]. Analysis of normal and epileptic seizure EEG signals by using area measured from the trace of analytical signal representation of intrinsic mode function (IMF) has been proposed in [11]. The area parameter and mean frequency of IMFs computed using Fourier–Bessel expansion are used for epileptic seizure classification in EEG signals [12]. Also, IMFs of EEG signals have been used for recognition of epileptic seizure [9].

In first experiment, all 100 time series of F and S are taken for training and testing. For frame size 173, entropy values are 690 for each time series, so if we take 100 time series, entropy values would be 69,000 for one class and it is double (138,000) by considering both seizure and non-seizure class. These procedures followed for all four features. Entropy values of both classes S and F for training and testing dataset for all frames are shown in Table 1 (Fig. 2).

Table 1 Number of entropy value for testing
Fig. 2
figure 2

ApEn for F and S file set for a N = 2048, m = 2, r = 0.9 with SD. b N = 2048, m = 2, r = 0.0 with mean

For frame size N = 2048 and m = 2 and r = 0.9, gets optimum accuracy for ApEn. From that, we get highest accuracy 95.25% of the feature ApEn with SD for experiment and frame size N = 2048 and m = 2 and r = 0.0, gets optimum accuracy for ApEn. From that, we get highest accuracy 94.25% of the feature ApEn with mean for experiment.

For training purpose, all 70-time-series data for F and S and 100-time-series data are taken for testing. Entropy values of both classes S and F for training and testing dataset for all frames are shown in Table 2.

Table 2 Entropy value after 70% training

Figure 3 are for all optimum results of experiment feature dataset as shown in Tables 2. The figure shows the SVM classification for the seizure and normal class using radial basis kernel function, where seizure is denoted by * and normal by +. The line is describing linear classification of the dataset. The o describes wrongly classify data points of opposite class. Here, we measure the performance parameters like, standard deviation (SD) [13], accuracy [14], sensitivity [14], specificity [14], and mean [13].

Fig. 3
figure 3

ApEn for F and S file set after 70% training and testing a N = 1024, m = 1, r = 0.0 with SD. b N = 1024, m = 1, r = 0.0 with mean

2 Experimentation Results

In our work, we have extracted the features from the EEG signal and classification is done using SVM classifier [15] in two class, i.e., seizure-free and seizure patient data. ApEn values are measured in form of m, r, and N. The values of m, r, and N are as follows [3]:

  1. 1.

    Number of samples (m) = 1, 2, 3;

  2. 2.

    Normalization ratio (r) = 0–90% of SD of the data sequence in increments of 10%;

  3. 3.

    Frame size (N) = 173, 256, 512, 1024, and 2048.

Approximation entropy is extracted along with SD and mean. The randomness of EEG signal was extracted in the features, based on different size of frame (N), number of samples values (m), and normalized ratio (k). From the set of features, ApEn with SD and mean are used for classification using the SVM classifier.

We have used BONN dataset for EEG signals which is publicly available online and described by Andrzejak et al. [16]. The EEG dataset contains both seizures and non-seizures. The Bonn dataset consist of five subsets (Z, O, N, F, and S) each containing 100 single-channel EEG signals, each signal of 23.6 s in duration with the sampling rate of 173.61 Hz.

EEG recordings of five healthy volunteers with eyes open (Z) and closed (O) have been recorded on the surface, using standard electrode placement scheme. These two are recorded in seizure-free intervals from five patients in the epileptogenic zone (F-seizure free) and from the hippocampal formation of the opposite hemisphere of the brain (N-seizure free). The set S contained seizures signal which gives an ictal activity by using the same 128-channel amplifier system with an average common reference, and all EEG signals are recorded. In the proposed work, classification of the F (Seizure-free class) and S (Seizure class) is done by using approximate entropy (ApEn) feature extraction and reduction and SVM as classifier.

For all 100 EEG datasets, 70 datasets are used for training and the others are used for testing using SVM classifier. SVM classifier is used to classify unknown data properly. The highest accuracy is 98.625% for the feature set ApEn with SD for frame size N = 1024, sample value m = 1, and normalization ratio r = 0.0. In the proposed method, accuracy is achieved up to 98.625% for the feature set ApEn with SD. For training and testing purpose, we get different accuracy, sensitivity, and specificity as shown in Fig. 4.

Fig. 4
figure 4

Classification accuracy, sensitivity, and specificity at before training and after 50% training for F (seizure free) and S (seizure class)

As shown in Table 3, all the papers are worked on Bonn dataset and they achieved maximum accuracy 98.27%. In the proposed method, accuracy up to 98.625% is achieved for the feature set ApEn with SD.

Table 3 Comparison of methodology for same dataset

3 Conclusion

We have extracted the features from the EEG signal, and classification done using SVM classifier in to two class seizure and normal. Approximation entropy is extracted along with SD and mean. The randomness of EEG signal was extracted in the features, based on different size of frame (N), number of samples values (m), and normalized ratio (r). From the set of features, ApEn with SD and ApEn with mean were used for classification using the SVM classifier. The highest classification accuracy is 98.625% for F and S class. The main classes of the F and S that will be an classes of the seizure data and non-seizure data.