Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2024 Aug 1.
Published in final edited form as: Epilepsia. 2023 May 6;64(7):1842–1852. doi: 10.1111/epi.17622

Predicting posttraumatic epilepsy using admission electroencephalography after severe traumatic brain injury

Matthew Pease 1, Jonathan Elmer 2,3,4, Ameneh Zare Shahabadi 2, Arka N Mallela 1, Juan F Ruiz-Rodriguez 5, Daniel Sexton 6, Niravkumar Barot 2, Jorge A Gonzalez-Martinez 1, Lori Shutter 1,2,3, David O Okonkwo 1, James F Castellano 2
PMCID: PMC11293840  NIHMSID: NIHMS2004059  PMID: 37073101

Abstract

Objective:

Posttraumatic epilepsy (PTE) develops in as many as one third of severe traumatic brain injury (TBI) patients, often years after injury. Analysis of early electroencephalographic (EEG) features, by both standardized visual interpretation (viEEG) and quantitative EEG (qEEG) analysis, may aid early identification of patients at high risk for PTE.

Methods:

We performed a case–control study using a prospective database of severe TBI patients treated at a single center from 2011 to 2018. We identified patients who survived 2 years postinjury and matched patients with PTE to those without using age and admission Glasgow Coma Scale score. A neuropsychologist recorded outcomes at 1 year using the Expanded Glasgow Outcomes Scale (GOSE). All patients underwent continuous EEG for 3–5 days. A board-certified epileptologist, blinded to outcomes, described viEEG features using standardized descriptions. We extracted 14 qEEG features from an early 5-min epoch, described them using qualitative statistics, then developed two multivariable models to predict long-term risk of PTE (random forest and logistic regression).

Results:

We identified 27 patients with and 35 without PTE. GOSE scores were similar at 1 year (p = .93). The median time to onset of PTE was 7.2 months post-trauma (interquartile range = 2.2–22.2 months). None of the viEEG features was different between the groups. On qEEG, the PTE cohort had higher spectral power in the delta frequencies, more power variance in the delta and theta frequencies, and higher peak envelope (all p < .01). Using random forest, combining qEEG and clinical features produced an area under the curve of .76. Using logistic regression, increases in the delta:theta power ratio (odds ratio [OR] = 1.3, p < .01) and peak envelope (OR = 1.1, p < .01) predicted risk for PTE.

Significance:

In a cohort of severe TBI patients, acute phase EEG features may predict PTE. Predictive models, as applied to this study, may help identify patients at high risk for PTE, assist early clinical management, and guide patient selection for clinical trials.

Keywords: electroencephalography, epilepsy, posttraumatic epilepsy, seizures, traumatic brain injury

1 |. INTRODUCTION

Nearly one in three severe traumatic brain injury (TBI) survivors will develop posttraumatic epilepsy (PTE).14 PTE is the leading cause of epilepsy for those with onset between ages 15 and 24 years and accounts for 20% of symptomatic and 5% of all cases of epilepsy.57 PTE has a deleterious effect on recovery from TBI, as epileptogenic pathways induce central nervous system (CNS) inflammation and degeneration, inhibiting regeneration after injury.8,9 Severe TBI patients with PTE have worse functional outcomes in the short and long term.4,1012

Recent advances in data science allow for earlier, more accurate prognostication in medicine, with a potential for earlier disease intervention.13 Within TBI, advanced modeling techniques integrating multimodal data have improved early prognostication compared to traditional techniques.1416 For patients with epilepsy, early treatment leads to improved cognitive and seizure-free outcomes.1719 Despite the morbidity of PTE and potential for improving epilepsy outcomes with early detection and intervention, no clinical tool exists to identify patients at high risk for PTE.

Electroencephalography (EEG) is a widely used clinical tool in TBI populations both to determine the presence of seizures and seizure risk and to prognosticate acute recovery.20 Both standardized visual EEG (viEEG) and quantitative EEG (qEEG) features have been used to predict outcomes after a variety of brain insults.2124 Specifically in TBI patients, features such as variability or power in specific frequency bands are associated with mortality.25,26 Early work predicting PTE using EEGs, however, was largely unsuccessfully.27 Using visual features and classifying EEGs as normal or abnormal, a large, multicenter group from the 1970s did not find any differences at various time points posttrauma.28 Results in more recent cohorts were mixed, with some finding that EEG had potential predictive power.29,30 These efforts were limited by a reliance on visual, rather than quantitative, EEG features and utilizing late EEGs acquired weeks to months after trauma.

Building on these findings and recognizing the importance of early, within days of trauma, risk stratification of PTE, we evaluated early viEEG and qEEG features in an age- and outcome-matched severe TBI cohort. The discovery of novel early electrophysiologic biomarkers of PTE will not only aid current clinical management of TBI patients, but also support evaluation of early antiepileptogenic interventions in TBI populations.

2 |. MATERIALS AND METHODS

We performed a case–control study sampled from a prospective database of severe TBI patients admitted to a level 1 trauma center between March 2011 and December 2018.31 This study received approval from the University of Pittsburgh Human Research Protection Office with consent from subjects’ legal representatives. Research procedures followed the ethical standards of the responsible committee on human experimentation and the Helsinki Declaration of 1975. Data are available to qualified researchers upon request. We followed the STARD (Standards for Reporting Diagnostic Accuracy Studies) reporting guidelines.32

Our prospective database has been previously described1,14,31 and includes patients 16–80 years old with severe TBI, defined as a postresuscitation Glasgow Coma Scale (GCS) score ≤ 8. Our database excluded patients with imminent brain death (GCS = 3 with fixed and dilated pupils), pregnancy, and/or penetrating trauma. Trained neuropsychologists assessed outcomes through a structured interview at 3, 6, 12, and 24 months posttrauma using the Glasgow Outcome Scale Expanded (GOSE): 1 = death, 2 = vegetative state, 3 = lower severe disability, 4 = upper severe disability, 5 = lower moderate disability, 6 = upper moderate disability, 7 = lower good recovery, 8 = upper good recovery.

