Introduction

Epilepsy can be a chronic disorder characterized by recurrent seizures. The recurrence is marked by regional abnormalities that initiate the seizure, as well as abnormalities in the structural and functional pathways that propagate and spread the seizure activity elsewhere in the brain1. Identifying not just the ictal source in the brain, but also these additional more distal abnormalities, will likely be important for designing individualized therapeutics2, predicting treatment response, and assessing the patient’s capacity to recover from seizure’s harmful effects. Temporal lobe epilepsy (TLE) is the most common focal epilepsy syndrome in adults, and a more severe form of the disorder involves seizures that secondarily generalize (i.e., focal to bilateral tonic–clonic seizures; such focal TLE patients to be referred to as FBTCS +), with this affecting at least a third of drug resistant TLE patients3,4,5. FBCTS+ has been associated with lower overall quality of life6 and is a predictor of unfavorable postsurgical outcomes7,8,9. FBTCS+ is also a major risk factor for seizure-related injuries10 and sudden unexpected death in epilepsy (SUDEP)11,12. FBTCS+ patients display more neurocognitive deficits than focal TLE patients without FBTCS (to be referred to as FBTCS−)13,14. FBTCS+ may also have a distinct clinical history, differing on features such as age of onset of epilepsy15. Methods for early identification of focal TLE patients at risk for FBTCS+ would represent a significant clinical advance, as would techniques that identify the specific brain regional connectivities involved in the extra-temporal structures and pathways that implement FBTCS activity. In essence, the reason why some and not other focal TLE patients experience FBTCS remains poorly understood.

Three patterns of abnormal subcortico–cortico communication have emerged as important characteristics of TLE generally, and for FBTCS+ patients in particular. First, abnormalities in structural and functional connectivity involving the thalamus have been demonstrated in focal TLE, with convergent evidence underscoring the critical role of the thalamus in interaction with other circuits during FBTCS activity5,16. Compared to patients with focal seizures only, FBTCS+ patients present with additional thalamic atrophy17,18 and greater disruptions to structural9,19 and functional20,21 thalamocortical connectivity. The thalamus may act as a key driver for the extension of epileptogenic networks beyond the temporal lobe22. The mechanism for this is thought to involve the synchronization of abnormal cortical–subcortical electrical discharges and the loss of thalamic inhibition16,22,23,24, which cause the ictal signal to propagate to widespread cortical areas25.

Abnormalities in structural and functional connectivity involving the basal-ganglia have also been shown in focal TLE, and, again, such abnormalities appear more pronounced in FBTCS+. The basal ganglia (BG) are a complex group of nuclei26, that serve as a ‘braking system’ between the cortex and thalamus1. BG interact with the thalamus and cortex via several parallel circuits including the direct and indirect pathways27,28. The BG have been shown to be hyperactive during FBTCS+29, and TLE patients with FBTCS+ display additional BG atrophy compared to patients with focal only seizures18. Work from our lab has demonstrated that disruption of thalamic/basal ganglia circuitry (connectivity) is a unique feature of FBTCS+, with such disruptions causing a breakdown in normal patterns of inhibition, allowing the spread of epileptic activity to cortex5. A large body of experimental and clinical evidence suggests an anti-convulsive role for the BG during temporal lobe seizures is accomplished via feedback pathways to the cortex30. A stereo-electroencephalographic study has reported changes in cortical–striatum synchronization as a part of an endogenous mechanism controlling the duration and termination of abnormal oscillations within the striato-thalamo-cortical loop, pointing to an important element in the propagation of the temporal lobe ictal signals31.

Another subcortical system of emerging importance for our understanding of seizure generalization is the cerebellum24,32. Here again, TLE patients with FBTCS+ show more pronounced abnormalities. A recent study showed gray matter volume reduction in FBCTS+ patients in bilateral cortical structures, head of caudate, the thalamus, as well as the cerebellum33. These reductions were associated with disease duration. Cerebral blood flow (CBF) increases have been found in the cerebellum during generalization as well as post-ictally, with these increases prominent in the midbrain and thalamus. This study also noted a relationship with cortex, as these CBF increases in the cerebellum correlated with CBF decreases in fronto-parietal association cortex29. The authors postulated that the increased cerebellar activity may contribute to seizure termination and/or to post-ictal suppression34.

As evidence regarding the role of thalamo-striato-cerebellar circuitry in FBTCS+ grows2,24,35, an important question to ask is whether FBTCS patients necessarily possess abnormality and disruption in the connectivity of ALL of these subcortical systems, and, if so, whether the abnormalties in one system correlates with the abnormality in others. An important observation with regard to these prior investigations is that they all largely focused on the status of a single subcortical system, yielding little evidence about their comparative impact on cortex, and leaving open questions about whether cortical effects arise from each system independently or whether the systems act in a coordinated fashion.

Another feature of these prior studies is that they all focused on the static aspects of regional connectivity. It remains possible, for instance, that subcortico–cortico abnormalities in TLE, and specifically within FBTCS+ , involve changes in the temporal dynamics of these systems such that there is a time varying loss (or increase) in communication within a subcortical system, or between a particular subcortical system and cortex. As a complex system, the human brain’s modular structure has been shown not to be static, but prone to undergo changes in regional communication patterns in response to both internal and external drivers such as disease36. Importantly, measures of dynamic functional connectivity have been shown to be effective in identifying neurodegenerative processes and have shown potential as diagnostic and prognostic biomarkers for diseases37, including epilepsy38,39,40.

In accord with all the above, in this project, we argue that interrogating the dynamics of multiple subcortical systems, and testing for distinct subcortico–cortico interactions will broaden our understanding of seizure propagation effects in TLE as a whole and FBTCS, in particular. Specifically, we sought to answer two questions. First, compared to healthy participants (HPs), does TLE as a whole, or subgroups with FBTCS activity (FBTCS+ patients with current [past year] or remote (beyond 12 months), referred to as FBTCS+ current, FBTCS+ remote, respectively) demonstrate abnormal dynamic functional connectivity (dFC) within all four subcortical systems (thalamic, striatal, mesial temporal, cerebellar) and across all types of subcortical-cortical interactions. Second, are any of the abnormalities observed linked or associated, raising the possibility that these systems do not operate independently in their implementation of FBTCS activity.

To accomplish these goals, we pursued a comprehensive characterization of tonic, baseline resting state dFC in left TLE. Distinct from previous investigations15,20,21,41, we utilized measures of dFC focused on multiple intrinsic subcortical systems (thalamic, striatal, mesial temporal, cerebellar) and their interaction with seven well-established intrinsic cortical systems (visual, somatomotor, dorsal attention network, ventral attention network, limbic, control and default mode network)42. We included the mesial temporal network as a subcortical system because of its clear role in temporal lobe seizures15,43,44. Accordingly, we suspected that FBCTS- and FBTCS+ LTLE patients will have similar patterns of dFC for the mesial temporal system.

