Skip to main content
medRxiv
  • Home
  • About
  • Submit
  • ALERTS / RSS
Advanced Search

Reliable detection of focal-onset seizures in the human anterior nucleus of the thalamus using non-linear machine learning

Emilia Toth, Sachin S Kumar, View ORCID ProfileGanne Chaitanya, Kristen Riley, Karthi Balasubramanian, Sandipan Pati
doi: https://doi.org/10.1101/2020.09.18.20196857
Emilia Toth
1Department of Neurology, University of Alabama at Birmingham, AL
2Epilepsy and Cognitive Neurophysiology Laboratory, University of Alabama at Birmingham, AL
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Sachin S Kumar
3Centre for Computational Engineering and Networking (CEN), Amrita School of Engineering, Coimbatore, Amrita Vishwa Vidyapeetham, India
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Ganne Chaitanya
1Department of Neurology, University of Alabama at Birmingham, AL
2Epilepsy and Cognitive Neurophysiology Laboratory, University of Alabama at Birmingham, AL
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Ganne Chaitanya
Kristen Riley
4Department of Neurosurgery, University of Alabama at Birmingham, AL
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Karthi Balasubramanian
5Department of Electronics and Communication Engineering, Amrita School of Engineering, Coimbatore, Amrita Vishwa Vidyapeetham, India
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Sandipan Pati
1Department of Neurology, University of Alabama at Birmingham, AL
2Epilepsy and Cognitive Neurophysiology Laboratory, University of Alabama at Birmingham, AL
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • For correspondence: spati{at}uabmc.edu
  • Abstract
  • Full Text
  • Info/History
  • Metrics
  • Data/Code
  • Preview PDF
Loading

Abstract

Objective There is an unmet need to develop seizure detection algorithms from brain regions outside the epileptogenic cortex. The study aimed to demonstrate the feasibility of classifying seizures and interictal states from local field potentials (LFPs) recorded from the human thalamus-a subcortical region remote to the epileptogenic cortex. We tested the hypothesis that spectral and entropy-based features extracted from LFPs recorded from the anterior nucleus of the thalamus (ANT) can distinguish its state of ictal recruitment from other interictal states (including awake, sleep).

Approach Two supervised machine learning tools (random forest and the random kitchen sink) were used to evaluate the performance of spectral (discrete wavelet transform-DWT), and time-domain (multiscale entropy-MSE) features in classifying seizures from interictal states in patients undergoing stereo EEG evaluation for epilepsy surgery. Under the supervision of IRB, field potentials were recorded from the ANT in consenting adults with drug-resistant temporal lobe epilepsy. Seizures were confirmed in the ANT using line-length and visual inspection. Wilcoxon rank-sum (WRS) method was used to test the differences in spectral patterns between seizure and interictal (awake and sleep) states.

Main Results 79 seizures (10 patients) and 158 segments (approx. 4 hours) of interictal stereo EEG data were analyzed. The mean seizure detection latencies with line length in the ANT varied between seizure types (range 5-34 seconds). However, the DWT and MSE in the ANT showed significant changes for all seizure types within the first 20 seconds after seizure onset. The random forest (accuracy 93.9 % and false-positive 4.6%) and the random kitchen sink (accuracy 97.3% and false-positive 1.8%) classified seizures and interictal states.

Significance These results suggest that features extracted from the thalamic LFPs can be trained to detect seizures that can be used for monitoring seizure counts and for closed-loop seizure abortive interventions.

1. INTRODUCTION

The development of automated, reliable seizure detectors is necessary for clinical and research purposes for multiple reasons. First, an electronic seizure detector can be used to provide feedback for therapy delivery (i.e., closed-loop electrical stimulation like the responsive neurostimulator-RNS) or can trigger an alarm to notify a caregiver[1][2][3]. Second, automated detectors allow quantifying seizures and circadian patterns for an electronic seizure diary that can be used to tailor therapy[4]. Third, in research, large scale automation of seizure counts can accelerate drug development and evaluate therapy responses[5][6]. Given these translational significances, there is a continuous development of algorithms based on either machine learning or deep learning. Although the biosignal input for seizure detection has ranged from heart rate to muscle activity or scalp EEG[7][8][9], the intracranial EEG due to its higher signal to noise ratio has the highest reliability and is often used in neuromodulation therapies[10]. The developmental pipeline for seizure detection algorithms with intracranial EEG includes feature extraction from the local field potentials (LFP) recorded from the seizure onset zone, followed by training and testing. Therefore, most seizure detection algorithms are based on LFP recordings from the seizure onset zone[11]. Unfortunately, in clinical practice, the localization of seizure onset is not always possible. Treatment options like surgical resection or ablation or neuromodulation (like the RNS system) are not applicable in this cohort due to the inability to localize the seizure generation sites. Hence, mortality is higher in nonlocalizable epilepsies[12]. A preferred option in such patients has been the deep brain stimulation (DBS) which currently operates as an open loop device where stimulation parameters are pre-programmed to occur throughout the day and are not responsive to changes in the patient’s seizures resulting in various long term adverse events such as memory impairment, therapeutic ineffectiveness, etc. Thus, there is an unmet need to innovate seizure detection from brain regions outside the seizure foci or seizure onset zone. We respond to this clinical need by demonstrating the feasibility of identifying electrophysiological signatures of seizures from the human thalamus-a subcortical region that is remote to the cortical seizure onset sites.

The thalamus is not a unitary structure but a conglomeration of subnuclei, each with diverse reciprocal connectivity and functions[13]. Numerous animal studies have demonstrated that -a) recurrent limbic seizures and spikes facilitated the remodeling of the thalamocortical networks[14]; b) thalamic neuronal firings are increased with the initiation of limbic seizures[15]; and c) chemical, lesional or optogenetic deactivation of thalamic subnuclei interrupted cortical seizures[16][17][18]. For example, the anterior nucleus of the thalamus (ANT) mediates cortical-subcortical interactions between the limbic system and the brainstem[19]. These pathways are associated with a bihemispheric propagation of convulsive seizures. The thalamocortical neural activity also regulates wakefulness, sleep, consciousness, and synchronization of intracortical networks[20][21][22][23]. Prior studies have demonstrated that states of vigilance (SOV) can be distinguished using entropy or time-frequency (spectral) decomposition of EEG signals[24][25]. Based on these evidence, we tested the hypothesis that spectral and entropy-based features extracted from LFPs from the ANT can distinguish its state of ictal recruitment from other interictal states (including awake, sleep). We used two supervised machine learning approaches (random forest and the random kitchen sink) to evaluate the performance of spectral and temporal features in classifying ictal from interictal states in patients undergoing stereo EEG (SEEG) evaluation for epilepsy surgery.