We retrospectively identified incidence and timing of PTE by completing a structured review of the electronic health records at our health system and nearby systems. As previously described,1,33,34 we defined PTE as a single late posttraumatic seizure (i.e., >7 days posttrauma). A seizure included any clinical event deemed to be a seizure by the treating health care team or an electrographic seizure on EEG. All patients typically received a 7-day course of prophylactic phenytoin after their initial trauma.

For our cohort, we identified all patients in the database who survived 2 years after their severe TBI. We excluded patients with pre-existing epilepsy or alcohol withdrawal seizures, or who had an early post-traumatic seizure prior to or during EEG recording. From this cohort, we identified all patients who had PTE and an interpretable, early EEG. Then, we identified one matched control patient with severe TBI without subsequent PTE for each case. To do so, we identified patients within the same decade of life (age) who had a similar GCS score ± 1 point. As our overall cohort was unbalanced, with fewer PTE patients, we increased our non-PTE cohort size through performing a second round of matching 15 non-PTE to 15 PTE randomly selected PTE patients (i.e., repeat sampling). After matching, we excluded any patients without PTE and EEG files that we were unable to analyze.

All patients underwent continuous, video-EEG monitoring for 3–5 days after injury as part of standard of care. A board-certified epileptologist, blinded to PTE outcomes, identified the earliest 5-min clip of artifact-free EEG for qEEG analyses. This EEG included any epileptic or pathological events, if present. The epileptologist described viEEG features over the first 30 min of initial recording using standard American Clinical Neurophysiology Society (ACNS) nomenclature.35 Given the low prevalence of individual categories of epileptiform discharges and their lack of association with PTE (Table S1), we grouped together all epileptiform features according to ACNS guidelines, including lateralized rhythmic delta activity, lateralized periodic discharges, sharp waves, spikes, ictal–interictal continuum, and brief potentially ictal rhythmic discharges.35 We also evaluated presence of background alpha activity, as this is associated with normal brain activity and has been found to be correlated with TBI outcomes.26

For quantitative EEG analyses, we utilized Persyst Version 14, an automated EEG analysis software, to extract the following qEEG features calculated at a frequency of 1 Hz.35 We averaged both hemispheres together for our first analysis to identify features different in patients with PTE compared to those without PTE:

  1. Bandpass filtered spectral power from fast Fourier transformation, averaged across all electrodes and summed within frequency bins: delta (.5–4 Hz), theta (4.01–8 Hz), beta (8.01–13 Hz), and alpha (>13 Hz);

  2. Mean amplitude integrated EEG: description of the overall EEG amplitude that covers a broad range of frequencies, inclusive of .16–1 Hz;

  3. Peak envelope: a peak-to-peak measure of EEG amplitude that is inclusive of EEG frequencies from the 0–25-Hz range; and

  4. Rhythm spectrogram: quantitative measure of the EEG rhythm similarly stratified by the frequency bands listed above.

Given the large proportion of patients who underwent decompressive hemicraniectomy (DHC), resulting in asymmetric breach rhythms and potential confounding effects on qEEG data, we performed a secondary subanalysis stratifying cranial hemispheres by presence or absence of cranial defects from DHC. We first identified all features significantly different in our initial analysis (all patients with hemispheres averaged together) and subsequently evaluated these qEEG features in hemispheres with cranial defects from DHC stratified by PTE. We performed a similar analysis for the hemispheres without cranial defects from DHC. As an example, in a patient with a right-sided DHC, the right hemisphere with a cranial defect would be analyzed against other hemispheres with cranial defects from DHC, and the left hemisphere without a cranial defect would be analyzed against nondecompressed hemispheres. Patients without DHC (i.e., an intact cranium) would have both hemispheres averaged together and included in the no cranial defect from DHC analysis, whereas patients with bilateral frontotemporal craniectomies (i.e., the Kjellberg craniectomy) were counted as having bilateral cranial defects with both hemispheres averaged together and included in the cranial defect from DHC analysis.36

2.1 |. Statistical methods

We summarized clinical and EEG features using descriptive statistics. Where appropriate, we used two-sided Student t-test for normally distributed variables and χ2 or Fisher exact test for categorical variables. We adjusted p-values for our qEEG and viEEG features’ false discovery rate using the method popularized by Benjamini and Hochberg.37

We performed two multivariable analyses to assess: (1) our ability to predict PTE using early EEG features; and (2) the independent association of viEEG, qEEG, and clinical information with PTE. First, we used random forest modeling to predict long-term risk of PTE. Random forest is a robust, tree-based model that can handle multiple data types and minimizes the potential for overfitting, especially in small samples.38 Our multivariable modeling approach with random forest has been used several times in previous qEEG studies in TBI evaluating functional and mortality outcomes.22,23 For all of our classification tasks, our random forest models had 500 trees, with a maximum depth of m/2, where m is the number of model features.22,23

We developed four random forest models with different feature sets. We developed a random forest model using all of the qEEG features we collected (Model 1). Then, we developed subsequent random forest models using all of the viEEG features (Model 3) and clinical features (Model 4). Next, to compare the relative effects of viEEG, qEEG, and clinical data, we developed a random forest model using all features that were significantly different on univariable analysis when stratified by PTE (Model 5). We excluded nonsignificant features to avoid overfitting.

For our second multivariable modeling approach, we developed an adjusted logistic regression model (Model 2) using only qEEG features. We used logistic regression, another machine learning modeling approach, for several reasons. Logistic regression has highly explainable features in the form of odds ratios, a possible benefit over random forest. Additionally, by using a second methodologically distinct approach, we minimize the risk that our results reflect overfitting from one particular modeling structure.

Our initial logistic model suffered from multicollinearity across measures of spectral power.39 This finding is a result of the inherent interdependent nature of the raw features. Using isolated frequency band power as an example, an increase in power of one frequency band (i.e., delta) indicates lower power in the other frequency bands (i.e., theta, alpha, beta). To account for this, we normalized these measures to compare their ratio of each combination of power bands (i.e., delta:theta, delta:beta, theta:alpha, etc.). Power ratios are commonly used in qEEG studies, because these ratios are predictive of outcomes and eliminate the need for the nonintuitive units of spectral power (μV2/Hz).4042