In line with our prior work demonstrating the effectiveness of resting state functional networks for the identification of seizure impact on intrinsic brain systems45, we acquired resting state functional MRI data from LTLE patients and matched HPs. Time series of the BOLD response were extracted from 200 cortical regions46, 54 subcortical regions (Melbourne subcortical atlas47), and seven cerebellar parcellations48 in each participant. Using a sliding-window strategy, we generated cross-region coherence matrices over time. We then applied dynamic network analysis methods to detect community structures over time49 and quantified subcortico–cortico network reconfigurations (Fig. 1). We focused on the dynamic measures of ‘recruitment’ (the probability of intra-communication with peer regions from the same subsystem), ‘flexibility’ (frequency with which a region changes its assigned community over time) and ‘integration’ (probability of inter-communication with regions from other subsystems)50,51.

Fig. 1
figure 1

Schematic overview of the approach. (a) BOLD signal was extracted from the Schaefer parcels corresponding to the Yeo 7-networks53 (visual [purple], somatomotor [blue], DAN [green], VAN [violet], limbic [yellow], control [orange] and DMN [red]); thalamus [red], striatum (globus pallidus [not visible], nucleus accumbens [purple], caudate [violet] and putamen [green]) and mesial temporal (hippocampus [yellow] and amygdala [pink]) systems from Melbourne atlas47 and 7 cerebellar subsystems (color coded based on its maximal functional correlation with a Schaefer cerebral network) using the Buckner atlas—at individual level48. (b) Time series were extracted from the Schaefer 200 parcels, Melbourne 54 parcels and 7 cerebellar parcels using RS fMRI data. (c) A sliding window strategy (length/step = 40/20 s, 23 windows in total) was used to generate inter-regional coherence matrices over time. (d) Dynamic community structure was detected by maximizing a multilayer modularity quality function78. (e) Community identities were sorted for each parcel over time (Module Allegiance50,55). (f) Dynamic properties were estimated50,51,78. DAN = dorsal attention network; VAN = ventral attention network; DMN = default mode network; RS fMRI = resting state functional MRI.

Due to the high dimensionality of the feature sets emerging for our dFC measures, we first undertook a feature reduction step using Repeated Measures Multiple Analysis of Variance (rmMANOVA) comparisons to determine which dFC features were abnormal in focal LTLE as a whole (LTLE versus matched HPs), or uniquely associated with the status of one of our subgroups (FBTCS−, FBTCS+ current, FBTCS+ remote). Next, for feature ranking and group discrimination, we brought the significant results of the rmMANOVA’s into the competitive context of random forest (RF) classification, allowing us to determine the dFC metrics that best discriminated between FBTCS+ and FBTCS− (also between current and remote FBTCS +). The RF models ranked the variable importance of the dFC measures in terms of their classification success. Lastly, based upon the RF findings we tested for group differences in the associations among the dFC metrics to determine if they were abnormally linked or showed dependencies within FBTCS+ or the FBTCS+ subgroups.

We hypothesized that our dFC metrics would reveal abnormalities in subcortico–cortico interactions (communication) in LTLE as a whole. However, given the evidence that FBTCS activity puts patients at risk for wide spread brain dysfunction, we hypothesized that only the FBTCS+ group would display disruptions in multiple subcortical systems and multiple subcortico–cortico systems, with the added prediction that the observed abnormalities in these subcortico–cortico interactions would be correlated only in the FBTCS+ group.

Results

Demographical and clinical comparisons

The experimental groups (TLE, HP) did not differ in age, sex, IQ, or handedness52 (see Table 1). The groups, however, did differ in the years of education attained, with HPs higher (Table 1). Accordingly, education was regressed out from the network properties with a linear regression model, and the residuals were taken for subsequent statistical analyses and inference (rmMANOVAs, RFs).

Table 1 Sample demographic and clinical characteristics.

Subcortical and cortical dFC measures showing LTLE/HP group differences

The results revealed no significant difference between HPs and the LTLE group in recruitment and flexibility for any of the subcortical/cortical rmMANOVAs (see Table 2 and associated results in Supplement Section—Results 1). Thus, the findings that emerged reflected normative effects. For instance, recruitment showed hemisphere X subsystem effects for the thalamic/cortical and striatum/cortical models. Univariate, pairwise comparisons indicated the Visual, Somatomotor, and the VAN consistently showed greater recruitment in the left compared to right hemisphere. The DMN, on the other hand, showed greater recruitment in the right hemisphere. With regard to the subcortical systems, the anterior thalamus displayed greater recruitment in the right hemisphere (thalamus/cortical model), while the caudate (striatum/cortical model) and posterior hippocampus (mesial temporal/cortical model, statistical trend p = 0.076) displayed greater recruitment in left hemisphere.

Table 2 Results of Healthy Participants versus LTLE group for two-way repeated-measures MANOVA for recruitment and flexibility within subcortical and cortical subsystems for the four subcortical/cortical subsystem combinations(thalamus, striatum, mesial-temporal and cerebellar subsystems with all cortical subsystems).

The rmMANOVA on flexibility also revealed significant hemisphere X subsystem interactions, reflecting normative dFC effects (n.b., thalamus/cortical, striatum/cortical, cerebellar/cortical models). Univariate pairwise comparisons showed greater flexibility in the left than right hemisphere for the Limbic (thalamus/cortical, striatum/cortical, cerebellar/cortical models) and DAN cortical subsystems (thalamus/cortical model). The somatomotor subsystem showed higher flexibility in the right hemisphere in the cerebellar/cortical model.

The rmMANOVA results for integration are shown in Table 3 (see associated results in Supplement Section—Results 2). The posterior thalamus/cortical model resulted in a hemisphere X subsystem X group interaction that approached statistical significance (multivariate p = 0.067; univariate p = 0.096), revealing increased left posterior thalamus/right Visual system integration in LTLE compared to HPs. Significant hemisphere X subsystem effects emerged in both the anterior and posterior thalamus/cortical models, involving greater intra- than cross-hemispheric connections as given by univariate comparisons (Table 3).

Table 3 Results of Healthy Participants versus LTLE group for two-way repeated-measures MANOVA for subsystem integration between the four subcortical/cortical subsystem combinations (thalamus, striatum, mesial-temporal and cerebellar subsystems with all cortical subsystems).

In the four striatum/cortical models, the subsystem X group effect approached significance (univariate p = 0.064; Table 3), revealing reduced putamen/Limbic integration in LTLE compared to HPs. Significant hemisphere X subsystem effects emerged in the striatum/cortical models (for putamen and caudate), involving greater intra- than cross-hemispheric connections as given by univariate comparisons (these effects are listed in Table 3).

