Learning to generalize seizure forecasts

Abstract

Objective

Epilepsy is characterized by spontaneous seizures that recur at unexpected times. Nonetheless, using years-long electroencephalographic (EEG) recordings, we previously found that patient-reported seizures consistently occur when interictal epileptiform activity (IEA) cyclically builds up over days. This multidien (multiday) interictal–ictal relationship, which is shared across patients, may bear phasic information for forecasting seizures, even if individual patterns of seizure timing are unknown. To test this rigorously in a large retrospective dataset, we pretrained algorithms on data recorded from a group of patients, and forecasted seizures in other, previously unseen patients.

Methods

We used retrospective long-term data from participants (N = 159) in the RNS System clinical trials, including intracranial EEG recordings (icEEG), and from two participants in the UNEEG Medical clinical trial of a subscalp EEG system (sqEEG). Based on IEA detections, we extracted instantaneous multidien phases and trained generalized linear models (GLMs) and recurrent neural networks (RNNs) to forecast the probability of seizure occurrence at a 24-h horizon.

Results

With GLMs and RNNs, seizures could be forecasted above chance in 79% and 81% of previously unseen subjects with a median discrimination of area under the curve (AUC) = .70 and .69 and median Brier skill score (BSS) = .07 and .08. In direct comparison, individualized models had similar median performance (AUC = .67, BSS = .08), but for fewer subjects (60%). Moreover, calibration of pretrained models could be maintained to accommodate different seizure rates across subjects.

Significance

Our findings suggest that seizure forecasting based on multidien cycles of IEA can generalize across patients, and may drastically reduce the amount of data needed to issue forecasts for individuals who recently started collecting chronic EEG data. In addition, we show that this generalization is independent of the method used to record seizures (patient-reported vs. electrographic) or IEA (icEEG vs. sqEEG).

0