Keywords

1 Introduction

Around 50 million people in world-wide is effected by one of the most widely existing chronic neurological syndrome named as epilepsy [1]. In epilepsy, recurrent seizure attacks due to malfunctioning of the electrophysiological part of the brain come to pass at any stage of life. Electroencephalogram (EEG) is one of electro-physiological technique to study and measure the voltage fluctuation of the brain and helps in diagnose the epilepsy disorder as epilepsy leaves their signature in the EEG signals [2]. There are wide-ranging of existing methods from linear to non-linear for the detect epilepsy disorder [3]. However, these techniques do not preserve all characteristics of EEG time series data such as, non-stationarity, chaotic nature [4]. Hence there is an ever-increasing need to develop new techniques that can detect epilepsy disorder by preserving the relevant information and provide additional information about epileptic EEG signals.

In the current era, complex network and graph theory approach is becoming the emergent field to detect various brain disorders [5]. In 2010, Ahmadlou et al. [6] firstly applied visibility graph algorithm for the detection of Alzheimer disorder and obtained promising results. After that many researchers and clinicians applied visibility graph algorithm for the detection of epilepsy disorder [7, 8] but their proposed methods have some limitations as they have not considered an important fact that in network, the links exhibit different strengths and all the nodes of network are connected with each other on the basis of this strength. Therefore, by focusing the limitation of the existing (especially visibility graph) methods to detect the epilepsy disorder, our proposed technique has explore the idea of, the importance of edge weight in epilepsy detection through visibility graph by constructing weighted complex network. It is our believe that, this proposed methodology is really new and will be very useful in the field of epilepsy and other brain disorder detection.

1.1 Contribution and Organization of the Paper

In this paper, we perform several experiments to discriminate between different kinds of EEG signals and make the following contributions.

  • In this paper we developed new edge weight calculation method which helps to record the sudden changes happen in EEG signal for the duration of seizure activity. As during seizure activity the amplitude of EEG signals are too much fluctuating with time and our proposed method helps to recognize this fluctuation easily.

  • We investigate the effect of segmentation and non-segmentation process on EEG signals in detection of epilepsy disorder with our proposed methodology.

  • Several experiments performed for different classification problems and the outcomes results for all the test cases also suggests that our proposed technique is best appropriate to differentiate between different kinds of EEG signals. Moreover, it is quite promising for the classification of EEG signals of epileptic seizure activity set (E) and healthy person with eye open (A) with 100 % accuracy.

This remaining paper has been structured as: Sect. 2 comprises complete description of the proposed methodology. Section 3 presents the detailed discussion about the experimentation procedure and results. In Sect. 4, conclusions along with the future work have been mention.

2 Proposed Methodology

In this work, a novel algorithm based on new edge weight method for visibility graph is proposed to detect epilepsy disorder from EEG brain signals. The schematic diagram of proposed methodology is presented in Fig. 1. The approach is effective to distinguish between different EEG signals and epileptic EEG signals. The entire procedure of this methodology is composed of various sections: conversion of time series EEG signals into weighted complex network, statistical feature extraction of weighted complex network, classification of epileptic EEG signals from different kinds of EEG signals.

Fig. 1.
figure 1

The schematic diagram of proposed methodology for epileptic seizure detection.

2.1 Conversion of Time Series Data into Complex Network

For mapping the time series data into weighted complex network we have used lucasa [9] visibility graph algorithm. Following steps are used for the construction of weighted complex network:

  1. I.

    Consider each sample point of a time series x(ti), i = 1,2,…….N of N sampling points as a node ni of graph G(N,E), where N represents the node set i.e. N = {ni},i = 1,2,…….N, and E = ei, i = 1,2,3,…………N, are the edges of graph.

  2. II.

    The edges between the nodes of the graph are determined on the basis of [9] the following Eq. (1).

