Next Article in Journal
Hand-Made Embroidered Electromyography: Towards a Solution for Low-Income Countries
Next Article in Special Issue
A Dual-Padded, Protrusion-Incorporated, Ring-Type Sensor for the Measurement of Food Mass and Intake
Previous Article in Journal
Capacitive and Infrared Gas Sensors for the Assessment of the Methane Number of LNG Fuels
Previous Article in Special Issue
A Game-Based Rehabilitation System for Upper-Limb Cerebral Palsy: A Feasibility Study
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

EEG-Brain Activity Monitoring and Predictive Analysis of Signals Using Artificial Neural Networks

Department of Applied Electronics and Information Engineering, Faculty of Electronics, Telecommunications and Information Technology, Politehnica University of Bucharest, 060042 Bucharest, Romania
*
Author to whom correspondence should be addressed.
Sensors 2020, 20(12), 3346; https://doi.org/10.3390/s20123346
Submission received: 19 April 2020 / Revised: 2 June 2020 / Accepted: 8 June 2020 / Published: 12 June 2020
(This article belongs to the Special Issue Smart Sensors for Healthcare and Medical Applications)

Abstract

:
Predictive observation and real-time analysis of the values of biomedical signals and automatic detection of epileptic seizures before onset are beneficial for the development of warning systems for patients because the patient, once informed that an epilepsy seizure is about to start, can take safety measures in useful time. In this article, Daubechies discrete wavelet transform (DWT) was used, coupled with analysis of the correlations between biomedical signals that measure the electrical activity in the brain by electroencephalogram (EEG), electrical currents generated in muscles by electromyogram (EMG), and heart rate monitoring by photoplethysmography (PPG). In addition, we used artificial neural networks (ANN) for automatic detection of epileptic seizures before onset. We analyzed 30 EEG recordings 10 min before a seizure and during the seizure for 30 patients with epilepsy. In this work, we investigated the ANN dimensions of 10, 50, 100, and 150 neurons, and we found that using an ANN with 150 neurons generates an excellent performance in comparison to a 10-neuron-based ANN. However, this analyzes requests in an increased amount of time in comparison with an ANN with a lower neuron number. For real-time monitoring, the neurons number should be correlated with the response time and power consumption used in wearable devices.

1. Introduction

1.1. Aim of the Work

Epilepsy is a disease that affects about 1% of the world’s population. Crisis identification involves multi-channel EEG monitoring for 24–72 h. Crisis detection (grand mal) is essential for the diagnosis of epilepsy, the control of the crisis, and warning the patients in sufficient time before the seizure. Moreover, the observation and investigation of the biomedical signals values before an epileptic seizure are beneficial for developing prevention and support systems for patients because by informing the patient that an epilepsy seizure is about to occur, he or she can take his or her safety measures promptly. The correlations and covariance between the biomedical signals that EEG, PPG, and EMG collect from sensors are essential because, in the case of the patients with epilepsy, the heart rate increases, and uncontrolled tremors of the muscles or their stiffening may occur.
In the case of the patients with epilepsy, the real-time monitoring based on wearable devices with EEG, PPG, EMG integrated, and biomedical signals predictive analysis based on neural network systems with reduced processing time and low power computing is essential for warning before a seizure, and patients fall prevention.

1.2. State-of-the-Art

There are scientific studies that specify the use of artificial intelligence, using methods such as deep neural networks for patients’ ECG-based authentication [1], ResNet-based signal recognition [2], arrhythmia detection [3,4], or learning feed-forward and recurrent neural networks [5]. The automatic signal detection was used in studies based on the discrete wavelet transform (DWT) for automated detection [4] or automated heartbeat classification [6].
The electrical activity of the brain monitoring by EEG (electroencephalogram) is useful to study the disease pathologies by analyzing the numerical distribution of data and correlating the brain signals (EEG) with other types of biomedical signals such as electrical activity of the heart obtained by electrocardiogram (ECG), heart rate monitoring by photoplethysmograph (PPG), and electrical activity produced by muscles by electromyography (EMG) [7,8,9].
To analyze the pathology of chronic diseases, the researchers also used the multivariate analysis of EEG, ECG, and PPG signals [10,11].
Mainly for predictive analysis of influence factors that generate a pathology or of the biomedical signal changes that could anticipate the existence of pathology are software applications for signal acquisition from sensors (EEG, ECG, PPG, or EMG), correlations [12], univariate, bivariate [13,14,15] or multivariate analyzes [16,17] of numerical data used, but computational methods [18] based on mathematical models are also used. Thus, computational models use studies on large populations (e.g., 274 patients [19]) and a large volume of data (e.g., 183 seizures recorded in 3565 h [20]). These analyses aim to find valid patterns [21] for a large population with similar independent variables (age, gender).
For the prediction of epileptic seizures, researchers used technologies such as machine learning, data mining, artificial neural networks [22] (backpropagation algorithm-for recognition and classification of EEG signals [23,24]), fuzzy systems [25], and predictive analysis statistics (multivariate [26], bivariate or univariate).
The study of the correlations between various electrical signals captured (e.g., EEG, ECG, PPG, and EMG) from the human body is essential because, in the case of patients with neurological disorders, the phenomenon of comorbidity exists and consists of overlapping of several diseases.
The electroencephalogram (EEG) represents a set of fluctuating field potentials produced by the simultaneous activity of a large number of neurons [27] and captured by electrodes located on the scalp. The EEG system consists of 10–20 metal electrodes distributed on the skin surface of the head and connected by 36 wires to the recording device. It measures the electrical potential detected by each electrode. EEG can be used in monitoring the brain during anesthesia [28], surgical procedures [29], and investigations of brain disorders (psychoses [30], meningoencephalitis [31], Parkinson [9], Alzheimer [32,33,34,35,36,37], dementia [38], epilepsy [39,40,41,42], central motor neuron syndrome [43], cerebral palsy [44,45,46], and muscular dystrophy [47]). Mainly, EEG systems are used to diagnose and monitor patients with neuropathology, especially in diagnosis of epilepsy and in studying the seizures, as well as the monitoring of treatment and evolution.
Electroencephalographic reactivity is evaluated using simple tests: eye-opening, hyperpnea (slow and full breathing), and intermittent light stimulation obtained with short and intense light discharges with gradually increasing frequency. The EEG assessment takes approximately 20 min and does not require hospitalization [48].
In the case of an electroencephalogram, the risks are minimal. Still, intermittent light stimulation or hyperventilation can produce epileptic seizures. Therefore, the examination is performed under the supervision of a physician who can recognize the crisis and immediately establish appropriate safety and therapeutic measures.
Epilepsy is a chronic disease of the brain that manifests through partial (focal) or generalized seizures due to spontaneous electrical discharges that occur in the brain.
Manifestations consist of involuntary movements of different body segments and abnormal neuro-vegetative sensations in the body. EEG analysis can be used to diagnose and monitor the patient in various stages of the disease (focal or generalized seizures, sleep) [38,39,40,41].

1.3. Contribution

