If you don't remember your password, you can reset it by entering your email address and clicking the Reset Password button. You will then receive an email that contains a secure link for resetting your password
If the address matches a valid account an email will be sent to __email__ with instructions for resetting your password
Department of Neurophysiology, Zealand University Hospital, Roskilde, DenmarkDepartment of Clinical Medicine, University of Copenhagen, DenmarkDepartment of Neuroscience, University of Copenhagen, Denmark
Proof-of-concept of GTCS detection from novel EEG recording device.
•
GTCS can be automatically detected from scalp-EEG and ear-EEG.
•
Performance for 820.7 h was 100% sensitivity (CI 29.2–100) and 0 false positives.
•
Ear-EEG could be a nighttime monitoring for GTCS for SUDEP prevention.
Abstract
Purpose
Sudden unexpected death in epilepsy (SUDEP) is associated with generalized tonic-clonic seizures (GTCS) with most deaths occurring during sleep. Seizure detection devices have been suggested as a SUDEP prevention strategy. EMG-based GTCS detection can take advantage of the GTCS characteristic of sustained high-amplitude, high-frequency activity in the time-domain.
Method
We present a GTCS-detection method based on median-filtered variance estimates on surface EMG measurements and describe its performance in a small exploratory proof-of-concept setting involving a group of 15 patients with 3 GTCS recorded with ear-EEG and another group of 6 patients with 11 GTCS recorded with scalp-EEG.
Results
GTCS intervals were detected within 4.2-12.9 s of onset with 100% sensitivity (CI 29.2–100%) without false positives in 820.7 h of ear-EEG. The same detection method worked for the 11 GTCS from scalp EEG data with 100% sensitivity (CI 71.5–100%) and no false positives.
Conclusions
Ear-EEG contains enough GTCS-specific EMG activity for GTCS detection to be feasible. Ear-EEG could be considered for nocturnal GTCS monitoring as a supplement to SUDEP preventive interventions.
The incidence of sudden unexpected death in epilepsy (SUDEP) varies by type of epilepsy from 0.9–2.3 per 1000 person-years in the general epilepsy population to 1.1-5.9 per 1000 person-years in patients with chronic refractory epilepsy. Generalized tonic-clonic seizures (GTCS) is the most important risk factor with higher seizure frequency linked to greater risk of SUDEP [
]. Compared to no yearly GTCS, a seizure frequency of 1–2/year is associated with an odds-ratio (OR) of SUDEP of 5.1, increasing to 15.5 at three or more yearly GTCS [
Seizure detection for GTCS using accelerometry is aimed at identifying the clonic phase and various studies have reported performance with sensitivities between 11 and 100% and false alarm rates ranging between 0.2 to 4/day [
]. Compared to accelerometry, surface EMG (sEMG) can detect the tonic phase of GTCS better and thus work with shorter detection latencies; median detection latency 17.0 s compared to 13.7s, respectively [
]. The sEMG detection strategy can rely on different features: Changes in median frequency, root mean square and EMG-EMG coherence can separate 63 GTCS from 20 patients from 100 simulated seizures acted by volunteers [
]. Later, an algorithm based on the number of zero-crossings achieved 100% sensitivity and 1 false positive/24 h when tested on 22 GTCS from 11 patients [
]. Beniczky et al. used a multivariate analysis of time-domain and frequency domain features to demonstrate detection of GTCS and differentiation from psychogenic convulsive seizures in recordings from a mobile device worn on the upper arm [
Ear-EEG a wearable EEG recording method, where electrodes are placed in and around the ear. Ear-EEG is of particular interest for long-term monitoring in epilepsy [
]. Thus, it seems plausible that the generalized muscle-activation pattern characteristic of GTCS could be detected using ear-EEG.
The objective of this study was to investigate the feasibility of using ear-EEG for GTCS detection.
2. Methods
2.1 Measurements
EEG was obtained from 15 patients admitted to the epilepsy monitoring unit (EMU) at Zealand’s University Hospital and participating in a study of ear-EEG for suspected temporal lobe seizures. Simultaneous 25 channel scalp EEG and 8-channel binaural ear-EEG of durations between 1 and 4 days were collected. Patients were admitted on a primary suspicion of temporal lobe epilepsy, but among the seizure episodes some were of GTCS type and we refer to those in the following. For this study, we are only interested in the surface EMG component of the measurements. Intervals, where recording conditions were unsatisfactory because of high impedances or dislodged ear-EEG devices, were visually identified and removed. Sampling frequency for both scalp and ear-EEG was 256 Hz for five patients and 1024 Hz for the other ten patients including all those with GTCSs. For the same analysis to be performed on all data sets, we resampled the five datasets sampled at 256 Hz to 1024 Hz. Fig. 1 (panel 1 and 2) shows the ear-EEG device, how it is placed into the ear and the electrode locations. The electrodes were labelled E, I, B and A with the prefix L/R denoting left or right. References were bipolar and defined as either “intra-ear”, when created from the six possible combinations of ipsilateral ear-electrodes, or “inter-ear”, when the reference was the same-labelled electrode in the contralateral earpiece. Full description of the measurement and study population is described in our previous study [
]. Data were exported as edf-files and imported into Matlab R2017a for further analyses. The study was done in accordance with the Helsinki Declaration and was approved by the regional ethics committee (110724815).
Fig. 11) Photograph of the ear-EEG prototype we used. Right ear-piece. Labels A, B, E and I denote the electrodes and arrows point to their location on the earpiece. Note that there is an air duct for normal sound conductance. 2) Sketch of how the device is placed in the ear and the electrode locations. 3) Seizure onset for one of the GTCS we recorded, 8 longitudinal scalp channels displayed first. Below are two left intra-ear channels (LE-LB and LI-LA) displayed in bright red. Homologue right sided ear channels in bright blue. Inter-ear channels LE-RE and LB-RB are shown in green. Notice the lower amplitudes for the intra-ear channels. The distinct seizure pattern can better be appreciated in the inter-ear channels.
The EMG pattern of GTCS is characterized by high-amplitude, high frequency oscillations that are distinct from physiological EMG activity even during attempts to simulate convulsive seizures [
]. Variance calculated within non-overlapping sliding windows across the time series will result in a consistent increase over consecutive intervals whereas normal physiological movements will produce more irregularly distributed high variance values.
Let V denote the variance calculated within non-overlapping sliding windows consisting of a number w of consecutive samples within one EEG channel.
Where xi denotes the individual samples within each instance of w and is the mean of samples within each window.
Fig. 2 illustrates the principle of a sliding window moving across the different phases of a GTCS. Pre-seizure we would expect most windows to contain low V values, but in the tonic phase most windows would have high V values and then somewhat fewer during the clonic phase before returning to generally low V values post-seizure. We tried different values of w and visually inspected the results, when w becomes large there is a decrease in the maximal amplitude across the entire recording, which is undesirable when we wish to base detection upon crossing an amplitude threshold. We found that w = 32 spanned enough samples for robust estimation before unnecessary amplitude attenuation occurred at a higher w parameter.
Fig. 2Concept of how different phases of generalized tonic-clonic seizure are summarized by variance calculated windows spanning consecutive samples (orange boxes indicate the size of each window). Pre-seizure and post-seizure most windows will contain low values. During the tonic phase somewhat more windows will contain high values compared to the subsequent clonic phase. (For interpretation of the references to colour in this figure legend, the reader is referred to the web version of this article.)
The salient characteristic of the tonic phase is the sustained increase of V, but due to random variation some windows during the tonic phase will still contain relatively low V. More importantly, many physiological actions will also cause large amplitude increases, but these will not have sustained high variance values to the same extent. Taking the median across a number k of consecutive V segments will filter out irregular or non-sustained elevations in V. We call the sequence of V across the time series recorded from a given electrode for Vs and the result of the median-filtered sequence for (Fig. 3). For online detection we can only consider previous indices in Vs. Choosing a higher k will produce a more robust attenuation of non-sustained elevated V, but at a cost of a longer detection delay given by k · w · sr−1, where sr denotes the sampling rate. The unit of is μV2 and we normalize it by dividing it with its own standard deviation calculated across all previous samples of for a given channel.
Fig. 3A) Generalized tonic-clonic seizure in the time-domain. Yellow triangle marks seizure onset. About 30 s before there is a brief high-amplitude artifact. B) The same interval transformed into variance values within non-overlapping windows. C) The effect of median-filtering attenuates the artifact near 30 s but only smoothes the seizure activity. (For interpretation of the references to colour in this figure legend, the reader is referred to the web version of this article.)
At random intervals a number of ear-EEG electrodes will become noise-contaminated by movements or loosened electrode contact and this will typically generate high-amplitude, high frequency noise, which could be misinterpreted as GTCS-related EMG signal. From a probabilistic point of view, it is unlikely that a majority of ear-EEG channels randomly will be performing poorly at a given time, but when a GTCS occurs, we should expect it to be measurable from all ear-EEG positions at the same time. It can be assumed that a GTCS event will cause bilateral high-amplitude activity, so if only unilateral noise is detected, it can be ignored as potential seizure activity. Relying on this assumption, we select the smallest sample of for all left and all right intra-ear channels. This quantity is then compared to the most common observation of the four inter-ear channels. We defined a threshold from examining the probability distributions of seizure-interval values compared to the non-seizure intervals (Fig. 4a). When the mode of the inter-ear channels is above the threshold, a check is performed against the left and right intra-ear channels, so that if it is above the threshold a decision of GTCS event is reached but if it is below the threshold the event is disregarded.
Fig. 4A) Histograms of the cumulative probability distributions of the normalized amplitudes during seizure intervals defined as seizure onset and 60 s forward (orange) and non-seizure intervals (blue). Plot window is cropped at y 0.05 and x 10 for better visibility. The distribution of non-seizure intervals has virtually no overlap at 10 and beyond. B) Detection latencies for the 3 generalized tonic-clonic seizures as a function of different threshold values. At 20 the detection latency is 4.2s, 12.2 s and 12.9s. (For interpretation of the references to colour in this figure legend, the reader is referred to the web version of this article.)
Fig. 3c shows the characteristic shape of during GTCS and it can be seen, that if the threshold is set higher the detection delay will increase but make separation from non-seizure easier. We used a k parameter of 25 and tested different normalized threshold values from 20 to 99.
2.3 Scalp-EEG
We investigated a similar GTCS detection approach but on scalp-EEG from a collection of scalp-EEGs containing 11 GTCS examples from 6 other patients not monitored with ear-EEG. Sampling rate was 1024 Hz with 25 scalp electrodes including low-row in the 10:20 system. We chose two longitudinal channels that are relatively close to ear-EEG, T9/10-P9/10 and, following the same assumption that GTCS should produce a clear signal bilaterally, we chose the minimum for both scalp channels at the same time.
2.4 Statistics
Detections occurring up to 1 min after the seizure annotation were considered true positives. The number of true positives divided by the total seizure count is the sensitivity. R version 3.4.3 function binom.test for the exact test for binomial proportions was used to calculate confidence intervals for the sensitivities. Subsequent epochs of following a detection would be above the threshold, which would produce multiple detections within the same seizure interval. To prevent this, we implemented a 10 min pause after a detection, where no further above threshold epochs would register as detections. Any detections not within 1 min of seizure annotation are false positives. False positives are described as a rate defined by the number of false positives divided by the total monitoring time in hours.
3. Results
The amount of data removed after visual assessment of measurement quality was 60.8 h in total with most of it (52.7 h) originating from one patient, where electrode care had been inadequate. This patient didn’t have any GTCSs. The rest of the data, which was removed, was spread among patients at the end of the recordings, where ear-EEG was frequently disconnected before scalp-EEG was and the recording not yet stopped. In total, 820.7 h of simultaneous scalp-EEG and ear-EEG remained.
There were three GTCS from three different patients. A sample seizure is shown in Fig. 1c. In one patient, the GTCS was primarily generalized. Two patients had a focal onset impaired awareness seizure to bilateral tonic-clonic seizure. All three GTCSs were independently detected based on ear-EEG and scalp-EEG, sensitivity 100% (CI 29.2–100%). The false positive rate across all 820.7 h was 0. Fig. 4b shows the detection latencies for different threshold values for the three seizures. A higher threshold decreases the risk of false positives but at a cost of increased latency and a higher possibility of false negatives. At a threshold of 20 there were no false positives and detection latency between 4.2–12.9 s. Lower threshold settings were not tested.
Instances of physiological artifacts from chewing, ambulation, movement and turning were numerous but did not produce false detections.
An additional 24 h of scalp-EEG containing 11 additional GTCS from 6 patients was also tested and all 11 GTCS were detected with no false positives, sensitivity 100% (71.5-100%). If only considering one scalp channel instead of two, 10/11 GTCS were detected. The 3 GTCS in the ear-EEG data could also be detected from the scalp electrode positions without false positives. Detection latencies for scalp-EEG based detection were not calculated.
4. Discussion
The detection strategy presented above worked well but for ear-EEG it has only been tested on three GTCS events. The parameters of the algorithm, i.e. length of the window for the variance estimate, number of windows for the median filter, and the detection threshold, were based on the same data material, so it could be subject to overfitting. Thus, the generalizability of the performance across the range of possible GTCS-variability can be questioned and rightly warrants more investigation. However, the large amount of normal and varied physiological activity tested produced no false positives, which is an important metric for seizure detection systems; a high false positive rate will likely cause “alarm fatigue” and dissatisfaction with the user. Recordings were all obtained from an EMU-environment during day and night, and although the range of physical activity is restricted, a wide variety of physiological EMG occurred. This seems especially pertinent regarding facial movements since the jaw muscles engaged during GTCS likely also would be active during chewing, but we can see that chewing artifacts do not generate false positives during any mealtime intervals contained in the dataset. Additionally, the need for a GTCS alarm is principally during unsupervised sleep, where the possibility of physiological activity that would generate a false alarm is even smaller.
However, it could be argued that the fact that there were no false positives was mostly a fortuitous consequence of the low number of GTCS events the threshold was based on. Perhaps other individuals would have significantly lower amplitudes during the tonic interval so that it would become apparent that perfect classification would no longer be possible across a wider subset of GTCS? EMG patterns from GTCSs are arguably very stereotypical and so it seems unlikely that GTCS EMG would differs substantially, but it surely warrants additional investigation. The successful detection of an additional 11 GTCSs recorded with only scalp-EEG seems to suggest so.
If other GTCS have markedly lower amplitudes so that separation from non-GTCS becomes imperfect by thresholding, a strategy to amend this could be based on additions to capture the sustained increase in amplitude over a longer period, possibly accepting a “cost” in the form of a longer detection latency.
The MORTEMUS study points to a specific sequence of events leading from a GTCS to neurovegetative breakdown into respiratory depression and then cardiac arrest in the postictal interval several minutes after seizure onset [
]. However, analysis of heart variability has identified pre-ictal parasympathetic overdrive and short QT as risk factor for SUDEP in a case where a patient died despite cardiopulmonary resuscitation [
Heart rate variability analysis indicates preictal parasympathetic overdrive preceding seizure-induced cardiac dysrhythmias leading to sudden unexpected death in a patient with epilepsy.
]. SUDEP is theoretically preventable through interventions to support respiratory effort. A study of the effects of early peri-ictal nursing interventions on hypoxemia suggests that earlier intervention can shorten hypoxemia [
]. Our results indicate that GTCS detection strategy can work with a detection delay of about 4–13 s, which is comparable to other similar methods; two recent multi-center trials of GTCS detection by surface EMG obtained median detection latencies of 7.4 and 9 s [
]. These differences are small and roughly equivalent in terms of clinical relevance. If detection is based on movements during the clonic phase, which is common for accelerometry, the delays tend to be longer and then it might become more relevant if the purpose is to alarm care-givers for earlier assistance.
One might suppose that our detection strategy could generalize to other motor seizures such as tonic seizures, but comparisons between tonic and generalized tonic-clonic seizures have shown that purely tonic seizures have a markedly lower amplitude [
The detection strategy works on scalp-EEG with a four-electrode montage but would likely also work for other electrode positions on the body. Other types of sensors located elsewhere on the body have also been investigated for GTCS detection. Spectral analysis of accelerometry (ACM) from wrist-worn sensor was used to detect 10/10 GTCS from 5/12 patients monitored for 246 h with a mean false positive ratio of 2/24 h [
]. However, the location of the ear-EEG device has the advantage that it also samples EEG. During sleep, this could allow for on demand sleep staging, which has recently been shown to work on automated basis with good accuracy compared to expert rated PSG [
]. This combined capability offers a “bundled solution” to multiple clinical problems. For instance, this could have relevance for the differentiation between abnormal movements during sleep, where knowledge about the sleep stage from which abnormal movement arise can inform a diagnostic process on REM and non-REM parasomnias. Bilateral use of ear-EEG is an advantage when the clinical problem is GTCS detection as accuracy can be improved by assuming that GTCS-associated activity should be reflected in all electrode positions whereas random noise most likely will not. Other GTCS detection proposals utilizing only a single sensor location cannot take advantage of this.
] we described some irritation linked to prolonged use of hard ear-EEG pieces. This is unlikely to be an issue if the devices are only put in use during sleep. In addition, a new ear-EEG design recently described [
] uses dry-electrodes and a softer material and a flexible joint between the portion resting in the concha and the portion inside the ear-canal, which may turn out the decrease or eliminate the user-discomfort we described previously.
5. Conclusion
We have described a simple algorithmic for GTCS detection based on a moving-median filtered sliding window variance estimate. The performance was tested on 820.7 h of simultaneous scalp-EEG and ear-EEG containing 3 GTCS from 3 different patients with detection latencies between 4 and 13 s. Sensitivity for ear-EEG was 100% (CI 29.2–100%) and no false positives. An additional 11 GTCS events from 6 different patients measured with only scalp-EEG were also tested detecting all seizures with no false positives.
Parameterization was developed and tuned post-hoc and the number of true events to be detected was low. The calculated detection latencies were based on an online-simulation run on a computer, not a wearable setup as is the intended future goal. Still, the results indicate that ear-EEG measurements during GTCS contain sufficient information for a seizure detection system to be feasible. Compared to GTCS detection by surface EMG collected from a sensor placed on the extremities, ear-EEG is of special interest in cases where EEG evaluation is relevant at the same time.
Declarations of interest
None.
Acknowledgements
The project was supported by the Danish Council for Strategic Research (1311-00009B) and the Elsass Foundation.
Heart rate variability analysis indicates preictal parasympathetic overdrive preceding seizure-induced cardiac dysrhythmias leading to sudden unexpected death in a patient with epilepsy.