Skip to main content
PLOS Computational Biology logoLink to PLOS Computational Biology
. 2021 Sep 2;17(9):e1008710. doi: 10.1371/journal.pcbi.1008710

Basis profile curve identification to understand electrical stimulation effects in human brain networks

Kai J Miller 1,2,*, Klaus-Robert Müller 3,4,5,6, Dora Hermes 2
Editor: Marieke Karlijn van Vugt7
PMCID: PMC8412306  PMID: 34473701

Abstract

Brain networks can be explored by delivering brief pulses of electrical current in one area while measuring voltage responses in other areas. We propose a convergent paradigm to study brain dynamics, focusing on a single brain site to observe the average effect of stimulating each of many other brain sites. Viewed in this manner, visually-apparent motifs in the temporal response shape emerge from adjacent stimulation sites. This work constructs and illustrates a data-driven approach to determine characteristic spatiotemporal structure in these response shapes, summarized by a set of unique “basis profile curves” (BPCs). Each BPC may be mapped back to underlying anatomy in a natural way, quantifying projection strength from each stimulation site using simple metrics. Our technique is demonstrated for an array of implanted brain surface electrodes in a human patient. This framework enables straightforward interpretation of single-pulse brain stimulation data, and can be applied generically to explore the diverse milieu of interactions that comprise the connectome.

Author summary

We present a new machine learning framework to probe how brain regions interact using single-pulse electrical stimulation. Unlike previous studies, this approach does not assume a form for how one brain area will respond to stimulation in another area, but rather discovers the shape of the response in time from the data. We call the set of characteristic discovered response shapes “basis profile curves” (BPCs), and show how these can be mapped back onto the brain quantitatively. An illustrative example is included from one of our human patients to characterize inputs to the parahippocampal gyrus. A code package is downloadable from https://purl.stanford.edu/rc201dv0636 so the reader may explore the technique with their own data, or study sample data provided to reproduce the illustrative case presented in the manuscript.

Introduction

Brain networks have been explored electrophysiologically with a variety of techniques, spanning a variety of spatial scales, such as electroencephalography (EEG), magnetoencephalography (MEG), intracranial EEG (iEEG), and microelectrode local field potentials (LFPs). Efforts to infer connectivity between brain regions may search for correlated signals in response to supervised perturbation by a behavioral task, or in an unsupervised state (“resting” awake, or sleeping). Alternately, it has been shown that interactions between brain regions may be studied by applying or inducing pulses of electrical stimulation to a particular site, while measuring the electrophysiological response elsewhere [13]. In recent years, a sub-field of neuroscience has matured around systematic stimulation and measurement through implanted (iEEG) arrays of brain surface (electrocorticography, ECoG) or deeply-penetrating (stereoelectroencephalography, SEEG) electrodes, typically called “cortico-cortical evoked potentials” (CCEPs) or, for the special case of short pulses separated by several seconds, “single-pulse electrical stimulation” (SPES) [46]. The more general term, “CCEP” will be used to refer to both in this text.

For an array of N total electrodes, there are a potential set of order N2 CCEP interactions that may be explored (for bipolar stimulation, the exact number will depend on how neighboring electrode pairs are chosen for stimulation). We organize the approach to CCEP data into a few different network paradigms, illustrated in Fig 1. In the “all-to-all” case where one wishes to examine the full set of N2 interactions (incorporating the temporal property of each response), the limited number of stimulation events possible to record in the clinical environment (where these measurements are made) does not allow for a well-defined exploration of the network. Therefore, scientists have imposed a type of constraint, or a hybridization of several constraints. One such constraint is to reduce the problem by beginning the data exploration with a pre-defined interaction based on location, and then to study the temporal dynamics within that paired framework (“hypothesis preselected”—Fig 1D) [4].

Fig 1. Cortico-cortical evoked potential analysis paradigms.

Fig 1

A: Convergent—Evoked responses at one chosen site (gray circle) are compared with the effect of stimulating all other sites (yellow circles with lightning bolt). For N electrodes, this characterizes N interactions. B: Divergent—The temporal response of all sites are examined and compared in response to stimulation of a chosen site (N interactions). C: All-to-all—All N2 interactions between sites are characterized. D: Hypothesis preselected—Two sites are chosen based upon a pre-defined anatomical or functional hypothesis, and a 1-way or 2-way interaction between them is characterized. E: In the convergent paradigm, all measured responses from a brain surface electrode are associated with the same underlying laminar architecture, so each response shape measured implies a distinct type of input. F: In the divergent paradigm, different shaped responses may be measured from different sites, in response to stimulation at a single site. This creates ambiguity because different shaped responses cannot distinguish between 1) the same type of output arriving at cortical sites with different underlying laminar architecture and 2) different types of inputs to sites with similar laminar architecture.

A “divergent” paradigm is commonly adopted, where the effect of stimulating a chosen site on all of the other sites is used to infer motifs of connectivity. However, the underlying cortical laminar architecture of each recipient (measured from) site is very different, and therefore the voltage timecourse of each CCEP cannot be interpreted in a common “physiological language” to distinguish different types of interactions [7]. Nonetheless, many studies have found it useful to impose a constraint by assuming a canonical form (temporal structure) and then parameterize within this assumed form (e.g. voltage at fixed delay time from stimulus). The most common of these is a negative deflection between ∼10–100 ms (or “N1”) and a later second negative deflection (“N2”) to characterize which brain regions are connected [4]. That approach forces each response into a fixed interpretation where the form being fit may not actually be present. Notably, we have found that the N1/N2 response shape is not a universal phenomenon: when observed, this shape is only one of a wide variety of responses at any given brain site.

A different, “convergent”, paradigm is to focus on measurement from a single site, and examine the effect of stimulating in the remainder of the array [8]. The convergent approach is, in principle, more tractable than other paradigms. When one measures from a single site and stimulates many, there is only one “physiological language” that evoked responses must be interpreted in, because the underlying anatomy is unchanged. In this context, different shaped temporal responses must imply a fundamentally different nature of interaction between brain areas.

With the convergent paradigm as our initial framework, we made the visual observation that inputs to primary motor cortex had very different shaped CCEPs from one another, but with a compelling spatial clustering [9]. This finding was again observed in the present illustrative dataset, but for responses in the parahippocampal gyrus (PHG) of a different patient, and are shown in Fig 2. While anatomical clustering of stimulation sites that produce similar voltage responses can be observed anecdotally by visual inspection, there is no generally-available quantitative tool for organizing these physiological measurements [7]. Furthermore, we could not find an applicable technique from a different setting that could be translated for the present brain data. Our work aims to close this gap and develop a novel tool to uncover and cluster these temporal motifs in CCEPs and enable systematic exploration of connectivity. We name the resulting canonical voltage response shapes “basis profile curves” (BPC) and detail a framework to identify them.

Fig 2. Single-pulse cortico-cortical evoked potentials.

Fig 2

A: An array of brain surface (ECoG) electrodes were surgically placed on the left hemisphere of a brain tumor patient. B: The voltage (red trace) was measured at a parahippocampal gyrus (PHG) electrode site. C: Biphasic stimulation pulses were delivered between adjacent electrodes throughout the array (gray shows all stimulation pulse trials for stimulation at each site, red shows average). D: Responses from each stimulation pulse are aligned into a matrix Vk(t). E: Averaged subgroup responses Gn(t) (i.e. CCEPs, from the PHG measurement site) are shown between the two electrode sites that were stimulated to produce them.

Within the convergent CCEP paradigm, several criteria constrain the BPC framework. First, there ought to be no assumption of the form of BPCs—they should emerge from the data naturally. Second, they should be able to be mapped into the original data, and onto the brain anatomy in an intuitive way. Third, each stimulation response trial should be able to be parameterized by a single BPC (rather than a superposition of BPCs). Fourth, there should be no orthogonality constraint in BPC shapes in case features (such as the N1 or N2) are shared between BPCs.

Technically, this framework amounts to a hierarchical clustering problem, where the subgroup of single-stimulation events from each stimulation site are known, but how the stimulation site subgroups cluster into the larger group of characteristic stimulation response shapes is to be discovered. In this manuscript, we describe a generic solution to this problem, and showcase its potential to obtain novel insights for a representative dataset from implanted ECoG electrodes in a human patient (Fig 2).

Materials and methods

Ethics statement

This research was performed in accordance with the Mayo Clinic Institutional Review Board, under IRB# 15–006530, which also authorizes sharing of the data. The patient / representative voluntarily provided independent written informed consent to participate in this study.

Clinical measurement of cortico-cortico evoked potentials

The patient shown for the illustrative example of this technique was a patient with a left temporal-occipital-parietal tumor (discovered to be a dysembryplastic neuroepithelial tumor) who underwent placement of an electrocorticographic (ECoG) electrode array to localize their seizures and map brain function (Fig 2). This array consisted of a 6x8 frontal-temporal-parietal grid, a 2x8 anterior temporal grid, and 3 1x4 sub-temporal strips of platinum electrodes (Ad-Tech, Racine, WI). The circular electrode contacts had 4 mm diameter (2.3 mm exposed), 1 cm inter-electrode distance, and were embedded in silastic. These arrays were surgically placed on the sub-dural brain surface during staged surgical treatment for functional mapping and seizure localization prior to tumor resection.

Voltage data V(t0) were recorded at 2048Hz on a Natus Quantum amplifier. Electrode pairs were stimulated ∼10–12 times with a single biphasic pulse of 200 microseconds duration and 6mA amplitude every 3–7 seconds using a Nicolet Cortical Stimulator (Fig 2A–2C). Electrodes were localized on the CT and coregistered to an MRI using the “CTMR” package [10], available in the “ctmr” folder of the ECoG library [11] or on github [12].

Data structure (Fig 2)

Data are first structured in a stimulation-evoked voltage matrix V: The time-by-1 matrix V(t0) for the whole experiment, from the chosen electrode, was sorted into the matrix Vk(t), where t denotes the time from the kth electrical stimulation, τk: (τk + t1) ≤ t ≤ (τk + t2). The dimensions of V are T × K, with T total timepoints (over the interval t1tt2) by K total stimulation events (trials). For this illustration, t1 was set to 0.050 sec and t2 to 2.000 sec, so as to begin after the majority of the volume conducted & artifactural changes had passed [13], and to extend until most responses had returned to baseline.