In this paper, we present an efficient method for the detection of seizures based on artificial neural networks and correlations between biomedical signals.
Our study included 30 subjects from the CAP Sleep Database [49,50]. Our selected records were sampled at 160 Hz. The records consisted of both normal EEG and EEG spikes specific to epileptic seizures. The signals captured were from 13 EEG channels, submentalis and bilateral anterior tibialis EMG, and an earlobe PPG sensor. We used the artificial neural network and the Levenberg–Marquardt backpropagation optimization algorithm in MATLAB for implementing the classification and 3D plots. Data pre-processing and feature extraction were implemented using MATLAB 2019a (Mathworks, Santa Clara, CA, USA). All the experiments were carried out in Windows 8.1, 8 GB RAM, and 64-bit operating system.
The rest of the paper is structured as follows: the methods for signals decomposition, filtering, EEG biomedical signals, and theoretical methodology are presented in Section 2. Section 3 presents the predictive analysis of the signals using artificial neural networks. Aspects concerning the biomedical signals covariance are discussed in Section 4. The conclusions of the work are presented in Section 5.

2. Materials and Methods

The proposed method was tested using the CAP Sleep Database. The CAP Sleep Database comprises 40 recordings of patients (male and female) diagnosed with nocturnal frontal lobe epilepsy. The record duration is 8 h, approximately.
Our study included 30 subjects from the CAP Sleep Database. Our selected records were sampled at 160 Hz. The records consist of both normal EEG and EEG spikes specific to epileptic seizures. We analyzed 30 EEG recordings 10 min before a seizure and during the seizure in 30 patients with epilepsy. The signals analyzed are from 13 EEG channels, submentalis and bilateral anterior tibialis EMG, and an earlobe PPG sensor.
Within this research, the topic has used the detection of electrical signals from the brain using the EEG head with non-invasive electrodes (for the available biomedical signals in the PhysioNet databases).
In the discrete-time domain, digital filters (low-pass filter for signals with a frequency lower than a selected cutoff frequency and a high-pass filter that passes signals with a frequency higher than a cutoff frequency chosen) have been used for signal analysis.
Discrete wavelet transformation (DWT) [48] is calculated by additional high-pass and successive low-pass filters and sub-sampling using the Mallat algorithm [51]. Additional filtering applied to a real EEG signal leads to double the number of data from the original one being requested after each filtration to reduce the number of samples by sub-sampling of the EEG signal. DWT uses the dyadic variant. In the wavelet analysis, approximations (a (n)) and details (d (n)) are used (Figure 1 and Figure 2):
  • Approximations (a (n)) are the components at high scales and low frequencies;
  • Details (d (n)) are components at low levels and high rates.
To reduce the continuous-time signal to a discrete-time signal, the EEG signals were sampled with a sampling frequency (fs = 160 Hz). EEG signals were filtered by a low-pass filter (60 Hz) and a high-pass filter (0.1 Hz) and decomposed using the discrete wavelet transform [52,53] for patients without epilepsy (Figure 1).
In the case of epilepsy, seizures detection consists of finding EEG segments with seizures and onset and offset points [53]. For pattern profiling, it is necessary to monitor a large population of patients with epilepsy for 24–48 h. Because gamma frequency oscillations (30–120 Hz) often precede interictal epileptiform spike discharges (IEDs) [54], we used DWT with Daubechies function, and we considered the low-pass filter 120 Hz to observe the gamma wave specific to an epileptic seizure. Some scientific papers report the values around 100–600 Hz for gamma waves—that is, not associated with IEDs, but occurring during epileptic seizures [54,55]. However, other researchers [54,56] reported the fluctuation of gamma wave values.
EEG signals were filtered by a low-pass filter (120 Hz) and a high-pass filter (0.1 Hz) and decomposed using the discrete wavelet transform for patients with epileptic seizures (Figure 2).
  • x (n)—signal (0.1–60 Hz), respective for patient with seizure x (n)—signal (0.1–120 Hz);
  • h(n)—low-pass filter (LPF);
  • g (n)—high-pass filter (HPF);
  • d (n)—the signal of the detail produced by HPF, e.g., d1, 1, d2, 1, d3, 1, d4, 1;
  • a (n)—the signal produced by LPF, is a rough approximation, e.g., a1, 1, a2, 1, a3, 1, a4, 1;
  • ↓2—down sampling by two.
The wavelet transform is a way to implement a particular type of signal representation called multi-resolution analysis [57,58]. The analyzed signal is described by a succession of details and approximations that contain more information. Each level of approximation (Figure 1 and Figure 2) contains information available at the previous level, which is an added component of detail. In Figure 3, the signal processed by discrete wavelet transform and Daubechies method using four decomposition levels for a patient before and after a short seizure is presented. In Figure 3, detail d1 represents gamma waves, detail d2 represents beta waves, detail d3 represents alpha waves, detail d4 represents theta waves, and the approximation a4 represents delta waves.
In Figure 4, the signal processed by discrete wavelet transform and Daubechies method using four decomposition levels for a patient with epileptic seizures is presented. In Figure 4, the detail d1 represents gamma waves, detail d2 represents beta waves, detail d3 represents alpha waves, detail d4 represents theta waves, and the approximation a4 represents delta waves. From Figure 4, it is evident that the presence of the gamma waves with values equal to or greater than 120 shows that a seizure phase is present. Moreover, the epileptic spikes are very evident in Figure 4.
In Figure 5, the 3D spectrogram of the signals from all 13 channels of electro-cap used for monitoring a patient with an epileptic seizure is presented. The epileptic gamma waves spikes (with the yellow-red color market on the graphic) that are over 200 or 400, indicating abnormal frequencies for gamma waves that occur on seizures, are also evident from Figure 5.

3. Biomedical Signal Selection

To analyze the correlation and covariance between signals, signals such as EEG (related to the frontal lobes FP1-F3, FP2-F4), EMG, and PPG from a patient n1 with no epileptic seizures and a patient n2 with epileptic seizures were selected.
The purpose of using PPG and EMG signals in correlation with EEG was to find a modification of the biomedical signals collected from wearable devices that could anticipate an epilepsy seizure and to use a software system to send medical alerts in advance [59,60,61,62,63,64,65]. From the CAP Sleep Database, the biomedical signals taken from 2 patients (n1 and n2) were used for the actual study. In Figure 6 and Figure 7, the 3D spectrograms for the EEG signals (Fp2-F4, F4-C4, C4-P4, P4-O2, F8-T4, T4-T6, FP1-F3, F3-C3, C3 -P3, P3-O1, F7-T3, T3-T5, C4-A1) taken from patients n1 and n2 are presented. In the case of patient n1, the epileptic spikes for gamma waves cannot be observed (Figure 6), but in the case of patient n2, these spikes are evident, marked with yellow-orange in the 3D spectrogram (Figure 7) and being above the 120 Hz threshold.

4. Results Based on Predictive Analysis of the Signals Using Artificial Neural Networks

For predictive analysis of EEG signals, artificial feed-forward neural networks are used based on the Levenberg–Marquardt backpropagation optimization algorithm.
The functional units within the neural networks consisted of:
  • Input units represented by the values of the EEG matrix for patients with epilepsy seizures.
Hidden groups (data) given by the number of neurons (10, 50, 100, and 150 neurons, respectively).
  • Outputs are represented by the values of the EEG matrix for patients who do not have seizures.
For optimization, the Levenberg–Marquardt algorithm was used, which approximates the Hessian matrix (H) as follows (1):
H = J T J
where:
  • J is the Jacobian matrix containing the derivatives of the error function concerning weights (w) and biases (b);
  • JT is the transposed Jacobian matrix;
  • e is the vector of errors.
