| Literature DB >> 35161475 |
Md Shafiqul Islam1, Keshav Thapa1, Sung-Hyun Yang1.
Abstract
Epilepsy is a complex neurological condition that affects a large number of people worldwide. Electroencephalography (EEG) measures the electrical activity of the brain and is widely used in epilepsy diagnosis, but it usually requires manual inspection, which can be hours long, by a neurologist. Several automatic systems have been proposed to detect epilepsy but still have some unsolved issues. In this study, we proposed a dynamic method using a deep learning model (Epileptic-Net) to detect an epileptic seizure. The proposed method is largely heterogeneous and comprised of the dense convolutional blocks (DCB), feature attention modules (FAM), residual blocks (RB), and hypercolumn technique (HT). Firstly, DCB is used to get the discriminative features from the EEG samples. Then, FAM extracts the essential features from the samples. After that, RB learns more vital parts as it entirely uses information in the convolutional layer. Finally, HT retains the efficient local features extracted from the layers situated at the different levels of the model. Its performance has been evaluated on the University of Bonn EEG dataset, divided into five distinct classes. The proposed Epileptic-Net achieves the average accuracy of 99.95% in the two-class classification, 99.98% in the three-class classification, 99.96% in the four-class classification, and 99.96% in classifying the complicated five-class problem. Thus the proposed approach shows more competitive results than the existing model to detect epileptic seizures. We also hope that this method can support experts in achieving objective and reliable results, lowering the misdiagnosis rate, and assisting in decision-making.Entities:
Keywords: convolutional neural network; electroencephalogram (EEG); epileptic seizure (ES); feature attention module
Mesh:
Year: 2022 PMID: 35161475 PMCID: PMC8838843 DOI: 10.3390/s22030728
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Explanations of the dataset used in this study.
| Set | Recording Stage | Electrode Type | Total No. of Segments | Duration of Segments | Predetermined Class |
|---|---|---|---|---|---|
| Z or A | Open eyes | Surface | 100 | 23.6 s | normal or healthy |
| O or B | Closed eyes | Surface | 100 | 23.6 s | normal or healthy |
| N or C | From hippocampal half sphere | Intracranial | 100 | 23.6 s | preictal or seizure-free |
| F or D | From epileptic zone | Intracranial | 100 | 23.6 s | preictal or seizure-free |
| S or E | During seizure | Intracranial | 100 | 23.6 s | ictal or seizure |
Figure 1Single sample of each subset (A–E).
Figure 2Block diagram of methodological steps to detect the ES.
Figure 3The architecture of our proposed model (Epileptic-Net).
Figure 4The architecture of DCB.
Figure 5The schematic diagram of the FAM.
Figure 6The schematic diagram of residual block.
Performance result of a binary class with 10-fold CV, here Fi means ith fold and all results are in (%).
| Group | Class | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | Average (%) | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Acc. | F-Score | C.K. | ||||||||||||
| normal vs. normal | A vs. B | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
| normal vs. preictal | A vs. C | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
| A vs. D | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| B vs. C | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| B vs. D | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| AB vs. CD | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| normal vs. ictal | A vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
| B vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| AB vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| normal vs. preictal and ictal | AB vs. CDE | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
| preictal vs. preictal | C vs. D | 98 | 98.20 | 98.20 | 98.60 | 99 | 99 | 100 | 100 | 100 | 100 | 99.10 | 99 | 99 |
| preictal vs. ictal | C vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
| D vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| CD vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| non-ictal vs. ictal | AC vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
| AD vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| BC vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| BD vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| ABC vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| ACD vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| ABD vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| BCD vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| ABCD vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
Performance result of three class with 10-fold CV, here Fi means ith fold and all results are in (%).
| Group | Class | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | Average (%) | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Acc. | F-Score | C.K. | ||||||||||||
| normal vs. preictal vs. ictal | A vs. C vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
| A vs. D vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| B vs. C vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| B vs. D vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| AB vs. CD vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| normal vs. normal vs. preictal | A vs. B vs. C | 99.50 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 99.95 | 99.92 | 99.90 |
| A vs. B vs. D | 99.80 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 99.98 | 99.95 | 99.97 | |
| normal vs. normal vs. ictal | A vs. B vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
| normal vs. preictal vs. preictal | A vs. C vs. D | 99.40 | 100 | 100 | 100 | 100 | 99.6 | 100 | 100 | 100 | 100 | 99.90 | 99.89 | 99.85 |
| B vs. C vs. D | 99.40 | 100 | 100 | 100 | 100 | 100 | 100 | 99.6 | 100 | 100 | 99.90 | 99.98 | 99.90 | |
| preictal vs. preictal vs. ictal | C vs. D vs. E | 100 | 100 | 100 | 100 | 99.89 | 100 | 100 | 100 | 100 | 100 | 99.98 | 99.97 | 99.96 |
Performance result of four-class with 10-fold CV, here Fi means ith fold and all results are in (%).
| Group | Class | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | Average (%) | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Acc. | F-Score | C.K. | ||||||||||||
| normal vs. normal vs. preictal vs. preictal | A vs. B vs. C vs. D | 99.86 | 99.88 | 99.90 | 99.90 | 99.90 | 100 | 99.90 | 99.90 | 99.90 | 100 | 99.91 | 99.92 | 99.95 |
| normal vs. normal vs. preictal vs. ictal | A vs. B vs. C vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
| A vs. B vs. D vs. E | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |
| normal vs. preictal vs. preictal vs. ictal | A vs. C vs. D vs. E | 100 | 100 | 99.56 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 99.95 | 99.93 | 99.91 |
| B vs. C vs. D vs. E | 100 | 99.30 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 99.93 | 99.90 | 99.91 | |
Performance result of five-class with 10-fold CV, here Fi means ith fold, and all result are in (%).
| Class | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | Average (%) | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Acc. | F-Score | C.K. | |||||||||||
| A vs. B vs. C vs. D vs. E | 100 | 100 | 100 | 100 | 99.58 | 100 | 100 | 100 | 100 | 100 | 99.96 | 99.91 | 99.85 |
Number of parameters of Epileptic-Net model for each class.
| Model | Number of Class | Trainable Parameters | Non-Trainable Parameters | Total Parameters |
|---|---|---|---|---|
|
| Two | 318,932 | 3968 | 322,900 |
| Three | 318,997 | 3968 | 322,965 | |
| Four | 319,062 | 3968 | 323,030 | |
| Five | 319,127 | 3968 | 323,095 |
Runtime comparison of Epileptic-Net model for each class.
| Model | Number of Class | Training Time (s) | Recognition Time (s) |
|---|---|---|---|
|
| Two | 506.85 ± 10.56 | 0.00051 ± 0.000028 |
| Three | 666.48 ± 08.21 | 0.00077 ± 0.000024 | |
| Four | 1010.16 ± 09.80 | 0.00101 ± 0.000022 | |
| Five | 1575.09 ± 12.28 | 0.001295 ± 0.000028 |
Figure 7Confusion matrix of the proposed model.
Figure 8(a) The training and testing accuracy of the proposed model. (b) The loss history of the proposed model for training and testing set.
Figure 9Two-dimensional t-SNE visualization of the learned representations of the Epileptic-Net model for the 10% data of the entire dataset.
Summary of the previous studies and comparative accuracy of the proposed method with the existing methods on the same dataset.
| T.C. | T.E. | S.A. | Methodology | E.A. (%) | P.M.A. (%) |
|---|---|---|---|---|---|
| Two | A vs. B | Ömer et al. (2019) [ | CWT and CNN | 95.50 |
|
| A vs. C | Ömer et al. (2019) [ | CWT and CNN | 96.50 |
| |
| A vs. D | Ömer et al. (2019) [ | CWT and CNN | 100 |
| |
| A vs. E | Sahani et al. (2021) [ | OVMD and DCNN | 100 |
| |
| B vs. C | Ömer et al. (2019) [ | CWT and CNN | 99.00 |
| |
| B vs. D | Ömer et al. (2019) [ | CWT and CNN | 100 |
| |
| B vs. E | Sahani et al. (2021) [ | OVMD and DCNN | 100 |
| |
| C vs. D | Ömer et al. (2019) [ | CWT and CNN | 80.00 |
| |
| C vs. E | Sahani et al. (2021) [ | OVMD and DCNN | 100 |
| |
| D vs. E | Sahani et al. (2021) [ | OVMD and DCNN | 100 |
| |
| AB vs. E | Sahani et al. (2021) [ | OVMD and DCNN | 100 |
| |
| AC vs. E | Ullah et al. (2018) [ | CNN and M-V | 99.70 |
| |
| AD vs. E | Mahfuz et al. (2021) [ | FT-VGG16+CWT | 98.13 |
| |
| BC vs. E | Mahfuz et al. (2021) [ | FT-VGG16+CWT | 99.30 |
| |
| CD vs. E | Sahani et al. (2021) [ | OVMD and DCNN | 100 |
| |
| AB vs. CD | Ullah et al. (2018) [ | CNN and M-V | 99.98 |
| |
| AB vs. CDE | Ullah et al. (2018) [ | CNN and M-V | 99.95 |
| |
| ABC vs. E | Ullah et al. (2018) [ | CNN and M-V | 99.97 |
| |
| ACD vs. E | Ullah et al. (2018) [ | CNN and M-V | 99.80 |
| |
| BCD vs. E | Ullah et al. (2018) [ | CNN and M-V | 99.30 |
| |
| ABCD vs. E | Mahfuz et al. (2021) [ | FT-VGG16+CWT | 100 |
| |
| Three | A vs. B vs. C | Ömer et al. (2019) [ | CWT and CNN | 95.00 |
|
| A vs. B vs. D | Ömer et al. (2019) [ | CWT and CNN | 96.67 |
| |
| A vs. B vs. E | Ömer et al. (2019) [ | CWT and CNN | 95.67 |
| |
| A vs. C vs. D | Ömer et al. (2019) [ | CWT and CNN | 88.00 |
| |
| A vs. C vs. E | Sahani et al. (2021) [ | OVMD and DCNN | 100 |
| |
| B vs. C vs. D | Ömer et al. (2019) [ | CWT and CNN | 91.33 |
| |
| B vs. C vs. E | Sahani et al. (2021) [ | OVMD and DCNN | 100 |
| |
| B vs. D vs. E | Sahani et al. (2021) [ | OVMD and DCNN | 100 |
| |
| C vs. D vs. E | Ömer et al. (2019) [ | CWT and CNN | 89.00 |
| |
| A vs. D vs. E | Sahani et al. (2021) [ | OVMD and DCNN | 100 |
| |
| AB vs. CD vs. E | Sahani et al. (2021) [ | OVMD and DCNN | 100 |
| |
| Four | A vs. C vs. D vs. E | Ömer (2019) et al. [ | CWT and CNN | 90.50 |
|
| B vs. C vs. D vs. E | Ömer (2019) et al. [ | CWT and CNN | 91.50 |
| |
| Five | A vs. B vs. C vs. D vs. E | Sahani et al. (2021) [ | OVMD and DCNN | 99.88 |
|
| Sharma et al. (2020) [ | TOC and DNN | 97.20 | |||
| Zhao et al. (2019) [ | DNN | 93.66 |
T.C.: Type of class; T.E.: Type of experiments; S.A.: State-of-the-art; E.A.: Existing accuracy; P.M.A.: Proposed method accuracy.