Among the three mesial-temporal models, a significant hemisphere X subsystem X group (univariate p = 0.014) interaction was observed for the posterior hippocampus/cortical model. Compared to HPs, TLE showed higher cross-hemispheric integrations involving left posterior hippocampus/right Visual (univariate p = 0.03) and right posterior hippocampus/left VAN (univariate p = 0.066) subsystems. In contrast, there was reduced right posterior hippocampus/right Control system intra-hemispheric integration (univariate p = 0.046) in the LTLE group. This model also showed significant hemisphere X subsystem effects with greater intra- than cross-hemispheric connections as given by univariate comparisons (these effects are listed in Table 2).

In the cerebellum-based models, a hemisphere X subsystem X group effect approached statistical significance (multivariate p = 0.075) for right cereb-1/cortical integration, involving reduced right cereb1/left Visual integration in the LTLE group compared to HPs (pairwise comparison, p = 0.029, univariate effect non-significant, see Table 3). A significant hemisphere X group effect for cereb-2/cortical (multivariate, p = 0.015) and cereb-6/cortical (multivariate, p = 0.03) integrations was present. The pattern of integrations indicated that the LTLE group had a higher right cereb2/cortical integrations compared to those of left cereb2 (F(1,109) = 3.873, p = 0.052), whereas the HPs had a higher right cereb6/cortical integrations compared to those of left cereb6 (F(1,109) = 4.962, p = 0.028). Compared to the other subcortical subsystems, the normative hemisphere X subsystem effects for cerebellar subsystems were primarily preferential towards inter-hemispheric integrations, with these integrations higher than the intra-hemispheric integrations for cereb1, cereb2, cereb3 and cereb4. For cereb6 and cereb7 there was no clear intra/inter hemispheric preference for cortical integrations. See Table 3 for a complete list of integrations involved in this effect.

Subcortical and cortical dFC measures showing FBTCS+ /FBTCS− or FBTCS+ current/remote group differences

The rmMANOVA on the dFC deviation measures revealed several group differences (Tables 4, 5; Fig. 2; and associated results in Supplement Section—Results 3 & 4). With regard to recruitment, there were two significant subsystem X group effects involving the thalamus/cortical model. There was increased recruitment in DAN in the FBTCS+ current group compared to FBTCS− (univariate p = 0.034), with FBTCS+ current also showing increased recruitment in the anterior thalamus compared to both FBTCS+ remote (univariate p = 0.013) and the FBTCS− groups (univariate p = 0.002). The FBTCS+ remote group also showed increased recruitment in DAN (univariate p = 0.005) compared to the FBTCS− group. Both the FBTCS+ remote (univariate p = 0.008) and FBTCS+ current (univariate p = 0.021) groups showed greater recruitment in the DAN compared to the FBTCS− group (striatum/cortical model). The FBTCS+ current group also showed increased recruitment in the Limbic network (univariate p = 0.029) compared to the FBTCS+ remote group (striatum/cortical model).

Table 4 Results of FBTCS− versus FBTCS+ remote and FBTCS+ current group for two-way repeated-measures MANOVA for the Z scores of recruitment and flexibility within subcortical and cortical subsystems for the four subcortical/cortical subsystem combinations (thalamus, striatum, mesial-temporal and cerebellar subsystems with all cortical subsystems).
Table 5 Results of two-way repeated-measures MANOVA (FBTCS− versus FBTCS+ remote versus FBTCS+ current) for the Z scores of subsystem integration between the four subcortical/cortical subsystem combinations (thalamus, striatum, mesial-temporal and cerebellar subsystems with all cortical subsystems).
Fig. 2
figure 2

Regional allegiance preference. Abnormality in recruitment (a) and subcortico–cortico integrations (b) in the 3 patient groups (FBTCS−, FBTCS+ remote, FBTCS+ current) based on rmMANOVA models (flexibility not shown) (X–Y axis identical throughout). Asterisk indicates pairwise group differences, ***P < 0.01, **P < 0.05, *P < 0.1 (all Bonferroni corrected). Error bars reflect standard error (SE). FBTCS− = focal seizure group; FBTCS+  = focal-to-bilateral tonic clonic seizures; rmMANOVA = repeated measures multivariate analysis of variance; DAN = dorsal attention network; Ant. = anterior; VAN = ventral attention network; DMN = default mode network.

The rmMANOVAs on flexibility produced a very limited number of effects. In the thalamus/cortical model there was a hemisphere X group effect (multivariate p = 0.028), indicating higher flexibility in the FBTCS+ current (univariate p = 0.044) group in the left compared to the right hemisphere. A normative hemisphere X subsystem effect was observed in TLE as a whole, involving increased flexibility in the DMN (right > left hemisphere, p = 0.001), anterior hippocampus (right > left hemisphere, p = 0.054), and amygdala (right > left, p = 0.035); all involving the mesial temporal/cortical model. In addition, increased flexibility in the DMN (= p.007), Cereb4 (p = 0.009), and Cereb7 (p = 0.024), all right greater than left hemisphere, were present involving the cerebellar/cortical model.

With regard to integration, there were few significant group effects. In the posterior thalamus/cortical model there were significant hemisphere X subsystem effects with cross hemispheric posterior thalamic/cortical pairs showing higher integration than the pairs in the same hemisphere (see Table 5). Group differences were observed in the striatum/cortical model, involving a subsystem X group effect, reflecting increased integration in the FBTCS+ current compared to the FBTCS− group between the caudate/left VAN (univariate, p = 0.007) and caudate/right VAN (univariate, p = 0.07). The current compared to the remote FBTCS+ group also showed a greater integration between caudate/left Control (univariate, p = 0.009). There was also a significant hemisphere X group effect (multivariate, p = 0.021). Post hoc univariate testing revealed that within the FBTCS+ group, the hemispheres differed (p = 0.009), with the right compared to left caudate showing higher integrations with the cortical systems. With regard to the mesial-temporal subsystems, all three displayed significantly higher cross- compared to within-hemispheric integrations (Table 5). These hemisphere X subsystem effects are listed in Table 5. With regard to the cerebellar/cortical subsystems, only cereb5 showed a significant multivariate group effect (subsystem X group, p = 0.009), involving increased cereb5 integration with the left (univariate, p = 0.031) and right (univariate, p = 0.014) VAN in the FBTCS+ current compared to the FBTCS− group. Compared to the FBTCS− group, FBTCS+ remote showed increased integration between cereb5/right VAN (univariate, p = 0.014). Also, the FBTCS+ current group showed increased cereb-5/left DMN integration compared to FBTCS+ remote.

Cereb-1 (multivariate, p = 0.024) and cereb-5 (multivariate, p < 0.0001) displayed significant hemisphere X subsystem effects, without any clear indications of a cross- or intra-hemispheric integration pattern as evident in other subcortical systems (see Table 5). See Table 5 for a complete list of integrations involved in this effect.

