Identification of nonconvulsive status epilepticus in the ictal-interictal continuum using artificial intelligence: a prospective observational cohort study
Article information
Abstract
Purpose
This study aims to investigate differences in functional connectivity between patients on the ictal-interictal continuum (IIC) with nonconvulsive status epilepticus (NCSE) versus those with coma-IIC, and to evaluate whether machine learning based on these connectivity measures was able to distinguish between these two groups.
Methods
We prospectively enrolled patients with IIC electroencephalography (EEG) patterns and classified them into NCSE or coma-IIC groups according to the Salzburg criteria and clinical information. We analyzed functional connectivity based on EEG using graph theory. For deep learning, EEG signals were transformed into time–frequency images using short-time Fourier transforms. We investigated differences in functional connectivity between the two groups.
Results
We enrolled 72 patients on the IIC. Of the 72 patients, 53 patients had NCSE, and 19 had coma-IIC. Patients with NCSE had decreased global functional connectivity in all frequency bands compared to patients with coma-IIC. Global efficiency was significantly lower in the NCSE group than the coma-IIC group (e.g., gamma band, 0.258 vs 0.350; p = 0.001), and local efficiency was consistently decreased across all frequency bands in the NCSE group (all p ≤ 0.01). Machine learning based on these measures classified patients with NCSE and those with coma-IIC with an accuracy of 92.8%, while the accuracy of the convolutional neural network model to distinguish between them was 73.9%.
Conclusion
We demonstrated that graph-theoretical functional connectivity derived from EEG data differs significantly between patients with NCSE and those with coma-IIC. Furthermore, our results confirm the feasibility of using machine learning models based on these connectivity measures to effectively distinguish between these two conditions.
Introduction
The term “ictal-interictal continuum (IIC)” was first introduced by Pohlmann et al. in 1996 [1]. It describes a spectrum of electroencephalography (EEG) patterns between interictal and ictal states, ranging from relatively benign, transient epileptiform activity to more malignant, evolving electrophysiological changes with harmful clinical consequences [2]. With the growing use of continuous EEG monitoring in intensive care units, IIC patterns are being recognized more frequently in critically ill patients [3]. Despite over 25 years of research, however, the pathophysiology, epileptogenic potential, and clinical significance of IIC EEG patterns in this population remain poorly understood [2,4].
Patients on the IIC can be classified as those with nonconvulsive status epilepticus (NCSE) and those with coma-IIC. NCSE is characterized by altered consciousness without major convulsive movements caused by an epileptic condition, whereas coma-IIC is a state of coma caused by the underlying pathology [5,6]. Accordingly, anti-seizure medications (ASMs) are generally required for NCSE but are often unnecessary for coma-IIC [3,7]. However, distinguishing these entities remains challenging, creating a clinical dilemma regarding whether and how aggressively to treat patients on the IIC. EEG patterns with fast rhythms (>3 Hz) or rapidly evolving activity are widely considered ictal and warrant ASM treatment, as they are linked to increased metabolic demand, tissue hypoxia, and impaired cerebral autoregulation [8]. Additional multimodal approaches can be helpful for distinguishing between patients with NCSE and those with coma-IIC, such as structural brain magnetic resonance imaging (MRI), fluorodeoxyglucose-positron emission tomography (PET), perfusion MRI, single-photon emission computed tomography, or magnetoencephalography [9-11].
Increasing evidence from electrophysiology, histopathology, and neuroimaging supports the concept of epilepsy as a disease of the brain network, with alterations of connectivity [12,13]. Therefore, many efforts have been made to analyze the structural and functional connectivity of the brain at the individual and group levels. Among various connectivity analysis techniques, graph theoretical analysis of structural and functional data offers the opportunity to understand the details of complex networks and derive models for these networks using a mathematical framework to model pairwise communications [14]. This approach has provided compelling evidence that epilepsy is characterized by marked alterations in the topology of large-scale networks, which is associated with clinically relevant parameters, including disease duration and medical or surgical outcomes, suggesting the possible utility of topological markers in the diagnosis and management of epilepsy [12,14-16].
Machine learning is a type of artificial intelligence (AI) in which algorithms learn patterns directly from data rather than being explicitly programmed [17,18]. Deep learning, a subfield of machine learning, further reduces the need for handcrafted feature specification by humans [19,20]. With the increasing utilization of AI in the field of medical science, a few neurology researchers have used AI for seizure detection and diagnosis of epilepsy as well as the identification of sleep disorders [21-23]. However, to date, no studies have used machine learning or deep learning to distinguish between patients with NCSE and those with coma-IIC.
In this study, we analyzed functional connectivity based on EEG data using graph theory in patients on the IIC (both patients with NCSE and those with coma-IIC) and healthy controls. The aim of this study was to investigate differences in functional connectivity between patients on the IIC and healthy controls, and between patients with NCSE and those with coma-IIC. In addition, we evaluated the ability of machine learning based on functional connectivity measures and a deep learning approach to classify patients with NCSE and those with coma-IIC. We hypothesized that functional connectivity based on EEG would differentiate between patients with NCSE and those with coma-IIC, and that machine learning and deep learning approaches would be useful for distinguishing between the two groups.
Methods
Subjects
This prospective study was conducted at Inje University Haeundae Paik Hospital in Busan, after approval by the Institutional Review Board (IRB2020-08-009). The informed consent forms from the participants were waived.
We enrolled 72 patients on the IIC who met the following criteria [2,3,24]: (1) comatose mental status, (2) EEG patterns compatible with IIC, and (3) sufficient clinical information to support a diagnosis of NCSE or coma-IIC. IIC was defined according to the American Clinical Neurophysiology Society (ACNS) Standardized Critical Care EEG Terminology as follows: any rhythmic, periodic, or spike-and-wave patterns continuing for at least six cycles (for example, 1 Hz for 6 seconds or 3 Hz for 2 seconds) [25]. NCSE was diagnosed on an individual basis using the Salzburg criteria together with the 2021 ACNS terminology, incorporating comprehensive clinical and paraclinical data, including EEG findings, laboratory and neuroimaging results, therapeutic response, follow-up information, and clinical outcomes [26,27]. The Glasgow Coma Scale (GCS) was assessed at the time of EEG recording, and the modified Rankin Scale (mRS) was evaluated at hospital discharge.
In addition, we enrolled 32 age- and sex-matched healthy controls. None of the controls had neurological, psychological, or medical diseases. They had normal background activity without focal slowing or epileptiform discharges on EEG.
Electroencephalography acquisition and preprocessing
All EEG recordings were obtained using the same equipment and standardized procedures (TWin EEG software system, Grass Technologies). Recordings were conducted by trained technicians using gold electrodes applied with electrode paste. A total of 23 electrodes (Fp1, Fp2, F7, F8, T1, T2, T3, T4, T5, T6, O1, O2, F3, F4, C3, C4, P3, P4, Cz, Pz, Oz, A1, and A2) were positioned according to the international 10–20 system. Electrode impedance was kept below 5 kΩ. EEG signals were sampled at 250 Hz, and each recording lasted at least 30 minutes. To ensure the representativeness of the EEG data, the entire recording was visually inspected by trained neurologists. We carefully selected a 10-second epoch that displayed the most predominant and definite IIC patterns, avoiding periods of state transition or excessive artifacts. This duration was chosen to ensure stationarity for functional connectivity analysis while minimizing noise. EEG data were re-referenced to the average montage [28].
Functional connectivity analysis
EEG data were band-pass filtered into delta (<3.5 Hz), theta (4–7 Hz), alpha (8–13 Hz), beta (14–30 Hz), and gamma (>30 Hz) frequency bands. Functional connectivity matrices were constructed using coherence as an index of neural synchronization, calculated from cross-spectral density estimates [28]. The resulting connectivity matrices were then analyzed using the Brain Analysis using Graph Theory (http://braph.org) toolbox implemented in MATLAB (MathWorks) to derive graph-theoretical network metrics [29]. Brain networks were modeled as weighted graphs consisting of nodes (EEG electrodes) and edges (coherence-based connections). Nodes were defined using 21 electrodes, excluding A1 and A2 due to frequent artifacts. For each group, a weighted connectivity matrix was generated, and group-level differences in functional connectivity were evaluated using coherence-based measures. To detect differences between groups in functional connectivity, we calculated the assortative coefficient, average degree, average strength, characteristic path length, mean clustering coefficient, diameter, eccentricity, global efficiency, local efficiency, modularity, radius, small-worldness index, and transitivity [12-14,29-31]. We also analyzed differences in functional connectivity using these network measures between patients with NCSE and those with coma-IIC.
Machine learning approach
We assessed whether machine learning could distinguish patients with NCSE from those with coma-IIC. The classifier was trained using graph-theoretical network measures (assortativity, average degree/strength, characteristic path length, clustering coefficient, diameter, eccentricity, global and local efficiency, modularity, radius, small-worldness, and transitivity) across the delta, theta, alpha, beta, and gamma bands. All features were standardized using z-scores, and a supervised support vector machine (SVM) model was applied [32]. Data were split into training (80%) and testing (20%) sets, and all analyses were conducted in MATLAB R2020b. Classification performance was evaluated using accuracy and receiver operating characteristic curves. The overall workflow of functional connectivity analysis is shown in Figure 1.
Deep learning approach
EEG data were processed using Curry software (version 8.0.3.26, Compumedics). Signals were transformed into time–frequency images using short-time Fourier transform analysis (average across channels; resolution, 1.28 seconds; frequency range, 0–12.5 Hz; medium spectrogram size). The resulting spectrograms were saved as image files and used for transfer learning. Deep learning was conducted with MATLAB R2020b. A convolutional neural network (CNN) based on the VGG19 architecture was applied to classify NCSE versus coma-IIC. We loaded a pretrained VGG19 model and replaced the final layers to adapt the network to our dataset. Participants were split into training and testing sets at an 80/20 ratio. Images were resized to 224 × 224 pixels for input into VGG19. We also performed image data augmentation, which randomly flipped the image along the vertical axis and translated up to 30 pixels horizontally and vertically. We specified the train options as follows: stochastic gradient descent with momentum solvers, 1e-4 initial learning rate, a maximum epoch number of six, and a mini-batch size of 10. Finally, we calculated the classification accuracy for the test set.
Statistical analysis
Clinical characteristics were compared between the NCSE and coma-IIC groups using the chi-square test or Fisher exact test for categorical variables, and the Student t-test or Mann-Whitney U-test for continuous variables, as appropriate. All statistical tests were performed using MedCalc Statistical Software (version 19.6.4, MedCalc). Group differences in functional connectivity were assessed using nonparametric permutation testing with 1,000 iterations. Statistical significance was defined as a two-sided p < 0.05. For connectivity analyses across multiple frequency bands, Bonferroni correction was applied to control for multiple comparisons, yielding a corrected threshold of p = 0.01 (0.05/5 for delta, theta, alpha, beta, and gamma bands). Categorical variables are presented as counts and percentages. Continuous variables are reported as means ± standard deviations when normally distributed, and as medians with 95% confidence intervals and ranges when non-normally distributed.
Results
Clinical characteristics
We enrolled 72 patients on the IIC with a mean age of 67.5±13.8 years. Thirty-four patients (47.2%) were male and 38 patients (52.7%) were female. Median GCS was 6.5 (range, 2–15), and median mRS was 5 (range, 1–6). The most common etiology of coma was anoxic-hypoxic encephalopathy (25 patients), followed by epileptic encephalopathy (15 patients), metabolic encephalopathy (14 patients), and others (18 patients). Of the 72 patients on the IIC, 53 patients were assigned to the NCSE group, and 19 patients to the coma-IIC group.
With regard to EEG location, generalized IIC (59 patients) was the most common type, followed by lateralized (11 patients) and bilateral independent (two patients) types. In the EEG patterns, periodic discharges were the most common type of IIC, followed by rhythmic delta activities (18 patients) and sharp waves (10 patients). The median frequency of IICs was 1.5 Hz (range, 1–4.5 Hz). Forty patients had modifiers in addition to IIC EEG patterns.
Table 1 shows the differences in clinical characteristics between patients with NCSE and those with coma-IIC. Compared with the NCSE group, the proportions of anoxic-hypoxic encephalopathy and male patients were significantly higher in the coma-IIC group, whereas GCS scores were higher and EEG modifiers more frequent in the NCSE group.
Differences in functional connectivity between patients on the ictal-interictal continuum and healthy controls
Table 2 shows the differences in functional connectivity between patients on the IIC and healthy controls. In patients with IIC EEG patterns, the average strength and global efficiency of the alpha band were decreased, whereas its modularity, radius, characteristic path length, and eccentricity were increased compared to healthy controls. The assortative coefficient of the beta band was decreased in patients on the IIC compared to healthy controls. The characteristic path length, diameter, eccentricity, and radius of the theta band were decreased in patients on the IIC, whereas the average strength, mean clustering coefficient, global efficiency, local efficiency, modularity, small-worldness index, and transitivity of this band were increased. The characteristic path length, diameter, eccentricity, and radius of the delta band were decreased in patients on the IIC, whereas the assortative coefficient, average strength, mean clustering coefficient, global efficiency, local efficiency, modularity, and transitivity were increased. The modularity of the gamma band was decreased in patients with IIC EEG patterns, whereas the average degree, average strength, and global efficiency were increased compared to healthy controls.
Differences in functional connectivity between patients with nonconvulsive status epilepticus and those in coma on the ictal-interictal continuum
Table 3 shows the differences in functional connectivity between patients with NCSE and those with coma-IIC. With regard to the alpha band, the average strength, mean clustering coefficient, global efficiency, local efficiency, and transitivity were lower in patients with NCSE than those in patients with coma-IIC. The average strength, global efficiency, and local efficiency of the beta band were decreased in patients with NCSE compared to those in patients with coma-IIC, whereas the average strength, mean clustering coefficient, global efficiency, local efficiency, small-worldness index, and transitivity of the theta band were decreased but its radius increased in patients with NCSE compared to those in patients with coma-IIC. Similarly, the mean clustering coefficient, local efficiency, and transitivity of the delta band were lower in patients with NCSE than those in patients with coma-IIC, whereas the average strength, mean clustering coefficient, global efficiency, local efficiency, and transitivity of the gamma band were decreased, but the characteristic path length, diameter, eccentricity, and radius of this band increased in patients with NCSE compared to patients with coma-IIC.
Global functional connectivity according to frequency bands
Summarizing the previous results, patients with IIC EEG patterns and those with NCSE had increased global functional connectivity in the theta, delta, and gamma bands, and decreased global functional connectivity in the alpha band compared to healthy controls. Patients with coma-IIC had increased global functional connectivity in the beta, theta, and delta bands compared to healthy controls. Patients with NCSE had decreased global functional connectivity in all bands compared to patients with coma-IIC.
Classification of nonconvulsive status epilepticus and coma on the ictal-interictal continuum using machine learning and deep learning
In the analysis of machine learning based on network measures with SVM, the accuracy of the SVM classifier was 71.4% with an area under the curve (AUC) of 0.725 when based on the alpha band, 50.0% when based on the beta band with an AUC of 0.500, 64.2% when based on the theta band with an AUC of 0.600, 71.4% when based on the delta band with an AUC of 0.575, and 57.1% when based on the gamma band with an AUC of 0.525. Another SVM classifier based on all bands (alpha, beta, theta, delta, and gamma bands) had an accuracy of 92.8% and an AUC of 0.875.
In the analysis of deep learning with the VGG19 model, the accuracy of the VGG19 model to classify patients with NCSE and those with coma-IIC was 73.91% with an AUC of 0.732 (Supplementary Figure 1).
Discussion
In this study, we investigated the functional connectivity of patients with IIC EEG patterns and healthy controls using graph theory. Overall, patients with IIC EEG patterns showed increased global functional connectivity compared with controls, particularly in the theta, delta, and gamma bands. In addition, we observed significant differences in functional connectivity between patients with NCSE and those with coma-IIC. Patients with NCSE had decreased global functional connectivity compared to patients with coma-IIC. Furthermore, the machine learning classifier based on functional network measures had an accuracy of 92.8% in differentiating patients with NCSE from those with coma-IIC, and the accuracy of the deep learning of CNN models to classify them was 73.9%.
To date, structural and functional connectivity in patients on the IIC has not been investigated, although connectivity can be assessed using modalities such as diffusion tensor imaging for structural networks and EEG, magnetoencephalography, functional MRI, or PET for functional networks. Among these methods, EEG offers a high temporal resolution, making it particularly useful for determining how neural signals change with time [14]. It can show the organization of intrinsic brain activities and functional brain organization [33]. In patients with IIC EEG patterns, global efficiency was increased and characteristic path length decreased compared to the EEG patterns of healthy controls, indicating enhanced network integration. Integration reflects the efficiency of global information transfer across the network, whereas segregation reflects local specialization; accordingly, increased local efficiency and mean clustering coefficient suggest strengthened network segregation in patients on the IIC [14,34]. In addition, the small-worldness index was higher in patients on the IIC than in healthy controls, suggesting a more optimal balance between network integration and segregation and more efficient information transfer at relatively low wiring cost [34,35]. All of these findings suggest increased functional connectivity in patients with IIC EEG patterns compared to healthy controls. These findings are in agreement with a previous study that identified the characteristic abnormalities of connectivity during status epilepticus (SE) in a pilocarpine-induced rodent model [36]. The study showed that the coherence connectivity among the frontal cortex, hippocampus, and thalamus significantly increased during SE episodes in almost all EEG frequency bands, demonstrating aberrant network communication and enhanced connectivity in SE [36].
We also investigated differences in functional connectivity between patients with NCSE and those with coma-IIC. The average strength, global efficiency, and local efficiency of the alpha, beta, theta, and gamma bands were lower in patients with NCSE than in patients with coma-IIC. In addition, the mean clustering coefficient of the alpha, theta, delta, and gamma bands was decreased in patients with NCSE compared to patients with coma-IIC. All of these findings suggest decreased functional connectivity in patients with NCSE than in patients with coma-IIC. Although seizures typically involve hypersynchronization, our study showed decreased functional connectivity in patients with NCSE compared to those with coma-IIC. This apparent paradox can be explained by the distinct underlying pathophysiology and structural etiology of the two groups. In our cohort, the coma-IIC group had a significantly higher prevalence of anoxic-hypoxic encephalopathy (63.1%) compared to the NCSE group. Severe diffuse brain injury, such as anoxic encephalopathy, is known to cause selective loss of inhibitory interneurons and widespread cortical disinhibition [37,38]. Furthermore, recent computational models suggest that impaired astrocytic gap-junction coupling may contribute to pathologically enhanced synchronization or bistable network dynamics, potentially reflecting disrupted homeostatic regulation [39].
Conversely, the NCSE group comprised a higher proportion of patients with focal structural lesions, such as acute stroke or tumors. These focal lesions are known to disrupt white matter tracts, causing local network disconnection. Consequently, even in the presence of ictal activity, the global functional connectivity in NCSE patients may be attenuated by these structural disconnections, rendering it lower than the pathologically elevated global synchronization seen in the diffusely damaged brains of the coma-IIC group. A recent study found significantly lower global network efficiency in focal-onset NCSE than diffuse encephalopathy, highlighting the divergent topological effects of focal versus diffuse pathology [40]. Furthermore, a metabolic study demonstrated that NCSE is characterized by focal hypermetabolism, reinforcing the notion that NCSE is a spatially restricted process distinct from the globally hypersynchronous state observed in the diffusely damaged brains of coma-IIC patients [41].
Clinically, patients with coma-IIC often show a poorer response to ASM than those with NCSE. We hypothesize that the pathologically elevated functional connectivity observed in the coma-IIC group might reflect a state of ‘network failure’ or extensive damage that is less likely to respond to standard synaptic modulation by ASM. However, as we did not directly test ASM efficacy in the current study, this potential link between hyperconnectivity and pharmaco-resistance remains speculative and warrants further investigation.
Machine learning, a branch of AI increasingly adopted in clinical research, has also been applied in epilepsy for automated seizure detection, diagnosis, localization, and prediction of treatment outcomes [21,42-44]. In this study, we successfully demonstrated that a machine learning approach based on functional network measures could differentiate between patients with NCSE and those with coma-IIC with an accuracy of 92.8%, which is a high discriminatory ability. This may assist clinical decision-making in patients with IIC EEG patterns. Interestingly, when we trained the machine learning algorithms with functional network measures in all EEG frequency bands, the ability of machine learning to differentiate patients with NCSE and those with coma-IIC was the highest. Because not all features are informative and some may introduce noise, careful feature selection is often essential in machine learning [45]. However, our results indicate that functional network measures across all EEG frequency bands improved the ability of machine learning to differentiate NCSE from coma-IIC, which suggests that brain network alterations are distributed across multiple frequency ranges.
We analyzed functional connectivity according to EEG frequency bands and observed some differences in connectivity according to band type. Patients on the IIC and those with NCSE had increased global functional connectivity in the theta, delta, and gamma bands, and decreased global functional connectivity in the alpha band compared to healthy controls. A previous study that investigated differences in frequency-specific functional connectivity using graph theory reported that the lower the frequency of the oscillation-based network, the higher the mean network efficiency [46]. These results indicate that network measures vary systematically across frequency bands, potentially reflecting frequency-specific connectivity properties. Another plausible explanation is the effect of artifacts in different frequency bands. High-frequency activity such as that seen in the gamma band obtained by scalp recordings can overlap with face and eye muscle activities and is also affected by volume conduction [47]. Additionally, the delta frequency band is known to be more readily affected by the band filter than the other frequency bands [48].
The accuracy of diagnosing NCSE based on EEG using CNN in this study was about 74%, which is relatively modest. There are several possible reasons for this. One study reported that the ability of deep learning is strongly dependent on total sample size [49]. Moreover, in most studies, there was a positive correlation between the overall accuracy of deep learning and sample size. Thus, our results could be attributed to our relatively small sample size. Another possibility is the use of a ‘light’ CNN model. We applied the specific CNN model VGG19 in this study. The VGG19 model is a variant of VGGNet, created in 2014, which consists of 19 layers [50]. Because VGG19 is a simple model, it is easy to use and has the advantage of short analysis times, and is thus widely used in medical fields. However, its accuracy is relatively low. Accuracy may have been better if a different analysis model had been used, such as NASNet-large or DenseNet-201.
This is the first study to examine functional connectivity in patients on the IIC, demonstrating significant differences in EEG patterns between these patients versus healthy controls and between NCSE and coma-IIC patients. Nevertheless, several limitations should be acknowledged. First, we analyzed functional connectivity based on EEG recordings, which were only recorded for approximately 30 minutes. Given the fluctuating nature of IIC, this may not capture temporal dynamics and could have introduced selection bias. Longer-term EEG recordings with dynamic network analysis are needed [46]. In particular, long-term EEG monitoring lasting more than 24 hours may be more appropriate for functional connectivity analysis. Second, we obtained EEG data at one time point using cross-sectional data. Longitudinal follow-up studies may be more appropriate for investigating changes in functional connectivity. Third, baseline differences such as GCS and etiology are largely intrinsic to the clinical definitions of NCSE and coma-IIC. Due to the limited sample size (n = 19 in the coma-IIC group), robust multivariate adjustment was not feasible, limiting our ability to fully disentangle these effects from the IIC patterns themselves. Fourth, the machine learning classification relied on a single train-test split due to the limited sample size. We acknowledge the potential for overfitting in this small dataset. Thus, the reported accuracy should be interpreted as a preliminary proof-of-concept. Future studies with larger cohorts and robust cross-validation are needed to verify generalizability.
We found that patients with IIC EEG patterns exhibited distinct functional network alterations compared to healthy controls. Specifically, while the overall IIC group showed increased global integration, patients with NCSE exhibited significantly decreased global functional connectivity compared to those with coma-IIC. These divergent network patterns likely reflect underlying pathophysiological differences: focal structural disconnection in NCSE versus pathological hypersynchronization driven by diffuse disinhibition in coma-IIC. Furthermore, the machine learning approach based on these functional network measures demonstrated high diagnostic accuracy in distinguishing between these two conditions. These findings suggested that EEG-based functional connectivity analysis could serve as a valuable biomarker for understanding the complex pathophysiology of the IIC and might aid clinicians in the difficult differential diagnosis between NCSE and coma-IIC.
Notes
Conflicts of Interest
No potential conflict of interest relevant to this article was reported.
Author Contributions
Conceptualization, Project administration, Supervision, Formal analysis, Investigation, Methodology, Visualization: Park KM; Data curation, Formal analysis, Validation, Writing–original draft, Writing–review and editing: all authors
Supplementary Materials
Supplementary Figure 1 can be found via https://doi.org/10.47936/encephalitis.2025.00157.
Progress plots for accuracy and loss values to distinguish the patients with non-convulsive status epilepticus and those with coma-ictal-interictal continuum using the VGG19 model
