38
Multiscale relevance and informative encoding in neuronal spike trains Ryan John Cubero 1,2,3,5,* , Matteo Marsili 2,4 , and Yasser Roudi 1 1 Kavli Institute for Systems Neuroscience and Centre for Neural Computation, Norwegian University of Science and Technology (NTNU), Olav Kyrres gate 9, 7030 Trondheim, Norway 2 The Abdus Salam International Center for Theoretical Physics, Strada Costiera 11, 34151 Trieste, Italy 3 Scuola Internazionale Superiore di Studi Avanzati, Via Bonomea 265, 34136 Trieste, Italy 4 Istituto Nazionale di Fisica Nucleare (INFN), Sezione di Trieste, Italy 5 Present address: IST Austria, Am Campus 1, 3400 Klosterneuburg, Austria * Corresponding author: [email protected] 19 December 2019 Abstract Neuronal responses to complex stimuli and tasks can encompass a wide range of time scales. Understanding these responses requires measures that characterize how the information on these response patterns are represented across multiple temporal resolutions. In this paper we propose a metric – which we call multiscale relevance (MSR) – to capture the dynamical variability of the activity of single neurons across different time scales. The MSR is a non-parametric, fully featureless indicator in that it uses only the time stamps of the firing activity without resorting to any a priori covariate or invoking any specific structure in the tuning curve for neural activity. When applied to neural data from the mEC and from the ADn and PoS regions of freely-behaving rodents, we found that neurons having low MSR tend to have low mutual information and low firing sparsity across the correlates that are believed to be encoded by the region of the brain where the recordings were made. In addition, neurons with high MSR contain significant information on spatial navigation and allow to decode spatial position or head direction as efficiently as those neurons whose firing activity has high mutual information with the covariate to be decoded and significantly better than the set of neurons with high local variations in their interspike intervals. Given these results, we propose that the MSR can be used as a measure to rank and select neurons for their information content without the need to appeal to any a priori covariate. 1 Introduction These words I wrote in such a way that a stranger does not know, You too, by way of generosity, read them in way that you know The Divan of Hafez 1 arXiv:1802.10354v2 [q-bio.NC] 20 Dec 2019

Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

Multiscale relevance and informative encoding inneuronal spike trains

Ryan John Cubero1,2,3,5,*, Matteo Marsili2,4, and Yasser Roudi1

1Kavli Institute for Systems Neuroscience and Centre for Neural Computation, Norwegian University ofScience and Technology (NTNU), Olav Kyrres gate 9, 7030 Trondheim, Norway

2The Abdus Salam International Center for Theoretical Physics, Strada Costiera 11, 34151 Trieste, Italy3Scuola Internazionale Superiore di Studi Avanzati, Via Bonomea 265, 34136 Trieste, Italy

4Istituto Nazionale di Fisica Nucleare (INFN), Sezione di Trieste, Italy5Present address: IST Austria, Am Campus 1, 3400 Klosterneuburg, Austria

*Corresponding author: [email protected]

19 December 2019

Abstract

Neuronal responses to complex stimuli and tasks can encompass a wide range oftime scales. Understanding these responses requires measures that characterize howthe information on these response patterns are represented across multiple temporalresolutions. In this paper we propose a metric – which we call multiscale relevance(MSR) – to capture the dynamical variability of the activity of single neurons acrossdifferent time scales. The MSR is a non-parametric, fully featureless indicator in that ituses only the time stamps of the firing activity without resorting to any a priori covariateor invoking any specific structure in the tuning curve for neural activity. When appliedto neural data from the mEC and from the ADn and PoS regions of freely-behavingrodents, we found that neurons having low MSR tend to have low mutual informationand low firing sparsity across the correlates that are believed to be encoded by theregion of the brain where the recordings were made. In addition, neurons with highMSR contain significant information on spatial navigation and allow to decode spatialposition or head direction as efficiently as those neurons whose firing activity has highmutual information with the covariate to be decoded and significantly better than the setof neurons with high local variations in their interspike intervals. Given these results,we propose that the MSR can be used as a measure to rank and select neurons for theirinformation content without the need to appeal to any a priori covariate.

1 Introduction

These words I wrote in such a waythat a stranger does not know,You too, by way of generosity,read them in way that you know

The Divan of Hafez

1

arX

iv:1

802.

1035

4v2

[q-

bio.

NC

] 2

0 D

ec 2

019

Page 2: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

Much of the progress in understanding how the brain processes information has beenmade by identifying firing patterns of individual neurons that correlate significantly with thevariations in the stimuli and the behaviors. These approaches have led to e.g. the discoveryof V1 cells in the primary visual cortex (Hubel and Wiesel, 1959), the A1 cells in the au-ditory cortex (Merzenich et al., 1975), the head direction cells in the anterodorsal nucleus(ADn) of the thalamus (Taube et al., 1990; Taube, 1995), the place cells in the hippocampus(O’Keefe and Dostrovsky, 1971) and more recently, the grid cells (Hafting et al., 2005) andspeed cells (Kropff et al., 2015) in the medial entorhinal cortex (mEC). Such and subsequentstudies have selected neurons based on imposed structural assumptions on the tuning profileof neurons with respect to an external correlate.

However, the organization of the brain is hardly this simple and intuitive. For instance,recent developments in understanding the spatial representation in the mEC have taught usthat such approaches has its limits: First, neurons may break the symmetries of the tuningcurves when representing navigational information through shearing (Stensola et al., 2015),field-to-field variability or simply by the constraints of the environment (Krupic et al., 2015).Second, the same neuron may respond to a combination of different behavioral covariates,such as position, head direction (HD) and speed in spatial navigation (Sargolini et al., 2006;Hardcastle et al., 2017). Finally, and most importantly, neurons may encode a particularbehavior in ways that are unknown to the experimenter and that are not related to covariatestypically used or to a priori features.

Under such circumstances, one can still make progress by focusing on the temporalstructure of neural firing. Variations present in the spikes offer neurons with a large capacityfor information transmission (Stein, 1967; Rieke et al., 1993; Stein et al., 2005). Recently,it has been shown that the variations found in the relative timing of spikes carry relevantand decodable information about the behavioral task, even when the neuron’s firing rate didnot increase upon stimulus presentation and decision onset (Insanally et al., 2019). Thesevariations, as captured, for example, by metrics describing the interspike intervals, have beenshown to be different for functionally distinct neurons in the cortex (Shinomoto et al., 2005,2003, 2009) and have been utilized to classify neurons in the subiculum (Sharp and Green,1994) and in the mEC (Latuske et al., 2015; Ebbesen et al., 2016). However, such measuresof variations are either very local or hardly take into account the temporal dependencies andtime scales of natural stimuli that lead or contribute to the activity of the neurons.

Here, we propose a novel non-parametric, model-free method for characterizing the dy-namical variability of neural spikes across different time scales and consequently, for se-lecting relevant neurons – i.e. neurons whose response patterns represent information aboutthe task or stimuli – that does not require knowledge of external correlates. This feature-less selection is done by identifying neurons that have broad and non-trivial distribution ofspike frequencies across a broad range of time scales. The proposed measure – called Mul-tiscale Relevance (MSR) – allows an experimenter to rank the neurons according to theirinformation content and relevance to the behavior probed in the experiment. The theoreticalarguments that lead to the definition of MSR are laid out in a number of recent publicationson efficient representations (Marsili et al., 2013; Haimovici and Marsili, 2015; Cubero et al.,2019); see also (Battistin et al., 2017) for a concise review of this theoretical work. Thesearguments have been shown to be useful in characterizing the efficiency of representationsin deep neuronal networks (Song et al., 2018) and in Minimum Description Length codes(Cubero et al., 2018), as well as for identifying relevant sites in proteins (Grigolon et al.,2016). The aim of this paper is to show that these arguments can also be used for studyingneural representations by applying it to real and synthetic neural data.

2

Page 3: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

We illustrate the method by applying it to data on spatial navigation of freely roamingrodents in Stensola et al. (2012) and Peyrache et al. (2015), that report the neural activi-ties of 65 neurons simultaneously recorded from the medial Entorhinal Cortex (mEC), andof 746 neurons in the Anterodorsal thalamic nucleus (ADn) and Post-Subiculum (PoS), re-spectively. In all cases, we find that neurons with low MSR also coincide with those thatcontain no information on covariates involved in navigation, but that the opposite is not true.We find that some neurons with high MSR also contain significant information for spatialnavigation, some relative to position, some to HD but often on both space and HD. Thesefindings corroborate the recent conjecture of multiplexed coding (Panzeri et al., 2010) bothin the mEC (Hardcastle et al., 2017), the thalamus (Mease et al., 2017) and the subiculum(Lederberger et al., 2018). We observe that MSR correlates to different degrees with differ-ent measures that have been introduced to characterize specific neurons. More specifically,we find strong correlation between MSR and measures of sparse representations of externalcorrelates. Furthermore, we show that the neurons in mEC with highest MSR have spikepatterns that allow a downstream decoder “neuron” to discern the organism’s state in the en-vironment. Indeed, the top most relevant neurons (RNs), according to MSR, decode spatialposition (or HD) just as well as the top most spatially (or HD) informative neurons (INs).In addition, we find that this decoding efficiency can not solely be due to local variationsin the interspike intervals (Shinomoto et al., 2005, 2003). Emphasizing again that the MSRdoes not rely on any information about space or HD and is calculated only from the timingon spikes, the correlation with spatial or HD information suggests a role for MSR as an un-supervised method for focusing on information-rich neurons without knowing a priori whatcovariate(s) those neurons represent.

2 Multiscale RelevanceConsider a neuron whose activity is observed up to a time tobs. This can be one of a pop-ulation of N simultaneously recorded neurons in the same experiment. The activity of thisneuron is recorded and stamped by the spike times {t1, . . . , tM} where t1 < t2 < . . . ≤tM ≤ tobs andM is the total number of observed spikes. By discretizing the time into T binsof duration ∆t, a spike count code, {k1, k2, . . . , kT}, can be constructed where ks denotesthe number of spikes recorded from the neuron in the sth time bin Bs = [(s − 1)∆t, s∆t)(s = 1, 2, . . . , T ).

Fixing ∆t allows us to probe the neural activity at a fixed time scale. Yet, rather thanusing ∆t to measure time resolution, we adopt an information theoretic measure, given by

H[s] = −T∑s=1

ksM

logMksM, (1)

where logM(·) = log(·)/ logM indicates logarithm base M (in units of Mats). Consideringks/M as the probability that the neuron fires in the bin Bs, this has the form of a Shannonentropy (Cover and Thomas, 2012). This corresponds to the amount of information that onegains on the timing of a randomly chosen spike by knowing the index s of the bin it belongsto1.

1With no prior knowledge, a spike can be any of the M possible spikes, so its a priori uncertainty is oflog2M bits. The information on which bin s the spike occurs, reduces the number of choices from M to ksand the uncertainty to log2 ks bits. Averaging the information gain logM− log ks over the a priori distribution

3

Page 4: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

We argue that H[s] provides an intrinsic measure of resolution, contrary to ∆t whichrefers to particular time scales that may vary across neurons. For example, there is a value∆t− such that for all ∆t ≤ ∆t−, all time bins either contain a single spike or none, i.e.ks = 0, 1 for all s. All these values of ∆t correspond to the same value of the intrinsicresolution H[s] = 1. Likewise, there may be a value ∆t+ such that for all ∆t ≥ ∆t+, allspikes of the neuron fall in the same bin. All ∆t ≥ ∆t+ then correspond to the same valueH[s] = 0 of the resolution, as defined here. In other words, H[s] captures resolution on ascale that is fixed by the available data.

Given a resolution H[s] (corresponding to a given ∆t), we can now turn to characterizethe dynamic response of the neuron. The only way in which the dynamic state of the neuronin bin s can be distinguished from that in bin s′ is by its activity. If the number of spikesin the two bins is the same (ks = ks′) there is no way to distinguish the dynamic stateof the neuron in the two bins, at that resolution2; see Cubero et al. (2019) for a generalargument underlying this statement. Therefore, one way to quantify the richness of thedynamic response of a neuron is to count the number of different dynamic states it undergoesin the course of the experiment. A proxy of this quantity is given by the variability of thespike frequency ks, that again can be measured in terms of an entropy

H[K] = −M∑k=1

kmk

MlogM

kmk

M. (2)

where mk indicates the number of time bins containing k spikes3, so that kmk/M is thefraction of spikes that fall in bins with ks = k. Again, rather than considering H[K] asa Shannon entropy of an underlying distribution pk ≈ kmk/M of spike frequencies, wetake H[K] as an information theoretic measure of the information each spike contains onthe dynamic state of the neuron at a given resolution4. Cubero et al. (2019) show thatH[K] provides an upper bound to the number of informative bits that the data containson the generative process. Also H[K] correlates with the number of parameters a modelwould require to describe properly the dataset, without overfitting (Haimovici and Marsili,2015). Hence, following Cubero et al. (2019), we shall call H[s] as resolution and H[K] asrelevance.

In the current context, the reason for this choice can be understood as follows. In agiven task or behavior, different neurons can have activities that are more or less related tothe behavioral or neuronal states that are being probed in the experiment. Neurons that arerelevant for encoding the animal’s behavior or task are expected to display rich dynamicalresponses, i.e. to have a large H[K]. On the contrary, neurons that are not involved in the

of spikes and dividing by logM , yields Eq. (1). It is also worth to stress that Eq. (1) does not refer to theestimate of the entropy of a hypothetical underlying distribution ps from which spikes are drawn. This wouldnot make much sense, because it is well-known that the naıve estimate of the Shannon entropy in Eq. (1)obtained with the maximum likelihood estimator ps = ks/M suffers from strong biases (Treves and Panzeri,1995; Strong et al., 1998).

2One may argue that, if the activity in the previous bins s − 1 and s′ − 1 differs considerably, then thedynamic state in bin s and s′ may also be considered different. We take the view that this distinction isautomatically taken into account when considering larger bins (i.e. ∆t→ 2∆t).

3mk satisfies the obvious relation∑Mk=0 kmk =

∑Ts=1 ks = M .

4Again, the knowledge of the associated dynamical state, i.e. the spike frequency k of the bin it belongs to,provides information to identify the timing of a spike by reducing the number of possible choices from M tokmk, which is the number of spikes in bins with the same dynamical state k. The information gain is given byH[K].

4

Page 5: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

animal’s behavior are expected to visit relatively fewer dynamic states, i.e. to have a lowerH[K].

Notice that for very small binning times ∆t ≤ ∆t− (when each time bins contains atmost one spike, i.e. mk=1 = M and mk′ = 0, ∀ k′ > 1) we find H[K] = 0 (and H[s] = 1).At the opposite extreme, when ∆t ≥ ∆t+ and H[s] = 0, we have all spikes in the same bin,i.e. mk = 0 for all k = 1, 2, . . . ,M − 1 and mM = 1. Therefore again we find H[K] = 0.Hence, no information on the relevance of the neuron can be extracted at time scales smallerthan ∆t− or larger than ∆t+. At intermediate scales ∆t ∈ [∆t−,∆t+], H[K] takes non-zero values that we take as a measure of the relevance of the neuron for the freely-behavinganimals being studied, at time scale ∆t.

