Skip to main content

ORIGINAL RESEARCH article

Front. Neurol., 16 February 2022
Sec. Epilepsy
This article is part of the Research Topic Complex Scenarios of Drug-resistant Epilepsies: Diagnostic Challenges and Novel Therapeutic Options View all 16 articles

Time-Series Generative Adversarial Network Approach of Deep Learning Improves Seizure Detection From the Human Thalamic SEEG

  • 1Department of Electronics and Communication Engineering, Amrita School of Engineering, Amrita Vishwa Vidyapeetham, Coimbatore, India
  • 2Texas Institute of Restorative Neurotechnologies, University of Texas Health Science Center, Houston, TX, United States
  • 3Department of Neurology, University of Alabama at Birmingham, Birmingham, AL, United States
  • 4School of Biotechnology, National Institute of Technology Calicut, Kozhikode, India
  • 5Consciousness Studies Programme, National Institute of Advanced Studies, Bengaluru, India

Seizure detection algorithms are often optimized to detect seizures from the epileptogenic cortex. However, in non-localizable epilepsies, the thalamus is frequently targeted for neuromodulation. Developing a reliable seizure detection algorithm from thalamic SEEG may facilitate the translation of closed-loop neuromodulation. Deep learning algorithms promise reliable seizure detectors, but the major impediment is the lack of larger samples of curated ictal thalamic SEEG needed for training classifiers. We aimed to investigate if synthetic data generated by temporal Generative Adversarial Networks (TGAN) can inflate the sample size to improve the performance of a deep learning classifier of ictal and interictal states from limited samples of thalamic SEEG. Thalamic SEEG from 13 patients (84 seizures) was obtained during stereo EEG evaluation for epilepsy surgery. Overall, TGAN generated synthetic data augmented the performance of the bidirectional Long-Short Term Memory (BiLSTM) performance in classifying thalamic ictal and baseline states. Adding synthetic data improved the accuracy of the detection model by 18.5%. Importantly, this approach can be applied to classify electrographic seizure onset patterns or develop patient-specific seizure detectors from implanted neuromodulation devices.

Introduction

Despite significant advances in diagnostic and therapeutic technologies, over 30 million people worldwide have drug-resistant epilepsy (DRE) (1). Increased seizure burden plays a central role in morbidity and mortality, thereby emphasizing the need for seizure preventative therapies (2). Surgical resection of the seizure focus may yield seizure freedom and remains the first line of treatment in DRE. However, in many patients, resection or ablation is not an option if the seizure foci are widespread involving multiple regions or are non-localizable (3, 4). Neuromodulation of the epileptogenic circuit remotely via a central hub like the thalami is often the treatment of choice in this cohort (5). Accurate and timely detection of seizures is clinically necessary for the development of feedback “responsive” therapy and monitoring seizure counts for therapy adjustment. In recent years, the medical community has widely adopted machine learning approaches to develop seizure detection algorithms. Various linear and non-linear features are extracted and have been used for seizure detection and prediction (612). However, these seizure detection algorithms have been optimized from electrophysiological signals obtained from the seizure focus. Machine learning algorithms to detect seizures from outside the seizure focus are still in their nascency (13).

There are multiple challenges in developing seizure detectors from regions like the thalamic subnuclei, i.e., (a) the thalami have lower power spectra, and the spectral contents are significantly different from the epileptogenic cortex during interictal and seizure substages (14), (b) the thalami are not routinely implanted during surgical evaluation, and hence electrophysiological recordings during seizures are scarce. Thus, the sample size is small and often inadequate for data-intensive deep learning models, and (c) Chronic local field potentials (LFPs) can be recorded from the thalami in patients with sensing-enabled deep brain stimulators (DBS) and can potentially be the solution to inadequate data. However, establishing the accuracy of detecting seizures in the ambulatory setting is challenging. In the proposed work, we overcome the inadequate sample size by applying a novel deep learning approach for detecting seizures from LFPs recorded directly from the human thalamic subnuclei.

Several deep learning algorithms have been proposed for automatic seizure detection. These include artificial neural networks, convolution, and deep convolution-based seizure detection systems. Amongst them, a widely popular and high-performing method for seizure classification using EEG is the use of temporal models such as recurrent neural network (RNN) and its variants, including Long-Short Term Memory (15)(LSTM) Bidirectional LSTM (BiLSTM), Gated Recurrent Unit (GRU) (16), and Generative Adversarial Networks (GAN). LSTMs are known for their excellence in learning patterns from temporal information while preserving dependencies in very long-time sequences. However, these temporal models (RNN, LSTM, GRU) are first trained in an adequately powered sample to learn the inherent temporal dependencies of the EEG signal that accurately represent the features of a seizure. In the present study, we apply the time-GAN method with the novel goal of detecting temporal lobe seizures from a limited number of the LFPs recorded from the human thalami. We hypothesize that the performance of a deep learning algorithm classifying seizures from the interictal state can be significantly improved by adding synthetic data using the GAN approach.

Methods

Study Participants and Ethics