2. METHODS

2.1 Study participants, inclusion criteria, and ethics

Seizures (N=79 from 10 patients) and interictal stereo EEG data (N=158 segments, i.e., 79 x2 states from sleep and awake) were obtained from patients with drug-resistant temporal lobe epilepsy (TLE) who have undergone SEEG exploration for epilepsy surgery. The demographic details of the study participants are detailed in (Table 1). The Institutional Review Board of the University of Alabama at Birmingham approved the study for recording LFPs from the thalamus during SEEG exploration (IRB-170323005). Before the surgery, informed consent detailing the thalamic implantation for research was obtained from the participants. The multi-step consenting process has been described in detail in a previous study[26]. To mitigate the risk of increased complications from an additional depth electrode placement for research purposes only, the surgeon modified the trajectory of a clinically indicated multi-contact depth electrode to sample LFPs from the insular operculum region (superficial contacts) and the ANT (deeper contacts) (Fig1A). Only one ANT was sampled per participant. The rationale for selecting the ANT was based on its -a) structural connectivity with the limbic network[19]; b) preclinical and clinical studies demonstrating recruitment of ANT in TLE[15][27]; and c) the potentials of translating the knowledge gained in the study towards the development of a closed-loop DBS therapy. Only patients with confirmed electrode localization in the ANT were included in the study

Figure 1:
  • Download figure
  • Open in new tab
Figure 1:

A: The trajectory of the Anterior nucleus of thalamus (ANT) implantation that followed through precentral gyrus(I), pars opercularis frontalis (II), insula (III), putamen (IV) and ANT (V). LeadDBS was used to reconstruct target location of the thalamic electrodes, while the trajectories were reconstructed and the cortical contacts were identified using iElectrodes. B: Line Length (LL) detection of seizures in the ANT. First, the unequivocal electrographic onset was identified by the clinician in the seizure onset channel (SOZ). The LL detected seizure in the ANT was subsequently confirmed with visual inspection. C, D, E, F, G, H and I: Temporal changes in discrete wavelet transform relative wavelet energy (DWT-RWE) and multiscale entropy (MSE) across first 40 seconds of seizure and interictal awake and sleep epochs in the ANT. Statistically this power spectral change during the seizure was compared with the baseline sEEG activity using Wilcoxon Rank Sum test and corrected for multiple comparisons using false discovery rate (FDR) method. C, D, E and F summarize the significant spectral power changes (increases: black asterisks and decreases: white asterisks) during various ictal states i.e., electrographic seizures (ES: zmin<-4.1, zmax>3.9, p’s<7.2×10−5), Focal Aware Seizures (FAS: zmin<-4, zmax>4, p’s<5.7×10−5), Focal Impaired Awareness Seizures (FIAS: : zmin<-3.9, zmax>4.2, p’s<8×10−5) and Focal to Bilateral Tonic Clonic seizures (FBTCS: : zmin<-4.1, zmax>4, p’s<5.9×10−5). Increase in spectral power was noted between 4-32Hz while decrease was noted majorly in 1-2Hz and 32-64Hz for all the 4 seizure types. G and H summarize the significant spectral power changes during various physiological interictal states i.e., awake and sleep. I summarizes the temporal changes in MSE during seizures and interictal period (ES: z>4.1 p’s<2.1×10−7, FAS: z>4.3, p’s<4.9×10−12, FIAS: z>4.1, p’s<2×10−14, FBTCS: z>4.1, p’s<4.1×10−6).

View this table:
  • View inline
  • View popup
  • Download powerpoint
Table 1:

Clinical characteristics of the study participants

2.2 SEEG recording

Robotic assistance (ROSA device, Medtech, Syracuse, NY) was used to plan optimal and safe trajectories for SEEG multi-contact electrode implantation (12-16 contacts per depth electrode, 2mm contact length, 0.8mm contact diameter, 1.5mm inter-contact distance, PMT® Corporation, Chanhassen, MN). Intracranial video-EEG was recorded using Natus Quantum (Natus Medical Incorporated, Pleasanton, CA, sampling rate 2048Hz) (Figure 1). Signals were referenced to a common extracranial electrode placed posteriorly in the occiput near the hairline.

2.3 Reconstruction of depth electrodes into the brain

The pipeline and the accuracy of targeting thalamic subnuclei during SEEG have been reported previously by our group[26]. In brief, the post-implant CT volumes were co-registered to the pre-implantation MRI using affine transformation generated by FLIRT(fMRI linear image registration tool)[28]. Electrodes were localized using Lead-DBS software (www.lead-dbs.org), and trajectories were mapped using iElectrodes software[29][30]. The data was visualized using Morel’s atlas[31] (Fig1A).

2.4 Identification of interictal epochs and seizures in the seizure onset zone and thalamus

Seizure onset and offset in the cortex were annotated by a board-certified epileptologist (SP). Seizure onset was defined as the earliest occurrence of rhythmic or repetitive spikes in the cortex that was distinctive from the background activity, and that evolved in frequency and morphology (Fig2). The EEG onset of the seizure in the cortex was marked as “unequivocal EEG onset” (UEO). SEEG segments were clipped to include 10 minutes (min) before the UEO and 10min post-termination of the seizure. Seizures were classified into focal aware seizures (FAS), focal impaired awareness seizures (FIAS), and focal to bilateral tonic-clonic seizures (FBTCS)[32]. A seizure was classified as electrographic seizures (ES) when it lacked any clinical correlate, and the ictal EEG pattern lasted longer than 10 seconds. A minimum of three seizures selected randomly among each seizure type (ES, FAS, FIAS, FBTCS) per patient, and overall 3-10 seizures per patient were included for analyses in the study. Multiple epochs of 5-10 minutes duration of interictal SEEG were selected and labeled as “interictal state.” State of vigilance (SOV: sleep or awake) for the interictal epochs were determined based on video and visual SEEG inspection. No effort was made to classify sleep stages as the study was aimed to distinguish the thalamic ictal from interictal states. Similarly, no effort was made to determine the presence (or absence) of epileptiform spikes in the interictal epoch as the study was focused on determining the interictal state independent of presence (or absence) of a spike.