Random Forest models for selection (ranking) of dFC features distinguishing FBTCS+ /FBTCS− or FBTCS+ current/remote groups

The number of features emerging from rmMANOVA models from HP versus LTLE group comparisons was limited and were mostly trends. Therefore, a RF classification was not run for the LTLE/HP comparison.

Results of our two RF models are displayed in Table 6. The classification accuracy was strong for both RF models (FBTCS+ /FBTCS− model = 70.0% accuracy; FBTCS+ current/FBTCS+ remote = 78.18% accuracy). A full list of the features with variable importance (significance ratios) of 0.60 or greater is shown in Table 6). The FBTCS+ /FBTCS− RF model revealed that FBTCS+ status was associated with increased recruitment of right DAN (variable importance ratio, VIR = 1) and the left anterior thalamus (VIR = 0.94). FBTCS+ status was also associated with increased integration between the left caudate/left VAN (VIR = 1) and the right cereb5/left VAN (VIR = 1). The FBTCS+ current/remote RF model showed that current FBTCS+ status was associated with increased recruitment of left anterior thalamus (VIR = 0.966) and increased integration between the left caudate/left Control (VIR = 0.984), right caudate/left Control (VIR = 1), and left cereb5/left DMN (VIR = 1) subsystems.

Table 6 Random forest model results.

Correlations among RF classifiers of FBTCS+ /FBTCS− and FBTCS+ current/remote status

Overall, the important dFC measures (see Table 6) showed few significant associations, suggesting a strong degree of independence among them. A positive correlation was obtained between recruitment of right DAN (thalamus/cortical model) and recruitment of the right DAN in the striatum/cortical model in both FBTCS− (r = 0.915, p < 0.0001) and FBTCS+ (r = 0.971, p < 0.0001), with this association reliably higher in the FBTCS+ group (p = 0.048). Recruitment of left anterior thalamus was found to be positively correlated with the right cereb-5/left VAN integration in FBTCS− (r = 0.560, p = 0.030) but not the FBTCS+ group (r = 0.120, p = 0.459). Recruitment of the left anterior thalamus and integration between the left cereb-5/left DMN trended toward significance in FBTCS+ remote (r = 0.533, p = 0.061), but had no reliable relationship in the FBTCS+ current group.

Lastly, a positive correlation was observed between two integration features (left caudate/left Control with right caudate/left Control) in both the FBTCS+ remote (r = 0.517, p = 0.070) and FBTCS+ current (r = 0.591, p = 0.001) groups, but the group comparison revealed these correlations were not statistically different.

Correlations between clinical epilepsy variables and RF classifiers of FBTCS+ /FBTCS− and FBTCS+ current/remote Status

In our correlational analyses with the clinical epilepsy variables, we focused on the dFC metrics that proved to be reliable classifiers of group membership in our two RF models (see Table 6A, B). Age of seizure onset and illness duration showed no reliable relationship to recruitment in the right DAN or recruitment in the left anterior thalamus in either the FBTCS+ or FBTCS− group. Age of seizure onset or illness duration bore no reliable relationship to recruitment of the right DAN (striatum/cortical model). Similarly, age of seizure onset was not reliably associated with the left caudate/left VAN integration in either the FBTCS+ or FBTCS− group. An association between higher illness duration and higher left caudate/left VAN integration approached statistical significance (r = 0.278, p = 0.083) in FBTCS+ , but no such association was observed in the FBTCS− group. The association between older age of seizure onset and higher right cereb-5/left VAN integration approached significance in FBTCS+ (r = 0.310, p = 0.052), but not the FBTCS− (r = 0.410, p = 0.145) group. These correlations did not differ between the groups.

Regarding the FBTCS+ remote and current RF models (see Table 6B), the left anterior thalamus recruitment was not associated with age of seizure onset nor illness duration in either group. Higher integration between left caudate/left Control was associated with older age of seizure onset (r = 0.615, p = 0.025), and shorter illness duration (r = -0.656, p = 0.015) in the FBTCS+ remote group. No significant correlations with clinical epilepsy variables emerged in the FBTCS+ current group. Note, the right caudate/left Control RF feature (see Table 6B) was not associated with any of the clinical epilepsy variables in either the FBTCS+ remote or current groups. The left cereb-5/left DMN integration feature bore no reliable association with age of seizure onset, but longer illness duration was associated with higher left cereb-5/left DMN integration in the FBTCS+ current group (r = 0.425, p = 0.027).

Discussion

Pursuant to a network science perspective42, we investigated the whole brain dynamic intrinsic functional connectivity within and between multiple subcortical (thalamus, striatum, mesial temporal, cerebellum), and cortical systems (seven canonical intrinsic functional systems53). We demonstrated that left TLE patients possessed a set of abnormal subcortical/cortical communication dynamics at rest, and showed that these abnormalities differ in the context of an FBTCS+ history. We also observed several normative subcortical-cortical dynamics (n.b., no group difference), providing insight into the intrinsic dynamics of the normal brain during the baseline, tonic state (see Tables 2 and 3).

Normative hemispheric biases in communication were evident within several subcortical systems (higher right than left anterior thalamic recruitment; higher left than right caudate and posterior hippocampus recruitment; see Table 2). These data provided the first report of normative intrinsic communication dynamics within each of these subcortical systems, demonstrating that such dynamics are not balanced across the hemispheres. Cortical subsystems also showed a hemispheric bias in their within-system communication (e.g., Visual, Somatomotor, and VAN), displaying significantly higher levels of left compared to right hemisphere recruitment (Table 2). While hemispheric asymmetries in the dynamics of language networks have been reported by our lab54 and others55, normative asymmetries in these other networks have not been reported. Note, we checked to see if these asymmetries, particularly somatomotor, were associated with handedness (a surrogate for hemispheric dominance) in our sample, and this was not the case (See supplementary text). Regarding these normative findings, the DMN differed, showing consistently greater recruitment in the right compared left hemisphere. This hemispheric bias in the tonic, resting state status of the DMN has also not been reported previously. Normative hemispheric biases in our dFC measures of flexibility were also evident in several cortical networks (Limbic, DAN, Somatomotor) (Table 2). These data refer to communication outside a given network, revealing that several cortical systems operated with a hemispheric bias as they showed a propensity for left hemisphere intrinsic communication in the case of the Limbic and DAN, and more right hemisphere communication in the case of the somatomotor system. Lastly, our integration data demonstrated that intra- not cross-hemispheric subcortical/cortical communication was normative, with thalamus/cortical, mesial temporal/cortical, and striatum/cortical integrations all showing this pattern (n.b., cerebellar/cortical was the exception with six of seven cerebellum/cortical models showing prominent contralateral communication with cortex; see Table 3).