When building our logistic regression model, we excluded all qEEG features and ratios that failed the linearity assumption. We then used a probabilistic approach for feature selection using the Akaike information criterion.43 We scaled final variables for ease of interpretation, and checked model assumptions by evaluating for multicollinearity and outliers in the final model. We report odds ratios (ORs) with 95% confidence intervals (CIs).

For all models, we reported the area under the curve (AUC) using leave-one out cross-validation (LOOCV). We compared each model’s AUC to the base qEEG model to assess for significant improvements in performance.44 Additionally, we tested whether models had discriminatory ability by comparing each model to chance (i.e., a model with a 50% chance of correctly identifying the correct choice).

To understand the relative importance of the features in our final, all-inclusive random forest Model 5, we implemented Shapley Additive Explanations (SHAP), a common post hoc analysis approach used in machine learning. Briefly, SHAP is an additive feature attribution technique that explains a tree ensemble’s overall performance by analyzing the relative importance of each model feature.45,46 This relative importance is visually displayed in a bee swarm plot. We used R and Python (version 3.8.3) for all analyses. Statistical significance was defined as p < .05.

3 |. RESULTS

Overall, 124 patients with severe TBI from March 2011 through December 2018 were eligible for our study, excluding the 78 who died within 2 years posttrauma, eight with pre-existing epilepsy or alcohol withdrawal seizures, and five with seizures prior to or during EEG recording (Figure 1). Of the 29 patients with PTE, 27 had usable EEG data. The median time to onset of PTE was 7.2 months posttrauma (interquartile range = 2.2–22.2 months). After matching 42 patients using age and admission GCS, seven patients had corrupted or missing EEG files, leaving 35 of 82 patients without PTE for our final cohort. Only one patient had an early seizure (within 7 days of trauma) on posttrauma day 7, and this was after discontinuation of the EEG used for this analysis that was obtained on posttrauma day 2. This patient went on to have a late (>7 days) posttraumatic seizure and thus was included in the PTE group. Table S2, which compares clinical and outcome information for those included and not included in our study, does not show any significant differences.

FIGURE 1.

FIGURE 1

Consort diagram. For our case–control study, we included all patients from a prospective database of severe traumatic brain injury (TBI) patients who survived 2 years posttrauma and did not have pre-existing epilepsy, alcoholic (EtOH) withdrawal seizures, or seizures within 72 h of trauma, when our electroencephalograms (EEGs) were collected. We subsequently matched all patients with posttraumatic epilepsy (PTE) and available EEG to those without using age and admission Glasgow Coma Scale. We matched an additional 15 patients without PTE to 15 randomly selected patients from our PTE cohort, as our dataset was unbalanced, with more patients without PTE than with PTE. After matching, we excluded all patients without PTE who had missing EEG.

Table 1 displays clinical characteristics of the patient cohort. Consistent with our matching, patients were similar in age (p = .11) and GCS (p = .63). PTE patients had significantly higher rates of DHC than those without PTE (63% [n = 17] versus 26% [n = 9], p < .01). Whereas outcomes for PTE patients were worse at 3 months (p = .02), by 6, 12, and 24 months posttrauma, the GOSE scores were similar (p > .15; Table 2). Our follow-up rates at 3 (88%), 6 (82%), 12 (78%), and 24 months (45%) posttrauma are consistent with historical norms for clinical trials in TBI, although our follow-up rates are artificially depressed by excluding patients who died within 2 years.47

TABLE 1.

Patient characteristics.

Characteristic PTE, n = 27 No PTE, n = 35 p
Age (years) 31 ± 14 37 ± 16 .11
Sex, male 81% (22) 71% (25) .36
DHC 63% (17) 26% (9) <.01a
GCS
 3 15% (4) 22% (8) .63
 4 0% (0) 6% (2)
 5 4% (1) 9% (3)
 6 15% (4) 17% (6)
 7 59% (16) 43% (15)
 8 7% (2) 3% (1)

Note: All patients survived to 2 years and were matched based on age and admission GCS.

Abbreviations: DHC, decompressive hemicraniectomy; GCS, Glasgow Coma Scale; PTE, posttraumatic epilepsy.

a

Statistically significant.

TABLE 2.

Patient outcomes.

GOSE PTE, n = 27 No PTE, n = 23 p
3 months
 2 30% (8/26) 4% (1/27) .02a
 3 42% (11/26) 48% (13/27)
 4 12% (3/26) 11% (3/27)
 5 12% (3/26) 11% (3/27)
 6 0% (0/26) 15% (4/27)
 7 0% (0/26) 11% (3/27)
 8 4% (1/26) 0% (0/27)