Figure 2:
  • Download figure
  • Open in new tab
Figure 2:

Example of a stereo EEG recording from a patient with left medial temporal lobe epilepsy. The seizure onset (time 0 sec) was characterized by low amplitude fast activity observed in the anterior and posterior hippocampus (AHIP, PHIP). At the same time rhythmic spiking was observed in the amygdala (AMY), orbitofrontal (OF) and insula (INS). Note the rhythmic spiking in the anterior nucleus of thalamus (ANT) that evolved with the progression of the seizure.

2.5 Seizure detection algorithm

Line length (LL) was used to detect the ictal activity objectively[33](Fig1B). The LL feature was derived as a simplification of the running fractal dimension of a signal. It measures the length of the signal in a particular window and compares it to a threshold. The length of the signal is dependent on the amplitude and frequency of the signal, making this feature highly suitable to sense changes in amplitude and/or frequency that typically occur during seizures. The change in LL during the peri-ictal period was considered significant when the measured LL in that segment was greater than 2SD compared to the mean of a 3min baseline segment for at least 10sec. Preprocessing steps involved detrending within 2s, removing DC-drift (Matlab detrend), reconfiguring into a bipolar montage by linking adjacent contacts from the proximal to distal part of the electrode, and removing 60 Hz line noise with a notch filter (2nd order Butterworth zero phase shift filter –Matlab designfilt and filtfilt). Subsequently, the LL was calculated on this preprocessed data over 0.25s windows with 50% overlap as shifting windows, and the resultant LL data was smoothed using the Matlab function ‘movmean’ over 2s windows. The LL was calculated for each segment with m samples using the following formula: Embedded Image

Where n is the number of sample points within 0.25s, and the xj is the sample point.

The LL detections were merged if they were closer than 2s. When the merged detections were longer than 10s, they were considered by the detection algorithm as seizures. To improve the accuracy of the seizure detection of the entire event, on the basis of the length of the seizure, another layer of temporal summation was performed wherein, if the10s-merged-detections were closer than 5s, they were again merged to constitute one single seizure event. The method helped to avoid detecting them erroneously as multiple close-lying seizures, thus helping in the detection of slower ictal spiking activity.

The electrophysiological features of ANT involvement during a seizure are not well described. Thus, we have adopted a manual offline seizure detection approach based on LL features described above. LL was performed on all the cortical channels demonstrating visually determined UEO and early seizure spread in the cortex. Seizures in ANT were reported as “not detected (ND)” when the specified changes in LL as described above, were absent in the first 120s after LL detected seizure in the cortex (LL UEO).

2.6 Power-Spectral evaluation of the field potentials recorded from the ANT

Two methods were used to measure the ictal changes of the thalamogram, (1) calculate the power-spectra with discrete wavelet technique with relative wavelet energy (DWT-RWE) and (2) multiscale spectral entropy (MSE)[34][35][24]. The time-frequency decomposition of field potentials was performed with the DWT –‘db4’, RWE, 6 levels. The DWT provides a non-redundant, highly efficient wavelet representation and direct estimation of local energies at the different relevant scales. The motivation for selecting DWT is based on prior studies suggesting this method can be an optimal tool for online seizure detection that can be translated into the implantable neural prosthesis[11][36][37]. The DWT-RWE was calculated on 4s windows, with 3 s overlap, for 1-2 Hz, 2-4 Hz, 4-8 Hz, 8-16 Hz, 16-32 Hz, and 32-64 Hz from awake, sleep and seizure segments of the thalamic signal.

We calculated MSE to characterize the temporal predictability of a time series across several time scales in the thalamus, serving as an index of its capacity for processing information. Estimation of MSE was done in a windowed manner on short epochs of 4s each, with 75% overlap after downsampling data to 200Hz according to the original implementation of the algorithm and averaging across the 10 scales to indicate the mean MSE.

We estimated MSE for one-dimensional discrete time series (x) by constructing consecutive coarse-grained time series, determined by the scale factor, τ, according to equations 2 and 3, Embedded Image where τ is the scaling factor, 1≤j≤N/τ Embedded Image where Embedded Image, r is a coefficient of tolerance, m is the pattern length and N is the length of the data. Costa et al have shown that MSE had better statistical validity for m = 1 or 2 and r being between 0.1 and 0.25. In the present study we used m = 2, r = 0.15, 1<τ≤10.

MSE was calculated across the length of the ANT SEEG signal on moving window epochs (awake, sleep, and seizure segments) like DWT analysis.

2.7 Machine Learning with Random Forest(RF) and Random Kitchen Sink(RKS)

Seizures can induce changes in behavioral states (like arousal or altered vigilance) that can increase power at narrow frequency bands. To evaluate if the temporal and spectral features (MSE and DWT RWE) can distinguish the thalamic ictal state from other interictal states of vigilance (awake and sleep), we used two machine learning algorithms-RF and RKS[38][39]. Seven features, namely: DWT-RWE in 6 frequency bands and the average of the first 10 scales of the MSE of awake, sleep, and 20 seconds of seizure segments (each seizure provided 16 data points) from the ANT were used as predictive features for RF and RKS machine learning algorithms. The seizure class contained 373 data points, and the interictal class had 2850 data points (approximately 4 hours of data), each being represented by 7 features. The data was unbalanced, and hence the smaller data was split in 80%: 20% for training and testing data. 300 data points were chosen at random for training, and 73 data points were chosen for testing purposes from each class. The RF classification technique was applied using all the features to calculate the accuracy, precision (positive predictive value), and recall (sensitivity) values. To ensure that training and testing were done in an unbiased manner, the process was repeated 500 times by choosing the training and test samples randomly during each iteration, and the average values of the accuracy, precision, and recall were used. The entire procedure used 5, 10, 15, and 20 decision trees, and four sets of results were presented that indicated that we have an improved classification with an increasing number of decision trees [40]. During the construction of the trees, Gini impurity was used to make decision about which variable to split at each node. For each feature, the sum of the Gini decrease across every tree in the forest is accumulated every time that feature is chosen to split a node. The sum is divided by the number of trees in the forest to give an average called the permutation feature importance.

As a validation of the results of the RF prediction model, we tested the same features using RKS learning. The RKS method involved a nonlinear mapping of the features on to a higher dimensional space and enabled the features to become linearly separable in the higher dimension. The feature mapping was done using a real Gaussian function as the Radial basis function (RBF) kernel. This, in combination with a regularized least square algorithm for regression, allowed us to obtain a simple classifier that can be used for real-time applications. Similar to RF analysis, RKS was used to classify the given samples into two classes: seizure and interictal states (awake and sleep). RKS classification technique was applied using all the features to calculate the accuracy, precision (positive predictive value), and recall (sensitivity) values. The seven features (DWT RWE in 6 bands and the average of the first 10 scales of MSE) of each data point were transformed into a 100 dimension feature space using random feature mapping. The mapping function performed both cosine and sine transformations on each data point, thus effectively converting each data point from a seven dimension vector into a 200-dimensional vector. Using the data in the new feature space, regression analysis, and regularized least square (RLS) loss function based classification was performed using an RBF based Gaussian kernel classifier with a hold-out cross-validation. The random mapping and the classification analysis was done using Grand Unified Regularized Least Squares (GURLS)[41]. Similar to RF, the RKS was repeated 500 times by choosing the training and test samples randomly during each iteration, and the average values of the accuracy, precision, and recall were reported.

2.8 Statistical analysis

Since DWT-RWE showed non-normal distribution, we used the Wilcoxon rank-sum (WRS) method to test how the ictal spectral patterns differed (i.e., increase or decrease in DWT-RWE) from interictal (awake and sleep) state[42]. Five DWT RWE samples of moving windows of 4s length, with 4s overlap, were input into the WRS test to form a time-related spectral power distribution subset from the seizures with ANT recruitment separated by seizure types for every frequency band. These subset distributions were compared to awake and sleep interictal distribution with the Wilcoxon test, and False Discovery Rate (FDR) correction was applied to the resulting p values.

3. RESULTS

3.1 Safety and accuracy of thalamic implantation

Out of the 13 patients that had thalamic implants, 10 had accurate localization (77%) in the ANT and were included for subsequent analysis(Table 1). None of the patients had any ischemia or hemorrhage in the subcortical regions, as evident from the CT brain performed after the explantation of the depth electrodes. The details of the accuracy and safety of research thalamic implantation at our center have been reported elsewhere[26].

3.2 Seizure types and their localization

Seventy-nine seizures from 10 subjects were analyzed in this study. Based on the clinical consensus among the epileptologists, the seizure onset zone was determined to be medial temporal (2), temporal pole (1), and temporal plus (2) with the plus representing additional seizure foci (orbitofrontal or insula) outside the medial temporal region. Five patients had multifocal epilepsies with seizure foci in bilateral medial temporal regions (2), medial temporal and parietal, or insular and superior temporal gyri (2). The distribution of seizure types was: ES (26), FAS (18), FIAS (29), and FBTCS (6).

3.3 Line length (LL) detection latencies and spectral changes of seizures in the ANT

The detection latencies of the seizures at the seizure onset zone channels were earlier (latency: 4.57±10.28s, range: -3.97 to 63.79s) than in the ANT (latency: 16.89±21.18s, range: −0.99 to 92.98s). The mean detection latencies in the ANT varied between seizure types: FAS (34s), FIAS (12.04s), and FBTCS (5s).

Following seizure onset, the first 20 seconds in the ANT showed a progressive increase in spectral power in lower frequencies (4-16 Hz) for all seizure types (Fig1C). In addition, FIAS and FBTCS showed a sustained increase in 32-64Hz. The peak changes in theta band (4-8 Hz) were seen around 26-31 seconds after seizure onset in the cortex. Also, we observed a decrease in MSE, implying that the degree of randomness of the thalamic neural activity reduced during the time of the seizures. The changes were noted for all types of seizures (ES, FAS, FIAS, and FBTCS).

3.4 Electrophysiological signatures of the thalamic ictal state are distinct from interictal states

Both RF and RKS were able to parse the thalamic seizure state from interictal states. For RF, the precision (positive predictive value) and recall (sensitivity) was 93.1% and 92.8%, respectively. For RKS, the precision and recall were 96% and 94.3%, respectively. In Table 2 and Fig 3, the average values of the confusion matrices, and performance metrics that were performed over 500 iterations for both RF and RKS were highlighted. Permutation feature importance was done for the RF model in order to verify if the seven features (DWT-RWE and MSE) were relevant for the classification (Fig 3A). We observed that all the features were relevant, with the theta and beta frequency bandwidths having the highest permutation importance. For the RKS model, the features were transformed by the nonlinear RBF kernel function, and the internally transformed features were used for classification. Since a nonlinear transformation was being performed, the feature relevance analysis was non-trivial in the transformed domain and was beyond the scope of this paper. To evaluate the significant differences between the features, we used univariate ANOVA that showed that all predictors differed significantly from each other except MSE and L2-4 spectral features (Fig 3B).

Figure 3:
  • Download figure
  • Open in new tab
Figure 3:

Performance measures of random forest (RF) and random kitchen sink (RKS) in classifying seizures and interictal states (awake and sleep) from electrophysiological recordings in the anterior nucleus of thalamus. A: The bar plot depicts the permutation importance of the 7 features (spectral power in 6 different frequencies and multiscale entropy (MSE) for RF classifier. Note the theta and beta frequency bandwidths had the highest permutation importance. B: Results from an univariate ANOVA that showed all the 7 features differed significantly from each other for RKS classifier except MSE and L2-4 spectral features. C: RF had an accuracy of 93.9% and a precision of 93.9%. RKS has a higher accuracy (97.3%) and precision (97.6%). D: A nonlinear dimensionality reduction using t-distributed stochastic neighbor embedding (t-SNE) showed that ictal (colored dots) spectral and MSE clusters were distinct from that of the interictal (beige dots). We also noted clustering within the ictal data and these distinct clusters (different colored dots) were because of the different seizure types (black-ES, green-FAS, red-FIAS and blue-FBTCS). Graphs E and F represent receiver operating characteristic curves (ROC) of performance of RF and RKS respectively. Both ROC curves show good separation with RF having an AUC of 0.94 and RKS with an AUC of 0.96.

Figure 4:
  • Download figure
  • Open in new tab
Figure 4:

Performance (minimum and maximum) of the random forest (RF) and random kitchen sink (RKS) classifiers across the 500 iterations are enumerated. AC-accuracy; Pr-precision; Sn-sensitivity; F-f measure; FP-false positive; FN-false negative; TN-true negative; TP-true positive.

After establishing the relevance of the seven features in classifying seizures and the interictal data, the seven-dimensional data was visualized as a two-dimensional map using t-distributed stochastic neighbor embedding (t-SNE) algorithm. The 2-D map of the features was plotted using t-SNE with Mahalanobis distance metric (Fig 3D). It can be observed that the DWT RWE and MSE clusters during seizures were distinct from the interictal DWT RWE and MSE, thus strengthening the probability of correct classification of thalamic states as seizure or inter-ictal.

Overall, these results demonstrate that features extracted in the time and spectral domain from the thalamic LFPs can be used to classify seizures and interictal states in focal epilepsy.

5 DISCUSSION

For the past two decades, there has been a significant increase in the efforts at developing seizure detection classifiers, nearly all of which were recordings from the cortical brain structures. However not always is a clear cortical focus evident, as in the case of cryptogenic epilepsies. There is a paradigm shift in understanding epilepsy as a focal disorder to one of a network disorders. Hence, targeting key structural substrates in such network disorders can help reduce the risk of having a seizure or prevent the seizure from spreading to other parts of the brain. This becomes increasingly relevant in drug resistant MRI negative focal epilepsies. Hence it is pertinent to use human electrophysiological signals from subcortical structures to detect seizures states, particularly the human thalamus. Current thalamic DBS therapy administers continuous stimulation and has only as recently as in 2017 been approved by the U.S. Food and Drug Administration (FDA) as an add-on therapy for epilepsy. By this time, the closed-loop neuromodulation RNS system was already in clinical use for 5 years (approved in 2012). RNS unlike DBS, delivers stimulation when it detects the beginnings of seizure like activity but this is limited to the cortical level. DBS suffers the limitation of being an open loop stimulation given either continuously or in cycles. Preliminary attempts at closing this loop have shown promising results, with patients not reporting the untowardly adverse effects on mood, memory or behavior as reported in long-term DBS therapy. However, for effective detection of seizures in the thalamus, the brain computer interface as the one in the RNS detection system, should rely on more accurate detection algorithms. Hence in this study we have demonstrated how machine learning classifiers can segregate frequency specific power spectral changes in the thalamus occurring during early seizure from baseline interictal states. Machine learning algorithms have been at the forefront as they provided higher accuracy in detecting seizures while minimizing the false positive rate. Using supervised machine learning tools, we demonstrated the feasibility of classifying seizures and interictal states from LFP recordings from the ANT. The performance metrics for the learning algorithms were comparable to the existing seizure classifiers[11][43], although the notable finding in our study was the demonstration of seizure detection outside the seizure onset region. Currently, detection algorithms from non-brain signals continue to have a poor sensitivity ranging between 57-64% for wearable electrocardiography (ECG) and 33% for wearable photoplethysmography sensors monitoring pulse rate variability[44][45]. Among the brain-signals, multi-channel scalp EEG data classifiers have performed better with an average accuracy of 99.32%, the sensitivity of 99.41%, and specificity of 95.25%[10][9]. Most scalp EEG based detection studies had sensitivity between 83%-96%, accuracy between 84%-100%, and false detection rate of as low as 0.15-0.17 events/hour[11][10]. Most invasive EEG studies implementing classifiers to detect seizures from the seizure onset zone had sensitivity between 86%-100%, accuracy between 70% and 100%, and false detection rate of as low as 0 events/hour[11][43]. Comparable to these, our thalamic based detections performed relatively well in detecting seizures among both the random forest (sensitivity 92.8%, accuracy 92% and false-positive 7.03) and random kitchen sink classifiers (sensitivity 94.3%, accuracy 95% and false-positive 4.14).

5.2 The emergence of theta rhythm in the ANT during seizures

Although multiple spectral changes characterized the thalamic ictal state, the emergence of theta band was significantly prominent and sustained for seizures that remained focal. Our findings are in agreement with recent studies that demonstrated increased power in lower frequencies in the ANT at the seizure onset[46]. Vertes et al. demonstrated the presence of rhythmic burst firing of neurons in the ANT that was synchronous with hippocampal theta rhythm, and the rhythm resonated within the Papez circuit (including medial septum hippocampus and ANT)[47]. Prior studies have demonstrated that theta rhythm is associated with increased seizure threshold, is anti ictogenic, and synchronization in theta rhythm can ameliorate epileptic discharges[48][49]. Further work is necessary to establish the role of theta rhythm in seizure propagation.

5.3 Clinical implication of developing thalamic seizure detector

With the increase in multifocal and, difficult-to localize epilepsies, there is a need to develop effective neuromodulation therapies as surgical resection is often unavailable. The ANT mediates cortical-subcortical interactions between the limbic system and the brainstem. These pathways are associated with a generalization or bihemispheric propagation of convulsive seizures[50]. Thus the thalamic hub is an attractive target for modulating the distributed epileptogenic network[26][51]. Indeed stimulation of the ANT confirmed modulation of the limbic system. Furthermore, recent case studies highlighted the feasibility of the RNS system in modulating the thalamocortical nodes during seizures[52][53]. Our work is a step forward in identifying reliable seizure markers in the thalamus.

5.4 Limitations of machine learning model

In the present study, the data was trained on seizure clippings as discrete events, and the event detection was considered as a classifier and not as a prediction. Future studies should validate the findings on an extended period of EEG recordings from the thalamic subnuclei. Secondly, the features used for machine learning were limited to entropy and spectral measures. Other features like the synchronization patterns between the seizure onset zone and the thalamus are likely to influence the detection rate of seizures. Lastly, we noted that these machine learning tools were time expensive, where our data sets were trained and tested over hours. For neuromodulation based on online event detection, the algorithms need to perform faster while retaining the higher accuracy and sensitivity.

6. CONCLUSION

For closed-loop neuromodulation therapies, seizure detection algorithms are often developed by extracting features from the LFPs recorded from the seizure onset zone. In the present proof-of-concept study, we demonstrated that focal onset seizures could be detected in the thalamus-a subcortical structure that is outside the epileptogenic cortex. Using two supervised machine learning algorithms, we demonstrated the feasibility of classifying seizures from other interictal states of vigilance (awake, sleep) with higher accuracy (RF=92%; RKS= 95%) and sensitivity (RF=92.8%; RKS=94.3%). Overall, these results suggest that field potentials recorded from ANT can be potential biomarkers for classifying states that can be targeted for intervention.

Data Availability

Provided at reasonable request after final publicaiton of article.

CONFLICT OF INTEREST

SP has served as a paid consultant for NeuroPace©, Inc. but declares no targeted funding or compensation for this study. None of the authors share any competing interests.

ACKNOWLEDGMENTS

ET, GC, and SP would like to acknowledge the continuous support from the USA National Science Foundation Grant (NSF RII-2 FEC OIA-1632891). SP and GC would also like to acknowledge support from NIH (1RF1MH117155-01). We would like to thank Diana Pizarro and Auriana Irannejad for helping in data organization.

Footnotes

  • ↵* shared co-authors

  • ↵# shared-senior authors

  • CONFLICT OF INTEREST: SP has served as a paid consultant for NeuroPace, Inc. but declares no targeted funding or compensation for this study. None of the authors share any competing interests.

Abbreviations

ASD
Anti-seizure drugs
DWT
Discrete Wavelet Transfer
EI
Epileptogenecity Index
ES
Electrographic Seizures
FAS
Focal Onset Aware Seizures
FBTCS
Focal to bilateral tonic-clonic seizures
FIAS
Focal onset seizures with impaired awareness
LL
Line Length
MSE
Multiscale Entropy
RF
Random Forest
RKS
Random Kitchen Sink
RWE
Relative Wavelet Energy
SOZ
seizure onset zone
SEEG
stereo-electroencephalography
TLE
Temporal lobe epilepsy
UEO
Unequivocal electrographic onset

REFERENCES

  1. [1].↵
    Sohal V S and Sun F T 2011 Responsive Neurostimulation Suppresses Synchronized Cortical Rhythms in Patients with Epilepsy Neurosurg. Clin. N. Am.
  2. [2].↵
    Sun F T and Morrell M J 2014 Closed-loop Neurostimulation: The Clinical Experience Neurotherapeutics
  3. [3].↵
    Coles L D, Patterson E E, Sheffield W D, Mavoori J, Higgins J, Michael B, Leyde K, Cloyd J C, Litt B, Vite C and Worrell G A 2013 Feasibility study of a caregiver seizure alert system in canine epilepsy Epilepsy Res.
  4. [4].↵
    Karoly P J, Ung H, Grayden D B, Kuhlmann L, Leyde K, Cook M J and Freestone D R 2017 The circadian profile of epilepsy improves seizure forecasting Brain
  5. [5].↵
    Hunyadi B, Siekierska A, Sourbron J, Copmans D and de Witte P A M 2017 Automated analysis of brain activity for seizure detection in zebrafish models of epilepsy J. Neurosci. Methods
  6. [6].↵
    Andrade P, Paananen T, Ciszek R, Lapinlampi N and Pitkänen A 2018 Algorithm for automatic detection of spontaneous seizures in rats with post-traumatic epilepsy J. Neurosci. Methods
  7. [7].↵
    Beniczky S, Conradsen I, Henning O, Fabricius M and Wolf P 2018 Automated real-time detection of tonic-clonic seizures using a wearable EMG device Neurology
  8. [8].↵
    Jeppesen J, Beniczky S, Johansen P, Sidenius P and Fuglsang-Frederiksen A 2015 Detection of epileptic seizures with a modified heart rate variability algorithm based on Lorenz plot Seizure
  9. [9].↵
    Baumgartner C and Koren J P 2018 Seizure detection using scalp-EEG Epilepsia
  10. [10].↵
    Ramgopal S, Thome-Souza S, Jackson M, Kadish N E, Sánchez Fernández I, Klehm J, Bosl W, Reinsberger C, Schachter S and Loddenkemper T 2014 Seizure detection, seizure prediction, and closed-loop warning systems in epilepsy Epilepsy Behav.
  11. [11].↵
    Logesparan L, Casson A J and Rodriguez-Villegas E 2012 Optimal features for online seizure detection Med. Biol. Eng. Comput.
  12. [12].↵
    Muhlhofer W, Tan Y L, Mueller S G and Knowlton R 2017 MRI-negative temporal lobe epilepsy—What do we know? Epilepsia
  13. [13].↵
    Hwang K, Bertolero M A, Liu W B and D’Esposito M 2017 The human thalamus is an integrative hub for functional brain networks J. Neurosci.
  14. [14].↵
    Turski W A, Cavalheiro E A, Schwarz M, Czuczwar S J, Kleinrok Z and Turski L 1983 Limbic seizures produced by pilocarpine in rats: Behavioural, electroencephalographic and neuropathological study Behav. Brain Res.
  15. [15].↵
    Feng L, Motelow J E, Ma C, Biche W, McCafferty C, Smith N, Liu M, Zhan Q, Jia R, Xiao B, Duque A and Blumenfeld H 2017 Seizures and sleep in the thalamus: Focal limbic seizures show divergent activity patterns in different thalamic nuclei J. Neurosci.
  16. [16].↵
    Sloan D M, Zhang D X and Bertram E H 2011 Increased GABAergic inhibition in the midline thalamus affects signaling and seizure spread in the hippocampus-prefrontal cortex pathway Epilepsia
  17. [17].↵
    Takebayashi S, Hashizume K, Tanaka T and Hodozuka A 2007 The effect of electrical stimulation and lesioning of the anterior thalamic nucleus on kainic acid-induced focal cortical seizure status in rats Epilepsia
  18. [18].↵
    Paz J T, Davidson T J, Frechette E S, Delord B, Parada I, Peng K, Deisseroth K and Huguenard J R 2013 Closed-loop optogenetic control of thalamus as a tool for interrupting seizures after cortical injury Nat. Neurosci.
  19. [19].↵
    Child N D and Benarroch E E 2013 Anterior nucleus of the thalamus:Functional organization and clinical implications Neurology
  20. [20].↵
    Guye M, Régis J, Tamura M, Wendling F, Gonigal A M, Chauvel P and Bartolomei F 2006 The role of corticothalamic coupling in human temporal lobe epilepsy Brain
  21. [21].↵
    Gent T C, Bandarabadi M, Herrera C G and Adamantidis A R 2018 Thalamic dual control of sleep and wakefulness Nat. Neurosci.
  22. [22].↵
    Redinbaugh M J, Phillips J M, Kambi N A, Mohanta S, Andryk S, Dooley G L, Afrasiabi M, Raz A and Saalmann Y B 2020 Thalamus Modulates Consciousness via Layer-Specific Control of Cortex Neuron
  23. [23].↵
    Jones E G 2001 The thalamic matrix and thalamocortical synchrony Trends Neurosci.
  24. [24].↵
    Miskovic V, MacDonald K J, Rhodes L J and Cote K A 2019 Changes in EEG multiscale entropy and power-law frequency scaling during the human sleep cycle Hum. Brain Mapp.
  25. [25].↵
    Schiff N D, Shah S A, Hudson A E, Nauvel T, Kalik S F and Purpura K P 2013 Gating of attentional effort through the central thalamus J. Neurophysiol.
  26. [26].↵
    Chaitanya G, Romeo A K, Ilyas A, Irannejad A, Toth E, Elsayed G, Bentley J N, Riley K O and Pati S 2020 Robot-assisted stereoelectroencephalography exploration of the limbic thalamus in human focal epilepsy: implantation technique and complications in the first 24 patients Neurosurg. Focus
  27. [27].↵
    Pizarro D, Ilyas A, Chaitanya G, Toth E, Irannejad A, Romeo A, Riley K O, Iasemidis L and Pati S 2019 Spectral organization of focal seizures within the thalamotemporal network Ann. Clin. Transl. Neurol.
  28. [28].↵
    Jenkinson M, Bannister P, Brady M and Smith S 2002 Improved optimization for the robust and accurate linear registration and motion correction of brain images Neuroimage
  29. [29].↵
    Horn A, Li N, Dembek T A, Kappel A, Boulay C, Ewert S, Tietze A, Husch A, Perera T, Neumann W J, Reisert M, Si H, Oostenveld R, Rorden C, Yeh F C, Fang Q, Herrington T M, Vorwerk J and Kühn A A 2019 Lead-DBS v2: Towards a comprehensive pipeline for deep brain stimulation imaging Neuroimage
  30. [30].↵
    Blenkmann A O, Phillips H N, Princich J P, Rowe J B, Bekinschtein T A, Muravchik C H and Kochen S 2017 Ielectrodes: A comprehensive open-source toolbox for depth and subdural grid electrode localization Front. Neuroinform.
  31. [31].↵
    Krauth A, Blanc R, Poveda A, Jeanmonod D, Morel A and Székely G 2010 A mean three-dimensional atlas of the human thalamus: Generation from multiple histological data Neuroimage
  32. [32].↵
    Fisher R S, Cross J H, French J A, Higurashi N, Hirsch E, Jansen F E, Lagae L, Moshé S L, Peltola J, Roulet Perez E, Scheffer I E and Zuberi S M 2017 Operational classification of seizure types by the International League Against Epilepsy: Position Paper of the ILAE Commission for Classification and Terminology Epilepsia
  33. [33].↵
    Esteller R, Echauz J, Tcheng T, Litt B and Pless B 2001 Line length: An efficient feature for seizure onset detection Annu. Int. Conf. IEEE Eng. Med. Biol.
  34. [34].↵
    Chen D, Wan S, Xiang J and Bao F S 2017 A high-performance seizure detection algorithm based on Discrete Wavelet Transform (DWT) and EEG PLoS One
  35. [35].↵
    Ursino M, Magosso E, Gardella E, Rubboli G and Tassinari C A 2004 A wavelet based analysis of energy redistribution in scalp EEG during epileptic seizures Annual International Conference of the IEEE Engineering in Medicine and Biology - Proceedings
  36. [36].↵
    Kamboh A M, Raetz M, Oweiss K G and Mason A 2007 Area-power efficient VLSI implementation of multichannel DWT for data compression in implantable neuroprosthetics IEEE Trans. Biomed. Circuits Syst.
  37. [37].↵
    Narasimhan S, Chiel H J and Bhunia S 2011 Ultra-low-power and robust digital-signal-processing hardware for implantable neural interface microsystems IEEE Transactions on Biomedical Circuits and Systems
  38. [38].↵
    Breiman L 2001 Random forests Mach. Learn.
  39. [39].↵
    Rahimi A and Recht B 2009 Weighted sums of random kitchen sinks: Replacing minimization with randomization in learning Advances in Neural Information Processing Systems 21 - Proceedings of the 2008 Conference
  40. [40].↵
    Altmann A, Tolosi L, Sander O and Lengauer T 2010 Permutation importance: A corrected feature importance measure Bioinformatics
  41. [41].↵
    Tacchetti A, Mallapragada P K, Rosasco L and Santoro M 2013 Gurls: A least squares library for supervised learning J. Mach. Learn. Res.
  42. [42].↵
    Gámiz M L 2011 Applied nonparametric statistics in reliability Springer Ser. Reliab. Eng.
  43. [43].↵
    Baldassano S N, Brinkmann B H, Ung H, Blevins T, Conrad E C, Leyde K, Cook M J, Khambhati A N, Wagenaar J B, Worrell G A and Litt B 2017 Crowdsourcing seizure detection: Algorithm development and validation on human implanted device recordings Brain
  44. [44].↵
    Vandecasteele K, De Cooman T, Gu Y, Cleeren E, Claes K, Van Paesschen W, Van Huffel S and Hunyadi B 2017 Automated epileptic seizure detection based on wearable ECG and PPG in a hospital environment Sensors (Switzerland)
  45. [45].↵
    Escobar Cruz N, Solarte J and Gonzalez-Vargas A 2018 Automated Epileptic Seizure Detection System Based on a Wearable Prototype and Cloud Computing to Assist People with Epilepsy Communications in Computer and Information Science
  46. [46].↵
    Sherdil A, Coizet V, Pernet-Gallay K, David O, Chabardès S and Piallat B 2019 Implication of Anterior Nucleus of the Thalamus in Mesial Temporal Lobe Seizures Neuroscience
  47. [47].↵
    Vertes R P, Albo Z and Viana Di Prisco G 2001 Theta-rhythmically firing neurons in the anterior thalamus: Implications for mnemonic functions of Papez’s circuit Neuroscience
  48. [48].↵
    Colom L V., García-Hernández A, Castañeda M T, Perez-Cordova M G and Garrido-Sanabria E R 2006 Septo-hippocampal networks in chronically epileptic rats: Potential antiepileptic effects of theta rhythm generation J. Neurophysiol.
  49. [49].↵
    Kitchigina V F and Butuzova M V. 2009 Theta activity of septal neurons during different epileptic phases: The same frequency but different significance? Exp. Neurol.
  50. [50].↵
    Takebayashi S, Hashizume K, Tanaka T and Hodozuka A 2007 Anti-convulsant effect of electrical stimulation and lesioning of the anterior thalamic nucleus on kainic acid-induced focal limbic seizure in rats Epilepsy Res.
  51. [51].↵
    Yu T, Wang X, Li Y, Zhang G, Worrell G, Chauvel P, Ni D, Qiao L, Liu C, Li L, Ren L and Wang Y 2018 High-frequency stimulation of anterior nucleus of thalamus desynchronizes epileptic network in humans Brain
  52. [52].↵
    Herlopian A, Cash S S, Eskandar E M, Jennings T and Cole A J 2019 Responsive neurostimulation targeting anterior thalamic nucleus in generalized epilepsy Ann. Clin. Transl. Neurol.
  53. [53].↵
    Elder C, Friedman D, Devinsky O, Doyle W and Dugan P 2019 Responsive neurostimulation targeting the anterior nucleus of the thalamus in 3 patients with treatment-resistant multifocal epilepsy Epilepsia Open
Back to top
PreviousNext
Posted September 23, 2020.
Download PDF
Data/Code
Email

Thank you for your interest in spreading the word about medRxiv.

NOTE: Your email address is requested solely to identify you as the sender of this article.

Enter multiple addresses on separate lines or separate them with commas.
Reliable detection of focal-onset seizures in the human anterior nucleus of the thalamus using non-linear machine learning
(Your Name) has forwarded a page to you from medRxiv
(Your Name) thought you would like to see this page from the medRxiv website.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Share
Reliable detection of focal-onset seizures in the human anterior nucleus of the thalamus using non-linear machine learning
Emilia Toth, Sachin S Kumar, Ganne Chaitanya, Kristen Riley, Karthi Balasubramanian, Sandipan Pati
medRxiv 2020.09.18.20196857; doi: https://doi.org/10.1101/2020.09.18.20196857
Twitter logo Facebook logo LinkedIn logo Mendeley logo
Citation Tools
Reliable detection of focal-onset seizures in the human anterior nucleus of the thalamus using non-linear machine learning
Emilia Toth, Sachin S Kumar, Ganne Chaitanya, Kristen Riley, Karthi Balasubramanian, Sandipan Pati
medRxiv 2020.09.18.20196857; doi: https://doi.org/10.1101/2020.09.18.20196857

Citation Manager Formats

  • BibTeX
  • Bookends
  • EasyBib
  • EndNote (tagged)
  • EndNote 8 (xml)
  • Medlars
  • Mendeley
  • Papers
  • RefWorks Tagged
  • Ref Manager
  • RIS
  • Zotero
  • Tweet Widget
  • Facebook Like
  • Google Plus One

Subject Area

  • Neurology
Subject Areas
All Articles
  • Addiction Medicine (349)
  • Allergy and Immunology (668)
  • Allergy and Immunology (668)
  • Anesthesia (181)
  • Cardiovascular Medicine (2648)
  • Dentistry and Oral Medicine (316)
  • Dermatology (223)
  • Emergency Medicine (399)
  • Endocrinology (including Diabetes Mellitus and Metabolic Disease) (942)
  • Epidemiology (12228)
  • Forensic Medicine (10)
  • Gastroenterology (759)
  • Genetic and Genomic Medicine (4103)
  • Geriatric Medicine (387)
  • Health Economics (680)
  • Health Informatics (2657)
  • Health Policy (1005)
  • Health Systems and Quality Improvement (985)
  • Hematology (363)
  • HIV/AIDS (851)
  • Infectious Diseases (except HIV/AIDS) (13695)
  • Intensive Care and Critical Care Medicine (797)
  • Medical Education (399)
  • Medical Ethics (109)
  • Nephrology (436)
  • Neurology (3882)
  • Nursing (209)
  • Nutrition (577)
  • Obstetrics and Gynecology (739)
  • Occupational and Environmental Health (695)
  • Oncology (2030)
  • Ophthalmology (585)
  • Orthopedics (240)
  • Otolaryngology (306)
  • Pain Medicine (250)
  • Palliative Medicine (75)
  • Pathology (473)
  • Pediatrics (1115)
  • Pharmacology and Therapeutics (466)
  • Primary Care Research (452)
  • Psychiatry and Clinical Psychology (3432)
  • Public and Global Health (6527)
  • Radiology and Imaging (1403)
  • Rehabilitation Medicine and Physical Therapy (814)
  • Respiratory Medicine (871)
  • Rheumatology (409)
  • Sexual and Reproductive Health (410)
  • Sports Medicine (342)
  • Surgery (448)
  • Toxicology (53)
  • Transplantation (185)
  • Urology (165)