Before reporting on our RF classification models, it is worth noting that our use of deviation scores allowed us to identify several dFC abnormalities within LTLE and its subgroups. For instance, within LTLE subcortical/cortical communication (i.e., flexibility) was generally higher in the hemisphere contralateral to the seizures (e.g., mesial temporal/cortical [DMN, right > left; anterior hippocampus: right > left and amygdala: right > left] and cerebellar/cortical [DMN: right > left, Cereb4: right > left, Cereb7: right > left]) models (Table 4). The LTLE patients compared to HPs also showed several abnormally heightened cross-hemispheric integrations (left posterior thalamus and left posterior hippocampus with the right Visual network; right posterior hippocampus with left VAN; Table 5). Similarly, all the three mesial-temporal subsystems had more cross- than intra-hemispheric integrations with the cortical subsystems (Table 5). Cereb1 and cereb5 showed few hemisphere X subsystem effects without any clear trend towards a greater cross-hemispheric or ipsilateral integrations (Table 5). Interestingly, the hemisphere X subsystem effects within LTLE group were the opposite pattern of what was observed in the combined HP/LTLE sample as a whole (normatively).

These signs of greater cross-hemispheric subcortical/cortical integration indicated a deviation within LTLE from the normative pattern of ipsilateral subcortical/cortical functional connections described above in Sect. 4.1. There were also indications of abnormally reduced integrations for LTLE (striatum/putamen with left and right Limbic, right posterior hippocampus with right Control; see Table 3). These mesial-temporal and putamen-Limbic integration abnormalities are consistent with dysfunction in epileptogenic circuitry involving mesial temporal (limbic) structures, noting that bilateral limbic system pathology has been reported in TLE (e.g., reduced fractional anisotropy in the fornix and cingulum bilaterally)56.

Our RF analyses demonstrated that a select set dFC features can effectively distinguish FBTCS+ as a whole from FBTCS− (see Table 6A, 70% classification accuracy), and current FBCTS+ status from remote FBTCS+ activity (see Table 6B, 78% classification accuracy). More specifically, our RF models revealed that a cardinal dFC feature of FBTCS+ involved heightened within subsystem dFC (recruitment) in select cortical (right DAN) and subcortical (left anterior thalamus) subsystems, as well as a specific elevated integrations between the left caudate and right cerebellar (cereb5) regions with the left VAN. A systematic review and meta-analysis of the brain network organization of focal epilepsy has reported a general pattern of increased network segregation during the interictal state57. The midline thalamus has been implicated in the propagation of temporal lobe seizures58, but ours is the initial report of increased dFC among regions within the thalamus. While abnormally increased network homogeneity has been found in the right DAN in RTLE, our RF model highlighted the heightened dFC in the contralateral DAN of the FBTCS+ patients, a finding consistent with the expected widespread, contralateral impact of FBTCS+ activity. Through our data we also provided the initial report in LTLE of a heightened cortical/subcortical communication pattern involving two subcortical structures (the ictal caudate, the non-ictal cerebellum) with the cortical left VAN, noting that abnormal network homogeneity in the VAN network has been reported in right temporal lobe epilepsy59. As subcortical outputs from the caudate and cerebellum to thalamocortical circuits tend to be inhibitory60, these increased integration findings in FBTCS+ may reflect communications aimed at breaking down inhibitory circuits, allowing for the spread of seizures. In addition, as our data reflected activity during the tonic resting state, our results indicated the pathologic signaling that supports FBTCS activity goes on outside of clinically observable FBTCS+ activity.

The only cortical networks with significant classification power were the attention networks, the DAN and VAN. Both the latter pointed to the potential neurocognitive impact of FBTCS activity. To examine this further, we tested on a post hoc basis the association between these features of FBTCS+ status and behavioral measures of attention (see supplementary text, p.25). Indeed, higher integration between the left caudate/left VAN were associated with higher levels of visual and auditory attention and slower information processing speed. As the VAN is specifically associated with stimulus-driven aspects of attention, including the reorienting of attention to unexpected or salient (e.g., target) stimuli (see61,62), this finding suggested that the presence of periodic FBTCS activity reinforced and increased attentional vigilance for these unpredictable seizure events. These correlations are also consistent with other data showing that brain network disorders such as epilepsy slow information processing speed63,64.

Interestingly and surprisingly, only one feature discriminating the FBTCS+ /− groups belonged to the thalamic system. Prior reports of FBTCS+ /− group differences involved static network measures of the thalamus5,20 or structural connectivity measures65. Accordingly, our data clarified that the dynamic connectivity perturbations brought on by FBTCS activity are predominantly within the thalamus, with evidence that the time invariant disruptions to subcortico–cortico connectivity brought on by FBTCS activity involved other subcortical regions (i.e., striatum, cerebellum). Furthermore, there was limited representation in our FBTCS+ data of mesial temporal dFC. This is consistent with our expectations that the FBTCS+/− groups would show equivalence in the dFC features of the mesial temporal lobe because of shared pathology in that region. Importantly, consistent with our expectations that FBTCS activity is not limited to the ictal hemisphere. Our data demonstrated that the dFC abnormalities most characteristic of FBTCS+ involved prominent contralateral effects, most commonly increased recruitment (e.g., right DAN) and increased integration with cortical systems (e.g., right cerebellar with left VAN).

Our results, however, differ from the recent study by Hsieh et al.35. Hsieh and colleagues reported network features that distinguished generalized epilepsy patients (GE-GTCS) from those with focal epilepsy plus FBTCS (FE-FBTS) activity. They found the connectivity between cortex and thalamus were increased in GE-GTCS and decreased in FE-FBTS. They also found that compared with GE-GTCS, the cerebellar connectivity in FE-FBTS was increased when analyzing connectivity statically, and decreased when analyzing connectivity dynamically. In addition, the connectivity between the cortex and the thalamus was decreased overall in FE-FBTS35. The differences between the findings of Hsieh et al.35 and our current study might have emerged from the fact that they utilized a different parcellation scheme and a dynamic analysis method based solely upon deviations across time windows (n.b., we utilized average correlations across all regions). In contrast, our dFC measures kept track of specific changes in network community membership and utilized a broader set of subcortical/cortical regional connectivities (n.b., the work of Pang et al.66 differs from our study in similar ways).

We found that there were select cortical/subcortical integrations that appeared more characteristic of FBTCS+ current than remote status (e.g., left caudate with the left Control network; left cereb5 with left DMN). Heightened connectivity within the left anterior thalamus (recruitment) was also a feature distinguishing the FBTCS+ current group. The ipsilateral nature of these dFC features suggested that the impact of FBTCS activity may be time limited, with current seizure activity primarily impacting ipsilateral dFC. The correlational data with clinical epilepsy measures, however, were quite limited. For instance, the left cereb-5/left DMN integration feature bore no reliable association with age of seizure onset, but longer illness duration was associated with higher left cereb-5/left DMN integration in the FBTCS+ current group.