Within the matrix Vk(t), similar events were given a common subgroup label n: In the example provided here, each subgroup corresponds to a pair of adjacent electrodes that are stimulated between. The number of repeats is not the same in each electrode stimulation-pair subgroup (typically 10–12). There are N total of these stimulation-pair subgroups. Although we assume that stimulations within each subgroup are independent for the purpose of these analyses, this is an approximation. An example of potential non-independence may be seen in the non-zero offset of individual trials from the yellow site pair in Fig 2C, presumably due to direct charging of the cortical lamina from the prior stimulation pulse due to proximity of the stimulation-pair sites to the recording site.

Trials from the same pair of stimulation sites, n, can be combined to obtain the subgroup-averaged evoked voltage change matrix G: For stimulation subgroup n, the average voltage temporal profile is Gn(t) = 〈Vk(t)〉kn. With this type of brain stimulation data, Gn(t) are commonly given the name “Cortico-cortical evoked potentials” (CCEPs).

Single-trial cross-projections & significance matrix (Fig 3A–3D)

Fig 3. Technique for identification of basis profile curves (BPCs).

Fig 3

An illustration of the series of steps to extract BPCs from the voltage matrix V and subgroup assignments kn. A: Within stimulation-pair subgroup self-projections (all trials are projected into one another). B: Between-subgroup cross-projections. C: An illustration of sets of cross- and self-projections for stimulation-pair subgroup 11, S11,m. D: The significance of each set Sn,m is determined initially by t-value vs. zero. Negative t-values are set to zero. The matrix of these values is then scaled to 1, and labeled Ξ. E: Non-negative matrix factorization (NNMF) is performed to identify structure. F: The inner dimension of NNMF is iteratively reduced. G: BPCs are identified from the groups clustered in the rows of H.

In order to understand shared structure between stimulation trials, we first obtain a matrix of unit-normalized single trials: V˜k(t)=Vk(t)/|Vk(t)|. Each V˜k(t) is then projected into all other trials, P=V˜V:

P(k,l)=tV˜k(t)Vl(t)

Note that P(k, l) ≠ P(l, k). The full matrix P is subsequently sorted into an array of sets Sn,m that characterize each cross-subgroup interaction (e.g. pairwise interaction between subgroups n and m), such that:

Sn,m=P{kn,lm}

with k = l omitted.

We then construct a matrix of t-values whose elements Ξ(n, m) are the t-values of the corresponding distribution in Sn,m (each set’s mean divided by its standard error [14]). This matrix is then subjected to a non-negativity constraint, setting negative t-values to zero (a property that is needed for subsequent factorization): if Ξ(n, m) < 0, then Ξ(n, m) ↦ 0. Ξ is then scaled to its maximum ΞΞ/ max (Ξ), making 0 ≤ Ξ(n, m) ≤ 1. This significance matrix plays a role analagous to a cross-correlation matrix to help understand preserved structure of individual trials within, and between different, stimulation-pair subgroups.

Note that the diagonal elements of Ξ can be very small. Interestingly, in some cases, off-diagonal elements are larger than corresponding diagonal element from the same row (Fig 3D). This occurs when there is reliable structure in the response, but, first, within-group variation is larger than the cross-group variation, and, second, there is reliable across-group temporal information across groups (for example, as result of sequence). A simple example of this is when two subgroups produce nearly identical response shapes, but there is adaptation in the response to repeated stimulation for each electrode-pair subgroup—a finding illustrated in some superior temporal gyrus sites from our example (visually apparent in subgroups 11&23 of Fig 3A–3C, and the green in Fig 4C).

Fig 4. Projection of basis profile curves (BPCs).

Fig 4

A: The contribution of each BPC Bq to a single trial from its cluster can be quantified according to a scalar multiplier αk(q), and residual noise εk (trial 238 illustrated). B: The 3 BPCs for our example case. C: The spatial representation of BPCs, color-coded, with diameter and color intensity indicating magnitude (group-averaged signal-to-noise ratio). White circles show actual electrode locations and BPC projection magnitudes are placed at the the spatial average of the positions of the two stimulated electrodes. Each BPC distribution is individually scaled to maximum. Gray indicates sites discarded by thresholding (Fig 3G).

Non-negative matrix factorization (NNMF) for clustering (Fig 3E)

When clustering stimulation sites that produce similar measured responses, a non-negative projection weight constraint must be applied. This is done because the problem is not a source-localization—the same cluster cannot have both positive and negative contributions to the recording site (i.e. trial-to-trial inverted overall sign). Physiologically, this follows because laminar anatomy is not invertible, and when there is positive-negative flip in voltage in one electrode, even if shape is similar, that points to a different biology we want separately segregated into a different cluster (as illustrated in Fig 1E).

The process of non-negative matrix factorization is therefore applied to the matrix Ξ, performing a decomposition [15]:

ΞWH

Where Ξ has dimensions N × M, W has dimensions N × Q, and H has dimensions Q × M. The goal of NNMF in this context is to minimize η = |ΞWH|2, with the non-negativity constraint Wnq, Hqm ≥ 0.

NNMF multiplicative update rules

Begin with randomly generated W and H, with elements between 0 and 1. The elements of W and H are then iteratively updated to better approximate Ξ until convergence criteria are met. Using a multiplicative (rather than additive) update rule preserves non-negativity in matrix weights [16].

  1. First, elements of H are individually scaled according to:
    HqmHqm(WΞ)qm(WWH)qm
  2. Second, the rows of H are unit normalized, maintaining the overall scale by multiplying the columns of W by the the normalization factor:
    H(q,M)H(q,M)/|H(q,M)|,andW(N,q)W(N,q)·|H(q,M)|
  3. Third, elements of W are individually scaled according to:
    WnqWnq(ΞH)nq(WHH)nq
  4. Fourth, the error is calculated as η = |ΞWH|2 and is assessed for convergence, exiting the update loop when the ratio of change in error between subsequent steps to the error is below a set threshold: Δη/η < 10−5.

One could alternately choose NNMF with sparseness constraints built into the construction of the factorization algorithm [17], though we defer this to future study. As the process begins with randomly generated initial W and H, we re-run the NNMF algorithm a number of times to identify a reliable minimal error η between Ξ and WH. Separately, one might perform an algorithmic minimization with convergence rather than brute-force repetition, though we found this impractical for two reasons. First, calculation times for re-running the algorithm were quite short in our studies (<3 minutes), and second, approaches to re-parameterizing W and H for iterative convergence would require significant methodological treatment of their own.

Dimensionality reduction (Fig 3F)

The output of NNMF can be highly degenerate, and this degeneracy can be quantified by the off-diagonal elements of the matrix HH. We define the maximum of the upper-half off-diagonal elements as ζ (Fig 2F). Then, we iteratively reduce the number of inner components Q by 1 and re-perform the NNMF until ζ < 0.5. This iterative reduction performs our clustering, where the non-zero elements in each 1-by-N row of H define how stimulation-pair subgroups are clustered together. The goal of pruning is to constrain the amount of shared structure in any pairwise comparison of different response shape motifs, and therefore lowering the convergence threshold for ζ can increase the number of discovered BPCs. We might instead have chosen to constrain the global amount of shared structure by quantifying the sum of the off-diagonal elements of HH (rather than maximum element magnitude).

While we have chosen to start with the beginning number of potential clusters (internal dimension Q in NNMF) to be the same as the number of stimulation-pairs for this example, it is more expedient to start with a lower number of clusters (∼10 appears appropriate). This is sensible, since the number of basic motifs in laminar organization (at each brain site) might be constrained by a limited number of cell types. One could alternately scan through many different inner dimensions, and select the best in terms of explained variance (see S1 Fig).

Clustering of subgroups (Fig 3G)

At the conclusion of this process, we perform a “winner-take-all” operation on the columns of H such that one stimulation-pair subgroup can only belong to one component (all but the largest elements of each column are set to zero).

For each row q of H, a set of stimulation-pair subgroups is assigned to each cluster by thresholding: If Hqn>12N, then nq. This threshold is set because if all subgroups contributed equally to a cluster, then the element weight of each would be 1/N (the tolerance factor of 1/2 allows for variation).

This winner-take-all approach implies a process constructed for canonical responses rather than superposition of contributing motifs. For the present work, this assumption is appropriate, though it may not hold in situations where separate physiologic motifs contribute independently, and each may superimpose in the measured response.

Furthermore, in the present example, there is not a significant penalty for inclusion of a group since the significance of this inclusion is later reflected by the scoring of single events, as described below in the subsection “Projecting basis profile curves back into data”.

Identification of basis profile curves using Linear Kernel PCA (Fig 3G)

Parsing the set of all single-stimulation responses from groups that are clustered together by the NNMF process, we can identify characteristic “Basis Profile Curve” (BPC) shapes, Bq(t), in the following manner:

The subset of single trial clustered responses are first concatenated as Vknq(t) ≡ V(q), to reflect single trials belonging to stimulation-pair subgroups (kn) that in turn belong to cluster q (nq), with a total of Kq such trials. We would like to identify a representative basis curve, Bq(t), that represents the “principal direction” of Vkq(t). However, the practical fact that the number of timepoints, T, generally far exceeds the number of trials, K, in these data (TKq) prohibits a standard principal component decomposition (PCA, [18]), which would require Kq > T2 to characterize the T-by-T matrix of interdependencies between timepoints.

We address this issue by inverting the decomposition using the “Linear Kernel PCA” technique [1921]. This method allows for the interchange of an eigenvalue decomposition of the matrix V(q)V(q) (T2 elements) with V(q)V(q) (Kq2 elements). Following this approach, we obtain a matrix F, whose columns are the eigenvectors of V(q)V(q), with associated eigenvalues contained in the diagonal matrix ξ2, satisfying (V(q)V(q))F=Fξ2. We can then solve for the eigenvectors of V(q)V(q), contained in the columns of X:

Xξ=V(q)F

We keep the first column of X as our basis curve Bq(t).

Note that, if we were to take the simple average of all candidate stimulation-pair subgroups instead of the 1st principal component for this canonical shape, it could significantly dilute the BPC form with noise. As illustrated in cluster 3 of our example, several low-relevance stimulation-pair subgroups (i.e. very low average projection weight) are clustered along with a strong and significant response subgroup. As we have constructed it, the kernel PCA approach captures the shape of this robust subgroup, without disruption from the uncorrelated noise that dominates the low-relevance subgroups.

Projecting basis profile curves back into data

Utilizing the formalism from functional data analysis [22, 23], we can represent each individual trial as a projection of a basis profile curve Bq(t), scaled by a scalar αk(q), with residual error εk(t):

Vk(t)=αk(q)Bq(t)+εk(t)