The Levenberg–Marquardt algorithm uses the following parameter updating rule (Equation (2)):
x k + 1 = x k J T J + μ I 1 J T e
For this purpose, four neural networks were designed with n hidden neurons (Figure 8), where n 10 ,   50 ,   100 ,   150 , to estimate the occurrence of epilepsy seizures, compared with EEG signals taken from a healthy patient, respectively, with EEG signals received from the patient with no seizures. The artificial neural network (ANN) architecture models (with 10, 50, 100, and 150 respective hidden neurons) used for the prediction of the epileptic seizures have a two-layer feed-forward network with hidden sigmoid neurons and linear output neurons, and allow the training and evaluation of the performance using mean square error (MSE) and regression analysis (R). The proposed ANNs structures are based on the principal elements:
  • input data (matrix 13 × 5120 samples);
  • hidden layer with n neurons, n ∈ {10, 50, 100, 150};
  • output (target) data (matrix 13 × 5120 samples);
  • train set (70% of samples) that is used to provide an independent measure of network performance during and after training;
  • test set (15% of samples) that is used during training, and the network is adjusted according to its error;
  • validation set (15% of samples) is used to measure network generalization, and to halt training when generalization stops improving.
In Table 1, the principal parameters for ANNs with 10, 50, 100, and 150 neurons are presented.
Prediction and optimization were made with a feed-forward backpropagation multi-layer neural network.
The input data-independent variables (matrix input) X1 = EEG signal (EEG3) taken when the patient does not have seizures.
The target data-dependent variables (matrix target) Y1 = EEG signal (EEG1) taken from a patient with epilepsy. The target (Y1) represents the desired output for the given input, X1. We consider the real output matrix (D).
The continuous training of neural networks is based on extensive datasets; 70% (3584 samples) of the total data generated by the ANNs were used to train the model, while 15% (768 samples) of the data was used for testing and 15% (768 samples) for validation (Figure 9, Figure 10, Figure 11 and Figure 12). Regression analysis of the ANN model showed the R2 (regression) values for training between 0.57316 for the ANN with ten neurons, 0.65267 for the ANN with 50 neurons, 0.85089 for the ANN with 100 neurons, and 0.81819 for the ANN with 150 neurons, showing the higher accuracy and significance of the ANN model for the ANN with 100 neurons, respective to the ANN with 150 neurons.
MATLAB libraries were used to perform the functions and the code sequences within the neural networks. The regression plots (9–12) show a regression between network outputs and network targets. The parameterized linear regression model is given by mathematical relation (3). The R (Equation (3)) value indicates the relationship between the outputs (y) and targets. If R = 1, this indicates that there is an exact linear relationship between outputs and targets. If the R-value is close to zero, then there is no linear relationship between the outputs and targets.
R = D = j = 1 M w j x j + ε         R = w T x + ε
where:
  • ε is the error;
  • wj is synaptic weight;
  • x is the input matrix;
  • M is the model order;
  • T denotes matrix transposition (Equations (4) and (5)).
w = w 1 , w 2 , , w M T
x = x 1 , x 2 , , x M T
From the regression graphs for testing, training, and validation for neural networks with 10, 50, 100, and 150 neurons (Figure 9, Figure 10, Figure 11 and Figure 12), and from values presented on Table 1, it is evident that the value of the R regression for training, validation, and testing is in a direct relationship with the number of neurons of the network. The regression value R close to zero indicates that is no linear relationship between outputs and targets. Moreover, if R is very close to 1, it shows a good match and an exact linear relationship between the outputs and targets. From the regression graphs, it is observed that the value of the regression for test, training, and validation is close to the value 1, which indicates a good match between inputs, outputs, and objectives. From Figure 9, it can be observed that, in the case of the neural network with ten hidden neurons, the values of the regression for test, validation, and training are in the inequality report RTest < RTraining < RValidation, the regression is lower than 1, and the higher one is the regression for validation (RValidation = 0.63855). From Figure 10, we observed that, in the case of the neural network with 50 hidden neurons, the values of the regression for test, validation, and training are in the inequality report RTest < RValidation < RTraining, the regression is lower than 1, and the higher one is the regression for training (RTraining = 0.65267). In Figure 11, it can be observed that, in the case of the neural network with 100 hidden neurons, the values of the regression for test, validation, and training are in the inequality report RValidation < RTest < RTraining, the regression is lower than 1, and the higher one is the regression for training (RTraining = 0.85089). From Figure 12, it is evident that, in the case of the neural network with 150 hidden neurons, the values of the regression for test, validation, and training are in the inequality report RTest < RValidation < RTraining, the regression is lower than 1, and the higher one is the regression for training (RTraining = 0.81819).
From the histograms of errors (Figure 13 and Figure 14), it can be observed that the increase in the number of neurons in the network leads to a decrease in the percentage of errors generated. The error histograms (Figure 13 and Figure 14) show normal distributions with residuals (errors), indicating that many of the residuals fall on or near zero in the case of the ANN with 150 neurons. Analyzing Figure 13 and Figure 14, we can conclude that the ANN model with 150 neurons used for the prediction can generate an excellent prediction of epileptic seizures.
In Table 2 are presented for each neural network developed, the number of hidden neurons allocated, the processing time [seconds] of the neural network, and the values of the regression for training (RTraining), test (RTest), and validation (RValidation). In Table 2, the processing time represents the total time allocated for training, test, and validation.
In the proposed ANN with n (10, 50, 100, and 150) neurons, we defined the training set, test set, and validation set to check over-optimization. The validation set was used to measure network generalization, and to halt training when generalization stopped improving. The evaluation of the performance was done using mean square error (MSE) and regression analysis (R).
In Figure 15 and Figure 16, the performances of the neural networks with 10 and 150 neurons, respectively, are presented. In Figure 15 and Figure 16, error vs. epoch is plotted for the validation. The best validation is taken from the epoch with the lowest validation error. On the y axis of the charts, the mean squared error (MSE) (Equation (6)) is presented. The best validation is taken from the epoch with the lowest validation error. Mainly, the error reduces after more epochs of training.
MSE S E = 1 n i = 1 n y i y ^ i 2
where:
  • y i is the vector of observed values;
  • y ^ i is the vector of predicted values.
However, the best validation performance was generated in 40 epochs, whereas 47 epochs were run to confirm the model accuracy for the ANN with ten neurons (Figure 15). The best validation performance was generated in 9 epochs, whereas 15 epochs were run to confirm the model accuracy for the ANN with 150 neurons (Figure 16). In comparison with the ANN with ten neurons, the ANN with 150 neurons shows higher performance.

5. Discussion

5.1. Biomedical Signals Covariance Analysis

