| Literature DB >> 31852929 |
A V Medvedev1, G I Agoureeva2, A M Murro3.
Abstract
Over the last two decades, the evidence has been growing that in addition to epileptic spikes high frequency oscillations (HFOs) are important biomarkers of epileptogenic tissue. New methods of artificial intelligence such as deep learning neural networks can provide additional tools for automated analysis of EEG. Here we present a Long Short-Term Memory neural network for detection of spikes, ripples and ripples-on-spikes (RonS). We used intracranial EEG (iEEG) from two independent datasets. First dataset (7 patients) was used for network training and testing. The second dataset (5 patients) was used for cross-institutional validation. 1000 events of each class (spike, RonS, ripple and baseline) were selected from the candidates initially found using a novel threshold method. Network training was performed using random selections of 50-500 events (per class) from all patients from the 1st dataset. This 'global' network was then tested on other events for each patient from both datasets. The network was able to detect events with a good generalisability namely, with total accuracy and specificity for each class exceeding 90% in all cases, and sensitivity less than 86% in only two cases (82.5% for spikes in one patient and 81.9% for ripples in another patient). The deep learning networks can significantly accelerate the analysis of iEEG data and increase their diagnostic value which may improve surgical outcome in patients with localization-related intractable epilepsy.Entities:
Mesh:
Year: 2019 PMID: 31852929 PMCID: PMC6920137 DOI: 10.1038/s41598-019-55861-w
Source DB: PubMed Journal: Sci Rep ISSN: 2045-2322 Impact factor: 4.379
Patients’ demographic and medical data.
| Patient | Gender | Age at admission | Age at onset of seizures | Seizure Type | iEEG length spanned by interictal intervals analysed | Total No. of seizures in the spanned iEEG | Total length of interictal intervals analysed | Total No. of channels (No. of bad channels) |
|---|---|---|---|---|---|---|---|---|
| MC1 | M | 26 | 21 | Focal Complex/Partial (FIAS) | 86 h | 150 | 8 h | 16 (1) |
| MC2 | M | 33 | 23 | Focal Complex/Partial (FIAS) | 45 h | 6 | 7 h | 60 |
| MC3 | M | 37 | 23 | Focal Complex/Partial (FIAS) | 90 h | 26 | 6 h | 84 (2) |
| MC4 | M | 16 | 13 | Focal Partial-Secondary generalised tonic-clonic (FBTCS) | 103 h | 9 | 8 h | 108 |
| MC5 | M | 16 | 1 | Focal Complex/Partial (FIAS) | 21 h | 3 | 6 h | 88 |
| MC6 | M | 9 | 9 | Focal Complex/Partial (FIAS) | 55 h | 21 | 8 h | 96 (7) |
| MC7 | M | 58 | 55 | Focal Partial-Secondary generalised tonic-clonic (FBTCS) | 30 h | 2 | 9 h | 88 (2) |
| AUH1 | M | 31 | 30 | Focal Complex/Partial (FIAS) | 71 min | 2 | 10 min | 94 |
| AUH2 | M | 52 | 50 | Focal Complex/Partial (FIAS) | 18 min | 4 | 10 min | 70 |
| AUH3 | F | 21 | 16 | Focal Complex/Partial (FIAS) | 27 min | 2 | 10 min | 69 |
| AUH4 | F | 55 | 50 | Focal Complex/Partial (FIAS) | 12 min | 2 | 10 min | 46 |
| AUH5 | F | 15 | 12 | Focal Complex/Partial (FIAS) | 38 min | 4 | 10 min | 68 |
Seizure types as per the ILAE 2017 Operational Classification are given in parentheses. FIAS – focal impaired awareness seizure; FBTCS – focal to bilateral tonic-clonic seizure.
Figure 1The LSTN network architecture based on one bidirectional LSTM layer.
Figure 2Representative spike (left) as well as RonS and ripple (right) detected by our threshold method and confirmed by visual analysis. Top, relative spectrograms; middle, raw iEEG; bottom, highpass filtered iEEG at 100 Hz. Note the lack of spectral power in the ripple bands and a lower amplitude of fast oscillations in the filtered iEEG for the spike. These oscillations are due to the effect of highpass filtering of spike and represent a ‘false’ ripple.
Network accuracy (%) for within-subject validation (the main diagonal entries shown in italics) and between-subjects validation (the off-diagonal entries, patient’s data used for training/testing are along the columns/rows, respectively).
| Spikes | MC1 | MC2 | MC3 | MC4 | MC5 | MC6 | MC7 |
|---|---|---|---|---|---|---|---|
| MC1 | 88.3 (5.5) | 95.6 (1.4) | 93.1 (2.7) | 93.2 (2.8) | |||
| MC2 | 99.4 (0.3) | 99.7 (0.1) | 98.1 (1.3) | 97.9 (2.4) | 99.0 (0.8) | 99.7 (0.1) | |
| MC3 | 97.3 (0.2) | 86.0 (2.5) | 93.4 (0.6) | 92.5 (0.6) | |||
| MC4 | 97.1 (0.8) | 88.1 (4.4) | 98.6 (0.1) | 96.2 (0.3) | 87.9 (1.0) | 93.5 (0.7) | |
| MC5 | 98.6 (0.5) | 93.2 (1.1) | 99.0 (0.3) | 94.9 (0.7) | 92.3 (1.0) | 97.7 (0.7) | |
| MC6 | 99.4 (0.3) | 98.7 (0.4) | 99.8 (0.1) | 99.3 (0.4) | 99.1 (0.4) | 99.2 (0.3) | |
| MC7 | 98.3 (0.1) | 95.0 (1.1) | 99.5 (0.4) | 96.8 (2.0) | 95.6 (0.9) | 92.3 (2.1) | |
| MC1 | 97.6 (1.1) | 95.5 (4.4) | 97.1 (2.4) | 93.1 (3.3) | 98.7 (0.7) | 93.1 (1.6) | |
| MC2 | 88.4 (2.0) | ||||||
| MC3 | 89.3 (1.3) | 95.6 (0.3) | |||||
| MC4 | 92.4 (1.5) | 92.9 (1.6) | 89.1 (4.1) | 97.2 (0.1) | |||
| MC5 | 88.7 (3.2) | 90.8 (7.4) | 94.0 (4.5) | ||||
| MC6 | 91.3 (7.2) | ||||||
| MC7 | |||||||
| MC1 | 93.9 (0.1) | 94.4 (1.7) | 93.0 (2.0) | 96.9 (2.1) | 90.9 (6.1) | ||
| MC2 | 98.6 (0.5) | 93.7 (3.5) | 90.7 (6.4) | 93.0 (6.8) | |||
| MC3 | 98.8 (0.5) | 99.1 (0.4) | 95.7 (0.7) | 97.6 (0.7) | 96.8 (1.4) | ||
| MC4 | 98.2 (0.5) | 96.5 (2.1) | 97.2 (0.3) | 98.6 (0.3) | 93.9 (5.2) | 87.3 (6.4) | |
| MC5 | 97.5 (0.3) | 94.0 (2.0) | 96.4 (0.6) | 96.2 (1.4) | 94.6 (4.5) | ||
| MC6 | 98.7 (1.5) | 96.8 (2.3) | 90.7 (12.0) | 95.7 (3.5) | 96.2 (4.7) | ||
| MC7 | 99.5 (0.2) | 99.4 (0.1) | 96.1 (3.5) | 96.1 (2.2) | 93.3 (8.3) | ||
| MC1 | 95.3 (0.7) | 99.6 (0.3) | 99.1 (0.7) | 99.6 (0.1) | 98.1 (0.1) | 98.4 (0.3) | |
| MC2 | 99.8 (0.3) | 100.0(0.1) | 99.5 (0.1) | 99.9 (0.2) | 99.3 (0.1) | 99.0 (0.3) | |
| MC3 | 98.7 (0.3) | 93.4 (0.9) | 98.8 (0.6) | 99.5 (0.2) | 97.1 (0.1) | 98.5 (0.1) | |
| MC4 | 99.2 (0.3) | 95.3 (0.7) | 99.7 (0.1) | 99.8 (0.1) | 98.2 (0.1) | 98.7 (0.4) | |
| MC5 | 98.0 (0.2) | 93.5 (1.3) | 99.4 (0.1) | 98.4 (0.6) | 96.5 (1.0) | 97.8 (0.6) | |
| MC6 | 99.1 (0.1) | 95.8 (0.3) | 99.8 (0.1) | 99.0 (0.3) | 99.8 (0.1) | 98.5 (0.7) | |
| MC7 | 99.1 (0.2) | 96.2 (1.4) | 99.9 (0.1) | 99.3 (0.4) | 99.7 (0.2) | 98.8 (0.9) | |
Means and standard deviations are calculated from 10 randomizations with 500/500 events for training/testing. Values of accuracy below 86% are shown in bold. Network parameters: No. of hidden units (HU) = 200; 1000 iterations for training.
Results of the ‘global’ network testing for all patients from two institutions.
| Patient ID | Total Accuracy | Spikes | RonS | Ripples | Baseline | ||||
|---|---|---|---|---|---|---|---|---|---|
| Sensitivity | Specificity | Sensitivity | Specificity | Sensitivity | Specificity | Sensitivity | Specificity | ||
| MC1 | 95.3 (1.9) | 96.5 (0.1) | 98.3 (0.2) | 87.6 (7.4) | 98.0 (0.2) | 97.5 (0.7) | 97.3 (2.5) | 99.5 (0.4) | 100 (0.0) |
| MC2 | 92.4 (1.1) | 88.1 (3.0) | 99.9 (0.1) | 89.7 (2.4) | 95.8 (1.1) | 98.2 (0.1) | 94.1 (0.3) | 93.4 (1.1) | 99.9 (0.1) |
| MC3 | 95.4 (1.7) | 95.0 (4.0) | 98.5 (0.1) | 90.3 (0.7) | 97.5 (2.2) | 96.8 (3.4) | 98.4 (0.9) | 99.6 (0.1) | 99.5 (0.8) |
| MC4 | 95.3 (0.9) | 92.6 (0.9) | 99.1 (0.3) | 94.0 (0.6) | 96.0 (1.5) | 95.1 (5.0) | 98.7 (0.5) | 99.6 (0.1) | 99.9 (0.1) |
| MC5 | 95.2 (1.5) | 93.3 (5.8) | 99.7 (0.3) | 89.0 (0.3) | 97.8 (1.4) | 99.2 (0.6) | 96.1 (0.9) | 99.1 (0.4) | 99.9 (0.1) |
| MC6 | 93.3 (0.1) | 99.9 (0.1) | 96.8 (0.9) | 93.5 (0.7) | 96.3 (1.8) | 97.7 (0.9) | 97.6 (0.1) | 99.9 (0.1) | |
| MC7 | 91.3 (3.7) | 87.9 (2.4) | 99.3 (0.2) | 96.9 (3.0) | 90.1 (6.0) | 99.0 (0.9) | 98.6 (0.3) | 99.9 (0.1) | |
| AUH1 | 97.5 (0.1) | 90.0 (0.9) | 99.8 (0.1) | 94.4 (0.8) | 99.9 (0.1) | 98.2 (0.2) | 97.7 (0.1) | 97.5 (0.1) | 99.9 (0.1) |
| AUH2 | 96.5 (0.1) | 86.1 (3.7) | 99.9 (0.1) | 89.7 (3.8) | 99.9 (0.1) | 99.5 (0.1) | 96.5 (0.1) | 96.4 (0.1) | 99.9 (0.1) |
| AUH3 | 98.7 (0.1) | 96.2 (1.0) | 99.9 (0.1) | 89.4 (1.8) | 99.9 (0.1) | 99.5 (0.3) | 98.8 (0.1) | 98.7 (0.1) | 100 (0.0) |
| AUH4 | 99.7 (0.1) | 99.8 (0.2) | 99.8 (0.1) | 100 (0.0) | 100 (0.0) | 100 (0.0) | 99.8 (0.1) | 99.7 (0.1) | 100 (0.0) |
| AUH5 | 97.5 (0.1) | 87.5 (5.9) | 99.9 (0.1) | N/A | N/A | 97.9 (0.2) | 97.5 (0.1) | 97.5 (0.1) | 99.9 (0.1) |
The mean values (%) and standard deviations (in parentheses) are presented. Values below 86% are shown in bold. Note: RonS events in patient AUH5 were not found (marked by N/A).
Figure 3The LSTM network performance as a function of the number of hidden units (HU) and the number of iterations during training (the same training and testing sets were used at different parameters of the network).
Network performance at different sizes of the training set (A) and with a different structure of its hidden layer(s) (B).
| Sensitivity (True Positive Rate, TPR) by event class (%) | Accuracy (%) | ||||
|---|---|---|---|---|---|
| Spikes | RonS | Ripples | Baseline | Total | |
| 50 | 91.9 (2.7) | 84.1 (2.8)* | 92.2 (5.8) | 98.0 (0.1) | 91.6 (1.4) |
| 100 | 91.6 (0.5) | 88.4 (4.0)* | 93.7 (4.0) | 97.6 (1.0) | 92.8 (1.9) |
| 250 | 91.6 (1.0) | 91.3 (0.2) | 94.9 (4.3) | 98.1 (0.3) | 94.0 (1.2) |
| One LSTM | 96.1 (0.4) | 92.5 (0.5) | 95.5 (3.6) | 98.6 (0.1) | 95.7 (0.8) |
| Two LSTMs | 95.8 (0.1) | 92.6 (1.0) | 95.8 (3.5) | 99.0 (0.2) | 95.8 (0.6) |
| Two LSTMs + Dropouts (0.2) | 96.3 (0.7) | 92.4 (0.9) | 96.0 (3.4) | 98.9 (0.2) | 95.9 (0.7) |
| BiLSTM | 96.3 (0.3) | 91.9 (1.8) | 95.8 (3.6) | 98.7 (0.1) | 95.7 (0.5) |
For both A and B: HU = 200; NI = 1000. *Asterisks mark a significant decrease in performance with smaller training sets (N = 50 and N = 100) compared to N = 500 (paired t-test, p = 0.03). N = 500 was used as a standard training set (shown in bold).