0.0 0.2 0.4 0.6 0.8 1.0

H[s] (Mats)

0.0

0.1

0.2

0.3

0.4

0.5

H[k

](M

ats)

c

Grid Cell 7 (T02C01)Interneuron 8 (T02C02)

−50 0 50

−50

0

50

a Grid Cell 7 (T02C01)

1

2

3

4

5

6

−50 0 50

−50

0

50

b Interneuron 8 (T02C02)

2.5

5.0

7.5

10.0

12.5

15.0

17.5

20.0

FIGURE 1. Proof of concept of the MSR as a relative information content measure. The smoothedfiring rate maps of a grid cell (a) and an interneuron (b) in the mEC illustrates the spatial modulation ofneural activity. Panel c shows the curves traced by the grid cell (blue) and interneuron (red). Each point,(H[s], H[K]), in this curve corresponds to a fixed binning time, ∆t, with which we see the correspondingtemporal neural spike codes.

Yet, the relevant time scale ∆t for a neuronal response to a stimulus may not be knowna priori and/or the latter may evoke a dynamic response that spans multiple time scales. Forthis reason, we vary the binning time ∆t thereby inspecting multiple time scales with whichwe want to see the temporal code. As we vary ∆t, we can trace a curve in the H[s]-H[K]space for every neuron in the sample. Neurons with broad distributions of spike frequenciesacross different time scales will trace higher curves in this space and in turn, will cover largerareas under this curve (see Fig. 1c). Henceforth, we shall call the area under this curve asthe multiscale relevance (MSR),Rt. The relevant neurons (RNs), those with high values ofRt, are expected to exhibit spiking behaviors that can be well-discriminated by downstreamneural information processing units over short and long time scales and thus, are expected tobe relevant to the encoding of higher representations. On the theoretical note, Marsili et al.(2013) show that, for a given value of M and of the resolution H[s], data that are maximallyinformative on the generative process are those for which H[K] takes a maximal value. In

5

Page 6: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

the high resolution region (small ∆t or large H[s]), the frequency distributions that achievemaximal values of H[K] are broad. More precisely, the frequency distribution behaves asmk ∼ k−µ−1 where −µ is the slope of the H[K] − H[s] curve. Indeed, µ quantifies thetradeoff between resolution (H[s]) and relevance (H[K]) in the sense that a reduction inH[s] of one bit delivers an increase of µ bits in H[K] (Cubero et al., 2019).

MSR is designed to capture non-trivial structures in the spike train stemming from thevariations in spike rates. As such, it is expected to correlate with other measures character-izing temporal structure, such as bursty-ness and memory (Goh and Barabasi, 2008) and thecoefficient of local variation in the interspike interval (Shinomoto et al., 2005, 2003) (seeText S1 for details). We have observed that, in synthetic data with given characteristics,MSR captures both the bursty-ness and memory of a time series, and local variations inthe interspike intervals (see Fig. S1a,b and Text S1 for definition). In addition, we find, inboth synthetic and real data, a negative relation between MSR and spike frequency (i.e. M ),which is partly associated with bursty-ness. Finally, we performed extensive tests on syn-thetically generated time series to show that the MSR captures non-trivial structure inducedby the dependence of neural activity on external covariates (see Fig. S1g and the discussionon Fig. 6).

As a proof of concept of the MSR for featureless neural selection, we considered twoneurons recorded simultaneously from the medial entorhinal cortex (mEC) by Stensola et al.(2012) – a grid cell (T02C01) and an interneuron (T02C02) – both of which were measuredfrom the same tetrode and thus, are in close proximity in the brain region. The mEC and itsnearby brain regions are notable for neurons that exhibit spatially selective firing (e.g., gridcells and border cells) which provides the brain with a locational representation of the or-ganism and provides the hippocampus with its main cortical inputs. Grid cells have spatiallyselective firing behaviors that form a hexagonal pattern which spans the environment wherethe rat freely explores as in Fig. 1a. Apart from spatial information, grid cells can also beattuned to the HD especially in deeper layers of the mEC (Sargolini et al., 2006). These cellsaltogether provide the organism with an internal map which it then uses for navigation. Onthe other hand, interneurons, as in Figure 1b, are inhibitory neurons which are still importanttowards the formation of grid cell patterns (Couey et al., 2013; Pastoll et al., 2013; Roudiand Moser, 2014) but have much less spatially specific firing patterns. Intuitively, as themEC functions as a hub for memory and navigation, grid cells, which provide the brain witha representation of space, should be more relevant for a downstream information processing“neuron” (possibly the place cells in the hippocampus) in encoding higher representationscompared to interneurons. Indeed, the grid cell traces a higher curve in the H[s] − H[K]diagram of Fig. 1c, thus enclosing a larger area, as compared to the interneuron.

3 ResultsFollowing the observations in Fig. 1, we sought to characterize the temporal firing behaviorof the 65 neurons which were simultaneously recorded from the mEC and its nearby regionsof a freely-behaving rat as it explored a square area of length 150 cm (Stensola et al., 2012).This neural ensemble, as functionally categorized by Stensola et al. (2012), consisted of 23grid cells, 5 interneurons, 1 putative border cell and 36 unclassified neurons, some of whichhad highly spatially tuned firing and nearly hexagonal spatial firing patterns (Stensola et al.,2012; Dunn et al., 2015, 2017). This dataset was chosen among the multiple recordingsessions performed by Stensola et al. (2012) as this contained the most grid cells to be

6

Page 7: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

simultaneously recorded.These results were then corroborated by characterizing the temporal firing behaviors of

the 746 neurons which were recorded from multiple anterior thalamic nuclei areas, mainlythe anterodorsal (AD) nucleus, and subicular areas, mainly the post-subiculum (PoS) of 6different mice across 31 recording sessions while the mouse explored a rectangular areaof dimensions 53 cm × 46 cm (Peyrache et al., 2015). This data was chosen as theseheterogeneous neural ensembles contained a number of HD cells which are neurons thatare highly attuned to HD.

Before showing the results on these data sets, we note that the the MSR is a robustmeasure. To establish this, we compared the MSRs computed using only the first half of thedata to that computed from the second half. We obtained very similar results, confirmingthat the MSR is a reliable measure that can be used to score neurons (see Fig. S2a).

3.1 MSR captures information on functionally relevant external corre-lates.

As the mEC is crucial to spatial navigation, we sought to find whether the wide variationsof neural firing as captured by the MSR would contribute towards a representation of theanimal’s spatial organization, in one way or another. Different measures relating the spatialposition, x, with neural activity had been employed in the literature to characterize spatiallyspecific neural discharges, like the Skaggs-McNaughton spatial information, I(s,x) definedin Eq. (7) and by Skaggs et al. (1993), spatial sparsity measure, spx defined in Eq. (9) andby Skaggs et al. (1996) and Buetfering et al. (2014) and grid score, g, defined in Eq. (10)and by Sargolini et al. (2006), Dunn et al. (2017), Solstad et al. (2008) and Langston et al.(2010).

Apart from spatial location, HD also plays a crucial role in spatial navigation. The meanvector length, R (Eq. (11) in Section 5.4) is commonly used as a measure of HD selectivityof the activity of neurons. However, this measure assumes that there is only one preferredHD in which a given neuron is tuned to. Hence, we calculated two measures – the HDinformation, I(s, θ), and HD sparsity, spθ – inspired by the spatial information and spatialsparsity to quantify the information and selectivity of neural firing to HD respectively. Thesemeasures ought to detect non-trivial and multimodal HD tuning which may also be importantin representing HD in the brain (Hardcastle et al., 2017).

Fig. 2 reports the spatial information (a) and the HD information (c) as a function of theMSR for each neuron in the mEC data. Figs. 2b and d report the spatial firing rate maps andHD tuning curves for the top five RNs (left panel) and non-RNs (right panel) by MSR score,respectively (See also Figs. S4 and S5). We observed that non-RNs had very non-specificspatial and HD discharges as indicated by their sparsity scores (Figs. 2b and d, Figs. S4 andS5) whereas RNs had a broader range of spatial and HD sparsity (Figs. 2b and e, Figs. S4and S5).

While we have observed that the MSR has a negative relation with the spike frequency(i.e. M ), an analysis of the residual MSR revealed that the logarithm of the spike frequency(i.e., logM ) could not explain all of the variations in the MSR for the neurons in the mEC.We have seen that the residual MSRs (with respect to logM ) appeared to be correlated withspatial and HD information (see Figs. S2b-d).

Although local variations in the interspike intervals, as measured by LV , could still cap-ture spatial and HD information (see Figs. S3a and b, respectively), we observed that thestrength of correlation was stronger for MSR than for LV . While there is a positive corre-

7

Page 8: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

0.26 0.27 0.28 0.29 0.30

multiscale relevance, Rt (Mats2)

0.0

0.2

0.4

0.6

0.8

1.0

1.2

1.4

1.6

spat

iali

nfor

mat

ion,I(s,x

)(b

itspe

rspi

ke)

ρp = 0.738, P < 0.001ρs = 0.825, P < 0.001

a

Neuron 45Neuron 56

Neuron 47

Neuron 35

Neuron 3Neuron 6

Grid cell 40

Grid cell 7

Neuron 4Neuron 34

Grid cell 41Grid cell 61Grid cell 42

grid cellsinterneuronsborder cellother neurons

spx = 0.723max: 5.2 Hzmin: 0.0 Hz

Neuron 47

spx = 0.561max: 11.4 Hzmin: 0.0 Hz

Neuron 3

spx = 0.699max: 6.6 Hzmin: 0.0 Hz

Neuron 35

spx = 0.614max: 11.5 Hzmin: 0.0 Hz

Neuron 6

spx = 0.658max: 5.2 Hzmin: 0.0 Hz

Neuron 48

spx = 0.026max: 58.9 Hzmin: 3.5 Hz

Interneuron 8

spx = 0.021max: 20.7 Hzmin: 1.8 Hz

Neuron 54

spx = 0.032max: 50.0 Hzmin: 2.8 Hz

Interneuron 16

spx = 0.031max: 33.4 Hzmin: 1.8 Hz

Interneuron 12

spx = 0.092max: 16.5 Hzmin: 0.9 Hz

b

RNs non-RNs

Grid Cell 42

0.26 0.27 0.28 0.29 0.30

multiscale relevance, Rt (Mats2)

0.0

0.2

0.4

0.6

0.8

HD

info

rmat

ion,I(s,θ

)(b

itspe

rspi

ke)

Neuron 45Neuron 56

Neuron 47

Neuron 35

Neuron 3

Neuron 6

Grid cell 40

Grid cell 7Neuron 4 Neuron 34Grid cell 41Grid cell 61Grid cell 42

ρp = 0.460, P < 0.001ρs = 0.755, P < 0.001

cgrid cellsinterneuronsborder cellother neurons

spθ = 0.562max: 1.7 Hzmin: 0.0 Hz

Neuron 47

spθ = 0.180max: 2.3 Hzmin: 0.4 Hz

Neuron 3

spθ = 0.499max: 2.7 Hzmin: 0.2 Hz

Neuron 35

spθ = 0.159max: 1.8 Hzmin: 0.1 Hz

Neuron 6

spθ = 0.536max: 1.5 Hzmin: 0.0 Hz

Neuron 48

spθ = 0.007max: 34.2 Hzmin: 24.7 Hz

Interneuron 8

spθ = 0.011max: 12.7 Hzmin: 8.8 Hz

Neuron 54

spθ = 0.021max: 38.3 Hzmin: 23.8 Hz

Interneuron 16

spθ = 0.015max: 27.2 Hzmin: 16.9 Hz

Interneuron 12

spθ = 0.017max: 11.8 Hzmin: 6.4 Hz

d

RNs non-RNs

Grid Cell 42

FIGURE 2. The MSR identified neurons that are spatially and head directionally informative. A scatterplot of the MSR vs. the spatial (HD) information is shown in a (c). The shapes of the scatter points indicatethe identity of the neuron according to Stensola et al. (2012). The linearity and monotonicity of the multiscalerelevance and the information measures were assessed by the Pearson’s correlation, ρp, and the Spearman’scorrelation, ρs, respectively. Information bias was measured by a bootstrapping method, i.e., calculating theaverage of the spatial or head directional information of 1000 randomized spike trains. The spatial firing ratemaps (HD tuning curves) of the 5 most relevant neurons (RNs) and the 5 most irrelevant neurons (non-RNs)are shown together in panel b (d) together with the calculated spatial sparsity, spx, (HD sparsity, spθ) andmaximum and minimum firing.

lation between LV and the MSR (see Fig. S2e), we found that local variations could notexplain what is captured by the MSR. In addition, the residual MSRs (with respect to LV )were observed to still be correlated with spatial or HD information (see Figs. S2f and g).

We found that (i) Neurons with high spatial information or high HD information alsohad high MSR, but the converse was not true. While there were highly RNs that respondedexquisitely to space (grid cells 7 and 40) or HD (neurons 45 and 56) alone, the majority (e.g.neurons 35 and 47) encoded significantly both spatial and HD information. Secondly, wefound that ii) Neurons with low MSR had both low spatial and low HD information (Figs.2b and d, right panel), but again, the converse was not true (e.g. neurons 4 and 34). Finallyiii) we found that some neurons, for example, neurons 3 and 6, despite having some spatialand HD sparsity as indicated in their rate maps (Figs. 2b and d, left panel), had relatively

8

Page 9: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

low spatial and HD information but were both identified to be RNs by MSR. This high MSRsuggests that perhaps these neurons responded to other correlates involved in navigationdifferent from spatial location or HD.

0.262 0.270 0.278 0.286 0.294 0.302multiscale relevance, Rt (Mats2)

−0.2

0.0

0.2

0.4

0.6

0.8

n = 6 n = 9 n = 11 n = 17 n = 22

agrid score, gρp = 0.124, P = 0.323ρs = 0.092, P = 0.468

mean vector length, Rρp = 0.298, P = 0.016ρs = 0.247, P = 0.047

0.262 0.270 0.278 0.286 0.294 0.302multiscale relevance, Rt (Mats2)

0.0

0.2

0.4

0.6

0.8

n = 6 n = 9 n = 11 n = 17 n = 22

bspatial sparsity, spxρp = 0.868, P < 0.001ρs = 0.850, P < 0.001HD sparsity, spθρp = 0.597, P < 0.001ρs = 0.765, P < 0.001

FIGURE 3. The MSR identified neurons with spatially and head directionally selective discharges. Barplots depict the mean (height of the bar) along with the standard deviation (black error bars) of the grid score(red) and Rayleigh mean vector length (yellow) in panel a, and the spatial sparsity (orange) and HD sparsity(purple) in panel b for each neuron in the mEC within the relevance range as indicated. The relevance rangewas determined by equally dividing the range of the calculated MSR into 5 equal parts. The number of neuronswhose MSRs fall within a relevance range is indicated below each bar. The linearity and monotonicity betweenthe MSR and the different spatial and HD quantities were quantified using the Pearson’s correlation, ρp, andthe Spearman’s correlation, ρs, respectively.

