Abstract
A major challenge in neuroscience is determining a quantitative relationship between the brain’s white matter structural connectivity and emergent activity. We seek to uncover the intrinsic relationship among brain regions fundamental to their functional activity by constructing a pairwise maximum entropy model (MEM) of the interictal activation patterns of five patients with medically refractory epilepsy over an average of ~14 hours of bandpassed intracranial EEG (iEEG) recordings per patient. We find that the pairwise MEM accurately predicts iEEG electrodes’ activation patterns’ probability and their pairwise correlations. We demonstrate that the estimated pairwise MEM’s interaction weights predict structural connectivity and its strength over several frequencies significantly beyond what is expected based solely on sampled regions’ distance in most patients. Together, the pairwise MEM offers a framework for explaining iEEG functional connectivity and provides insight into how the brain’s structural connectome gives rise to largescale activation patterns by promoting coactivation between connected structures.
Introduction
An ageold question in neuroscience concerns the enigmatic relationship between the brain’s largescale function and its underlying white matter structure^{1,2,3}. How does the complex array of functional dynamics observed in the brain emerge from the static architecture of structural white matter connections (i.e., structural connectivity) between brain regions? Previous studies demonstrate that the restingstate fMRI functional connectivity networks, defined as the statistical relationships between all pairs of sampled brain regions’ time series^{4}, share important organizational features with the structural connectome^{5,6,7,8,9}. Moreover, studies have discovered hierarchical and smallworld organization in both the functional connectivity between brain regions as well as in the network of structural wires connecting them^{10,11,12}. Additionally, coupling between functional and structural connectivity is not constant over time, but rather evolves throughout adolescence^{13}, and is altered in mental health disorders^{14,15}. Commonly used functional connectivity measures, such as the Pearson correlation, can reveal dynamic patterns of neural activity and the brain’s functional organization at short (e.g.,^{16}) and long time scales (e.g.,^{17,18}), respectively.
Such modelfree measures, however, quantify the functional similarity between neural units (e.g., neurons or brain regions), and therefore are fundamentally limited in their ability to discern between different underlying mechanisms^{19,20}. For example, given two brain regions with a high Pearson correlation, one cannot distinguish between the following three scenarios: (i) The regions are communicating directly via a structural connection, (ii) the regions are communicating indirectly via a structural pathway bridging intermediate regions, or (iii) the two regions are not communicating at all, but are rather being driven by a common third region. Recent research shows that accounting for indirect and higherorder structural connections between brain regions can further improve predictions of the functional connectivity that is supported^{21,22}.
To distinguish between direct and indirect communication, one must begin with a model of how patterns of activity are generated in the brain and then infer the network of underlying interactions that best describes correlations in the data. Biophysical microcircuit modeling such as dynamical causal modeling^{23,24} aims to address these limitations using neural mass models of synaptic dynamics, informed by empirical ion channel and structural priors. Although these biophysical models enable us to estimate the effective connectivity between a small set of brain regions, the space of parameters rapidly expands as more regions are incorporated in the model. More recently, one stochastic model of neural activity – the pairwise maximum entropy model (MEM) – has generated particular interest, primarily because it is formally minimal in the sense that it accounts for the observed pairwise correlations in the data while remaining explicitly agnostic to all higherorder correlations^{25}.
In recent studies, this model has proven sensitive to the spatiotemporal coactivation patterns in neuronal spiking at the microscale^{26,27,28} and in patterns of bloodoxygenleveldependent (BOLD) activity at the macroscale^{29,30,31}. The pairwise MEM is based on the principle of maximum entropy, which states that the probability distribution (i.e., the model) that best represents one’s current state of knowledge about a system is the one with the largest entropy (or uncertainty) in the context of previously observed data. Fitting a pairwise MEM entails iteratively adjusting the strength of individual region activation and all region pair interactions until the estimated correlations match the correlations observed in the data. In this way, the MEM makes quantitative predictions about the frequencies of global activity patterns, rather than simply quantifying the similarities between regions, as is common in studies of functional connectivity. Notably, prior studies using restingstate fMRI data have demonstrated that the pairwise MEM accurately predicts the observed patterns of regional activations, and provides a more accurate map of the underlying structural connectivity than conventional functional connectivity methods^{29}.
As the number of sampled brain regions (N) increases, the number of all possible states increases exponentially (2^{N}). Therefore, it is progressively more likely that we will not observe many of the activation states as we record from more regions. Based on this intuition, it has been suggested that for a dataset with N regions and L samples, the accuracy of the pairwise MEM scales as a function of \(\frac{L}{{2}^{N}}\)^{32}. Consequently, these observations suggest that once the dimensionality of recordings exceeds ≈ 25 regions, brute force sampling is no longer a viable strategy for measuring the underlying distributions of all states. However, while there are 2^{N} possible states, there is reason to expect that a much smaller number of measurements is sufficient for capturing the fundamental structure essential to the collective behavior in the recorded regions. For instance, Tkačik et al. demonstrated that it is possible to infer maximum entropy models for more than one hundred neurons from approximately only 2 h of data without any sign of overfitting^{33}. Therefore, in theory, large datasets with relatively static correlation structure would allow the pairwise MEM to estimate the expected probabilities of activation states.
In the same vein, we examine several hours (14.6 ± 2.5) of iEEG recordings over a day in 5 patients with partialonset refractory epilepsy across several frequency bands, between 4–180 Hz, and show that the functional connectivity between brain regions are effectively static when examined over extended recordings (>12 h). We hypothesize that fitting a pairwise MEM allows us to capture the essential underlying structure that shapes the observed functional activation patterns. We construct a series of pairwise MEMs capable of accurately reproducing the correlation structure observed in binarized iEEG power amplitude states. We observe a high crossfrequency similarity between the functional connectivity matrices estimated using pairwise MEM, which suggests that a common underlying mechanism supports the functional dynamics across all frequency bands. Therefore, we hypothesize that the brain’s physical wiring likely comprises this common scaffold, and we test this hypothesis by comparing the network topology of the inferred maximum entropy interactions with the architecture of whitematter fibers between regions. We observe strong correlations between the structural connectivity and pairwise MEM interactions. Receiver operating characteristic curve analysis also reveals that the pairwise MEM provides accurate predictions of the underlying structural connectivity across several frequency bands in most patients. To control for spatial autocorrelation^{34,35}, we test the significance of these findings by proposing a resampling approach for creating subjectspecific structural nulls with conserved distance features. Finally, we show that the pairwise MEM explains the observed coactivation states’ probability over a broad range of frequencies. Together, these findings demonstrate the pairwise MEM’s utility in explaining the functional connectivity and coactivation patterns in multichannel iEEG and uncovering their underlying anatomical substrates.
Results
Pairwise correlations stabilize over several hours of iEEG recordings
Here, we examine the volume of data needed to establish stable relationships between brain regions. We do this by tracking the magnitude of the difference between pairwise correlations (i.e., coactivation rates) of power amplitude states (Fig. 1) in two sets of nonoverlapping datasets from each patient with progressively longer durations. Our results demonstrate that the difference between withinfrequency band correlations stabilize across all frequency bands after several hours of recordings in all subjects (Supplementary Fig. 1). Next, we examine the degree to which estimated correlations change as we incrementally increased the temporal span of each datasets. We hypothesize that the correlation values will become stable after several hours, after incorporating several hours of the available interictal data from patients’ multiday recordings. Figure 2 demonstrates that the changes in correlation matrices become progressively smaller and plateau on small values after several hours (≈12 h). We also note that the high γ band exhibits higher variability over time, indicating a requirement of longer recordings for stable estimation of correlations in 3 out of 5 patients (as seen in Fig. 2). Together, these results suggest that long iEEG recordings allow accurate estimation of the static functional connectivity between electrodes across a wide range of frequencies. Because multiple days of recordings are still theoretically insufficient to capture all 2^{N} possible states, this stabilization of coactivation rates indicates that the state space of practical coactivations is smaller than this theoretical limit. Therefore, we believe the pairwise MEM allows us to measure the strength of the essential relationships between sampled brain regions, which enables us to explain the frequencies (i.e., probabilities) of anticipated activation patterns.
Pairwise MEM reveals high crossfrequency similarity in functional connectivity
Given our hypothesis that the inferred maximum entropy parameters should reflect the underlying structural connectivity, one would expect these pairwise interactions to maintain a similar architecture across a broad range of frequencies. Indeed, the matrix J_{ij}, which encodes the inferred pairwise interactions between electrodes, displays notably high crossfrequency similarity. Although crossfrequency similarities are higher between the J_{ij} matrices estimated from more adjacent frequency bands, the average similarly values are high even between the lowest and the highest frequency bands (Supplementary Fig. 2). Scatter plots in Fig. 3a demonstrates the similarity between elements of the J_{ij} matrices estimated from a representative patient’s (#5) interictal power amplitude states at θ and high γ frequency bands – See Supplementary Fig. 3 for all patients’ scatter plots. The fit of a simple linear regression model, which explains more than half of the variance, and the small intercept value of the model (slope = 0.51, intercept = 0.02, p ≈ 0 and R^{2} = 0.52) highlight the similarity between the interaction matrices.
As seen in Fig. 3b, the similarity between the coactivation rates at low and highfrequency bands is relatively smaller, highlighted by the weak effect size of the linear regression model and its bigger intercept values (slope = 0.61, intercept = 0.28, p = 3.1 × 10^{−119}, and R^{2} = 0.23). Note that the relatively high coactivation rates at high γ between distant brain regions without direct anatomical connectivity in Fig. 3b also limits using the coactivation rates at higherfrequency bands for predicting the structurally connected regions. The iEEG recordings are relative measures of electrical potentials against potential in another electrode and therefore the recording configuration (i.e., choice of reference electrode) or montage can effect the signaltonoise levels (see Materials and Methods for details on recording configurations). We also find that although parameters such as the recording montage and state binarization threshold can notably impact the crossfrequency similarity of coactivation rates, the crossfrequency similarity of the estimated J_{ij} interaction matrices remain high across various parameters in all patients (Supplementary Fig. 2). Together, the pairwise MEM captures the intrinsic propensity for direct functional interactions between brain regions similarly across a wide range of frequencies.
Pairwise MEM’s interaction weights reflect the white matter connectivity
Since the pairwise MEM takes the indirect propagation of influence between the electrodes into account, we hypothesized that compared to correlation, the distribution of estimated pairwise maximum entropy interaction weights to be heavytailed and skewed towards zero. Because of this explicit delineation of indirect and direct connectivity in the pairwise MEM, we hypothesized that it would improve functionallyderived estimates of direct structural connectivity. Consistent with our first hypothesis, we find that the J_{ij} weights are notably more heavytailed than the coactivation rates consistently across all frequency bands (Supplementary Fig. 4). The significantly (paired ttest, p < 0.05, p = 6.4 × 10^{−7}, N = 5 patients × 5 frequency bands) high kurtosis of J_{ij} interaction weights’ distributions compared to that of the correlation values, also indicate the heavier tail of J_{ij} weight distributions (Supplementary Fig. 5). To test our second hypothesis, we examined the similarity between the functional and structural connectivity (i.e., log normalized streamline count) matrices, as well as the ability of the pairwise MEM interaction weights to predict underlying structural connectivity. Crossmodality correlations and predictionbased receiver operator characteristic (ROC) analyses both revealed a high degree of similarity between J_{ij} interaction matrices and structural connectivity. Figure 4 depicts ROC curves for identifying structural connectivity using J_{ij} interaction matrices and coactivation rates from the same representative patient in Fig. 3. The J_{ij} interaction matrices’ Area Under the ROC Curve (AUC) values in Fig. 4b and average crossmodality correlation of 0.56 ± 0.08 indicate the strong coupling between modalities across a wide range of frequency bands. We provide the AUC and crossmodality correlation values for all patients in Supplementary Figs. 6 and 7, respectively. We also note that overall across all patients, recording montages, and frequency bands, the crossmodality correlation on average is significantly higher (average difference in correlation coefficient r = 0.04, twosided ttest, p = 1.03 × 10^{−24}) after normalization (i.e, \({\mathrm{log}\,}_{10}\)(streamline count + 1)) of streamline counts (Supplementary Fig. 8).
Extensive prior work has demonstrated that the weights of structural connections between brain regions decreases as a function of interregional distance^{36,37,38}. The effects of distance on structural connectivity are potentially even more pronounced with respect to iEEG data because the electrode grids and strips are distributed focally rather than uniformly across the brain. Indeed, we observe that the most structurally connected electrode pairs are proximal and that long range fibers are scarce (Supplementary Fig. 9). In fact, the distance between electrodes is highly predictive of the presence of a structural connection between them (average AUC across subject = 0.986 ± 0.003). Finally, recording artifact such as volume conductance and presence of common sources disproportionately affect the estimated functional relationship between proximal regions. Therefore, to better account for distancerelated artifacts, we adopted two strategies. First, we reexamined the results using two alternative recording montages to further account for global and local noise sources. Second, we compared all results against structural null models with equivalent distance profiles as the recoded brain regions. This enabled us to establish the robustness of our observations above and beyond distancedependent relations. To create each structural null, we determined the structural connectivity between N (=number of empirically sampled brain regions) randomly resampled regions from the patient’s brain. To maintain the pairwise empirical distance profiles, we first select a random pair of distal null regions and identify the pair of empirical regions with the most similar pairwise distance. Next, the remaining null regions are identified iteratively such that at every iteration, the pairwise distances between the new null region and all null regions selected in previous iterations are maximally similar to those of its corresponding empirical region and all empirical regions identified at previous iterations (Fig. 5) – see the methods section Geometric structural connectivity null for more details.
The similarity between the empirical structural and functional connectivity matrices estimated using the pairwise MEM is significantly higher than nulls in all frequency bands (onesided permutation test, n = 10,000 p < 0.05, false discovery rate (FDR) corrected for multiple comparisons across all frequency bands), in at least one of the recording montages across all patients. We presented the difference between the empirical and null’s similarity (correlations) of the structural (log normalized streamline count) and functional connectivity matrices in Supplementary Fig. 10 using different recording montages. Also, we tested these results against a host of conventional functional connectivity methods including: Pearson correlation, partial correlation, phaselocking value (PLV), weighted phaselocking index (WPLI) using iEEG, and iEEG power time series (Supplementary Fig. 10). These methods provide converging results showing the high structure and function similarity using local or global montages, though the pairwise MEM and partial correlation of iEEG power reveal significant differences at a broader range of frequency bands and overall structurefunction coupling. Similarly, we compared the ROC results for the detection of empirical and null structural connectivity matrices using different functional methods and recording montages in Supplementary Fig. 11. These results show that pairwise MEM and partial correlation of iEEG power provide the most accurate and significant (onesided permutation test, n = 10, 000, p < 0.05, FDR corrected for multiple comparisons across all frequency bands) identification of anatomical connectivity from functional estimates in 3 out of 5 patients across several frequency bands. Our results also demonstrate that increasing the power amplitude states’ binarization threshold in general either yields comparable outcomes, or further enhances the structurefunction coupling (as seen in Supplementary Figs. 10 and 11). We also note that unlike other methods, WPLI fails to reveal multimodal agreement in regional coupling, which suggests the functional relevance of near zerolag synchro’nizations between proximal brain regions. In Fig. 6 we provide the aforementioned results from a representative subject (#5). Together, these results suggest that, although the presence of structural connectivity is highly confounded with interregional distance, the pairwise MEM reveals high structurefunction coupling across a broad range of frequencies, beyond those anticipated by interregional distance alone.
Next, to examine the relationship between the strength of structural and functional connectivity, we repeated the structurefunction coupling analyses after removing a variable percentage of the weakest structural connections. We hypothesized that removing weak edges would increase the structurefunction coupling in some patients, as falsepositives in structural measurements are more likely to manifest as higher in weaker connections. Supplementary Fig. 12 shows the results from patient #1 after progressively removing a portion of weak structural edges. Although the outcomes vary to a degree across different recording montages, removing weak edges increased the structurefunction coupling across all frequency bands in this patient. Supplementary Fig. 13 shows the result of a similar analysis for all patients using referential montage. These results also demonstrate that removing weak edges increased the correlation between structural and functional connectivity matrices in all patients (Supplementary Fig. 13b). At the same time, the ROC analyses in Supplementary Fig. 13a reveal our ability to detect structural connectivity does not improves after pruning weak structural edges, except in patient #1. Overall, these results demonstrate that more stringent structural connectivity estimations increases the measured structurefunction coupling in some patients.
Pairwise MEM accurately predicts coactivation states’ probabilities
We assessed the performance of the pairwise MEM first by comparing the empirically observed and activation and coactivation rates with those approximated by the model. As shown in Supplementary Fig. 14, the learning algorithm accurately reconstructs the activation and pairwise activation rates, well within experimental precision across all frequency bands and patients. These results demonstrate that the pairwise MEM provides a statistically robust prediction of the observed correlation structure of the power amplitude states across all frequency bands. Next we examined the goodnessoffit of the pairwise MEM, which reveals how well a simple model using only a combination of the estimated activation rates and pairwise coactivation rates can predict the probability of the iEEG power amplitude states. One way to assess the goodnessoffit fit for the pairwise MEM is to calculate the degree to which the estimated probabilities for the observed activity states diverge from the empirically measured probabilities. As a baseline, this divergence between the pairwise model and the observed statistics is often compared to the divergence of the simpler firstorder model, which assumes that each brain region is behaving independently from the others. It is important to note that this calculation can be computationally expensive for large systems because the state space increases exponentially (2^{N}) with the number of electrodes (N).
To circumvent this issue, we compare the probability of all empirically observed states to their predicted probabilities. Calculating predicted’ probabilities usually is very difficult in highdimensional datasets as calculating the normalization constant in the Boltzmann distribution (i.e., partition function) involves summing over all possible states. Therefore, we approximate the partition function using the empirical probability of the silent state (i.e., ‘alloff’) – see^{33,39} for more details. Scatter plots in Fig. 7 show the high similarity between the empirical and the estimated probabilities of all empirically observed states at θ, β, and high γ frequency bands from a representative patient (#5) using local recording montage binarized at 1. These results show that the pairwise MEM predicts the probabilities of the most frequently observed states with high accuracy. Similar results are also found in all five patients, as seen in Supplementary Fig. 15.
Our results also show that the goodnessoffit of the pairwise MEM decreases linearly with the number of selected electrodes for each patient, as seen in Fig. 8a. We measure the goodnessoffit by quantifying the divergence between the empirical and the estimated probabilities using a modified version of Kullback–Leibler divergence (see Materials and Methods section for details). We find a significant (twosided Wilcoxon ranksum test, p < 0.05) divergence of the predicted from empirical probabilities in iEEG power amplitude states binarized at 0 than 1 (Fig. 8b) using both referential and global mean regression montages. The goodnessoffit is also significantly different between recording montages only at the higher (i.e., 1) binarization threshold. As seen in Fig. 8b, divergence values are significantly (twosided Wilcoxon ranksum test, p < 0.05) smaller in the referential montage than both local and global montages. Finally, we find significant differences in the pairwise MEM’s predication accuracy across low and highfrequency bands. As seen in Fig. 8c and d, the pairwise MEM’s divergence from the empirical probabilities is significantly lower than lowfrequency bands (twosided Wilcoxon ranksum test, p < 0.05, Bonferroni corrected for multiple comparisons) at binarization threshold of 0, and significantly higher than lowfrequency bands at binarization threshold of 1. Together, these results demonstrate that the pairwise MEM’s accuracy is highest in predicting coactivation probabilities at lowfrequency bands (i.e., θ, α and β bands).
Discussion
A critical open question in neuroscience is how the relatively fixed white matter structure of the brain gives rise to complex functional dynamics. Some have argued that these complex dynamics are wellapproximated by a single underlying process^{40,41}, while others favor a model comprised of multiple processes that the brain can switch between^{40,42,43}. In either scenario, it is critical to understand from a statistical perspective whether the observed dynamics can be explained by a fixed structural scaffold, such as that represented by the pattern of white matter fiber bundles connecting largescale brain regions. The answer depends to some degree on whether or not one can identify statistical features of the functional dynamics that display relatively timeinvariant properties. Some evidence for such timeinvariance has recently been obtained from eletrocorticography, where patterns of functional connectivity between electrodes appear relatively stable in windows larger than a few minutes^{17,18,44}. Our observations also provide converging evidence that the correlation patterns and, consequently, the intrinsic pairwise relationships between brain regions that give rise to power amplitude dynamics, are effectively stable in long multihour recordings. Thus, these findings further motivate a careful investigation into the correspondence between those functional relationships and the underlying anatomical projections.
A second line of evidence supporting the existence of a common structural scaffold for the observed dynamics is the presence of notable similarity in the estimated pairwise interactions across frequency bands. This statistical similarity is reminiscent of the crossfrequency interactions that have been observed in other studies, and that are thought to play a role in integrating information across brain structures that are functionally specialized and spatially segregated^{45,46,47}. It is commonly thought that the diverse rhythms present in different frequency bands are associated with different spatiotemporal scales of neural activity^{48,49}, with low frequencies driving activity over larger spatial areas and high frequencies driving activity over smaller spatial areas^{50}. Our work offers a useful complement to these prior studies by demonstrating that the pairwise MEM provides higher crossfrequency similarity in estimated interactions than conventional measures of functional connectivity. Future work could examine the realtime dynamics of crossfrequency coupling by combining power amplitude states across all bands in a single model. Taken together, our observations of high crossfrequency similarity indicate that a common underlying physiological^{51} or anatomical^{52} mechanism is likely driving the functional interactions between brain regions across all frequency bands.
We validate the possibility that patterns of functional interactions track an underlying structural scaffold, by showing the similarity between structural connectivity and pairwise MEM interaction matrices. We demonstrate that strength of interactions can be used to predict the underlying white matter structure in the same patients across a wide range of frequency bands, consistent with prior work in other imaging modalities^{29}. It is of interest to determine the contribution of distance to structurefunction coupling. The strength of a structural connection between two brain regions tends to be negatively correlated with the distance between them, as does the strength of the functional connection between them^{35}. One possibility is that common sources that are simultaneously measured by nearby electrodes drive the structurefunction coupling. Therefore, we established the significance of our findings by rigorous statistical comparisons against structural null models, which we created by resampling patients’ brain regions with distance profiles similar to the recorded brain regions. Inline with our prior findings^{53}, we also show that alternative functional connectivity methods such as PLV^{54} provide converging results at several frequency bands. Nevertheless, compared to phase and correlationbased methods, the pairwise MEM and partial correlation of iEEG power time series produced the biggest divergence from the null and revealed significant structurefunction coupling even at higher frequency bands. Inline with to prior work by Watanabe et al.^{29}, these results provide evidence that accounting for global patterns of pairwise interactions likely reduces the spurious correlations and contributes to the partial correlation and pairwise MEM’s ability to uncover the multimodal coupling. Together, our observations suggests that the functional dynamics captured by the pairwise MEM extends beyond common sources or local spreading phenomena, and that the presence of a structural connection between brain regions likely plays a crucial role in shaping the emergent functional activity across a wide range of frequencies.
Our results also demonstrate that overall the functional connectivity estimated using pairwise MEM and partial correlation of iEEG power time series across all three montages reveals significant coupling to the underlying white matter connectivity between the recorded regions across a wide range of frequencies. Other functional connectivity methods such as PLV and pairwise correlations provide convergent results, only after spatial filtering, usually from θ to γ (4–50 Hz) frequency bands. These observations highlight the relative insensitivity of the pairwise MEM to shared reference noise. In general, however, our results show that local montage results in higher similarity and more robust detection of structural connections across more patients and at higher frequencies, which suggests that volume conductance effects are major source of artifacts that negatively impact structurefunction coupling estimations. Our results also show the poor performance of the WPLI measure, which highlights the functional relevance of near zerolag synchronizations.
Pairwise MEMs have been employed effectively to explain patterns of collective neural activity across a range of spatial scales^{26,29,31}. A good fit of the pairwise MEM indicates that the observed patterns of power amplitude states can be accurately described with a combination of firstorder activations and secondorder (pairwise) coactivation between electrodes. A poor fit signifies that higherorder effects (e.g., triplet or quadruplet interactions between regions) or that common inputs from other external regions may be required to explain the behavior of the system. Here, we demonstrate that the pairwise MEM allows us to accurately approximate the empirical correlation patterns of power amplitude states in several biologically relevant frequency bands. Moreover, we find that the pairwise MEM can predict the frequency (i.e., probability) of the empirically observed coactivation patterns with relatively high accuracy in all patients. Our results also suggest that the difference in sampling likely contributes to the observed intersubject variability, as the accuracy of the model correlates negatively with the number of examined brain regions in each patient. Overall, we demonstrate that the goodnessoffit of the model – the degree of divergence between the observed and predicted probabilities – is highest at the higher iEEG power amplitude binarization threshold (i.e., one) and lowfrequency bands (i.e., θ, α, β bands). These results suggest that higher thresholds improve the fit of the model likely by increasing the signaltonoise ratio. We expect some approximation error, as the likelihood of empirically observing the lower probability states is incredibly low. In fact, we observe the biggest probability estimation errors in the least frequently observed states. In addition, the relatively longer interictal dataset needed for a stable estimation of iEEG power functional connectivity (i.e., coactivation rates), likely contributes to the larger errors at high γ band.
Nevertheless, we speculate that the relatively higher error at low binarization threshold (i.e., zero) and higher frequency bands might also originate from biophysical mechanisms contributing to nearby electrodes’ coactivation. Examples of such biophysical mechanisms include the spatially distributed activation sources and wave patterns, including traveling and spiral waves^{55,56}. It is important to note that even though iEEG electrodes cover a large portion of the cortical surface in these patients, we are still only able to capture a small fraction of the full system, and it is highly likely that some amount of coactivation is driven by input from external sources that are not covered by an electrode. Although the MEM could be extended to include higherorder parameters beyond the pairwise interactions considered here (e.g.,^{39}), the practical limitation of partial brain coverage and the previously noted biophysical mechanisms combine to hinder the interpretability of higherorder mechanisms. Together, our findings suggest that a simple pairwise MEM allows us to explain how the strength of the intrinsic interactions between brain regions gives rise to the observed functional connectivity structure and shape the frequency of emerging coactivation patterns.
One common concern regarding the use of iEEG datasets from patients with epilepsy to study the functional organization of the human brain is their documented aberrations of structural connectivity as well as structurefunction coupling^{15,57,58}. One could argue that aspects of our results dependent on such aberrations may not generalize, as they may not reflect the structurefunction relationship in healthy brains. Since iEEG datasets from healthy controls do not exist, we cannot directly address these concerns. Nevertheless, we draw on recent work demonstrating that the patterns of iEEG functional connectivity in patients show statistical similarities to structural connectivity estimated in healthy volunteers^{52}, and that this statistical similarity is upheld and even strengthened during ictal epochs^{59,60}. Future work using data from patients with other pathologies, or using sourcelocalized MEG in healthy patients, could be helpful in further understanding the nature of the structurefunction correspondence accessible to the MEM.
Our results reveal that the functional connectivity estimated using the pairwise MEM corresponds closely to the underlying structural connectivity between sampled regions, and we tested the significance of these observations using conservative structural null models. Although preprocessing methods and parameter choices can impact estimates of structural connectivity, we observed that the correspondence between functional interactions and structural connections were robust to reasonable variation in these choices. Future work could test the robustness of our findings to other important preprocessing parameters such as region size and contemporary streamline filtration techniques.
We show that our proposed geometric structural null preserves the distribution of the distances between regions, with a relatively small degree of error. We further demonstrate that given our current experimental design, this amount of error is within the tolerance range, as the average distance between iEEG electrodes and the centroid of their most proximate ROIs were significantly larger. Future work can aim to reduce the former by biasing the geometric null algorithm towards regions with a high distance error (e.g., by initializing the algorithm with a small set of empirical ROIs with high distance errors), and the latter type of error by defining electrodecentric ROIs. It is worth noting that our results show that the distance error is larger only in a few electrodes, which suggests that the idiosyncratic electrode placements likely contribute to the systematic divergence of the null distance profiles.
Our observations have potentially important implications for understanding largescale functional brain dynamics as well as our ability to modulate these dynamics via stimulation or resection. Our findings are consistent with the notion that the pairwise MEM may be particularly sensitive to structurallydriven functional relations while conventional functional connectivity methods may be sensitive to nonstructurallydriven functional relations that might vary appreciably over short time intervals. The observed high degree of structurefunction coupling suggests that structural connectivity is a useful proxy for timeinvariant functional relationships^{52,59}. This observation could be useful in the treatment of epilepsy patients, where access to the brain is traditionally limited to recording loci but could be augmented with noninvasive measurements of structural connectivity for more informed surgical planning^{60}. Indeed, it is intuitively plausible that computational models built to inform the modulation of abnormal functional dynamics via stimulation^{61} or resection^{62} may be able to utilize patientspecific structural connectivity in place of or to augment patientspecific functional connectivity.
Materials and methods
Patient information
Five patients (mean age 41.6, standard deviation 4.8; 3 female) undergoing surgical treatment for medically refractory epilepsy at the Hospital of the University of Pennsylvania underwent implantation of subdural electrodes for localization of the seizure onset zone. All patients had unilateral temporal lobe epilepsy, determined by comprehensive clinical evaluation and validated by seizure free oneyear outcomes following temporal lobectomy. This study was approved by the Institutional Review Board of the University of Pennsylvania, and all subjects provided written informed consent prior to participating.
Intracranial EEG acquisition
Deidentified patient data was downloaded from the online International Epilepsy Electrophysiology Portal (iEEG Portal, http://www.ieeg.org)^{63}. iEEG signals were recorded at 512 Hz at the Hospital of the University of Pennsylvania, Philadelphia, PA. Subdural electrode (Ad Tech Medical Instruments, Racine, WI) configurations consisted of linear strip and twodimensional grid arrays (2.3 mm diameter with 10 mm intercontact spacing). Interictal periods were selected to be at least 6 h away from clinically marked seizures.
Recording configurations
iEEG recordings are relative measures as they measure the electrical potential against potential in another electrode. Usually, this reference electrode is placed far from the recording site on the brain or bone. This recording configuration is referred to as referential montage, and in the past, has been utilized in twodimensional local field potential recordings^{64,65}. However, since the reference electrode itself contains signal fluctuations, it can contaminate the activations at the recording electrode. This common noise is either ignored (e.g.,^{66}) or extracted by rereferencing to a global signal average (e.g.,^{53,67}). This global montage is referred to as the common average reference.
However, if the profile of the noise is less homogeneous, for instance, due to the considerable distance between electrodes in stereotactic EEG (sEEG) recordings, references such as local Laplacian montage can be used for noise reduction via local spatial filtering^{68,69}. Laplacian montages also suppress the volume conductance effects by removing the potentials accounted for by the local references^{34}. Nevertheless, due to this property, local Laplacian montage can also introduce error, as they strongly attenuate the broadlydistributed coactivations patterns.
In this study we used a referential montage utilizing a reference electrode distant to the seizure onset zone for recording iEEG signals. Also, we explored two alternative recording configurations. First, to account for common reference noise, we implemented a global average reference montage by regressing out the global mean signal from individual electrodes’ time series. Second, in the same vein as Laplacian montages^{68}, we regressed out the effect of local noise (such as volume conductance) by fitting a multiple linear regression model to each electrode’s iEEG time series using the time series of four closest electrodes as explanatory variables. Despite the fundamental similarity between local multiple linear regression and local weighted averaging montages, local multiple linear regression does not explicitly account for distance differences of each electrode to the other four selected local electrodes. Nevertheless, this property of local multiple linear regression allows us, in theory, to remove the locally inhomogeneous noise (i.e., noise shared between only a few local electrodes) more effectively.
Image acquisition
MRI data were acquired using a 3Tesla Siemens scanner (Siemens Magnetom Trio Tim Syngo MR B17, Germany) at the Hospital of the University of Pennsylvania. Diffusionweighted images were acquired in a singleshot echoplanar imaging, multishell protocol (2.5 × 2.5 × 2.5 mm^{3} resolution, TR = 5216 ms, TE = 100 ms, FOV = 220 mm, MB acceleration factor = 2, flip/refocus angle = 90/180°, phase encoding direction = anterior to posterior). A total of 119 volumes were acquired at b = 0 (16 volumes), b = 300 (8 volumes), b = 700 (31 volumes), and b = 2000 (64 volumes). T1weighted MPRAGE images were also obtained for each subject (0.94 × 0.94 × 1.0 mm^{3} resolution, TR = 1810 ms, TE = 3.51 ms, FOV = 240 mm, flip angle = 9°, phase encoding direction = right to left).
Structural connectivity
T1weighted MPRAGE images were used to coregister MNIspace atlases to subject structural space via AntsRegistrationSyN^{70}. Similarly, we used the first b0 image from each patient’s diffusion sequence to calculate coregistration transforms from subjectspecific diffusion to structural space. Using this set of transforms, we brought individualized AAL 600 atlases^{7} for all five patients into diffusion space for tractography. Atlas to diffusion coregistrations were performed using ANTs and FSLs FLIRT. Eddy current and motion corrections were performed using FSLs 5.0.9 EDDY patch. To mitigate susceptibility distortions, we used the subjects MPRAGE T1 structural scan. This image was first brought to diffusion space by using the inverse of our FLIRT transformation for each subject, and then contrastinverted and intensitymatched to the DWI image using FSLMATHS. Finally, the DWI image was nonlinearly transformed to the shape of the MPRAGE scan, as these acquisitions are not subject to the same susceptibility distortions observed in DWIs.
We evaluated several distinct methodological approaches, and we also assessed the consistency of our findings across them. We performed deterministic and probabilistic tractography in Camino^{71} on distortioncorrected DWIs to construct adjacency matrices for structural connectivity. Deterministic tractography parameters were stringent so we could err on the side of caution in evaluating the physiological feasibility of our reconstructed white matter connections. These parameters included removing estimated fibers in areas of the brain where 90% or greater of diffusion was estimated to be isotropic versus restricted^{72}, where fractional anisotropy was determined to be below 0.05, or where a T1derived brain mask ended. We also removed fibers that curved more than 50° over 5 mm to again restrict fiber reconstructions to physiological feasibility. Finally, we removed fibers shorter than 10 mm to minimize spurious shortrange connections based on only a few voxels, and we also removed fibers over 400 mm to prevent looping artifactual fibers from impacting our results. Structural adjacency matrices were constructed from the number of streamlines that begin and end in each predefined ROI. We employed equivalent parameters for probabilistic tractography and utilized the PICO algorithm^{73}. Processing power limited us to seeding 400 times per voxel. Within deterministic and probabilistic tractography, we evaluated streamline count (SC) weighted adjacency matrices.
Pairwise maximum entropy model
To form unbiased predictions for the probabilities of various functional brain states, we fit a pairwise maximum entropy model, which is motivated by the principle of maximum entropy. The principle of maximum entropy states that when estimating a probability distribution given some desired constraints, one ought to consider the distribution that maximizes the uncertainty (i.e., entropy); choosing any other distribution that lowers the entropy would assume additional information beyond our desired constraints. Fitting the pairwise MEM entails tuning the first and secondorder interaction parameters between regions so that the predicted activation rates and coactivation rates match the empirically observed values. An accurate fit of the pairwise MEM implies that the observed patterns of collective activity can be understood as emerging from each region’s independent activation rate combined with regions’ joint activation rates. In other words, the pairwise MEM allows us to establish a model of iEEG functional power dynamics as a probabilistic process shaped by underlying pairwise relationships between brain regions.
Our use of the power amplitude envelope to define the activation states is motivated by several factors. First, it has been shown that the BOLD fMRI signal echoes the envelope of highfrequency neural activity^{74,75}, specifically when measured by iEEG^{52,59,76,77}. Thus, in light of studies linking BOLD fMRI functional connectivity to white matter structural connectivity^{6,29}, we hypothesize that the power of iEEG recordings should also exhibit a clear relationship with the underlying structural connectivity. Second, a large body of evidence has demonstrated that iEEG oscillations play an important role in healthy cognitive function, and that breakdowns in oscillatory power are linked to cognitive disorders^{78,79}. Third and finally, by defining our activity states using bandpassed power amplitudes, we gain the ability to analyze patterns of activity across both time and frequency, thereby mitigating inconsistent phase relationships between electrodes caused by spatially nonstationary signal sources, such as iEEG spiral waves^{55}. However, recent modeling work suggests that the metastable wavelike patterns are also able to recapitulate the empirically observed functional connectivity patterns, if they are plentiful on longer time scales^{56}.
Following prior works, such as^{80}, we define ‘on’‘off’ activation states for each brain region by binarizing the normalized envelope of the power amplitude of each frequency band (Fig. 1). We fit the pairwise MEM to the thresholded and binarized normalized power amplitude states of electrodes from concatenated 14, 16, 14, 13, and 19 h of interictal iEEG recording of patients 1–5, respectively. We picked only the single closest (Euclidean distance) electrode to the ROI’s center for analysis when more than one electrodes exist within the same ROI. A total of 69, 36, 76, 70, and 64 electrodes were selected from patients 1–5, respectively. To calculate the power amplitude states, we first segmented the timeseries into 36 100second windows (Fig. 1a). Next, for each segment and each electrode we calculated the wavelet power^{81} of the timeseries (Fig. 1b). We bandpassed the wavelet power by averaging the power amplitude across all the frequencies within each band. Next, the power amplitude timeseries (all bands) were highpass filtered at 0.5 Hz to minimize the effect of ultraslow fluctuations of power on the binarized states. The highpassed time series were then zscored and binarized by thresholding at zero to create bandpassed power amplitude states (Fig. 1c). We also explored higher binarization threshold of one. Finally to reduce the temporal dependence of samples we downsampled the states by the factor of 10. At each time t, the power amplitude state is defined by \({V}^{t}=\left[{\sigma }_{1}^{t},{\sigma }_{2}^{t},...,{\sigma }_{N}^{t}\right]\), where \({\sigma }_{i}^{t}\) is the binarized power amplitude of electrode i at time t, where \({\sigma }_{i}^{t}=1\) (0) for power above (below) the threshold, and N is the total number of electrodes. For electrode i, the empirical power amplitude activation rate \(\left\langle {\sigma }_{i}\right\rangle\) is given by \((\frac{1}{T})\mathop{\sum }\nolimits_{t = 1}^{T}{\sigma }_{i}^{t}\), where T is the number of time slices. Likewise, the empirical coactivation rate between electrodes i and j, \(\langle {\sigma }_{i}{\sigma }_{j}\rangle\), is defined by \((\frac{1}{T})\mathop{\sum }\nolimits_{t = 1}^{T}{\sigma }_{i}^{t}{\sigma }_{j}^{t}\).
Here, our only constraints were that the model averages \({\left\langle {\sigma }_{i}\right\rangle }_{m}\) and \({\langle {\sigma }_{i}{\sigma }_{j}\rangle }_{m}\) matched the empirical values of \(\left\langle {\sigma }_{i}\right\rangle\) and \(\langle {\sigma }_{i}{\sigma }_{j}\rangle\), respectively. Given these constraints, it is known that the probability distribution that maximizes the entropy is the Boltzmann distribution^{25}:
where P(V_{k}) is the probability distribution of the kth state V_{k}, and E(V_{k}) is the energy of this state, which is given by:
where σ_{i}(V_{k}) is the value of σ_{i} for state V_{k}, h_{i} represents the expected base power amplitude rate of electrode i in isolation, and J_{ij} represents the functional interaction between electrodes i and j.
Fitting the pairwise MEM entails iterative adjustment of the parameters h_{i} and J_{ij} with a gradient descent algorithm^{30} until the empirical averages \(\left\langle {\sigma }_{i}\right\rangle\) and \(\langle {\sigma }_{i}{\sigma }_{j}\rangle\) match those in the model, namely \({\left\langle {\sigma }_{i}\right\rangle }_{m}=\mathop{\sum }\nolimits_{q = 1}^{{2}^{n}}{\sigma }_{i}({V}_{q})P({V}_{q})\) and \({\langle {\sigma }_{i}{\sigma }_{j}\rangle }_{m}=\mathop{\sum }\nolimits_{q = 1}^{{2}^{n}}{\sigma }_{i}({V}_{q}){\sigma }_{j}({V}_{q})P({V}_{q})\). Since the state space is prohibitively large in our data, we followed^{82} by approximating the model averages \({\left\langle {\sigma }_{i}\right\rangle }_{m}\) and \({\langle {\sigma }_{i}{\sigma }_{j}\rangle }_{m}\) by calculating the correlation of a sequence of random samples (N = 10,300,000, after discarding the first 300,000 and downsampling by a factor of 500) from the probability distribution using the Metropolis–Hastings algorithm^{83}. However, our preliminary analysis reveals that the error in the approximated activation rates is notably high. Therefore, instead of the aforementioned likelihood maximization approach, alternatively, we utilized the pseudolikelihood maximization algorithm using MATLAB scripts provided by Ezaki et al.^{32} to estimate the parameters of the model. In pseudolikelihood maximization scheme, we aim to solve
where the pseudolikelihood function, \({\mathcal{L}}(h,J)\), is defined as
Here, \(\tilde{P}\) represents the Boltzmann distribution for a single spin (i.e., electrode), σ_{i}, given that the other σ_{j}(j ≠ i) values are fixed to σ_{/i}(t) ≡ (σ_{1}(t), ..., σ_{i−1}(t), σ_{i+1}(t), ..., σ_{N}(t)). Therefore, \(\tilde{P}\) is given by
This meanfield approximation neglects the influence of σ_{i} on σ_{i} (j ≠ i), however, the estimator afforded by the maximization of the pseudolikelihood converges to the maximumlikelihood estimator as t_{max} → ∞^{84}. The parameters of the model, h and J, are estimated using a gradient ascent scheme given by
and
Where the superscripts new and old represent the parameters after and before a single updating step, respectively, ϵ (>0) is the learning rate, and \({\left\langle {\sigma }_{i}\right\rangle }_{\tilde{P}}\) and \({\langle {\sigma }_{i}{\sigma }_{j}\rangle }_{\tilde{P}}\) are the mean and correlation with respect to distribution \(\tilde{P}\) (Eq. (5)) and are given by
and
respectively. For more details regarding the pseudolikelihood maximization scheme see^{32}. As seen in Supplementary Fig. 14, the approximated activation and coactivation rates match the empirical values within the experimental precision. It is worth noting that the reconstruction of activation and coactivation rates using the gradient ascent method is trivial in the maximumlikelihood method since the problem is concave with respect to the J and h parameters^{32}. However, for the pseudolikelihood maximization method used here, convergence to the correct solution where the activation and pairwise coactivation rates in the model match those in the empirical data (Supplementary Fig. 14).
The coactivation states can also be defined as \(\tilde{{\sigma }_{i}}\in \left\{1,1\right\},(i=1,...,N)\) instead of \({\sigma }_{i}\in \left\{0,1\right\}\), since mathematically, the energy function representations are equivalent and have a onetoone relationship; \(2{\sigma }_{i}1=\tilde{{\sigma }_{i}}\). Therefore the pairwise MEM parameters, J_{ij} and h_{i}, also have the following relationships:
Since we used the method from^{32} to estimate the model parameters that define the states as \(\tilde{{\sigma }_{i}}\in \left\{1,1\right\}\), we transform the estimated \(\tilde{{J}_{ij}}\) and \(\tilde{{h}_{i}}\) matrices following Eqs. (10) and (11), respectively. Usually, calculating the normalization constant in the Boltzmann distribution (i.e., partition function) in highdimensional datasets is very difficult, as it involves summation over all possible states. This transformation allows us to approximate the partition function (\(\hat{Z}\)) directly from the probability of the silent state (i.e., p(000⋯0)) as \(\hat{Z}=\frac{1}{p(000\cdots 0)}\), since it holds that \(p(000\cdots 0)=\frac{1}{Z}\)^{33,39}.
Empirical and estimated probabilities divergence measure
To examine the goodnessoffit of the pairwise MEM, in the same vein as^{39}, we measure the divergence between the empirically observed states’ empirical and estimated probabilities using a modified version of Kullback–Leibler measure defined as:
where P(x) and Q(x) are the empirical and estimated probabilities of state x. Unlike the original Kullback–Leibler measure, we use the absolute value of the log. Since the estimated probabilities are not normalized, it is important to penalize states where the model overestimates their probabilities, as they will reduce the Kullback–Leibler divergence values.
Phasebase functional connectivity methods
Originating from the field of physics, studying synchronizations in the brain has been instrumental in expanding our understanding of its functional organization. In this framework, two brain regions are considered synchronized if their electrophysiological recordings exhibit stable phase differences across time or trials. Introduced first by Lachaux et al.^{54}, the phaselocking value (PLV) measure calculates the consistency in the difference between the instantaneous phase of two bandpassed signals. Formally, PLV is defined as:
where \(E\left\{.\right\}\) is the expectation operator, and θ the difference between the instantaneous phase values of two filtered iEEG times series. We determine the instantaneous phase using a Hilbert transform from the bandpassed time series. PLV values range from zero to one, signifying no to full synchrony (i.e., consistent phasedifference), respectively. In theory, volume conductance, the signal from a source simultaneously recorded by two nearby electrodes, would result in apparent synchronization with a phase difference of 0 (or π depending on the position of the dipole). Phaselocking index (PLI) was introduced^{85}, which aims to reduce sensitivity to volume conductance by disregarding phaselocking with 0 or π phase difference. PLI is formally defined as:
where \(sgn\left(\Im \left\{X\right\}\right)\) is the sign of the imaginary part of the crossspectrum of two signals S_{1} and S_{2} defined as:
where Z_{1} and Z_{2} are vectors of complexvalued Fourier spectra, obtained using the Discrete Fourier Transform of S_{1} and S_{2} time series, and \({Z}_{2}^{* }\) is the complex conjugate of Z_{2}. A weighted version of this measure was later introduced by Vinck et al.^{86}, based on downweighting the influences of couplings with phase differences close to 0 or π, on the final phaselocking values. The Weighted Phaselocking Index (WPLI) is defined as:
Note that as long as two signals maintain a positive (or negative) phase difference at all time points, WPLI will return one indicating highest synchrony. Thus, in theory, WPLI reduces false positives as it will not overestimate connectivity due to volume conduction. However, WPLI can miss true connections due to small lags or frequency nonstationarities^{87}.
Partial correlation
Partial correlation coefficient (ρ) between any two variables X_{i} and X_{j} of a set V, given all others variables (i.e., V⧹{X_{i}, X_{j}}) can be calculated from the inverse covariance matrix (p) as:
However, we used MATLAB’s partialcorr.m scripts, which instead computes partial correlation coefficient, \({\rho }_{{X}_{i}{X}_{j}}\), as the correlation of the residuals from the regression of X_{i} and X_{j} on V⧹{X_{i}, X_{j}}. We calculated the partial correlation matrices from hourlong iEEG and iEEG power time series segments. Similar to the pairwise MEM analysis, we downsampled the EEG and iEEG power time series prior to calculating partial correlations by a factor of 10 to reduce the temporal dependence of samples. Finally, for each patient, we averaged the partial correlation matrices calculated from all hourlong segments
Geometric structural connectivity null
iEEG electrodes are about one centimeter from their neighboring electrodes. This high density of iEEG electrodes allows us to cover a patch of cortex with a large number of electrodes. However, this high density also increases the possibility of artificially inflating functional connectivity between proximal electrodes due to factors such as common source signals or volume conductance issues. Therefore, to tease out the intrinsic functional relationship for the mentioned recording artifacts expected from nearby electrodes, prior work has proposed several methods to account for the distance between the measured brain regions. For instance, to remove the volume conductance effects and radially symmetric correlations, some groups have suggested adjusting the functional connectivity using distance regression strategy^{88}. More recently, other geometric structural nulls have been introduced that aim to maintain the higherorder statistical structure of the edge weights based on the distance profile^{89}.
Here, we introduce a new paradigm based on iterative resampling of individual patients’ brain regions aimed at maximizing the similarity between null brain region distances and recorded brain region distances. This process is akin to virtual resampling of the patient’s brain with the same number of electrodes with similar geometry, as it maintains the distance profile of each pair of electrodes. This method also benefits from its minimal assumptions on the expected relationship between structural connectivity weight and distance. Instead, it takes advantage of each patient’s wholebrain structural connectome and the patientspecific geometry of iEEG electrodes’ placement, to create individualized structural connectivity nulls with conserved distance profiles.
Specifically, we first calculate the distance between all pairs of brain regions. We initiate the algorithm by randomly sampling a pair of brain regions, with distances close to the most distant pair of the recorded brain regions. Next, we identify the two brain regions, one null and one recorded region, which are located the most similarly relative to the pair of null and recorded brain regions identified at the first step, respectively. This process is repeated, on brain regions at a time, until all the recorded brain regions and their corresponding nulls are matched.
It is worth noting that the idiosyncrasies of patients’ electrode placements yield variable regional distance profiles, which should be considered in the initiation step of the algorithm. For instance, since most edges between the recorded brain regions are short to midrange, the algorithm produces comparable distributions when initiated with the less frequent distance brain regions. In Supplementary Fig. 16, we provide details regarding each patient’s structural connectivity null and their distance profiles. These results demonstrate that the estimated null models closely match the distance profiles of the recorded brain regions, though some null brain regions are located with a small degree of error relative to other brain regions. Nevertheless, as seen in Supplementary Fig. 17, we demonstrate that this error is within the tolerance range, as it is smaller than error associated with the distance between iEEG electrodes, and the centroid of their most proximate ROIs. As seen in Supplementary Fig. 18, statistical testing reveals that the empirical distance between electrodes and the center of their corresponding ROI is significantly larger than the average null regions’ distance errors (i.e., the mismatches between null and recorded brain regions) across all patients (twosided ttest, p < 0.05, p = 9.73 × 10^{−12}, p = 3.16 × 10^{−13}, p = 9.65 × 10^{−14}, p = 2.6 × 10^{−16}, p = 3.29 × 10^{−13}). In Fig. 5, we provide the schematic representation of our proposed resampling algorithm for generating geometric structural connectivity nulls. We also provide the pseudocode of our proposed resampling algorithm in the Supplementary Methods.
Predicting anatomical connectivity from functional connectivity
We conducted ROC analysis to determine the accuracy with which the strength of the functional interactions in the pairwise MEM predict the presence of structural connectivity. We constructed the ROC curves to represent the true positive (structurally connected brain regions with functional interaction weight above the threshold) and false positive (structurally disconnected brain regions with functional interaction weight above the threshold) at different detection thresholds. The area under the curve (AUC) of the ROC plot represents the accuracy of the classification, where an AUC value of 1 indicates perfect classification, and an AUC value of 0.5 indicates classification performance at the chance level.
Statistics and reproducibility
We used nonparametric permutation tests to compare the coupling between the recorded brain regions’ anatomical and functional connectivity against null models that maintain the distance profile between electrode pairs. We tested the relationship between the recording montage, number of iEEG electrodes, and frequency bands with the pairwise MEM’s goodnessoffit (measured as the divergence between empirical and predicted coactivation probability) using the Wilcoxon ranksum test. We used ttest to compare the empirical distance between the electrode and the ROI center to the distance error of nulls across all patients. We also used paired ttest for statistical comparisons between the kurtosis values calculated from J_{ij} interaction weight distributions and those of correlation distributions. We used Bonferroni and false discovery rate (FDR) to correct for multiple comparisons throughout the manuscript.
Reporting summary
Further information on research design is available in the Nature Research Reporting Summary linked to this article.
Data availability
All interictal iEEG data are available from the International Epilepsy Electrophysiology Portal (IEEGPortal, http://www.ieeg.org). Information about datasets used in this manuscript are listed in Supplementary Data 1.
Code availability
The custom scripts for generating geometric structural null models are available at https://github.com/aashourv/iEEG_MEM.
References
Bassett, D. S., Zurn, P. & Gold, J. I. On the nature and use of models in network neuroscience. Nat. Rev. Neurosci. 19, 566 (2018).
Bassett, D. S. & Sporns, O. Network neuroscience. Nat. Neurosci. 20, 353 (2017).
Honey, C. J., Thivierge, J.P. & Sporns, O. Can structure predict function in the human brain? Neuroimage 52, 766–776 (2010).
Stephan, K. & Friston, K. Functional connectivity. In Encyclopedia of neuroscience, 391–397 (Elsevier, 2009).
Skudlarski, P. et al. Measuring brain connectivity: diffusion tensor imaging validates resting state temporal correlations. Neuroimage 43, 554–561 (2008).
Honey, C. et al. Predicting human restingstate functional connectivity from structural connectivity. Proc. Natl. Acad. Sci. USA 106, 2035–2040 (2009).
Hermundstad, A. M. et al. Structural foundations of restingstate and taskbased functional connectivity in the human brain. Proc. Natl. Acad. Sci. USA 110, 6169–6174 (2013).
Van den Heuvel, M. P. & Sporns, O. An anatomical substrate for integration among functional networks in human cortex. J. Neurosci. 33, 14489–14500 (2013).
Wang, Z., Dai, Z., Gong, G., Zhou, C. & He, Y. Understanding structuralfunctional relationships in the human brain: a largescale network perspective. Neuroscientist 21, 290–305 (2015).
Meunier, D., Lambiotte, R., Fornito, A., Ersche, K. & Bullmore, E. T. Hierarchical modularity in human brain functional networks. Front. Neuroinformat. 3, 37 (2009).
Bassett, D. S. et al. Hierarchical organization of human cortical networks in health and schizophrenia. J. Neurosci. 28, 9239–9248 (2008).
Bassett, D. S. & Bullmore, E. Smallworld brain networks. Neuroscientist 12, 512–523 (2006).
Hagmann, P. et al. White matter maturation reshapes structural connectivity in the late developing human brain. Proc. Natl Acad. Sci. USA 107, 19067–19072 (2010).
Skudlarski, P. et al. Brain connectivity is not only lower but different in schizophrenia: a combined anatomical and functional approach. Biol. Psychiatry 68, 61–69 (2010).
Zhang, Z. et al. Altered functional–structural coupling of largescale brain networks in idiopathic generalized epilepsy. Brain 134, 2912–2928 (2011).
Bassett, D. S. et al. Dynamic reconfiguration of human brain networks during learning. Proc. Natl Acad. Sci. 108, 7641–7646 (2011).
Kramer, M. A. et al. Emergence of persistent networks in longterm intracranial eeg recordings. J. Neurosci. 31, 15757–15767 (2011).
Kramer, M. A. et al. Coalescence and fragmentation of cortical networks during focal seizures. J. Neurosci. 30, 10076–10085 (2010).
Adachi, Y. et al. Functional connectivity between anatomically unconnected areas is shaped by collective networklevel effects in the macaque cortex. Cerebral Cortex 22, 1586–1592 (2011).
Lu, J. et al. Focal pontine lesions provide evidence that intrinsic functional connectivity reflects polysynaptic anatomical pathways. J. Neurosci. 31, 15065–15071 (2011).
Goñi, J. et al. Restingbrain functional connectivity predicted by analytic measures of network communication. Proc. Natl Acad. Sci. USA 111, 833–838 (2014).
Becker, C. O. et al. Spectral mapping of brain functional connectivity from diffusion imaging. Sci. Rep. 8, 1411 (2018).
Moran, R., Pinotsis, D. & Friston, K. Neural masses and fields in dynamic causal modeling. Front. Comput. Neurosci. 7, 57 (2013).
Pinotsis, D. A., Moran, R. J. & Friston, K. J. Dynamic causal modeling with neural fields. Neuroimage 59, 1261–1274 (2012).
Jaynes, E. T. Information theory and statistical mechanics. Phys. Rev. 106, 620 (1957).
Schneidman, E., Berry, M. J., Segev, R. & Bialek, W. Weak pairwise correlations imply strongly correlated network states in a neural population. Nature 440, 1007–1012 (2006).
Shlens, J. et al. The structure of multineuron firing patterns in primate retina. J. Neurosci. 26, 8254–8266 (2006).
Yeh, F.C. et al. Maximum entropy approaches to living neural networks. Entropy 12, 89–106 (2010).
Watanabe, T. et al. A pairwise maximum entropy model accurately describes restingstate human brain networks. Nat. Commun. 4, 1370 (2013).
Watanabe, T., Masuda, N., Megumi, F., Kanai, R. & Rees, G. Energy landscape and dynamics of brain activity during human bistable perception. Nat. Commun. 5 4765 (2014).
Ashourvan, A., Gu, S., Mattar, M. G., Vettel, J. M. & Bassett, D. S. The energy landscape underpinning module dynamics in the human brain connectome. Neuroimage 157, 364–380 (2017).
Ezaki, T., Watanabe, T., Ohzeki, M. & Masuda, N. Energy landscape analysis of neuroimaging data. Philos. Trans. R. Soc. A 375, 20160287 (2017).
Tkačik, G. et al. Searching for collective behavior in a large network of sensory neurons. PLoS Comput. Biol. 10, e1003408 (2014).
Tenke, C. E. & Kayser, J. Generator localization by current source density (csd): implications of volume conduction and field closure at intracranial and scalp resolutions. Clin. Neurophysiol. 123, 2328–2345 (2012).
Betzel, R. F. & Bassett, D. S. Specificity and robustness of longdistance connections in weighted, interareal connectomes. Proc. Natl Acad. Sci. USA 115, E4880–E4889 (2018).
Donahue, C. J. et al. Using diffusion tractography to predict cortical connection strength and distance: a quantitative comparison with tracers in the monkey. J. Neurosci. 36, 6758–6770 (2016).
Lewis, J. D., Theilmann, R. J., Sereno, M. I. & Townsend, J. The relation between connection length and degree of connectivity in young adults: a dti analysis. Cerebral Cortex 19, 554–562 (2008).
Rubinov, M., Ypma, R. J., Watson, C. & Bullmore, E. T. Wiring cost and topological participation of the mouse brain connectome. Proc. Natl Acad. Sci. USA 112, 10032–10037 (2015).
Ganmor, E., Segev, R. & Schneidman, E. Sparse loworder interaction network underlies a highly correlated and learnable neural population code. Proc. Natl Acad. Sci. USA 108, 9679–9684 (2011).
Laumann, T. O. et al. On the stability of bold fmri correlations. Cerebral Cortex 27, 4719–4732 (2016).
Liegeois, R., Laumann, T. O., Snyder, A. Z., Zhou, J. & Yeo, B. T. Interpreting temporal fluctuations in restingstate functional connectivity mri. Neuroimage 163:437–455 (2017).
Friston, K. J., Harrison, L. & Penny, W. Dynamic causal modelling. Neuroimage 19, 1273–1302 (2003).
Deco, G. et al. Restingstate functional connectivity emerges from structurally and dynamically shaped slow linear fluctuations. J. Neurosci. 33, 11239–11252 (2013).
Chu, C. J. et al. Emergence of stable functional networks in longterm human electroencephalography. J. Neurosci. 32, 2703–2713 (2012).
Canolty, R. T. et al. High gamma power is phaselocked to theta oscillations in human neocortex. Science 313, 1626–1628 (2006).
Hyafil, A., Giraud, A.L., Fontolan, L. & Gutkin, B. Neural crossfrequency coupling: connecting architectures, mechanisms, and functions. Trends Neurosci. 38, 725–740 (2015).
Lisman, J. E. & Jensen, O. The thetagamma neural code. Neuron 77, 1002–1016 (2013).
Raghavachari, S. et al. Theta oscillations in human cortex during a workingmemory task: evidence for local generators. J. Neurophysiol. 95, 1630–1638 (2006).
Canolty, R. T. et al. Spatiotemporal dynamics of word processing in the human brain. Front. Neurosci. 1, 14 (2007).
Von Stein, A. & Sarnthein, J. Different frequencies for different scales of cortical integration: from local gamma to long range alpha/theta synchronization. Int. J. Psychophysiol. 38, 301–313 (2000).
Manning, J. R., Jacobs, J., Fried, I. & Kahana, M. J. Broadband shifts in local field potential power spectra are correlated with singleneuron spiking in humans. J. Neurosci. 29, 13613–13620 (2009).
Betzel, R. F. et al. Structural, geometric and genetic factors predict interregional brain connectivity patterns probed by electrocorticography. Nat. Biomed. Eng. 3:902–916 (2019).
Shah, P. et al. Characterizing the role of the structural connectome in seizure dynamics. Brain 142, 1955–1972 (2019).
Lachaux, J.P., Rodriguez, E., Martinerie, J. & Varela, F. J. Measuring phase synchrony in brain signals. Human Brain Mapp. 8, 194–208 (1999).
Huang, X. et al. Spiral wave dynamics in neocortex. Neuron 68, 978–990 (2010).
Roberts, J. A. et al. Metastable brain waves. Nature Commun. 10, 1–17 (2019).
Besson, P. et al. Structural connectivity differences in left and right temporal lobe epilepsy. Neuroimage 100, 135–144 (2014).
Bonilha, L. et al. Medial temporal lobe epilepsy is associated with neuronal fibre loss and paradoxical increase in structural connectivity of limbic structures. J Neurol Neurosurg Psychiatry. 83:903–909 (2012).
Reddy, P. G. et al. Genetic and neuroanatomical support for functional brain network dynamics in epilepsy. Preprint at http://arxiv.org/abs/1809.03934 (2018).
Shah, P. et al. Characterizing the role of the structural connectome in seizure dynamics. Brain 142, 1955–1972 (2019).
Gu, S. et al. Controllability of structural brain networks. Nat. Commun. 6, 8414 (2015).
Khambhati, A. N., Davis, K. A., Lucas, T. H., Litt, B. & Bassett, D. S. Virtual cortical resection reveals pushpull network control preceding seizure evolution. Neuron 91, 1170–1182 (2016).
Wagenaar, J. B., Brinkmann, B. H., Ives, Z., Worrell, G. A. & Litt, B. A multimodal platform for cloudbased collaborative research. In 2013 6th International IEEE/EMBS Conference on Neural Engineering (NER), 1386–1389 (IEEE, 2013).
Menzel, R. R. & Barth, D. S. Multisensory and secondary somatosensory cortex in the rat. Cerebral Cortex 15, 1690–1696 (2005).
Lubenov, E. V. & Siapas, A. G. Hippocampal theta oscillations are travelling waves. Nature 459, 534–539 (2009).
Anderson, N. R., Blakely, T., Schalk, G., Leuthardt, E. C. & Moran, D. W. Electrocorticographic (ecog) correlates of human arm movements. Exp. Brain Res. 223, 1–10 (2012).
Acharya, S., Fifer, M. S., Benz, H. L., Crone, N. E. & Thakor, N. V. Electrocorticographic amplitude predicts finger positions during slow grasping motions of the hand. J. Neural Eng. 7, 046002 (2010).
Lemos, M. S. & Fisch, B. The weighted average reference montage. Electroencephalogr. Clin. Neurophysiol. 79, 361–370 (1991).
Li, G. et al. Optimal referencing for stereoelectroencephalographic (seeg) recordings. NeuroImage 183, 327–335 (2018).
Avants, B. B., Epstein, C. L., Grossman, M. & Gee, J. C. Symmetric diffeomorphic image registration with crosscorrelation: evaluating automated labeling of elderly and neurodegenerative brain. Med. Image Anal. 12, 26–41 (2008).
Cook, P. et al. Camino: opensource diffusionmri reconstruction and processing. In 14th scientific meeting of the international society for magnetic resonance in medicine, vol. 2759, 2759 (Seattle WA, USA, 2006).
Zhan, L. et al. Comparison of nine tractography algorithms for detecting abnormal structural brain networks in alzheimers disease. Front. Aging Neurosci. 7, 48 (2015).
Parker, G. J., Haroon, H. A. & WheelerKingshott, C. A. A framework for a streamlinebased probabilistic index of connectivity (pico) using a structural interpretation of mri diffusion measurements. J. Magn. Reson. Imaging 18, 242–254 (2003).
Logothetis, N. K., Pauls, J., Augath, M., Trinath, T. & Oeltermann, A. Neurophysiological investigation of the basis of the fmri signal. Nature 412, 150 (2001).
Winder, A. T., Echagarruga, C., Zhang, Q. & Drew, P. J. Weak correlations between hemodynamic signals and ongoing neural activity during the resting state. Nat. Neurosci. 20, 1761 (2017).
Lachaux, J.P. et al. Relationship between taskrelated gamma oscillations and bold signal: New insights from combined fmri and intracranial eeg. Human Brain Mapp. 28, 1368–1375 (2007).
Ojemann, G. A., Ramsey, N. F. & Ojemann, J. Relation between functional magnetic resonance imaging (fmri) and single neuron, local field potential (lfp) and electrocorticography (ecog) activity in human cortex. Front. Human Neurosci. 7, 34 (2013).
Wang, X.J. Neurophysiological and computational principles of cortical rhythms in cognition. Physiol. Rev. 90, 1195–1268 (2010).
Uhlhaas, P. J. & Singer, W. Neural synchrony in brain disorders: relevance for cognitive dysfunctions and pathophysiology. Neuron 52, 155–168 (2006).
Krzemiński, D. et al. Energy landscape of resting magnetoencephalography reveals frontoparietal network impairments in epilepsy. Netw. Neurosci. 4, 374–396 (2020).
Grinsted, A., Moore, J. C. & Jevrejeva, S. Application of the cross wavelet transform and wavelet coherence to geophysical time series. Nonlinear Processes Geophys. 11, 561–566 (2004).
Gu, S. et al. The energy landscape of neurophysiological activity implicit in brain network structure. Sci. Rep. 8, 2507 (2018).
Metropolis, N., Rosenbluth, A. W., Rosenbluth, M. N., Teller, A. H. & Teller, E. Equation of state calculations by fast computing machines. J. Chem. Phys. 21, 1087–1092 (1953).
Besag, J. Statistical analysis of nonlattice data. J. R. Stat. Soc. Ser. D 24, 179–195 (1975).
Stam, C. J., Nolte, G. & Daffertshofer, A. Phase lag index: assessment of functional connectivity from multi channel eeg and meg with diminished bias from common sources. Human Brain Mapp. 28, 1178–1193 (2007).
Vinck, M., Oostenveld, R., Van Wingerden, M., Battaglia, F. & Pennartz, C. M. An improved index of phasesynchronization for electrophysiological data in the presence of volumeconduction, noise and samplesize bias. Neuroimage 55, 1548–1565 (2011).
Cohen, M. X. Effects of time lag and frequency matching on phasebased connectivity. J. Neurosci. Methods 250, 137–146 (2015).
Hacker, C. D., Snyder, A. Z., Pahwa, M., Corbetta, M. & Leuthardt, E. C. Frequencyspecific electrophysiologic correlates of resting state fmri networks. Neuroimage 149, 446–457 (2017).
Roberts, J. A. et al. The contribution of geometry to the human connectome. Neuroimage 124, 379–393 (2016).
Acknowledgements
This work was supported by an NINDS 1R01NS099348 to Litt and Bassett (MPI). BL also acknowledges support from the Mirowski Foundation and from Neil Barbara Smit. BL also acknowledges support from Pennsylvania Department of Health (Pennsylvania Health Research Formula Fund). DSB also acknowledges support from the John D. and Catherine T. MacArthur Foundation, the Alfred P. Sloan Foundation, the Army Research Office through contract number W911NF1410679, the Army Research Laboratory through contract number W911NF1020022, the National Institute of Health (2R01DC00920911, 1R01HD08688801, R01MH107235, R01MH107703, R01MH109520, 1R01NS099348 and R21M MH106799), the Office of Naval Research, and the National Science Foundation (BCS1441502, CAREER PHY1554488, BCS1631550, and CNS1626008). The content is solely the responsibility of the authors and does not necessarily represent the official views of any of the funding agencies.
Author information
Authors and Affiliations
Contributions
A.A. performed all data analysis, developed geometric structural null models, provided custom code, and wrote the manuscript. A.A., C.W.L, D.S.B. and B.L. designed and planned all analyses. P.S. and A.P. preprocessed iEEG and structural connectivity data. P.S., A.P., S.G., C.W.L, D.S.B., K.D., and B.L. read and provided comments on the manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Ashourvan, A., Shah, P., Pines, A. et al. Pairwise maximum entropy model explains the role of white matter structure in shaping emergent coactivation states. Commun Biol 4, 210 (2021). https://doi.org/10.1038/s42003021017006
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s42003021017006
This article is cited by

The small world coefficient 4.8 ± 1 optimizes information processing in 2D neuronal networks
npj Systems Biology and Applications (2022)
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.