$$ \text{n}_{\text{j}} < \text{n}_{\text{i}} + \text{(n}_{\text{k}} - \text{n}_{\text{i}} \text{)}\frac{{\text{t}_{\text{j}} - \text{t}_{\text{i}} }}{{\text{t}_{\text{k}} - \text{t}_{\text{i}} }}\text{,}\;\text{k} > \text{j} > \text{i} $$
(1)

where, ni, nj and nk are the nodes corresponds to the data sample points x(ti), x(tj) and x(tk) with the time events ti, tj and tk.

  1. III.

    In this study, we develop the below Eq. (2) to calculate the edge weight between two nodes:

$$ \text{w}_{{\text{ij}}} = \frac{{\text{n}_{\text{j}} - \text{n}_{\text{i}} }}{{\text{t}_{\text{j}} - \text{t}_{\text{i}} }}\text{,}\;\text{j} > \text{i} $$
(2)

where, wij is the edge weight between node i and j and also directional in nature from i to j. Also absolute value of edge weight has been considered in all cases.

  1. IV.

    Finally a weighted complex network has been constructed from the EEG time series data by utilizing the edges weight values.

Figure 2 presents an example of the weighted complex network build upon the above four steps using EEG time series data sample points = {100, 124, 153, 185, 210, 220, 216, 222, 240, 265, 298, 330, 362, 381, 391}. The edge weight showing in this figure is constructed on the basis of our newly developed Eq. (2). The thickness of edges in the below figure is according to the edge weight values.

Fig. 2.
figure 2

Weighted complex network of EEG signal

2.2 Feature Extraction

Feature extraction plays an important role for classification of EEG signal data. It helps to make the analysis process easier as extracted features compress the huge amount of EEG signal data into feature vector set by minimizing the loss of information in the original EEG signals. In this paper, we have extracted one statistical property of network named as average weighted degree of network as feature from weighted complex network. This statistical property helps to determine the underlying pattern of hidden information from brain EEG signals.

If a ANxN = {aij} is an adjacency matrix with N number of nodes is used to represent the weighted complex network then aij = 1 if there is an edge from node i to j otherwise it’s 0. According to [10] the weighted degree of the node i is the total weights of all the edges attached to node i which is represented by:

$$ \text{wd}_{\text{i}} = \sum\limits_{{\text{j} \in \text{B(i)}}} {\text{w}_{{\text{ij}}} } $$
(3)

where, B(i) represents the neighborhood of node i and wij represents the weight of the edges between nodes i and j. And the average weighted degree of the network is the average mean of the total weights of the incident links on all the vertices in the network. It is important to note that due to sudden fluctuations in the epileptic EEG signals, the edge weight will show a discrepancy and different kinds of EEG signals exhibit different edge weight among their nodes and thus their resultant networks has different average weighted degree values.

2.3 Classification

In this paper, we have used two well-known supervised machine learning classification method named as Support Vector Machine (SVM) classifier with different kernel function and Discriminant Analysis classifier with discriminant type as linear and quadratic, for the evaluation of the performance of the proposed technique by utilizing the resulting feature extracted from feature extraction technique. As LDA and SVM is easy to implement and has fast prediction speed.

2.3.1 Support Vector Machine (SVM)

SVM is basically a binary classifier i.e. it can efficiently classify the data that belong to two different classes. SVM mechanism is based upon of finding the best hyperplane that separates the data of two different class of category [11]. To evaluate the performance of our proposed methodology for different test cases, we have employed the following three different kernel function in this paper.

  1. I.

    Linear kernel function:

$$ {\text{K(x,y) = (x}}^{\text{T}} {\text{y)}} $$
(4)
  1. II.

    Polynomial kernel function with degree d:

$$ {\text{K(x,y) = (x}}^{\text{T}} {\text{y + 1)}}^{\text{d}} $$
(5)
  1. III.

    Radial basis kernel function with width σ:

$$ \text{K(x,y)} = \text{e}^{{\left( {\frac{{\text{(} - \left\| {\text{x}\left. { - \text{y}} \right\|} \right.\text{)}^{\text{2}} }}{{{2\sigma }^{\text{2}} }}} \right)}} $$
(6)