Many of the grid cells were spotted as RNs, but not all. For example, grid cells 41,42 and 61, that had a significant grid score, had a low MSR and a low spatial information.This indicated that different measures correlate differently with MSR. Fig. 3 reports thedistribution of the other four measures analyzed in this study conditional to different levelsof MSR. Fig. 3a shows that grid score maintains a large variation across all scales of theMSR, with a moderate increase in its average. A similar behavior was observed in Fig.3a for the mean vector length. The converse is also true. For example, grid cells 33 and41 have the same grid score but very different value of the MSR and of the spatial andHD information. A closer inspection of their rate maps (see Fig. S4) substantiates thesedifferences5. The H[s]−H[K] curve for neuron 33 stays above the one for neuron 41 at allvalues of H[s] (see Fig. S9a). High MSR neurons have very similar H[s] − H[K] curves,which saturate maximal achievable H[K] (Cubero et al., 2019), whereas low MSR neuronsdiffer in characteristic ways. In particular, most of the interneurons feature the same linearH[s] − H[K] relation over an extended range of H[s] shown in Fig. 1c for interneuron 8(see Fig. S9d).

Spatial sparsity and HD sparsity, instead, exhibit a significant correlation with the MSRas seen in Fig. 3b. The observation that RNs with highly sparse firing may have either lowmean vector lengths or low grid scores was an indication that a non-trivial variabilities infiring behaviors does not necessarily obey the imposed symmetries of the tuning curves.

Following the observations in the mEC, we turned to other regions in the brain – thethalamus – to check whether the non-trivial variability revealed by the MSR in the neural

5Grid cell 41 has a higher firing rate, but also the residual MSR wrt to logM is significantly negative.

9

Page 10: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

spiking, captured functionally relevant external correlates. To this, we analyzed the neuronsin the ADn and PoS areas of freely behaving and navigating rodents. These regions areknown to contain cells that robustly fire when the animal’s head is facing a specific direction(Taube et al., 1990; Taube, 1995) and is believed to be crucial to the formation of grid cellsin the mEC (Sargolini et al., 2006; Langston et al., 2010; McNaughton et al., 2006). Thus,we sought to find whether the variability as measured by the MSR contains signals of HDtuning. We observed that, in all of the 6 mice that were analyzed, the neurons having HDspecific firing, i.e., neurons having high HD sparsity and high mean vector lengths, wereRNs (see Fig. S6). Focusing on a subset of neurons of Mouse 12 (in Fig. S6a) that weresimultaneously recorded in a single session (Session 120806), we observed, as in Figs. 4a,b,that HD attuned neurons were RNs. However, the HD alone may not explain the structure ofthe spike frequencies of these neurons (Peyrache et al., 2017). Hence, we also sought to findwhether some of these neurons are spatially tuned. As seen in Figs. 4d,e, we found that someof the RNs were also modulated by the spatial location of the mouse. These results werealso consistent for a subset of neurons of Mouse 28 (in Fig. S6f) that were simultaneouslyrecorded in a single session (Session 140313) as in Fig. 5.

To assess whether the variations in the spike frequencies, as characterized by the MSR,contained information about external stimuli relevant to navigation, we generated synthetictime series from idealized HD cells and found that neurons with a sharper HD tuning curveshave both higher mutual information and higher MSR (see Fig. S1g). Following this ob-servation, we resampled the spike count code of the neurons in the mEC such that onlyspatial information, or only HD information, or both spatial and HD information were in-corporated. This resampling of the neural spiking was done by generating synthetic spikesassuming a non-homogeneous Poisson spiking with rates taken from the computed spatialfiring rate maps and HD tuning curves (see Section 5.5). These assumptions were able toapproximately recover the original rate maps as seen in Figs. 6b and c. Here, we focusedour attention on mEC Neuron 47 in the mEC data which had the highest MSR and also hadboth high spatial and high HD information. However, the same observation can be appliedto other neurons that had both high spatial and HD information.

By resampling solely the spatial firing rate map as in Fig. 6d, we saw a decrease in theMSR despite having as much spatial information as the original code. When HD informationwas incorporated into the resampled spike frequencies, assuming the factorization of thefiring probabilities due to position and HD, we observed an increase in the MSR for Neuron47, almost up to the MSR for the original code. Such increase reveals the additional structureadded onto the spiking activity of the resampled neuron. These findings support the idea thatthe temporal structure of the spike counts of the neuron, as measured by the MSR, comefrom its tuning profiles for both position and HD.

We also assessed which cells among the neurons in the mEC have MSRs that could beexplained well by the spatial information and thus, were highly spatially attuned. We resam-pled the spatial firing rate maps of each of the neurons in the mEC data (see Section 5.5).The absolute difference between the original and resampled MSR, Roriginal

t − Rresampledt ,

was then computed from the resampled spikes. When the variations in the spike frequenciescould be explained by the spatial firing fields, we expected this difference to be close tozero. As seen in Fig. 6e, we found that neurons having either high spatial (Fig. 6e) or HD(Fig. 6f) information tended to have a value of the differential MSR Roriginal

t − Rresampledt

close to zero. We also observed that most of the neurons having low differential MSRs weregrid cells. The same observations could be drawn when resampling the HD tuning curves ofeach of the neurons in the mEC data. In particular, we also found that neurons having high

10

Page 11: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

0.26 0.28 0.30

multiscale relevance, Rt (Mats2)

0.00

0.25

0.50

0.75

1.00

1.25

1.50

1.75

2.00H

Din

form

atio

n,I(s,θ

)(b

itspe

rspi

ke)

aNon-ADn neuronsADn neurons

0.26 0.28 0.30

multiscale relevance, Rt (Mats2)

0.0

0.2

0.4

0.6

0.8

1.0

HD

spar

sity

,spθ

bNon-ADn neuronsADn neurons

spθ = 0.134max: 0.5 Hzmin: 0.1 Hz

ADn 47

spθ = 0.036max: 4.3 Hzmin: 2.0 Hz

ADn 8

spθ = 0.639max: 44.1 Hzmin: 0.9 Hz

ADn 24

spθ = 0.807max: 3.3 Hzmin: 0.0 Hz

ADn 37

spθ = 0.739max: 12.9 Hzmin: 0.0 Hz

ADn 30

spθ = 0.004max: 40.1 Hzmin: 32.2 Hz

ADn 10

spθ = 0.006max: 24.8 Hzmin: 19.0 Hz

ADn 52

spθ = 0.009max: 112.6 Hzmin: 83.8 Hz

ADn 1

spθ = 0.018max: 27.3 Hzmin: 16.9 Hz

ADn 17

spθ = 0.011max: 10.2 Hzmin: 7.1 Hz

c

ADn RNs ADn non-RNs

ADn 13

0.26 0.28 0.30

multiscale relevance, Rt (Mats2)

0.00

0.05

0.10

0.15

0.20

0.25

spat

iali

nfor

mat

ion,I(s,x

)(b

itspe

rspi

ke)

d

Non-ADn neuronsADn neurons

0.26 0.28 0.30

multiscale relevance, Rt (Mats2)

0.00

0.05

0.10

0.15

0.20

0.25

0.30

0.35

0.40

spat

ials

pars

ity,s

xe

Non-ADn neuronsADn neurons

spx = 0.027max: 2.2 Hzmin: 0.0 Hz

ADn 47

spx = 0.057max: 20.2 Hzmin: 4.3 Hz

ADn 8

spx = 0.063max: 52.8 Hzmin: 4.8 Hz

ADn 24

spx = 0.061max: 4.8 Hzmin: 0.1 Hz

ADn 37

spx = 0.115max: 29.6 Hzmin: 0.2 Hz

ADn 30

spx = 0.001max: 110.4 Hzmin: 55.9 Hz

ADn 10

spx = 0.003max: 78.6 Hzmin: 26.7 Hz

ADn 52

spx = 0.005max: 320.0 Hzmin: 159.4 Hz

ADn 1

spx = 0.007max: 79.0 Hzmin: 30.2 Hz

ADn 17

spx = 0.002max: 31.0 Hzmin: 9.0 Hz

f

ADn RNs ADn non-RNs

ADn 13

FIGURE 4. MSR of neurons from the anterodorsal thalamic nucleus (ADn) of Mouse 12 from a singlerecording session (Session 120806). A scatter plot of the multiscale relevance vs. the HD (spatial) informationis shown in a (d). This plot is supplemented by a scatter plot between the MSR and HD (spatial) sparsity shownin b (e). The sizes of the scatter points reflect the mean vector length of the neural activity where the largerscatter points correspond to a sharp preferential firing to a single direction. The HD tuning curves (spatialfiring rate maps) of the 5 most relevant neurons (RNs) and the 5 most irrelevant neurons (non-RNs) are showntogether in panel c (f) together with the calculated HD sparsity, spθ, (spatial sparsity, spx) and maximum andminimum firing.

HD information had differential MSRs close to zero as in Fig. 6f.Taken altogether, these results suggest that the MSR can be used to identify the inter-

esting neurons in a heterogeneous ensemble. The proposed measure is able to capture thenon-trivial spike frequency distribution across multiple scales whose structure is highly in-fluenced by external correlates that modulate the neural activity. Indeed, these analysesshow that the MSR is able to capture information content of the neural spike code.

3.2 Relevant neurons decode the external correlates as efficiently asinformative neurons.

We found in the previous section that neurons with low MSR had low spatial or HD infor-mation while higher MSR could indicate low or high values of spatial or HD information.In this section, we show that despite this, high MSR can still be used to select neurons thatdecode position or HD well. In other words, although high MSR can imply low spatial or

11

Page 12: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

0.26 0.28 0.30

multiscale relevance, Rt (Mats2)

0.00

0.25

0.50

0.75

1.00

1.25

1.50

1.75H

Din

form

atio

n,I(s,θ

)(b

itspe

rspi

ke)

aPoS neuronsADn neurons

0.26 0.28 0.30

multiscale relevance, Rt (Mats2)

0.0

0.2

0.4

0.6

0.8

HD

spar

sity

,spθ

bPoS neuronsADn neurons

spθ = 0.756max: 10.5 Hzmin: 0.1 Hz

PoS 45

spθ = 0.231max: 2.4 Hzmin: 0.3 Hz

PoS 35

spθ = 0.722max: 2.8 Hzmin: 0.0 Hz

PoS 26

spθ = 0.551max: 4.1 Hzmin: 0.1 Hz

PoS 7

spθ = 0.785max: 9.7 Hzmin: 0.0 Hz

ADn 77

spθ = 0.004max: 55.3 Hzmin: 41.8 Hz

PoS 51

spθ = 0.011max: 10.9 Hzmin: 7.4 Hz

ADn 79

spθ = 0.003max: 131.7 Hzmin: 107.0 Hz

PoS 42

spθ = 0.004max: 63.6 Hzmin: 50.7 Hz

PoS 14

spθ = 0.021max: 86.1 Hzmin: 51.9 Hz

c

ADn/PoS RNs ADn/PoS non-RNs

ADn 54

0.26 0.28 0.30

multiscale relevance, Rt (Mats2)

0.00

0.05

0.10

0.15

0.20

0.25

0.30

spat

iali

nfor

mat

ion,I(s,x

)(b

itspe

rspi

ke)

d

PoS neuronsADn neurons

0.26 0.28 0.30

multiscale relevance, Rt (Mats2)

0.00

0.05

0.10

0.15

0.20

0.25

0.30

0.35

0.40

spat

ials

pars

ity,s

xe

PoS neuronsADn neurons

spx = 0.096max: 12.6 Hzmin: 0.0 Hz

PoS 45

spx = 0.032max: 5.3 Hzmin: 0.0 Hz

PoS 35

spx = 0.238max: 15.3 Hzmin: 0.0 Hz

PoS 26

spx = 0.077max: 15.6 Hzmin: 0.0 Hz

PoS 7

spx = 0.307max: 22.9 Hzmin: 0.0 Hz

ADn 77

spx = 0.002max: 134.7 Hzmin: 3.0 Hz

PoS 51

spx = 0.000max: 30.5 Hzmin: 0.8 Hz

ADn 79

spx = 0.002max: 318.3 Hzmin: 5.0 Hz

PoS 42

spx = 0.007max: 164.9 Hzmin: 1.2 Hz

PoS 14

spx = 0.001max: 195.2 Hzmin: 3.0 Hz

f

ADn/PoS RNs ADn/PoS non-RNs

ADn 54

FIGURE 5. MSR of neurons from the anterodorsal thalamic nucleus (ADn) and post-subiculum (PoS) ofMouse 28 from a single recording session (Session 140313). A scatter plot of the MSR vs. the HD (spatial)information is shown in a (d). This plot is supplemented by a scatter plot between the MSR and HD (spatial)sparsity shown in b (e). The sizes of the scatter points reflect the mean vector length of the neural activitywhere the larger scatter points correspond to putative head direction cells while the shapes of the scatter pointsindicate the region where the neuron units were recorded from Peyrache et al. (2015) and Peyrache and Buzsaki(2015). The HD tuning curves (spatial firing rate maps) of the 5 most relevant neurons (RNs) and the 5 mostirrelevant neurons (non-RNs) are shown together in panel c (f) together with the calculated HD sparsity, spθ,(spatial sparsity, spx) and maximum and minimum firing.

HD information, in terms of population decoding, the highly RNs (selected based on onlyspike frequencies) performs equally well compared to the highly informative neurons (INs,selected using the knowledge of the external covariate).

To understand whether MSR could identify neurons in mEC whose firing activity allowsthe animal to identify its position, we compared the decoding efficiency of the 20 neuronswith the highest MSR (top RNs) with that of the 20 neurons with the highest spatial infor-mation (top spatial INs) wherein the two sets overlap on 14 neurons (see Fig. S7a).

To this end, we employed a Bayesian approach to positional decoding wherein the esti-mated position at the j th time bin, xj , is determined by the position, xj , which maximizes ana posteriori distribution, p(xj|sj), conditioned on the spike pattern, sj , of a neural ensemblewithin the j th time bin i.e.,

xj = arg maxxj

p(xj|sj) = arg maxxj

p(sj|xj)p(xj) (3)

12

Page 13: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

−50 0 50

−50

0

50

a Original ratemap

0.00.51.01.52.02.53.0 1

−50 0 50

−50

0

50

b Resampled ratemap, p(s) = λ(x)∆t

0.00.51.01.52.02.53.03.5

0.5

−50 0 50

−50

0

50

c Resampled ratemap, p(s) = λ(x)λ(θ)∆t

0.00.20.40.60.81.01.21.4

0.25

0.50

OriginalRatemap

ResampledRatemap

ResampledRatemap

0.26

0.28

0.30

MS

R

λ(x)∆t λ(x)λ(θ)∆t

d

−0.005 0.000 0.005 0.010 0.015 0.020 0.025

differential MSR, Roriginalt −Rresampled

t

0.00

0.25

0.50

0.75

1.00

1.25

1.50

spat

iali

nfor

mat

ion,I(s,x

)(b

itspe

rspi

ke)

e

grid cellsinterneuronsborder cellother neurons

0.00 0.01 0.02 0.03 0.04

differential MSR, Roriginalt −Rresampled

t

0.0

0.2

0.4

0.6

0.8

HD

info

rmat

ion,I(s,θ

)(b

itspe

rspi

ke)

f

grid cellsinterneuronsborder cellother neurons

