<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Robust point-process Granger causality analysis in presence of exogenous temporal modulations and trial-by-trial variability in spike trains</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>01/25/2021</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10220612</idno>
					<idno type="doi">10.1371/journal.pcbi.1007675</idno>
					<title level='j'>PLOS Computational Biology</title>
<idno>1553-7358</idno>
<biblScope unit="volume">17</biblScope>
<biblScope unit="issue">1</biblScope>					

					<author>Antonino Casile</author><author>Rose T. Faghih</author><author>Emery N. Brown</author><author>Abigail Morrison</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Assessing directional influences between neurons is instrumental to understand how brain circuits process information. To this end, Granger causality, a technique originally developed for time-continuous signals, has been extended to discrete spike trains. A fundamental assumption of this technique is that the temporal evolution of neuronal responses must be due only to endogenous interactions between recorded units, including self-interactions. This assumption is however rarely met in neurophysiological studies, where the response of each neuron is modulated by other exogenous causes such as, for example, other unobserved units or slow adaptation processes. Here, we propose a novel point-process Granger causality technique that is robust with respect to the two most common exogenous modulations observed in real neuronal responses: within-trial temporal variations in spiking rate and between-trial variability in their magnitudes. This novel method works by explicitly including both types of modulations into the generalized linear model of the neuronal conditional intensity function (CIF). We then assess the causal influence of neuron              i              onto neuron              j              by measuring the relative reduction of neuron              j              ’s point process likelihood obtained considering or removing neuron              i              . CIF’s hyper-parameters are set on a per-neuron basis by minimizing Akaike’s information criterion. In synthetic data sets, generated by means of random processes or networks of integrate-and-fire units, the proposed method recovered with high accuracy, sensitivity and robustness the underlying ground-truth connectivity pattern. Application of presently available point-process Granger causality techniques produced instead a significant number of false positive connections. In real spiking responses recorded from neurons in the monkey pre-motor cortex (area F5), our method revealed many causal relationships between neurons as well as the temporal structure of their interactions. Given its robustness our method can be effectively applied to real neuronal data. Furthermore, its explicit estimate of the effects of unobserved causes on the recorded neuronal firing patterns can help decomposing their temporal variations into endogenous and exogenous components.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Introduction</head><p>Modern neurophysiological recording techniques allow to simultaneously probe the activities of tens to hundreds of neurons <ref type="bibr">[1]</ref><ref type="bibr">[2]</ref><ref type="bibr">[3]</ref>. The availability of these high-dimensional data sets allows to address novel and relevant research questions about the brain. A particularly important question is to investigate brain functions at the circuit level, by assessing the influences between neurons. To this end, several analytical tools have been proposed in the past, such as cross-correlogram <ref type="bibr">[4]</ref>, joint peri-stimulus histogram <ref type="bibr">[5]</ref> or gravitational cluster <ref type="bibr">[6]</ref>. While providing noteworthy insights, these tools have also limitations as <ref type="bibr">(1)</ref> they do provide little information about the directionality of discovered interactions and (2) they do not usually consider the point-process nature of neuronal spike trains. To overcome both issues <ref type="bibr">Kim et al. proposed</ref> an extension of Granger causality to point processes <ref type="bibr">[7]</ref>.</p><p>Granger causality is an analytical tool originally proposed in the context of econometric time series <ref type="bibr">[8]</ref>. A stochastic process x is said to Granger causally influence another process y (henceforth denoted with x ! y) if knowledge of values of x at times before t improves, in a statistically significant manner, the prediction of y at time t beyond inclusion of past values of y itself. Granger causality assumes that all sources of temporal modulations of the processes x and y must be endogenous to the set of considered processes. That is, they must be entirely explained by the processes' past histories and there should be no common unobserved driver of temporal variability <ref type="bibr">[9]</ref>. However, this is often not the case in neurophysiological experiments, where many of the causes that produce temporal modulations in neuronal responses are exogenous to the ensemble of recorded neurons. Indeed, the activity of a neuron at each time point results from the integration of signals coming from many, potentially thousands, other neurons, most of which are not concurrently recorded. Furthermore, in many experimental settings, we are interested in the so-called functional connectivity between neurons.</p><p>That is, the amount and directionality of influences between neurons when the brain changes its state as a consequence of, for example, sensory stimulation or motor behavior. Under these conditions, neurons exhibit temporal modulations in the statistics of their firing patterns that are due to the interactions with neighboring neurons located in the their local network as well as more distant units in projecting brain regions. Finally, the magnitude of neuronal responses often exhibits a physiological, potentially correlated, trial-by-trial variability, that brings the system further away from the conditions assumed by Granger causality.</p><p>In this paper, we show that, in presence of exogenously temporally modulated and trial-bytrial variable spike trains the point-process Granger causality technique proposed by Kim et al. <ref type="bibr">[7]</ref> might recover inaccurate patterns of connectivity. We then propose two novel methods that address this issue. The first method, called G-ETM (Granger causality with Exogenous Temporal Modulations), is designed to extend point-process Granger causality to spike trains whose magnitudes are modulated by exogenous, unobserved, causes. The second method, called G-ETMV (Granger causality with Exogenous Temporal Modulations and trial-by-trial Variability), is computationally more demanding and it recovers the correct pattens of functional connectivity between a set of interconnected neurons exhibiting both trial-by-trial variability and exogenous temporal modulations in their firing patterns. Both methods work by adding covariates to Kim et al.'s Granger causality model. In G-ETM, these covariates model instantaneous changes in firing probability that cannot be attributed to the neurons' past history. In G-ETMV, they provide a factor that scales neurons' firing rate on a trial-by-trial basis so as to account for trial-wide modulations of neuronal activities. We show the effectiveness of our new Granger causality techniques by means of quantitative computer simulations and application to real spike trains recorded from the monkey pre-motor cortex (area F5).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Results</head><p>Throughout this section we will denote temporal modulations in neuronal responses that are due to interactions between the recorded neurons (including self-interactions) as endogenous and temporal modulations that are due to unobserved causes as exogenous.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Standard point-process Granger causality fails with spike trains exhibiting exogenous temporal modulations</head><p>In Kim et al.'s original point-process Granger causality method the conditional intensity function (CIF) &#955; i of a neuron i is modeled as the product of a baseline firing rate &#947; i,0 and a factor that depends, through the to-be-estimated parameters &#947;, on the past histories of all neurons in the ensemble, including neuron i itself (Eq 3 in Table <ref type="table">1</ref> and in the Methods sections). To show how such model can produce incorrect patterns of connectivity in the presence of spike trains exhibiting exogenous temporal modulations, we applied Kim et al.'s Granger method to 40  To see why this happened we have to consider the estimates of the interaction functions (the &#947; terms in Eq 3 and in Fig <ref type="figure">1D</ref>). In the Granger framework, interaction functions model how the past history of all neurons at different time lags modulate, at each time point, the activity of a given neuron i. In our example, their ground-truth values are identically zero for all neurons and time lags as there is no mutual or self interaction at any time lag between the two simulated units. However, not only their estimated values are different from zero at several time lags, but, in many cases, these differences are also statistically significant (red dots in Fig <ref type="figure">1D</ref>). We can explain these results both at the theoretical and at the implementation level.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Method Mathematical Model</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Kim et al. logl i &#240;tjg</head><p>At a theoretical level, in the Granger-causality framework, events B are said to be the "cause" of another event A if (1) they precede A in time, (2) knowledge of B change our uncertainty about A beyond inclusion of all other available information. This can be expressed, in where P(A) is a probability distribution representing our knowledge of the events A and P&#240;AjD&#222; is the probability of A conditioned on a set D of events and C and D are events that are supposed to be irrelevant. If events not included in B turn out to be relevant, say C in Eq 1, then this might lead to spurious causality links <ref type="bibr">[8]</ref>. Indeed, in this case, we would have: </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Extending point-process Granger causality to spike trains exhibiting exogenous temporal modulations</head><p>To overcome this problem we propose here G-ETM (Granger causality with Exogenous Temporal Modulations): a novel model that extends the computation of Granger causality to spike trains exhibiting exogenous temporal modulations. To this end, we exploited the organization of neurophysiological experiments into trials and the consistency, across trials, of temporal changes in firing rates to divide, for each neuron i, the duration T of each trial into N i nonoverlapping windows. Within each window, we model the CIF of a given neuron i as the sum of a baseline rate of activity (the &#945; terms in Eq 5) and the sum of the influences of all other neurons in the ensemble, including neuron i itself (the &#947; terms in Eq 5). Having one additional parameter for each interval allows us to explicitly take into account transient changes in the CIF of neurons due to unobserved factors that cannot be estimated based on their past histories.</p><p>Application of G-ETM to the spike trains of Fig <ref type="figure">1</ref> produced the correct pattern of causal connectivity (Fig <ref type="figure">2A</ref>). Furthermore, our technique produced also an estimate of the exogenous temporal modulations of the two simulated units that correctly captured their ground-truth values (Fig <ref type="figure">2B</ref>). This happened because we now explicitly model exogenous temporal changes of firing rates by means of the parameters &#945; in Eq 5. Therefore, the GLM fitting process no longer needs to generate fictitious connections to explain the variance that they produce.</p><p>We next compared G-ETM and Kim et al.'s model on a more complex system composed of 9 units subdivided into two disjoint (i.e. not interacting) subsets: units 1-3 and 4-9 (Fig 3A ) 
respectively. Within each simulated 3 s trial, units' firing patterns were determined by <ref type="bibr">(1)</ref> influences from other units in the same subset and (2) bell-like exogenous stimulation that for each unit peaked at a different time in the interval between t = 1 s and t = 2 s. This example is meant to model the case of simultaneous recordings from two areas during occurrence of an experimental event. In this setting, the question arises of whether there is any functional connectivity between the two recorded areas and, if so, what is its directionality. In our simulated network, there was no direct connectivity between the two areas (i.e. the two subsets of units). Application of Kim et al.'s method provided an inaccurate estimate of the local pattern of the connectivity both within and between the two subsets of units (Fig <ref type="figure">3B</ref>). In particular, it produced several additional false-positive connections suggesting an incorrect pattern of interarea connectivity. In an experimental setting, this pattern of results would provide support for the incorrect conclusion of a functional connectivity between the two areas. On the contrary, G-ETM recovered the correct pattern of causal connectivity both within and between the two subsets of units (Fig <ref type="figure">3C</ref>). Furthermore, it also provided an accurate estimate of the interaction functions between units (Fig <ref type="figure">3D</ref>). It is worth noting that temporal changes in the units' firing rates were almost entirely due to exogenous stimulation <ref type="bibr">(Fig 3E)</ref>. This means that our method  was sensitive enough to detect influences between units, even when, as it is often the case for real neurons, they produced only minimal changes in their firing rates.</p><p>To provide a more thorough comparison of G-ETM and Kim et al.' method we performed a series of Monte Carlo simulations <ref type="bibr">(Fig 4)</ref>. To this end, we simulated 40 trials of a network consisting of 4 neurons and 6 connections whose placement (i.e. connected nodes and directionality of the connection), type (i.e. excitatory or inhibitory) and strength were randomly determined (but, of course, it did not change across trials). In addition to mutual and self influences the spike rates of the 4 neurons underwent also an exogenous bell-shaped modulation. For each neuron, the modulation peaked always at the same time that was however different across neurons and uniformly distributed in the interval t = 1 s until t = 2 s. We then estimated causal connectivity by applying both Kim et al.'s and our method and compared these two connectivity patterns with their known ground-truth values (Fig <ref type="figure">4A</ref>). We computed the percentage of correct responses by dividing the number of correctly detected functional connections by 6 (the ground-truth value of functional connections present in the network) and the percentage of false positive by dividing the number of incorrectly reported functional connections by 10 (the ground-truth value of non-connected node pairs). We iterated this procedure 100 times. At each run, we randomly set the network structure and computed the percentage The spike trains used to generate the results in Fig <ref type="figure">4</ref> were obtained by a set of point-process random processes that matched the assumptions of our model. While this is necessary to validate G-ETM's implementation, it is also important to explore how our method behaves in presence of spike trains that are generated by processes potentially violating its assumptions. To address this question we generated spike trains by means of a network of integrate-and-fire units (see Methods section for further details). In such network, the spike generation process departs in two important ways from G-ETM's assumptions. In our G-ETM method, functional influences are assumed to modulate the target neuron's firing rate (1) directly and (2) in a multiplicative manner (the double summation in Eq 5). On the contrary, in the integrate-and-fire network that we used to generate synthetic spike trains, source neurons influence a target neuron's firing rate only (1) indirectly through its membrane potential and they do so in (2) an additive manner. That is, rather than having a multiplicative effect on the target neuron's firing rate, a spike from neuron i functionally influences another neuron j by producing an increase (excitatory influence) or decrease (inhibitory influence) in neuron j's membrane potential <ref type="bibr">[11]</ref>, which is independent from its instantaneous value. We investigated G-ETM's robustness to these violations of its assumptions in a set of additional Monte Carlo simulations, which followed the same procedure of  Taken together, the results of Figs <ref type="figure">4</ref> and<ref type="figure">5</ref> show that G-ETM provides an accurate estimate of the causal influences in a network of neurons in the presence of exogenous temporal modulations of their firing rates. Notably, G-ETM's performance were robust to violations of its underlying assumptions. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Sensitivity of G-ETM</head><p>A question that arises when analyzing a method for investigating functional connectivity is that of its sensitivity. That is, how likely is the proposed method to detect a functional connection when it is truly there. In our G-ETM method, two factors that, among others, play an important role in detecting a functional connection between the activities of two units are (1) the strength of the directed influence and (2) the number of available trials. We quantitatively investigated the role of these two factors in a further set of Monte Carlo simulations. To keep our simulations computationally tractable, we focused on a simple network consisting of two neurons with a functional connection 1 ! 2 from neuron 1 to neuron 2 and in which the spike rate of neuron 1 exhibits a Gaussian-shaped increment centered around t = 1s and with a variance of 0.2s (Fig <ref type="figure">6A</ref>). This simple model is meant to represent the case of two units belonging to two networks/areas respectively exhibiting a directed functional connection from one onto the other.</p><p>To investigate G-ETM's sensitivity, we parametrically changed the strength of the functional connection of neuron 1 onto neuron 2 and the number of generated trials. For each combination of strength of the functional connection and number of trials, we performed 50 runs. At each run we generated a new set of spike trains and applied our G-ETM method. detected by G-ETM across runs, as a function of the connection strength and number of available trials. These results suggest that G-ETM's sensitivity is modulated in a similar manner by the strength of the functional connection and the number of available trials, at least in the explored region of the parameter space. That is, G-ETMwas more likely to detect a weaker functional connection when more trials were provided. Conversely, fewer trials were necessary to detect a stronger functional connection. Crucially, the percentage of false positives remained compatible with the set statistical threshold of p &lt; 0.05 across the explored range of parameters' values (the grand average of false positives was 2.7%).</p><p>To fully gauge the significance of the results in Fig 6B <ref type="figure"/>and<ref type="figure">6C</ref> we developed a simple benchmark to compare them against. To this end, let's notice that, given the structure of our network, a spike emitted by neuron 1 increases the likelihood of neuron 2 to fire. Thus, an alternative method to detect whether neuron 1 is influencing neuron 2 is to measure if neuron 2's firing rate increases in the period around t = 1 of maximum activation of neuron 1 compared to baseline conditions. We performed such a measure, by testing, across trials, whether the firing rate of neuron 2 in the interval [.8, 1.2)s was significantly larger than in the interval [1.8, 2.2)s (i.e. baseline condition). It must be emphasized that devising such a test needed the full knowledge of the network (i.e. it needed the knowledge that neuron 1 is projecting onto neuron 2 and the latter receives no other input) and yet it was a poor estimator of the functional influence on one neuron onto another (Fig <ref type="figure">6D</ref>). Indeed, the percentage of runs in which this test was significant was consistently smaller than the performance of our G-ETM method, with, notably, no obvious dependence on either the connection strength or the number of trials (comare Fig 6B <ref type="figure"/>and<ref type="figure">6D</ref>). Taken together, the results of Fig <ref type="figure">6</ref> show that, in a large region of the investigated parameter space, our G-ETM method can detect functional influences between neurons that are so weak as to not appreciably modulate the target neuron's firing rate.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Application to real spike-train data</head><p>In a further step we applied G-ETM to real spike-train data. To this end, we simultaneously recorded the response of 12 neurons from the monkey pre-motor cortex (area F5) during the preparation of goal-directed motor acts. The task of the monkey was to attend to a briefly flashed cue indicating a to-be-executed action and to withhold movement execution until a subsequent go signal occurring randomly in the time interval comprised between 0.8 and 1.2s after cue onset. S1 Fig shows the responses of all 12 recorded neurons during the motor preparation period. In each panel, t = 0 marks cue presentation.</p><p>We collected data from a total of 57 trials and analyzed neuronal responses recorded in the interval from 0.5 s before until 1 s after cue presentation. Consistent with previous studies of monkey pre-motor cortex <ref type="bibr">[12]</ref>, the responses of neurons in area F5 were significantly modulated by the preparation of a motor act, exhibiting both phasic and transient modulations in their firing rates (S1 Fig) . We applied G-ETM to these spike trains. The results of our analysis revealed a complex pattern of Granger connectivity with both self-and mutual interactions between the recorded neurons ( shows that for some units (e.g. units 6 or 11) their temporal modulations could be only partially explained by exogenous influences and the remaining part could be explained by self-or mutual interactions with other units. This result suggests that, in addition to recovering patterns of causal connectivity, G-ETM can be also effectively  used to decompose the firing pattern of recorded units into exogenous (i.e. due to unobserved units/causes) and endogenous (i.e. due to observed units/causes) components.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Accounting for trial-by-trial variability</head><p>We have so far assumed that the stimulus-evoked responses of neurons are stereotyped and do not change across trials. However, while maintaining the same overall shape, the magnitude of neuronal firing patterns can often exhibit considerable variability across trials. It has been shown that these trial-by-trial variations can produce spurious patterns of Granger causality and this problem becomes even more severe when these variations are correlated across neurons <ref type="bibr">[13,</ref><ref type="bibr">14]</ref>. Fig <ref type="figure">8</ref> shows an example of such problems in a very simple system composed of two simulated units. In this example, on each trial p, the activity of unit i was generated by means of an inhomogeneous Poisson process with firing probability A i,p &#65533; &#955; i (t), where the factor A i,p sets the overall magnitude of the response &#955; i (t) in trial p. The processes &#955; 1 and &#955; 2 were independent and both underwent a bell-shaped temporal modulation of their firing rates centered at t = 1 (Fig <ref type="figure">8B</ref>). We set A 1,p = A 2,p , 8p to correlate the trial-by-trial variability of the two units (Fig <ref type="figure">8C</ref>). Application of G-ETM recovered in this case an incorrect pattern of causal connectivity. This happened because trial-by-trial changes in response magnitude produced additional variance in the data that could not be accounted for by the exogenous components of our G-ETM model (see the mismatch between the blue and black curves in Fig <ref type="figure">8E</ref>). Therefore, the GLM fitting process attempted to explain this additional variance by means of the other available free parameters, which are those related to interactions between neurons. Indeed, for this specific realization of spike trains, inclusion of fictitious causal influences 1 ! 2, 2 ! 1 and 2 ! 2 significantly improved the percentage of explained variance (Fig 8F ) thus producing an incorrect estimate of the pattern of functional connectivity.</p><p>To take into account correlated trial-by-trial variability in the magnitude of neuronal responses we extended our G-ETM model. To this end, we further augmented it with a set of We next quantitatively compared G-ETM and G-ETMV by means of a series of Monte Carlo simulations. These simulations had the same structure as those in Fig <ref type="figure">4</ref> with the notable difference that, to produce correlated trial-by-trial variability the firing rates of all neurons were multiplied, on each trial, by the same factor randomly selected in the interval [.55, 2.05). Consistent with the intuition provided by Fig 8 application of our G-ETM method produced a false positive in 8.5% of the cases; a value that exceeds the set statistical threshold of p &lt; 0.05 (Fig <ref type="figure">8</ref>). On the contrary, G-ETMV not only provided a better estimate of the connectivity patterns (97% vs. 92% correct for the G-ETM and G-ETMV models respectively) but also maintained the percentage of false positives within the set statistical threshold (3.5%, <ref type="bibr">Fig 8)</ref>. These results show that G-ETMV is an effective technique to estimate causal influences between neurons that exhibit exogenous temporal modulations in their firing rates whose magnitude is variable across trials and correlated across units.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Discussion</head><p>A fundamental goal of Neuroscience is to characterize the brain functional circuits underlying perception, cognition and action. Granger causality addresses this problem by detecting functional influences between simultaneously recorded physiological signals <ref type="bibr">[15]</ref>. In previous work, Kim and co-workers proposed a point-process extension of Granger causality that allowed to investigate functional connectivity directly at the spike-train level <ref type="bibr">[7]</ref>. As any standard Granger causality techniques also Kim et al.'s technique assumes that input time series are jointly stationary. That is, their temporal modulations must be entirely due to the series' past histories. This assumption is however rarely met in real neurophysiological experiments. Indeed, neuronal networks are characterized by a high degree of convergence and the activity of a given neuron is the result of the integration of the outputs of many, potentially thousands, projecting units, which is often not technically possible to concurrently record. Furthermore, brain networks often exhibit slow changes in their global state, which makes the magnitude of neuronal responses vary across trials and be correlated between units.</p><p>Here, we first showed that application of standard point-process Granger causality to spike trains that exhibit exogenous temporal modulations produces a non-negligible number of artefactual causal links between neuronal activities. In an experimental setting, these results would suggest the existence of fictitious connectivity patterns and would induce incorrect conclusions concerning the underlying functional influences between neurons. To overcome these problems, we proposed here two novel point-process Granger causality techniques: G-ETM and G-ETMV. G-ETM is computationally less demanding and specifically designed for the case of spike trains exhibiting temporal modulations while G-ETMV is more computationally demanding but also handles the case of trial-by-trial, potentially correlated variability in neuronal responses. The choice of which one to use depends on a trade-off between available computational resources and a-priori hypotheses that the Experimenter has concerning a specific data set.</p><p>The jointly stationarity assumption gives Granger causality several appealing characteristics <ref type="bibr">[15]</ref>. However, at the same time, it greatly limits its potential applications, as very often we are interested in investigating the functional connectivity of brain networks undergoing stimulusevoked state transitions whose causes are exogenous to the networks themselves. To extend Granger causality to these cases, two main, not mutually exclusive, methods have been proposed in the literature. The first method consists in performing some form of pre-processing on the data to render them stationary and then apply Granger causality to this new stationary data set. For example, simple linear trends can be removed by differentiation while more complex non-stationary components can be removed by subtracting the ensemble average or the estimated evoked response from each trial <ref type="bibr">[16,</ref><ref type="bibr">17]</ref>. These techniques are however designed for time-continuous or continuously sampled data and cannot be directly applied to spike trains given their point-process nature. Furthermore, the removal of the ensemble average assumes that each trial is a realization of the same underlying stochastic process, an assumption that is not always met in practice <ref type="bibr">[13]</ref>. The second method consists in using time-varying models to fit the data <ref type="bibr">[18,</ref><ref type="bibr">19]</ref>. These extensions to Granger analysis can effectively deal with time series exhibiting exogenous temporal modulations. However, they possess no underlying test statistics and thus significance of the estimated parameters and model comparison must be assessed by means of empirical and computation-intensive bootstrapping techniques <ref type="bibr">[18,</ref><ref type="bibr">19]</ref>.</p><p>The Granger causality techniques proposed here overcome both problems. Since they directly model the neurons' CIF, they can be applied to point-process data. Furthermore, they use time-and trial-dependent models of neuronal responses and can thus recover the correct patterns of directed connectivity from spike trains containing exogenous temporal modulations and trial-by-trial variability. Notably, both techniques use generalized linear models to estimate the underlying neuronal CIF. Thus, we could use the rich theoretical framework developed for this class of models and, particularly, the test statistics developed to assess the goodness-of-fit of a given model and the significance of the estimated parameters. This aspect is particularly relevant for Granger causality analysis as this technique is heavily based on model comparison. Finally, both G-ETM and G-ETMV produce an estimate of the effects of both observed and unobserved causes on neuronal responses. Thus, in addition to estimating functional connectivity, they can be also used to decompose the spiking activity of each unit into endogenous (i.e. observed) and exogenous (i.e. unobserved) components.</p><p>At the practical level, the results of our Monte Carlo simulations stress the importance of carefully checking that the data set under scrutiny meets the assumptions of Granger causality <ref type="bibr">[20]</ref>. Indeed, as shown in Figs 1, 3, 4B, 8D and 9A, applying Granger causality analysis to spike trains that violate the assumptions of a given model produces a number of false positive (i.e. artefactual) functional connections well above the selected significance level. In these cases, incorrect conclusions might be drawn concerning the underlying connectivity pattern.</p><p>In addition to clear advantages over Kim et al.'s method, our G-ETM and G-ETMV point process Granger-causality techniques have also intrinsic limitations that need to be discussed. First, both G-ETM and G-ETMV need neuronal activities to be sorted into trials. Therefore, they can be applied only when neuronal data can be meaningfully arranged in this manner. Second, they cannot be applied to cases in which the temporal unfolding of exogenous modulations is not consistent across trials. Point-process methods have been developed that can model some types of trial-by-trial variability in exogenous modulations <ref type="bibr">[21]</ref>. However, their inclusion in a Granger causality framework is highly non-trivial and further studies are needed to evaluate its feasibility. Third, G-ETM and G-ETMV detect functional connections by relating patterns of spiking activity within and across units. They might thus fail in cases in which regularities in neurons' firing rates might create spurious relationships between the activities of different units. An, admittedly extreme, example are very regular, but independently generated, patterns of spiking activity. Such responses are produced, for example, by networks of non-functionally connected integrate-and-fire units with no synaptic noise and fixed spiking threshold (Fig <ref type="figure">10A</ref>). The regularities of these firing patterns create synchronizations at a short time-scale between and within units, which might be incorrectly interpreted by our G-ETM method as a pattern of functional connectivity (   the case for any model, G-ETM and G-ETMV are based on a set of assumptions. We showed two cases, in which G-ETM is robust <ref type="bibr">(Fig 5)</ref> or not <ref type="bibr">(Fig 10)</ref> to specific violations of its underlying assumptions respectively. A thorough assessment of its behavior under general conditions of structural uncertainty goes beyond the scope of this work and might need sophisticated statistical methods proposed in the literature (e.g. <ref type="bibr">[22,</ref><ref type="bibr">23]</ref>).</p><p>In summary, we presented here two novel point-process Granger analysis techniques, namely G-ETM and G-ETMV, that can correctly detect directed influences between neurons whose responses exhibit exogenous temporal modulations and correlated trial-by-trial variability. These novel techniques allow to investigate the functional connectivity between them during stimulus-evoked responses and thus to reveal how neurons interact not only during baseline conditions, but also when their responses are modulated by exogenous stimulation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Methods</head><p>We first briefly review the point process Granger causality method proposed by Kim and coworkers <ref type="bibr">[7]</ref>. In the following, we will use a lowercase notation for variables that are directly computed from the data and an uppercase notation for variables that are estimated from the GLM fitting process.</p><p>A point process is a time series of discrete events that occur in continuous time <ref type="bibr">[24]</ref>. Given an observation interval (0, T], let 0 &lt; u i 1 &lt; &#65533; &#65533; &#65533; &lt; u i j &lt; &#65533; &#65533; &#65533; &lt; u i J i &#65533; T be a set of J i spike times point process observations for i = 1, &#65533; &#65533; &#65533;, Q recorded neurons. Let N i (t) denote the number of spikes of neuron i in the time interval (0, t] with t 2 (0, T]. A point process model of a spike train is completely characterized by its conditional intensity function (CIF) &#955; i , given the past spiking history H i (t) of all neurons in the ensemble:</p><p>where H i (t) denotes the spiking history of all the neurons in the ensemble up to time t including neuron i itself.</p><p>The function &#955; i needs to be estimated from data. To this end, we first computed the history H i (t) of each neuron i in M i non overlapping rectangular windows of duration W. We then denoted with R q,m the spike count of neuron q (1 &lt; q &lt; Q) in the interval m (1 &lt; m &lt; M i ) and used a generalized linear model (GLM) framework to model the logarithm of the CIF as a linear combination of the R q,m <ref type="bibr">[25,</ref><ref type="bibr">26]</ref>:</p><p>where &#947; i,0 relate to a baseline level of activity of neuron i and the to-be-estimated interaction function &#947; i,q,m represents the effect of ensemble spiking history R q,m (t) on the firing probability of neuron i. Casting the estimate of &#955; i into an auto-regressive GLM framework allows an extension of Granger causality to point processes <ref type="bibr">[7]</ref>. Indeed, following the definition of Granger causality, one can infer the potential causal connection j ! i of neuron j onto neuron i by comparing the deviance of the full model in Eq 3 with that of a reduced model l j i that excludes the effects of neuron j onto neuron i:</p><p>If both models describe the data well then the difference of their deviances can be asymptotically described by a chi-square distribution and one can then use the theoretical machinery developed for this distribution to infer statistical significance <ref type="bibr">[7]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Accounting for temporally modulated spike trains</head><p>An assumption of standard Granger causality is that the examined stochastic processes are jointly stationary. That is, their temporal evolution must be entirely due to their past histories.</p><p>To easily convince ourselves why this is the case, let us look at Eq 3. In this equation, the CIF is assumed to depend, through the terms R q,m (t) only on the past history H i (t) of the neuronal ensemble. If the statistics of the spike trains are jointly stationary so are also the terms R q,m (t). This ensures that the GLM fitting process will converge to meaningful values for the parameters &#947; and that the difference of the deviances of models 3 and 4 will asymptotically follow a chi-square distribution. However, in the presence of spike trains exhibiting exogenous temporal modulations, the terms R q,m (t) will also be, in general, non-stationary and thus the GLM fitting process may converge to non-meaningful values or not converge at all. Furthermore, the model in Eq 3 will, in general, no longer provide a good description of the data. As a consequence, the deviances of models 3 and 4 might no longer asymptotically follow a chi-square distribution. In this case, the problem of statistically comparing them may even become illposed.</p><p>To overcome this limitation we first need to understand the characteristics of temporal modulations in spike trains. Neurophysiological experiments are usually organized into trials. Within each trial, an experimental event occurs (e.g. a sensory stimulus is presented, a movement is performed, etc.) that produces modulations in neuronal activities. For data analysis purposes, the continuously recorded neuronal spike trains are then off-line segmented into trials centered around the presented experimental event. A common assumption in analyzing neuronal responses is that the modulations produced by the exogenous event has the same time-course and amplitude across trials. Under this assumption we can thus deal with this non-stationarity by explicitly including it in our model.</p><p>To this end, for each neuron i we subdivide the duration T of each trial into N i non-overlapping windows of duration T/N i . Within each window we then model the CIF as the sum of the to-be-estimated effect of an exogenous event (the experimental event) and the influences of the other neurons. Our model becomes thus:</p><p>where 0 &lt; t &lt; T and c i &#240;t&#222; &#188; d t T N i e 2 N and 1 &lt; c i (t) &lt; N i , is a piece-wise constant integer function indexing a set of N i additional parameters (one for each of the intervals in which we have subdivided a trial for neuron i) that explicitly model changes in firing rates due to exogenous effects (i.e. effects not due to interactions with self or other neurons).</p><p>Model parameters were estimated by means of a GLM fitting process with a binomial distribution function and a logit link function. The potential causal influence of neuron j onto neuron i is assessed, similar to the method proposed by Kim et al. <ref type="bibr">[7]</ref>, by comparing the deviance of the model in Eq 5 with that of a reduced model l j i that excludes the effects of neuron j onto neuron i:</p><p>Notably, the GLM fitting process provides not only an estimate of the interaction functions &#947; i,q but also of the exogenous modulations &#945; i,c of neuronal responses. To set the values of the hyper-parameters M i and N i we repeated the fitting process using models having different values of M i and N i and we then selected the model that minimized Akaike's information criterion (AIC) <ref type="bibr">[7,</ref><ref type="bibr">27]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Accounting for trial-by-trial variability</head><p>We have so far assumed that stimulus-evoked responses are stereotyped and that their trialby-trial variability is entirely due to a noise process. However, neuronal responses can exhibit considerable task-related variations across trials that cannot be captured by a noise process. Notably, correlated variations of response magnitudes can modulate cross-correlation or spectral coherence measures resulting in patterns of Granger causality <ref type="bibr">[13,</ref><ref type="bibr">16]</ref>. To avoid these artifacts we need to explicitly include in our model potential trial-by-trial variations in response magnitudes. To this end, we added to our model a set of parameters &#946; i,p that represents the amplitude of the non-stationary response component of neuron i in trial p:</p><p>where &#955; i,p is the CIF of neuron i in trial p. Notably, the fitting process produces also an estimate of the parameters &#946; i,p whose values can be used to assess the consistency of response magnitudes across trials. Also in this case, the potential causal influence of neuron j onto neuron i is assessed by comparing the deviance, across all trials, of the model in Eq 7 with that of a reduced model l j i;p that excludes the effects of neuron j onto neuron i. At the implementation level, additional constraints had to be added to ensure convergence in the GLM fitting process of Eq 7. Indeed, if &#65533; b and &#65533; a are solutions of Eq 7 then so are &#65533; b &#192; a and &#65533; a &#254; a, with a 2 R. Under these conditions the fitting process would not converge as it would get stuck in a "runaway" process in which a, and consequently &#946;, are indefinitely increased or decreased. We thus added, to our set of predictors, two regularizers that avoid indefinite increase or decrease of the parameters &#946;.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Generation of synthetic spike trains</head><p>For our simulations we set the temporal granularity to 1 ms. For each neuron i and trial p, spike trains were then generated by extracting, for each trial and 1 ms interval, a random number r uniformly distributed between 0 and 1. A spike was assumed to have occurred if r &#65533; &#955; i,p (t|&#947; i , H i (t))&#916; (where &#955; i represents the time-dependent firing rate in spikes per second and &#916; = 0.001 s = 1 ms); otherwise, no spike was generated.</p><p>At each time t, the firing rate &#955; i,p was computed as:</p><p>where A i,p models trial-to-trial variations of the activity of neuron i, l 0 i;p is a baseline level of activity, B i e</p><p>is a non-stationary Gaussian-shaped modulation of the spike rate centered, within each trial, at time &#964; i and with &#964; 0 determining its duration. The term &#8721;&#8721;. . . represents the influence of all other neurons including neuron i itself. The network topology as well as the functional interactions between neurons are determined by appropriately setting the parameters &#948; i,q,m . In all our simulations we set &#964; 0 = 200 ms.</p><p>In a separate set of simulations (Fig <ref type="figure">5</ref>) spike trains were generated by means of a network of 4 integrate-and-fire units. This network was implemented in Matlab, from code publicly available on the Matworks website (<ref type="url">https://www.mathworks.com/matlabcentral/fileexchange/ 50339-easily-simulate-a-customizable-network-of-spiking-leaky-integrate-and-fire-neurons</ref>), which we changed in two ways. First, we modified the equation of the membrane potential so as to simulate, for simplicity, integrate-and-fire rather than leaky integrate-and-fire units. Second, in between spikes, we reset the spike generation threshold according to an exponential distribution so as to generate Poisson spike rates. This assumption is motivated by experimental studies showing that neuronal responses in many cortical areas follow a Poisson distribution (see, for example, <ref type="bibr">[28]</ref>). A random voltage threshold can be shown to be equivalent to the physiologically inevitable random noise present in neuronal input currents <ref type="bibr">[11]</ref>. In simulations shown in <ref type="bibr">Fig 10,</ref><ref type="bibr"/> after each spike, we set instead the spike generation threshold of the integrate-and-fire units to a constant value so as to generate perfectly regular spiking patterns.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>functions (C) and exogenous components (D) incorrectly detected by G-ETM. (EPS)</head></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>PLOS Computational Biology | https://doi.org/10.1371/journal.pcbi.1007675 January 25, 2021</p></note>
		</body>
		</text>
</TEI>
