Abstract
Encephalopathy is the result of epilepsy, which is defined as recurring seizures. Around the world, almost 65 million people suffer with epilepsy. Because an epileptic seizure involves a crucial clinical element and a clear contradiction with everyday activities, it can be difficult to predict it. The electroencephalogram (EEG) has been the established signal for clinical evaluation of brain activities. So far, several methodologies for the detection of epileptic seizures have been proposed but have not been effective. To bridge this gap, a powerful model for epileptic seizure prediction using ResneXt-LeNet is proposed. Here, a Kalman filter is used to preprocess the EEG signal to reduce noise levels in the signal. Then, feature extraction is performed to extract features, such as statistical and spectral. Feature selection is done using Fuzzy information gain that suggests appropriate choices for future processing, and finally, seizure prediction is done using hybrid ResneXt-LeNet, which is a combination of ResneXt and Lenet. The proposed ResneXt-LeNet achieved excellent performance with a maximum accuracy of 98.14%, a maximum sensitivity of 98.10%, and a specificity of 98.56%.
Introduction
EEG is an effective symptomatic tool for learning the operational anatomy of the brain. Epilepsy prediction and prescription are studied using EEG, moreover, EEG signals are unstable and non-Gaussian. It is used to measure electrical brain activity and determine the brain disorder types. The analysis of EEG measurements helps to segregate normal and abnormal functions occurring in the brain [1]. The frequency domain and time domain are presented in the EEG signal, these domains arrange two views for a similar data source. Frequency domains illustrate the distribution force of signal concerning the frequency components. Time domains illustrate how the signals change over time [2]. During a normal situation, EEG signal patterns are common to normal subjects. Moreover, the patterns of action potentials are suddenly transformed and the EEG signal comes in as fast spike waves. The patterns of the EEG signals are categorized into four methods; ictal method, preictal method, postical method and interictal method [3]. The EEG signal prototypes are specific to patients with exclusive epilepsy. Hence, the epilepsy patient-specific seizure prediction gives better accuracy compared to patient-independent seizure prediction [4]. If the patient has drug resistance, it is usually treated with either anti-epileptic drugs or possibly surgical procedures to remove the affected part of the brain [5]. Experts are even focused on finding successful therapies for seizure management. Therefore, early prediction of seizures has become very important, as it ensures sufficient time to use an effective medication to treat or eliminate the seizure [6].
Each year epilepsy affects 2.4 million people of all ages worldwide and presents seizures with the risk of periodic disruptions in cognitive and behavioral functions [7]. Epilepsy is the result of the simultaneous sudden filtering of brain neurons. EEG is used to detect the electrical activity of the brain. Seizures are a minor multiple number of channels for EEG recording. Generalized seizures are viewed in every channel of the EEG recording [8, 9]. The patient with epilepsy disease is affected critically whenever a seizure occurs as a result of uncontrollable movements, loss of consciousness and convulsions that can lead to serious injuries and sometimes the people’s death [10, 11, 12]. A Discrete wavelet transform (DWT) is a method in which ripple transforms are captured and the signal is individually sampled to find different signal properties of the signal. Frequency and location information are captured through DWT. The different techniques are wavelet series, wavelet transform, and wavelet compression [13, 14]. The seizure prediction procedure can be formulated as a classification problem between EEG signals to distinguish the interictal brain state from the preictal state [6]. As a result, the problem of predicting seizures can be defined as a duplex categorization problem where label value zero indicates the interictal phase and label one represents the preictal stage. Seizure prediction is more challenging and useful than seizure detection since seizure prediction allows the patients or medical staff to take appropriate actions to avoid the occurrence of seizures [2].
The recent developments of deep learning (DL) techniques have been established to perform traditional machine learning systems in a wide variety of disciplines, such as computer vision, speech recognition, natural language processing (NLP), and biomedical applications [15]. Various DL structures are used for the categorization of EEG brain signals. Shallow artificial neural networks (ANNs) used to be applied only as classifiers after traditional feature extraction while convolutional neural networks (CNN) have been utilized for both automatic feature learning and classification [16, 17, 18, 19, 20, 6]. Due to the availability of large data sets, approaches are fixed in DL techniques are prepared which significantly improves the determination of different neurological disorders, as well as epileptic seizures. The DL-based CAD systems enable physicians to make better-informed decisions based on the recorded patient neuroimaging modalities [21]. Recently, DL methods, such as CNN with automatic retrieval of relevant information are very popular functions. DL models are used in various aspects, such as speech recognition and computer vision. DL models can extract spectral features, and the EEG epilepsy data contains temporal features that can be utilized to understand the overall pattern of a seizure. This method can serve as a powerful multimedia tool for generating fast results and brain mapping images available for medical experts to use in their further investigations [22].
The main aim of this paper is to design ResneXt-LeNet to achieve epileptic seizure prediction using EEG signals. The input EEG signal is first preprocessed and put into feature extraction to extract features, such as statistical and spectral. Then a fuzzy information retrieval model is presented to select suitable features for superior prediction. Finally, epilepsy seizure is predicted using ResneXt-LeNet, which is the combination of ResneXt and Lenet.
The major contribution of this paper is represented by,
Proposed ResneXt-Lenet for epilepsy seizure prediction: The prediction of an epileptic seizure is achieved by the ResneXt-Lenet model, which is a combination of the ResneXt and Lenet models.
The rest of this paper is sorted by: The analyzed works along with their strengths and limitations are presented in Section 2, the proposed ResenXt-LeNet for epileptic seizure prediction is explained by schematic structures in Section 3, results for ResenXt-LeNet are presented in Section 4 and final part is given in Section 5.
Epilepsy is a chronic nervous ailment of the brain that affects all age groups of people. It is categorized by erratic seizures that affect the patient’s mental health and frequently lead to depression, anxiety, or cognitive impairment. EEG is a dimension of the electrical impulses caused by brain cells. If the patient does not take appropriate treatment properly, there is a decrease in the chances of survival, which leads to sudden death. Hence, the early prediction of epilepsy seizure is important and it is a challenging process. Therefore, an early stage of epileptic seizure prediction is necessary for an innovative model.
Literature survey
Ibrahim SW et al. [23] introduced the K-nearest neighbor (KNN) method for continuously monitoring the EEG signals by comparing the current sliding window with normal and pre-seizure baselines to predict seizure. It can be efficiently implemented in any implanted system that is mobile devices or Field-Programmable Gate Arrays (FPGA) board. However, it did not take a larger dataset to test this method. Hussein R et al. [24] designed the Deep Neural Network (DNN) to determine the temporal dependencies in EEG data for strong detection of epileptic seizures. It achieved seizure detection attention to deprivation conditions. However, it only addressed single-channel EEG data. Liu CL et al. [2] introduced the Multi-view CNN to predict the incidence of epilepsy seizures to acquire a shared representation of time-domain and frequency-domain features. This method outperformed the methods in the leaderboard of the Kaggle competition. However, this method was not applicable in the brain-computer interface and many other areas. Inoue M et al. [25] modeled the Deep Recurrent Neural Network (DRNN) for human activity recognition with high throughput from raw accelerometer data. It secured a high acceptance rate and throughput. However, the recognition rate of the sequence data was decreased. Jana R and Mukherjee I [4] introduced CNN for automated extraction of features and classification of epilepsy patient’s states. The raw EEG signals in this method are utilized for automated feature extraction. Patient-specific seizure prediction is unable to effectively predict seizures in other epilepsy patients. Dissanayake T et al. [26] designed a DL classifier for patient-independent epileptic seizure prediction. It secured high inter-subject variability. Although, designing a classifier is a complex task to generalize completely invisible subjects. Jemal I et al. [7] introduced an Interpretable DL model for seizure prediction using EEG signals. It achieved a fairly high level of prediction accuracy, but it is a complex task for the development of patient-independent models. Abdelhameed AM and Bayoumi M [6] designed a Novel Deep Learning system for epileptic seizure prediction using multi-channel EEG recordings from the scalp of human brains. Within one hour, this method successfully forecast 52 out of 55 seizures. However, it failed to achieve a high average false prediction rate.
Challenges
Major problems undertaken during epilepsy seizure prediction using hybrid deep learning are listed as follows,
In [4], CNN was devised for automatic symptom extraction and status classification of patients with epilepsy. However, this method failed to implement a patient-independent seizure prediction model as it works efficiently for all epilepsy patients. Although the multi-view CNN in [2] predicted occurrences of seizures, it failed to design a recent architecture for the Electrocardiography (ECG) test, it is the process of recording the electrical activity of the heart using electrodes for a specified period and it placed on the skin. KNN was employed to continuously monitor the EEG signals but it was unsuccessful to enhance prediction accuracy with a robust feature extraction method [23]. In [24], DNN was devised for automated recognition of epileptic seizures using EEG signals and it is effective in high-level EEG images and could properly be distinguished between the seizure EEG activities. However, it did not fully manipulate the ability of deep neural networks in seizure detection in terms of the detection power of brain data time series. Epilepsy is a neurological disease characterized by unconsciousness and convulsion. Epileptic patients suffer from epileptic seizures due to anomalous electrical discharges. It is essential to improve the quality and accuracy of captured data. On the other hand, inaccurate documentation of seizures negatively affects patient care.
Epilepsy is a nervous disorder that affects strange behavior, feelings, and loss of awareness, so the earlier diagnosis of epileptic seizure is very important for effective treatment and decreasing the risk of injury. Consequently, this research proposes an effective model for epileptic seizure prediction using a newly developed methodology named ResneXt-Lenet. The overall process includes preprocessing, feature extraction, feature selection and epileptic prediction. The EEG signal is preprocessed by the Kalman filter [27] to reduce the noisy content present in the EEG signal. Subsequently, feature extraction is executed, where features like statistical and spectral features are extracted. Then, the selection process is done using fuzzy information gain [28] to select the appropriate feature. At last, the epileptic prediction is done using the ResneXt-LNet model. Figure 1 displays the block diagram of ResneXt-Lenet for epileptic seizure prediction.
Function block diagram of ResneXt-Lenet for epileptic seizure prediction.
Consider the dataset
Here,
The initial step in predicting an epileptic seizure is pre-processing. Here, the entering signal
where
The pre-processed
Statistical features
It effectively separates EEG signals from both scalp EEG and intracranial signals. In addition, statistical features extracted from the pre-processed
i) Mean
Mean values are estimated by taking the average of total samples that exist in the EEG signal, which is denoted by
where,
ii) Variance
Variance is established on the mean, which is estimated using the
where,
iii) Skewness
Skewness is utilized to provide the information concerning data symmetry, and the skewness is computed using the below expression,
where,
iv) Kurtosis
Kurtosis is used to obtain information about peaks in the signal. The output of the kurtosis feature is given below,
where,
Thus, the pre-processed signal is represented as
This feature is also known as frequency domain features, where, features are extracted from EEG signals under scalp EEG signals. The spectral features are described below,
i) PSD
PSD measures the power of EEG signal frequency function and the mathematical expression is given below,
Where,
ii) Spectral centroid
The information about variation in signal is estimated using spectral centroid, and the equation is defined by,
where, spectral centroid features are denoted by
iii) Variational coefficients
Variational coefficients are said to be a frequency band property that calculates the deviation in EEG recording, and the equation expressed below,
where,
iv) Spectral skewness
Spectral skewness refers to the spectral characteristics that show strong performance in scalp EEG signals and it is expressed as,
Hence, the extracted spectral features from the pre-processed signal are denoted by
It is derived from the logarithmic power and different EEG signal bands. This feature was determined by calculating the power value of the frequency band and it is expressed below,
where, logarithmic band power is termed as
The key concept is the use of linear conversion that converts multichannel EEG assessment into a lower-level dimensional spatial subgroup using the projection matrix. The weights of each channel comprise each row of the projection matrix. Thus, a common spatial pattern is expressed as,
where,
Wavelets refer to sharp waves containing zero mean values. This feature comprises both frequency and time domain of localization capability and the equation becomes,
where,
It is very powerful for effectively classifying the pitches and bringing them closer to an equal moderated pitch scale. For feature extraction, the Fourier transform frequency is obtained that is mapped with 12 semitone classes of pitch (chroma)
where, the half frequency range is estimated by expanding the Fourier transform of pre-processed signal and the equation is given below.
where, the Fourier transform value is denoted as
where,
The spectral decrease is employed to quantify the reduction of the magnitude spectrum as time progresses. It indicates how much the spectrum decreases when the slopes of lower frequencies increase and it is given as,
EEG signal of spectral information is identified using the spectral flux feature. This information is obtained by utilizing frequency-enabled parameters, and the difference in value between consecutive spectral frames is taken into account. The mathematical expression of spectral flux is denoted as,
where, the term
It calculates the inflection of preprocessed EEG signals. It refers to the ratio of the hormonal intensity as well as the signal segment. Here,
where, the term
The feature vector can be expressed by
The magnitude of the dimension is
Feature selection is performed by employing a fuzzy information gain method for processing an epileptic seizure prediction. Here, a fuzzy informative gain model is presented in Class Information Gain (CIG), Information Gain (IG), and Mutual Information. Each other information is represented as
where,
where,
Where,
where,
The proposed network introduced for epileptic seizure prediction in this research is named ResneXt-Lenet, which is a combination of ResneXt and Lenet. The common process in this framework is explained as follows. At first, the input signal is passed to the ResneXt model and it generates an output
The general outline of ResneXt-Lenet model.
The ResneXt block [29] follows the split-transform-merge strategy and it performs a set of transformations as opposed to the ResNet block. Convolution layer outputs from all groups are secured via
Where,
The architecture of the ResneXt model.
In ResNet, the two dimensions for tuning model capacity are depth and width. Typically, a model with more arguments has a stronger representational ability. ResNeXt is a building block that aggregates a set of transformations with a similar topology. Compared to ResneXt it reveals a new dimension cardinality, which is the set of conversions. In Lenet model consists of a convolutional layer, pooling max layer, ReLu and a Fully activation layer connected layer. Each layer in this network uses the ReLu activation function. An FC layer is present after the pooling layer, which provides a classified result. The output
where,
where,
By applying the fractional calculus concept, the equation becomes,
The mathematical equation of output
LeNet [31] was developed by LeCun in 2015 and was initially used in various banks to identify handwritten digits on a check. LeNet essentially contains a pooling max layer, convolutional layer, ReLu activation layer and fully connected layer. In LeNet, input data is distributed to a convolutional layer with a kernel filter, while low-level features are excavated. In the LeNet model, the output layer is known as the softmax layer. Moreover, the selected output secures better probability. The mathematical equation of the softmax function is given below,
where,
where, pooling max operation is symbolized as
The architecture of the LeNet model.
This segment delineates an outcome of devised ResneXt-LeNet by various evaluation metrics and assesses the performance to prove the superiority level.
Experimental setup
ResneXt-LeNet model for epilepsy seizure prediction is successfully executed in MATLAB tool.
Experimental results
The sample image output of the ResneXt-LeNet method for epilepsy seizure prediction is given in Fig. 5. The input EGG signals 1, 2, and 3 are denoted in Fig. 5a, c, and e. The filtered EEG signals 1, 2, and 3 are denoted in Fig. 5b, 5 d, and 5 f.
Experimental outcomes, a. Input EEG signal-1, b. filtered output of EEG signal-1, c. Input EEG signal-2, d. filtered output of EEG signal-2, e. Input EEG signal-3, f. filtered output of EEG signal-3.
The dataset used by the ResneXt-LeNet method for epilepsy seizure prediction is CHB-MIT Scalp EEG [32]. It is a group of EEG recordings of 22 child subordinates with unsolvable seizures. The recordings are grouped into 23 cases gathered from 22 subordinates based on data of 5 men and 17 women aged from 3–22 years and 1.5–19 years.
Evaluation metrics
The effectiveness of the ResneXt-LeNet method for brain epilepsy seizure prediction is evaluated with the three evaluation metrics given below.
Accuracy
It calculates the rate of detection results that are correctly classified and formulated as,
where,
It is the proportion of positive standards that are accurately determined by the classifier and it is described as,
Specificity is the proportion of negative impacts that are accurately identified by the classifier and it developed as,
The competitive analysis of the proposed ResneKt-LeNet using different training data. Performance metrics like accuracy, sensitivity and specificity are explained in Fig. 6. The performance analysis of the proposed ResneKt-LeNet using accuracy is shown in Fig. 6a. The accuracy values computed by ResneXt-LeNet with iteration 20, 40, 60, 80, and 100 are 0.770, 0.797, 0.833, 0.869, and 0.888 while the training percentage is 50. When the training data is 90%, the accuracy values of proposed ResneXt-LeNet with iterations 20, 40, 60, 80, and 100 are 0.788, 0.825, 0.862, 0.907, and 0.953. Figure 6b illustrates the performance analysis of sensitivity. When the training data is 90%, the values of sensitivity calculated with iterations 20, 40, 60, 80, and 100 are 0.798, 0.838, 0.875 0.917, and 0.963. The sensitivity of the proposed ResneKt-LeNet is 0.770, 0.811, 0.846, 0.880, and 0.899 for the training data of 50% with the iteration from 20, 40, 60, 80, and 100, respectively. Performance analysis of specificity is shown in Fig. 6c. If the training data is 90%, the specificity values computed with iteration 20, 40, 60, 80, and 100 are 0.794, 0.838, 0.870, 0.917, and 0.974. The specificity of the proposed ResneKt-LeNet is 0.774, 0.800, 0.840, 0.873, and 0.896 when the training data is 50% with the iteration varied from 20, 40, 60, 80, and 100.
Performance analysis of ResneKt-LeNet, a. Accuracy, b. Sensitivity, c. Specificity.
The competitive methods used for analyzing the performance of the ResneKt-LeNet method for epilepsy seizure prediction are KNN [23], NN [24], DeepCNN [2], DeepRNN [25], SASO-based DeepRNN, and EXP-SASO-based DeepRNN.
Analysis based on training data
Figure 7 describes the ResneKt-LeNet analysis with different evaluation scales by the change in training percentage. The analysis of ResneKt-LeNet using accuracy is demonstrated in Fig. 7a. If training data is 40%, the accuracy of KNN is 79.485, NN is 80.490, DeepCNN is 89.924, DeepRNN is 90.344, SASO-based DeepRNN is 91.264, EXP-SASO-based DeepRNN is 92.198, and ResneKt-LeNet is 94.436. Hence, the improved performance of the devised scheme with existing implementations is 15.832%, 14.767%, 4.778%, 4.333%, 3.359% and 2.369%. Figure 7b illustrates ResneXt-LeNet analysis using sensitivity. While the training percentage is 90, the sensitivity of accessible frameworks and ResneKt-LeNet are 83.319, 87.344, 92.370, 93.870, 96.520, 97.506, and 98.100. Moreover, the improved performance while comparing the devised model with comparative techniques is 15.067%, 10.965%, 5.841%, 4.312%, 1.611%, and 0.606%. The designed approach using specificity is illustrated in Fig. 7c. When training data is 90%, the specificity of convolutional methods is 80.059, 82.656, 95.216, 95.376, 97.536, 98.051 and ResneKt-LeNet is 98.555. The performance enhancement value of the designed scheme with KNN is 18.767%, NN is 16.132%, DeepCNN is 3.388%, DeepRNN is 3.225%, SASO-based DeepRNN is 1.034%, EXP-SASO- based DeepRNN is 0.511%.
Comparative assessment by changing using training data a. Accuracy, b. Sensitivity, c. Specificity.
Comparative discussion
Comparative evaluation of ResneKt-LeNet, a. Accuracy, b. Sensitivity, c. Specificity.
Figure 8 describes the ResneKt-LeNet analysis with different K-fold values concerning certain assessment measures. Accuracy is considered in Fig. 8a. When K-Fold is 4 then, the accuracy of convolutional methods is 76.513, 86.982, 87.309, 90.450, 90.798, 91.753, and 93.457. The improved performance achieved when compared with the previous models, such as KNN is 19.184%, NN is 8.773%, DeepCNN is 7.368%, DeepRNN is 5.924%, SASO-based DeepRNN is 4.213%, and EXP-SASO-based DeepRNN is 3.209%. Figure 8b illustrates sensitivity. For K-fold is 5, the sensitivity of KNN is 77.939, NN is 88.635, DeepCNN is 89.870, DeepRNN is 91.699, SASO-based DeepRNN is 92.438, EXP-SASO-based DeepRNN is 93.412, and ResneKt-LeNet is 94.457. The performance gain of the designed scheme in comparison with KNN is 17.487%, NN is 6.164%, DeepCNN is 4.856%, DeepRNN is 2.920%, SASO-based DeepRNN is 2.138%, and EXP-SASO-based DeepRNN is 1.106%. The specificity analysis is shown in Fig. 8c. The existing methods and ResneKt-LeNet gained the specificity of 82.414, 85.274, 89.016, 92.470, 93.736, 94.725, and 98.057, the performance gain values are 15.953%, 13.036%, 9.220%, 5.697%, 4.407% and 3.398 % while K-Fold is 9.
Comparative discussion
A comparative discussion consisting of the ResneXt-LeNet is shown in Table 1. This analysis is performed using K-Fold and training data established on the metrics functions. From this analytical part, it is clear that experimenting with the use of training data achieved a maximum accuracy of 0.981%, sensitivity of 0.981%, and specificity of 0.985%. Here, the ResneXt-LeNet model achieved excellent performance in taking into account training data as 90%.
Conclusion
This work presented ResneXt-LeNet for predicting the epileptic seizures located on EEG signals. Epilepsy is the most common neurological ailment and it occurs in people of all ages. It occurs unexpectedly and thus increases the mortality rate of people. The various steps that ResneXt-LeNet follows are pre-processed using a Kalman filter. Feature extraction that extracts statistical and spectral features, and effectively extracts Spectral decrease, Pitch Chroma, Tonal Power Ratio and Spectral Flux. Feature selection is performed using a fuzzy information gain model to select significant properties. The selected best features are subjected to the seizure prediction model and it is accomplished using ResNeXt-LeNet, which is modelled by a combination of ResneXt and LeNet. The experimentation of the developed ResneXt-LeNet is performed on the CHB-MIT Scalp EEG dataset and effective performance is achieved with a maximum accuracy of 98.14%, sensitivity of 98.10%, and specificity of 98.56%. In future, better prediction performance can be attained by extracting some additional extraction features, and also incorporating Transfer Learning (TL) would help in solving the problem of low detection accuracy.