Patients diagnosed with drug-refractory temporal lobe epilepsy (TLE) who underwent stereoelectroencephalography (SEEG) for localization of seizure focus were included in the study. The indication for SEEG was clinically necessary and determined in a multidisciplinary patient management conference. Within this cohort, consenting adults who had thalamic implantation for research were included in the present analysis. The multi-step consenting and evaluation process has been described in detail in our previous studies (13, 14, 17). The electrophysiological sampling of the thalamic subnuclei was performed under the supervision of the IRB, and all patients provided written informed consent. To mitigate the risk associated with implanting an additional depth electrode for research sampling of the thalamus, we modified the trajectory of a clinically indicated depth electrode sampling the operculum-insula to track medially for recording from the thalamus. Clinician-identified seizures were documented for all patients, and the SEEG data was clipped and parsed for analysis. Ictal (N = 84 from 13 patients) and baseline interictal data (Length: 550 s prior to seizure) were obtained. The demographic details of the study participants are detailed in Table 1.

TABLE 1
www.frontiersin.org

Table 1. Demographic details of the study participants.

SEEG Recording

All SEEG implantation procedures were performed using robotic assistance (ROSA device, MedTech, Syracuse, NY) (12–16 contacts per depth electrode, 2 mm contact length, 0.8 mm contact diameter, 1.5 mm intercontact distance, PMT® Corporation, Chanhassen, MN). Once implanted, the patients were monitored over 4–12 days in the epilepsy monitoring unit (EMU). SEED data as recorded using Natus Quantum (Natus Medical Incorporated, Pleasanton, CA, sampling rate 2,048 Hz). Signals were referenced to a common extracranial electrode placed posteriorly in the occiput near the hairline.

Accurate Anatomical Localization of SEEG Depth Electrodes

The details of the accuracy of the implantation strategy have been reported in our previous study (17). Here we highlight the main steps to localize the SEEG electrodes to the various cortical regions and the thalamic subnculei. The post-implant CT-scan was coregistered to preimplant MRI using Advanced Normalization Tools (ANTs) and refined registration of deep structures was performed using brain shift correction to improve the registration of subcortical structures using Lead-DBS v2 software (18). Both the images were normalized to ICBM 2009b NLIN asymmetric space using the symmetric diffeomorphic image registration. Following this, the localization of the thalamic contacts was performed in Lead-DBS, while the cortical channels were performed in iElecetrodes (19). Thalamic contacts were registered to Morel's thalamus atlas, while cortical contacts were localized using AAL2 atlas (20).

Identification of Interictal Epochs and Seizures in the Seizure Onset Zone and Thalamus

The time of the seizure onsets and offsets was annotated by a board-certified epileptologist (SP). Seizure onset in the cortex was marked as “unequivocal EEG onset” (UEO) at the earliest occurrence of rhythmic or repetitive spikes that was distinct from the background activity. SEEG segments were clipped to include 10 min before this UEO and 10 min after seizure termination. Four different clinical seizure types were included for analysis: focal aware seizures (FAS), focal impaired awareness seizures (FIAS), and focal to bilateral tonic clonic seizures (FBTCS) (21). Epochs of “interictal state” (28 epochs with each epoch lasting 9 min) were visually screened and identified from the non-seizure segment of the SEEG that was at least 1 h preceding seizure. Our previous study showed that the interictal spikes in baseline data need not be actively removed for classifying ictal states from baseline states (13). Secondly, interictal spikes will be present while training real-time data, e.g., line length detection in responsive neuromodulation systems (RNS) (22). Hence for translational purposes, no effort was made to exclude epileptiform spikes in the baseline epochs. Supplementary Material shows the details of the ictal and baseline data.

Deep Learning Architectures

The input to the BiLSTM classifier was the interictal baseline and ictal thalamic EEG data. The baseline and the ictal data from the 84 seizures (13 subjects) were initially grouped by the subject identification. Since the length of ictal data was variable, we chose the length of the shortest seizure for any given subject (i.e., 14 s) as the length of the analyzable data. To avoid a discrepancy in the length of data between ictal and baseline segments, we chose a similar 14 s length of SEEG data from the initial segment of the baseline data. The input to the BiLSTM classifier is a 2D array of data. Hence, the 14 s of the data were then clipped into multiple 1 s epochs and rearranged into a two-dimensional array of 14 × 2,048 samples (Figures 1A–C).

FIGURE 1
www.frontiersin.org

Figure 1. Study pipeline: (A) Clinician identified seizure onset timings in the hippocampal-amygdalar complex were determined. We then clipped thalamic EEG segments into epochs of baseline and seizure onset. (B) Each epoch consisted of 14 s of raw thalamic EEG segments (C). As an initial step, each 14-s 1D signal epoch was fragmented into 1-s segments to generate a 2D matrix of time × signal (sampling rate: 2,048 samples/s) (D). The data was then submitted to the TGAN system to generate synthetic data at the individual subject level. TGAN is expected to generate synthetic data that mimics original data and augment the sample size required for deep learning. (E) Two separate bidirectional long short-term memory (BiLSTM) models were tested independently on original and synthetic data.