We expect that E(ε) = 0 and E(εk2)E(εl2), for all k and l. This allows us to estimate the projection of Bq(t) into each individual trial as follows. First, we expand our single-trial formalism above by application of ∑t Bq(t) to both sides, i.e.:

tBq(t)Vk(t)=tBq(t)αk(q)Bq(t)+tBq(t)εk(t)

However, ∑t Bq(t)εk(t) = 0 since E(ε) = 0, and tBq(t)αk(q)Bq(t)=αk(q)tBq(t)Bq(t), which is just αk(q), since ∑t Bq(t)Bq(t) = 1. This allows us to calculate αk(q) for each trial:

αk(q)=tBq(t)Vk(t)

Having αk(q) determined, we can quantify the residual noise after regressing out the shape of Bq(t):

εk(t)=Vk(t)-αk(q)Bq(t)

With the description Vk(t)=αk(q)Bq(t)+εk(t), several useful quantities for each trial Vk can be described (omitting q for notational simplicity): a “projection weight” αk; a scalar “noise” summary term εkεk; a “signal-to-noise” αk/εkεk; the “explained variance” by application of the BPC is 1-εkεkVkVk (S2 Fig). For stimulation-pair subgroup n, we can estimate the presence of residual structure after application of Bq, by the remaining pair-wise correlation in noise terms: εkεlk,ln;kl.

Code and data availability

Code written in MATLAB to reproduce all of the steps and illustrations contained in this manuscript is freely available along with the sample dataset at https://purl.stanford.edu/rc201dv0636. The file “kjm_bpcmethod_readme.pdf” describes the code and dataset, along with instructions for how to perform the analyses.

Results

Cortico-cortical and subcortical inputs converge in each brain region, and disentangling this convergence will shed light on the networks that interconnect the brain. In order to explore this idea, we stimulated pairs of intracranial electrodes implanted across many different brain areas and measured voltage responses in a single site. We expect that biologically different types of inputs will produce different characteristic shapes in the voltage timecourse, and that these might be clustered into distinct groups based on the stimulation site.

Our framework, aiming to better understand brain connectivity, is grounded in a convergent paradigm, examining a set of temporal voltage responses to stimulation, all measured from the same site (Figs 1 and 2). Each response event is labeled by the site of stimulation. Then, a novel algorithm is applied within this framework to identify canonical temporal response motifs, which we call “basis profile curves” (BPCs). Each BPC clusters subgroups of stimulation-pairs together into a larger group whose members induce a similar response profile, and are likely the engaging same microcircuitry in their connectivity from the stimulated brain site to the measured brain site.

Multiple different stimulation evoked voltage response motifs are measured from one brain site

The BPC approach allowed us to extract a concise set of Basis Profile Curves that describes the multitude of responses observed at a single site. As illustrated in Fig 3, the algorithmic approach begins by obtaining a set of all projection magnitudes (correlations in response timecourse) between pairs of single trials within their own electrode stimulation-pair subgroups and across different stimulation-pair subgroups. A matrix characterizing the significance of each set of subgroup-subgroup projection magnitudes is generated from the t-values of these sets, before setting negative values to 0 and scaling to 1. Then non-negative matrix factorization (NNMF) is repeatedly performed to decompose this significance matrix into a pair of other matrices, one of which characterizes correlated features within the matrix, and the other of which characterizes the weight of each feature (and is normalized). NNMF is performed many times, iteratively reducing the inner dimension of factorization until a cross-correlation threshold between features is surpassed. The iterative reduction clusters electrode stimulation-pair subgroups by their relative element sizes within the rows of the NNMF weight matrix H (S3 Fig shows that the technique identifies the optimal number of clusters from the data for portion of variance explained in our example case). For each cluster, linear kernel PCA is applied to the concatenated larger group of single responses from all included stimulation-pair subgroups, to extract the temporal shape of the BPC. In this way, a unique BPC is associated with each cluster. The BPC technique produces an intuitive representation of the responses measured at a single site in the convergent paradigm (S3 Fig). It is robust: Splitting the data in half yields two similar sets of BPCs, even though there are only 4–5 trials per stimulation-pair subgroup (S4 Fig).

The algorithm, by construction, produces BPCs that have a set of desired properties (Fig 4): Each BPC has a characteristic shape in time of “canonical” responses with simple visual formulation where connectivity between areas is paired with a temporal BPC motif that can be a window into the nature of the interaction. Although the literature has predominantly supported a canonical form for the timecourse of CCEPs (e.g. polyphasic with 2 characteristic “N1/N2” negative deflections), this has not been the case in our measurements. We found instead that the measured cortico-cortical evoked potentials could be described by three basis profile curves, which are unique in shape (Fig 4B), only one of which (B3) is consistent with the reported N1/N2 form.

Stimulation of adjacent anatomical sites produces similar voltage responses that are clustered together

The initial step in examining these stimulation data from the convergent paradigm is to plot the evoked response at the measurement site onto the brain surface at the site of stimulation (Fig 2). Visual inspection of these plots suggests that the response shapes cluster along anatomical boundaries.

Once BPCs have been identified, single stimulation events can be characterized with the architecture from functional data analysis [2224], which enables quantification of BPC projection weight (signal) and residual noise. These quantifications may be projected back to brain anatomy in an intuitive way to visualize what sites are meaningfully connected to the measured-from site. In our example case (Fig 4), the back projections reveal a relatively sparse network interacting with the PHG originating from the superior temporal gyrus (STG, green in Fig 4), the posterior portion of the inferior temporal gyrus (orange), and the fusiform gyrus (yellow). However, rather than identifying this clustering by visual inspection, the clustering is quantitative with summary weight and clear statistical description. The result is very similar whether quantified by projection weight, signal-to-noise, or explained variance (S2 Fig). Note that the most superior sites included in the STG-BPC (green in Fig 4) may not necessarily result from projections above the Sylvian fissure (e.g. motor areas) to the PHG, but likely result from one of the two electrodes in the included stimulation pair lying on or below the Sylvian fissure.

If a different measurement site is selected in the example patient data, at the temporal pole (TP), a very similar clustered region from the STG emerges (S5 Fig). Interestingly, the shape of the associated BPC is very different. This is precisely the dilemma envisioned by the divergent paradigm shown in Fig 1F. The interpretation of the difference in these shapes is ambiguous. One cannot tease out whether the difference in BPC shape implies a different kind of connectivity, or simply a reflection of the different microcircuitry of the TP and STG in response to a similar type of input.

Discussion

This work begins with the general question of how electrical stimulation paired with voltage measurement can be used to understand spatial and temporal structure in brain networks. Our framework begins with a convergent approach, where one measurement site is selected, and responses to sets of repeated stimulations in many other sites are quantified (Fig 1). Each electrical stimulation pulse is brief (<1ms) and the time between pulses is long (>3s), allowing for transient voltage changes to return to baseline. A relatively long time between pulses means that mono-synaptic and polysynaptic effects can contribute to the temporal structure of the responses, and be captured during data analyses. This experimental paradigm where enough time has passed between consecutive stimulations for transient effects to die out is typically called “single pulse electrical stimulation” [25], a subset of “cortico-cortical evoked potential” (CCEP) measurement. In contrast to the frequently-reported N1/N2 response, our initial observations of these types of data within the convergent paradigm did not suggest a universal form to evoked voltage changes from the same brain site [9]. Therefore, the framework we have developed does not assume what shape the measured responses should have. We instead constructed a data-driven technique to naively extract motifs from all responses at a single seed site that we call “basis profile curves” (BPCs), beginning with a natural set of subgroups defined by repeated stimulations at the same brain site.

The convergent approach to connectivity

A common approach to explore network structure in CCEP research is to examine every possible interaction within an array of electrodes. In this all-to-all approach, the large number (N2) of all possible interactions between the N intracranial electrodes are studied (Fig 1), and each response profile has hundreds-to-thousands of timepoints. The several seconds between each electrical stimulation and the large set of electrode pairs to stimulate between severely limits the number of repeated stimulations that may feasibly be performed in the clinical setting. From a practical perspective, this means that if one does not approach the study of CCEPs with clear constraints, then the problem becomes too high-dimensional to handle, given the limited amount of data available. Many existing studies have attempted to address this by presuming a specific temporal structure in the evoked response, such as the voltage at a pre-specified timepoint post-stimulation [26]. However, as illustrated in Fig 2 and S3 Fig and reported by Kundu and colleagues [27], there is no single canonical CCEP response shape or feature, even when measuring from a single electrode.

Our approach to this high-dimensional data dilemma is to first constrain our study to measurements from a single electrode at a time, leveraging the convergent paradigm. The BPC framework then enables one to naively extract a family of response shapes specific to that site. Although there is no prior assumption about the forms the BPCs should have, they are constructed with the constraint that they should be reproducible within subgroups of repeated stimulations at the same brain site.

Aside from computational convenience, the convergent paradigm is also useful because we can reduce the plethora of potential interactions to a smaller, more tractable, set that may be linked to physiological interpretation (i.e. a few different appearing motifs in interaction between the stimulated and measured sites). For example, inputs to superficial or deeper layers should produce different response motifs in the electric potential measured at the brain surface, and be isolated as distinct BPCs (Fig 1).

Although a single site is selected for the convergent approach, one may iteratively uncover the larger connectivity space: Projections between brain regions can be identified, beginning with a known seed site and then using the proposed algorithm to find a strongly projecting site within a BPC cluster which, in turn, becomes the new seed. This would allow one to trace projections in reverse to explore and model a network of previously unknown interactions.

Properties of the BPC algorithm

The BPC algorithmic framework is constructed to satisfy a pre-defined set of desired properties, each of which is a associated with distinct computations.

Simple assignment of each subgroup to a single BPC: We wanted to meaningfully decompose brain responses to stimulation with a process that can be naturally mapped back on to the underlying anatomy. This means that stimulated electrode pairs that evoke the same response motif should be grouped together in a way that can be plainly viewed on a brain rendering. In our BPC responses, this means that positive voltage deflections of a particular shape will not be clustered with negative deflections of a similar shape (and vice-versa). Ensuring this is very important when interpreting the signals physiologically. For example, sign flips could reflect inputs at superficial vs deep lamina or at different classes of synapses, and so should be clustered independently [28]. Mathematically, this decomposition can be formulated as a clustering problem with preservation of sub-group structure and inclusion of a non-negativity constraint. Commonly applied techniques such as independent/principal component analyses (ICA/PCA) may not be productive in this setting (even with non-negativity constraints [29]). They assume linear superposition of motifs with arbitrary sign and weight rather than the identification of distinct, unique motifs. In addition, ICA/PCA have different loss functions than the BPC framework, emphasizing different decomposition targets and are unable to reveal the subgroup structure of stimulation-pair sites necessary for our analysis. Specifically, they are specialized to generate components with minimum independency, rather than to cluster motifs by similarity (which is our goal). Canonical correlation analysis (CCA) or variants thereof [30, 31], which might allow for some labeling subgroup structure, do not easily allow one to incorporate necessary constraints and so are of limited help for our purpose.