Lastly, the dFC features in the FBTCS+ remote group were ipsilateral in nature (left caudate/left Control integration) and these features were associated with older age of seizure onset and shorter illness duration.

Through our RF models we found the dFC features that best distinguished between FBTCS+ /− and FBTCS+ current/remote status. We then investigated whether any of these features were related, raising the possibility that these systems do not operate independently in their implementation of FBTCS activity. Overall, these dFC measures showed few significant associations, suggesting a strong degree of independence among the networks impacting FBTCS activity. The only notable correlation involved higher left anterior thalamus recruitment (a feature important both for the classification of FBTCS+ /− and FBTCS+ current/remote status), and two indications of higher integration (higher right cereb 5/left VAN; left cereb 5/left DMN). These correlations indicated highly selective dFC features do have inter-dependency, potentially revealing that there are small number of joint maladaptive subcortico–cortico connectivity effects playing a role in the development of FBTCS activity.

Several methodological considerations are relevant to this study. First, the sample size was relatively small, reducing power and increasing the chance of type II error especially for our LTLE subgroup analyses. Second, our data was completely silent as to whether the alterations in subcortical/cortical integrations reported for LTLE (or FBTCS) reflected alterations in anatomical connectivity. Third, the window length and sliding steps utilized in our dFC calculations were based upon prior published work by our group54, where validations of the analytic pipeline (e.g., alterations in number of time windows and window length) were undertaken and parameters optimized. Nonetheless, the selection of window length and sliding steps may still have influenced our measures of network dynamics67. Fourth, it is noteworthy that AEDs can influence the blood oxygen level-dependent signal68,69,70 and this may have influenced TLE/HP differences. Unfortunately, AED regimen heterogeneity (type, dosage, number of AEDs) and low sample sizes precluded further testing of these effects.

While there have been previous multilayer network studies in epilepsy that provided a context for our work, these studies focused on single subcortico–cortico system interactions15,54,71. Importantly, ours is the first report of the dynamic network connectivity (communication) alterations in multiple subcortico–cortico intrinsic systems in LTLE. We uncovered in LTLE both specialized subsystem communication between distal regions (integration effects), as well as more isolated communication within subsystems [recruitment, flexibility effects]. Our analyses also revealed several dynamic functional connectivity abnormalities unique to LTLE patients with FBTCS activity.

First, it is worth noting that through our analyses several normative hemispheric intrinsic connectivity dynamics emerged. Accordingly, we provided the first report that intrinsic dynamics within select subcortical (higher right than left anterior thalamic recruitment; higher left than right caudate and posterior hippocampal recruitment) and cortical systems (higher left than right hemisphere Visual, Somatomotor, VAN recruitment; DMN higher left than right) are not balanced across the hemispheres. Normative hemispheric biases in our dFC measures of flexibility were also evident (Limbic and DAN left biased; Somatomotor right biased). Our integration data demonstrated that intra-, not cross-hemispheric subcortical/cortical communication was normative, with several systems showing this pattern (thalamo/cortical, mesial temporal/cortical, striatum/cortical).

Regarding the dFC characteristics unique to LTLE, we revealed the flexibility of dFC among subcortical/cortical systems was generally higher in the hemisphere contralateral to the seizure. Also, in contrast to the normative ipsilateral integration pattern noted above as normative, a clear pattern of abnormal cross-hemispheric integrations was evident in LTLE (e.g., posterior thalamus/cortical; mesial temporal/cortical; putamen/Limbic). While our data did not isolate one particular integration dFC as most abnormal in LTLE, the subcortical systems involved in these abnormal integrations with cortex all involved structures that have been implicated in the generation (hippocampus) or spread (thalamus, striatum) of epileptiform signals in TLE. This was consistent with our hypothesis that focal LTLE, irrespective of the FBTCS+ status, has a selective impact on multiple intrinsic subcortico–cortico communication systems in the brain. Prior rsFC work from our lab has shown the thalamus and striatum to be important to seizure generalization related to loss of a “braking function” on seizure propagation (see20,45 for thalamus; see5 for basal ganglia). It is important to note that these prior reports involved static measures of functional connectivity. Accordingly, our new findings demonstrated that additional sets of abnormal dynamic subcortical-cortical integrations are present in the tonic resting state in LTLE5,20,45, clarifying that these time variant integration abnormalities are largely cross-hemispheric in nature.

Our RF models revealed a set of striatum-cortico and cerebellar-cortico communication pathways that appeared to be cardinal features of FBTCS+ compared to FBTCS− status, noting that the striatum and cerebellum house important motor output functionalities of the type that one sees in FBTCS60. More specifically, FBTCS+ patients displayed increased recruitment in both cortical (contralateral DAN system) and subcortical (ipsilateral anterior thalamus) subsystems, in addition to increased integration of both left caudate and right cereb5 with left VAN. As the FBTCS+ dynamic abnormalities reported here emerged from a baseline inter-ictal state, our data demonstrated that there were widespread abnormal intra-subcortical and subcortico-cortical communications present outside of clinically observable tonic–clonic seizure activity. Important differences emerged regarding when the FBTCS+ activity occurred. Current FBTCS activity perturbed dynamics more strongly than remote activity, with a separate set of heightened within thalamic subsystem dFC (increased recruitment) and striatum-cortico and cerebellar-cortico integrations unique to current compared to remote FBTCS+ status.

Consistent with our hypothesis, we observed that dFC metrics showed multiple abnormalities in subcortico–cortico dFC in LTLE as a whole and specifically in relation to FBTCS activity. Interestingly, RF models revealed no dFC integrations involving the thalamus with cortex. The FBTCS+ thalamic abnormalities we observed solely involved heightened, changing communications restricted to (within) thalamic regions, with these abnormalities not perturbing cortical dynamics. Thus, our dFC data implied that the thalamic/cortical connectivity abnormalities reported in the literature may arise from the use of static or time invariant functional connectivity measures5,20. Note, our data did indicate that FBTCS+ activity puts focal TLE patients at risk for more widespread brain dynamic functional connectivity disruptions, but these involved the striatum and cerebellum, not the thalamus. In this regard, we noted that some of the integration abnormalities of FBTCS+ (left caudate/left VAN, right cereb5/left VAN) were associated with alterations in attention (heightened vigilance) and slower information processing speed, suggesting motor and attention system communications are dysregulated in this group.

Our data on the association of dFC integrations across systems indicated that as the brain dynamically reconfigures in response to generalized seizures the cortical/subcortical systems do not respond in global or unified way. Instead, the systems generally showed a strong degree of independence. The implication is that the production of FBTCS+ activity does not require broad cooperation or joint activity between different coordinated subcortical/cortical systems. There was one notable exception (i.e., left anterior thalamic recruitment was correlated with higher integration between the cerebellum and VAN and DMN), indicating that select drivers of maladaptive FBTCS may develop in a concurrent fashion, potentially suggesting some joint effects do play a role in the development of FBTCS activity. This will require further study.