Principally, the LSTM network only obtains information from the previous input observations but cannot use that information for future input observations. However, the BiLSTM model, composed of two independent LSTM networks, can transmit information bi-directionally and increase the learning ability of the system output (Figure 2) (23). Sixty three seizures from 11 subjects (were used to train the classifier differentiating ictal from baseline. Subsequently, 21 seizures collected from 2 patients were used for testing the model. Each BiLSTM classification model consisted of 64 units of LSTMs in the encoding layer and a kernel regularizer of 12 followed by a drop-out layer with a drop-out ratio of 0.25 and a batch normalization layer. This was followed by a dense layer of 64 units with rectified layer unit (ReLU) activation function (24). For the final output, a dense layer with SoftMax activation function of two units was used for the binary classification of baseline interictal and ictal states.

FIGURE 2
www.frontiersin.org

Figure 2. Block diagram of bidirectional long short-term memory learning (BiLSTM): A BiLSTM, is a serial sequence learning model that consists of two LSTMs operating in two directions effectively increase the amount of information available to train and test the network. The first LSTM inputs in data in a forward direction, and the second LSTM in a backwards direction. This improved the context available to the learning algorithm helping it to learn the sequence of the time series data, i.e., what data immediately follows (Xt+1) and precedes (Xt−1) the events of interest such as the seizure (X).

Generation of Synthetic Data With GAN

GANs learn and generate synthetic data by preserving the data distributions. For a generation of sequential data, the temporal dynamics need to be preserved. Yoon et al. (25) proposed the concept of time-series GAN (TGAN) that was able to capture not only the distribution of data at each instant but also the presence of various features across time (Figures 3A,B). TGAN differs from other GAN architectures in two ways. (a) By introducing an embedding network, it reduces the dimension of the adversarial learning space, and (b) uses supervised adversarial loss, unlike GAN, where unsupervised methods are used. In our analysis, TGAN was used to generate synthetic data that was 10 times the original data. The data (ictal and baseline) were fed into the TGAN model to produce the augmented data (Figure 1D).

FIGURE 3
www.frontiersin.org

Figure 3. The architecture of GAN (A) and time GAN (B). (A) Generative Adversarial Networks (GAN) is an unsupervised learning system that involves discovering and learning the patterns in input data to generate a new set of synthetic data that mimics the original dataset. (B) Time-series Generative Adversarial Networks (Time-GAN) combines the flexibility of the unsupervised paradigm with the control by incorporating supervised training.

Validation of Synthetic Data

The second level BiLSTM analysis classifies ictal and baseline states based on the synthetic TGAN data (Figure 1E). Hence it was necessary to validate the similarity of the synthetic data with the original data. The validation was quantified using the Train-Synthetic-Test-Real method (TSTR), where a logistic regression classifier model with a single layer gated recurring units (GRU) with 12 units was used for training both the original and the synthetic data. Each model was trained separately with 75% of the original and the synthetic data, respectively. The testing of both the models is done with the remaining 25% of only the original data set (25). This allowed us to estimate individual seizure level and subject level coefficient of determination (R2) values and the percentage difference between original and synthetic data (Table 2). Finally, a t-distributed stochastic neighbor embedding (t-SNE) analysis was performed to visualize if the ictal and baseline data could be better segregated using the original or the synthetic data. T-SNEs were generated in MATLAB using the “exact” algorithm, with Mahalanobis distance, the perplexity of 50, and PCA dimensions of 3.

TABLE 2
www.frontiersin.org

Table 2. Coefficient of determination (R2) and mean absolute error (MAE) values obtained from regression models comparing original and synthetic data for the baseline and ictal data.

Performance of BiLSTM on Original vs. Synthetic Data

To estimate the performance of the BiLSTM following metrics were computed: sensitivity (Sn or recall), specificity, accuracy (for training, validation, and testing data), positive predictive value (PPV or precision), F1-score, and area under the curve (AUC). The difference in the performance of the BiLSTM classifiers for original and synthetic data was visualized using ROC (receiver operating characteristic) curve by testing the relationship between sensitivity and 1-specificity.

Implementation Details

The BiLSTM and TGAN models were tested in Python, and t-SNE analysis was performed in MATLAB. We utilized Keras (26), scikit-learn, an open-source Python API that takes into account the neural organization structures based on top of TensorFlow, to construct all learning models.

Results

Safety and Localization of Thalamic Electrodes

Thirteen subjects were included in the study, with 10 had electrodes localized to the anterior nucleus of the thalamus (ANT) and 3 in the centrolateral thalamic nuclei (Table 1, Figure 4). CT brain (post-implant and post-explant) did not show any thalamic hemorrhage. Eight subjects were implanted on the right side and three on the left side.

FIGURE 4
www.frontiersin.org

Figure 4. (A) Coregistration of post-implant CT scan on pre-implant MRI and Morel's thalamic atlas to determine the exact localization of thalamic targets. (A) An example of the electrode localized to the central thalamic nucleus (CL). (B) An example of the electrode localized to the anterior thalamic nucleus (ANT).

Clinico-Demographic Details of Subjects

Table 1 summarizes the clinic-demographic details of the subjects included in this study. A total of 84 seizures from 13 subjects were analyzed. The seizure onset zone was determined based on the clinical consensus among the epileptologists during the epilepsy surgical conference. The identified seizure focus was: medial temporal (4 subjects), mesial + temporal pole onset (3 subjects), temporal plus (5 subjects), with the plus representing additional seizure foci (orbitofrontal or insula or suprasylvian operculum) (27). The seizure types were: ES (19), FAS (24), FIAS (28), and FBTCS (6).

TGAN Augmented Synthetic Data Were Comparable to the Original SEEG Data

The TGAN generated synthetic data was similar to the original SEEG data. At baseline, there was no difference between the mean coefficient of determination (R2) of the original and synthetic data (original: 0.484 ± 0.251, synthetic: 0.487 ± 0.256, t = −0.6, p = 0.27). Similarly, there was no difference in the mean absolute error (MAE) of original and synthetic data (original: 10.34 ± 8.25, synthetic: 10.32 ± 8.21, t = 0.008, p = 0.49). Similarly, the TGAN augmented data synthesized during the ictal period did not differ from the original data in R2 (original: 0.491 ± 0.221, synthetic: 0.492 ± 0.224, t = −0.0097, p = 0.49) and the MAE (original: 12.95 ± 15.42, synthetic: 12.94 ± 15.42, t = 0.001, p = 0.49).

TGAN Augmented Synthetic Data Enhanced the Performance of the BiLSTM Classifier

We constructed ROC curves to determine the performance of the BiLSTM on original, and TGAN augmented synthetic data. The classification of the ictal from the baseline data was superior with the synthetic TGAN augmented data compared to the original data (original: AUC: 60% and synthetic: 78.5%, Figure 5A). This improvement in the performance of the BiLSTM models could be better visualized using three component t-SNE plots (Figures 5B–D). T-SNE of original data failed to parse the ictal and baseline clusters separately (Figure 5B), while T-SNE performed on the TGAN augmented synthetic data with the same parameters, demonstrated a clear separation into ictal and the baseline clusters (Figure 5C). We initially noted that the ictal clusters were further separated in space into multiple clusters. A t-SNE indexed by the subject ID showed that TGAN amplifies the ictal data specific to each patient that is distinctly different from their comparable baselines (Figure 5D). The result suggests that the patient-specific electrographic seizure onset patterns were retained in the TGAN augmented data (Figure 5D).

FIGURE 5
www.frontiersin.org

Figure 5. (A) Receiver operator characteristic (ROC) curves comparing the performance of BiLSTM models trained with original and TGAN augmented synthetic data. (B) T-SNE plot of the original SEEG data showing the baseline (red) and ictal (blue) data. (C) T-SNE plot of the TGAN augmented synthetic data shows a clear distinction between the two groups (baseline in red and ictal in blue). (D) A t-SNE indexed by the subject ID showed that TGAN amplifies the ictal data specific to each patient that is distinctly different from their comparable baselines (the different colors are indicative of the data different 13 different subjects). In conjunction with C, we understand that data is not only classified based on ictal and interictal data, but also distinctly clustered based on individual subjects' data.

Overall, the performance of the BiLSTM in classifying ictal and baseline states from thalamic SEEG data was enhanced by the use of TGAN generated synthetic data over the original data. The accuracy of the training data improved by 31.75%, the validation data improved by 32.1%, and finally, the testing data improved by 18.5%. The sensitivity and PPV of the BiLSTM classifier on improved by 13 and 10% on the testing data (Figure 6).

FIGURE 6
www.frontiersin.org

Figure 6. Bi-directional Long Short-Term memory (BiLSTM) classification results using original and time generative adversarial networks (Time-GAN) generated synthetic data. Ac, accuracy; PPV, positive predictive value, Sn, sensitivity; Sp, specificity; F1, F-score; AUC, area under the curve, %, percentage.

Discussions

Currently the only clinically available neuromodulation system that is based on a close loop system approved by the United States Food and Drug Administration (FDA) is the Responsive neurostimulation. To date this device has been extensively used to target neuromodulation in the cortical regions. This device uses amplitude threshold and line-length as the main seizure detection algorithms. There have been anecdotal reports of implanting the human thalamus with RNS, where the seizures were still detected in the cortex but the stimulation was performed in the ANT. There has been growing literature that thalamus is involved early in focal seizures, particularly in TLE. Some studies have also tried to detect seizures from human thalamus. This detection of seizures from the human thalamus and understanding the pattern of involvement of thalamus on focal seizures is of utmost importance while developing closed-loop DBS systems. To date, it has been shown that ANT DBS (open loop) has had great success in patients with drug resistant epilepsy particularly those patients who are negative for a lesion on the MRI, with a median seizure frequency reduction of 75% at 7 years of therapy.

Newer sensing-enabled DBS systems have been approved by the FDA since 2018 in the practice of epilepsy and since 2002 for Parkinson's disease. These devices offer closed loop sensing and diary functions (record of events) to monitor symptoms and tailor therapeutic stimulation. A recent study has shown that closed loop neurostimulation within the human thalamus has shown a ≥50% reduction in seizure frequency with no adverse effects on mood, memory or behavior. With the advent of such sensing-enabled closed loop systems, there is a clinical need to develop seizure detection algorithms from the thalamic SEEG and not just from the cortical seizure onset zone. One of the most critical steps in enabling sensing, is to develop patient-specific detection based on individual subject's thalamic seizure patterns. Often, the data obtained from a single subject is limited and hence the translation of deep learning approaches has been hindered by the lack of larger samples of curated ictal thalamic SEEG needed for training these classifiers. Here, we demonstrate the utility of generating synthetic data using GAN that can augment the sample size and improve the performance of BiLSTM. Importantly, this approach can be applied to classify electrographic seizure onset patterns or develop patient-specific seizure detectors from implanted neuromodulation devices. In summary, we found that Time-GAN helps generate synthetic time series that resemble the original data, with a very small mean absolute error rate of 0.1 ± 0.5% between the original and the augmented data. In fact, when this time-GAN augmented data was used in BiLSTM classifier to detect the ictal state, we noticed that the accuracy of the classifier improved by 18.5%, sensitivity by 13% and PPV by 10% when compared to classifying using the original data. Though marginal, such an improvement is promising and further refinement of such models are required to optimize seizure detection in the thalamus.

Performance of Deep Learning Algorithms for Seizure Detection

Table 3 summarizes the performance of deep learning algorithms in detecting seizures from electrophysiological signals recorded from the scalp and intracortical regions (LFPs). To date, deep learning algorithms to detect seizures were applied to EEG obtained from the cortical areas that participate in seizure generation. Our study is distinct and the first of its kind to perform deep learning detection on EEG recordings from a brain region that is remote to the seizure focus.

TABLE 3
www.frontiersin.org

Table 3. Summary of prior studies evaluating deep learning for seizure detection.

As expected, the performance of these classifiers was higher with biosignals obtained directly from the cortex than from the scalp which is likely to be closer to the seizure focus. In those studies, the sample size for deep learning consisted of over 100 ictal EEG data. The main motivation of this study is to highlight how data augmentation techniques can improve the accuracy of the classifier, albeit a lower overall performance of our classifier in comparison to other studies. Even when data is smaller (84 seizures), we can use data-augmentation methods to enhance the performance of the classifier (accuracy improved by 18% in our current study) and improve the detection performed in subcortical neuromodulatory targets such as the thalamus, which are distant and outside the seizure cortex. Wei et al. (38) were among the pioneering teams in demonstrating improved seizure detection in scalp EEG with GAN models. They used the Wasserstein Generative Adversarial Nets (WGANs) combined with a convolutional neural network (CNN) to demonstrate a 3% improvement in accuracy (81.5–84.4%) and a near 2% improvement in the sensitivity (70.68–72.11%). In our study, the accuracy and sensitivity improved by 18.5 and 13%, respectively. Zhao et al. (39), in their model with a 1D-CNN with data-augmentation on data obtained from intracranial EEG data that was close to seizure focus, achieve an improvement of only 3% (accuracy of 89.28% compared to 86.89 with a support vector machine). They proposed a data augmentation method which leverages feature correlations in the transformed domain rather than in the original domain where time-domain data is converted to the frequency domain by discrete cosine transform (DCT), and new artificial data is generated by combining different frequency bands from different data, and converted back to time-domain data. Overall, these studies and ours, point to the promising future of using data augmentation techniques for better seizure detection to improve therapeutic stimulation.

Augmented Subject-Specific Classification With Temporal GAN

GANs, are deep-learning algorithms where two competing networks, namely the generator and the discriminator, compete against each other until the generator generates artificial data of high quality. According to Goodfellow et al. (40), “the generative models are analogous to a team of counterfeiters trying to produce fake currency without being detected. The discriminative model is analogous to the police trying to detect fake currency. The competition between the generator and discriminator drives improvement until the counterfeiters are indistinguishable from the genuine currency.” Thus, GAN has been used to classify interictal spikes and in EEG-based brain-computer interfaces. Our result supports the use of GAN to produce synthetic data to augment the performance by 18% as compared to using only the original data. The ability to classify seizures from limited samples of unprocessed LFP signals may provide a clinical advantage in neuromodulation devices where efficient processing at a lower computational expense is desired.

Study Limitations

There is a proof-of-concept study evaluating the use of synthetic data in augmenting sample size for deep learning. The study needs to be extended to a larger cohort with thalamic recordings of seizures and interictal baseline. One major challenge of the temporal GAN model is that it is computationally intense and consumes time to learn or converge to local minima and hence slows the training process. Another limitation of GAN is that the presence of discontinuous (e.g., ECoGs obtained from clinical neuromodulation devices) data may synthesize incorrect data. In our study, the duration of the data used for time-GAN analysis was 14 s based on the shortest duration of the ictal event from our cohort and in the future the results need to be optimized to individual patients, in whom the seizure durations are likely to vary significantly. This will also have a bearing on minimizing the detection latencies in the future models. Such sophisticated models will help build closed-loop neuromodulation strategies where early seizure detection can be used to pace the brain to abort seizures. Regarding the size of our data-set, we used 63 seizures from 11 patients' data for training and 21 seizures from 2 patients's data for testing the BiLSTM and Time-GAN models. While our study did show a reasonable improvement in the accuracy of the BiLSTM models and can be used as a proof of concept, in the future it is essential to validate this using random sampling of the patients' data and at individual subject level to emphasize and validate its clinical use. Also, cross validation across all patients' data would further strengthen the validity of the model. Since GAN is time consuming and resource demanding, our purpose was not to run it on all subjects but show how even in few subjects an improved accuracy can be obtained. Another limitation is that we did not determine the exact cause of improved accuracy and test the fidelity, diversity, and generalization of the data augmentation method, i.e., TGAN. These measures help determine the point at which the generative model surpasses and fools the discriminative network. Once the TGAN augmented data robustly mimics the real data, the TGAN-output is then used as the input in BiLSTM models improve accuracy. TGANs supersede BiLSTMs at finding a better low dimensional representation and hence may contribute to improved accuracy. In our study, we were interested in showing if the TGAN is able to produce synthetic data effectively from available limited samples and whether that use of the synthetic data shows elevated performance as compared to the using the original data only and a more detailed validation of TGAN was to voluminous for this study.

Conclusion

The ability to detect seizures from the thalamus- a structure remote to the seizure focus is clinically necessary for monitoring seizure burden in drug-resistant epilepsies where seizure foci are non-localizable. In this study, we demonstrate the use of synthetic data to augment sample size and improve deep learning performance in detecting seizures from the human thalamic SEEG. The proposed framework should be extended to a larger cohort of patients with thalamic DBS in multifocal epilepsies.

Data Availability Statement

The datasets presented in this article are not readily available because the data is controlled by IRB. Requests to access the datasets should be directed to patilabuab@gmail.com.

Ethics Statement

The studies involving human participants were reviewed and approved by University of Alabama Birmingham Medical Center. The patients/participants provided their written informed consent to participate in this study.

Author Contributions

BG and GC analyzed, interpreted, and helped in writing the mansucript. KB supervised data analysis, interpretation, and revised the mansucript. RB and NN provided analytical tools and helped in analysis of the data. SP obtained IRB approval, designed the study, interpreted the data, and wrote and revised the manuscript. All authors approved the final version of the manuscript.

Funding

SP would like to acknowledge the USA National Science Foundation Grant (NSF RII-2 FEC OIA-1632891) that provided protected time for research.

Conflict of Interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Publisher's Note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary Material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fneur.2022.755094/full#supplementary-material

References

1. Neligan A, Hauser WA, Sander JW. The epidemiology of the epilepsies. Handb Clin Neurol. (2012) 107:113–33. doi: 10.1016/B978-0-444-52898-8.00006-9

CrossRef Full Text | Google Scholar

2. Devinsky O, Hesdorffer DC, Thurman DJ, Lhatoo S, Richerson G. Sudden unexpected death in epilepsy: epidemiology, mechanisms, and prevention. Lancet Neurol. (2016) 15:1075–88. doi: 10.1016/S1474-4422(16)30158-2

PubMed Abstract | CrossRef Full Text | Google Scholar

3. Muhlhofer W, Tan Y-L, Mueller SG, Knowlton R. MRI-negative temporal lobe epilepsy-What do we know? Epilepsia. (2017) 58:727–42. doi: 10.1111/epi.13699

PubMed Abstract | CrossRef Full Text | Google Scholar

4. Wang X, Zhang C, Wang Y, Hu W, Shao X, Zhang J-G, et al. Prognostic factors for seizure outcome in patients with MRI-negative temporal lobe epilepsy: a meta-analysis and systematic review. Seizure. (2016) 38:54–62. doi: 10.1016/j.seizure.2016.04.002

PubMed Abstract | CrossRef Full Text | Google Scholar

5. Salanova V, Witt T, Worth R, Henry TR, Gross RE, Nazzaro JM, et al. Long-term efficacy and safety of thalamic stimulation for drug-resistant partial epilepsy. Neurology. (2015) 84:1017–25. doi: 10.1212/WNL.0000000000001334

PubMed Abstract | CrossRef Full Text | Google Scholar

6. Manzouri F, Heller S, Dümpelmann M, Woias P, Schulze-Bonhage A. A comparison of machine learning classifiers for energy-efficient implementation of seizure detection. Front Syst Neurosci. (2018) 12:43. doi: 10.3389/fnsys.2018.00043

PubMed Abstract | CrossRef Full Text | Google Scholar

7. Shen Y. Machine learning based epileptic seizure detection for responsive neurostimulator system optimization. J Phys. (2020) 1453:012089. doi: 10.1088/1742-6596/1453/1/012089

CrossRef Full Text | Google Scholar

8. Dümpelmann M. Early seizure detection for closed loop direct neurostimulation devices in epilepsy. J Neural Eng. (2019) 16:041001. doi: 10.1088/1741-2552/ab094a

PubMed Abstract | CrossRef Full Text | Google Scholar

9. Sridevi V, Ramasubba Reddy M, Srinivasan K, Radhakrishnan K, Rathore C, Nayak DS. Improved patient-independent system for detection of electrical onset of seizures. J Clin Neurophysiol. (2019) 36:14–24. doi: 10.1097/WNP.0000000000000533

PubMed Abstract | CrossRef Full Text | Google Scholar

10. Sharathappriyaa V, Gautham S, Lavanya R. Auto-encoder based automated epilepsy diagnosis. In: 2018 International Conference on Advances in Computing, Communications and Informatics (ICACCI). Bangalore: IEEE (2018). p. 976–982. doi: 10.1109/ICACCI.2018.8554697

PubMed Abstract | CrossRef Full Text | Google Scholar

11. Bulusu S, Sai Surya Siva Prasad R, Telluri P, Neelima N. Methods for epileptic seizure prediction using EEG signals: a survey. In: Hemanth DJ, Vadivu G, Sangeetha M, Balas VE, editors. Artificial Intelligence Techniques for Advanced Computing Applications. Singapore: Springer (2020). p. 101–15. doi: 10.1007/978-981-15-5329-5_10

CrossRef Full Text | Google Scholar

12. Naderi MA, Mahdavi-Nasab H. Analysis and classification of EEG signals using spectral analysis and recurrent neural networks. in 2010 17th Iranian Conference of Biomedical Engineering (ICBME). Isfahan (2010). p. 1–4. doi: 10.1109/ICBME.2010.5704931

PubMed Abstract | CrossRef Full Text | Google Scholar

13. Toth E, Kumar S, Ganne C, Riley KO, Balasubramanian K, Pati S. Machine learning approach to detect focal-onset seizures in the human anterior nucleus of the thalamus. J Neural Eng. (2020) 17:1–12. doi: 10.1101/2020.09.18.20196857

PubMed Abstract | CrossRef Full Text | Google Scholar

14. Pizarro D, Ilyas A, Chaitanya G, Toth E, Irannejad A, Romeo A, et al. Spectral organization of focal seizures within the thalamotemporal network. Ann Clin Transl Neurol. (2019) 6:1836–48. doi: 10.1002/acn3.50880

PubMed Abstract | CrossRef Full Text | Google Scholar

15. Hochreiter S, Schmidhuber J. Long short-term memory. Neural Comput. (1997) 9:1735–80. doi: 10.1162/neco.1997.9.8.1735

PubMed Abstract | CrossRef Full Text | Google Scholar

16. Yu Y, Si X, Hu C, Zhang J. A review of recurrent neural networks: LSTM cells and network architectures. Neural Comput. (2019) 31:1235–70. doi: 10.1162/neco_a_01199

PubMed Abstract | CrossRef Full Text | Google Scholar

17. Chaitanya G, Romeo AK, Ilyas A, Irannejad A, Toth E, Elsayed G, et al. Robot-assisted stereoelectroencephalography exploration of the limbic thalamus in human focal epilepsy: implantation technique and complications in the first 24 patients. Neurosurg Focus. (2020) 48:E2. doi: 10.3171/2020.1.FOCUS19887

PubMed Abstract | CrossRef Full Text | Google Scholar

18. Horn A, Li N, Dembek TA, Kappel A, Boulay C, Ewert S, et al. Lead-DBS v2: towards a comprehensive pipeline for deep brain stimulation imaging. Neuroimage. (2019) 184:293–316. doi: 10.1016/j.neuroimage.2018.08.068

PubMed Abstract | CrossRef Full Text | Google Scholar

19. Blenkmann AO, Phillips HN, Princich JP, Rowe JB, Bekinschtein TA, Muravchik CH, et al. iElectrodes: a comprehensive open-source toolbox for depth and subdural grid electrode localization. Front Neuroinform. (2017) 11:14. doi: 10.3389/fninf.2017.00014

PubMed Abstract | CrossRef Full Text | Google Scholar

20. Krauth A, Blanc R, Poveda A, Jeanmonod D, Morel A, Székely G. A mean three-dimensional atlas of the human thalamus: generation from multiple histological data. Neuroimage. (2010) 49:2053–62. doi: 10.1016/j.neuroimage.2009.10.042

PubMed Abstract | CrossRef Full Text | Google Scholar

21. Fisher RS, Cross JH, French JA, Higurashi N, Hirsch E, Jansen FE, et al. Operational classification of seizure types by the International League Against Epilepsy: position paper of the ILAE Commission for Classification and Terminology. Epilepsia. (2017) 58:522–30. doi: 10.1111/epi.13670

PubMed Abstract | CrossRef Full Text | Google Scholar

22. Esteller R, Echauz J, Tcheng T, Litt B, Pless B. Line length: an efficient feature for seizure onset detection. In: 2001 Conference Proceedings of the 23rd Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Vol. 2. Istanbul: IEEE (2001). p. 1707–10.

Google Scholar

23. Graves A, Schmidhuber J. Framewise phoneme classification with bidirectional LSTM and other neural network architectures. Neural Networks. (2005) 18:602–10. doi: 10.1016/j.neunet.2005.06.042

PubMed Abstract | CrossRef Full Text | Google Scholar

24. Goyal M, Goyal R, Venkatappa Reddy P, Lall B. Activation functions. In: Pedrycz W, Chen SM, editors. Deep Learning: Algorithms and Applications Studies in Computational Intelligence. Cham: Springer International Publishing (2020). p. 1–30. doi: 10.1007/978-3-030-31760-7_1

CrossRef Full Text | Google Scholar

25. Jinsung Y, Daniel J. Time-series Generative Adversarial Networks. (2019). Available online at: https://www.damtp.cam.ac.uk/user/dkj25/pdf/yoon2019time.pdf (accessed October 31, 2021).

Google Scholar

26. Chollet F. keras-team/keras. Keras (2021). Available online at: https://github.com/keras-team/keras (accessed April 2, 2021).

27. Barba C, Rheims S, Minotti L, Guénot M, Hoffmann D, Chabardès S, et al. Temporal plus epilepsy is a major determinant of temporal lobe surgery failures. Brain. (2016) 139(Pt 2):444–51. doi: 10.1093/brain/awv372

PubMed Abstract | CrossRef Full Text | Google Scholar

28. Yao X, Li X, Ye Q, Huang Y, Cheng Q, Zhang G-Q, et al. robust deep learning approach for automatic classification of seizures against non-seizures. Biomed Signal Process Control. (2021) 64:102215. doi: 10.1016/j.bspc.2020.102215

CrossRef Full Text | Google Scholar

29. Tsiouris, Pezoulas VC, Zervakis M, Konitsiotis S, Koutsouris DD, Fotiadis DI. A long short-term memory deep learning network for the prediction of epileptic seizures using EEG signals. Comput Biol Med. (2018) 99:24–37. doi: 10.1016/j.compbiomed.2018.05.019

PubMed Abstract | CrossRef Full Text | Google Scholar

30. Ullah I, Hussain M, Qazi E-H, Aboalsamh H. An automated system for epilepsy detection using EEG brain signals based on deep learning approach. Expert Syst Appl. (2018) 107:61–71. doi: 10.1016/j.eswa.2018.04.021

CrossRef Full Text | Google Scholar

31. Abdelhameed AM, Daoud HG, Bayoumi M. Deep convolutional bidirectional LSTM recurrent neural network for epileptic seizure detection. In: 2018 16th IEEE International New Circuits and Systems Conference (NEWCAS). Montreal, QC (2018). p. 139–43. doi: 10.1109/NEWCAS.2018.8585542

PubMed Abstract | CrossRef Full Text | Google Scholar

32. Avcu MT, Zhang Z, Chan DWS. Seizure detection using least EEG channels by deep convolutional neural network. In: ICASSP 2019 - 2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). Brighton (2019). p. 1120–4. doi: 10.1109/ICASSP.2019.8683229