Allowance of limited overlap in BPC shape: Although two different responses may reflect different types of inputs, a limited sub-interval of time may have transient similarity. Therefore, it can be useful to allow for some limited shared structure in the timecourses of different BPCs. In our example, this is illustrated in the negative deflections seen in the initial ∼ 500ms of B2 and B3, Fig 4B. We implement this allowance of limited overlap by using a winner-take-all approach rather than enforcing orthogonality in the rows of H (e.g. HH = I). The amount of overlap allowed can be adapted by setting the maximum value of individual off-diagonal elements of HH (ζ).

Disregarding of meaningless subgroups: Another physiologically meaningful constraint for the BPC framework is that existing sub-group structure, where responses to stimulation come from the same pair of electrodes should either be reliable on a trial-by-trial basis or not contribute to the clustering. In the BPC approach, a correlation-significance matrix quantifying similarity in single-trial pairwise correlations organized between sub-groups (stimulation-pair sites) can be obtained. Unlike many common decomposition techniques which construct covariance or correlation matrices (ICA/PCA/CCA), the significance matrix generated by this process can have very small diagonal elements, and, in some cases, off-diagonal elements are larger than corresponding diagonal elements from the same row (Fig 3D, see description in Materials and methods subsection “Single-trial cross-projections & Significance matrix”). These small diagonal elements, coupled with the thresholding of the elements of factor matrix H excludes stimulation-pair subgroups that do not produce reliable responses in measurement from the identification of BPCs. Once BPCs have been extracted, more explicit quantification of significance for each stimulation-pair subgroup may be evaluated simply, by testing the magnitudes αk,kn (for subgroup n) versus zero.

Simple metric to describe single trials: At the beginning of our data exploration, each single trial k is described by its timecourse Vk(t), and the stimulation-pair, kn, that produced it (its subgroup). At the conclusion of the BPC extraction, each trial is assigned to a single BPC (q) with a scalar projection weight (αk(q)), and a residual noise timecourse (εk(t)). The parameterization of single-trial stimulation responses takes the form Vk(t)=αk(q)Bq(t)+εk(t), which is a formalism borrowed from the field of functional data analysis [24]. One might use the tools developed in that discipline for a larger exploration of these data when generalizing across different patients, tasks, stimulation paradigms, and recording settings. This formalism allows for straightforward characterization of signal and uncorrelated noise in each stimulation single-trial, with comparisons of these across stimulation-pair subgroups and also across BPCs. As noted in the Materials and methods subsection “Projecting basis profile curves back into data”, one may quantify a scalar values of signal, noise, and variance explained by the form of the BPC for each single-trial response. These quantities may be useful to plot versus one another (S2 Fig), and allow one to easily scale distributions independently or globally (as seen in S5(D) and S5(E) Fig). The advantage of this formalism moves well beyond that of notational convenience. Namely, the magnitudes of response to stimulation in different brain areas can be directly compared versus one another to quantify how much the local microcircuitry is being influenced, even though the shape of the response timeseries may be very different. Such quantification is typically difficult for timeseries analysis in these types of data, where template-projection or other similar approaches are otherwise necessary [32].

Response motifs and underlying physiology

At the macroscale that is measured by ECoG or SEEG electrode contact size, an entire population of about half of a million neurons is being averaged over [11]. As such, we expect that only a few BPCs will explain variance from a measurement site. Each region is defined by a unique laminar architecture (defined histologically as a unique Brodmann area [33], or by multi-modal imaging as a unique parcel [34]), so we expect that the pro-dromic (reflecting inputs) or the anti-dromic (reflecting outputs) will be constrained to a few unique motifs, and reflected by relatively few BPCs. Therefore our BPC technique allows for visual inspection of temporal motifs that are well-defined in measurement space (see Fig 4) but raises important questions about the neurophysiology they reflect. Potentially typical shapes may reveal connection to microcircuitry in intuitive way, where surface positive deflections may be tied to deep positive ion influx or superficial ion efflux from specific synapse types in the large pyramidal cells beneath [28]. Alternately, they may reveal projections from the stimulation site directly to different classes of cells within the laminar architecture of cortex (e.g. interneurons vs pyramidal neurons). Some BPC morphologies might reveal different motifs in connectivity at the macroscale, between different brain regions. One might speculate about different types of connectivity within the temporal lobe that may be inferred from examination of Fig 4 and S5 Fig: The preliminary finding of similar spatial distribution in a BPC from the STG, but reflected with a different temporal shape in the TP than the PHG suggests different kinds of projections emanating from a well-defined STG region. For example, direct connections from intracortical axonal projects within gray matter (via lateral projections) might be differentiated from those relayed subcortically through white matter tracts. Note that indirect projections relayed through a third cortical site or a set of subcortical nuclei might each be revealed in characteristic BPC shapes, and this possibility will be explored in future studies.

Potential future applications

The key elements of our approach are to generate a significance matrix that characterizes group-group similarity, to reduce this matrix by factorization (& thereby perform clustering), and then to recapture the structure that explained this similarity. This framework is novel because it clusters group-labelled measurements into meta-groups, discovering a hierarchical structure in the data. We have explicitly streamlined the framework in order to make the principles clear, and this process has been robust in all of the data we have analyzed. However, future opportunities may also be explored in other settings, adding complexity at each step or introducing bootstrapping/resampling procedural steps [35, 36].

Some examples of what might be attempted are as follows: We implemented linear kernel PCA to identify the BPC underlying a clustered set of trials—this is the simplest strategy other than the simplest average trace, which can add a lot of noise from weakly contributing subgroups. One could instead implement a dictionary learning approach and use the atom that explains the most variance of the included trials [37]. The sequential approach that we use for methodological clarity might instead be expanded into a recursive approach. In a recursive setting, discovered BPCs would be used to re-parameterize the initial trials, these parameterizations would then be clustered, and a new set of BPCs would be found, iterating the process until convergence criteria are met. Alternate approaches to achieve a similar hierarchical clustering with known subgroup labels might begin with a common technique applied to all trials (e.g. k-means, Gaussean mixture model, etc), and then associate these clusters with stimulation-pair subgroups. We have deferred presentation and elaboration of these types of alternate analyses because each would involve a study of the same scope as the present one and distract from the key core elements of the BPC framework.

We believe that initial explorations with our BPC technique would be best framed in a well-controlled setting with connection to simple functional studies from primary motor, auditory, or visual regions to look for commonality in BPC shapes. In this manner, existing understanding from other types of measurement might serve to validate BPC interpretation. From our initial studies, natural branching out from the single seed site of the convergent paradigm will lead researchers to examine the generalization of BPC shapes discovered at adjacent measurement sites within a brain region, and may also lead them to explore whether they are conserved at homologous brain sites across different patients. Such “second-level” studies of BPC shape across contexts would employ more traditional clustering approaches than the present strategy. For example, measurements of the brain’s depths with stereoelectroencephalography should allow for sign flips when comparing BPCs from adjacent electrodes spanning superficial vs deep cortical layers.

Future work will also examine whether specific BPC shapes are associated with similar biological motifs convergent on different brain regions (e.g. thalamocortical relays, U-fiber projections, or a common interneuron-projection neuron structure). While this work does not explicitly address biomarkers of disease state, one might hypothesize that seizure networks and onset zones will have altered dynamics reflecting epileptogenicity, with corresponding abnormality in BPC shape.

Subsequent studies might vary experimental conditions with a task, medication, or property of the stimulation (current magnitude and temporal profile, or timing between pulses), and quantify signal, noise, and residual structure in the responses. For example, one could examine the effect of focusing on a pair of brain locations (i.e. in the hypothesis preselected paradigm) and simply changing the amplitude of stimulation. It has been demonstrated that different stimulation magnitudes can elicit very different morphologies [27], and one could study this by labeling each stimulation amplitude as a different subgroup, and then examining the distribution of BPCs that emerge.

Inspecting recordings from a single site, our novel framework could be applied to behavioral, rather than electrical stimulation. For example, one could study higher order visual areas, like the fusiform gyrus, and examine responses to presented images of different semantic types [38, 39]. In such a study, one would replace stimulation pair groups with semantic stimulus groups (pictures of faces, houses, tools, etc.) to see how different semantic groups cluster together in production of the fusiform electrophysiological response.

This “winner-take-all” approach (Fig 3G) detailed in this BPC framework implies a process constructed for canonical responses rather than superposition of contributing motifs. In other words, each stimulation response is assigned to a single BPC, rather than as a combination of multiple BPCs. For the present work, this assumption is appropriate, though it may not hold in situations where separate physiologies contribute independently and may superimpose in the measured response. One example of this would be where evoked responses to electrical stimulation may vary based upon changes in region-specific ongoing fluctuations in neuronal excitability. If threshold levels must be met before specific components of a composite response are elicited (e.g. a delayed second voltage deflection), then this method (which forces a unitized shape) would be sub-optimal, and another strategy should be employed. There may be future approaches where initial voltage changes (1st order projections) and later (2nd & higher order projections) are assessed independently and allowed to superimpose, particularly when attempting to detect/discover potential higher-order responses. Such a strategy could be performed by picking multiple sets of t1 and t2, and re-performing analyses for isolated time windows.

Lastly, a feature of this functional data analysis formalism which might be explored in future work is that candidate structures not correlated to initial subgroup labeling could be tested for by looking at correlations of εkεlkl, where k and l would be of a candidate different type of subgroup (for example, the third stimulation pulse from each set of stimulations). In this case, after a full exploration of that residual structure, the error term ε for a given trial would split out into a second order set of BPCs, Cp, with coefficients βk(p), where εβ(p)Cp+ε, and Vk(t)=αk(q)Bq(t)+βk(p)Cp(t)+εk(t).

Conclusion

