Paper67_camerar
Paper67_camerar
Abstract -- Epilepsy has severe impacts on patients including resting. Delta is recorded when the person is awake and
disruptance of their social relationships and less mobility. there is significant mental activity going on.
Prediction of the disease can help the patient prevent the Epilepsy is a life threatening disorder. The patient's life is
onset of seizures with the help of appropriate medication.
affected depending on the severity of the seizure. Early
Since the traditional methods of studying EEG are prone to
misdiagnosis, Machine Learning can provide a more
prediction of a seizure can alert the medical team to take
accurate diagnosis. In this paper, we aim to survey models as necessary action. In other words, detection of preictal
to better describe methodologies for a high precision model state can control the severity of the seizure and provide
to predict epilepsy in patients. Epilepsy is a neurological sufficient time to the medical team to devise strategies.
disorder caused due to disturbance in the electrical activity
of neurons. Detection of an Epileptic seizure is a tedious task Traditionally, EEG graphs are observed by a medical
requiring an expertise in the Medical field. The lives of practitioner. This process is cumbersome and it is
Epileptic patients can be improved multifold through early vulnerable to a misdiagnosis. The EEG data often has
detection of the seizure. Neurons transfer messages through errors due to noise and interference from the equipment,
electrical activity which can be recorded through an
thus, making Epilepsy Detection more challenging. For an
Electroencephalogram (EEG). This work showcases the
efficiency of different Machine Learning models to detect an accurate detection of Epilepsy, neurologists study the
Epileptic seizure. In order to transform EEG signal to time- EEG data for weeks or months. Over the last few decades,
frequency domain we employed Discrete Wavelet a variety of Machine Learning algorithms have been
Transform. employed to address this problem.
Based on the decomposition obtained from Discrete Wavelet
Transform, different features were extracted from the sub To study EEG signals we have employed Discrete
bands which were later fed into classification models.This Wavelet Transform unlike the conventional Fourier
paper introduces a variety of Machine Learning classifiers Transform. Fourier Transform provides a high resolution
to detect Epilepsy including ANN, KNN, Logistic Regression
in frequency domain i.e we can see which frequencies are
and Support Vector Machine.
present in the signal. The disadvantage of Fourier
Keywords—Epilepsy, Seizure, EEG (Electroencephalogram),
Transform is that it doesn’t tell us the time instant at
Machine Learning, KNN (K-Nearest Neighbor), Logistic which these frequencies are present. In order to address
Regression, Artificial Neural Network, SVM (Support Vector this issue, Discrete Wavelet Transform is used. DWT
Machine) ))
localizes the signal in time-frequency domain [3]-[5].
enormous number. This paper aims to help researchers Authors in [14] had the objective to predict Epilepsy
choose the best Machine Learning algorithm to improve using Support Vector Machine. In addition to this, the
prediction of Epilepsy. Image Processing was proposed performance and accuracy of the model was studied.
before machine learning for Epilepsy Detection.
Transformation of EEG signals was achieved through
Fourier Transform. However, due to electrical III. DATASET
interference and other artifacts detection of noise through
visual depiction over a long time is cumbersome. Also, The dataset used in this project was obtained from the
transformation of signals to frequency domain using Bonn University, Germany. It is a publicly available
Fourier transform gives data from only frequency domain. dataset and comprises of 5 sets that are A, B, C, D and E.
EEG signals are non stationary and for accurate prediction Amplification of signals is achieved through 128 channels
data from both time and frequency domain is needed. In and a 12 bit ADC is employed with a sampling frequency
the view of this scenario, Discrete Wavelet transform is of 173.6 Hz.
introduced. The demerits of Epilepsy Prediction using
image processing are overcome by the proposed project Sets A and B consist of readings obtained from healthy
"Epilepsy Prediction using Machine Learning". patients with eyes open and closed respectively. Sets C
and D consist of data collected from epileptic patients
during seizure free interval. Set D data is recorded from
II. RELATED WORK the epileptogenic zone whereas Set C has data from
hippocampal formation of opposite hemisphere. Set E
Prediction of Epilepsy has been under research since the contains data of epileptic patients during seizure. 11,500
past couple of decades. Numerous research papers have samples are taken in the dataset with each class
been published that introduce new models to predict containing 2300 samples as shown in Fig.1.
Epilepsy with more accuracy. Many researches have been
conducted to preprocess the EEG signals in an efficient
manner. Following research papers have helped us shape
the methodology of this project and have given us a
detailed insight about the technologies used in this
domain.
2
IV.METHODOLOGY hyperparameter for random forest grid search has been
used. Like ANOVA test, the result from Random Forest is
entered into Support Vector Machine to determine the
EEG signals contain noise due to interference from the
prediction accuracy when only features from Random
equipment or eye movements. Noise is removed using
Forest are used. The accuracy of prediction after using
different filters. However, the dataset in consideration is
Random Forest features is the same as ANOVA i.e 96%.
already denoised. All the sets are prepared for
If all the features of the original dataset are considered for
decomposition using Discrete Wavelet Transform. EEG
prediction the accuracy of the model increases by 1%.
signal is a time series digital sample of analog voltages
generated due to neural activity.
Logistic Regression
As mentioned before, Wavelet transform allows us to
analyse data in time-frequency domain unlike Fourier Logistic Regression predicts a binary outcome by
Transform. Wavelets belong to different families like labelling the signal as epileptic or non-epileptic. It is a
Haar, Daubechies, Symlets, etc. We used wavelets from straightforward algorithm and thus, the accuracy is not
the Daubechies family of fourth order to achieve very high. We applied a confusion matrix to see how
decomposition upto level 4. many actual values matched with the predicted values. In
the confusion matrix 1 stands for Epileptic and 0 stands
The dataset contains 179 features which are given as an for healthy. The confusion matrix is shown in Fig. 3.
input to feature selection algorithm Random Forest. After
feature selection, machine learning algorithms are
employed. The various models that are used:
ANOVA
It is created in a way that it replicates the connection of 20 features were selected using ANOVA and Random
neurons in the human brain. In other words, the aim of Forest. The accuracy of prediction using these 20 features
ANN is to reason like human brain. ANN has a network was 96%. However, the accuracy increased to 97% when
of millions of neurons that are arranged in layers. Most of all features were taken into consideration while making
these layers are interconnected. the prediction.
ANN learns by enormous amount of training data fed into Data of 2300 people was given as input to four models.
it. A confusion matrix of this algorithm is shown in Fig. 5. Out of the four models, Artificial Neural Network
demonstrated an accuracy of 98% followed by SVM and
KNN at 97% and 92% respectively. At the bottom of the
list was Logistic Regression with an accuracy of 82%.
4
Communication Conference (IEMCON), pages 395–400.
IEEE, 2018.
The prediction of Epilepsy is still being researched and
thoroughly studied. No model is able to predict Epilepsy [6] A. Hamad, E. H. Houssein, A. E. Hassanien and A. A.
with 100% accuracy yet. A monitoring device could be Fahmy, ”Feature extraction of epilepsy EEG using discrete
used to detect changes in a patient’s physiology that could wavelet transform”, Proc. 12th Int. Comput. Eng. Conf.
(ICENCO), pp. 190-195, Dec. 2016.
enhance the prediction dramatically.
[7] U. R. Acharya, S. Vinitha Sree, G. Swapna, R. J. Martis and
Integrating Machine Learning algorithms with brain J. S. Suri, ”Automated EEG analysis of epilepsy: A review”,
pacemakers to stimulate neural tissues using electrical Knowl.-Based Syst., vol. 45, pp. 147-165, Jun. 2013.
signals. Besides this the equipment to record EEG should [8] P. P. M. Shanir, K. A. Khan, Y. U. Khan, O. Farooq, and H.
be carefully handled in order to avoid any interference. Adeli, “Automatic seizure detection based on morphological
features using one dimensional local binary pattern on long-
term eeg,” Clinical EEG and Neuroscience, 2017.