Overall, our data demonstrated that the baseline, inter-ictal state provides a breeding ground that reconfigures functional organization and communication both within multiple subcortical systems, and between multiple cortical and subcortical systems. These reconfigurations reflected both the proximal and distal specialized pathologic systems generated by epileptogenic activity in LTLE regardless of FBTCS status. Importantly, unique dFC abnormalities were present in focal TLE patients with FBTCS activity. While there did not appear to be one specific subcortical system dominating the interactions with cortex, integrations involving the caudate and cereb-5 subcortical subsystem were most common. As these structures are established parts of motor output circuitry it seems reasonable that they would provide the underpinnings of FBTCS motor activity. Thus, the network disruptions we report clarify the substrates that form the neurobiological basis of seizure generalization in focal TLE. Our data made clear that these subcortical-cortical integrations are not constant and static, but reflect transient perturbations, a feature that aligns with the intermittent nature of FBTCS activity. The dFC abnormalities reported here should be studied to further clarify if they can serve as early biomarkers of the functional connectivity changes that mark the transition from focal seizures to the more severe form of the disorder (FBTCS +). In this sense, our findings have prognostic value as they point to the formation of epileptogenic networks that place patients at risk for FBTCS activity, providing information that would encourage prophylactic medication strategies. Similarly, as such networks would be untouched by TLE surgery, their disruption would alter predictions about surgical outcome.

Methods

Participants

A total of fifty-five patients with refractory focal left TLE (LTLE) were recruited from the Thomas Jefferson Comprehensive Epilepsy Center. All patients were surgical candidates for either a standard anterior temporal lobectomy or thermal ablation of the ictal mesial temporal lobe, determined by a multimodal evaluation including neurological history/examination, scalp video-EEG, MRI, PET, and neuropsychological testing72 (See Supplementary text, p.4 for more details). All patients had focal impaired awareness seizures (FIAS) and/or FAS (focal aware seizures), and a sub-sample had additional FBTCS. For our analyses, patients were classified into three groups based on their history at the time of scanning: (i) patients who had never had any FBTCS events during their lifetime (FBTCS−, n = 15); (ii) patients who had a remote history of FBTCS, but none within a year of scanning (FBTCS+ remote group, n = 13); and (iii) patients who had recurrent FBTCS within the year prior to scanning (FBTCS+ current group, n = 27). A total of 56 age-, and gender-matched right-handed healthy participants (HPs) were also recruited (see Table 1 for sample demographic and clinical characteristics). All HPs were free of psychiatric or neurological disorders based on a health screening measure. The study was approved by the Ethics Committee of the Thomas Jefferson University and was conducted in compliance with the Declaration of Helsinki. All study participants provided written informed consent.

Imaging data acquisition and preprocessing of resting state data