PubMed Abstract | CrossRef Full Text | Google Scholar

33. San-Segundo R, Gil-Martín M, D'Haro-Enríquez LF, Pardo JM. Classification of epileptic EEG recordings using signal transforms and convolutional neural networks. Comput Biol Med. (2019) 109:148–58. doi: 10.1016/j.compbiomed.2019.04.031

PubMed Abstract | CrossRef Full Text | Google Scholar

34. Lu D, Triesch J. Residual deep convolutional neural network for EEG signal classification in epilepsy. arXiv preprint arXiv:190308100 (2019). Available online at: https://arxiv.org/abs/1903.08100

PubMed Abstract | Google Scholar

35. Asif U, Roy S, Tang J, Harrer S. SeizureNet: A Deep Convolutional Neural Network for Accurate Seizure Type Classification Seizure Detection. DeepAI (2019). Available online at: https://deepai.org/publication/seizurenet-a-deep-convolutional-neural-network-for-accurate-seizure-type-classification-and-seizure-detection (accessed March 26, 2021).

36. Hu X, Yuan S, Xu F, Leng Y, Yuan K, Yuan Q. Scalp EEG classification using deep Bi-LSTM network for seizure detection. Comput Biol Med. (2020) 124:103919. doi: 10.1016/j.compbiomed.2020.103919