We have detailed a new data-driven framework for uncovering motifs in epoch-based timeseries data belonging to labeled subgroups. These motifs are called “basis profile curves” (BPCs), and they determine characteristic spatiotemporal structure. Each timeseries epoch is assigned to a unique BPC, with motif projection strength and residual noise simply parameterized. This framework is applied to understand the effect of electrical stimulation in the human brain using arrays of implanted electrodes, where the labeled subgroups are repeated stimulations at the same site. We introduce a set of paradigms for interpreting these measurements, of which the convergent one allows application of the BPC framework. In our illustrative example of measurements from the surface of the parahippocampal gyrus, we find that identified BPCs clearly uncover several connected regions and allow them to be viewed and interpreted intuitively.

Supporting information

S1 Fig. Explained variance as a function of number of inner dimensions, Q.

We can quantify the total variance explained by the fitting of resulting BPCs, Bq(t), across all included stimulation-pair trials: VkVkεkεkknq. When we normalize this by the total variance, VkVkkalln, we have the portion of total variance explained (blue circles). However, the goal of the decomposition is to identify motifs, explained by BPCs, from the full set of stimulations. For example, if one were to perform stimulations at a site that has no effect on the measurement site, it should not undermine our confidence in the decomposition. Therefore, a more appropriate normalization is to instead divide the explained variance by the variance of the trials included in the clustering, VkVkknq. For our example case, this immediately validates the dimensionality Q = 3, selected by the algorithm (Fig 3).

(TIF)

S2 Fig. Alternate metrics for projection weights of BPC curves.

As in Fig 4, but using alternate scoring metrics for each stimulation-pair subgroup, shown in inset rectangles overlying each cortical rendering.

(TIF)

S3 Fig. Side-by-side illustration of CCEP shapes (from Fig 2E) and BPC projection weights (from Fig 4B and 4C), to plainly illustrate the correspondence.

(TIF)

S4 Fig. An illustration of the BPC method applied to sub-segmentation of trials.

On the top row, BPCs are identified from only odd trials. On the bottom row, BPCs are identified from only even trials. After the split, each stimulation-pair subgroup is represented by 4–5 individual stimulation trials. Despite this small amount of individual stimulation trials for each stimulation-pair subgroup, the process is remarkably stable. For each row, the panels from left-to-right are matrices of the CCEPs, extracted BPC shapes, projection weights (group-averaged signal-to-noise ratio), and projection weights plotted on the brain surface.

(TIF)

S5 Fig. Illustration from a different site.

Stimulation responses from a site in the temporal pole are shown. A: Responses from each stimulation pulse are aligned into a matrix Vk(t). B: Averaged responses Gn(t) are shown at the site of each stimulation pair that produced them. C: BPCs produced by the algorithm. D: Weights (group-averaged signal-to-noise ratio) associated with each BPC (color-coded), and non-included sites (gray). E: Spatial representation of BPCs, color-coded, with diameter and color intensity indicating magnitude. All values are scaled to the global maximum across all BPCs. F: As in (E), but with each BPC distribution individually scaled to its own maximum. Note the similarity in the spatial distribution of the stimulation-site cluster labeled in green to Fig 3), but the completely different shape of the BPC (likely reflecting the different laminar architecture of the two recipient measurement sites).

(TIF)

Acknowledgments

We are grateful for the participation of the patient in the study, and for the assistance of the staff in Saint Marys Hospital at Mayo Clinic, Rochester, MN. Greg Worrell, Pradeep Udayavar Shenoy, Amin Nourmohammadi, and Harvey Huang generously provided helpful discussion and commentary during the drafting of the manuscript.

Data Availability

Code written in MATLAB to reproduce all of the steps and illustrations contained in this manuscript is freely available along with the sample dataset at https://purl.stanford.edu/rc201dv0636, for use without restriction.

Funding Statement

KJM was supported by the Van Wagenen Fellowship, the Brain Research Foundation with a Fay/Frank Seed Grant, and the Brain & Behavior Research Foundation with a NARSAD Young Investigator Grant. This work was also supported by NIH-NCATS CTSA KL2 TR002379 (KJM). DH was supported by the NIH-NIMH CRCNS R01MH122258-01. Manuscript contents are solely the responsibility of the authors and do not necessarily represent the official views of the NIH. KRM was supported in part by the Institute of Information & Communications Technology Planning & Evaluation (IITP) grant funded by the Korea Government (No. 2017-0-00451, Development of BCI based Brain and Cognitive Computing Technology for Recognizing User’s Intentions using Deep Learning) and (No. 2019-0-00079, Artificial Intelligence Graduate School Program, Korea University), and by the German Ministry for Education and Research (BMBF) under Grants 01IS14013A-E, 01GQ1115, 01GQ0850, 01IS18025A, 031L0207D and 01IS18037A; the German Research Foundation (DFG) under Grant Math+, EXC 2046/1, Project ID 390685689. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

References

  • 1.Adrian ED. The spread of activity in the cerebral cortex. The Journal of physiology. 1936;88(2):127. doi: 10.1113/jphysiol.1936.sp003427 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Purpura DP, Pool J, Frumin M, Housepian E, et al. Observations on evoked dendritic potentials of human cortex. Electroencephalography and clinical neurophysiology. 1957;9(3):453–459. doi: 10.1016/0013-4694(57)90034-2 [DOI] [PubMed] [Google Scholar]
  • 3.Ilmoniemi RJ, Virtanen J, Ruohonen J, Karhu J, Aronen HJ, Näätänen R, et al. Neuronal responses to magnetic stimulation reveal cortical reactivity and connectivity. Neuroreport. 1997;8(16):3537–3540. doi: 10.1097/00001756-199711100-00024 [DOI] [PubMed] [Google Scholar]
  • 4.Matsumoto R, Nair DR, LaPresto E, Najm I, Bingaman W, Shibasaki H, et al. Functional connectivity in the human language system: a cortico-cortical evoked potential study. Brain. 2004;127(10):2316–2330. [DOI] [PubMed] [Google Scholar]
  • 5.Valentin A, Anderson M, Alarcon G, Seoane JG, Selway R, Binnie C, et al. Responses to single pulse electrical stimulation identify epileptogenesis in the human brain in vivo. Brain. 2002;125(8):1709–1718. [DOI] [PubMed] [Google Scholar]
  • 6.Enatsu R, Gonzalez-Martinez J, Bulacio J, Kubota Y, Mosher J, Burgess RC, et al. Connections of the limbic network: a corticocortical evoked potentials study. Cortex. 2015;62:20–33. doi: 10.1016/j.cortex.2014.06.018 [DOI] [PubMed] [Google Scholar]
  • 7.Crowther LJ, Brunner P, Kapeller C, Guger C, Kamada K, Bunch ME, et al. A quantitative method for evaluating cortical responses to electrical stimulation. Journal of neuroscience methods. 2019;311:67–75. doi: 10.1016/j.jneumeth.2018.09.034 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Keller CJ, Honey CJ, Entz L, Bickel S, Groppe DM, Toth E, et al. Corticocortical evoked potentials reveal projectors and integrators in human brain networks. Journal of Neuroscience. 2014;34(27):9152–9163. doi: 10.1523/JNEUROSCI.4289-13.2014 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Miller KJ, Huiskamp G, van Blooijs D, Hermes D, Gebbink TA, Ferrier CH, et al. An observation of anatomical clustering in inputs to primary motor cortex in cortico-cortical brain surface evoked potentials. In: 2019 7th International Winter Conference on Brain-Computer Interface (BCI). IEEE; 2019. p. 1–2.
  • 10.Hermes D, Miller KJ, Noordmans HJ, Vansteensel MJ, Ramsey NF. Automated electrocorticographic electrode localization on individually rendered brain surfaces. Journal of neuroscience methods. 2010;185(2):293–298. doi: 10.1016/j.jneumeth.2009.10.005 [DOI] [PubMed] [Google Scholar]
  • 11.Miller KJ. A library of human electrocorticographic data and analyses. Nature Human Behaviour. 2019;3(11):1225–1235. doi: 10.1038/s41562-019-0678-3 [DOI] [PubMed] [Google Scholar]
  • 12.Hermes D. The CTMR Package; 2010. Available from: https://github.com/dorahermes/Paper_Hermes_2010_JNeuroMeth.
  • 13.Prime D, Woolfe M, O’Keefe S, Rowlands D, Dionisio S. Quantifying volume conducted potential using stimulation artefact in cortico-cortical evoked potentials. Journal of neuroscience methods. 2020;337:108639. doi: 10.1016/j.jneumeth.2020.108639 [DOI] [PubMed] [Google Scholar]
  • 14.Gosset WS. The probable error of a mean. Biometrika. 1908; p. 1–25. [Google Scholar]
  • 15.Lee DD, Seung HS. Learning the parts of objects by non-negative matrix factorization. Nature. 1999;401(6755):788–791. doi: 10.1038/44565 [DOI] [PubMed] [Google Scholar]
  • 16.Lee DD, Seung HS. Algorithms for non-negative matrix factorization. In: Advances in neural information processing systems; 2001. p. 556–562. [Google Scholar]
  • 17.Hoyer PO. Non-negative matrix factorization with sparseness constraints. Journal of machine learning research. 2004;5(Nov):1457–1469. [Google Scholar]
  • 18.Bishop CM. Pattern recognition and machine learning. springer; 2006. [Google Scholar]
  • 19.Schölkopf B, Mika S, Smola A, Rätsch G, Müller KR. Kernel PCA pattern reconstruction via approximate pre-images. In: International Conference on Artificial Neural Networks. Springer; 1998. p. 147–152.
  • 20.Schölkopf B, Smola A, Müller KR. Nonlinear component analysis as a kernel eigenvalue problem. Neural computation. 1998;10(5):1299–1319. doi: 10.1162/089976698300017467 [DOI] [Google Scholar]
  • 21.Schölkopf B, Mika S, Burges CJ, Knirsch P, Müller KR, Rätsch G, et al. Input space versus feature space in kernel-based methods. IEEE transactions on neural networks. 1999;10(5):1000–1017. doi: 10.1109/72.788641 [DOI] [PubMed] [Google Scholar]
  • 22.Chiou JM, et al. Dynamical functional prediction and classification, with application to traffic flow prediction. The Annals of Applied Statistics. 2012;6(4):1588–1614. doi: 10.1214/12-AOAS595 [DOI] [Google Scholar]
  • 23.Li PL, Chiou JM. Identifying cluster number for subspace projected functional data clustering. Computational Statistics & Data Analysis. 2011;55(6):2090–2103. doi: 10.1016/j.csda.2011.01.001 [DOI] [Google Scholar]
  • 24.Ramsay JO, Silverman BW. Applied functional data analysis: methods and case studies. Springer; 2007. [Google Scholar]
  • 25.Mouthaan BE, van‘t Klooster MA, Keizer D, Hebbink GJ, Leijten FS, Ferrier CH, et al. Single Pulse Electrical Stimulation to identify epileptogenic cortex: Clinical information obtained from early evoked responses. Clinical neurophysiology. 2016;127(2):1088–1098. doi: 10.1016/j.clinph.2015.07.031 [DOI] [PubMed] [Google Scholar]
  • 26.Keller CJ, Honey CJ, Mégevand P, Entz L, Ulbert I, Mehta AD. Mapping human brain networks with cortico-cortical evoked potentials. Philosophical Transactions of the Royal Society B: Biological Sciences. 2014;369(1653):20130528. doi: 10.1098/rstb.2013.0528 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Kundu B, Davis TS, Philip B, Smith EH, Arain A, Peters A, et al. A systematic exploration of parameters affecting evoked intracranial potentials in patients with epilepsy. Brain Stimulation. 2020;. doi: 10.1016/j.brs.2020.06.002 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Mitzdorf U. Current source-density method and application in cat cerebral cortex: investigation of evoked potentials and EEG phenomena. Physiological reviews. 1985;65(1):37–100. doi: 10.1152/physrev.1985.65.1.37 [DOI] [PubMed] [Google Scholar]
  • 29.Sigg CD, Buhmann JM. Expectation-maximization for sparse and non-negative PCA. In: Proceedings of the 25th international conference on Machine learning; 2008. p. 960–967.
  • 30.Bießmann F, Meinecke FC, Gretton A, Rauch A, Rainer G, Logothetis NK, et al. Temporal kernel CCA and its application in multimodal neuronal data analysis. Machine Learning. 2010;79(1-2):5–27. doi: 10.1007/s10994-009-5153-3 [DOI] [Google Scholar]
  • 31.Dähne S, Biessmann F, Samek W, Haufe S, Goltz D, Gundlach C, et al. Multivariate machine learning methods for fusing multimodal functional neuroimaging data. Proceedings of the IEEE. 2015;103(9):1507–1530. doi: 10.1109/JPROC.2015.2425807 [DOI] [Google Scholar]
  • 32.Miller KJ, Schalk G, Hermes D, Ojemann JG, Rao RP. Spontaneous decoding of the timing and content of human object perception from cortical surface recordings reveals complementary information in the event-related potential and broadband spectral change. PLoS computational biology. 2016;12(1):e1004660. doi: 10.1371/journal.pcbi.1004660 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Brodmann K. Vergleichende Lokalisationslehre der Grosshirnrinde in ihren Prinzipien dargestellt auf Grund des Zellenbaues. Barth; 1909.
  • 34.Glasser MF, Coalson TS, Robinson EC, Hacker CD, Harwell J, Yacoub E, et al. A multi-modal parcellation of human cerebral cortex. Nature. 2016;536(7615):171–178. doi: 10.1038/nature18933 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Efron B, Tibshirani RJ. An introduction to the bootstrap. CRC press; 1994. [Google Scholar]
  • 36.Meinecke F, Ziehe A, Kawanabe M, Muller KR. A resampling approach to estimate the stability of one-dimensional or multidimensional independent components. IEEE transactions on biomedical engineering. 2002;49(12):1514–1525. doi: 10.1109/TBME.2002.805480 [DOI] [PubMed] [Google Scholar]
  • 37.Mairal J, Bach F, Ponce J, Sapiro G. Online dictionary learning for sparse coding. In: Proceedings of the 26th annual international conference on machine learning; 2009. p. 689–696.
  • 38.Miller KJ, Hermes D, Pestilli F, Wig GS, Ojemann JG. Face percept formation in human ventral temporal cortex. Journal of Neurophysiology. 2017;118(5):2614–2627. doi: 10.1152/jn.00113.2017 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Miller KJ, Hermes D, Witthoft N, Rao RP, Ojemann JG. The physiology of perception in human temporal lobe is specialized for contextual novelty. Journal of neurophysiology. 2015;114(1):256–263. doi: 10.1152/jn.00131.2015 [DOI] [PMC free article] [PubMed] [Google Scholar]