In order to evaluate if the previously presented biomedical signals (EMG, PPG, and EEG) can be used to predict epileptic seizures, it is necessary to investigate the covariance between all the analyzed signals. Mainly, for two discrete signals, x(k) and y(k), correlation is a discrete function in time (Equation (7)), defined by:
r x y k = n = + x n y n k
where k = 0, 1, 2, ….
Using the correlation function of two signals, the similarity between the signals can be appreciated. The autocorrelation function has a maximum in origin when k = 0 and can be used to determine the periodicity of real signals. The autocorrelation function (Equation (8)) is defined by:
r x x k = n = + x n y n k
where: k = 0, 1, 2, ….
The signals EEG1 (no seizure) and EEG3 (with seizure) collected from patient n1, respective to the signals EEG2 (with seizure) and EEG4 (no seizure) collected from patient n2, were sampled at a rate of 160 Hz and filtered using high-pass (0.1 Hz) and low-pass filters (60 Hz for EEG with no seizure activity, respective to 120 Hz for EEG with seizure).
By analyzing the covariance matrix for EEGi, EEGj (Equations (9), (11), (13), (15), (17) and (19)), and correlation coefficients (Equations (10), (12), (14), (16), (18) and (20)), we found that:
  • between EEG1 and EEG3 is a negative covariance; this means that they are not in a linear dependence (Equation (9)). Because the correlation coefficient is negative (Equation (10)), it follows that EEG1 and EEG3 are in an inverse proportionality relationship.
  • between EEG2 and EEG4 is a negative covariance, which means that EEG2 and EEG4 are not in a linear dependence (Equation (11)). Because the correlation coefficient is negative (Equation (12)), it follows that EEG1 and EEG3 are in an inverse proportionality relationship.
  • between EEG1 and EEG4 is a positive covariance, which means that EEG1 and EEG4 are in a linear dependence (Equation (13)), and because the correlation coefficient is positive (Equation (14)), it follows that EEG1 and EEG4 are in a direct proportionality relationship.
  • between EEG1 and EEG2 is a negative covariance (Equation (15)), which means that EEG1 and EEG2 are not in a linear dependence, and because the correlation coefficient is negative (Equation (16)), it follows that EEG1 and EEG2 are in an inverse proportionality relationship.
  • between EEG2 and EEG3 is a positive covariance, which means that EEG2 and EEG3 are in a linear dependence (Equation (17)), and because the correlation coefficient is positive (Equation (18)), it follows that EEG1 and EEG4 are in a direct proportionality relationship.
  • between EEG3 and EEG4 is a negative covariance (Equation (19)), which means that EEG3 and EEG4 are not in a linear dependence, and because the correlation coefficient is negative (Equation (20)), it follows that EEG3 and EEG4 are in an inverse proportionality relationship.
c o v E E G 1 ,   E E G 3 = 1.0 e + 05 0.7206 0.0369 0.0369 0.7206
R E E G 1 ,   E E G 3 = 1.0000 0.0272 0.0272 1.0000 r 1 , 2 = r 2 , 1 = 0.0272
c o v E E G 2 ,   E E G 4 = 1.0 e + 05 0.5555 0.0900 0.0900 5.7909 ,
R E E G 2 , E E G 4 = 1.0000 0.0502 0.0502 1.0000 r 1 , 2 = r 2 , 1 = 0.0502 ,
c o v E E G 1 ,   E E G 4 = 1.0 e + 05 0.7206 0.0196 0.0196 5.7909 ,
R E E G 1 ,   E E G 4 = 1.0000 0.0096 0.0096 1.0000 r 1 , 2 = r 2 , 1 = 0.0096 ,
c o v E E G 1 ,   E E G 2 = 1.0 e + 04 7.2061 0.5302 0.5302 5.5551 ,
R E E G 1 ,   E E G 2 = 1.0000 0.0838 0.0838 1.0000 r 1 , 2 = r 2 , 1 = 0.0838 ,
c o v E E G 2 ,   E E G 3 = 1.0 e + 05 0.5555 0.3163 0.3163 2.5545 ,
R E E G 2 , E E G 3 = 1.0000 0.2655 0.2655 1.0000 r 1 , 2 = r 2 , 1 = 0.2655 ,
c o v E E G 3 ,   E E G 4 = 1.0 e + 05 2.5545 0.2580 0.2580 5.7909 ,
R E E G 3 ,   E E G 4 = 1.0000 0.0671 0.0671 1.0000 r 1 , 2 = r 2 , 1 = 0.0671
Using the Shapiro–Wilk test (Figure 17) to evaluate the distribution of EEG1, EEG2, EEG3, and EEG4 signals in the Brainstorm application, it can be seen that the values for WEEG1 = 0.9378, WEEG2 = 0.9236, WEEG3 = 0.9133, and WEEG4 = 0.8299, are very close to 1, which means that the signals have a distribution close to the normal distribution.
The analysis of the covariances and correlations between EMG2 and EEG2 (Equations (21) and (22)) and PPG3 and EEG3 (Equations (23) and (24)), respective of those between EMG3 and EEG3 (Equations (25) and (26)), shows that there is a positive correlation and a direct covariance between signal pairs ((PPG3, EEG3) and (EMG3, EEG3)), respective of those between signal pairs (EMG2, EEG2), which could be exploited in anticipation of epilepsy seizures by predictive analysis using an ANN and a support decision system.
c o v E M G 2 , E E G 2 = 1.0 e + 04 0.6864 0.0422 0.0422 9.2137 ,
R E M G 2 , E E G 2 = 1.0000 0.0168 0.0168 1.0000 r 1 , 2 = r 2 , 1 = 0.0168 ,
c o v P P G 3 ,   E E G 3 = 1.0 e + 05 0.2690 0.0909 0.0909 4.9304 ,
R P P G 3 ,   E E G 3 = 1.0000 0.0789 0.0789 1.0000 r 1 , 2 = r 2 , 1 = 0.0789
c o v E M G 3 ,   E E G 3 = 1.0 e + 05 2.1729 0.0122 0.0122 4.9304 ,
R E M G 3 , E E G 3 = 1.0000 0.0037 0.0037 1.0000 r 1 , 2 = r 2 , 1 = 0.0037 ,
In conclusion, the correlations and covariances between the biomedical signals (EEG, PPG, and EMG) collected from sensors are significant because, in the case of the patients with epilepsy, the heart rate increases and may generate uncontrolled tremors of the muscles or their stiffening. Furthermore, to patients having epilepsy, the comorbidity phenomena are present [66,67,68] and consist of overlapping of several diseases (diabetes, cardiovascular diseases, etc.)

5.2. Comparative Analysis

To observe the performance of our proposed methodology, we compared our methods (DWT and ANN), validation, and accuracy of the results with the existing methods based on machine learning from the literature. Comparison is presented in Table 3, which contains the feature extraction methods, the machine learning methods, the validation methods, and also the classification accuracy.

5.3. Limitation and Future Scope

The proposed methods give significant results, but the ratio between best validation performance and processing time exhibits an inverse relationship and generates the limitation in real-time data processing because the neural network with 150 neurons has the best validation performance, but the increasing the number of neurons in the ANN generates an increase in the time required for data processing.
The other state-of-the-art methods do not analyze the problem of real-time processing through the perspective of the ratio between best performance validation and time.
However, an investigation for a new set of parameters and to learn algorithms to improve this is needed. Moreover, analyzing other physiological signals such as the heart’s electrical activity (ECG) along with EMG, PPG, and EEG may improve the investigations to detect biomedical parameters changes before or during the seizures.

6. Conclusions

In this work, we used artificial neural networks (ANN) for automatic detection of epileptic seizures before onset. We used DWT with Daubechies function for decomposing the signals and analyzing EEG recordings before onset and during the seizure for patients with epileptic seizures and with no epileptic seizures. To design the model, we used the predictive analysis of EEG signals, artificial feed-forward neural networks based on the Levenberg–Marquardt backpropagation optimization algorithm. In addition, we analyzed the covariance between biomedical signals (EEG, PPG, and EMG) to select the signals that can be used on predicting epileptic seizures.
We can conclude that using the ANN with 150 neurons has an excellent performance in comparison with the ANN with ten neurons. However, this ANN analyzes requests an increased time in comparison with an ANN with a lower neuron number (e.g., ten neurons). Even if the use of an ANN with a large number of neurons gives more precision, it requires a very long time for data processing, and it is preferable to choose neural networks that provide an adequate solution about the issues regarding the accuracy of the outputs and the time allocated for processing [80].
The analysis of the covariance and correlation between signals allows the identification of biomedical signals that can be used in the predictive ANN applications for medical alert systems to send alerts if the regression at time t has a different value from the regression recorded in the analysis of signals taken from patients with no seizures activity [80].
The proposed methods showed promising results compared to other state-of-the-art methods. Our method opens new perspectives to the successful automatic detection of epileptic seizures before onset, enabling a real-time brain monitoring wearable system.
In the future, we plan to apply this method to epileptic signal detection on wearable devices. Our next research object is to develop a successful seizure forecasting model by analyzing, in addition, heart electrical activity (ECG).

