Professional Documents
Culture Documents
Automatic Seizure Detection via an Optimized
Automatic Seizure Detection via an Optimized
Abstract—In this paper, our goal is to find an optimized the use of machine learning algorithms in general and deep
approach that can learn features from multichannel EEG time- learning approaches in particular to the medical applications.
series data to perform automatic seizure detection. In general, it
is not easy to learn robust features from EEG signals due to the
One of these problems is the lack of data especially the
variations in both intra and inter-patient variability. However, positive samples, which lead to unbalanced datasets and make
to achieve good generalization, we use an algorithm that tries to training process harder.
capture spectral, temporal and spatial information, in contrast The goal of this research effort is to optimize many existing
to standard EEG analysis techniques that ignore spatial aspects. designs of automatic seizure detectors that can learn spectral,
The first stage of this algorithm is to transform EEG signals into
a sequence of topology-preserving multi-spectral and temporal
temporal and spatial features from multichannel EEG time
images. After that, these generated images are fed as inputs series data.
to a convolutional neural network. By overcoming the lack of
data, especially the positive samples, and creating a process to II. R ELATED W ORK
deal with unbalanced datasets and optimizing the complexity of There exist only few publicly available EEG seizure
the network, our convolutional neural network learns a general
spatially invariant representation of a seizure in a reasonable
datasets. In this paper we will consider works using the
time and improves sensitivity, specificity and accuracy result biggest freely available dataset (CHB-MIT) and will focus on
comparable to the state-of-the-art results. the offline seizure detection, which involves analyzing and
labeling patients recordings for the purposes of diagnosis,
I. I NTRODUCTION monitoring, or treatment planning. The main use of offline
Epilepsy is a neurological disorder that is characterized by detectors is to replace the need for the laborious visual analysis
abnormal or excessive episodes of neuronal signals inside the or at least make that job easier [1]. Most work done in this
brain. These abnormal brain activities called seizure and can field is either concerned with training detectors for a specific
occur either in partial onset, which comes from a specific brain patient or using cross-patient data. For the patient-specific
region, or general onset, which comes from the brain as a detectors, recent research used machine learning algorithms
whole. There are many side effects associated with seizures and the benchmark result was an SVM classifier that achieved
such as loss of consciousness and abnormal movements. As a sensitivity of 0.96 and a low false positive rate of 0.08/hours
a result, seizure patients require varying medical care that [2]. Similar results have been obtained recently using recurrent
depends on their situation. In the chronic phase, medications convolutional neural network that used image representation
are taken on a daily basis to prevent further seizures. However, of the raw EEG signals [1]. However, because cross-patient
in the focal seizures, a surgical process can be applied. detectors have more generality and can be used without having
Hence, in order to give suitable treatment, we require accurate an expert to label patient-specific data; these results tend to
detection of seizures. Furthermore, many other uses of seizure be not that important as the cross-patient detectors. On the
detection exist such as monitoring patients who have surgical other hand, it is more challenging to design good cross-patient
resection or under treatment [1][8]. The standard diagnosis detectors due to the variability from patient to patient. The
technique for epilepsy is to monitor brain activities through benchmark cross-patient result was achieved using recurrent
electroencephalograms (EEG). However, EEG readings must convolutional neural network that used image representation
be analyzed by highly trained medical professionals who of the raw EEG signals where they achieved an average
may need several hours to analyze one day of recording sensitivity of 0.85, specificity of 0.83 and a false detection rate
from a single patient. Therefore, it is beneficial to develop a of 0.77/hour on the CHB-MIT dataset [3]. Recently, another
technique that can automatically detect seizures from the EEG deep neural network approach showed good performance on
recordings. Most work done to date uses expert hand-crafted only part of the dataset and achieved an average sensitivity of
features and relies on either spectral or temporal information. 0.812 and a false detection rate of 0.16/hour [4]. Converting
However, it is well known that epileptic seizures are highly raw EEG time-series signals into image representation as a
non-stationary phenomena. Recent research has shown that sequence of topology-preserving multi-spectral images and
using deep learning in such an application can improve the then using it in a deep neural network was first proposed for
result [1][15][16]. However, many problems are still facing a task focused on mental load classification [5].
In (Thodoroff et al., 2016), deep learning showed a promising Fast Fourier transform over a thirty-second time window and
performance on seizure detection, however, many challenges calculate power values in different frequency bands (1-7, 7-14,
are still exist. In this paper, we are aiming to deal with 14-49 Hz) for each electrode projection as shown in Figure
two main challenges. For one, overcome the lack of data, 3. Finally, to create a continuous image, we interpolate the
especially the positive samples, and creating a process to values of each electrode projection using cubic interpolation
deal with unbalanced datasets. Furthermore, optimizing the using Clough-Tocher scheme [5]. This scheme is used to
complexity of the network, hence, the time consumption for interpolate the scattered power measurements over the scalp
training process can be minimized [1]. and to estimate the values between the electrodes over the
16x16 area. This procedure creates images of shape (3x16x16).
III. M ETHODOLOGY Each image has three color channels (one for each frequency
In this paper, we will investigate a deep learning approach band) with height and width of 16 pixels.
for seizure detection from the EEG signal. As shown in Figure Constructing Convolutional Neural Network: We construct
1, the proposed method consists of two main parts. First is con- a convolutional neural network (CNN) to deal with the in-
verting raw EEG time-series signals into image representation herent structure of EEG data as shown in Figure 4. The
as a sequence of topology-preserving multispectral images. CNN has been shown to provide good image representation
After that we construct a convolutional neural network trained of the data, therefore, we used it here to work with the image
to capture spectral, temporal and spatial patterns to predict representation of the spectral, spatial and temporal features
if the image contains a seizure or not. We develop a unique [6]. In this part, we use a CNN that is almost similar to
optimized training technique and apply it to the developed well-known AlexNet which is used in Imagenet classification
network. challenge [6]. As shown in Figure 5, network configuration
consists of ten layers (two conv3-32 layers, two conv3-64
A. Design Description layers,two conv3-128 layers, three max pooling layers, one
Making Images from EEG Time-series Signals: EEG signals fully connected layer and a final softmax layer). We adapt the
consist of multiple time series that represent the measurements network used in the benchmark paper and added two more
over different spatial cortex locations. As with many time conv3-128 layers and one max pooling layer in order to handle
series data, most salient features occur in frequency domain the large amount of data that exist in the training set [1]. In
and can be analyzed using the spectrogram of the signal. addition, a 0.5 probability dropout was used on the last fully
In our case, EEG signal has an additional spatial dimension connected layer to avoid overfiting that may happen due to
[5]. In order to represent both spatial and spectral features, the present of the binary classes classification problem. For
we follow several steps. First, we project the 3D coordinates the convolutional layers we padded the input with 1 pixel
of the patients 21 electrodes onto a 2D surface using Polar to preserve the spatial resolution after convolution and the
Projection, or what is called Azimuthal Equidistant Projection number of kernels are doubled over each following stack. Also,
(AEP), in order to preserve the distance between electrodes in we used small receptive fields of size 3x3 and stride of 1 pixel
the 3D plane as shown in Figure 2 [11][12]. Then, we apply a with ReLU activation function. The Max-pooling layers with
537
Fig. 2. Making images from EEG time-series signals. This process follows tow paths: 1) Converting 3D electrodes locations into 2D representation. 2)
Applying three different frequency bands over the time series.
538
Fig. 5. Convolutional neural network configuration. Ten layers (Convolution + max pooling), followed by a prediction layer (Softmax) for class prediction
Fig. 7. Test results of false alarm for 23 patients compared to the deep neural
Fig. 6. Test results of sensitivity for 23 patients compared to the deep neural network bench mark results (Thodoroff et al).
network bench mark result (Thodoroff et al).
539
Fig. 8. Examples of (A) None seizure and (B) Seizure images. It is not easy to recognize the seizure from multi second and multichannel images
540