PLoS Comput Biol. doi: 10.1371/journal.pcbi.1008710.r001

Decision Letter 0

Marieke Karlijn van Vugt, Daniele Marinazzo

25 Mar 2021

Dear Dr. Miller,

Thank you very much for submitting your manuscript "Basis profile curve identification to understand electrical stimulation effects in human brain networks" for consideration at PLOS Computational Biology.

As with all papers reviewed by the journal, your manuscript was reviewed by members of the editorial board and by several independent reviewers. In light of the reviews (below this email), we would like to invite the resubmission of a significantly-revised version that takes into account the reviewers' comments.

Three reviewers have considered your paper and they were all enthusiastic about the innovative methods you developed. However, all had concerns that need to be addressed before publication. The main concern, in my opinion is that this method needs to be compared-in theory and in practice-to existing methods for solving this problem.

I encourage you to respond to these comments and submit a revised version of the manuscript.

We cannot make any decision about publication until we have seen the revised manuscript and your response to the reviewers' comments. Your revised manuscript is also likely to be sent to reviewers for further evaluation.

When you are ready to resubmit, please upload the following:

[1] A letter containing a detailed list of your responses to the review comments and a description of the changes you have made in the manuscript. Please note while forming your response, if your article is accepted, you may have the opportunity to make the peer review history publicly available. The record will include editor decision letters (with reviews) and your responses to reviewer comments. If eligible, we will contact you to opt in or out.

[2] Two versions of the revised manuscript: one with either highlights or tracked changes denoting where the text has been changed; the other a clean version (uploaded as the manuscript file).

Important additional instructions are given below your reviewer comments.

Please prepare and submit your revised manuscript within 60 days. If you anticipate any delay, please let us know the expected resubmission date by replying to this email. Please note that revised manuscripts received after the 60-day due date may require evaluation and peer review similar to newly submitted manuscripts.

Thank you again for your submission. We hope that our editorial process has been constructive so far, and we welcome your feedback at any time. Please don't hesitate to contact us if you have any questions or comments.

Sincerely,

Marieke Karlijn van Vugt, PhD

Associate Editor

PLOS Computational Biology

Daniele Marinazzo

Deputy Editor

PLOS Computational Biology

***********************

Three reviewers have considered your paper and they were all enthusiastic about the innovative methods you developed. However, all had concerns that need to be addressed before publication. The main concern, in my opinion is that this method needs to be compared-in theory and in practice-to existing methods for solving this problem.

I encourage you to respond to these comments and submit a revised version of the manuscript.

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: The authors describe a novel technique for understanding brain connectivity using the CCEP paradigm. The development of novel methods for using brain stimulation to map connectivity is an important question across a number of clinical and cognitive neuroscience domains. Overall, I think the method proposed by the authors represents a valuable addition to the literature surrounding this issue. In particular the use of a single analytical pipeline incorporating all observed stimulation sites is an important innovation.

The method involves identifying similarity in the response curves to stimulation to understand how a number of spatially distinct anatomical stimulation sites may be connected to a single site of interest. The multi-step approach includes generating correlation matrices for 1) a single stim site to itself across stim trials and 2) other stimulation sites, extracting similarity features, and then projecting these onto the observed responses to generate intuitively useful response curves for the different locations