Author Contributions

Conceptualization, R.M.A.; methodology, R.M.A.; software, R.M.A.; validation, R.M.A.; formal analysis, R.M.A., S.P., and A.F.; investigation, R.M.A.; writing—original draft preparation, R.M.A.; writing—review and editing, R.M.A. and A.F.; visualization, R.M.A.; supervision, S.P. and A.F.; project administration, R.M.A., A.F., and S.P.; and funding acquisition, A.F. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Hammad, M.; Pławiak, P.; Wang, K.; Acharya, U.R. ResNet-Attention model for human authentication using ECG signals. Expert Syst. 2020, e12547. [Google Scholar] [CrossRef]
  2. Tuncer, T.; Ertam, F.; Dogan, S.; Aydemir, E.; Pławiak, P. Ensemble residual network-based gender and activity recognition method with signals. J. Supercomput. 2020, 76, 2119–2138. [Google Scholar] [CrossRef]
  3. Pławiak, P.; Acharya, U.R. Novel deep genetic ensemble of classifiers for arrhythmia detection using ECG signals. Neural Comput. Appl. 2019, 1–25. [Google Scholar] [CrossRef] [Green Version]
  4. Tuncer, T.; Dogan, S.; Pławiak, P.; Acharya, U.R. Automated arrhythmia detection using novel hexadecimal local pattern and multilevel wavelet transform with ECG signals. Knowl. Based Syst. 2019, 186, 104923. [Google Scholar] [CrossRef]
  5. Plawiak, P.; Tadeusiewicz, R. Approximation of phenol concentration using novel hybrid computational intelligence methods. Int. J. Appl. Math. Comput. Sci. 2014, 24, 165–181. [Google Scholar] [CrossRef] [Green Version]
  6. Kandala, R.N.; Dhuli, R.; Pławiak, P.; Naik, G.R.; Moeinzadeh, H.; Gargiulo, G.D.; Gunnam, S. Towards Real-Time Heartbeat Classification: Evaluation of Nonlinear Morphological Features and Voting Method. Sensors 2019, 19, 5079. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  7. Alqatawneh, A.; Alhalaseh, R.; Hassanat, A.; Abbadi, M. Statistical-Hypothesis-Aided Tests for Epilepsy Classification. Computers 2019, 8, 84. [Google Scholar] [CrossRef] [Green Version]
  8. Chenane, K.; Touati, Y.; Boubchir, L.; Daachi, B. Neural Net-Based Approach to EEG Signal Acquisition and Classification. BCI Appl. Comput. 2019, 8, 87. [Google Scholar]
  9. Borghini, G.; Aricò, P.; Di Flumeri, G.; Sciaraffa, N.; Babiloni, F. Correlation and similarity between cerebral and non-cerebral electrical activity for user’s states assessment. Sensors 2019, 19, 704. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  10. Usami, K.; Matsumoto, R.; Sawamoto, N.; Murakami, H.; Inouchi, M.; Fumuro, T.; Shimotake, A.; Kato, T.; Mima, T.; Shirozu, H.; et al. Epileptic network of hypothalamic hamartoma: An EEG-fMRI study. Epilepsy Res. 2016, 125, 1–9. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  11. Übeyli, E.D.; Cvetkovic, D.; Cosic, I. AR spectral analysis technique for human PPG, ECG and EEG signals. J. Med. Syst. 2008, 32, 201–206. [Google Scholar] [CrossRef] [PubMed]
  12. Bonita, J.D.; Ambolode, L.C.C.; Rosenberg, B.M.; Cellucci, C.J.; Watanabe, T.A.A.; Rapp, P.; Albano, A.M. Time domain measures of inter-channel EEG correlations: A comparison of linear, nonparametric and nonlinear measures. Cogn. Neurodyn. 2013, 8, 1–15. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  13. Mirowski, P.; Madhavan, D.; LeCun, Y.; Kuzniecky, R. Classification of patterns of EEG synchronization for seizure prediction. Clin. Neurophysiol. 2009, 120, 1927–1940. [Google Scholar] [CrossRef] [Green Version]
  14. Kuhlmann, L.; Freestone, D.R.; Lai, A.; Burkitt, A.N.; Fuller, K.; Grayden, D.B.; Seiderer, L.; Vogrin, S.; Mareels, I.; Cook, M.J. Patient-specific bivariate-synchrony-based seizure prediction for short prediction horizons. Epilepsy Res. 2010, 91, 214–231. [Google Scholar] [CrossRef] [PubMed]
  15. Shibasaki, H.; Rothwell, J.C.; Deuschl, G.; Eisen, A.; EMG-EEG Correlation. Recommendations for the practice of Clinical Neurophysiology: Guidelines of the International Federation of Clinical Neurophysiology. Electroenceph Clin Neurophysiol. Electroenceph. Clin. Neurophysiol. Suppl. 1999, 52, 269–274. [Google Scholar]
  16. Williamson, J.R.; Bliss, D.W.; Browne, D.W.; Narayanan, J.T. Seizure prediction using EEG spatiotemporal correlation structure. Epilepsy Behav. 2012, 25, 230–238. [Google Scholar] [CrossRef] [Green Version]
  17. Sharma, A.; Rai, J.K.; Tewari, R.P. Multivariate EEG signal analysis for early prediction of epileptic seizure. In Proceedings of the 2015 2nd International Conference on Recent Advances in Engineering & Computational Sciences (RAECS), Chandigarh, India, 21–22 December 2015. [Google Scholar]
  18. Teixeira, C.; Direito, B.; Bandarabadi, M.; Le Van Quyen, M.; Valderrama, M.; Schelter, B.; Schulze-Bonhage, A.; Navarro, V.; Sales, F.; Dourado, A. Epileptic seizure predictors based on computational intelligence techniques: A comparative study with 278 patients. Comput. Methods Programs Biomed. 2014, 114, 324–336. [Google Scholar] [CrossRef] [PubMed]
  19. Buchbinder, M. Neural imaginaries and clinical epistemology: Rhetorically mapping the adolescent brain in the clinical encounter. Soc. Sci. Med. 2014, 143, 304–310. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  20. Bandarabadi, M.; Teixeira, C.; Rasekhi, J.; Dourado, A. Epileptic seizure prediction using relative spectral power features. Clin. Neurophysiol. 2015, 126, 237–248. [Google Scholar] [CrossRef]
  21. Smith, S.J.M. EEG in the diagnosis, classification, and management of patients with epilepsy. J. Neurol. Neurosurg. Psychiatry 2005, 76, ii2–ii7. [Google Scholar] [CrossRef] [Green Version]
  22. Costa, R.P.; Oliveira, P.; Rodrigues, G.; Leitao, B.; Dourado, A. Epileptic seizure classification using neural networks with 14 features. In Proceedings of the International Conference on Knowledge-Based and Intelligent Information and Engineering Systems, Budapest, Hungary, 3–5 September 2008; Springer: Berlin, Germany. [Google Scholar]
  23. Damayanti, A.; Pratiwi, A.B. Epilepsy detection on EEG data using backpropagation, firefly algorithm, and simulated annealing. In Proceedings of the 2nd International Conference on Science and Technology-Computer (ICST), Yogyakarta, Indonesia, 27–28 October 2016. [Google Scholar]
  24. Aldabbagh, A.M.; Alshebeili, S.A.; Alotaiby, T.N.; Abd-Elsamie, F.E. Low computational complexity EEG epilepsy data classification algorithm for patients with intractable seizures. In Proceedings of the 2015 2nd International Conference on Biomedical Engineering (ICoBE), Penang, Malaysia, 30–31 March 2015. [Google Scholar]
  25. Harikumar, R.; Shanmugam, A.; Rajan, P. VLSI Synthesis of Heterogeneous and SIRM Fuzzy System for Classification of Diabetic Epilepsy Risk Levels. In Proceedings of the 2008 Cairo International Biomedical Engineering Conference, Cairo, Egypt, 18–20 December 2008. [Google Scholar]
  26. Quintero-Rincón, A.; Prendes, J.; Pereyra, M.; Batatia, H.; Risk, M. Multivariate Bayesian classification of epilepsy EEG signals. In Proceedings of the IEEE 12th Image, Video, and Multidimensional Signal Processing Workshop (IVMSP), Bordeaux, France, 11–12 July 2016. [Google Scholar]
  27. Despre Electroencefalografie. Ce Diagnostice Poate Descoperi? Available online: http://www.unicare.ro/blog/despre-electroencefalografie-ce-diagnostice-poate-descoperi.htm (accessed on 15 December 2017).
  28. Kreuzer, M. EEG based monitoring of general anesthesia: Taking the next steps. Front. Comput. Neurosci. 2017, 11, 56. [Google Scholar] [CrossRef] [Green Version]
  29. Jameson, L.C.; Sloan, T.B. Using EEG to monitor anesthesia drug effects during surgery. J. Clin. Monit. 2006, 20, 445–472. [Google Scholar] [CrossRef]
  30. Takeda, Y.; Inoue, Y.; Tottori, T.; Mihara, T. Acute psychosis during intracranial EEG monitoring: Close relationship between psychotic symptoms and discharges in amygdala. Epilepsia 2001, 42, 719–724. [Google Scholar] [CrossRef] [Green Version]
  31. Gandelman-Marton, R.; Kimiagar, I.; Itzhaki, A.; Klein, C.; Theitler, J.; Rabey, J.M. Electroencephalography findings in adult patients with West Nile virus—associated meningitis and meningoencephalitis. Clin. Infect. Dis. 2003, 37, 1573–1578. [Google Scholar] [CrossRef]
  32. Yi, G.-S.; Jiang, W.; Bin, D.; Xi-Le, W. Complexity of resting-state EEG activity in the patients with early-stage Parkinson’s disease. Cogn. Neurodyn. 2017, 2, 147–160. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  33. Dauwels, J.; Francois, V.; Andrzej, C. Diagnosis of Alzheimer’s disease from EEG signals: Where are we standing? Curr. Alzheimer Res. 2010, 7, 487–505. [Google Scholar] [CrossRef] [Green Version]
  34. Melissant, C.; Alexander, Y.; Edward, E.F.; Cornelis, J.S. A method for detection of Alzheimer’s disease using ICA-enhanced EEG measurements. Artif. Intell. Med. 2005, 33, 209–222. [Google Scholar] [CrossRef] [PubMed]
  35. Jeong, J. EEG dynamics in patients with Alzheimer’s disease. Clin. Neurophysiol. 2004, 115, 1490–1505. [Google Scholar] [CrossRef]
  36. Deng, B.; Li, L.; Shunan, L.; Ruofan, W.; Haitao, Y.; Jiang, W.; Xile, W. Complexity extraction of electroencephalograms in Alzheimer’s disease with weighted-permutation entropy. Chaos Interdiscip. J. Nonlinear Sci. 2015, 25, 043105. [Google Scholar] [CrossRef]
  37. Bonanni, L.; Astrid, T.; Pietro, T.; Bernardo, P.; Sara, V.; Marco, O. EEG comparisons in early Alzheimer’s disease, dementia with Lewy bodies and Parkinson’s disease with dementia patients with a 2-year follow-up. Brain 2008, 131, 690–705. [Google Scholar] [CrossRef]
  38. Kumar, S.S.P.; Ajitha, L. Early detection of epilepsy using EEG signals. In Proceedings of the International Conference on Control, Instrumentation, Communication, and Computational Technologies (ICCICCT), Kanyakumari, India, 10–11 July 2014; pp. 1509–1514. [Google Scholar]
  39. Ahmad, M.Z.; Saeed, M.; Saleem, S.; Kamboh, A.M. Seizure detection using EEG: A survey of different techniques. In Proceedings of the International Conference on Emerging Technologies (ICET), Islamabad, Pakistan, 18–19 October 2016; pp. 1–6. [Google Scholar]
  40. Al-Omar, S.; Kamali, W.; Khalil, M.; Daher, A. Classification of EEG signals to detect epilepsy problems. In Proceedings of the 2nd International Conference on Advances in Biomedical Engineering, Tripoli, Lebanon, 11–13 September 2013; pp. 5–8. [Google Scholar]
  41. Sun, Z.; Wang, G.; Li, K.; Zhang, Z.; Bao, G. Cerebral functional connectivity analysis based on scalp EEG in epilepsy patients. In Proceedings of the 7th International Conference on Biomedical Engineering and Informatics, Dalian, China, 14–16 October 2014; pp. 283–287. [Google Scholar]
  42. David, A.S.; Ruth, A.G. Neuropsychological study of motor neuron disease. Psychosomatics 1986, 27, 441–445. [Google Scholar] [CrossRef]
  43. Lesný, I. Study in Different Forms of Cerebral Palsy. Dev. Med. Child Neurol. 2008, 5, 593–602. [Google Scholar] [CrossRef]
  44. Screens, Tests and Evaluations. Available online: http://www.cerebralpalsy.org/about-cerebral-palsy/diagnosis/evaluations (accessed on 15 December 2017).
  45. Şenbil, N.; Birkan, S.; Ömer, F.A.; Yahya, K.Y.G. Epileptic and non-epileptic cerebral palsy: EEG and cranial imaging findings. Brain Dev. 2002, 24, 166–169. [Google Scholar] [CrossRef]
  46. Anderson, J.L.; Stewart, I.H.; Rae, C.; Morley, J.W. Brain function in Duchenne muscular dystrophy. Brain 2002, 125, 4–13. [Google Scholar] [CrossRef]
  47. Electroencephalogram (EEG). Available online: https://www.nhs.uk/conditions/electroencephalogram (accessed on 12 February 2020).
  48. Chen, D.; Wan, S.; Xiang, J.; Bao, F.S. A high-performance seizure detection algorithm based on Discrete Wavelet Transform (DWT) and EEG. PLoS ONE 2017, 12, e0173138. [Google Scholar] [CrossRef] [Green Version]
  49. Terzano, M.G.; Parrino, L.; Smerieri, A.; Chervin, R.; Chokroverty, S.; Guilleminault, C.; Hirshkowitz, M.; Mahowald, M.; Moldofsky, H.; Rosa, A.; et al. Atlas, rules, and recording techniques for the scoring of cyclic alternating pattern (CAP) in human sleep. Sleep Med. 2002, 3, 187–199. [Google Scholar] [CrossRef]
  50. Goldberger, A.L.; Amaral, L.; Glass, L.; Hausdorff, J.M.; Ivanov, P.C.; Mark, R.G.; Mietus, J.; Moody, G.B.; Peng, C.K.; Stanley, H. PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals. Circulations 2000, 101, e215–e220. [Google Scholar] [CrossRef] [Green Version]
  51. Mingai, L.; Shuoda, G.; Guoyu, Z.; Yanjun, S.; Jinfu, Y. Removing ocular artifacts from mixed EEG signals with FastKICA and DWT. J. Intell. Fuzzy Syst. 2015, 28, 2851–2861. [Google Scholar] [CrossRef]
  52. Real-Time Meditation Feedback. Available online: http://www.choosemuse.com (accessed on 20 April 2018).
  53. Faust, O.; Acharya, R.U.; Adeli, H.; Adeli, A. Wavelet-based EEG processing for computer-aided seizure detection and epilepsy diagnosis. Seizure 2015, 26, 56–64. [Google Scholar] [CrossRef] [Green Version]
  54. Ren, L.; Kucewicz, M.T.; Cimbalnik, J.; Matsumoto, J.Y.; Brinkmann, B.H.; Hu, W.; Worrell, G.A. Gamma oscillations precede interictal epileptiform spikes in the seizure onset zone. Neurology 2015, 84, 602–608. [Google Scholar] [CrossRef] [Green Version]
  55. Al-Qazzaz, N.K.; Hamid Bin Mohd Ali, S.; Ahmad, S.A.; Islam, M.S.; Escudero, J. Selection of mother wavelet functions for multi-channel EEG signal analysis during a working memory task. Sensors 2015, 15, 29015–29035. [Google Scholar] [CrossRef] [PubMed]
  56. Haddad, T.; Ben-Hamida, N.; Talbi, L.; Lakhssassi, A.; Aouini, S. Temporal epilepsy seizures monitoring and prediction using cross-correlation and chaos theory. Healthc. Technol. Lett. 2014, 1, 45–50. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  57. Orosco, L.; Correa, A.G.; Diez, P.F.; Laciar, E. Patient non-specific algorithm for seizures detection in scalp EEG. Comput. Boil. Med. 2016, 71, 128–134. [Google Scholar] [CrossRef]
  58. Graps, A. An introduction to wavelets. IEEE Comput. Sci. Eng. 1995, 2, 50–61. [Google Scholar] [CrossRef]
  59. Fergus, P.; Hussain, A.; Hignett, D.; Al-Jumeily, D.; Abdel-Aziz, K.; Hamdan, H. A machine learning system for automated whole-brain seizure detection. Appl. Comput. Inform. 2016, 12, 70–89. [Google Scholar] [CrossRef] [Green Version]
  60. Subasi, A.; Ercelebi, E. Classification of EEG signals using neural network and logistic regression. Comput. Methods Programs Biomed. 2005, 78, 87–99. [Google Scholar] [CrossRef]
  61. Ramgopal, S.; Thomé-Souza, S.; Jackson, M.; Kadish, N.E.; Fernández, I.S.; Klehm, J.; Bosl, W.; Reinsberger, C.; Schachter, S.; Loddenkemper, T. Seizure detection, seizure prediction, and closed-loop warning systems in epilepsy. Epilepsy Behav. 2014, 37, 291–307. [Google Scholar] [CrossRef] [Green Version]
  62. Jeppesen, J.; Beniczky, S.; Johansen, P.; Sidenius, P.; Fuglsang-Frederiksen, A. Detection of epileptic seizures with a modified heart rate variability algorithm based on Lorenz plot. Seizure 2015, 24, 1–7. [Google Scholar] [CrossRef] [Green Version]
  63. Osorio, I.; Manly, B.F.J. Probability of detection of clinical seizures using heart rate changes. Seizure 2015, 30, 120–123. [Google Scholar] [CrossRef] [Green Version]
  64. Stefanidou, M.; Carlson, C.; Friedman, D. The relationship between seizure onset zone and ictal tachycardia: An intracranial EEG study. Clin. Neurophysiol. 2015, 126, 2255–2260. [Google Scholar] [CrossRef]
  65. Vandecasteele, K.; De Cooman, T.; Gu, Y.; Cleeren, E.; Claes, K.; Van Paesschen, W.; Van Huffel, S.; Hunyadi, B. Automated Epileptic Seizure Detection Based on Wearable ECG and PPG in a Hospital Environment. Sensors 2017, 17, 2338. [Google Scholar] [CrossRef]
  66. Seidenberg, M.; Pulsipher, D.; Hermann, B. Association of epilepsy and comorbid conditions. Future Neurol. 2009, 4, 663–668. [Google Scholar] [CrossRef] [Green Version]
  67. Pellock, J.M. Understanding co-morbidities affecting children with epilepsy. Neurology 2004, 62, S17–S23. [Google Scholar] [CrossRef]
  68. Zaccara, G. Neurological comorbidity and epilepsy: Implications for treatment. Acta Neurol. Scand. 2009, 120, 1–15. [Google Scholar] [CrossRef]
  69. Zhou, M.; Tian, C.; Cao, R.; Wang, B.; Niu, Y.; Hu, T.; Guo, H.; Xiang, J. Epileptic Seizure Detection Based on EEG Signals and CNN. Front. Aging Neurosci. 2018, 12, 95. [Google Scholar] [CrossRef] [Green Version]
  70. Shoeb, A.H.; Guttag, J.V. Application of machine learning to epileptic seizure detection. In Proceedings of the International Conference on Machine Learning (Haifa), Haifa, Israel, 21–24 June 2010; pp. 975–982. [Google Scholar]
  71. Patnaik, L.; Manyam, O.K. Epileptic EEG detection using neural networks and post-classification. Comput. Methods Programs Biomed. 2008, 91, 100–109. [Google Scholar] [CrossRef]
  72. Ebrahimpour, R.; Babakhan, K.; Arani, S.A.A.A.; Masoudnia, S. Epileptic seizure detection using a neural network ensemble method and wavelet transform. Neural Netw. World 2012, 22, 291. [Google Scholar] [CrossRef] [Green Version]
  73. Akareddy, S.M.; Kulkarni, P. EEG signal classification for Epilepsy Seizure Detection using Improved Approximate Entropy. Int. J. Public Health Sci. (IJPHS) 2013, 2. [Google Scholar] [CrossRef]
  74. Ullah, I.; Hussain, M.; Qazi, E.-U.-H.; Abualsamh, H.A. An automated system for epilepsy detection using EEG brain signals based on deep learning approach. Expert Syst. Appl. 2018, 107, 61–71. [Google Scholar] [CrossRef] [Green Version]
  75. Acharya, U.R.; Oh, S.L.; Hagiwara, Y.; Tan, J.H.; Adeli, H. Deep convolutional neural network for the automated detection and diagnosis of seizure using EEG signals. Comput. Boil. Med. 2018, 100, 270–278. [Google Scholar] [CrossRef]
  76. Acharya, U.R.; Yanti, R.; Swapna, G.; Sree, V.S.; Martis, R.J.; Suri, J.S. Automated diagnosis of epileptic electroencephalogram using independent component analysis and discrete wavelet transform for different electroencephalogram durations. Proc. Inst. Mech. Eng. Part H J. Eng. Med. 2012, 227, 234–244. [Google Scholar] [CrossRef]
  77. Machado, F.; Sales, F.; Santos, C.; Dourado, A.; Teixeira, C. A knowledge discovery methodology from EEG data for cyclic alternating pattern detection. Biomed. Eng. Online 2018, 17, 185. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  78. Mousavi, S.; Afghah, F.; Acharya, U.R. SleepEEGNet: Automated sleep stage scoring with sequence to sequence deep learning approach. PLoS ONE 2019, 14, e0216456. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  79. Perslev, M.; Jensen, M.; Darkner, S.; Jennum, P.; Igel, C. U-time: A fully convolutional network for time series segmentation applied to sleep staging. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS 2019), Vancouve, BC, Canada, 8–14 December 2019. [Google Scholar]
  80. Maria, A.R. Correlation Analysis of Biomedical Signals for Predictive Modeling. Master’s Thesis, Politehnica University of Bucharest, București, Romania, 2019. [Google Scholar]