FIGURE 6. The MSR is a measure of information content of the neural activity. Resampling the firing ratemap using spatial position only or in combination with HD resulted to a firing activity that closely resembledthe actual firing pattern of mEC Neuron 47. Compared to the original firing rate maps in a, the spatial (leftpanels) and HD (right panels) firing rate maps were recovered by the resampling procedure in b and c. Theresult for a single realization of the resampling procedure is shown. (d) Bar plots show the MSR calculatedfrom the original spiking activity of the neuron and the resampled rate maps. The mean and standard devi-ation of 100 realizations of the resampling procedure is reported. Scatter plot between the difference of theMSRs of the original spikes and of the synthetic spikes, resampled using only positional information (only HDinformation), for each neuron and the spatial information is shown in e (f).

where the last term is due to Bayes rule, p(sj|xj) is the likelihood of a spike pattern, sj ,given the position, xj , which depends on a given neuron model and p(xj) is the positionaloccupation probability which can be estimated directly from the data. Fig. 7a shows that thetop RNs decoded just as efficient as the top spatial INs. It can also be observed that the topRNs decode the positions better than the ensemble composed solely of grid cells.

Because of the sizable overlap between the top RNs and the top spatial INs, one mightargue that much of the spatial information needed for positional decoding is concentrated onthe neurons in the overlap (ONs). To address this, we randomly selected 6 neurons amongthe mEC neurons outside the overlap and, together with the 14 ONs, decoded for the po-sition as done above. If the positional decoding information is contained in the ONs, thenwe should observe the same decoding efficiency as either the top RNs or top spatial INs.However, we found that the decoding efficiency of the ONs decreased (see Fig. S7d). Wealso found that for the decoded positions within 5 cm from the true position, the decoding

13

Page 14: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

0 50 100 150 200x (cm)

0.0

0.2

0.4

0.6

0.8

1.0

P(|

|X−Xtrue

|| ≤

x)

a

Top 20 Relevant NeuronsTop 20 Spatially Informative NeuronsBottom 20 Relevant NeuronsBottom 20 Spatially Informative NeuronsGrid Cells Only

0 50 100 150 200 250 300 350

θ (deg)

0.2

0.4

0.6

0.8

1.0

P(|

|θ−θ true

|| ≤θ)

b

Top 30 Relevant NeuronsTop 30 HD Informative Neurons30 Random Neurons

0 50 100 150 200 250 300 350

θ (deg)

0.2

0.4

0.6

0.8

1.0

P(|

|θ−θ true

|| ≤θ)

c

Top 30 (ADn) Relevant Neuronsand HD Informative Neurons

Top 30 (PoS) Relevant NeuronsTop 30 (PoS) HD Informative Neurons30 Random Neurons (ADn and PoS)

x−60−40−20 0 20 40 60

y−60−40−20

0204060

p(x |s)

0.0000.0090.0170.0260.0350.0440.0520.0610.0700.079

0.0000.0050.0100.0150.0200.0250.0300.035

Mouse 12 (Session 120806)

Mouse 28 (Session 140313)

FIGURE 7. Positional decoding of RNs and INs in the mEC and HD decoding of the RNs and INs in theADn of Mouse 12 and the ADn and PoS of Mouse 28 under a single recording session. Panel a shows thecumulative distribution of the decoding error, ‖X−Xtrue‖, for the RNs (solid violet squares) and spatially INs(solid yellow stars) neurons as well as for the non-RNs (dashed violet squares) and non-INs (dashed yellowstars). Spatial decoding was also performed for the 27 grid cells in the mEC data (solid orange triangles).The low positional decoding efficiency at some time points can be traced to the posterior distribution, p(x|s),of the rat’s position given the neural responses which exhibited multiple peaks as shown in the inset surfaceplot. For this particular example, the true position was found close to the maximal point of the surface plotas indicated by the arrows although such was not always the case. Panel b depicts the cumulative distributionof the decoding errors of the 30 RNs (violet squares) and 30 HD INs (yellow stars) in the ADn of Mouse12 in Session 120806. The mean and standard errors of the cumulative distribution of decoding errors of30 randomly selected ADn neuron (n = 1000 realizations) are shown in grey. On the other hand, panel cdepicts the cumulative decoding error distribution of the 30 RNs (violet squares) and 30 HD INs in the ADn(yellow crosses) and PoS (yellow circles) of Mouse 28 in Session 140313. The mean and standard errorsof the cumulative distribution of decoding errors of 30 randomly selected ADn or PoS neuron (n = 1000realizations) are shown in grey. As the random selection included neurons from the ADn, which contain a purehead directional information and can decode the positions better than the neurons in the PoS, the decodingerrors from the 30 randomly selected neurons were, on average, comparable to that of the relevant or headdirectionally informative PoS neurons. In all the decoding procedures, time points where all the neurons in theensemble was silent were discarded in the decoding process.

efficiency of the top RNs were up to 4σ from the mean decoding efficiency of the ONs, asmeasured by the z-score compared to that of the top spatial INs which was at around 2σ.This indicates that the 6 RNs outside the overlap provide better decodable spatial represen-tation than those of the 6 spatial INs.

14

Page 15: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

Because local variations in the interspike intervals of the neurons in the mEC corre-lated with spatial information, we sought to find whether neurons with high local variations(LVNs) also contained decodable spatial representation. We took the top 20 LVNs in themEC and decoded for the position as done above. We found that the decoding efficiency oftop LVNs are much lower compared to top RNs (see Fig. S3c). This indicates that the reper-toire of responses coming from local variations in the interspike intervals of mEC neuronsalone can not represent space in freely-behaving rats.

To substantiate the decoding results obtained for neurons in the mEC, we also took theADn RNs and the HD INs in the of Mouse 12 (Session 120806) in Fig. 4 to decode for HD.Mouse 12 was chosen as this animal had the most HD cells recorded among the mice thatonly had recordings in the ADn (Peyrache and Buzsaki, 2015). In particular, we looked atthe HD decoding at longer time scales (in this case, ∆t = 100 ms), where we could modelthe neural activity using a Poisson distribution, p(nj|θj) similar to that in Eq. (15). Bayesiandecoding adopts an equation

θj = arg maxθj

p(θj|nj) = arg maxθj

p(nj|θj)p(θj) (4)

similar to Eq. (3) to estimate the decoded HD, θj , where p(θj) is the HD occupation asestimated from the data. We compared the decoding efficiency of the 30 RNs with the 30HD INs which had 22 neurons that are relevant (see Fig. S3b). We also compared thedecoding efficiencies of the ADn RNs or HD INs with 30 randomly selected ADn neurons(n = 1000 realizations). As seen in Fig. 7b, the RNs decoded just as well as the neuralpopulation composed of HD INs. Furthermore, the decoding efficiency of the RNs wereobserved to be far better than the decoding efficiency of a random selection of neurons inthe ensemble.

We also compared the decoding efficiency of the ADn and PoS neurons from Mouse 28(Session 140313) which had the most HD cells recorded among the mice that had recordingsin both ADn and PoS (Peyrache and Buzsaki, 2015) as in Fig. 5. As seen in Fig. 7c,neurons in the ADn decoded the HD more efficiently than the neurons in the PoS. Theseresults are consistent with the notion that the ADn contains pure HD modulation whichallow for neurons in the ADn to better predict the mouses HD compared to the neurons inthe PoS which contain, instead, true spatial information (Peyrache et al., 2015, 2017). Forthe neurons in Mouse 28 (Session 140313), it had to be noted that the 30 ADn RNs alsohappened to be the 30 ADn HD INs (see Fig. S7c). On the other hand, among the 30 PoSRNs, 23 were HD INs (also see Fig. S7c). We observed that the PoS RNs decode just asefficient as the PoS HD INs consistent with the findings for Mouse 12 (Session 120806).

Taken altogether, despite being blind to the rat’s position and of the mouse’s HD, theMSR is able to capture neurons that can decode the position and HD just as well as thespatial INs and as the HD INs.

4 DiscussionHafez wrote the Divan in a manner that the interpretation is left purely to the reader. In thispresent work, we take inspiration from the Divan by analysing a complex data in a feature-less manner such that the data is allowed to speak for what is important in it. In particular,we introduced a novel, parameter-free and fully featureless method – which we called mul-tiscale relevance (MSR) – to characterize the temporal structure of the activities of neurons

15

Page 16: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

within a heterogeneous population. We have shown that the neurons showing persistentlybroad spike frequency distributions across a wide range of time scales, as measured by theMSR, typically carry information about the external correlates related to the behavior of theobserved animal. By analyzing the neurons in the mEC and nearby brain regions and theneurons in the ADn and PoS – areas in the brain that are pertinent to spatial navigation –we showed that the RNs in these regions have firing behaviors that are selective for spatiallocation and HD. Here, we found that in many cases, the neurons that display broad spikedistributions tend to have conjugated representations in that they exhibit high mutual infor-mation with multiple behavioral features. These findings are consistent with those observedexperimentally by Sargolini et al. (2006) and statistically by Hardcastle et al. (2017).

The fact that the MSR can be used to select informative neurons as well as neurons thatshow high decoding performance is consistent with the expectation that the information car-ried by the activity of a given neuron is encapsulated in the sole spike activity – the onlyinformation available to downstream neurons – to decode a representation of the featurespace. This suggests that relevant neurons should feature a rich variety of long-ranged sta-tistical patterns of the spike activity. This, in turn, results in broad frequency distributionsat different time-scales, which are quantified by the relevance H[K], as discussed in Cuberoet al. (2019). Hence, at a given resolution, as defined in Eq. (1), we estimate the complexityof the temporal code by the relevance defined in Eq. (2). Since natural and dynamic stimuliand behaviors often operate on multiple time scales, the MSR integrates over different res-olution scales, thus allowing us to spot neurons exhibiting persistent non-trivial spike codesacross a broad range of time scales.

Broad distributions of spike frequencies, characterized by a high MSR, exhibit a stochas-tic variablility that requires richer parametric models (Haimovici and Marsili, 2015). In adecoding perspective, these non-trivial distributions afford a higher degree of distinguisha-bility of neural responses to a given stimuli or behavior. Indeed, by decoding either spatialposition or HD using statistical approaches, we found that the responses of the RNs allowdownstream processing units to efficiently decode the external correlates just as well as theneurons whose resulting tuning maps contain information about those external correlates.

Finally, we observed that the population of relevant neurons, as identified by the MSR,is not homogeneous, e.g., the relevant neurons in the mEC data are not composed solely bygrid cells and the relevant neurons in the ADn and PoS are not necessarily composed solelyof HD cells. Noteworthy, the decoding efficiency of the relevant neurons was observed tobe better compared to the ensemble comprising solely the grid cells. When taken altogether,these observations support the idea that population heterogeneity may play a role towardsefficient encoding of stimuli (Chelaru and Dragoi, 2008; Meshulam et al., 2017).

The fact that the MSR captures functional information from the temporal code is a re-markable aspect of this measure. This method can then be used as a pre-processing tool toimpose a less stringent criteria compared to those widely used in many studies (e.g., meanvector length, spatial sparsity and grid scores) thereby directing further investigation to inter-esting neurons. The MSR is expected to be particularly useful in detecting relevant neuronsin high-throughput studies – where the activity of many neurons are measured simultane-ously or in single-electrode neural recordings where, under a given task, an experiment isdone multiple times – where the function of neurons or the correlates they encode are notknown a priori. Our discussion has been confined to correlates related to navigation, but itapplies in a straightforward manner to other correlates (e.g. heart rate or pupil diameter),that may be responsible for the recorded activity of relevant neurons.

Whether this measure can also be used to identify functionally relevant neuronal units

16

Page 17: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

recorded through calcium imaging or through fMRI is also an exciting direction for futurestudies. A further promising direction lies in the extension of the principles used to constructMSR to the study of neural assemblies (Russo and Durstewitz, 2017). This could allow oneto probe the importance of correlated firing of neurons in representing external stimuli orbehaviors. For example, the analysis of boolean functions of pairs of neurons in the mECrecordings, shown in the Supplementary Material (Fig. S8), suggests that the representationsof individual neurons are non-redundant and that interneurons play a peculiar role in theinformation aggregation.

5 Materials and methods

5.1 Data CollectionThe data used in this study are recordings from rodents with multisite tetrode implants.These neurons are of particular interest because they are involved in spatial navigation.

5.1.1 Data from medial entorhinal cortex (mEC)

The spike times of 65 neurons recorded across the mEC area of a male Long Evans rat (Rat14147) were taken from Stensola et al. (2012). The rat was allowed to freely explore abox of dimension 150 × 150 cm2 for a duration of around 20 mins. The positions weretracked using a platform attached to the head with red and green diodes fixed at both ends.Additional details about the data acquisition can be found in the paper by Stensola et al.(2012).

5.1.2 Data from the anterodorsal thalamic nucleus (ADn) and post-subiculum (PoS)

The spike times of 746 neurons recorded from multiple areas in the ADn and PoS acrossmultiple sessions in six free moving mice (Mouse 12, Mouse 17, Mouse 20, Mouse 24,Mouse 25 and Mouse 28) while they freely foraged for food across an open environmentwith dimensions 53 × 46 cm2 and in their home cages during sleep were taken fromPeyrache and Buzsaki (2015). Mouse 12, Mouse 17 and Mouse 20 only had recordingsin the ADn while Mouse 24, Mouse 25 and Mouse 28 had simultaneous recordings fromADn and PoS. The positions were tracked using a platform attached to the heads of the micewith red and blue diodes fixed at both ends. Only the recorded spike times during awakesessions and the neural units with at least 100 observed spikes were considered in this study.Additional information regarding the data acquisition can be found in the paper by Peyracheet al. (2015) and the CRCNS6 database entry by Peyrache and Buzsaki (2015).

5.2 Position and speed filteringThe position time series for the mEC data were smoothed to reduce jitter using a low-passHann window FIR filter with cutoff frequency of 2.0 Hz and kernel support of 13 taps(approximately 0.5 s) and were then renormalized to fill missing bins within the kernelduration as done by Dunn et al. (2017). The rat’s position was taken to be the average of therecorded and filtered positions of the two tracked diodes. The head direction was calculatedas the angle of the perpendicular bisector of the line connecting the two diodes using the

6https://crcns.org

17

Page 18: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

filtered positions. The speed at each time point was computed by dividing the trajectorylength with the elapsed time within a 13-time point window. When calculating for spatialfiring rate maps and spatial information (see below), only time points where the rat wasrunning faster than 5 cm/s were considered. No speed filters were imposed when calculatingfor head directional tuning curves and head directional information. On the other hand, noposition smoothing nor speed filtering were performed when calculating for the spatial firingrate maps and spatial information for the ADn and PoS data.

5.3 Rate maps

The spike location, ξ(i)j , of neuron i at a spike time t(i)j was calculated by linearly interpo-lating the filtered position time series at the spike time. As done by Dunn et al. (2017), thespatial firing rate map at position x = (x, y) was calculated as the ratio of the kernel densityestimates of the spatial spike frequency and the spatial occupancy, both binned using 3 cmsquare bins, as

f(x) =

∑Mj=1K(x|ξj)∑M

j=1 ∆tjK(x|xj)(5)

where a triweight kernel

K(x|ξ) =4