The principal question I have is related to how this technique performs relative to straightforward existing methods, such as comparing evoked responses. Do the BCP derived curves shown in Fig 3 and then again in Fig 4 look like ERPs from the different stimulation sites? Could the same discernments in connectivity motifs arise from existing methods, such as examining N1 and N2 components or measuring correlations in the ERPs for example? More generally, other updated methods have been proposed for measuring CCEP responses (https://doi.org/10.1016/j.jneumeth.2019.108559, https://doi.org/10.1016/j.neuroimage.2017.07.061). The paper would benefit from engaging with basic, traditional methods and some of these updated methods and an explanation of why this newer method is more useful. One of the key differences in this method is that the authors do not average response to stimulation at a single site but examine response curves for all trials, which introduces some issues with shifts in baseline (as they acknowledge). They should make this clear when comparing their technique to others. As a point of clarification, is every stimulation trial mapped to every other stimulation trial in the initial step of the pipeline? Or just the first trial? This was not entirely clear to me from the figure.

The authors propose some uses of CCEP mapping but seem to ignore the principal application, which is understanding seizure networks (https://doi.org/10.1016/j.eplepsyres.2015.04.009). Readers considering application of the technique would be interested to know if it may have utility in this area. Related to this point, one of the issues with CCEP has been how to control for the effect of expected response magnitude due to anatomical distance (including volume conduction https://doi.org/10.1016/j.jneumeth.2020.108639). How does this new method handle this issue? Based on the data in Fig 4, it seems that significant response motifs are either nearby (green) or further away (yellow), but most sites near the electrode of interest do not show a significant BPC response. Are strong responses not observed for nearby locations because the resulting responses are not consistent and end up being removed as noise? Or were they just not stimulated? Additional plots showing how the new method handles this issue would be a nice addition to the manuscript.

Related to this, additional explanation would be helpful in Fig 4. Most important is to show clearly where the measured response is located on the brain, the site to which the colored circles are presumably connected (what is the “convergent” electrode site?). This is more clear in the supplemental figure for temporal pole.

The authors include a paragraph describing the additional studies needed to verify the utility of this new method. I understand that this manuscript focuses on the methodological details. But for a high profile journal, I think a demonstration that this method identifies a connection of known anatomical effective connectivity (such as the arcuate fasiculus, visual-fusiform connections, as published for early validation of basic CCEP methods) would make the argument more convincing. Comparing how the BPC method performs compared to existing methods for such a known connection would be helpful.

How do the authors handle multiple stimulation amplitudes? They report a single 6 mA threshold, but because of differences in impedance across stimulating locations (due to heterogeneity in electrode contact with the cortex), application of CCEP usually includes several stimulation thresholds (eg 2 to 8 mA). Why did the authors use only a single amplitude in their input data? They mention this as a future application, but I would assume several stimulation amplitudes are available for the example they show based on how CCEP data are collected. Do different stim amplitudes at the same region identify significant motifs (perhaps with different shapes after projection onto the observed response curves)?

Finally, I don’t know if this method would be useful in stereo EEG (depth electrode) data. The variation in the positive/negative deflection attributed to different interactions of depth electrodes with gray matter led to the adoption of techniques such as root mean square or gamma power to measure CCEP responses (https://doi.org/10.1016/j.cortex.2019.05.019). This same issue impacts the use of evoked potentials using stereo EEG recording electrodes. Based on the description provided in page 13, my sense is that the authors would say that this method is useful only for surface electrodes, where the relationship to the cortical surface is consistent, but perhaps this is incorrect. Given the explanation of how their method maps onto the neurophysiological properties of the brain, if the authors believe it would be useful in stereo EEG, showing some data to this effect would be important.

Typos I noticed: Line 226

Line 263

Reviewer #2: In this manuscript, Miller et al. outline a conceptual and computational approach to “convergent” brain stimulation mapping. They argue that, by stimulating many different sites and measuring the potentials evoked at a single target site (convergent approach), we generate a more interpretable dataset than by stimulating one site and measuring the resulting potentials at many other recipient sites (divergent approach). They further provide a computational approach for convergent mapping, based on a two stage algorithm: non-negative matrix factorization followed by linear kernel PCA. Their methods are illustrated with an example dataset and perform well in this setting.

Overall, this is an important, insightful and useful contribution to the theoretical framework around electrical brain stimulation. The main areas for improvement in the manuscript relate to the textual justification of the two-stage electrode-assignment and waveform-assignment approach, and clarification of some of the writing and presentation around the algorithm.

MAIN POINTS

1) The computational scheme outlined here seeks to satisfy two goals: (G1) identify groups of locations whose stimulation elicits similar waveforms at the target site, and (G2) to extract canonical waveforms (basis profile curves, BPCs) and associate them with individual stimulation events. There are conceptual and practical questions about this consecutive two stage approach.

Conceptually, it seems important to state explicitly what is the relative priority of each of these goals. In other words, suppose it were possible to achieve a better or more ambiguous solution to (G1) while rendering (G2) less interpretable or less accurate — which of these goals takes priority? You could imagine this as a kind of objective function in which we are optimizing for both goals — what is the weighting on each term in the objective function?

Practically, I could not help wondering whether a recursive procedure might not work better to jointly achieve the two goals (G1) and (G2). In many clustering settings [see for example, k-means clustering, but the principle applies more generally to all kinds of expectation-maximization algorithms] a broad approach is to (Step 1) make a preliminary clustering of trials and then (Step 2) extract canonical waveforms form each cluster, and then return to step (Step 1) using the canonical waveforms extracted in (Step 2) as a reference or basis of some kind. Conversely, in the current paper the two stages (clustering trials / electrodes, and then extracting BPCs) are performed strictly consecutively. Could the BPCs not be used as a means of performing better clustering? Do the authors think that the consecutive approach taken here is better than a recursive methods, or simply more straightforward?

2) A key assumption of the decomposition (lines 63-65) is that each stimulation trial should be characterized by a single BPC rather than a superposition of BPCs. I would like to hear more about whether this is a computationally expedient assumption, or whether it is endorsing an assumption about the nature of the mapping process and brain dynamics. In particular, it seems that if there are ongoing fluctuations in the excitability of the neurons in the target site, then this alone could give rise to variation in the trial-to-trial mixture of responses elicited in a single site. For example, consider the case where we are always stimulating exactly the same adjacent electrode-pair and recording from the same target site. Now, suppose that one BPC is associated with “high pre-stim excitability of pyramidal neurons at the target site” and another is associated with “low pre-stim excitability fo pyramidal neurons at the target sites”… would one not expect that a superposition of these BPCs would be observed on stimulation trials on which the pre-stimulation excitability in the target site is “intermediate excitability”?

3) At a broader level, I would have liked to have seen a few sentences in the Discussion addressing the broad question: “How would we know if the results of this method are better than another method? What should we treat as ground truth, or the practical outcome which can be used to decide that one decomposition approach is ideal”? I could imagine pure neuroscience arguments here (e.g. consistency in extracted clusterings when using convergent mapping for target site A and target site B) and more applied outcomes (e.g. better performance in identifying pathological brain tissue). Ultimately, though, I think that a few sentences on this topic could help to remind the reader what all of these methods are for, and to provide a framework for comparing these methods against any other approaches.

4) For selecting the BPCs (paragraphs around lines 162 and 180) , is the selection based on explained variance ideal, or could it be improved using a cross-validation based selection procedure? [Hold out some of the data; fit the model; measure the goodness of reconstruction in the held-out data]. The authors need not implement this, but out-of-sample explained variance may be worth mentioning as an alternative to in-sample explained variance.

5) Figure 4: Could the authors comment on why the ventral visual system is so responsive to stimulation in the ventral motor cortex? Obviously resolving this is not important for this manuscript, but it seems worth commenting on the spatial distribution shown in Figure 4C, in light of the very ventral site (PHG) that is being targeted.

6) Line 292: “We found instead that the measured cortico-cortical evoked potentials could be described by three basis profile curves, which are unique in shape (Figure 4B), only one of which (B3) is consistent with the reported N1/N2 form. “This seems like an important point — at the same time, when making an observation like this it seems important to confirm for the reader that the N1/N2 forms are “ostensibly” present in the raw data. Because another reason why they may not be recovered by this procedure could be that they are simply not present in this example dataset… so you would want to show that the N1/N2 components //are// (under some conventional appraisal) present in the raw data (perhaps this is just done by eye?) and yet these N1/N2 peaks are not recovered as BPCs.

7) Although I find the arguments in favor of the “convergent” mapping procedure compelling (as opposed to divergent), I think that what the authors present here — mapping of /two/ sites using convergent mapping and then comparing the maps — is even more compelling, because it enables you to see whether the same site-clusters (e.g. the motor cortex cluster) are identified as clusters for two different target sites. If the authors agree, then they may want to consider moving Supp Figure 3D/E into the main text?

……

MINOR POINTS

0) Throughout the manuscript “figure 2” and “figure 3” references could be “Figure 2” and “Figure 3”.

1) Might sparse dictionary learning methods be used in place of the linear kernel PCA approach? (e.g. Mairal et al., 2009, Online Dictionary Learning for Sparse Coding. ICML).

2) In Figure 2, the site of each stimulation site is mapped on the cortical surface. Is this “site” of stimulation the spatial average of the positions of the two stimulated electrodes?

Line 17: this sentence seems awkward toward the end:

“For an array of N total electrodes, there are a potential set of order N2 CCEP interactions that may be explored (for bipolar stimulation, the actual number will depend on which sets of adjacent stimulation pairs are chosen to deliver electrical pulses through).”

should “stimulation pairs” be “electrode pairs”?

Line 27: “and then study” could be “and then to study”

Line 101: “T total time points” could be “T time points”

Line 103: May want to make this more concrete for the reader by saying something like, “In the example provided here, each subgroup corresponds to a pair of adjacent electrodes”

Line 120: the notation in the equation for S_{nvm} is confusing , with k an element of n, and l an element of m… if n and m are sets, would it not be clearer to demarcate them with capital letters or some other token?

Line 124: this matrix is first subjected to a non-negativity constraints — please clarify if “first” here means before or after t-value conversion… presumably it would have to happen after the t-value conversion? In that case it would not be the first manipulation? Maybe “next” rather than “first”?

Line 132: “there is structure in the variation itself” — maybe this would be clearer as “there is reliable temporal structure in the within-group variation” ..?

Line 156: “pushing the normalization factor onto the columns of W” — please clarify

Line 159: the previous steps were written in passive tense and this is now in an imperative tense (“calculate” vs. “is calculated”)

Line 182: I think this could be “it is more expedient to start with…”

Line 193: please clarify where the tolerance factor was added, and the sensitivity of the procedure to the choice of this parameter

Line 226-7: “several insignificant stimulation-pair subgroups” — please make clear what “insignificant” means in this context — is this a statistical statement or estimate?

Line 236: please check punctuation here … the structure of the sentence is “Since X, and Y=W=Z”

Line 250 : disentangling of this convergence —> disentangling this convergence

Line 255: based upon where was stimulated —> based on the stimulation site

Line 268: a single site —> at a single site

Line 279: “by their relative weights” — please specify which parameter this refers to

Line 358: “Although there is no prior assumption about the forms the BPCs should have, …” — perhaps specify by mentioning e.g., continuity or differentiability or variance or something like that… certainly the decomposition scheme must impose /some/ assumptions and constraints on the form of the BPCs… it is just a fairly generic time-series decomposition assumption… I would imagine that this matrix decomposition technique could be re-written as a kind of Bayesian inference procedure, with some priors over the variables, correct?

Line 446: “Each region is defined by a unique laminar architecture (defined as a unique Brodmann area, [32]),…” — Is this actually true? My understanding was that cytoarchitectonic features would sometimes vary in a graded manner, and that regional boundaries are drawn based on multiple features, including cortical thickness and myelination and other factors? This is a very small point… it just seems strange to cite Korbinian Brodmann for this claim … maybe consider citing a more modern atlas, too, like some of the recent Van Essen group atlases based on multimodal imaging?

Reviewer #3: I would like to commend the authors for their submitted manuscript, in which they clearly outline a novel way to cluster data resulting from medical singe pulse electrical stimulation (SPES) sessions in intracranially implanted patients. Indeed their approach appears to provide a data-driven way to quantitively tease apart different response profiles resulting from stimulation throughout the brain, which they call basis profile curves" (BPCs). This method provides clusters that cannot be obtained to more commonly employed methods (for example ICA, direct PCA based methods etc), which would probably cluster the 3 BPCs categorized in the example into the same cluster (possibly even producing a traditional N1/N2 profile), which would not reflect the single trial-level accurately. This method allows for data resulting from SPES sessions to be analysed in more depth and with higher accuracy, while still constraining the amount of variables. I am enthusiastic about this method and can see many potential applications in future analyses. The manuscript is very well-written and surely will benefit iEEG research.

I have only two concerns, one major and one minor (and list a few typos). I hope these help the authors to improve on the manuscript.

Specific comments

1. Major. The proposed approach will work very nicely when one considers only one electrode where signals are recorded. However, in many cases a researcher will have several electrodes in a given area. For instance, one may have 5 electrodes in the hippocampus and uses SPES data to test how the hippocampus is connected to other brain regions. This problem would even be more excacerbated when one has mircowire recordings, and increasingly popular tool, where there are 8 channels per location. The approach presented by the authors would provide a handful of BPCs per channel, but how can we group these BPCs across electrodes in a meaningful way? Notably, when grouping across electrodes, phase-reversals (ie. polarity flips) are possible (even expected) so the NNMF wouldn’t work in this instance. It would be useful if the authors could adapt their toolbox to implement such a second-level clustering solution. However, the authors may wish to answer that this question is beyond the scope, which is fair enough, but then at least they should offer some guidance as to how BPCs across electrodes can be grouped.