PubMed Abstract | CrossRef Full Text | Google Scholar

37. Yan P, Wang F, Grinspan Z. Spectrographic seizure detection using deep learning with convolutional neural networks (S19.004). Neurology. (2018) 90:15–6. doi: 10.1016/j.seizure.2019.07.009

PubMed Abstract | CrossRef Full Text | Google Scholar

38. Wei Z, Zou J, Zhang J, Xu J. Automatic epileptic EEG detection using convolutional neural network with improvements in time-domain. Biomed Signal Process Control. (2019) 53:101551. doi: 10.1016/j.bspc.2019.04.028

CrossRef Full Text | Google Scholar

39. Zhao W, Wang W. SeizureNet: A model for robust detection of epileptic seizures based on convolutional neural network. Cogn Comput Syst. (2020) 2:119–24. doi: 10.1049/ccs.2020.0011

CrossRef Full Text | Google Scholar

40. Goodfellow I, Pouget-Abadie J, Mirza M, Xu B, Warde-Farley D, Ozair S, et al. Generative adversarial networks. Commun ACM. (2020) 63:139–44. doi: 10.1145/3422622

CrossRef Full Text | Google Scholar

Keywords: temporal lobe epilepsy, thalamus, Bidirectional Long-Short Term Memory (Bi-LSTM), seizure detection algorithm, Generative Adversarial Network (GAN)

Citation: Ganti B, Chaitanya G, Balamurugan RS, Nagaraj N, Balasubramanian K and Pati S (2022) Time-Series Generative Adversarial Network Approach of Deep Learning Improves Seizure Detection From the Human Thalamic SEEG. Front. Neurol. 13:755094. doi: 10.3389/fneur.2022.755094

Received: 07 August 2021; Accepted: 12 January 2022;
Published: 16 February 2022.

Edited by:

Taylor J. Abel, University of Pittsburgh, United States

Reviewed by:

Vasileios Kokkinos, Massachusetts General Hospital and Harvard Medical School, United States
Maxwell Bond Wang, Carnegie Mellon University, United States

Copyright © 2022 Ganti, Chaitanya, Balamurugan, Nagaraj, Balasubramanian and Pati. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Sandipan Pati, patilabuab@gmail.com; Karthi Balasubramanian, b_karthi@cb.amrita.edu

ORCID: Bhargava Ganti orcid.org/0000-0002-3348-3032
Karthi Balasubramanian orcid.org/0000-0002-4418-4898
Nithin Nagaraj orcid.org/0000-0003-0097-4131

These authors share first authorship

§These authors share senior authorship

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.