All participants underwent a structural scan along with an 8 min resting state functional MRI scan (Philips 3 T) in which the participants viewed a crosshair with no task requirements. fMRI data collection and processing was identical to our prior work (see73 and supplementary text, p. 4). In detail, the fMRI data was collected with a single shot echoplanar gradient echo imaging (EPI) sequence acquiring T2* signals (192 volumes; 34 axial slices acquired parallel to the anterior, posterior commissure line; TR = 2.5 s, TE = 35 ms; FOV = 256 mm, 128 × 128 data matrix voxels, flip angle = 90°, in-plane resolution = 2 mm × 2 mm, slice thickness = 4 mm). The structural T1-weighted and fMRI data were pre-processed using fmriprep 20.2.4 pipeline, which is the best software implementation of state-of-the-art protocols for the preprocessing of functional MRI data74. Each EPI imaging series started with three discarded scans to allow for signal stabilization (see Supplementary text for details on data preprocessing, p.4 and 5). Of note, subjects with more than 10% of outlier volumes (frame-wise displacements75; Derivatives of rms VARiance over voxelS76 during the fMRI scan were excluded from analyses. All the participants in the study (55 left TLE group and 56 healthy normals) satisfied this criterion (7 subjects from the initially recruited 62 TLE patients and 4 from the initially recruited 60 healthy participants did not satisfy this criterion and, therefore, were excluded from the analyses). Prior to collection of the T2* images, T1-weighted images (180 slices) were collected using an MPRAGE sequence (256 × 256 isotropic 1 mm voxels; TR = 640 ms; TE = 3.2 ms, FOV = 256 mm, flip angle = 8°) in positions identical to the functional scans to provide an anatomical reference. The in-plane resolution for each T1 slice was 1 mm3 (axial oblique).

Identification of cortical and subcortical networks

In order to define various cortical networks, we utilized the 200 cortical parcels in the Schaefer atlas to define seven intrinsic cortical networks (ICN’s: Visual [VIS], Somatomotor [SMN], Dorsal Attention Network [DAN], Ventral Attention Network [VAN], Limbic [LIM], Executive Control [EC], Default Mode Network [DMN])53. These seven networks are more homogeneous than the four network version previously published46, and are widely utilized and well-established in the neuroimaging literature. In our analyses, the left- and right-hemisphere aspects of each ICN were considered separately. We defined three subcortical systems using the 54 subcortical regional parcellation of the human subcortex as defined by Tian et al47. We divided the 54 parcels into the left–right mesial-temporal system (anterior and posterior hippocampus, and amygdala), left–right striatal system (putamen, caudate, globus palludus, nucleus accumbens), and the left–right thalamic system (anterior and posterior thalamus). The cerebellar systems were obtained using the 7-network cerebellar parcellations by Buckner et al48, broken down by cerebellar hemisphere.

Network construction

The Supplement text provides detailed methodology. Key network construction steps included the following. Head motion influence was regressed out from the preprocessed functional MRI data by utilizing: (1) signals from aCompCor components, the first 5 components each corresponding to white matter and CSF masks, (2) 24 motion parameters, their temporal derivatives, and quadratic terms of both, (3) outlier frames with FD > 0.5 mm and DVARS (Derivative of rms VARiance over voxelS) with a threshold of ± 3 SD, together with their temporal derivatives, and (4) linear trend. Denoised functional data files were parcellated into 268 regions of interest (200 cortical, 54 subcortical and 14 cerebellar parcellations). Out of the 268 parcels, the BOLD signal from the parcels corresponding to the thalamus/7 cortical networks, striatum/7 cortical networks, mesial temporal/7 cortical networks and cerebellum/7 cortical networks were extracted (Fig. 1A). A wavelet decomposition was applied to extract information in the frequency interval of 0.05–0.1 Hz (scale 2)77. A sliding-window approach (length/step = 40/20 s, 23 windows in total) was applied to parse the decomposed time-series. Wavelet coherence was then used to estimate the adjacency matrix for each window and coupled all 23 windows into a multilayer network78,79.

Dynamic community detection

A multilayer community detection algorithm was applied on the resting state multilayer network of each participant to extract groups of brain regions (i.e. communities) that were functionally connected with one another at each layer (Supplement text for description of algorithm49).

Dynamic network statistics

Three dynamic network statistics were estimated for each dynamic community structure detected from each multilayer network to characterize the dFC within the four subcortical systems (recruitment, flexibility dFC measures), and the interaction between the four subcortical systems and seven cortical systems (flexibility, integration; see Supplement text).

Module allegiance

This measure was used to summarize the consistency with which the parcels of the subcortical and cortical systems were assigned to communities over time50,55. See supplementary text for details.

Flexibility, recruitment and integration

The subcortical parcels were grouped on the basis of their main anatomical boundaries into the following subsystems to finely probe pairwise functional interactions with the cortical networks (see Supplement text, Data Processing, p. 9): (1) thalamus—left/right anterior thalamus [5 parcels each] and posterior thalamus [3 parcels each], (2) striatum—left/right putamen [4 parcels each], caudate [4 parcels each], nucleus accumbens [2 parcels each] and globus pallidus [2 parcels each], (3) mesial temporal—left/right anterior hippocampus [3 parcels each], posterior hippocampus [2 parcels each] and amygdala [2 parcels each], and (4) cerebellum—left/right cereb1 to cereb7 [corresponding to 7Networks_1 to 7Networks_7 as defined by Buckner et al48]. The seven cortical networks (VIS, SMN, DAN, VAN, LIM, EC and DMN) were also divided into left and right hemisphere forms (subsystems), combining all the left and right hemispheric parcels of each system. The following measures of community membership change and interaction were analyzed: (1) flexibility, that captures the frequency with which a particular parcel changes its community assignment over time, (2) recruitment, that quantifies the probability with which each parcel in each of the cortical/subcortical subsystems was assigned to the same community as parcels from the same subsystem, (3) integration, that quantifies the probability with which each parcel in each cortical/subcortical system was assigned to the same community as parcels from the other subsystems over time50,51,78.

Statistical analyses

To determine group differences in our dFC measures rmMANOVAs were conducted using MATLAB functions or IBM® SPSS® v23 with alpha level set at p < 0.05 for both multivariate and univariate effects with appropriate correction for multiple comparisons. Preliminary assumption testing checked for independence of observations, normality, and sphericity. Independence of observations and normality were met. If sphericity was violated, the Huynh–Feldt correction was applied (epsilon > 0.75) to determine significant univariate effects. Tables 2, 3, 4 and 5 present the significant univariate effects (p < 0.05 or less), with notations indicating if the multivariate test (Wilks’ Lambda) was significant (p < 0.05 or less). Post hoc pairwise comparisons were applied to the significant univariate effects to delineate the nature of the finding.

In the rmMANOVAs on our three dFC measures (recruitment, flexibility, and integration, run separately) experimental group (HP/LTLE, FBTCS+/FBTCS−, or FBTCS+ current/remote) served as a between-subjects factor. Hemisphere (left ictal/right non-ictal) and subsystem (subcortical/cortical) served as within-subject factors. The rmMANOVAs on recruitment, flexibility, and integration were run separately, with separate models for the different subcortical/cortical combinations: thalamus with each of seven cortical, striatum with each of seven cortical, mesial temporal with each of seven cortical, and cerebellum with each of seven cortical; see supplement text (see Tables 2, 3, 4 and 5 for results). As per the definition, the dynamic measure of recruitment was calculated for each parcel of a subsystem as the probability with which it was assigned to the same community as other parcels from the same subsystem. The recruitment of the subsystem was then calculated as an average of the recruitment values of all constituent parcels. As the cerebellar subsystems in Buckner atlas48 were not divided into finer grained parcels, we were unable to compute recruitment for those subsystems. The rmMANOVAs aimed to detect LTLE/HP differences and utilized the raw recruitment, flexibility, and integrations variables in each model. In the rm MANOVAs aimed at detecting FBTCS+ /FBTCS− or FBTCS+ current/remote differences, we utilized the dFC values of our matched HPs as a reference point, calculating the patient specific z-score deviation from the HPs with the following formula:

$$Z_{pat} = \left( {dFC_{pat} {-}\mu_{con} } \right)/\sigma_{con}$$
(1)

where µcon and σcon were the mean and standard deviation of the same dFC matrix from the HPs. These deviation scores were entered into the rmMANOVA models described above as the dependent variables (repeated measures factors), with the patient group comparison as the between subjects-factor (FBTCS+ /FBTCS−, FBTCS+ remote/current).

To capture and select the strongest predictors of FBTCS+ status, we leveraged the classification power of permutation-based Random Forest (RF) machine learning to select and rank the subcortical and cortical recruitment, flexibility, and integration features that emerged as significant in the FBTCS+ focused rmMANOVAs. More specifically, the inputs to our RF models (bootstrapping and cross validations) were the subcortical/cortical dFC parameters that yielded a significant subsystem X group, or hemisphere X subsystem X group interaction effects in the FBTCS+ rmMANOVAs. In the first RF classifier model, the FBTCS+ and FBTCS− groups served as the response or dependent measure. In the second RF classifier model, the FBTCS+ current and FBTCS+ remote groups served as the response measure. The RF output provided variable importance scores indicating the features most heavily weighted in the discrimination of the groups. An RF predictor variable meeting a 0.60 significance ratio criterion was a considered significant, reliable classifier in the model (n.b., significance ratio quantifies the proportion of times a variable was deemed significant, p < 0.05, out of the 500 repetitions; see details in Supplement text p. 11). The directional effect of a given predictor (i.e., which group possessed a higher significance ratio) was assessed from the univariate effects table associated with the relevant rmMANOVA analysis. Note, RF accounts for linear/non-linear effects, interactions, overfitting, high dimensionality (overcoming collinearity) without huge sample size requirements80. The RF process was run in a leave-one-out cross validation manner, such that the most important variables were identified and used to establish an RF model based on the n-1 training samples. This allowed us to classify the groups in the “left over” testing sample. These RF analyses and procedures were performed in MATLAB with in-house MATLAB codes38. To examine if the RF features with high variable importance scores were associated (i.e., showed dependency on one another), we ran Pearson correlations.

To determine if the strength of these associations (correlations) differed between the FBTCS+ /− or the FBTCS+ (current/remote) groups we Fisher z-transformed the Pearson correlations and tested for group differences via an in-house python code. Lastly, to determine whether the RF features with high variable important scores were associated with measures of epilepsy history and seizure severity, we ran univariate Pearson correlations between the RF features and key clinical epilepsy variables (age of seizure onset and illness duration).