2. Minor. This point relates to the brute-forcing of the non-negative matrix factorization (NNMF). You mention that alternative implementations to repeatedly re-running the NNMF were deemed impractical. I would like to see more detail about why that is the case. Is this due to intense computation requirements/times, that offset the advantage of reducing the randomness of W and H? I was also wondering how much variability this method leaves in resulting BPCs in data that are a bit more noisy/not as clear cut.

Typos:

Line 144: … anatomy IS not …

Line 268: … observed AT a single site …

Line 435: there is a ‘)’ missing in the reference to suppl fig 2.

**********

Have all data underlying the figures and results presented in the manuscript been provided?

Large-scale datasets should be made available via a public repository as described in the PLOS Computational Biology data availability policy, and numerical data that underlies graphs or summary statistics should be provided in spreadsheet form as supporting information.

Reviewer #1: Yes

Reviewer #2: Yes

Reviewer #3: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: No

Reviewer #3: Yes: Simon Hanslmayr

Figure Files:

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email us at figures@plos.org.

Data Requirements:

Please note that, as a condition of publication, PLOS' data policy requires that you make available all data used to draw the conclusions outlined in your manuscript. Data must be deposited in an appropriate repository, included within the body of the manuscript, or uploaded as supporting information. This includes all numerical values that were used to generate graphs, histograms etc.. For an example in PLOS Biology see here: http://www.plosbiology.org/article/info%3Adoi%2F10.1371%2Fjournal.pbio.1001908#s5.

Reproducibility:

To enhance the reproducibility of your results, we recommend that you deposit your laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. Additionally, PLOS ONE offers an option to publish peer-reviewed clinical study protocols. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1008710.r003

Decision Letter 1

Marieke Karlijn van Vugt, Daniele Marinazzo

21 Jul 2021

Dear Dr. Miller,

We are pleased to inform you that your manuscript 'Basis profile curve identification to understand electrical stimulation effects in human brain networks' has been provisionally accepted for publication in PLOS Computational Biology.

Before your manuscript can be formally accepted you will need to complete some formatting changes, which you will receive in a follow up email. A member of our team will be in touch with a set of requests.

Please note that your manuscript will not be scheduled for publication until you have made the required changes, so a swift response is appreciated.

IMPORTANT: The editorial review process is now complete. PLOS will only permit corrections to spelling, formatting or significant scientific errors from this point onwards. Requests for major changes, or any which affect the scientific understanding of your work, will cause delays to the publication date of your manuscript.

Should you, your institution's press office or the journal office choose to press release your paper, you will automatically be opted out of early publication. We ask that you notify us now if you or your institution is planning to press release the article. All press must be co-ordinated with PLOS.

Thank you again for supporting Open Access publishing; we are looking forward to publishing your work in PLOS Computational Biology. 

Best regards,

Marieke Karlijn van Vugt, PhD

Associate Editor

PLOS Computational Biology

Daniele Marinazzo

Deputy Editor

PLOS Computational Biology

***********************************************************

Two of the reviewers accepted the submitted manuscript without further revisions, and a third reviewer was also mostly satisfied, although this person still had some remaining comments. Nevertheless, since these comments seek to expand the scope of the paper but do not question the validity of the results, I am convinced the paper is ready for acceptance. However, I encourage the authors to take a look at the comments provided by this reviewer, especially their suggestions for changes in wordings. Apart from that, congratulations!

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: The authors have modified their manuscript to add explanation (including modification to Fig 2) regarding the relationship between the BPCs and evoked responses observed via stimulation. I think this is a helpful addition, in that it emphasizes the similarity between existing ERP methods and the BPC curves, which will make the new method easier to grasp (at least it did for me). I apologize for my oversight of the “measurement site” label in the figures – reading it properly makes the figure easier to interpret also.

The authors’ point about different response curves at different recordings sites (as summarized in Fig 1F and citation of Kundu) is exactly the motivation behind the adoption of RMS as a method for measuring connectivity using CCEP. I understand the focus of the manuscript is to present the BPC method, but I don’t think that showing how their method contrasts with results from RMS (for the single patient they describe) represents an undue distraction. In fact, the authors might point out that while RMS would perhaps identify both the green and orange dots as highly connected to the PHG, the BPS can differentiate the response patterns. The authors do a good job explaining the limitations of N1/N2 patterns for inferring connectivity, but given the ubiquity of RMS in the analysis of CCEP I think a direct contrast would be helpful. One idea would be to report where in the distribution of RMS values the significant (green and orange) locations fall.

This is also why I don’t entirely understand why the BPC method would be useful in SEEG, because different response shapes will be observed for electrodes located in the same brain region (due to different spatial relationship relative to the cortical surface). If the response curves have a different shape, then they would be separately clustered by the BPC method (I assume) even though they have similar connectivity. I understand the authors want to limit the scope of the study, but I think any strong claim about utility for BPC in SEEG would require some data so they could perhaps change the wording here.

I understand the authors’ point regarding their desire not to add more data to the manuscript examining BPC for regions with known connectivity (eg arcuate fasiculus). I still think, for a high profile journal, this would be a useful addition, especially since the connections shown in Fig 4 are somewhat surprising (peri-sylvian locations connected strongly to the PHG). But if no data are available beyond this individual patient then I can understand omitting such a validation since collecting new data might be infeasible in humans. I would also be surprised that no data are available at lower stimulation amplitudes at least, principally because stimulating at 6 mA at all locations might induce seizures in sensitive locations and usually lower amplitudes need to be tested before moving to higher amplitudes. But I agree that showing how the method performs at different stim amplitudes is not critical to the manuscript.

Reviewer #2: I thank the authors for their revisions, which have addressed all of my concerns.

Reviewer #3: The authors have done a great job in addressing our comments. We have no further suggestions and congratulate the authors on a great paper.

**********

Have the authors made all data and (if applicable) computational code underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data and code underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data and code should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data or code —e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

Reviewer #2: Yes

Reviewer #3: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: No

Reviewer #3: No

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1008710.r004

Acceptance letter

Marieke Karlijn van Vugt, Daniele Marinazzo

11 Aug 2021

PCOMPBIOL-D-21-00124R1

Basis profile curve identification to understand electrical stimulation effects in human brain networks

Dear Dr Miller,

I am pleased to inform you that your manuscript has been formally accepted for publication in PLOS Computational Biology. Your manuscript is now with our production department and you will be notified of the publication date in due course.

The corresponding author will soon be receiving a typeset proof for review, to ensure errors have not been introduced during production. Please review the PDF proof of your manuscript carefully, as this is the last chance to correct any errors. Please note that major changes, or those which affect the scientific understanding of the work, will likely cause delays to the publication date of your manuscript.

Soon after your final files are uploaded, unless you have opted out, the early version of your manuscript will be published online. The date of the early version will be your article's publication date. The final article will be published to the same URL, and all versions of the paper will be accessible to readers.

Thank you again for supporting PLOS Computational Biology and open-access publishing. We are looking forward to publishing your work!

With kind regards,

Andrea Szabo

PLOS Computational Biology | Carlyle House, Carlyle Road, Cambridge CB4 3DN | United Kingdom ploscompbiol@plos.org | Phone +44 (0) 1223-442824 | ploscompbiol.org | @PLOSCompBiol

Associated Data

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

    Supplementary Materials

    S1 Fig. Explained variance as a function of number of inner dimensions, Q.

    We can quantify the total variance explained by the fitting of resulting BPCs, Bq(t), across all included stimulation-pair trials: VkVkεkεkknq. When we normalize this by the total variance, VkVkkalln, we have the portion of total variance explained (blue circles). However, the goal of the decomposition is to identify motifs, explained by BPCs, from the full set of stimulations. For example, if one were to perform stimulations at a site that has no effect on the measurement site, it should not undermine our confidence in the decomposition. Therefore, a more appropriate normalization is to instead divide the explained variance by the variance of the trials included in the clustering, VkVkknq. For our example case, this immediately validates the dimensionality Q = 3, selected by the algorithm (Fig 3).

    (TIF)

    S2 Fig. Alternate metrics for projection weights of BPC curves.

    As in Fig 4, but using alternate scoring metrics for each stimulation-pair subgroup, shown in inset rectangles overlying each cortical rendering.

    (TIF)

    S3 Fig. Side-by-side illustration of CCEP shapes (from Fig 2E) and BPC projection weights (from Fig 4B and 4C), to plainly illustrate the correspondence.

    (TIF)

    S4 Fig. An illustration of the BPC method applied to sub-segmentation of trials.

    On the top row, BPCs are identified from only odd trials. On the bottom row, BPCs are identified from only even trials. After the split, each stimulation-pair subgroup is represented by 4–5 individual stimulation trials. Despite this small amount of individual stimulation trials for each stimulation-pair subgroup, the process is remarkably stable. For each row, the panels from left-to-right are matrices of the CCEPs, extracted BPC shapes, projection weights (group-averaged signal-to-noise ratio), and projection weights plotted on the brain surface.

    (TIF)

    S5 Fig. Illustration from a different site.

    Stimulation responses from a site in the temporal pole are shown. A: Responses from each stimulation pulse are aligned into a matrix Vk(t). B: Averaged responses Gn(t) are shown at the site of each stimulation pair that produced them. C: BPCs produced by the algorithm. D: Weights (group-averaged signal-to-noise ratio) associated with each BPC (color-coded), and non-included sites (gray). E: Spatial representation of BPCs, color-coded, with diameter and color intensity indicating magnitude. All values are scaled to the global maximum across all BPCs. F: As in (E), but with each BPC distribution individually scaled to its own maximum. Note the similarity in the spatial distribution of the stimulation-site cluster labeled in green to Fig 3), but the completely different shape of the BPC (likely reflecting the different laminar architecture of the two recipient measurement sites).

    (TIF)

    Attachment

    Submitted filename: kjm_bpcmethod_reply_to_reviewers_R1.pdf

    Data Availability Statement

    Code written in MATLAB to reproduce all of the steps and illustrations contained in this manuscript is freely available along with the sample dataset at https://purl.stanford.edu/rc201dv0636, for use without restriction.

    Code written in MATLAB to reproduce all of the steps and illustrations contained in this manuscript is freely available along with the sample dataset at https://purl.stanford.edu/rc201dv0636. The file “kjm_bpcmethod_readme.pdf” describes the code and dataset, along with instructions for how to perform the analyses.


    Articles from PLoS Computational Biology are provided here courtesy of PLOS

    RESOURCES