9πσ2K

[1− ‖x− ξ‖

2

9σ2K

]3, ‖x− ξ‖ < 3σK (6)

with bandwidth σK = 4.2 cm was used. In place of a triweight kernel, a Gaussian smoothingkernel with σG = 4.0 truncated at 4σG was also used to estimate the rate maps which gavequalitatively similar results. For better visualization, a Gaussian smoothing kernel withσG = 8.0 was used to filter the spatial firing rate map.

On the other hand, for head direction tuning curves, the angles were binned using 9◦ bins.The tuning curve was then calculated as the ratio of the head direction spike frequency andthe head direction occupancy without any smoothing kernels as the head direction bins aresampled well-enough. For better visualization, a Gaussian kernel with smoothing windowof 20◦ was used to filter the tuning curves.

5.4 Information, Sparsity and other ScoresGiven a feature, φ (e.g., spatial position, x, head direction, θ or speed, v), the informationbetween the neural spiking s and the feature can be calculated a la Skaggs-McNaughton(Skaggs et al., 1993). In particular, under the assumption of a non-homogeneous Poissonprocess with feature dependent rates, λ(φ), under small time intervals ∆t, the amount ofinformation, in bits per second, that can be decoded from the rate maps is given by

I(s, φ) =∑φ

p(φ)λ(φ)

λlog

λ(φ)

λ(7)

where λ(φ) is the firing rate at φ, p(φ) is the probability of occupying φ and

λ ≡∑φ

λ(φ)p(φ) (8)

18

Page 19: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

is the average firing rate. To account for the bias due to finite samples, the informationof a randomized spike frequency was calculated using a bootstrapping procedure. To thisend, the spikes were randomly shuffled 1000 times and the information for each reshufflingwas calculated. The average randomized information was then subtracted from the non-randomized information. It is interesting to mention, in passing, that reshuffling wipes allinformation between all correlates and the time of spiking. Since the MSR only depends onthe timing of the spikes, and not on other correlates, is it unaffected by reshuffling.

Apart from the information, one of the measures that are used to quantify selectivity ofneural firing to a given feature is the firing sparsity (Buetfering et al., 2014) which can becalculated using

spφ = 1−

(∑φ λ(φ)p(φ)

)2∑φ λ(φ)2p(φ)

. (9)

Apart from the measures of information and sparsity, we also calculated the grid scores,g, for the neurons in the mEC data. The grid score is designed to quantify the hexagonalityof the spatial firing rate maps through the spatial autocorrelation maps (or autocorrelograms)and was first used by Sargolini et al. (2006) to identify putative grid cells. In brief, the gridscore is computed from the spatial autocorrelogram where each element ρij is the Pearson’scorrelation of overlapping regions between the spatial firing rate map shifted i bins in thehorizontal axis and j bins in the vertical axis and the unshifted rate map. The angularPearson autocorrelation, acorr(u), of the spatial autocorrelogram was then calculated usingspatial bins within a radius u from the center at lags (or rotations) of 30◦, 60◦, 90◦, 120◦ and150◦, as well as the±3◦ and±6◦ offsets from these angles to account for sheared grid fields(Stensola et al., 2015). As done by Dunn et al. (2017), the grid score, g(u), for a fixed radiusof u, is computed as

g(u) =1