Figure 1. Electroencephalogram (EEG) from a patient with no seizure-signal filtering and decomposition using the discrete wavelet transform (DWT) method.
Figure 1. Electroencephalogram (EEG) from a patient with no seizure-signal filtering and decomposition using the discrete wavelet transform (DWT) method.
Sensors 20 03346 g001
Figure 2. EEG from a patient with epileptic seizure-signal filtering and decomposition using the DWT method.
Figure 2. EEG from a patient with epileptic seizure-signal filtering and decomposition using the DWT method.
Sensors 20 03346 g002
Figure 3. Patient before and after the seizure, signal decomposition on four levels using DWT.
Figure 3. Patient before and after the seizure, signal decomposition on four levels using DWT.
Sensors 20 03346 g003
Figure 4. Patient with epileptic seizure, signal decomposition on four levels using DWT.
Figure 4. Patient with epileptic seizure, signal decomposition on four levels using DWT.
Sensors 20 03346 g004
Figure 5. 3D spectrogram of EEG signals from 13 channels.
Figure 5. 3D spectrogram of EEG signals from 13 channels.
Sensors 20 03346 g005
Figure 6. 3D spectrogram of signals EEG from 13 channels for patient n1 with no epileptic seizures.
Figure 6. 3D spectrogram of signals EEG from 13 channels for patient n1 with no epileptic seizures.
Sensors 20 03346 g006
Figure 7. 3D spectrogram signals EEG from 13 channels for patient n2 with epileptic seizures.
Figure 7. 3D spectrogram signals EEG from 13 channels for patient n2 with epileptic seizures.
Sensors 20 03346 g007
Figure 8. Artificial neural network (ANN) with n neurons, n ∈ {10, 50, 100, 150}.
Figure 8. Artificial neural network (ANN) with n neurons, n ∈ {10, 50, 100, 150}.
Sensors 20 03346 g008
Figure 9. Regression (R2) for validation, test, and training—ANN with ten neurons.
Figure 9. Regression (R2) for validation, test, and training—ANN with ten neurons.
Sensors 20 03346 g009
Figure 10. Regression (R2) for validation, test, and training—ANN with 50 neurons.
Figure 10. Regression (R2) for validation, test, and training—ANN with 50 neurons.
Sensors 20 03346 g010
Figure 11. Regression (R2) for validation, test, and training—ANN with 100 neurons.
Figure 11. Regression (R2) for validation, test, and training—ANN with 100 neurons.
Sensors 20 03346 g011
Figure 12. Regression (R2) for validation, test, and training—ANN with 150 neurons.
Figure 12. Regression (R2) for validation, test, and training—ANN with 150 neurons.
Sensors 20 03346 g012
Figure 13. Error histograms—ANN with 10, 50, and 100 neurons.
Figure 13. Error histograms—ANN with 10, 50, and 100 neurons.
Sensors 20 03346 g013
Figure 14. Error histogram—ANN with 150 neurons.
Figure 14. Error histogram—ANN with 150 neurons.
Sensors 20 03346 g014
Figure 15. Neural network (10 neurons) best validation performance.
Figure 15. Neural network (10 neurons) best validation performance.
Sensors 20 03346 g015
Figure 16. Neural network (150 neurons) best validation performance.
Figure 16. Neural network (150 neurons) best validation performance.
Sensors 20 03346 g016
Figure 17. Distribution probabilities (Shapiro–Wilk test, Brainstorm).
Figure 17. Distribution probabilities (Shapiro–Wilk test, Brainstorm).
Sensors 20 03346 g017
Table 1. ANN parameters.
Table 1. ANN parameters.
Neurons No.Input Data [Samples EEG3]Output (Target) Data [Samples EEG1]Train Set [Samples]Test Set [Samples]Validation Set [Samples]
10Matrix 13 × 5120 Matrix 13 × 51203584768768
50Matrix 13 × 5120Matrix 13 × 51203584768768
100Matrix 13 × 5120Matrix 13 × 51203584768768
150Matrix 13 × 5120Matrix 13 × 51203584768768
Table 2. Value R = f (neural network neurons).
Table 2. Value R = f (neural network neurons).
Neurons No.R TrainingR ValidationR TestProcessing Time [s]
100.573160.638550.4910342
500.652670.605710.60182745
1000.850890.741290.82255913
1500.818190.773450.673242784
Table 3. Methodology description of recent state-of-the-art compared with our results.
Table 3. Methodology description of recent state-of-the-art compared with our results.
LiteratureFeatures Extraction MethodLearning Machine MethodValidationClassification Accuracy
[69]
Method 1 - Convolutional neural network (CNN) with 3 layers6-fold cross validation83.8–95%
[70]
Method 2spectral and spatial featuresSVM-96%
[71]
Method 3wavelet transform for decompositionANN and genetic algorithm--
[72]
Method 4wavelet transform for decompositionnegative correlation learning (NCL) and a mixture of experts (ME)25% of the train
set was randomly selected for the validation set
96.92%
[73]
Method 5Multi-wavelet TransformANN-90%
[74]
Method 6-pyramidal one-dimensional CNN (P-1D-CNN)10-fold cross validation99.1%
[75]
Method 7-13-layer CNN10-fold cross-validation88.67%
[76]
Method 8DWTSVM 96%
[77]
Method 9Minimum redundancy maximum relevance (mRMR), Principal component analysis (PCA)SVM, k-nearest neighbors (k-NN), and discriminant analysis Leave-one-out cross-validation 51% (SVM)
80% (k-nn with mRMR)
[78]
Method 10-CNN20-fold and 10-fold cross-validation84.26%
[79]
Method 11-U-Time—convolutional encoder-decoder network5-fold cross-validation-
Our workDWTANN15% of the samples were selected for the validation set91.1%

Share and Cite

MDPI and ACS Style

Aileni, R.M.; Pasca, S.; Florescu, A. EEG-Brain Activity Monitoring and Predictive Analysis of Signals Using Artificial Neural Networks. Sensors 2020, 20, 3346. https://doi.org/10.3390/s20123346

AMA Style

Aileni RM, Pasca S, Florescu A. EEG-Brain Activity Monitoring and Predictive Analysis of Signals Using Artificial Neural Networks. Sensors. 2020; 20(12):3346. https://doi.org/10.3390/s20123346

Chicago/Turabian Style

Aileni, Raluca Maria, Sever Pasca, and Adriana Florescu. 2020. "EEG-Brain Activity Monitoring and Predictive Analysis of Signals Using Artificial Neural Networks" Sensors 20, no. 12: 3346. https://doi.org/10.3390/s20123346

APA Style

Aileni, R. M., Pasca, S., & Florescu, A. (2020). EEG-Brain Activity Monitoring and Predictive Analysis of Signals Using Artificial Neural Networks. Sensors, 20(12), 3346. https://doi.org/10.3390/s20123346

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop