Abstract
Clinical diagnosis of epilepsy depends heavily on the detection of interictal epileptiform discharges (IEDs) from scalp electroencephalographic (EEG) signals, which by purely visual means is far from straightforward. Here, we introduce a simple signal analysis procedure based on scalp EEG zero-crossing patterns which can extract the spatiotemporal structure of scalp voltage fluctuations. We analyzed simultaneous scalp and intracranial EEG recordings from patients with pharmacoresistant temporal lobe epilepsy. Our data show that a large proportion of intracranial IEDs manifest only as subtle, low-amplitude waveforms below scalp EEG background and could, therefore, not be detected visually. We found that scalp zero-crossing patterns allow detection of these intracranial IEDs on a single-trial level with millisecond temporal precision and including some mesial temporal discharges that do not propagate to the neocortex. Applied to an independent dataset, our method discriminated accurately between patients with epilepsy and normal subjects, confirming its practical applicability.
Subject terms: Biomarkers, Epilepsy, Diagnostic markers
Introduction
Scalp electroencephalography (EEG) is performed routinely during the clinical workup of focal epilepsy1–3, also providing means for non-invasive localization of the epileptic focus4 to guide surgical treatment of pharmacoresistant patients5. Despite its clinical importance, the review of scalp EEG recordings requires expert readers, is time-consuming, expensive, and has not improved over many decades. Visual identification of interictal epileptiform discharges (IEDs), consisting mostly of spikes and sharp waves3, is hampered by limited signal-to-noise ratio (SNR) and interference from complex electrical artifacts. In selected patients, intracranial EEG recordings (iEEG) are performed using invasive depth or subdural electrodes6,7. This procedure radically improves SNR but increases the cost, the delay to diagnosis, and the risk of complications. Therefore, improved scalp EEG-based diagnostic methods are an area of considerable interest8,9.
IEDs are more prominent (Fig. 1a) and up to an order of magnitude more frequent in iEEG recordings than in concurrent scalp EEG recordings. The difference results from their incomplete propagation to scalp recording sites10–14 which may depend on the extent of neocortical (NC) areas involved15. Diagnostic sensitivity is therefore limited and a single scalp EEG recording may not be sufficient for unequivocal detection of IED presence16,17. It has been suggested that discharges restricted to deep structures such as the mesial temporal (MT) lobe, may not be spontaneously visible in the scalp EEG at the single-trial level due to the depth and largely closed-field characteristics of their generators18. The ability to detect more subtle signatures of intracranial discharges from the scalp EEG would not only provide a considerable clinical advantage in the context of epilepsy but could also prove useful in the diagnostic workup of neurodegenerative disorders19. While multi-feature automatic signal classification has been used in this context in patients with temporal lobe epilepsy (TLE)20, most such techniques are plagued by poor performance and high false-positive rates9.
In this study, we develop and validate a new method for the detection of intracranial IEDs from scalp EEG recordings basing on a simple procedure of scalp EEG zero-crossing analysis21,22. This approach maintains relevant signal features23 while reducing low-frequency noise and effectively detrending the signal24–27. After developing the technique on a dataset of long-term simultaneous scalp and intracranial recordings we confirm its practical clinical applicability on an independent scalp EEG dataset. Our results suggest that scalp zero-crossing patterns extract the spatiotemporal structure of subtle scalp voltage fluctuations correlated with intracranial IEDs and provide a powerful and computationally efficient biomarker to assess scalp EEG signals with improved artifact robustness.
Methods
Subjects and recording procedures
Scalp EEG and iEEG recordings of two groups of subjects were studied retrospectively:
Group A comprised 16 TLE subjects hospitalized in the Freiburg Epilepsy Center between 2003 and 2009 (8 male and 8 female, aged 11–63 years, mean 28 years) selected from the Epilepsiae database28 according to the following criteria: (1) electrophysiologically confirmed presence of an epileptic focus in the temporal lobe, (2) availability of a 72 h continuous segment of dual iEEG and scalp EEG recordings with (3) full 10–20 scalp electrode coverage + T1/T2 (FT9/FT10) electrodes. Table 1 summarizes their clinical and demographic characteristics.
Table 1.
Patient no | Gender | Age (yr) | Age of epilepsy onset (yr) | Seizure types | iEEG-based focus location | Etiology | Operated location | Post-operative outcome |
---|---|---|---|---|---|---|---|---|
1 | M | 18 | 11 | SP/CP | Left NC/bilateral basal TL | FCD left | Left MT | Ia (24 m) |
2 | M | 15 | 6 | SP | Right basal TL | FCD right (MR (−)) | Right TL | Ia (3 m) |
3 | M | 42 | 16 | SP/CP | Right NC (not iEEG confirmed) | FCD right | Right TL | Ia (3 m) |
4 | M | 23 | 18 | N/A | Left MT | FCD left (histology N/A) | Left TL | Ib (24 m) |
5 | F | 22 | 18 | SP | Left NC | FCD left | Left TL (pole) | IIa (36 m) |
6 | F | 47 | 0 | SP/CP/SG | Right MT/right NC | FCD + HS right | Right TL | IIIa (12 m) |
7 | F | 32 | 1 | CP | Left MT | FCD + HS left | Left TL | Ia (3 m) |
8 | M | 17 | 1 | SP/SG/CP | Left MT/left NC | FCD + HS left | Left TL | Ia (24 m) |
9 | M | 13 | 0 | SP/CP | Left MT/left NC | FCD + HS left | Left TL | Ia (24 m) |
10 | F | 27 | 10 | SP/SG | Left TL |
FCD + HS left (histology N/A) |
2 × left TL | Ib (3 m) |
11 | M | 21 | 5 | SP/CP | Right NC/right MT | FCD + HS right (MRI negative) | Right TL | Ia (12 m) |
12 | F | 11 | 3 | CP | Right MT |
FCD + HS right (histology N/A) |
Right TL | N/A |
13 | M | 34 | 10 | SP/CP | Right MT | FCD + HS right | Right MT | Ia (12 m) |
14 | F | 63 | 30 | CP/SG | Left MT/right TL | Cryptogenic, MRI (−) | Not operated | N/A |
15 | F | 48 | 22 | SP/CP | Bilateral TL | Cryptogenic, MRI (−) | Not operated | N/A |
16 | F | 14 | 13 | CP | Left TL/left NC |
Cryptogenic, MRI (−) (histology N/A) |
Operated (details N/A) | Ia (3 m) |
M male, F female, seizure types: SP focal onset with preserved awareness (“simple partial”), CP focal onset with impaired awareness (“complex partial”), SG focal to bilateral tonic–clonic (“secondarily generalized”), MT mesial temporal, NC neocortical, TL temporal lobe, N/A data not available. Post-operative outcome according to Engel classification.
The signals were divided into non-overlapping epochs of 60 s length. Analysis was performed over an average of 64.8 h of recording per subject (3889 epochs, range 33.9–72 h, 2037–4320 epochs) after rejecting epochs occurring within ± 30 min of annotated seizures. 25% of these epochs, chosen at random using stratified sampling to preserve each subject’s IED frequency distribution, were reserved for the evaluation of zero-crossing pattern-based IED detection.
Group B comprised 46 patients (11 male and 35 female, aged 19–68 years, mean 37 years, 19 with the diagnosis of TLE and 27 nonepileptic controls) hospitalized between 2009 and 2013 in the Department of Neurology and Epileptology, Medical Center for Postgraduate Education, Warsaw, Poland. TLE subjects were selected based on the following criteria: (1) clinically certain presence of an epileptic focus in the temporal lobe (based on seizure semiology, EEG, and neuroimaging findings), (2) availability of a standard 20-min scalp EEG recording with (3) full 10–20 scalp electrode coverage. We have studied these recordings previously with different methods27 and the current Group B was obtained by the rejection of subjects with frontal lobe epilepsy from the dataset (see Pyrzowski et al.27 for further clinical and demographic information). The final 5 min (eyes closed, post-hyperventilation) of standard scalp EEG recordings with full 10–20 scalp electrode coverage were used for the analysis. No recording contained overt ictal electrographic activity. The review summaries of EEG recordings were converted to a 4-level scale (the “EEG-score”): (0) no abnormalities, (1) normal EEG variants, (2) non epilepsy-specific abnormalities (including background slowing), and (3) epilepsy-specific abnormalities (IEDs)27.
All data were collected during a routine clinical workup. All patients (or in the case of minors, their legal representatives) provided written statements of informed consent for research use of these data. Studies were approved by the Medical University of Gdańsk Independent Bioethics Commission for Research and the relevant bioethics commission in the Epilepsiae project (Ethik-Kommission der Albert-Ludwigs-Universität Freiburg). Data anonymization and analysis were performed in accordance with approved guidelines, and we present no information permitting the identification of subjects. All data analysis was performed in MATLAB (Mathworks Inc., 2017).
Detection of IEDs from intracranial signals (Group A)
Signals from each intracranial channel were digitally band-passed at [0.5–70 Hz] (+ 50 Hz notch) and put into the common-average montage (with all intracranial electrodes taken into the average). Intracranial IEDs were detected automatically using a previously published algorithm29 with the output probability threshold fixed at 0.7. Average detection precision in a uniformly random sample of 300 detections was found to be 72% as assessed by two independent readers (A.F. and J.P., Cohen's κ = 0.63) which indicates acceptable performance30. It must, however, be noted that the identity of events detected with any large-scale automatic analysis must be treated with caution, especially in channels with low detection rates. From n = 1155 distinct iEEG channels analyzed (with a total of ~ 3*106 detections) 26% had > 1 detection per minute and 81% with > 1 detection per hour.
An IED detected in a particular intracranial channel was considered to be “propagated” if it followed an IED of another channel by less than 200 ms (the “late propagation” window proposed by Alarcon et al.10). This allowed to group detections in close temporal proximity into clusters. Non-propagating MT IEDs were defined as those contained in a propagation cluster that did not extend beyond MT. This classification was naturally limited by the selective sampling of intracranial space and the inability to detect propagation in form of slow waves (as in the right column of Fig. 4b, channels BRB1-BRB2).
Detection of zero-crossings from scalp signals (Groups A and B)
All scalp signals were digitally band-passed at 3–13 Hz and put into the longitudinal bipolar montage (Fig. 1c1). Where T1/T2 electrodes were not available (Group B), the derivations F7–T1/T1–T3 and F8–T2/T2–T4 were approximated by F7–T3 and F8–T4, respectively. Zero-crossings (crossings of the isoelectric line from electro-positive to electro-negative) were identified in each channel by linear interpolation of the signal (Fig. 1c2) to reveal zero-crossing patterns (Fig. 1c3).
Derivation and application of zero-crossing templates
The spatio-temporal structure of zero-crossing patterns associated with intracranially detected IEDs was summarized in form of zero-crossing templates (Fig. 2a, for details see Mathematical Appendix) representing the log-likelihood of observing a zero-crossing in a given scalp channel at a given time relative to the intracranial IED peak. One intracranial “source” channel in which IED detection was performed would give rise to exactly one template (Fig. 2c1–c2).
Any template could then be used in conjunction with an unknown scalp signal to assess the likelihood of the presence of an intracranial IED at a given point of time, against a null hypothesis that the momentary zero-crossings pattern is random (Fig. 3a, for details see Mathematical Appendix). The resultant running “likelihood score” was analyzed for its ability to detect IEDs in the intracranial signal (Fig. 3a4) through averaging and estimation of SNR (see Fig. 5a and the Mathematical Appendix).
Results
Intracranial IEDs give rise to reproducible scalp EEG zero-crossing patterns
Simultaneous recordings confirmed10,15 that most IEDs recorded from iEEG electrodes were not evident in the scalp EEG. However, concurrent scalp signals often revealed small waves time-locked to iEEG discharges (Fig. 1b). They were evident as subtle “notching” (Fig. 1b1) or more or less pointed waveforms in the theta-alpha frequency range (Fig. 1b2–b4) and were typically variable from trial to trial (Fig. 1b2). Without reference to an intracranial signal, however, individual scalp waveforms would likely not be interpreted as IEDs especially if obscured by artifacts (Fig. 1b3) or by superimposed background rhythms (Fig. 1b4). As observed previously13,18, averaging scalp EEG signals revealed a consistent low-amplitude waveform (Fig. 1b “avg.”), even for non-propagating IEDs originating from MT structures (data not shown).
Scalp signals were transformed to multi-channel time sequences of successive zero-crossings (Fig. 1c, Fig. 2a1–a2). We observed that intracranial IED-triggered scalp zero-crossing patterns captured stereotypical, amplitude-independent phase relationships that were reproducible on a single-trial level. In 79% (n = 911) iEEG channels, detection-triggered scalp zero-crossing distribution (Fig. 2a3) differed significantly from the null distribution (Fig. 2a4) indicating the stability and reproducibility of the scalp zero-crossing pattern (p < 0.05, chi-squared goodness-of-fit test with Bonferroni correction). The intracranial location of these channels is shown in Fig. 2b.
For iEEG channels that were associated with significant zero-crossing patterns the detection-triggered and null zero-crossing distributions were then combined to obtain templates (Fig. 2c, see Mathematical Appendix). Figure 2c1,c2, show representative templates derived from an NC and MT channel, respectively (Fig. 2c2 for non-propagating IEDs). Patterns of high/low likelihood were typically present in lateral-temporal scalp electrode chains ipsilaterally to the analyzed iEEG channel.
We examined the topographic consistency of this phenomenon by separating MT and NC iEEG channels. The proportion of channels associated with significant scalp zero-crossing patterns was high for both MT (91%) and NC (77%) electrodes (Fig. 2c3, dark blue and light blue) and was clearly decreased after restricting the analysis to IEDs that did not propagate from MT to NC (16%, Fig. 2c3, purple bar). Many channels with significant scalp zero-crossing patterns were associated with relatively low IED detection rates (< 1 event/min, 65% of NC channels, 75% and 80% for propagating and nonpropagating IEDs in MT channels respectively, dashed portions of colored bars in Fig. 2c3) in which cases the identity of the detected events was less certain. Only in the case of nonpropagating IEDs some MT channels with high detection rates failed to produce significant zero-crossing patterns.
Single-trial detection of intracranial IEDs from the scalp EEG
Templates were then used to attempt detection of intracranial IEDs from the zero-crossing patterns of the scalp EEG through the calculation of a likelihood score—a readout signal with peaks at the moments of most likely intracranial IED occurrence (Fig. 3a1-a3, see Mathematical Appendix). This served not only to assess the overall performance of the method but also to confirm the IED-specificity of a given template/zero-crossing pattern. All analysis was performed on reserved recording segments that were not previously used for template derivation. Detection using a template (derived from a “source” channel) in a “queried” iEEG channel was evaluated by averaging the intracranial signal around 103 highest peaks of the respective likelihood score (Fig. 3a3). All possible source-queried channel combinations were tested. In the case of cross-patient combinations (when the source channel used for template derivation belonged to a different patient than the queried channel) this can be considered as out-of-sample validation as any individual template was derived using the data from only a single subject.
Standardized iEEG waveforms extracted from the queried channel showed IED-like morphology with a significant degree of overlap for a proportion of both within- and cross-patient combinations (examples in Fig. 3b1–b2, obtained using templates in Fig. 2c1–c2, respectively). After averaging, the peak-to-peak amplitude of the resultant waveform (Z*) was used as a measure of detection efficiency and precision (Fig. 3b3, range indicated by the red arrow) since false or temporally imprecise detection would lead to its flattening through mutual cancellation effects.
To focus the subsequent analysis on the most reliable detection, a threshold was set at Z* = 2.35 (99.95th percentile of observed Z* values) with n = 558 source-queried channel combinations satisfying this criterion. Out of these, n = 502 combinations showed consistent spike-like shapes of the averaged waveforms (Fig. 3b3), supporting the IED-specificity of a set of n = 101 distinct templates (which were also used throughout the subsequent sections). Within-patient (n = 299) including same-channel (n = 34) combinations corresponded to marginally higher Z* values (p < 0.05, Kruskal–Wallis test with multiple comparisons, Fig. 3b4).
The remaining 10% (n = 56) combinations were found to reflect detections of rhythmic intracranial theta/alpha activity instead of IEDs (Fig. 3b5) and were easily identifiable in the distribution of the ratio of the averaged waveform’s power in the [5–14 Hz] band to the square of Z* (Fig. 3b6, arrow). The associated n = 34 templates did not facilitate detection of IEDs in other channels and were rejected from further analysis.
From n = 55 distinct queried channels identified in all combinations 18% (n = 10) were located in MT structures. 9 out of 16 subjects contributed to at least one cross-patient combination while another 3 contributed templates suitable only for within-patient detection (Fig. 4a). Therefore, while cross-patient combinations comprised 40% of combinations (n = 203), they were confined to only around half of the studied population (which was not found to be etiology-specific, p = 0.33, Kruskal–Wallis test).
These results support the possible generalization of zero-crossing pattern-based IED detection between different subjects with TLE. We observed that in different subjects similar scalp zero-crossing patterns tended to be associated with discharges propagating over homologous anatomical pathways. Heterogeneous intracranial electrode setups, however, make it difficult to rigorously study this association. Figure 4b shows three examples of homologous intracranial IED propagation in three patients with different TLE etiologies where all discharges were detected using the same template. While for individual events detected using templates we consistently found a correlation between single-trial simultaneous scalp EEG and iEEG amplitudes (mean r = 0.42, Fig. 4c, red dotted line) we also observed significant trial-to-trial variability (Fig. 4c, red arrow). This contrasted the relative stability of the zero-crossing patterns whose associated likelihood scores, as explained above, were always within the top 0.05% of observed values and displayed very weak correlation with simultaneous voltage amplitudes (mean r = 0.17/r = 0.12 for correlations with iEEG/scalp amplitudes, respectively).
Single-trail analysis of events detected as zero-crossing patterns, also allowed to estimate average detection specificity (~ 53%, right upper quadrant + right lower quadrant in Fig. 4c, where an approximate threshold for visual detection was set at 150% average background amplitude). The proportion of “subtle” scalp EEG discharges, detectable as zero-crossing patterns but not by visual means comprised ~ 70% of true-positives (shaded lower-right quadrant in Fig. 4c). Above-average detection performance was associated with certain template-queried channel combinations (e.g. 86% for the example in Fig. 3b1) yet with a similar proportion of “subtle” discharges (67% of true-positives resp.). These results suggest that careful application of the zero-crossing approach could, in principle, increase the yield of IED detection up to threefold compared to visual analysis alone.
Signal-to-noise ratio assessment
The known timing of IEDs detected from the iEEG signal in the queried channels allowed to express likelihood score-based detection efficiency through SNR values (Fig. 5a). While the signal averaging technique presented above (Figs. 3 and 4) focused on the temporal precision and specificity of detection, SNR is more a measure of detection sensitivity. We focused on channels with robustly detectable IEDs (n = 252 in NC and n = 45 in MT with > 1/min in validation epochs where n = 16 channels with false-positive detections of theta/alpha rhythms were rejected) and compared the highest SNR values obtainable using either likelihood scores or absolute scalp voltage as the readout variable (SNRmax, see Mathematical Appendix). Likelihood scores were obtained using n = 101 templates found effective in the signal-averaging approach discussed above. The same analysis was repeated for nonpropagating MT IEDs.
Even though some of the highest scalp voltage-related SNRmax values were found for NC discharges (up to 6.4 dB, Fig. 5b white arrows), their median value was below zero (− 1.09 dB) indicating that IEDs arising in most iEEG channels could not be detected on a single-trial level using scalp voltage amplitude alone. This was also true for MT discharges (median − 1.67 dB) consistent with the observation that only a minority of iEEG discharges can propagate sufficiently to exceed scalp EEG background which requires the involvement of (presumably extensive) NC areas15. Scalp voltage-related SNRmax values for non-propagating-MT discharges (median − 2.3 dB) were not statistically different from SNR values reported by Koessler et al.18 (p = 0.29, Wilcoxon test).
In contrast, SNRmax values related to likelihood-scores were found to be significantly higher than their scalp voltage-related counterparts (Fig. 5b, p < 0.001, Kruskal–Wallis test with multiple comparisons). A positive median likelihood-score-related SNRmax value was also the case for non-propagating MT IEDs (0.24 dB), suggesting again that such discharges may be possible to detect as zero-crossing patterns at a single-trial level. Interestingly, assessment with cross-patient templates proved highly effective and was only in rare cases outperformed by within-patient templates (black arrows) whose performance was much more variable. This finding points again to the possibility of generalization of IED-related zero-crossing patterns between patients but also reflects the larger repertoire of cross-patient templates (for 13% channels a within-patient template was not available).
External validation: epilepsy vs control classification from standard scalp EEG recordings
We next used an independent dataset of standard scalp EEG recordings to validate and test the robustness of the zero-crossing method. As in Pyrzowski et al.27 we addressed the power of discrimination between subjects with TLE (n = 19) and controls without epilepsy (n = 27). Since here intracranial data were not available for reference, we assumed that intracranial discharges are expected to occur in the majority of TLE subjects (even if not always apparent in the scalp EEG). Our approach followed from the previous observations: an appropriately chosen template, when applied to the scalp EEG of a TLE subject, renders prominent likelihood-score peaks associated with (and sometimes time-locked to) intracranial IEDs. Such peaks should, however, not be present if the analyzed recording came from a control subject for whom intracranial IED activity is generally not expected. Different templates were expected to perform variably in different subjects depending on how well IEDs in a given patient would fit the particular zero-crossing pattern.
Likelihood-scores were calculated for 5 min EEG segments obtained post-hyperventilation with eyes closed. Again we used the set of n = 101 templates found to be effective in the signal-averaging approach but this time the likelihood-score definition was adapted to the context of variable focus laterality (see “Methods”). The presence of peaks in each likelihood-score time series was assessed through a fixed percentile value of its amplitude distribution. The ability to discriminate between TLE and control subjects using this value (example in Fig. 6a) was assessed through receiver-operating-characteristic (ROC) curves (Fig. 6b,c).
Figure 6b shows ROC curves corresponding to the threshold set at the 99, 95th percentile (median area-under-curve, AUC = 0.72, range 0.25–0.93) along with a ROC curve based on the visual EEG assessment score (AUC = 0.59). The zero-crossing approach performed better than visual scalp EEG analysis in the high-sensitivity domain (possibly due to increased IED detection yield) and comparably in the high-specificity domain. Notably, the performance of likelihood score-based classification was stable with respect to the variation of the fixed threshold parameter (Fig. 6c). For the assessed set of templates, AUC was found to be significantly higher than 0.5 for all threshold values above the 80th percentile up to the extreme case of considering only the single highest peak of the likelihood score (p < 0.001, sign test with Bonferroni correction). Similar results were obtained in a subset of subjects with EEG recordings visually evaluated as normal or normal-variant (example in Fig. 6a, right panel). This indicates that the zero-crossing method may capture subtle TLE-specific inter-hemispheric EEG asymmetries.
Discussion
Basing on the study of relations between concurrent iEEG and scalp EEG signals we propose the use of the zero-crossing pattern representation of scalp EEG to detect scalp signatures of intracranial IEDs. The proposed computational method has the potential to increase the clinical value of scalp EEG in epilepsy diagnosis and was externally validated on an independent dataset of standard scalp EEG recordings. Our main findings are that: (1) Zero-crossing patterns are a reliable single-trial scalp EEG biomarker of intracranial IEDs including some apparently non-propagating MT IEDs (median likelihood score-related SNR > 0 dB). (2) Most scalp EEG waveforms associated with reproducible zero-crossing patterns are amplitude-wise below background (median scalp voltage related SNR < 0 dB). (3) Detection based on zero-crossing patterns can achieve high temporal precision, be generalized between patients as well as discriminate successfully between EEG recordings from patients with epilepsy and control subjects without the need to access iEEG even in the absence of overt scalp IEDs.
Our findings suggest that subtle low-amplitude discharges associated with a reproducible zero-crossing pattern may represent a novel pathological scalp EEG abnormality. While they certainly do not meet the conventional criteria of spikes and sharp waves used for visual EEG assessment31, their close temporal relationship to intracranial IEDs suggests they should be explored as a putatively equivalent epilepsy biomarker. In this respect, our approach is complementary to previous methods aimed at automatized detection of visually identifiable scalp IEDs8. In contrast to the use of sophisticated machine-learning approaches20 zero-crossing patterns are well-defined events with topographic distributions over the scalp. Zero-crossing analysis has previously been used in various biological contexts including epileptology24–27, sleep studies32–35, cognitive science, and neuropsychiatry36–39. Zero-crossing representations may help avoid certain artifacts of scalp EEG signals27. Clearly, transforming scalp EEG signals to zero-crossing sequences discards amplitude-related information, but has been also proven to preserve important information characterizing the underlying dynamical system23. Due to effective signal compression, this detection method can be implemented with sufficiently fast execution time to operate in real-time in a continuous-monitoring environment.
Contributions of MT sources to scalp EEG have been debated since the advent of invasive EEG recordings6,13,18. Our results challenge the view that single non-propagating intracranial discharges derived from MT sources cannot at all be detected in the scalp EEG18. While we confirmed this observation for voltage amplitudes our study suggests that scalp zero-crossing patterns associated with some of these events can be reliably identified at a single-trial level. Our analysis is, however, importantly limited by incomplete coverage of intracranial space with depth electrodes, allowing some propagation pathways to be missed altogether. As this limitation applies to all studies using iEEG data, it may be questionable to what extent can we be certain that MT IEDs are indeed nonpropagating.
A related finding is that intracranial discharges of similar amplitude yield scalp events of significantly varying amplitude, many of which are too small for visual detection. Visually identifiable scalp EEG IEDs may then be viewed as only “a tip of an iceberg” of IEDs generated in neocortical and deeper brain regions. This variability points to a crucial role of active neuronal propagation in the generation of visually identifiable IEDs while volume conduction may contribute to a high temporal fidelity observed for some propagated discharges. Both mechanisms likely play a role in the complex blend of observed scalp EEG activity.
We speculate that reproducible zero-crossing patterns may reflect homologous propagation pathways in different TLE subjects. Abnormal propagation pathways may be a significant component of epileptogenic networks—a core pathology of an epileptic brain40. Indeed, detection based on zero-crossing patterns appears to generalize between subjects and not to depend on etiology whereas “blind” application of the method to independent EEG data permitted reliable discrimination between patients with TLE and control subjects.
Other limitations of our approach include the inability to detect intracranial IED propagation in forms other than spikes (e.g. slow waves) as well as the general limitations imposed by unsupervised/semi-supervised automatic processing of large volumes of data. In particular, the proposed method needs to be further validated through systematic comparison to standard visual EEG assessment in both scalp and iEEG signals. To confirm its localizing value and specificity, the method needs also to be assessed in epileptic syndromes other than TLE (frontal lobe epilepsy, which was underrepresented in our dataset, would be of prime interest) as well as in patients with non-epileptogenic intracranial lesions. Further study is also needed to assess whether the complex information contained in individual templates permits the reconstruction of deep sources and propagation pathways. This ability to distinguish deep and superficial sources would be an important step towards automated, noninvasive localization of an epileptic focus.
In summary, the proposed method seems appropriate for retrospective or online clinical EEG monitoring. Further rigorous tests, in a clinical setting, are needed to assess its performance and the actual computational requirements.
Supplementary Information
Acknowledgements
We express our warm thanks to Vincent Navarro for stimulating discussions, to Richard Miles for invaluable linguistic corrections, to Mario Valderrama for providing his custom 3D brain visualization software and to Moo K. Chung for providing data41,42 for the background 3D brain images in Figures 1, 2 and 4.
Author contributions
J.P., J.E.LD., and M.L.V.Q. jointly conceived the study and interpreted the data. J.E.L.D. and A.F. designed and implemented automatic spike detection. A.F., M.S. and J.J. provided clinical consultations. J.J. provided data for external validation of the method. J.P. analyzed all the data and wrote the paper. All authors reviewed the manuscript.
Data availability
The dual EEG dataset analyzed during the current study (group A) is available in the Epilepsiae repository, http://www.epilepsiae.eu/. The validation dataset (Group B) is not publicly available but can become available from the corresponding author on reasonable request with the permission of JJ.
Competing interests
The authors declare no competing interests.
Footnotes
Publisher's note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
The online version contains supplementary material available at 10.1038/s41598-021-83337-3.
References
- 1.Smith S. EEG in the diagnosis, classification, and management of patients with epilepsy. J. Neurol. Neurosurg. Psychiatry. 2005;76:2–7. doi: 10.1136/jnnp.2005.069245. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Pillai J, Sperling MR. Interictal EEG and the diagnosis of epilepsy. Epilepsia. 2006;47(Suppl 1):14–22. doi: 10.1111/j.1528-1167.2006.00654.x. [DOI] [PubMed] [Google Scholar]
- 3.Noachtar S, Rémi J. The role of EEG in epilepsy: A critical review. Epilepsy Behav. EB. 2009;15:22–33. doi: 10.1016/j.yebeh.2009.02.035. [DOI] [PubMed] [Google Scholar]
- 4.Ray A, Tao JX, Hawes-Ebersole SM, Ebersole JS. Localizing value of scalp EEG spikes: A simultaneous scalp and intracranial study. Clin. Neurophysiol. Off. J. Int. Fed. Clin. Neurophysiol. 2007;118:69–79. doi: 10.1016/j.clinph.2006.09.010. [DOI] [PubMed] [Google Scholar]
- 5.Rosenow F, Lüders H. Presurgical evaluation of epilepsy. Brain J. Neurol. 2001;124:1683–1700. doi: 10.1093/brain/124.9.1683. [DOI] [PubMed] [Google Scholar]
- 6.Abraham K, Marsan CA. Patterns of cortical discharges and their relation to routine scalp electroencephalography. Electroencephalogr. Clin. Neurophysiol. 1958;10:447–461. doi: 10.1016/0013-4694(58)90006-3. [DOI] [PubMed] [Google Scholar]
- 7.Van Gompel JJ, et al. Interictal electroencephalography with subdural grid electrodes: Techniques, complications and outcomes. Neurosurgery. 2008;63:498–506. doi: 10.1227/01.NEU.0000324996.37228.F8. [DOI] [PubMed] [Google Scholar]
- 8.Wilson SB, Emerson R. Spike detection: A review and comparison of algorithms. Clin. Neurophysiol. Off. J. Int. Fed. Clin. Neurophysiol. 2002;113:1873–1881. doi: 10.1016/S1388-2457(02)00297-3. [DOI] [PubMed] [Google Scholar]
- 9.Harner R. Automatic EEG spike detection. Clin. EEG Neurosci. 2009;40:262–270. doi: 10.1177/155005940904000408. [DOI] [PubMed] [Google Scholar]
- 10.Alarcon G, et al. Intracerebral propagation of interictal activity in partial epilepsy: Implications for source localisation. J. Neurol. Neurosurg. Psychiatry. 1994;57:435–449. doi: 10.1136/jnnp.57.4.435. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Alarcon G, et al. Origin and propagation of interictal discharges in the acute electrocorticogram. Implications for pathophysiology and surgical treatment of temporal lobe epilepsy. Brain J. Neurol. 1997;120:2259–2282. doi: 10.1093/brain/120.12.2259. [DOI] [PubMed] [Google Scholar]
- 12.Torre J, et al. Generation of scalp discharges in temporal lobe epilepsy as suggested by intraoperative electrocorticographic recordings. J. Neurol. Neurosurg. Psychiatry. 1999;67:51–58. doi: 10.1136/jnnp.67.1.51. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Nayak D, et al. Characteristics of scalp electrical fields associated with deep medial temporal epileptiform discharges. Clin. Neurophysiol. Off. J. Int. Fed. Clin. Neurophysiol. 2004;115:1423–1435. doi: 10.1016/j.clinph.2004.01.009. [DOI] [PubMed] [Google Scholar]
- 14.Ramantani G, Maillard L, Koessler L. Correlation of invasive EEG and scalp EEG. Seizure. 2016;41:196–200. doi: 10.1016/j.seizure.2016.05.018. [DOI] [PubMed] [Google Scholar]
- 15.Tao JX, Ray A, Hawes-Ebersole S, Ebersole JS. Intracranial EEG substrates of scalp EEG interictal spikes. Epilepsia. 2005;46:669–676. doi: 10.1111/j.1528-1167.2005.11404.x. [DOI] [PubMed] [Google Scholar]
- 16.Goodin DS, Aminoff MJ. Does the interictal EEG have a role in the diagnosis of epilepsy? Lancet Lond. Engl. 1984;1:837–839. doi: 10.1016/S0140-6736(84)92281-5. [DOI] [PubMed] [Google Scholar]
- 17.Salinsky M, Kanter R, Dasheiff RM. Effectiveness of multiple EEGs in supporting the diagnosis of epilepsy: An operational curve. Epilepsia. 1987;28:331–334. doi: 10.1111/j.1528-1157.1987.tb03652.x. [DOI] [PubMed] [Google Scholar]
- 18.Koessler L, et al. Catching the invisible: Mesial temporal source contribution to simultaneous EEG and SEEG recordings. Brain Topogr. 2015;28:5–20. doi: 10.1007/s10548-014-0417-z. [DOI] [PubMed] [Google Scholar]
- 19.Lam AD, et al. Silent hippocampal seizures and spikes identified by foramen ovale electrodes in Alzheimer’s disease. Nat. Med. 2017;23:678–680. doi: 10.1038/nm.4330. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Spyrou L, Martín-Lopez D, Valentín A, Alarcón G, Sanei S. Detection of intracranial signatures of interictal epileptiform discharges from concurrent scalp EEG. Int. J. Neural Syst. 2016;26:1650016. doi: 10.1142/S0129065716500167. [DOI] [PubMed] [Google Scholar]
- 21.Saltzberg B, Burch NR, McLennan MA, Correll EG. A new approach, to signal analysis in electroencephalography. IRE Trans. Med. Electron. 1957;8:24–30. doi: 10.1109/IRET-ME.1957.5008605. [DOI] [Google Scholar]
- 22.Burch NR, Nettleton WJ, Sweeney J, Edwards RJ. Period analysis of the electroencephalogram on a general-purpose digital computer. Ann. N. Y. Acad. Sci. 1964;115:827–843. doi: 10.1111/j.1749-6632.1964.tb00061.x. [DOI] [PubMed] [Google Scholar]
- 23.Hegger R, Kantz H. Embedding of sequences of time intervals. EPLEurophys. Lett. 1997;38:267. doi: 10.1209/epl/i1997-00236-0. [DOI] [Google Scholar]
- 24.Murro AM, et al. Computerized seizure detection of complex partial seizures. Electroencephalogr. Clin. Neurophysiol. 1991;79:330–333. doi: 10.1016/0013-4694(91)90128-Q. [DOI] [PubMed] [Google Scholar]
- 25.Le Van Quyen M, et al. Anticipation of epileptic seizures from standard EEG recordings. Lancet Lond. Engl. 2001;357:183–188. doi: 10.1016/S0140-6736(00)03591-1. [DOI] [PubMed] [Google Scholar]
- 26.Shahidi Zandi, A., Tafreshi, R., Javidan, M. & Dumont, G. A. Predicting temporal lobe epileptic seizures based on zero-crossing interval analysis in scalp EEG. Conf. Proc. Annu. Int. Conf. IEEE Eng. Med. Biol. Soc. IEEE Eng. Med. Biol. Soc. Annu. Conf.2010, 5537–5540 (2010). [DOI] [PubMed]
- 27.Pyrzowski J, Siemiński M, Sarnowska A, Jedrzejczak J, Nyka WM. Interval analysis of interictal EEG: Pathology of the alpha rhythm in focal epilepsy. Sci. Rep. 2015;5:16230. doi: 10.1038/srep16230. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Klatt J, et al. The EPILEPSIAE database: An extensive electroencephalography database of epilepsy patients. Epilepsia. 2012;53:1669–1676. doi: 10.1111/j.1528-1167.2012.03564.x. [DOI] [PubMed] [Google Scholar]
- 29.Le Douget, J. E., Fouad, A., Maskani Filali, M., Pyrzowski, J. & Le Van Quyen, M. Surface and intracranial EEG spike detection based on discrete wavelet decomposition and random forest classification. Conf. Proc. Annu. Int. Conf. IEEE Eng. Med. Biol. Soc. IEEE Eng. Med. Biol. Soc. Annu. Conf.2017, 475–478 (2017). [DOI] [PubMed]
- 30.Brown MW, et al. Comparison of novel computer detectors and human performance for spike detection in intracranial EEG. Clin. Neurophysiol. Off. J. Int. Fed. Clin. Neurophysiol. 2007;118:1744–1752. doi: 10.1016/j.clinph.2007.04.017. [DOI] [PubMed] [Google Scholar]
- 31.Tsuchida TN, et al. American clinical neurophysiology society: EEG guidelines introduction. J. Clin. Neurophysiol. Off. Publ. Am. Electroencephalogr. Soc. 2016;33:301–302. doi: 10.1097/WNP.0000000000000315. [DOI] [PubMed] [Google Scholar]
- 32.Welch AJ, Richardson PC, Mockford JN. Classification of sleep stage with period analysis features derived from the EEG. Aviat. Space Environ. Med. 1978;49:409–414. [PubMed] [Google Scholar]
- 33.Chouvet G, Odet P, Valatx JL, Pujol JF. An automatic sleep classifier for laboratory rodents. Waking Sleep. 1980;4:9–31. [PubMed] [Google Scholar]
- 34.Feinberg I, Fein G, Floyd TC. Period and amplitude analysis of NREM EEG in sleep: Repeatability of results in young adults. Electroencephalogr. Clin. Neurophysiol. 1980;48:212–221. doi: 10.1016/0013-4694(80)90306-5. [DOI] [PubMed] [Google Scholar]
- 35.Tsai, P.-Y., Hu, W., Kuo, T. B. J. & Shyu, L.-Y. A portable device for real time drowsiness detection using novel active dry electrode system. Conf. Proc. Annu. Int. Conf. IEEE Eng. Med. Biol. Soc. IEEE Eng. Med. Biol. Soc. Annu. Conf.2009, 3775–3778 (2009). [DOI] [PubMed]
- 36.Loring DW, Keller WJ, Largen JW. Period analysis of the EEG in early putative Alzheimer’s disease. Int. J. Neurosci. 1984;24:63–68. doi: 10.3109/00207458409079535. [DOI] [PubMed] [Google Scholar]
- 37.Weiss V. The relationship between short-term memory capacity and EEG power spectral density. Biol. Cybern. 1992;68:165–172. doi: 10.1007/BF00201438. [DOI] [PubMed] [Google Scholar]
- 38.Armitage R, Roffwarg HP, Rush AJ. Digital period analysis of EEG in depression: Periodicity, coherence, and interhemispheric relationships during sleep. Prog. Neuropsychopharmacol. Biol. Psychiatry. 1993;17:363–372. doi: 10.1016/0278-5846(93)90070-9. [DOI] [PubMed] [Google Scholar]
- 39.Petrantonakis PC, Hadjileontiadis LJ. Emotion recognition from EEG using higher order crossings. IEEE Trans. Inf. Technol. Biomed. Publ. 2010;14:186–197. doi: 10.1109/TITB.2009.2034649. [DOI] [PubMed] [Google Scholar]
- 40.Fisher RS, 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–530. doi: 10.1111/epi.13670. [DOI] [PubMed] [Google Scholar]
- 41.Chung MK, Robbins S, Evans AC. Unified statistical approach to cortical thickness analysis. Inf. Process. Med. Imaging Proc. Conf. 2005;19:627–638. doi: 10.1007/11505730_52. [DOI] [PubMed] [Google Scholar]
- 42.Chung MK, et al. Cortical thickness analysis in autism with heat kernel smoothing. NeuroImage. 2005;25:1256–1265. doi: 10.1016/j.neuroimage.2004.12.052. [DOI] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
The dual EEG dataset analyzed during the current study (group A) is available in the Epilepsiae repository, http://www.epilepsiae.eu/. The validation dataset (Group B) is not publicly available but can become available from the corresponding author on reasonable request with the permission of JJ.