2.3.2 Discriminant Analysis

In this paper, we have used two Discriminant Analysis (DA) classification methods named as Linear Discriminant Analysis (LDA) and Quadratic Discriminant Analysis (QDA). In case of LDA, each class has same covariance but the means vary whereas in case of QDA, the covariance and means parameters varies for each class. The detailed description about DA classifier are available in [12].

3 Experimental Results and Discussion

In this section, the proposed method is tested on the online available epileptic benchmark (http://epileptologiebonn.de/cms/front_content.php?idcat=193&lang=3) database: Bonn university epileptic EEG data. The whole database comprises of five EEG datasets (denoted as Set A–Set E). EEG signal in Set A and Set B were recorded from surface EEG recordings of five healthy volunteers with eyes open and eyes closed, respectively. Set C and Set D were collected in seizure-free intervals from five epileptic patients from the hippocampal formation of the opposite hemisphere of the brain and from within the epileptogenic zone, respectively. Set E contains the EEG records of five epileptic patients during seizure activity. Each channel of every set contains 4097 data sample points of 23.6 s. For detail description of this database please refer Andrzejak et al. [13]. The proposed technique is tested on the below four different classification problems named as test cases build upon this data set:

Test Case 1: Set A versus Set E

Test Case II: Set B versus Set E

Test Case III: Set C versus Set E

Test Case IV: Set D versus Set E

The proposed technique has been implemented with the help of MATLAB R2015b (version 8.6, 64 bit). In this research study, we wanted to examine the effect of segmentation of EEG signals in the detection of epilepsy disorder. In order to include more data, the segmentation of a signal can provide more meaningful information and can be considered as a part of the entire data set [7]. Moreover, this will also help to make computation task faster. By considering this information into account, the experimentation of the proposed technique has been conducted for the following two objectives:

  1. 1

    First objective is to check the performance of our proposed method by considering whole data samples per channel i.e. by considering 4097 data sample points per channel. Here each channel is considered as independent samples. The implementation process of this method as discussed in Sect. 2.

  2. 2

    Second objective is to check the performance of our proposed methodology with segmentation of each channel of EEG signals. During second approach, we divided each channel into four segment i.e. Seg1 = 1024, Seg2 = 1024, Seg3 = 1024, Seg4 = 1025 data sample points. Then these four segments are further used as a four independent samples. As in each data subset, there are 100 channels data with 4097 data points therefore after segmentation; we have 400 segments with 1024 data sample points. Afterward the proposed method (Sect. 2) is implemented on these segments.

To evaluate the performance of proposed epilepsy detection method and also to achieve more reliable results, k-fold cross validation method is applied on all the four test cases. In this paper, we have considered k = 10 i.e. in 10 fold cross validation, the feature sets are randomly partitioned into 10 groups. The classification model utilize 9 groups for training purposes and the remaining 10th group is used for testing. This whole procedure has been repeated 10 times. The performance of extracted feature vector sets is analyzed with the help of SVM and LDA families of classifiers. The results of different test cases after applying the proposed technique with LDA and QDA classifier is presented in Tables 1 and 2.

Table 1. Overall performance of the LDA Classifier considering with segmentation and without segmentation process of EEG signals
Table 2. Overall performance of the Quadratic LDA Classifier considering with segmentation and without segmentation process of EEG signals

It is clear from both the tables, that the QDA is more efficient for our proposed methodology as compared to LDA. Moreover in case of QDA during segmented and non-segmented of EEG signals, the accuracy results are very close to each other except for test case 2, which is also showing only slight increase in case of non-segmentation. It can be seen that quadratic LDA classifier is demonstrating 100 % efficiency to distinguish between healthy (set A) and epileptic seizure activity (set E) EEG signals in both segmented and non-segmented process.

Our methodology is further analysed with other different kernel functions of SVM named as Linear, RBF and Polynomial kernel function. Table 3 illustrates the results after applying SVM classifier using linear kernel function on all the four test cases. Tables 4 and 5 lists the experimental results of all the four test cases with segmentation and without segmentation approach using SVM Rbf and SVM Polynomial kernel functions.

Table 3. Overall performance of the SVM Linear Classifier considering with segmentation and without segmentation process of EEG signal
Table 4. Overall Performance of the SVM classifier using RBF kernel function considering with segmentation and without segmentation process of EEG signal
Table 5. Overall performance of the SVM classifier using Polynomial kernel function considering with segmentation and without segmentation process of EEG signal

The experimental outcomes of Table 5 signifies that SVM Polynomial kernel function outperforms as compared to other SVM classifiers and achieve promising results with 100 % accuracy for distinguish between healthy person and epileptic seizure activity EEG signals. Moreover during segmented and non-segmented EEG signals, the accuracy results are very close to each other except for test case 2, which is also showing only slight increase in case of non-segmentation.

In order to provide a clear scenario, Fig. 3(a)–(c) presents a comparison of obtained performances for the different classifiers in both segmentation and non-segmentation process.

Fig. 3.
figure 3

Illustration of classification performance for all the four test cases with different classfiers. (a) Accuracy, (b) Specificity, and (c) Sensitivity

As can be observed from Fig. 3(a) SVM polynomial has higher accuracy and specificity classification performance as compared to other classifiers for all the four test cases problems whereas sensitivity of the LDA achieved higher performance results as compared to other classifiers. Table 6 presents the comparative analysis of the classification accuracy of the proposed method with different methods in the literature that perform experimentation on the same EEG data set and illustrate that the proposed methodology is more accurate for detection of epileptic seizure (set A vs set E) as compared to them. Moreover provide promising results for different test cases except for test case 3.

Table 6. Comparative analysis of the accuracy of the proposed work with existing work that used the same data set for their experimentation

As for the duration of seizure activity, there is sudden change in neural discharge in the brain. Thus these consequences increase in variation of EEG signals and henceforth results with the sudden fluctuation in EEG signals. Due to this sudden fluctuation, the edge weight of the complex network build from this seizure EEG signals starts varying and helps to reveal the hidden information of brain functionality. This study also explores that different nodes of EEG weighted complex network interact with each other with different strengths. Therefore when complex network theory is used to detect epilepsy from brain EEG signals, the edge weight play an important role to detect the sudden fluctuation during seizure activity. This study also investigate that our proposed methodology produce very close results during segmentation and without segmentation approaches with SVM classifier. So there is no huge effect of segmentation and without segmentation of EEG signals on our proposed technique. Moreover segmentation approach takes fast computation time due to less amount of analysis data.

4 Conclusion

In this research study, we presented an efficient technique to detect epilepsy disorder from EEG brain signals. This methodology introduces new method to calculate the edge weight of complex network. We then constructed weighted complex network with the help of our newly developed edge weight method. Statistical property of complex network named as average weighted degree is used as extracted feature to compare the classification performance of SVM and DA families of classifiers. The outcomes of the experiments yield that in DA family, QDA provides higher accuracy performance results as compared to LDA but overall SVM polynomial is most promising classifier for our proposed methodology with higher performance results as compared to other classifiers. Moreover in this study, we investigate that, in case of segmentation and without segmentation approaches of EEG signals, the performance results for different test cases are very close to each and does not varies a lot. The pilot study in this paper has examined that the proposed methodology is best suitable to discriminate between different EEG signals. The classification accuracy performance result for ictal (set E) and normal healthy person EEG (set A) is achieved by100 % with SVM polynomial and quadratic discriminant analysis when considering both segmentation and without segmentation approach. Moreover the sensitivity performance for set A versus set E is 100 % with the family of SVM and LDA classifier. It is our believed that this research study will support the technicians to build a software system that will provides support for automatic detection of epileptic seizure. We are currently planning to extend this proposed methodology to detect other brain disorders through EEG signals and also to multi-class EEG classification in the epilepsy detection from brain signals.