6 months
 2 8% (2/25) 0% (0/24) .46
 3 52% (13/25) 54% (13/24)
 4 12% (3/25) 0% (0/24)
 5 4% (1/25 4% (1/24)
 6 8% (2/25) 17% (4/24)
 7 8% (2/25) 17% (4/24)
 8 8% (2/25) 8% (2/24)
12 months
 2 4% (1/23) 0% (0/26) .93
 3 52% (12/23) 45% (12/26)
 4 13% (3/23) 12% (3/26)
 5 18% (4/23) 15% (4/26)
 6 0% (0/23) 4% (1/26)
 7 9% (2/23) 12% (3/26)
 8 4% (1/23) 12% (3/26)
24 months
 2 0% (0/12) 0% (0/12) .15
 3 41% (5/12) 7% (1/16)
 4 25% (3/12) 25% (4/16)
 5 0% (0/12) 25% (4/16)
 6 17% (2/12) 19% (3/16)
 7 17% (2/12) 12% (2/16)
 8 0% (0/12) 12% (2/16)

Note: GOSE was recorded by a trained neuropsychologist at 3, 6, and 12 months postinjury.

Abbreviations: GOSE, Glasgow Outcome Scale Expanded; PTE, posttraumatic epilepsy.

a

Statistically significant.

Table 3 displays the viEEG features. After correcting for false detection rate, none of the viEEG features was significantly different when stratifying by PTE. Table 4 compares qEEG features for those with and without PTE. Patients with PTE have significantly higher power in the delta spectrogram (Figure 2A), as well as variance in power in the delta and theta frequencies, and peak envelope. To assess whether our findings were related to cranial defects from DHC, we separately compared hemispheres with and without cranial defects. We found similar effects (Table 4, Figure 2B) as when we did not control for DHC.

TABLE 3.

Visual EEG features.

Characteristic PTE, n = 27 No PTE, n = 35 p
Continuous 93% (25/27) 74% (26/35) .16
Disorganized 96% (26/27) 91% (32/35) .70
Voltage attenuation present 44% (12/27) 40% (14/35) .78
Focal slowing present 70% (16/23) 51% (18/35) .25
Background alpha activity present 30% (8/27) 49% (17/35) .21
Epileptiform activity 11% (3/27) 11% (4/35) .99

Note: A board-certified epileptologist, blinded to PTE outcomes, scored 30-min clips of EEG using standard reporting from the ACNS. We did not report breach or symmetry, as these were strongly influenced by decompressive hemicraniectomy. We grouped together all epileptiform features according to ACNS guidelines, which include lateralized rhythmic delta activity, lateralized periodic discharges, sharps, spikes, ictal–interictal continuum, and brief ictal rhythmic discharges. Individual epileptiform discharges had no association with PTE (Table S1). Hemispheres with breach rhythm were not analyzed independently for the visual EEG features. We only evaluated background alpha activity, as this is associated with normal brain activity and has been found to be correlated with traumatic brain injury severity.26

Abbreviations: ACNS, American Clinical Neurophysiology Society; EEG, electroencephalographic; PTE, posttraumatic epilepsy.

TABLE 4.

Quantitative EEG features.

GOSE PTE, n = 27 No PTE, n = 23 p
FFT spectrogram
 Delta mean 1.28 ± .36 .94 ± .23 .001a
 Delta variance .53 ± .29 .24 ± .14 <.001a
 Theta mean .70 ± .22 .60 ± .16 .14
 Theta variance .12 ± .07 .07 ± .04 <.01a
 Alpha mean .57 ± .19 .52 ± .14 .37
 Alpha variance .08 ± .06 .05 ± .03 .10
 Beta mean .44 ± .16 .41 ± .11 .58
 Beta variance .05 ± .04 .05 ± .05 .99
 Mean EEG amplitude 10 ± 6 8 ± 4 .15
 Peak envelope 26 ± 13 16 ± 7 <.01a
Rhythm spectrogram
 Delta .51 ± .39 .32 ± .22 .07
 Theta .82 ± .60 .65 ± .38 .28
 Alpha .56 ± .77 .38 ± 23 .33
 Beta .33 ± .24 .28 ± .18 .37
No DHC PTE, n = 25 No PTE, n = 33 p
FFT spectrogram
 Delta mean 1.19 ± .33 .94 ± .24 <.01a
 Delta variance .41 ± .23 .23 ± .15 <.01a
 Theta variance .09 ± .05 .07 ± .04 .18
 Peak envelope 22 ± 11 17 ± 7 .06
DHC PTE, n = 17 No PTE, n = 9 P
FFT spectrogram
 Delta mean 1.48 ± .48 .96 ± .21 <.01a
 Delta variance .68 ± .39 .22 ± .09 <.01a
 Theta variance .16 ± .09 .07 ± .04 <.01a
 Peak envelope 36 ± 19 16 ± 7 .02a

Note: We extracted 14 quantitative EEG features per patient, which are described in more detail in the Materials and Methods section. To control for the differences in rates of DHC between those with PTE and those without, we evaluated decompressed hemispheres stratified by PTE, and nondecompressed hemispheres, as a separate subanalysis. This allows us to control for changes in power and amplitude from a cranial defect. For example, if a patient had a right-sided DHC, the right side with the cranial defect would be included in the “DHC” subanalysis, whereas the left side without a cranial defect would be included in the “No DHC” analysis. We adjusted p-values for false discovery rate using the method popularized by Benjamini and Hochberg.37

Abbreviations: DHC, decompressive hemicraniectomy; EEG, electroencephalographic; FFT, fast Fourier transform; PTE, posttraumatic epilepsy.

a

Statistically significant.

FIGURE 2.

FIGURE 2

(A) Box plot of spectral power stratified by frequency band. The mean power was significantly different in the delta frequency, but similar for all other frequencies. (B) Delta power stratified by decompressive hemicraniectomy (DHC). To control for differing rates of DHC between patients with and without posttraumatic epilepsy, we compared the spectral power in the delta frequency in hemispheres with and without DHC. For example, for a patient who had a right-sided DHC, the right, decompressed hemisphere would be included in the “DHC” analysis, whereas the left, nondecompressed hemisphere would be included in the “No DHC” analysis. For patients who have not had a DHC, the hemispheres were average together and included in the “No DHC” analysis.

To assess our ability to predict the long-term risk of PTE and assess the relative importance of viEEG, qEEG, and clinical features, we developed a series of machine learning models using LOOCV (Table 5). Our first model (Model 1) using all 14 qEEG features had an AUC of .70 (95% CI = .55–.84). Model 2, our logistic regression model with the same qEEG feature set, had a similar AUC (.70; 95% CI = .57–.84, p = .95). The logistic regression model, after feature selection, included delta:theta power ratio (OR = 1.3 for a .1 increase in the ratio, 95% CI = 1.1–1.6, p < .01) and peak envelope (OR = 1.1, 95% CI = 1.0–1.2, p < .01). Both delta:theta ratio (1.9 for PTE [95% CI = 1.8–2.0] vs. 1.6 for no PTE [95% CI = 1.5–1.7], p < .001) and peak envelope were significant using descriptive statistics. Models 3 (AUC = .57, 95% CI = .42–.73) and 4 (AUC = .55, 95% CI = .40–.70) included all of the viEEG and clinical features, respectively. Neither model was able to discriminate risk of PTE better than chance (p > .36 for both).

TABLE 5.

Models.

Model Features Model AUC 95% CI p
1 qEEG RF .70 .55–.84
2 qEEG Logistic .70 .57–.84 .95
3 viEEG RF .57 .42–.73 .23
4 Clinical RF .55 .40–.70 .14
5 All RF .76 .63–.89 .06

Note: We developed a series of models to predict long-term risk of posttraumatic epilepsy. Models 1, 3, 4, and 5 were built using RF. Models 1, 3, and 4 used all of the qEEG, viEEG, and clinical features, respectively, in the dataset. The visual and clinical models lacked significant discrimination compared to chance (p > .36). Model 5 included all clinical and qEEG features significant using descriptive statistics (i.e., decompressive hemicraniectomy, delta mean power, delta variance, theta variance, and peak envelope). Model 2 was a logistic regression model, described further in the Materials and Methods section. To assess model performance, we compared all model performances using the AUC to our base, qEEG model. Model 5, including qEEG and clinical features, led to an improvement in performance that did not reach the preset threshold for statistical significance (p = .06). Of note, we were unable to score focal slowing for four patients due to technical/artifactual limitations, and Model 3 is build using 46 patients.

Abbreviations: AUC, area under the curve; CI, confidence interval; qEEG, quantitative electroencephalography; RF, random forest; viEEG, visual electroencephalography.

Our last model (Model 5) combined all clinical, visual, and quantitative EEG features significant using descriptive analysis. From Tables 3 and 4, this included no viEEG features, one clinical feature (DHC), and four qEEG features (delta power, delta variance, theta variance, and peak envelope). The AUC for Model 5 was .76 (95% CI = .63–.89), an improvement on Model 1 (qEEG features; AUC = .70), which did not reach the prespecified level for statistical significance (p = .06). We assessed the relative importance of various features in Model 5 using SHAP (Figure 3). Delta variance, delta mean power, and DHC were the three most important features for model performance.

FIGURE 3.

FIGURE 3

Shapley Additive Explanations (SHAP) summary plot and feature ranking. This plot demonstrates the relative importance of the various features in our Model 5, including significant quantitative electroencephalography and clinical features (i.e., decompressive hemicraniectomy [DHC], mean delta power, delta variance, theta variance, and peak envelope). The higher the SHAP value, the higher the risk of developing posttraumatic epilepsy. Model features are listed according to their relative importance as assessed by SHAP values, with delta variance as the most important feature. A dot is created for each feature attribution value for the model for each patient and smoothed to a violin shape. The violin is colored according to the values of the features, with red representing higher feature values and blue representing lower feature values.

4 |. DISCUSSION

In a cohort of long-term severe TBI survivors, we demonstrated that early EEG biomarkers, acquired within a few days of trauma, can accurately predict the long-term risk for developing PTE. Our results build upon prior literature utilizing early EEG features to prognose long-term mortality and functional outcomes in a variety of neurological diseases.2225,48 For TBI specifically, a variety of early qEEG features, including absolute power and variability, accurately predict mortality, although often at an early time point (i.e., discharge from hospital).22,25,26,48 We extended these findings to predicting the long-term risk of PTE, a potentially treatable condition that lowers quality of life and increases health care burden.49,50 Unlike early mortality prediction, our models identify risk of disease occurring months to years after initial trauma.2 Although patients at high risk for PTE frequently have more severe injuries, our EEG biomarkers are not simply a reflection of injury severity, as our patients were clinically matched, survived 2 years posttrauma, and had similar functional outcomes at 1 and 2 years. Taken together, our modeling results show that machine learning approaches using early EEG biomarkers can discriminate the long-term risk of epilepsy. This finding has important clinical and translational implications. Early prediction may not only guide prognosis but also direct more prompt treatment. Ample evidence suggests that inherent CNS plasticity mechanisms are most adaptable during the early postinjury period, and therefore the very early identification of epilepsy risk creates an optimal window for antiepileptogenic therapeutics.51

We have also demonstrated the relative strength of early quantitative EEG analysis over the clinical gold standard of viEEG analysis in epilepsy outcome prediction. As evidenced by our findings, early qualitative viEEG analysis lacks significant discriminatory ability to predict long-term outcomes. This is likely the result of the lack of salient visual features on these early EEGs, which are heavily impacted by both anesthetic effects and artifacts such as breach rhythm caused by craniotomy. On the other hand, qEEG, and specifically spectral power analysis, can elucidate findings not readily apparent on standard visual analysis. Importantly, classic viEEG markers of epilepsy such as presence of epileptiform activity did not discriminate risk of PTE in our study. This result, albeit surprising, is likely related to the relatively low incidence of these features in early EEG analysis.

From a methodology perspective, we developed an innovative, yet simple, approach for analyzing qEEG features in severe TBI patients by controlling for cranial defects after neurosurgical craniectomies. DHC is a common treatment for elevations of intracranial pressure in severe TBI, occurring in 42% of our cohort, and strongly associated with clinical outcomes.36,52,53 The resulting skull defect leads to the loss of dispersive filtering, changing the EEG signature in regions underlying the defect.54 Previous qEEG prognostic efforts have largely ignored this important technical limitation, confounding prediction.22,26 To account for the effects of skull defects, we performed a subanalysis of cerebral hemisphere-based skull defects from DHC, only comparing hemispheres with cranial defects to others with cranial defects and vice versa (Table 4, Figure 2B). This analysis yielded similar results after controlling for DHC cranial defects, highlighting the robust nature of our EEG biomarkers.

Building on our prior work, these results suggest that early EEG analysis may augment the predictive capabilities of early clinical data on the outcome of PTE.1 The high incidence of PTE in severe TBI patients provides a unique opportunity to identify the risk of epilepsy, sometimes years in advance, in a cohort of patients who have yet to have an epileptic seizure. PTE risk modeling should not be limited to EEG analysis; we previously demonstrated that, similar to EEG, deep learning of cranial imaging can predict long-term outcomes in severe TBI.14 Future analyses will be aimed at incorporating multimodel clinical and radiologic data with early EEG biomarkers to optimize PTE risk prediction.

There are several potential limitations of the current study. We performed a retrospective case–control study, which can introduce bias. Despite this format, the larger TBI sample population from which this cohort was obtained was followed prospectively with standardized clinical assessments, thereby enriching the integrity of the data. Another possible limitation is the unequal distribution of DHC within the two patient populations, which we attempted to control for through our analytic approach. Lastly, our modeling efforts are limited by a low patient volume (n = 62) and high number of features, potentially leading to overfitting. Although 62 is a small number of patients compared to large-scale TBI clinical trials, this is the norm for studies of qEEG due to the data-rich nature of qEEG.22,25 Our 1-Hz frequency band allowed us to collect each feature 300 times per patient over the 5-min EEG. Similarly, random forest modeling approaches are a commonly used machine learning tool in medicine specifically for their tendency to avoid overfitting.55,56 Any model using EEG features, including this one, should be externally validated prior to clinical use.

5 |. CONCLUSIONS

In a cohort of severe TBI patients, quantitative early EEG features can distinguish the long-term risk of PTE. We illustrate the limitations of traditional viEEG analysis and provide a methodological innovation for craniotomy-related artifact. Our findings indicate early prognostication of PTE and present an opportunity for future antiepileptogenic interventions.

Supplementary Material

Tables S1 and S2

Key Points.

  • Despite one third of severe TBI survivors developing posttraumatic epilepsy, no tools exist to identify patients at high risk for epilepsy

  • We performed a case–control study to identify quantitative and qualitative electroencephalographic features that differed in patients with and without posttraumatic epilepsy

  • In multivariable modeling using clinical and electroencephalographic features, a random forest model could predict risk of epilepsy with an area under the curve of .76, and logistic regression showed independent associations of delta:theta power ratio and peak envelope with posttraumatic epilepsy

  • Very early electroencephalographic features can discriminate patients based on long-term risk of posttraumatic epilepsy

ACKNOWLEDGMENTS

We did not receive funding for this study.

Footnotes

SUPPORTING INFORMATION

Additional supporting information can be found online in the Supporting Information section at the end of this article.

CONFLICT OF INTEREST STATEMENT

J.A.G.-M. accepts consulting fees from Zimmer Biomet. None of the other authors has any conflict of interest to disclose.

DATA AVAILABILITY STATEMENT

Data will be available to qualified researchers upon request.

REFERENCES

  • 1.Pease M, Gonzalez-Martinez J, Puccio A, Nwachuku E, Castellano JF, Okonkwo DO, et al. Risk factors and incidence of epilepsy after severe traumatic brain injury. Ann Neurol. 2022;92:663–9. 10.1002/ana.26443 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Annegers JF, Hauser WA, Coan SP, Rocca WA. A population-based study of seizures after traumatic brain injuries. N Engl J Med. 1998;338(1):20–4. 10.1056/NEJM199801013380104 [DOI] [PubMed] [Google Scholar]
  • 3.Englander J, Bushnik T, Duong TT, Cifu DX, Zafonte R, Wright J, et al. Analyzing risk factors for late posttraumatic seizures: a prospective, multicenter investigation. Arch Phys Med Rehabil. 2003;84(3 Suppl. 1):365–73. 10.1053/apmr.2003.50022 [DOI] [PubMed] [Google Scholar]
  • 4.Tubi MA, Lutkenhoff E, Blanco MB, McArthur D, Villablanca P, Ellingson B, et al. Early seizures and temporal lobe trauma predict post-traumatic epilepsy: a longitudinal study. Neurobiol Dis. 2019;123:115–21. 10.1016/j.nbd.2018.05.014 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Gupta PK, Sayed N, Ding K, Agostini MA, van Ness PC, Yablon S, et al. Subtypes of post-traumatic epilepsy: clinical, electrophysiological, and imaging features. J Neurotrauma. 2014;31(16):1439–43. 10.1089/neu.2013.3221 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Thijs RD, Surges R, O’Brien TJ, Sander JW. Epilepsy in adults. Lancet. 2019;393(10172):689–701. 10.1016/S0140-6736(18)32596-0 [DOI] [PubMed] [Google Scholar]
  • 7.Fordington S, Manford M. A review of seizures and epilepsy following traumatic brain injury. J Neurol. 2020;267(10):3105–11. 10.1007/s00415-020-09926-w [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Farrell JS, Wolff MD, Teskey GC. Neurodegeneration and pathology in epilepsy: clinical and basic perspectives. Adv Neurobiol. 2017;15:317–34. 10.1007/978-3-319-57193-5_12 [DOI] [PubMed] [Google Scholar]
  • 9.Mukhtar I. Inflammatory and immune mechanisms underlying epileptogenesis and epilepsy: from pathogenesis to treatment target. Seizure. 2020;82:65–79. 10.1016/j.seizure.2020.09.015 [DOI] [PubMed] [Google Scholar]
  • 10.Burke J, Gugger J, Ding K, Kim JA, Foreman B, Yue JK, et al. Association of Posttraumatic Epilepsy with 1-year outcomes after traumatic brain injury. JAMA Netw Open. 2021;4(12):1–14. 10.1001/jamanetworkopen.2021.40191 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Pease M, Mallela AN, Elmer J, Okonkwo DO, Shutter L, Barot N, et al. Association of posttraumatic epilepsy with long-term functional outcomes in individuals with severe traumatic brain injury. Neurology. 2023. [Online ahead of print]. 10.1212/WNL.0000000000207183 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Pingue V, Mele C, Nardone A. Post-traumatic seizures and antiepileptic therapy as predictors of the functional outcome in patients with traumatic brain injury. Sci Rep. 2021;11(1):1–12. 10.1038/s41598-021-84203-y [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Titano JJ, Badgeley M, Schefflein J, Pain M, Su A, Cai M, et al. Automated deep-neural-network surveillance of cranial images for acute neurologic events. Nat Med. 2018;24(9):1337–41. 10.1038/s41591-018-0147-y [DOI] [PubMed] [Google Scholar]
  • 14.Pease M, Arefan D, Barber J, Yuh E, Puccio A, Hochberger K, et al. Outcome prediction in patients with severe traumatic brain injury using deep learning from head CT scans. Radiology. 2022;304:385–94. 10.1148/radiol.212181 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Farzaneh N, Williamson CA, Gryak J, Najarian K. A hierarchical expert-guided machine learning framework for clinical decision support systems: an application to traumatic brain injury prognostication. Npj Digit Med. 2021;4(1):1–9. 10.1038/s41746-021-00445-0 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Raj R, Luostarinen T, Pursiainen E, Posti JP, Takala RSK, Bendel S, et al. Machine learning-based dynamic mortality prediction after traumatic brain injury. Sci Rep. 2019;9(1):1–13. 10.1038/s41598-019-53889-6 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Yang I, Chang EF, Han SJ, Barry JJ, Fang S, Tihan T, et al. Early surgical intervention in adult patients with ganglioglioma is associated with improved clinical seizure outcomes. J Clin Neurosci off J Neurosurg Soc Australas. 2011;18(1):29–33. 10.1016/j.jocn.2010.05.002 [DOI] [PubMed] [Google Scholar]
  • 18.Freitag H, Tuxhorn I. Cognitive function in preschool children after epilepsy surgery: rationale for early intervention. Epilepsia. 2005;46(4):561–7. 10.1111/j.0013-9580.2005.03504.x [DOI] [PubMed] [Google Scholar]
  • 19.Engel JJ, McDermott MP, Wiebe S, Langfitt JT, Stern JM, Dewar S, et al. Early surgical therapy for drug-resistant temporal lobe epilepsy: a randomized trial. JAMA. 2012;307(9):922–30. 10.1001/jama.2012.220 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Etc MCS, Das C, Lucia MS, H K, T J. 乳鼠心肌提取 HHS public access. Physiol Behav. 2019;176(3):139–48. 10.1097/CCM.0000000000003639.Continuous [DOI] [Google Scholar]
  • 21.Chen DF, Kumari P, Haider HA, Ruiz AR, Lega J, Dhakar MB. Association of Epileptiform Abnormality on electroencephalography with development of epilepsy after acute brain injury. Neurocrit Care. 2021;35(2):428–33. 10.1007/s12028-020-01182-0 [DOI] [PubMed] [Google Scholar]
  • 22.Haveman ME, van Putten MJAM, Beishuizen A, Hom HW, Eertman-Meyer CJ, Tjepkema-Cloostermans MC. P39-T predicting outcome in patients with moderate to severe traumatic brain injury using electroencephalography. Clin Neurophysiol. 2019;130(7):e50. 10.1016/j.clinph.2019.04.402 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Müller M, Rossetti AO, Zimmermann R, Alvarez V, Rüegg S, Haenggi M, et al. Standardized visual EEG features predict outcome in patients with acute consciousness impairment of various etiologies. Crit Care. 2020;24(1):1–13. 10.1186/s13054-020-03407-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Westhall E, Rossetti AO, Van Rootselaar A, Wesenberg Kjaer T, Horn J, Ullén S, et al. Standardized EEG interpretation accurately predicts prognosis after cardiac arrest. Neurology. 2016;86(16):1482–90. 10.1212/WNL.0000000000002462 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Noor NSEM, Ibrahim H. Machine learning algorithms and quantitative electroencephalography predictors for outcome prediction in traumatic brain injury: A systematic review. IEEE Access. 2020;8:102075–92. 10.1109/ACCESS.2020.2998934 [DOI] [Google Scholar]
  • 26.Vespa PM, Boscardin WJ, Hovda DA, McArthur DL, Nuwer MR, Martin NA, et al. Early and persistent impaired percent alpha variability on continuous electroencephalography monitoring as predictive of poor outcome after traumatic brain injury. J Neurosurg. 2002;97(1):84–92. 10.3171/jns.2002.97.1.0084 [DOI] [PubMed] [Google Scholar]
  • 27.Smith PH, Bessette AJ, Weinberger AH, Sheffer CE, Mckee SA. 乳鼠心肌提取 HHS public access. Physiol Behav. 2016;92(3):135–40. 10.1016/j.nbd.2018.06.002.Electrophysiological [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Jennett B, van de Sande J. EEG prediction of post-traumatic epilepsy. Epilepsia. 1975;16(2):251–6. 10.1111/j.1528-1157.1975.tb06055.x [DOI] [PubMed] [Google Scholar]
  • 29.Foster JB. Traumatic epilepsy. Med Leg J. 1962;30(4):20–4. 10.1177/002581726203000103 [DOI] [PubMed] [Google Scholar]
  • 30.Angeleri F, Majkowski J, Cacchiò G, Sobieszek A, D’Acunto S, Gesuita R, et al. Posttraumatic epilepsy risk factors: one-year prospective study after head injury. Epilepsia. 1999;40(9):1222–30. 10.1111/j.1528-1157.1999.tb00850.x [DOI] [PubMed] [Google Scholar]
  • 31.Pease M, Nwachuku E, Goldschmidt E, Elmer J, Okonkwo DO. Complications from multimodal monitoring do not affect long-term outcomes in severe traumatic brain injury. World Neurosurg. 2022;161:e109–17. 10.1016/j.wneu.2022.01.059 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Bossuyt PM, Reitsma JB, Bruns DE, Gatsonis CA, Glasziou PP, Irwig L, et al. STARD 2015: an updated list of essential items for reporting diagnostic accuracy studies. Radiology. 2015;277(3):826–32. 10.1148/radiol.2015151516 [DOI] [PubMed] [Google Scholar]
  • 33.Ritter AC, Wagner AK, Fabio A, Pugh MJ, Walker WC, Szaflarski JP, et al. Incidence and risk factors of posttraumatic seizures following traumatic brain injury: A traumatic brain injury model systems study. Epilepsia. 2016;57(12):1968–77. 10.1111/epi.13582 [DOI] [PubMed] [Google Scholar]
  • 34.Haltiner AM, Temkin NR, Dikmen SS. Risk of seizure recurrence after the first late posttraumatic seizure. Arch Phys Med Rehabil. 1997;78(8):835–40. 10.1016/S0003-9993(97)90196-9 [DOI] [PubMed] [Google Scholar]
  • 35.Hirsch LJ, Fong MWK, Leitinger M, LaRoche SM, Beniczky S, Abend NS, et al. American clinical neurophysiology Society’s standardized critical care EEG terminology: 2021 version. J Clin Neurophysiol. 2021;38(1):1–29. 10.1097/WNP.0000000000000806 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Cooper DJ, Rosenfeld JV, Murray L, Arabi YM, Davies AR, D’Urso P, et al. Decompressive craniectomy in diffuse traumatic brain injury. N Engl J Med. 2011;364(16):1493–502. 10.1056/NEJMoa1102077 [DOI] [PubMed] [Google Scholar]
  • 37.Benjamini Y, Hochberg Y. Controlling the false discovery rate: a practical and powerful approach to multiple testing. J R Stat Soc Ser B. 1995;57(1):289–300. [Google Scholar]
  • 38.Biau G, Scornet E. A random forest guided tour. TEST. 2016;25(2):197–227. 10.1007/s11749-016-0481-7 [DOI] [Google Scholar]
  • 39.Marcoulides KM, Raykov T. Evaluation of variance inflation factors in regression models using latent variable modeling methods. Educ Psychol Meas. 2019;79(5):874–82. 10.1177/0013164418817803 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.Özbek Y, Fide E, Yener GG. Resting-state EEG alpha/theta power ratio discriminates early-onset Alzheimer’s disease from healthy controls. Clin Neurophysiol off J Int Fed Clin Neurophysiol. 2021;132(9):2019–31. 10.1016/j.clinph.2021.05.012 [DOI] [PubMed] [Google Scholar]
  • 41.Moretti DV, Paternicò D, Binetti G, Zanetti O, Frisoni GB. Electroencephalographic upper/low alpha frequency power ratio relates to cortex thinning in mild cognitive impairment. Neurodegener Dis. 2014;14(1):18–30. 10.1159/000354863 [DOI] [PubMed] [Google Scholar]
  • 42.Yu Z, Wen D, Zheng J, Guo R, Li H, You C, et al. Predictive accuracy of Alpha-Delta ratio on quantitative electroencephalography for delayed cerebral ischemia in patients with aneurysmal subarachnoid hemorrhage: meta-analysis. World Neurosurg. 2019;126:e510–6. 10.1016/j.wneu.2019.02.082 [DOI] [PubMed] [Google Scholar]
  • 43.Murphy K. Machine learning: a probabilistic perspective. Cambridge, MA: MIT Press; 2013. [Google Scholar]
  • 44.Robin X, Turck N, Hainard A, Tiberti N, Lisacek F, Sanchez JMM. pROC: an open-source package for R and S+ to analyze and compare ROC curves. BMC Bioinformatics. 2011;12:77. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45.Lundberg S, Lee S-I. A unified approach to interpreting model predictions. arXiv 2017. https://arxiv.org/abs/1705.07874 [Google Scholar]
  • 46.Lin M-Y, Li C-C, Lin P-H, Wang JL, Chan MC, Wu CL, et al. Explainable machine learning to predict successful weaning among patients requiring prolonged mechanical ventilation: A retrospective cohort study in Central Taiwan. Front Med. 2021;8:663739. 10.3389/fmed.2021.663739 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47.Richter S, Stevenson S, Newman T, Wilson L, Menon DK, Maas AIR, et al. Handling of missing outcome data in traumatic brain injury research: a systematic review. J Neurotrauma. 2019;36(19):2743–52. 10.1089/neu.2018.6216 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48.Miranda P, Cox CD, Alexander M, Lakey JRT, Danev S. Electroencephalography (EEG)-based detection, management, recovery and brain retraining tracking of Traumatic Brain Injury (TBI) when “Only Time Can Tell”. J Syst Integr Neurosci. 2020;6(3):1–15. 10.15761/jsin.1000230 [DOI] [Google Scholar]
  • 49.Baranowski CJ. The quality of life of older adults with epilepsy: a systematic review. Seizure. 2018;60:190–7. 10.1016/j.seizure.2018.06.002 [DOI] [PubMed] [Google Scholar]
  • 50.Begley CE, Durgin TL. The direct cost of epilepsy in the United States: a systematic review of estimates. Epilepsia. 2015;56(9):1376–87. 10.1111/epi.13084 [DOI] [PubMed] [Google Scholar]
  • 51.Nudo R. Recovery after brain injury: mechanisms and principles. Front Hum Neurosci. 2013;7:887. 10.3389/fnhum.2013.00887 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 52.Carney N, Totten AM, O’Reilly C, Ullman JS, Hawryluk GWJ, Bell MJ, et al. Guidelines for the management of severe traumatic brain injury, fourth edition. Neurosurgery. 2017;80(1):6–15. 10.1227/NEU.0000000000001432 [DOI] [PubMed] [Google Scholar]
  • 53.Hutchinson PJ, Kolias AG, Timofeev IS, Corteen EA, Czosnyka M, Timothy J, et al. Trial of decompressive craniectomy for traumatic intracranial hypertension. N Engl J Med. 2016;375(12):1119–30. 10.1056/nejmoa1605215 [DOI] [PubMed] [Google Scholar]
  • 54.Brigo F, Cicero R, Fiaschi A, Bongiovanni LG. The breach rhythm. Clin Neurophysiol off J Int Fed Clin Neurophysiol. 2011;122(11):2116–20. 10.1016/j.clinph.2011.07.024 [DOI] [PubMed] [Google Scholar]
  • 55.Quist J, Taylor L, Staaf J, Grigoriadis A. Random Forest modelling of high-dimensional mixed-type data for breast cancer classification. Cancers (Basel). 2021;13(5):991. 10.3390/cancers13050991 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 56.Luo G, Zhu Y, Wang R, Tong Y, Lu W, Wang H. Random forest-based classsification and analysis of hemiplegia gait using low-cost depth cameras. Med Biol Eng Comput. 2020;58(2):373–82. 10.1007/s11517-019-02079-7 [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Tables S1 and S2

Data Availability Statement

Data will be available to qualified researchers upon request.

RESOURCES