2[max{acorr(u) at 60◦ ± (0◦, 3◦, 6◦)+

max{acorr(u) at 120◦ ± (0◦, 3◦, 6◦)]

− 1

3[min{acorr(u) at 30◦ ± (0◦, 3◦, 6◦)+

min{acorr(u) at 90◦ ± (0◦, 3◦, 6◦)+

min{acorr(u) at 150◦ ± (0◦, 3◦, 6◦)] . (10)

The final grid score, g, is then taken as the maximal grid score, g(u), within the intervalu ∈ [12 cm, 75 cm] in intervals of 3 cm.

Another quantity that was calculated in this paper is the Rayleigh mean vector length,R. Given the angles {θ1, . . . , θM} where a neuronal spike was recorded, the mean vectorlength can be calculated as

R =

√√√√( 1

M

M∑i=1

cos θi

)2

+

(1

M

M∑i=1

sin θi

)2

. (11)

Note that for head direction cells where the neuron fires at a specific head direction, theangles will be mostly concentrated along the preferred head direction, θc, and hence, R ≈ 1whereas for neurons with no preferred direction, R ≈ 0.

19

Page 20: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

5.5 Resampling the firing rate mapThe calculated rate maps and the real animal trajectory were used to resample the neural ac-tivity assuming non-homogeneous Poisson spiking statistics with rates taken from the ratemaps. To this end, the real trajectory of the rat was divided into ∆t = 1 ms bins. Theposition and head direction were linearly interpolated from the filtered positions describedabove. The target firing rate, fj in bin j was then calculated by evaluating the tuning profileat the interpolated position or head direction. Whenever the target firing rate was modulatedby both the position and head direction, we assumed that the contribution due to each featurewas multiplicative and thus, fj is calculated as the product of the tuning profiles at the inter-polated position and the interpolated head direction. A Bernoulli trial was then performedin each bin with a success probability given by fj∆t.

5.6 Statistical decodingFor positional decoding, we divided the space in a grid of 20× 20 cells of 7.5 cm × 7.5 cmspatial resolution, which was comparable to the rat’s body length. Time was also discretizedinto 20 ms bins which ensured that for most of the time (i.e. in 92% of the cases), the ratwas located within a single spatial cell. Under these time scales, the responses of a neuroncan be regarded as being drawn from a binomial distribution, i.e., either the neuron i isactive (s(i)j = 1) or not (s(i)j = 0) between (j − 1)∆t and j∆t. The likelihood of the neuralresponses, sj = (s

(1)j , . . . , s

(N)j ) of N independent neurons at a given time conditioned on

the position, xj is then given by

p(sj|xj) =N∏i=1

(λ(i)(xj)∆t)s(i)j (1− λ(i)(xj)∆t)1−s

(i)j (12)

where λ(i)(xj) is the firing rate of neuron i at xj estimated from its corresponding spatialfiring rate map. Given the prior distribution on the position, p(xj), which is estimated fromthe data, the posterior distribution of the position, xj , given the neural responses, sj at timet is given by

p(xj|sj) =p(sj|xj)p(xj)

p(sj). (13)

The decoded position, as in the Bayesian 1-step decoding by Zhang et al. (1998), was cal-culated as

xj = arg maxxj

p(sj|xj)p(xj). (14)

For head directional decoding, on the other hand, we divided the angles, θ ∈ [0, 2π) in 9◦

bins. For this case, time was instead discretized into 100 ms bins. Under these time scales,the neurons could not be regarded simply as either active or not. Hence, it was natural toswitch towards the analysis of population vectors, nj , a vector which represents the numberof spikes, n(i)

j , recorded from each neuron within the j th time bin, to decode for the headdirection. In this case, the number of spikes, n(i)

j , that neuron i discharges between (j−1)∆tand j∆t can be modeled as a non-homogeneous Poisson distribution

p(n(i)j |θj) =

λ(i)(θj)n(i)j

n(i)j !

exp(−λ(i)(θj)) (15)

20

Page 21: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

with λ(i)(θj) being the firing rate of neuron i at θj estimated from the HD tuning curve, andthus, under the independent neuron assumption, p(nj|θj) =

∏Ni=1 p(n

(i)j |θj). The decoded

head direction can then be calculated as

θj = arg maxθj

p(nj|θj)p(θj). (16)

where p(θj) is the head directional prior distribution which is estimated from the data. Notethat in all of the decoding procedures, we only decoded for time points with which at leastone neuron was active. Furthermore, the decoding exercise for both space and HD weredone on different time bins, spanning from 10 ms to 200 ms, and obtained qualitativelysimilar results.

5.7 Boolean functionSpikes from mEC neurons were binned and binarized at ∆t = 1ms time intervals such thateach bin Bs takes a value of 1 if there is at least one recorded spike within the time interval[(s − 1)∆t, s∆t) and 0 otherwise. Given two neuron pairs i and j, a new spike train wasbuilt using the Boolean function rules in Table 1 to each time bin. The corresponding MSR,and spatial and HD information were then calculated. The same procedure was done using∆t = 0.5 ms time intervals which gave qualitatively similar results. Note that the eventswhere two neurons fire together (that are those identified by the AND function) are generallyvery sparse and do not allow for a reliable calculation of the MSR and thus, the MSR forpairs of neurons having at least 100 co-firing events were considered.

TABLE 1. Boolean function rules

i j AND(i, j) OR(i, j) XOR(i, j)

0 0 0 0 00 1 0 1 11 0 0 1 11 1 1 1 0

5.8 Noise correlationsSpatial noise correlations were calculated as done by Dunn et al. (2015). In brief, spikeswere binned at ∆t = 1ms time intervals and were smoothened by a Gaussian kernel withwidth of 20ms. The spatial environment was binned into a grid of 7.5 cm square tiles and thetrajectories over the spatial bin α, defined as the time that the rat enters and leaves the squaretile α, were noted. For each neuron i, a 1× k vector, rαi , of the mean firing rate over each ofthe k trajectories was constructed. The spatial noise correlation between neuron pairs i andj were then calculated as

Cij(x) = 〈ρP (rαi , rαj )〉α (17)

where ρP (x,y) is the Pearson’s correlation and the averages are taken over the spatial binsα.

21

Page 22: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

5.9 Source codesAll the calculations in this manuscript were done using personalized scripts written inPython 3. The source codes for calculating multiscale relevance (which is also compati-ble with Python 2) and for reproducing the figures in the main text are accessible online7.

AcknowledgementsThis research was supported by the Kavli Foundation and the Centre of Excellence schemeof the Research Council of Norway (Centre for Neural Computation). RJC is currentlyreceiving funding from the European Union’s Horizon 2020 research and innovation pro-gramme under the Marie Skłodowska-Curie Grant Agreement No. 754411.

BibliographyBattistin, C., Dunn, B., and Roudi, Y. (2017). Learning with unknowns: analyzing biological

data in the presence of hidden variables. Current Opinion in Systems Biology, 1:122–128.

Buetfering, C., Allen, K., and Monyer, H. (2014). Parvalbumin interneurons provide gridcell–driven recurrent inhibition in the medial entorhinal cortex. Nature neuroscience,17(5):710–718.

Chelaru, M. I. and Dragoi, V. (2008). Efficient coding in heterogeneous neuronal popula-tions. Proceedings of the National Academy of Sciences, 105(42):16344–16349.

Couey, J. J., Witoelar, A., Zhang, S.-J., Zheng, K., Ye, J., Dunn, B., Czajkowski, R., Moser,M.-B., Moser, E. I., Roudi, Y., et al. (2013). Recurrent inhibitory circuitry as a mechanismfor grid formation. Nature neuroscience, 16(3):318–324.

Cover, T. M. and Thomas, J. A. (2012). Elements of information theory. John Wiley & Sons.

Cubero, R. J., Jo, J., Marsili, M., Roudi, Y., and Song, J. (2019). Statistical criticalityarises in most informative representations. Journal of Statistical Mechanics: Theory andExperiment, 2019(6):P063402.

Cubero, R. J., Marsili, M., and Roudi, Y. (2018). Minimum description length codes arecritical. Entropy, 20(10).

Dunn, B., Mørreaunet, M., and Roudi, Y. (2015). Correlations and functional connectionsin a population of grid cells. PLoS computational biology, 11(2):e1004052.

Dunn, B., Wennberg, D., Huang, Z., and Roudi, Y. (2017). Grid cells show field-to-field vari-ability and this explains the aperiodic response of inhibitory interneurons. arXiv preprintarXiv:1701.04893.

Ebbesen, C. L., Reifenstein, E. T., Tang, Q., Burgalossi, A., Ray, S., Schreiber, S., Kempter,R., and Brecht, M. (2016). Cell type-specific differences in spike timing and spikeshape in the rat parasubiculum and superficial medial entorhinal cortex. Cell reports,16(4):1005–1015.7https://github.com/rcubero/MSR

22

Page 23: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

Goh, K.-I. and Barabasi, A.-L. (2008). Burstiness and memory in complex systems. EPL(Europhysics Letters), 81(4):48002.

Grigolon, S., Franz, S., and Marsili, M. (2016). Identifying relevant positions in proteins bycritical variable selection. Molecular BioSystems, 12(7):2147–2158.

Hafting, T., Fyhn, M., Molden, S., Moser, M.-B., and Moser, E. I. (2005). Microstructureof a spatial map in the entorhinal cortex. Nature, 436(7052):801.

Haimovici, A. and Marsili, M. (2015). Criticality of mostly informative samples: a bayesianmodel selection approach. Journal of Statistical Mechanics: Theory and Experiment,2015(10):P10013.

Hardcastle, K., Maheswaranathan, N., Ganguli, S., and Giocomo, L. M. (2017). A mul-tiplexed, heterogeneous, and adaptive code for navigation in medial entorhinal cortex.Neuron, 94(2):375–387.

Hubel, D. H. and Wiesel, T. N. (1959). Receptive fields of single neurones in the cat’s striatecortex. The Journal of physiology, 148(3):574–591.

Insanally, M. N., Carcea, I., Field, R. E., Rodgers, C. C., DePasquale, B., Rajan, K., De-Weese, M. R., Albanna, B. F., Froemke, R. C. (2019). Spike-timing-dependent ensembleencoding by non-classically responsive cortical neurons. eLife, 8:e42409.

Kropff, E., Carmichael, J. E., Moser, M.-B., and Moser, E. I. (2015). Speed cells in themedial entorhinal cortex. Nature, 523(7561):419–424.

Krupic, J., Bauza, M., Burton, S., Barry, C., and O’Keefe, J. (2015). Grid cell symmetry isshaped by environmental geometry. Nature, 518(7538).

Langston, R. F., Ainge, J. A., Couey, J. J., Canto, C. B., Bjerknes, T. L., Witter, M. P., Moser,E. I., and Moser, M.-B. (2010). Development of the spatial representation system in therat. Science, 328(5985):1576–1580.

Latuske, P., Toader, O., and Allen, K. (2015). Interspike intervals reveal functionally distinctcell populations in the medial entorhinal cortex. Journal of Neuroscience, 35(31):10963–10976.

Lederberger, D., Battistin, C., Gardner, R. J., Roudi, Y., Witter, M., Moser, M. B., andMoser, E. I. (2018). Multiplexed spatial representations in subiculum. FENS abstract.

Marsili, M., Mastromatteo, I., and Roudi, Y. (2013). On sampling and modeling complexsystems. Journal of Statistical Mechanics: Theory and Experiment, 2013(09):P09003.

McNaughton, B. L., Battaglia, F. P., Jensen, O., Moser, E. I., and Moser, M.-B. (2006). Pathintegration and the neural basis of the ’cognitive map’. Nature Reviews Neuroscience,7(8):663–678.

Mease, R. A., Kuner, T., Fairhall, A. L., and Groh, A. (2017). Multiplexed spike coding andadaptation in the thalamus. Cell reports, 19(6):1130–1140.

Merzenich, M. M., Knight, P. L., and Roth, G. L. (1975). Representation of cochlea withinprimary auditory cortex in the cat. Journal of neurophysiology, 38(2):231–249.

23

Page 24: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

Meshulam, L., Gauthier, J. L., Brody, C. D., Tank, D. W., and Bialek, W. (2017). Col-lective behavior of place and non-place neurons in the hippocampal network. Neuron,96(5):1178–1191.

O’Keefe, J. and Dostrovsky, J. (1971). The hippocampus as a spatial map: Preliminaryevidence from unit activity in the freely-moving rat. Brain research, 34:171–175.

Panzeri, S., Brunel, N., Logothetis, N. K., and Kayser, C. (2010). Sensory neural codesusing multiplexed temporal scales. Trends in neurosciences, 33(3):111–120.

Pastoll, H., Solanka, L., van Rossum, M. C., and Nolan, M. F. (2013). Feedback inhibitionenables theta-nested gamma oscillations and grid firing fields. Neuron, 77(1):141–154.

Peyrache, A. and Buzsaki, G. (2015). Extracellular recordings from multi-site sili-con probes in the anterior thalamus and subicular formation of freely moving mice(http://dx.doi.org/10.6080/k0g15xs1).

Peyrache, A., Lacroix, M. M., Petersen, P. C., and Buzsaki, G. (2015). Internally organizedmechanisms of the head direction sense. Nature neuroscience, 18(4):569–575.

Peyrache, A., Schieferstein, N., and Buzsaki, G. (2017). Transformation of the head-direction signal into a spatial code. Nature communications, 8(1):1752.

Rieke, F., Warland, D., and Bialek, W. (1993). Coding efficiency and information rates insensory neurons. EPL (Europhysics Letters), 22(2):151.

Roudi, Y. and Moser, E. I. (2014). Grid cells in an inhibitory network. nature neuroscience,17(5):639–641.

Russo, E. and Durstewitz, D. (2017). Cell assemblies at multiple time scales with arbitrarylag constellations. Elife, 6:e19428.

Sargolini, F., Fyhn, M., Hafting, T., McNaughton, B. L., Witter, M. P., Moser, M.-B., andMoser, E. I. (2006). Conjunctive representation of position, direction, and velocity inentorhinal cortex. Science, 312(5774):758–762.

Sharp, P. E. and Green, C. (1994). Spatial correlates of firing patterns of single cells in thesubiculum of the freely moving rat. Journal of Neuroscience, 14(4):2339–2356.

Shinomoto, S., Kim, H., Shimokawa, T., Matsuno, N., Funahashi, S., Shima, K., Fujita,I., Tamura, H., Doi, T., Kawano, K., et al. (2009). Relating neuronal firing patterns tofunctional differentiation of cerebral cortex. PLoS computational biology, 5(7):e1000433.

Shinomoto, S., Miura, K., and Koyama, S. (2005). A measure of local variation of inter-spike intervals. Biosystems, 79(1-3):67–72.

Shinomoto, S., Shima, K., and Tanji, J. (2003). Differences in spiking patterns amongcortical neurons. Neural Computation, 15(12):2823–2842.

Skaggs, W. E., McNaughton, B. L., and Gothard, K. M. (1993). An information-theoreticapproach to deciphering the hippocampal code. In Advances in neural information pro-cessing systems, pages 1030–1037.

24

Page 25: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

Skaggs, W. E., McNaughton, B. L., Wilson, M. A., and Barnes, C. A. (1996). Theta phaseprecession in hippocampal neuronal populations and the compression of temporal se-quences. Hippocampus, 6(2):149–172.

Solstad, T., Boccara, C. N., Kropff, E., Moser, M.-B., and Moser, E. I. (2008). Representa-tion of geometric borders in the entorhinal cortex. Science, 322(5909):1865–1868.

Song, J., Marsili, M., and Jo, J. (2018). Resolution and relevance trade-offs in deep learning.Journal of Statistical Mechanics: Theory and Experiment, 2018(12):123406.

Stein, R. B. (1967). The information capacity of nerve cells using a frequency code. Bio-physical journal, 7(6):797–826.

Stein, R. B., Gossen, E. R., and Jones, K. E. (2005). Neuronal variability: noise or part ofthe signal? Nature Reviews Neuroscience, 6(5):389.

Stensola, H., Stensola, T., Solstad, T., Frøland, K., Moser, M.-B., and Moser, E. I. (2012).The entorhinal grid map is discretized. Nature, 492(7427):72–78.

Stensola, T., Stensola, H., Moser, M.-B., and Moser, E. I. (2015). Shearing-induced asym-metry in entorhinal grid cells. Nature, 518(7538):207–212.

Strong, S. P., Koberle, R., van Steveninck, R. R. d. R., and Bialek, W. (1998). Entropy andinformation in neural spike trains. Physical review letters, 80(1):197.

Taube, J. S. (1995). Head direction cells recorded in the anterior thalamic nuclei of freelymoving rats. Journal of Neuroscience, 15(1):70–86.

Taube, J. S., Muller, R. U., and Ranck, J. B. (1990). Head-direction cells recorded from thepostsubiculum in freely moving rats. i. description and quantitative analysis. Journal ofNeuroscience, 10(2):420–435.

Treves, A. and Panzeri, S. (1995). The upward bias in measures of information derived fromlimited data samples. Neural Computation, 7(2):399–407.

Zhang, K., Ginzburg, I., McNaughton, B. L., and Sejnowski, T. J. (1998). Interpretingneuronal population activity by reconstruction: unified framework with application tohippocampal place cells. Journal of neurophysiology, 79(2):1017–1044.

25

Page 26: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

A Supplementary Materials

26

Page 27: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

0.22 0.24 0.26 0.28 0.30

multiscale relevance, Rt (Mats2)

0.00

0.25

0.50

0.75

1.00

burs

tines

sco

effic

ient

,b

a

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1.0

dist

ribut

ion

para

met

er,u

1.0 1.5 2.0 2.5

coefficient of local variation, LV

0.00

0.25

0.50

0.75

1.00

burs

tines

sco

effic

ient

,b

d

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1.0

dist

ribut

ion

para

met

er,u

0.26 0.27 0.28 0.29

multiscale relevance, Rt (Mats2)

0.0

0.5

1.0

mem

ory

coef

ficie

nt,m

u = 1.0

b

0.0 0.2 0.4 0.6 0.8 1.0

coefficient of local variation, LV

0.0

0.5

1.0

mem

ory

coef

ficie

nt,m

u = 1.0

e

0.270 0.275 0.280 0.285 0.290

multiscale relevance, Rt (Mats2)

8

10

logM

u = 1.0

cτ0 = 0.75τ0 = 1.00τ0 = 1.25τ0 = 1.50τ0 = 1.75

0.0 0.1 0.2 0.3 0.4

coefficient of local variation, LV

7

8

9

10lo

gM

u = 1.0

f

τ0 = 0.75τ0 = 1.00τ0 = 1.25τ0 = 1.50τ0 = 1.75

100

width of Gaussian, σ

0.224

0.226

0.228

mul

tisca

lere

leva

nce,Rt

(Mat

s2)

g

0.0

0.5

1.0

1.5

2.0

HD

info

rmat

ion,I(s,θ

)(b

itspe

rspi

ke)

FIGURE S1. Synthetically-generated neural data reveals relationship of the MSR and of the coefficientof local variation, LV , with the bursty-ness and memory coefficients, and Skaggs-McNaughton mutualinformation. Interevent times were drawn from a stretched exponential distribution to simulate random eventsup to 100,000 time units where short-term memory effects were introduced through a shuffling procedureand the number of random events, M , were varied by modifying the characteristic time constant, τ0 (SeeSupplementary Text S1 for details). Scatter plots show how the multiscale relevance (MSR) scales with thebursty-ness coefficient, b (panel a), the memory coefficient, m (panel b), and logM (panel c). In panelb, random events were drawn from a stretched exponential distribution with u = 1.0 while in panel c, theparameter u was set to 0.3. Panels d, e and f, on the other hand, show the relationship between LV and bursty-ness coefficient, memory coefficient and logM respectively. The results for 100 realizations of such randomevents are shown. Notice, in c and f, that both the MSR and the LV are sensitive to the number of spikingevents. Idealized HD cells were also simulated by assuming that the firing probability conditioned on the HDfollows a circular Gaussian distribution centered at a preferred HD, θ0, with a given width, σ. Spike traindata was generated using resampling methods (See Section 5.5) using a random walk trajectory for a fixed θ0and σ. For each realization of the spike train data, the MSR (blue line) and the HD information (orange line)were calculated and shown in panel g. Here, we report the mean and standard deviation across 100 spike trainrealization. For a given θ0, sample HD tuning curves are shown in the polar plots.

27

Page 28: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

0.26 0.28 0.30

MSR (1st half), Rt (Mats2)

0.26

0.28

0.30

MS

R(2

ndha

lf),R

t(M

ats2

)

ρp =0.942, P < 0.001

a

6 8 10

logM

0.26

0.27

0.28

0.29

0.30

MS

R,R

t(M

ats2

)

b

−0.02 0.00

residual MSR, Rt − Rt (Mats2)

0.0

0.5

1.0

1.5

spat

iali

nfor

mat

ion,I(s,x

)(b

itspe

rspi

ke)

c

−0.02 0.00

residual MSR, Rt − Rt (Mats2)

0.0

0.2

0.4

0.6

0.8

HD

info

rmat

ion,I(s,θ

)(b

itspe

rspi

ke)

d

grid cellsinterneuronsborder cellother neurons

0.8 1.0 1.2 1.4 1.6

coefficient of local variation, LV

0.26

0.27

0.28

0.29

0.30

MS

R,R

t(M

ats2

)

e

−0.02 0.00 0.02

residual MSR, Rt − Rt (Mats2)

0.0

0.5

1.0

1.5

spat

iali

nfor

mat

ion,I(s,x

)(b

itspe

rspi

ke)

f

−0.02 0.00 0.02

residual MSR, Rt − Rt (Mats2)

0.0

0.2

0.4

0.6

0.8

HD

info

rmat

ion,I(s,θ

)(b

itspe

rspi

ke)

g

FIGURE S2. The MSR is a robust measure and contains information beyond what the number of spikesand local variations can explain. For each neuron, the MSR was calculated using only the first half and onlythe second half of the data (panel a). The scatter plot reports the two results. The linearity of the relationshipbetween the two sets of partial data is quantified by the Pearson correlation ρp along with its P -value. Theblack dashed line indicates the linear fit. For the neurons in the mEC dataset, the MSR was linearly regressedwith logM (panel b). The residual MSR, defined as the deviation of the MSR from the black regressionline, were then correlated against spatial (panel c) and HD (panel d) information. The MSR was also linearlyregressed with the coefficient of local variation, LV (panel e). The residual MSRs were then correlated againstspatial (panel f) and HD (panel g) information.

28

Page 29: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

0.8 1.0 1.2 1.4 1.6

coefficient of local variation, LV

0.0

0.2

0.4

0.6

0.8

1.0

1.2

1.4

1.6

spat

iali

nfor

mat

ion,I(s,x

)(b

itspe

rspi

ke)

ρp = 0.425, P < 0.001ρs = 0.446, P < 0.001

agrid cellsinterneuronsborder cellother neurons

0.8 1.0 1.2 1.4 1.6

coefficient of local variation, LV

0.0

0.2

0.4

0.6

0.8

HD

info

rmat

ion,I(s,θ

)(b

itspe

rspi

ke)

ρp = 0.440, P < 0.001ρs = 0.582, P < 0.001

bgrid cellsinterneuronsborder cellother neurons

0 50 100 150 200

x (cm)

0.0

0.2

0.4

0.6

0.8

1.0

P(‖

X−

Xtrue‖≤x

)

c

Top 20 Relevant NeuronsTop 20 Locally Variating NeuronsBottom 20 Relevant NeuronsBottom 20 Locally Variating Neurons

FIGURE S3. Local variations in the interspike intervals can capture spatial and HD information butnot decodable spatial information. A scatter plot of the coefficient of local variation LV vs. the spatial (HD)information is shown in a (b). The shapes of the scatter points indicate the identity of the neuron accordingto Stensola et al. (2012). The linearity and monotonicity of the multiscale relevance and the informationmeasures were assessed by the Pearson’s correlation, ρp, and the Spearman’s correlation, ρs, respectively. The20 top and bottom locally variating neurons (LVNs) were then used to decode position (See Main Text Section5.6). Panel c shows the cumulative distribution of the decoding error, ‖X−Xtrue‖, for the RNs (solid violetsquares) and LVNs (solid green circles) neurons as well as for the non-RNs (dashed violet squares) and non-LVNs (dashed green circles). In all the decoding procedures, time points where all the neurons in the ensemblewas silent were discarded in the decoding process.

29

Page 30: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

Rt = 0.3011spx = 0.723g = 0.123(5.2, 0.0) Hz

Neuron 47Rt = 0.3006spx = 0.561g = -0.002(11.4, 0.0) Hz

Neuron 3Rt = 0.3001spx = 0.699g = 0.004(6.6, 0.0) Hz

Neuron 35Rt = 0.2998spx = 0.614g = -0.015(11.5, 0.0) Hz

Neuron 6Rt = 0.2981spx = 0.658g = 0.169(5.2, 0.0) Hz

Neuron 48

Rt = 0.2979spx = 0.720g = 0.262(12.8, 0.0) Hz

Neuron 31Rt = 0.2978spx = 0.673g = 0.435(18.1, 0.0) Hz

Neuron 26Rt = 0.2977spx = 0.647g = 0.756(22.4, 0.0) Hz

Grid Cell 33Rt = 0.2971spx = 0.502g = 0.164(7.9, 0.0) Hz

Neuron 21Rt = 0.2968spx = 0.644g = 0.990(6.5, 0.0) Hz

Grid Cell 63

Rt = 0.2957spx = 0.774g = 0.965(13.9, 0.0) Hz

Grid Cell 62Rt = 0.2955spx = 0.636g = 0.177(21.6, 0.0) Hz

Grid Cell 20Rt = 0.2954spx = 0.667g = 0.800(12.5, 0.0) Hz

Grid Cell 28Rt = 0.2952spx = 0.692g = 0.973(15.8, 0.0) Hz

Grid Cell 24Rt = 0.2951spx = 0.761g = 0.939(16.6, 0.0) Hz

Grid Cell 7

Rt = 0.2950spx = 0.775g = 0.995(19.4, 0.0) Hz

Grid Cell 40Rt = 0.2949spx = 0.845g = 0.159(16.5, 0.0) Hz

Neuron 59Rt = 0.2948spx = 0.683g = 0.116(8.5, 0.0) Hz

Grid Cell 15Rt = 0.2947spx = 0.709g = 0.950(7.0, 0.0) Hz

Grid Cell 9Rt = 0.2947spx = 0.588g = -0.007(5.8, 0.0) Hz

Neuron 14

Rt = 0.2945spx = 0.617g = 0.861(31.8, 0.0) Hz

Grid Cell 19Rt = 0.2944spx = 0.708g = 0.417(7.4, 0.0) Hz

Neuron 29Rt = 0.2936spx = 0.724g = 0.527(11.9, 0.0) Hz

Grid Cell 64Rt = 0.2929spx = 0.229g = -0.009(16.4, 0.4) Hz

Neuron 34Rt = 0.2926spx = 0.741g = 0.441(37.5, 0.0) Hz

Grid Cell 13

Rt = 0.2923spx = 0.603g = 0.996(18.7, 0.0) Hz

Grid Cell 25Rt = 0.2923spx = 0.323g = 0.001(20.8, 0.0) Hz

Neuron 4Rt = 0.2922spx = 0.628g = 1.070(15.5, 0.0) Hz

Grid Cell 60Rt = 0.2921spx = 0.582g = 0.103(5.4, 0.0) Hz

Neuron 45Rt = 0.2919spx = 0.408g = -0.014(6.9, 0.0) Hz

Neuron 30

Rt = 0.2919spx = 0.697g = 0.532(14.7, 0.0) Hz

Grid Cell 37Rt = 0.2910spx = 0.368g = -0.004(16.7, 0.0) Hz

Neuron 2Rt = 0.2906spx = 0.541g = 0.019(11.6, 0.0) Hz

Neuron 56Rt = 0.2906spx = 0.557g = -0.005(9.5, 0.0) Hz

Neuron 51Rt = 0.2900spx = 0.407g = 1.030(9.9, 0.0) Hz

Grid Cell 39

Rt = 0.2895spx = 0.538g = -0.004(8.0, 0.0) Hz

Neuron 55Rt = 0.2889spx = 0.507g = 0.034(8.3, 0.0) Hz

Neuron 32Rt = 0.2872spx = 0.567g = 0.307(7.9, 0.0) Hz

Neuron 49Rt = 0.2867spx = 0.295g = -0.005(10.5, 0.1) Hz

Neuron 57Rt = 0.2853spx = 0.392g = -0.017(16.3, 0.0) Hz

Neuron 1

Rt = 0.2839spx = 0.095g = 0.131(26.2, 0.1) Hz

Neuron 38Rt = 0.2838spx = 0.176g = -0.003(11.2, 0.0) Hz

Neuron 58Rt = 0.2831spx = 0.101g = 0.030(28.7, 0.5) Hz

Neuron 53Rt = 0.2814spx = 0.194g = 0.000(10.0, 0.0) Hz

Neuron 18Rt = 0.2811spx = 0.361g = 0.808(9.9, 0.0) Hz

Grid Cell 36

Rt = 0.2806spx = 0.308g = -0.090(24.5, 0.3) Hz

Border Cell 44Rt = 0.2801spx = 0.150g = 0.022(6.3, 0.2) Hz

Neuron 5Rt = 0.2798spx = 0.165g = 0.405(9.9, 0.1) Hz

Interneuron 22Rt = 0.2787spx = 0.219g = 1.107(14.8, 0.3) Hz

Grid Cell 52Rt = 0.2784spx = 0.409g = 0.608(5.9, 0.0) Hz

Grid Cell 11

Rt = 0.2769spx = 0.080g = 0.053(26.9, 0.1) Hz

Neuron 43Rt = 0.2760spx = 0.350g = 0.295(4.8, 0.0) Hz

Grid Cell 65Rt = 0.2759spx = 0.071g = 0.027(35.2, 1.2) Hz

Grid Cell 23Rt = 0.2749spx = 0.081g = 0.136(18.6, 0.6) Hz

Grid Cell 27Rt = 0.2744spx = 0.142g = 0.373(12.1, 0.1) Hz

Grid Cell 17

Rt = 0.2730spx = 0.192g = 0.062(15.8, 0.1) Hz

Neuron 46Rt = 0.2724spx = 0.132g = 0.755(20.1, 1.1) Hz

Grid Cell 41Rt = 0.2724spx = 0.040g = 0.214(54.4, 2.1) Hz

Interneuron 50Rt = 0.2720spx = 0.235g = 0.670(7.9, 0.1) Hz

Grid Cell 61Rt = 0.2673spx = 0.088g = 0.149(15.6, 0.0) Hz

Neuron 10

Rt = 0.2656spx = 0.092g = 0.803(16.5, 0.9) Hz

Grid Cell 42Rt = 0.2651spx = 0.031g = 0.005(33.4, 1.8) Hz

Interneuron 12Rt = 0.2649spx = 0.032g = 0.018(50.0, 2.8) Hz

Interneuron 16Rt = 0.2638spx = 0.021g = 0.195(20.7, 1.8) Hz

Neuron 54Rt = 0.2617spx = 0.026g = 0.300(58.9, 3.5) Hz

Interneuron 8

FIGURE S4. RNs in the mEC exhibit spatially selective firing compared to non-RNs. The spatial firingrate maps of the 65 neurons in the mEC data, sorted according to their MSR scores, are shown together withthe calculated spatial sparsity, spx, the grid score, g, and the maximum and minimum firing.

30

Page 31: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

Rt = 0.3011spθ = 0.562R = 0.640(1.7 Hz, 0.0) Hz

Neuron 47

Rt = 0.3006spθ = 0.180R = 0.330(2.3 Hz, 0.4) Hz

Neuron 3

Rt = 0.3001spθ = 0.499R = 0.463(2.7 Hz, 0.2) Hz

Neuron 35

Rt = 0.2998spθ = 0.159R = 0.342(1.8 Hz, 0.1) Hz

Neuron 6

Rt = 0.2981spθ = 0.536R = 0.216(1.5 Hz, 0.0) Hz

Neuron 48

Rt = 0.2979spθ = 0.704R = 0.542(4.2 Hz, 0.0) Hz

Neuron 31

Rt = 0.2978spθ = 0.113R = 0.277(2.0 Hz, 0.5) Hz

Neuron 26

Rt = 0.2977spθ = 0.136R = 0.307(3.8 Hz, 0.9) Hz

Grid Cell 33

Rt = 0.2971spθ = 0.165R = 0.464(2.5 Hz, 0.6) Hz

Neuron 21

Rt = 0.2968spθ = 0.409R = 0.632(4.0 Hz, 0.0) Hz

Grid Cell 63

Rt = 0.2957spθ = 0.471R = 0.452(4.9 Hz, 0.2) Hz

Grid Cell 62

Rt = 0.2955spθ = 0.062R = 0.414(4.9 Hz, 1.5) Hz

Grid Cell 20

Rt = 0.2954spθ = 0.165R = 0.406(3.2 Hz, 0.4) Hz

Grid Cell 28

Rt = 0.2952spθ = 0.203R = 0.211(3.5 Hz, 0.5) Hz

Grid Cell 24

Rt = 0.2951spθ = 0.208R = 0.336(4.9 Hz, 0.6) Hz

Grid Cell 7

Rt = 0.2950spθ = 0.219R = 0.198(3.8 Hz, 0.5) Hz

Grid Cell 40

Rt = 0.2949spθ = 0.530R = 0.564(2.6 Hz, 0.0) Hz

Neuron 59

Rt = 0.2948spθ = 0.162R = 0.501(3.9 Hz, 0.5) Hz

Grid Cell 15

Rt = 0.2947spθ = 0.140R = 0.365(1.3 Hz, 0.2) Hz

Grid Cell 9

Rt = 0.2947spθ = 0.344R = 0.441(3.7 Hz, 0.2) Hz

Neuron 14

Rt = 0.2945spθ = 0.118R = 0.246(6.1 Hz, 1.4) Hz

Grid Cell 19

Rt = 0.2944spθ = 0.421R = 0.727(2.8 Hz, 0.0) Hz

Neuron 29

Rt = 0.2936spθ = 0.220R = 0.316(2.3 Hz, 0.3) Hz

Grid Cell 64

Rt = 0.2929spθ = 0.114R = 0.520(5.5 Hz, 1.4) Hz

Neuron 34

Rt = 0.2926spθ = 0.158R = 0.424(7.6 Hz, 1.7) Hz

Grid Cell 13

Rt = 0.2923spθ = 0.096R = 0.232(3.5 Hz, 0.9) Hz

Grid Cell 25

Rt = 0.2923spθ = 0.081R = 0.307(5.6 Hz, 1.3) Hz

Neuron 4

Rt = 0.2922spθ = 0.309R = 0.238(5.3 Hz, 0.3) Hz

Grid Cell 60

Rt = 0.2921spθ = 0.606R = 0.684(1.5 Hz, 0.0) Hz

Neuron 45

Rt = 0.2919spθ = 0.066R = 0.379(2.3 Hz, 0.6) Hz

Neuron 30

Rt = 0.2919spθ = 0.175R = 0.592(2.9 Hz, 0.1) Hz

Grid Cell 37

Rt = 0.2910spθ = 0.197R = 0.385(6.6 Hz, 0.7) Hz

Neuron 2

Rt = 0.2906spθ = 0.578R = 0.703(4.0 Hz, 0.0) Hz

Neuron 56

Rt = 0.2906spθ = 0.403R = 0.754(3.1 Hz, 0.0) Hz

Neuron 51

Rt = 0.2900spθ = 0.143R = 0.137(4.5 Hz, 1.1) Hz

Grid Cell 39

Rt = 0.2895spθ = 0.673R = 0.594(6.0 Hz, 0.0) Hz

Neuron 55

Rt = 0.2889spθ = 0.532R = 0.684(5.1 Hz, 0.1) Hz

Neuron 32

Rt = 0.2872spθ = 0.102R = 0.387(1.3 Hz, 0.2) Hz

Neuron 49

Rt = 0.2867spθ = 0.306R = 0.080(8.2 Hz, 0.9) Hz

Neuron 57

Rt = 0.2853spθ = 0.081R = 0.451(7.2 Hz, 2.0) Hz

Neuron 1

Rt = 0.2839spθ = 0.031R = 0.358(13.4 Hz, 7.0) Hz

Neuron 38

Rt = 0.2838spθ = 0.111R = 0.446(3.6 Hz, 1.0) Hz

Neuron 58

Rt = 0.2831spθ = 0.054R = 0.410(13.4 Hz, 5.8) Hz

Neuron 53

Rt = 0.2814spθ = 0.055R = 0.351(2.1 Hz, 0.7) Hz

Neuron 18

Rt = 0.2811spθ = 0.084R = 0.315(1.9 Hz, 0.6) Hz

Grid Cell 36

Rt = 0.2806spθ = 0.023R = 0.303(6.9 Hz, 3.5) Hz

Border Cell 44

Rt = 0.2801spθ = 0.032R = 0.246(3.3 Hz, 1.7) Hz

Neuron 5

Rt = 0.2798spθ = 0.026R = 0.319(3.1 Hz, 1.8) Hz

Interneuron 22

Rt = 0.2787spθ = 0.025R = 0.311(6.5 Hz, 3.1) Hz

Grid Cell 52

Rt = 0.2784spθ = 0.089R = 0.384(1.4 Hz, 0.4) Hz

Grid Cell 11

Rt = 0.2769spθ = 0.043R = 0.308(13.1 Hz, 5.0) Hz

Neuron 43

Rt = 0.2760spθ = 0.077R = 0.334(1.7 Hz, 0.5) Hz

Grid Cell 65

Rt = 0.2759spθ = 0.017R = 0.294(23.2 Hz, 13.7) Hz

Grid Cell 23

Rt = 0.2749spθ = 0.014R = 0.345(9.4 Hz, 6.2) Hz

Grid Cell 27

Rt = 0.2744spθ = 0.033R = 0.259(6.3 Hz, 2.8) Hz

Grid Cell 17

Rt = 0.2730spθ = 0.029R = 0.363(5.4 Hz, 2.3) Hz

Neuron 46

Rt = 0.2724spθ = 0.022R = 0.348(11.1 Hz, 5.5) Hz

Grid Cell 41

Rt = 0.2724spθ = 0.015R = 0.360(24.4 Hz, 13.4) Hz

Interneuron 50

Rt = 0.2720spθ = 0.025R = 0.298(2.7 Hz, 1.6) Hz

Grid Cell 61

Rt = 0.2673spθ = 0.028R = 0.350(2.3 Hz, 0.8) Hz

Neuron 10

Rt = 0.2656spθ = 0.017R = 0.267(11.8 Hz, 6.4) Hz

Grid Cell 42

Rt = 0.2651spθ = 0.015R = 0.263(27.2 Hz, 16.9) Hz

Interneuron 12

Rt = 0.2649spθ = 0.021R = 0.296(38.3 Hz, 23.8) Hz

Interneuron 16

Rt = 0.2638spθ = 0.011R = 0.366(12.7 Hz, 8.8) Hz

Neuron 54

Rt = 0.2617spθ = 0.007R = 0.331(34.2 Hz, 24.7) Hz

Interneuron 8

FIGURE S5. RNs in the mEC exhibit HD selective firing compared to non-RNs. The HD tuning curves ofthe 65 neurons in the mEC data, sorted according to their MSR scores, are shown together with the calculatedHD sparsity, spθ, the Rayleigh mean vector length, R, and the maximum and minimum firing.

31

Page 32: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

0.24 0.25 0.26 0.27 0.28 0.29 0.30

multiscale relevance, Rt (Mats2)

0.0

0.5

1.0

1.5

HD

info

rmat

ion,I(s,θ

)(b

itspe

rspi

ke)

aADn neurons, Mouse12

0.24 0.25 0.26 0.27 0.28 0.29 0.30

multiscale relevance, Rt (Mats2)

0.00

0.25

0.50

0.75

HD

spar

sity

,spθ

ADn neurons, Mouse12

0.24 0.25 0.26 0.27 0.28 0.29 0.30

multiscale relevance, Rt (Mats2)

0.0

0.5

1.0

HD

info

rmat

ion,I(s,θ

)(b

itspe

rspi

ke)

bADn neurons, Mouse17

0.24 0.25 0.26 0.27 0.28 0.29 0.30

multiscale relevance, Rt (Mats2)

0.00

0.25

0.50

0.75

HD

spar

sity

,spθ

ADn neurons, Mouse17

0.25 0.26 0.27 0.28 0.29 0.30

multiscale relevance, Rt (Mats2)

0.0

0.5

1.0

1.5

HD

info

rmat

ion,I(s,θ

)(b

itspe

rspi

ke)

cADn neurons, Mouse20

0.25 0.26 0.27 0.28 0.29 0.30

multiscale relevance, Rt (Mats2)

0.00

0.25

0.50

0.75

HD

spar

sity

,spθ

ADn neurons, Mouse20

0.24 0.25 0.26 0.27 0.28 0.29 0.30

multiscale relevance, Rt (Mats2)

0.0

0.5

1.0

1.5

HD

info

rmat

ion,I(s,θ

)(b

itspe

rspi

ke)

dADn neurons, Mouse24PoS neurons, Mouse24

0.24 0.25 0.26 0.27 0.28 0.29 0.30

multiscale relevance, Rt (Mats2)

0.00

0.25

0.50

0.75

HD

spar

sity

,spθ

ADn neurons, Mouse24PoS neurons, Mouse24

0.26 0.27 0.28 0.29 0.30

multiscale relevance, Rt (Mats2)

0.0

0.5

1.0

1.5

HD

info

rmat

ion,I(s,θ

)(b

itspe

rspi

ke)

eADn neurons, Mouse25PoS neurons, Mouse25

0.26 0.27 0.28 0.29 0.30

multiscale relevance, Rt (Mats2)

0.00

0.25

0.50

0.75

HD

spar

sity

,spθ

ADn neurons, Mouse25PoS neurons, Mouse25

0.24 0.25 0.26 0.27 0.28 0.29 0.30

multiscale relevance, Rt (Mats2)

0

1

2

HD

info

rmat

ion,I(s,θ

)(b

itspe

rspi

ke)

fADn neurons, Mouse28PoS neurons, Mouse28

0.24 0.25 0.26 0.27 0.28 0.29 0.30

multiscale relevance, Rt (Mats2)

0.0

0.5

HD

spar

sity

,spθ

ADn neurons, Mouse28PoS neurons, Mouse28

FIGURE S6. MSR of neurons from the anterodorsal thalamic nucleus (ADn) and post-subicular (PoS)regions of 6 freely-behaving mice pooled from multiple recording sessions. For each mouse, the MSR ofthe recorded neurons which had more than 100 recorded spikes in a session were calculated. The correspondingthe HD information and sparsity (in bits per spike, see Main Text Section 5.4: Information, Sparsity and otherScores) were also calculated. ADn neurons are depicted in red circles while PoS neurons in blue squares. Thesize of each point reflects the mean vector lengths of the neurons wherein larger points indicate a unimodaldistribution in the calculated HD tuning curves.

32

Page 33: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

0 20 40 60

n

0

20

40

60

over

lap

a mEC

0 10 20 30 40

n

0

10

20

30

40

over

lap

b Mouse 12 (Session 120806)

0 10 20 30 40

n

0

10

20

30

40

over

lap

c Mouse 28 (Session 140313)

PoS neuronsADn neurons

0 50 100 150 200

x (cm)

0.0

0.2

0.4

0.6

0.8

1.0

P(‖

X−

Xtrue‖≤x

)

d

Top 20 Relevant NeuronsTop 20 Spatially Informative NeuronsNeurons inside the overlapRandom selection

0 20 40 60 80 100x (cm)

1

2

3

4

z-s

core

(vs.

over

lap) Relevant Neurons

Spatially Informative Neurons

FIGURE S7. The mEC neurons that were both RNs and INs do not contain the bulk of the decodablespatial information. The overlap between the set of RNs and INs as a function of the size, n, of each set forthe mEC (a), for the ADn of Mouse 12 (Session 120806) (b) and for the ADn and PoS of Mouse 28 (Session140313) (c). To show how much decodable spatial information there is in the overlap between the RNs andspatial INs in the mEC at n = 20, we took the 14 overlapping neurons (ONs) and randomly chose 6 neuronsoutside of this overlap and performed a Bayesian positional decoding (see Main Text Section 5.6). The meanand standard errors of the cumulative distribution of decoding errors, ‖X−Xtrue‖, of the 14 ONs + 6 randomneurons (n = 100 realizations) are shown in grey (D) together with the cumulative distribution of decodingerrors of the RNs (violet squares) and spatial INs (yellow stars). For a given position error, x, a z-score canbe calculated by measuring how many standard errors from the mean of the decoding errors for ONs is thedecoding error of the RNs or of the spatial INs. These z-scores are shown in the inset of panel d.

33

Page 34: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

0.26 0.27 0.28 0.29 0.30multiscale relevance, Rt(OR(i, j)) (Mats2)

10−2

10−1

100sp

atia

linf

orm

atio

n,I(O

R(si,sj),

x)

(bits

pers

pike

)

a

Top single neuronsPairs of top neuronsTop/Bottom neuron pairsPairs of botton neuronsBottom single neurons

0.26 0.28 0.30multiscale relevance, Rt(OR(i, j)) (Mats2)

0.26

0.27

0.28

0.29

0.30

mul

tisca

lere

leva

nce,Rt(X

OR

(i,j

))

(Mat

s2)

b

0.26 0.28 0.30max(Rt(i),Rt(j)) (Mats2)

0.26

0.27

0.28

0.29

0.30

0.31

mul

tisca

lere

leva

nce,Rt(A

ND

(i,j

))

(Mat

s2)

c

−0.02 0.00

max(rMSR(i), rMSR(j))

−0.02

0.00

resi

dual

MS

R

0.26 0.27 0.28 0.29 0.30max(Rt(i),Rt(j)) (Mats2)

0.26

0.27

0.28

0.29

0.30

0.31

mul

tisca

lere

leva

nce,Rt(X

OR

(i,j

))

(Mat

s2)

d

−0.02 0.00 0.02

max(rMSR(i), rMSR(j))

−0.02

0.00

resi

dual

MS

R

FIGURE S8. Multiscale relevance (MSR) for spike trains built from AND, OR and XOR Boolean func-tions between pairs of neurons. To study the possible application of MSR to neuronal ensembles, MSRswere calculated from spike trains resulting from AND, OR and XOR Boolean function between pairs of neu-rons (See Section 5.7). A scatter plot between the spatial information and the calculated MSR for spike trainsconstructed from OR Boolean function is shown in a. Red squares indicate the 10 single neurons with thehighest MSR (top single neurons), green squares the 10 single neurons with the lowest MSRs (bottom singleneurons), red circles the OR Boolean function from pairs of top neurons, green circles the pairs of bottomneurons, and yellow circles the pairs of top and bottom neurons. Similar results to panel a hold for HD in-formation (plot not shown). Panel b shows a scatter plot between MSRs from OR Boolean function and fromXOR Boolean function. The inset scatter plot show the difference between the MSRs from XOR and from ORBoolean function as a function of the average firing rate of the neuron pairs along with the best-fit line (dashedline). The comparison between the MSR of the OR and the XOR potentially allows us to probe the effects ofcommon driving of the neurons, because the latter includes also simultaneous firing, whereas the former doesnot. We find that the MSR of the XOR is very similar to that of the OR. One way to interpret this lack ofdifference is that the role of common input to correlated firing is small. The lack of difference could also bedue to small firing rates of neurons but given that we see the similarity between the MSR of the OR and XORfor almost all pairs makes this unlikely. Panel c (d) shows a scatter plot between the MSRs from an AND(XOR) Boolean function between pairs of neurons and the maximal MSR between the corresponding pairs.Residual MSRs are calculated by subtracting the part of the MSR that is explained by logM through linearregression. The corresponding inset scatter plots show a scatter plot between residual MSRs from pairs ofneurons and the maximum residual MSR of the corresponding pairs. Orange crosses indicate neurons that arepaired with an interneuron. The resulting MSR (of the OR or of the XOR) is almost always lower (and neversignificantly higher) than the MSR of the most relevant of the two neurons, suggests that individual neuronscontain non-redundant information. Furthermore, for those pairs of neurons where we get a significant signal,in most of the cases, one of the neurons turns out to be an interneuron which suggests that interneurons play apeculiar role in the information aggregation. The neuron pairs considered in Fig. S9 are highlighted. GC: gridcell, I: interneuron, N: unclassified neuron.

34

Page 35: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

0.00 0.25 0.50 0.75 1.00

H[s] (Mats)

0.0

0.2

0.4

H[k

](M

ats)

a

Grid cell 33Grid cell 41

Rt = 0.2977I(s,x) = 0.641g = 0.756

Grid cell 33

Rt = 0.2724I(s,x) = 0.110g = 0.755

Grid cell 41

0.00 0.25 0.50 0.75 1.00

H[s] (Mats)

0.0

0.2

0.4

H[k

](M

ats)

c

Interneuron 8Neuron 10

Rt = 0.2617I(s,x) = 0.063g = 0.300

Interneuron 8

Rt = 0.2673I(s,x) = 0.072g = 0.149

Neuron 10

0.00 0.25 0.50 0.75 1.00

H[s] (Mats)

0.0

0.2

0.4

H[k

](M

ats)

b

Grid cell 11Grid cell 61

Rt = 0.2784I(s,x) = 0.277g = 0.608

Grid cell 11

Rt = 0.2720I(s,x) = 0.169g = 0.670

Grid cell 61

0.00 0.25 0.50 0.75 1.00

H[s] (Mats)

0.0

0.2

0.4

H[k

](M

ats)

d

Interneuron 12Interneuron 16

Rt = 0.2651I(s,x) = 0.089g = 0.005

Interneuron 12

Rt = 0.2649I(s,x) = 0.096g = 0.018

Interneuron 16

FIGURE S9. Resolution vs. relevance curves for different pairs of neurons. Panels show the resolution,H[s], vs relevance H[k] curves traced by different pairs of neurons: grid cells with high and low MSR (a),grid cells with low MSRs having similar grid scores (b), a neuron having a low MSR and an interneuron (c)and two interneurons (d). Each point, (H[s], H[K]), in this curve corresponds to a fixed binning time, ∆t,with which we see the corresponding spike count codes. The spatial noise correlation, Cij(x) (see main text,section 5.8), for the neuron pairs are also indicated. The multiscale relevance of the boolean functions that canbe constructed from these neuron pairs are indicated in Fig. S8.

35

Page 36: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

Text S1: Relation between MSR and other measures of tem-poral structureCharacterizing the neural spiking can be done by studying the distribution of the time in-tervals between two succeeding spikes, known in literature as the interspike interval (ISI)distribution which allows us to see whether a neuron fires in bursts (Ebbesen et al., 2016;Sharp and Green, 1994). Note that given the time stamps of neural activity {t1, . . . , tM},the interspike interval is given by {τ1, . . . , τM−1} where τi = ti+1 − ti. Because the multi-scale relevance (MSR) is built to separate relevant neurons from the irrelevant ones throughtheir temporal structures in the neural spiking, we wanted to assess how the proposed mea-sure scales with the characteristics that give structure to temporal events. In the context ofthe temporal activity of a neuron, a feature of the relevance measure, H[K] is that highlyregular, equally-spaced ISI are attributed with a low measure. On the other hand, ISI thatfollow broad, non-trivial distributions are attributed with a high relevance measure. Hence,we expected that the relevance measure, and therefore the MSR, captures non-trivial burstypatterns of neurons.

To study how MSR behaves with respect to the characteristics of ISI, we considered astretched exponential distribution

P uSE(τ) =

u

τ0

τ0

]u−1exp

[−(τ

τ0

)u](S1)

with which the parameter u allows us to define the broadness of underlying distribution andτ0 is the characteristic time constant of the random event. For Poisson processes, the ISIfollow an exponential distribution corresponding to u = 1 in Eq. (S1). For u < 1, the ISIdistribution becomes broad and tends to a power law distribution with an exponent of −1 inthe limit when u→ 0. On the other hand, for u > 1, the distribution becomes narrower andtends to a Dirac delta function in the limit when u→∞.

Upon fixing the parameters u and τ0 which fixes the stretched exponential distributionin Eq. (S1), random ISI, τi, could then be sampled independently from Eq. (S1) so as togenerate a time series of 100,000 time units. The MSRs of each time series could then becalculated using the methods described in the main text (Section 2).

To characterize the temporal structures of both the simulated data and neural data, weadapted the measures of bursty-ness and memory of Goh and Barabasi (Goh and Barabasi,2008). While the bursty-ness coefficient, b defined as

b =στ − µτστ + µτ

, (S2)

measures the broadness of the underlying ISI distribution with µτ and στ as the mean andstandard deviations of the ISI respectively, the memory coefficient, m defined as

m =1

M − 2

M−2∑j=1

(τj − µτ )(τj+1 − µτ )σ2τ

, (S3)

measures the short-time correlation between events.For the stretched exponential distribution in Eq. (S1), the mean and standard deviations

could be computed as

µτ = τ0Γ

(u+ 1

u

)(S4)

36

Page 37: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

and

στ = τ0

√Γ

(u+ 2

u

)− Γ

(u+ 1

u

)2

(S5)

where Γ(x) ≡ (x − 1)! is the gamma function. With these closed-form relationships,we could now study the limiting properties of the burstiness and memory coefficients. ForPoisson processes, the mean, µτ , and standard deviation, στ , coincide, i.e. µτ = στ = τ0,and thus with Eq. (S2), give b = 0. For broad distributions, u < 1 in Eq. (S1), στ > µτwhich gives b > 0 and tends to approach b → 1 in the limit u → 0. On the other hand, fornarrow distributions, u > 1 in Eq. (S1), στ < µτ resulting to b < 0 and tends to b → −1in the limit u → ∞. Hence, the bursty-ness parameter, b, is a bounded parameter, i.e.,b ∈ [−1, 1].

For the synthetic datasets, note that fixing the parameter u automatically fixes the bursty-ness coefficient, b. However, because the synthetic ISI are sampled independently, the mem-ory coefficient,m, is approximately zero. Short-term memory can then be introduced by firstsorting the ISI in decreasing (or increasing) order which results to m ≈ 1. Randomly shuf-fling a subset of the ordered ISI (100 events at a time in this case) results to a monotonicdecrease of m. In the limit of infinite data, the memory coefficient is bounded by [−1, 1].These bounds may no longer hold in the case of limited data. Despite this, a positive memorycoefficient indicates that a short (long) ISI between events tends to be followed by anothershort (long) interval and a negative memory coefficient indicates that a short (long) ISI be-tween events tends to be followed by a long (short) interval.

With this, we found that the MSR increased with bursty-ness and memory for the syn-thetically generated dataset as seen in Fig. S1a and b. We also sought to characterize therelationship between the number of events, M , with the MSR which can be addressed bychanging the characteristic time constant, τ0, in Eq. (S1) wherein decreasing τ0 leads to moreevents and thus, increased logM . We found that MSR decreased with logM as seen in Fig.S1c. This result is indicative that MSR of randomly generated events can be explained bylogM .

Since the MSR is constructed as a measure of dynamical variablity, we compared ourresults on synthetically generated datasets with the coefficient of local variation, LV , (Shi-nomoto et al., 2005, 2003, 2009) defined as

LV =1

M − 1

M−1∑j=1

3 (τj − τj+1)2

(τj + τj+1)2 (18)

where the factor 3 in the summand was taken such that, for a Poisson process, LV = 1. Withthis, we found that the LV increases with increasing bursty-ness coefficient, b, indicating thatpower law ISI distributions lead to highly locally variating spiking events (see Fig. S1d).Also, we found that the LV decreases with increasing short-term memory, m (see Fig. S1e).Finally, like the MSR, we also found a dependence of the LV with the logM (see Fig. S1f).

Following the results on synthetic data, we also analyzed temporal characteristics in realneural dataset. In the case of neurons in the mEC data, we also found that MSR decreasedwith the logarithm of the number of observed spikes, logM , as shown in Fig. S2b. To deter-mine how much of the calculated MSRs can be explained by the number of observed spikes,M , we linearly regressed MSR with logM shown as the dashed line in Fig. S2b. Residualswere then calculated as the deviation of the calculated MSR from the regression line andthus, captures the amount of MSR that cannot be explained by logM alone. We showed inFig. S2c and d that the MSR for real dataset still contained information going beyond logM

37

Page 38: Finding informative neurons in the brain using Multi-Scale ... · Finding informative neurons in the brain using Multi-Scale Relevance Ryan John Cubero1,2,3, Matteo Marsili2, and

as the residual MSRs (with respect to logM ) still retained the dependence with spatial andHD information as already observed in the main text (Fig. 2). We also observed a positivecorrelation between MSR and LV . However, through residual analysis, we found that theresidual MSRs (with respect to LV ) still contained spatial and HD information as seen inFig. S2f and g.

38