Abstract
A major task in the history of neurophysiology has been to relate patterns of neural activity to ongoing external stimuli. More recently, this approach has branched out to relating current neural activity patterns to external stimuli or experiences that occurred in the past or future. Here, we aim to review the large body of methodological approaches used towards this goal, and to assess the assumptions each makes with reference to the statistics of neural data that are commonly observed. These methods primarily fall into two categories, those that quantify zero-lag relationships without examining temporal evolution, termed reactivation, and those that quantify the temporal structure of changing activity patterns, termed replay. However, no two studies use the exact same approach, which prevents an unbiased comparison between findings. These observations should instead be validated by multiple and, if possible, previously established tests. This will help the community to speak a common language and will eventually provide tools to study, more generally, the organization of neuronal patterns in the brain.
This article is part of the Theo Murphy meeting issue ‘Memory reactivation: replaying events past, present and future’.
Keywords: memory, sleep, neuronal dynamics, population coding
1. Introduction
Thirty years ago, while the relationship between sleep and memory had so far been investigated at the behavioural level, Pavlides and Winson in 1989 provided, for the first time, compelling evidence that neuronal activity in the hippocampus during sleep was affected by previous wake experiences. They were able to change the sleep firing rates, and burstiness, of individual place cells by exposing animals to the locations such cells were tuned to. As a control, place cells for locations the animals were blocked from traversing did not show these changes. The same year, György Buzsáki [1] suggested that hippocampal sharp-waves, transient bouts of increased spiking activity in the hippocampus observed during reward consumption, drowsiness and non-rapid eye movement (NREM) sleep, would be instrumental in the reactivation of activity patterns that formed during the previous behaviour. The two-stage model of memory [1], building upon previous theoretical work by Marr [2], states that reactivation of neuronal patterns during ‘offline’ periods is the physiological support of the long-established role of the hippocampus in memory formation [3]. These preliminary descriptions of cell-specific reactivation pointed towards a potential role of NREM sleep in memory consolidation at a time when the rapid eye movement (REM) memory–retention hypothesis was the prevailing view [4–7]. Although these studies marked a turning point in the study of sleep-dependent memory processes, they did not address the key question of how spiking activity is organized at the population level.
During sharp waves, hippocampal CA1 neurons fire synchronously, producing a ripple oscillation in the local field potential (LFP) [8], one of the fastest (100–200 Hz) oscillations in the healthy brain. Together, these two features of the CA1 LFP form sharp wave-ripple (SWR) events. The development of multi-channel recording techniques allowed Wilson & McNaughton [9] to demonstrate which reactivation was a population-wide phenomenon by showing that the pairwise correlations which formed with experience were preserved during subsequent sleep, especially at times of SWRs. SWRs entrain downstream targets of the hippocampus in the entorhinal cortex [10], confirming the original hypothesis that these physiological events may underlie a global phenomenon implied in memory formation.
Since these seminal studies, to assess reactivation, a simple within animal paradigm has become the standard protocol in the field. The typical experiment consists of a naive animal sleeping in its home cage for several hours, being exposed to a new environment or maze, and then returning to its home cage for several more hours. This paradigm then allows for the comparison of activity patterns between the behavioural epoch and the post-behaviour epoch, while using the pre-behaviour epoch as an internal control to determine if such activity patterns were pre-existing.
One key issue with the study of these phenomena is that the observation and quantification of such patterns depend intimately on the choice of methods used for detection and statistical assessment of their existence.
2. Reactivation methods
(a). Cell-pair correlation and explained variance
Using a technical tour-de-force, Wilson & McNaughton [9] used multiple tetrodes to simultaneously record from dozens of neurons in the hippocampus of freely moving rats during sleep and exploration [9]. They demonstrated that cell-pair correlations for place cells with overlapping firing fields were stronger during sleep after exploration (POST) than during preceding sleep (PRE). Overall, the ensemble correlations were highly similar during exploration and sleep POST, revealing that the pattern of co-firing between hippocampal neurons which formed with awake experience was reactivated during sleep.
Cell-pair correlations such as these are simply computed by binning spike trains in vectors of spike counts (typically in the range 10–100 ms) and by evaluating the Pearson's correlation between these vectors. Reactivation can be then evaluated as the difference in POST correlations between cell-pairs of overlapping or non-overlapping place fields [9]. However, this method has two main issues. First, it only indirectly reflects the relationship between the cell-pair correlations during wakefulness and sleep. Second, a proper measure of changes in correlation must account for the prior relationship between wake correlation and sleep PRE. The first issue can be solved by computing the correlation of cell-pair correlations, referred thereafter as cell-pair coherence, between any two states (e.g. wake and POST). The second issue is addressed by computing the partial correlation between wake-POST cell-pair coherence knowing the wake-PRE cell-pair coherence [11]. This measure is now usually referred to as explained variance (EV) [12]. In mathematical terms, this can be expressed as
with rA,B, being the cell-pair coherence between epochs A and B. See the electronic supplementary material for a full mathematical formulation.
One caveat with EV is that it is not compared to a proper control but is simply expected to be stronger than wake-PRE coherence [12]. That is, EV by itself does not have any measure for the degree of variability (i.e. noise) across correlations. Additionally, it assumes a ‘forward’ flow of time, analysing the change in correlation structure from PRE to POST. To address these issues, Pennartz et al. [13] introduced the reverse explained variance (REV) in which the PRE and POST cell-pair coherence are swapped (i.e. the ‘flow’ of time is reversed). Reactivation can thus be assessed by a significant difference between EV and REV across recording sessions.
EV has three main limitations. First, it does not account for the possible change in firing rates (independent of correlations) that inevitably leads to changes in correlation [14]. It is possible to control for this by subsampling spike trains to equalize rates [15], or greatly increase the time bin size in order to estimate the contribution of slow time-scale rate fluctuations. Second, it does not allow for the resolution of reactivation in time as it evaluates only reactivation over an entire sleep epoch. Third, all cell-pair correlation values are considered, not controlling for the fact that data of limited duration inevitably generates non-zero correlations.
(b). Tracking reactivation over time
Methods have been developed to compare at a given time the instantaneous co-firing with a template of ensemble spiking ([16], see ‘template matching’ below). Using a template allows for the tracking of the time course of reactivation, and thus to correlate, for example, the instantaneous reactivation with some physiological events such as SWRs. However, the template is composed of only one instance or trial of spiking activity, and thus is prone to high level of noise.
An intermediate solution is to evaluate at any given time the similarity of pairwise co-firing at a given time with average correlation from another epoch. This basically decomposes in time the cell-pair coherence and gives a time series referred to as reactivation strength. Specifically, it consists of projecting the population vectors at a given time onto the correlation matrix (e.g. from wake).
Specifically, population vectors are the z-scored binned spike trains from the neuronal ensemble, so that the instantaneous co-firing (i.e. the products of spike counts) can be compared to the correlation values (note that a correlation value between any two variables is the average of the product of their z-scored values).
One issue with this measure is that it is strongly sensitive to the firing of individual neurons (i.e. neuron pairs with higher spike counts will have higher correlations; [14]). To make the measure independent of single-neuron rate fluctuation, the diagonal of the matrix can be set at 0.
In the general case, reactivation strength can be expressed as
where P is a projector (in the simplest case, the correlation matrix) with diagonal elements equal to 0.
Using the correlation matrix for the projection does not address the possibility that noisy correlations can potentially overshadow the actual signal, or at least diminish dramatically the effect size. Other methods, described below, were developed to address this problem (figure 1).
(c). Principal component analysis
A useful strategy when it comes to focusing the analysis on the relevant intrinsic signals is to extract from the correlation matrix the components that account for more covariance than what is expected from random data of similar duration. Principal component analysis (PCA) is the method of choice to begin with as it is directly related to the correlation matrix.
PCA consists in finding in the original data the axis (that is, a linear combination of the inputs) that maximize the variance. Mathematically, each principal component (PC) corresponds to an eigenvector of the correlation matrix, which corresponds to the axis in n-dimensional space (n being the number of neurons) pointing in the direction of the maximal variance (or the maximal remaining variance in direction orthogonal to the previous PCs). Each PC is associated with an eigenvalue equal to the total variance explained by this combination of inputs. Numerous studies have used PCA to extract low-dimensional features of neuronal population activity (e.g. [49,50]). Replacing the correlation matrix by the PC projectors [51] yields a reactivation strength specific to one PC [45]. In this case, the projector is simply the outer product of the eigenvector (see the electronic supplementary material for more details and figure 2).
(d). Determining the number of significant principal components
Usually, the number of PCs that are kept to describe the original dataset in a compressed form is determined by the desired amount of variance explained by the PCs (e.g. ‘the first n PCs explain X% of the variance’). The explained variance is, by definition, the sum of the eigenvalues associated with each PC (the total covariance of a correlation matrix is the number of variables). For an infinite-long recording of independently firing neurons, the correlation matrix should be the identity matrix and each PC should be associated with an eigenvalue of 1 (they cannot explain more variance than what is contained in a single spike train). However, recordings are all finite in duration and neurons covary in spiking activity. This results in a spectrum of eigenvalues that is distributed around 1, with a width depending on the number of variables (i.e. neurons) and time bins.
During active wakefulness (when cortical networks are in the so-called asynchronous state), cell-pair correlations remain low and distributed around 0 [52], resulting in correlation matrix eigenvalues narrowly distributed around 1. Thus, it is unlikely that a subset of PCs can explain a large percentage of the total variance. Instead, it is more useful to determine the PCs that explain variance exceeding what is expected from random data (i.e. independently firing neurons). Two equivalent approaches are possible. First, shuffling the data (bin-to-bin for each cell) results in a null distribution of eigenvalues from which one can determine the upper bound of the eigenvalues expected from random data. All PCs associated with eigenvalues exceeding this upper bound can be considered ‘significant’ and to convey the actual signal. Another way to determine this upper bound is to use results from random matrix theory, namely the Marchenko–Pastur distribution of eigenvalues expected for random datasets. One crucial aspect of the spectrum of eigenvalues of a correlation matrix is that it is sharply bounded, and thus, any PC whose eigenvalue exceeds the theoretical upper bound can be considered significant with almost absolute certainty (a small correction for finite data is possible but is generally negligible).
The main limitation of the PCA method is that it forces components to be orthogonal to each other (by construction). While it captures relevant aspects of covariance, it may not identify properly the assemblies of neurons that are coordinated [53].
(e). Other decomposition of neuronal data: independent component analysis and beyond
Independent component analysis (ICA) has proved very useful to extract meaningful information from large datasets, in many different fields [54]. When applied to artificially generated spike trains, it successfully separates assemblies of coordinated neurons, even when assemblies have overlapping member neurons [20], a situation in which PCA fails. In the case of determining specific patterns of co-activated units, the ICA is quite similar to the PCA method. ICA is performed on the data projected onto the subspace of the significant components (as determined from the spectrum of eigenvalues) to de-mix the PCs into independent components. The overall variance explained (i.e. average over a sleep epoch) by ICA can be less than with PCA, yet the ICA may be more suitable to track the activation time course of a given assembly (and be potentially more interpretable). This has proved successful in recent studies focusing on the reactivation of hippocampal ensembles [15,21].
PCA and ICA are only two (arguably popular) methods for dimensionality reduction, especially in the context of neuronal data [55]. A number of alternatives were developed similar to PCA, but with slightly different optimization constraints. For example, while standard PCA assumes normally distributed data, it has been generalized to the exponential family (including binary and Poisson distributed data) [56].
3. Replay methods
The methods described so far examine the instantaneous co-activation across populations of neurons. That is, they examine patterns of activity by binning neural data in time (10–200 ms) and examining only zero-lag relationships. As such, they are all methods of quantification for reactivation, however, there are strong temporal relations in all sensory experience and the accompanying neural population activity. Therefore, methods that examine the temporal evolution of neural population dynamics are necessary for the examination of replay.
(a). Cross-correlograms
The first method to posit that the temporal order of hippocampal sequences during behaviour are later ‘replayed’ during sleep used cross-correlograms (CCG) between pairs of neurons [18]. By iteratively shifting in time (±200 ms) and correlating pairs of spike trains, the cross-correlogram can be calculated. Skaggs and McNaughton then examined the asymmetry B for cells i and j, by subtracting parts of the CCG, centered on zero-lag:
For each epoch of a recording session, an asymmetry index (Bpre, Bbehav and Bpost) could be calculated and compared. A requisite supposition of identifying replay is that sequenced activation of ensembles during behaviour should also occur during POST-behaviour epochs more than expected when compared to either a random generative process or the previously existing internal dynamics of the network. If the temporal bias of spikes during a behaviour is maintained during a POST-behaviour sleep session, and it did not exist in a PRE-behaviour sleep session, the asymmetry indices Bbehav and Bpost should be more correlated than Bbehav and Bpre. From such correlations between asymmetry indices, the authors concluded that the sequential neural activity during the experience was being replayed preferentially after the behaviour occurred [18].
While this method remains one of the simplest and most intuitive approaches to quantifying replayed sequences of activity, it suffers from several drawbacks. Aspects of this method are susceptible to issues arising from data processing, data inclusion, and firing rate distributions and are further described in the electronic supplementary material.
(b). Template-based approaches
The next class of approaches that were developed consist of a typical PRE/behaviour/POST recording session where the behavioural session is used to create a template (i.e. firing rate-maps), typically over spatial bins of a maze or environment. This template of firing rates over spatial positions is then compared with epochs of time during the PRE and POST sleep sessions. The explicit goal of these methods is to find epochs of time where the pattern of activity that occurred on a maze, reoccurs while the animal is asleep. Detected ‘similar’ events are then presumed to be replaying activity patterns induced during a prior experience.
A major hurdle with this approach has to do with temporal scaling. The timescale at which activity patterns change during a behaviour or maze traversal may be quite different than during sleep, where such sequences must be internally generated.
(i). Template-based approaches I: template correlation analysis
To overcome this, two early papers from the Wilson laboratory [16,22] implemented a scaling factor analysis. By warping the behavioural template with different temporal scales (0.5 to 20-fold), they could assess both the correlation between template and sleep activity and the scaling factor of the template with the highest correlation. Thus, if ‘replay’ exists at a faster or slower temporal scale than sequences during behaviour, both the temporal compression and similarity to behavioural sequences can be quantified. Their template correlation Ct was defined as
where and are the binned smoothed spike counts for cell c at time n across two different epochs. n is the number of bins and C is the number of cells, and are the average bin values for the two epochs, Xc and Yc the root mean square of the bin values. By varying the time bin size for one of the two spike trains X or Y relative to the other, the scaling factor can be adjusted. This method further demonstrated replay in the prefrontal cortex [40] and in distributed networks of the forebrain ([39]).
(ii). Template-based approaches II: rank-order correlations
A major assumption of the early template-based methods was that the mapping between template and candidate events was linear. That is, the rate of change through a behavioural sequence could be related to the rate of change through the replay sequence with a scalar multiplication (the scaling factor analysis described above assumes this). However, if replay sequences are flexible, dynamically adjusting the rate of change within a given event, this linearity assumption could severely impede our ability to detect and quantify such events.
Perhaps what is important is the ordering of spikes within candidate events, rather than the precise temporal relations between neurons? Lee & Wilson [22] were the first to report replay of multi-neuronal sequences (greater than three neurons) in the hippocampus during sleep. To this end, they used combinatorics to determine the ‘true’ probability to observe the sequence of a candidate replay event knowing the order of firing during exploration, independent of the relative timing between neurons. For some reasons, this method was then replaced by simpler approaches. A series of papers [23,24] have since used the rank-order correlation method that compares only the order in which place fields fire on a maze with the ordering of spikes within a given candidate replay event. The correlation between these two rank orders can then be used to quantify the similarity of sequences, while disregarding precise temporal structure that may be considered ‘noise’. While not strictly a ‘rank-order’ correlation, a recently developed weighted distance correlation is also capable of capturing similar ordinal relationships without relying on linear relationships between templates and candidate events [57]. Specifically, the method is far less susceptible to single ‘gaps’ in a replay trajectory than the rank-order correlation, or weighted correlation (described below) methods.
A major caveat of the rank order method is the ambiguity that is introduced by neurons with multiple place fields. Should a neuron be ordered by its more reliable field? The higher firing rate field? Should it be included twice? Typically, such neurons are excluded when using this approach. The probabilistic approach described below can be much more robust to such ambiguities.
(iii). Template-based approaches III: the Bayesian approach
Another method, initially used to estimate an animals position during behaviour [58], has also been used extensively for detecting and analysing replay [26–28,30,59,60]. By comparing several reconstruction methods, Zhang and colleagues found that the Bayesian framework was particularly amenable to spiking data. Given the average firing rate for n neurons, we estimate the animal's location x given the number of spikes n of all the cells within a time window ,
where n is the number of neurons and is the probability for the animal to be at position x (i.e. the normalized occupancy map).
This method uses an average firing ratemap for each recorded neuron (i.e. it also uses a template) to estimate the probability distribution of the animal's position given a spike count vector at time t. Typically, candidate replay events are discretized into 10–50 ms time bins (τ), and this method is applied to a series of time bins, generating a posterior probability matrix corresponding to approximately 50–500 ms. Once this matrix has been calculated, various algorithms can be used to estimate a goodness of fit, assuming that replay should consist of a continuous trajectory across time bins. The Radon transform [27] and the linear weighted correlation [60] are two common ways to quantify this posterior probability matrix. Another approach consists in fixing the number of spikes per bin, and thus to use bins of variable size [32]. While this technique should lead, by construction, to higher and more homogeneous posterior probability of decoding, it gives similar results to fixed-time bin methods.
(iv). Comparisons and general problems with template-based methods
Each of these methods attempts to quantify a single phenomenon, the degree of similarity between spatio-temporal patterns of neural activity occurring at different points in time. However, it remains unclear how well these methods would agree with one another. Given identical sets of data, do these methods provide similar quantifications of replay? In reviewing the literature of template-based methods, we were unable to find any two papers that used precisely the same data processing and analysis methods. Differences in time bin sizes, smoothing, event detection/inclusion, spike inclusion (first or all), place field definition and additional heuristics made direct comparison of the methods impossible. To overcome this, we used a single dataset (n = 39 recordings, n = 5 rats; figure 3a,b; [61]) where candidate events were detected using a single set of criteria (see the electronic supplementary material). Similar results were observed using simulated data and an alternative previously published dataset [30]. A total of 54 templates were constructed (all linear tracks) using a minimum of at least six place cells with only one field (see caveats of rank-order correlations).
We then provided these candidate events and rate-mapped templates to the rank order correlation method and the Bayesian method, using either the linear weighted correlation or the radon transform to assess goodness of fit. When comparing the rank-order correlation with the linear weighted correlation we found that the event-by-event correlation between these two methods was, on average, R = 0.126 across all sessions and templates (figure 3c). Making a similar comparison between the linear weighted correlation and the radon transform approach, we found a greater degree of agreement (R = 0.43; figure 3d). However, when comparing the rank-order correlation with the radon transform method we found that these metrics were not significantly correlated with one another (R = 0.07; figure 3e). Thus, the determination of which candidate replay events are significant ‘replays’ may depend on the method used, rather than the underlying neural activity pattern. This was confirmed in a set of simulations of candidate events under different signal-to-noise conditions. Given different signal-to-noise ratio, each replay and reactivation method was uniquely susceptible such that agreement across methods could be degraded (figure 4).
Another common issue with the above methods for replay detection has to do with the template itself. It is not clear how such methods could be generalized to non-spatial features of experience. How would one go about creating a template for internal state transitions as they relate to experience and memory? Without measuring every aspect of the experience for an organism (both external and internal sensations) one cannot conclude that a candidate replay event is not ‘replaying’ something the experimenter did not measure. Unsupervised methods for quantifying structure across neural populations have shown promising early results in tackling this problem [31,43,62].
Perhaps the greatest issue with this set of methods is the converse perspective. How do we conclude that a candidate replay event ‘replays’ something significantly? All current approaches have used a within-event shuffling approach. That is, each detected candidate event is evaluated relative to a distribution of shuffled events using data from only that event. Using the various within-event shuffling methods, consistently 5–20% of all candidate events are typically detected as significant replay events [23,25,27,30,60,63]. However, it is often unclear with these methods how many candidate events should be expected to appear as replays given chance (i.e. false positives across a null distribution). This estimation of false-positive rate is highly dependent on the number of cells recorded, their firing rates, and the quantification method used. As an example of this, a random sequence generator (length = 10) can provide significant rank-order correlations with any random template sequence approximately 5–12% of the time (n = 100 events), and when shorter sequences are examined (length = 5) the false positive rate can reach up to 20% (see the online simulations). Additionally, it is known that neural activity is constrained to a much smaller set of sequential patterns than pure randomness [64,65], thus making this a lower bound. This is especially true for event detection methods that rely on periods of silence or suppression (approx. 100 ms) followed by a population burst [24,27,29], a regime where faster firing rate neurons are more likely to fire first [66]. Of course, differences in excitability alone certainly do not result in all the sequences reported in the hippocampus [67], but controlling for these potential confounding factors seems crucial to assess the validity of replay analyses.
Therefore, by examining single events relative to a distribution of shuffles it is difficult to conclude that something is being replayed. Rather, examining the proportion of significant events, out of all candidate events, is necessary if we are to conclude that an experience has altered a neural network in such a way that it replicates previously occurring sequential activity more than would be expected by chance. It is important to note here that changes in excitability and firing rates across the PRE and POST session [17] may change the proportion of events expected by chance (i.e. the false positive rate) to be replays. Along the same lines, a recent example of this approach reported that replay trajectories, when the whole distribution of events is examined, do not necessarily reinstate previously experienced exploration paths but instead matches the statistics expected from a fluid undergoing Brownian diffusion [32]. This raises the question of what constitutes replay of actual memories versus spontaneous and random exploration during sleep of the attractor states of the network [36,37,42,43].
(v). General problems with reactivation and replay methods
One key limitation is thus how cell-pair correlation depends on intrinsic and non-specific factors. It is now well established, both experimentally and theoretically, that the correlation between two spike trains is a function of the firing rate of the two neurons, independent of the actual amount of shared inputs [14]. Hence, the change in intrinsic excitability initially reported in the hippocampus [17] could explain, at least in part, the change in cell-pair correlation [68]. A systematic review and analysis of this possibility is still missing in the field.
Another aspect directly related to changes in the excitability is the distribution of firing rates observed in typical electrophysiological recordings (approx. 0.001–100 Hz). This lognormally distributed range of firing rates is problematic in that most of the current methods can be heavily biased by a small subset of the fastest firing neurons. While some methods attempt to equalize this through normalization (z-scoring, ICA, etc.), it is less clear how the brain might weigh such vastly different scales of firing in reading out reactivation/replay activity. A related, and unexplored topic is the influence that time bin size has on the results of these methods. Typical time bin sizes are approximately 50–200 ms for many reactivation studies, and approximately 10–50 ms for many replay studies, however, a systemic variation of bin size and its impact on pattern detection is lacking. Preliminary simulations suggest bin size can greatly alter how some template-based replay detection methods perform (see the online simulations).
An intriguing, yet understudied, aspect of hippocampal physiology that may impact our interpretation of reactivation and replay is the time required to conduct these types of experiments. As this paradigm can take many hours (3–10) and often uses food or water rewards during the novel maze exposure, it is important to note that circadian and metabolic effects on activity patterns have not been thoroughly examined within this paradigm. It is worth noting that hippocampal ripple rate may be modulated over the circadian cycle, independent from circadian effects on sleep/wake, (D. Tingley 2019, unpublished) and hippocampal neurons express receptors for many hormones related to metabolic function [69].
4. Future directions
(a). Unifying current methods
Perhaps the unifying theme in reviewing the methods for reactivation and replay is the degree of variability in how they are applied, both at the level of data preprocessing and in the assumptions that each method makes with respect to the data. In some cases, these discrepancies in methodology appear to be contributing to differences in interpretation [34,35,70]. As additional methods are developed, it will be crucial for researchers to directly compare multiple methods to assess how similarly, or different, new methods are from those that have been previously published. Other possibilities include adopting a single community-developed code base and standardization [71], or further developing a taxonomy of methods [72] as have been done in some fields.
(b). Template-free approaches
A set of analytical approaches also exist that may be used to examine replay without the generation of a behavioural template. These methods quantify neural data in an unsupervised manner that allows the experimenter to capture reliable patterns during a period of exploration or behaviour. These patterns can then be compared with patterns observed during PRE or POST behaviour recording sessions and warped in time to assess compression or expansion of such patterns. While a clear benefit of these approaches is the ability to relate two sets of data to each other without the use of a precise template, this means the experimenter may not have a good idea what the observed patterns are best related to in terms of the animals' behaviour or state (i.e. we may be unable to ground such relations to anything meaningful). Nonetheless, promising new methods that decompose population time series [62], cluster neural patterns [73,74] or estimate neural states [31,75] have begun to be used for the unsupervised detection and quantification of neural sequences. Finally, the recent development of deep learning techniques that can capture the statistics of neuronal patterns, even in single trials [76] is an interesting direction that will probably attract a lot of attention in the coming years.
5. Generalized assembly detection: what is the ‘relevant’ pattern?
While much work has been done to detect and quantify activity patterns across ensembles of neurons (see [77] for review), it is often less clear how the statistics of neural data impact the interpretability of such methods. The study of reactivation and replay, as we have described it so far, present one advantage: these phenomena represent a sort of ‘ground-truth’, as the reinstatement of a neuronal pattern during sleep somehow validates the approach, unlike a pure statistical description of neuronal data independent of memory processes. Yet, many questions remain unanswered. Should two neurons with an order of magnitude difference in firing rate be treated the same? Can a post-synaptic neuron read-out (i.e. integrate) these spatio-temporal patterns which are often distributed across hundreds of milliseconds?
Such a generalized framework for ensemble detection, given such first-order statistics, could help to unify a field where no two papers use precisely the same method of quantification. We still do not know which, if any, mental state ‘replay’ corresponds to. To break through this impasse, we can no longer keep examining these phenomena relative to the external world. Perhaps the perspective we should be taking, is that of a downstream neuron or population. For example, a post-synaptic neuron learning the covariance between its inputs with Hebbian synapses and regularizing its total synaptic weights performs, at first approximation, a process identical to PCA [78]. Rather than asking what a particular methodological approach can extract from a population of neurons, designing methods that behave like post-synaptic neurons or populations would be a fruitful perspective when asking what the relevant information content is within a population of observed neurons.
Supplementary Material
Acknowledgements
The authors thank the reviewers for their careful and insightful comments.
Data accessibility
Replay and reactivation methods, as well as simulations, are available in the RnR_methods toolbox: https://github.com/DavidTingley/RnR_methods.
Authors' contributions
D.T. analysed the data, D.T. and A.P. wrote the manuscript.
Competing interests
We declare we have no competing interests.
Funding
This work was supported by a Canadian Research Chair in Systems Neuroscience (grant no. 245716), a CIHR Project grant (no. 155957), an NSERC Discovery grant (no. RGPIN-2018-04600) and an IRDC grant (no. 108877-001) to A.P.
References
- 1.Buzsáki G. 1989. Two-stage model of memory trace formation: a role for ‘noisy’ brain states. Neuroscience 31, 551–570. ( 10.1016/0306-4522(89)90423-5) [DOI] [PubMed] [Google Scholar]
- 2.Marr D. 1970. Simple memory: a theory for archicortex. Phil. Trans. R. Soc. Lond. B 262, 23–81. ( 10.1098/rstb.1971.0078) [DOI] [PubMed] [Google Scholar]
- 3.Scoville WB, Milner B. 1957. Loss of recent memory after bilateral hippocampal lesions. J. Neurol. Neurosurg. Psychiatry 20, 11–21. ( 10.1136/jnnp.20.1.11) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Fishbein W, Gutwein BM. 1977. Paradoxical sleep and memory storage processes. Behav. Biol. 19, 425–464. ( 10.1016/S0091-6773(77)91903-4) [DOI] [PubMed] [Google Scholar]
- 5.Hennevin E, Hars B, Maho C, Bloch V. 1995. Processing of learned information in paradoxical sleep: relevance for memory. Behav. Brain Res. 69, 125–135. ( 10.1016/0166-4328(95)00013-J) [DOI] [PubMed] [Google Scholar]
- 6.Karni A, Tanne D, Rubenstein BS, Askenasy JJM, Sagi D. 1994. Dependence on REM sleep of overnight improvement of a perceptual skill. Science 265, 679–682. ( 10.1126/science.8036518) [DOI] [PubMed] [Google Scholar]
- 7.Smith C. 1995. Sleep states and memory processes. Behav. Brain Res. 69, 137–145. ( 10.1016/0166-4328(95)00024-N) [DOI] [PubMed] [Google Scholar]
- 8.Buzsáki G, Horvath Z, Urioste R, Hetke J, Wise K. 1992. High-frequency network oscillation in the hippocampus. Science 256, 1025–1027. ( 10.1126/science.1589772) [DOI] [PubMed] [Google Scholar]
- 9.Wilson MA, McNaughton BL. 1994. Reactivation of hippocampal ensemble memories during sleep. Science 265, 676–679. ( 10.1126/science.8036517) [DOI] [PubMed] [Google Scholar]
- 10.Chrobak JJ, Buzsáki G. 1994. Selective activation of deep layer (V–VI) retrohippocampal cortical neurons during hippocampal sharp waves in the behaving rat. J. Neurosci. 14, 6160–6170. ( 10.1523/JNEUROSCI.14-10-06160.1994) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Qin Y-L, Mcnaughton BL, Skaggs WE, Barnes CA. 1997. Memory reprocessing in corticocortical and hippocampocortical neuronal ensembles. Phil. Trans. R. Soc. B 352, 1525–1533. ( 10.1098/rstb.1997.0139) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Kudrimoti HS, Barnes CA, Mcnaughton BL. 1999. Reactivation of hippocampal cell assemblies: effects of behavioral state, experience, and EEG dynamics. J. Neurosci. 19, 4090–4101. ( 10.1523/JNEUROSCI.19-10-04090.1999) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Pennartz CM, Lee E, Verheul J, Lipa P, Barnes CA, McNaughton BL. 2004. The ventral striatum in off-line processing: ensemble reactivation during sleep and modulation by hippocampal ripples. J. Neurosci. 24, 6446–6456. ( 10.1523/JNEUROSCI.0575-04.2004) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.De La Rocha J, Doiron B, Shea-Brown E, Josić K, Reyes A. 2007. Correlation between neural spike trains increases with firing rate. Nature 448, 802–806. ( 10.1038/nature06028) [DOI] [PubMed] [Google Scholar]
- 15.Giri B, Miyawaki H, Mizuseki K, Cheng S, Diba K. 2019. Hippocampal reactivation extends for several hours following novel experience. J. Neurosci. 39, 866–875. ( 10.1523/JNEUROSCI.1950-18.2018) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Louie K, Wilson MA. 2001. Temporally structured replay of awake hippocampal ensemble activity during rapid eye movement sleep. Neuron 29, 145–156. ( 10.1016/S0896-6273(01)00186-6) [DOI] [PubMed] [Google Scholar]
- 17.Pavlides C, Winson J. 1989. Influences of hippocampal place cell firing in the awake state on the activity of these cells during subsequent sleep episodes. J. Neurosci. 9, 2907–2918. ( 10.1523/JNEUROSCI.09-08-02907.1989) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Skaggs WE, McNaughton BL. 1996. Replay of neuronal firing sequences in rat hippocampus during sleep following spatial experience. Science 271, 1870–1873. ( 10.1126/science.271.5257.1870) [DOI] [PubMed] [Google Scholar]
- 19.Nádasdy Z, Hirase H, Czurkó A, Csicsvari J, Buzsáki G. 1999. Replay and time compression of recurring spike sequences in the hippocampus. J. Neurosci. 19, 9497-9507. ( 10.1523/JNEUROSCI.19-21-09497.1999) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Lopes-dos-Santos V, Ribeiro S, Tort A. 2013. Detecting cell assemblies in large neuronal populations. J. Neurosci. Methods 220, 149–166. ( 10.1016/j.jneumeth.2013.04.010) [DOI] [PubMed] [Google Scholar]
- 21.van de Ven GM, Trouche S, McNamara CG, Allen K, Dupret D. 2016. Hippocampal offline reactivation consolidates recently formed cell assembly patterns during sharp wave-ripples. Neuron 92, 968–974. ( 10.1016/j.neuron.2016.10.020) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Lee AK, Wilson MA. 2002. Memory of sequential experience in the hippocampus during slow wave sleep. Neuron 36, 1183–1194. ( 10.1016/S0896-6273(02)01096-6) [DOI] [PubMed] [Google Scholar]
- 23.Foster DJ, Wilson MA. 2006. Reverse replay of behavioural sequences in hippocampal place cells during the awake state. Nature 440, 680–683. ( 10.1038/nature04587) [DOI] [PubMed] [Google Scholar]
- 24.Diba K, Buzsáki G. 2007. Forward and reverse hippocampal place-cell sequences during ripples. Nat. Neurosci. 10, 1241–1242. ( 10.1038/nn1961) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Karlsson MP, Frank LM. 2009. Awake replay of remote experiences in the hippocampus. Nat. Neurosci. 12, 913–918. ( 10.1038/nn.2344) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Johnson A, Redish AD. 2007. Neural ensembles in CA3 transiently encode paths forward of the animal at a decision point. J. Neurosci. 27, 12 176–12 189. ( 10.1523/jneurosci.3761-07.2007) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Davidson TJ, Kloosterman F, Wilson MA. 2009. Hippocampal replay of extended experience. Neuron 63, 497–507. ( 10.1016/j.neuron.2009.07.027) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Dragoi G, Tonegawa S. 2011. Preplay of future place cell sequences by hippocampal cellular assemblies. Nature 469, 397–401. ( 10.1038/nature09633) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Pfeiffer BE, Foster DJ. 2013. Hippocampal place-cell sequences depict future paths to remembered goals. Nature 497, 74–79. ( 10.1038/nature12112) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Grosmark AD, Buzsáki G. 2016. Diversity in neural firing dynamics supports both rigid and learned hippocampal sequences. Science 351, 1440–1444. ( 10.1126/science.aad1935) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Maboudi K, Ackermann E, de Jong LW, Pfeiffer B, Foster D, Diba K, Kemere C. 2018. Uncovering temporal structure in hippocampal output patterns. Elife 7, e34467 ( 10.7554/eLife.34467) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Stella F, Baracskay P, O'Neill J, Csicsvari J. 2019. Hippocampal reactivation of random trajectories resembling Brownian diffusion. Neuron 102, 450–461. ( 10.1016/j.neuron.2019.01.052) [DOI] [PubMed] [Google Scholar]
- 33.Ji D, Wilson MA. 2007. Coordinated memory replay in the visual cortex and hippocampus during sleep. Nat. Neurosci. 10, 100–107. ( 10.1038/nn1825) [DOI] [PubMed] [Google Scholar]
- 34.Ólafsdóttir HF, Carpenter F, Barry C. 2016. Coordinated grid and place cell replay during rest. Nat. Neurosci. 19, 792–794. ( 10.1038/nn.4291) [DOI] [PubMed] [Google Scholar]
- 35.O'Neill J, Boccara CN, Stella F, Schoenenberger P, Csicsvari J. 2017. Superficial layers of the medial entorhinal cortex replay independently of the hippocampus. Science 355, 184–188. ( 10.1126/science.aag2787) [DOI] [PubMed] [Google Scholar]
- 36.Trettel SG, Trimper JB, Hwaun E, Fiete IR, Colgin LL. 2019. Grid cell co-activity patterns during sleep reflect spatial overlap of grid fields during active behaviors. Nat. Neurosci. 22, 609–617. ( 10.1038/s41593-019-0359-6) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Gardner RJ, Lu L, Wernle T, Moser MB, Moser EI. 2019. Correlation structure of grid cells is preserved during sleep. Nat. Neurosci. 22, 598–608. ( 10.1038/s41593-019-0360-0) [DOI] [PubMed] [Google Scholar]
- 38.Hoffman KL, McNaughton BL. 2002. Coordinated reactivation of distributed memory traces in primate neocortex. Science 297, 2070-2073. ( 10.1126/science.1073538) [DOI] [PubMed] [Google Scholar]
- 39.Ribeiro S, Gervasoni D, Soares ES, Zhou Y, Lin SC, Pantoja J, Lavine M, Nicolelis MAL. 2004. Long-lasting novelty-induced neuronal reverberation during slow-wave sleep in multiple forebrain areas. PLoS Biol. 2, 126–137. ( 10.1371/journal.pbio.0020024) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40.Euston DR, Tatsuno M, McNaughton BL. 2007. Fast-forward playback of recent memory sequences in prefrontal cortex during sleep. Science 318, 1147–1150. ( 10.1126/science.1148979) [DOI] [PubMed] [Google Scholar]
- 41.Brandon MP, Bogaard AR, Andrews CM, Hasselmo ME. 2012. Head direction cells in the postsubiculum do not show replay of prior waking sequences during sleep. Hippocampus 22, 604–618. ( 10.1002/hipo.20924) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42.Peyrache A, Lacroix MM, Petersen PC, Buzsáki G. 2015. Internally organized mechanisms of the head direction sense. Nat. Neurosci. 18, 569–575. ( 10.1038/nn.3968) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43.Chaudhuri R, Gercek B, Pandey B, Peyrache A, Fiete IR. 2019. The intrinsic attractor manifold and population dynamics of a canonical cognitive circuit across waking and sleep. Nat. Neurosci. 22, 1512–1520. ( 10.1038/s41593-019-0460-x) [DOI] [PubMed] [Google Scholar]
- 44.Lansink CS, Goltstein PM, Lankelma JV, McNaughton BL, Pennartz CM. 2009. Hippocampus leads ventral striatum in replay of place-reward information. PLoS Biol. 7, e1000173 ( 10.1371/journal.pbio.1000173) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 45.Peyrache A, Khamassi M, Benchenane K, Wiener SI, Battaglia FP. 2009. Replay of rule-learning related neural patterns in the prefrontal cortex during sleep. Nat. Neurosci. 12, 919–926. ( 10.1038/nn.2337) [DOI] [PubMed] [Google Scholar]
- 46.Girardeau G, Inema I, Buzsáki G. 2017. Reactivations of emotional memory in the hippocampus-amygdala system during sleep. Nat. Neurosci. 20, 1634–1642. ( 10.1038/nn.4637) [DOI] [PubMed] [Google Scholar]
- 47.Rothschild G, Eban E, Frank LM. 2017. A cortical–hippocampal–cortical loop of information processing during memory consolidation. Nat. Neurosci. 20, 251–259. ( 10.1038/nn.4457) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 48.Sjulson L, Peyrache A, Cumpelik A, Cassataro D, Buzsáki G. 2018. Cocaine place conditioning strengthens location-specific hippocampal coupling to the nucleus accumbens. Neuron 98, 926–934. ( 10.1016/j.neuron.2018.04.015) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 49.Chapin JK, Moxon KA, Markowitz RS, Nicolelis MAL. 1999. Real-time control of a robot arm using simultaneously recorded neurons in the motor cortex. Nat. Neurosci. 2, 283–287. ( 10.1038/10223) [DOI] [PubMed] [Google Scholar]
- 50.Mazor O, Laurent G. 2005. Transient dynamics versus fixed points in odor representations by locust antennal lobe projection neurons. Neuron 48, 661–673. ( 10.1016/j.neuron.2005.09.032) [DOI] [PubMed] [Google Scholar]
- 51.Peyrache A, Benchenane K, Khamassi M, Wiener SI, Battaglia FP. 2010. Principal component analysis of ensemble recordings reveals cell assemblies at high temporal resolution. J. Comput. Neurosci. 29, 309–325. ( 10.1007/s10827-009-0154-6) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 52.Renart A, De RJ, Bartho P, Hollender L, Parga N, Reyes A, Harris KD. 2010. The asynchronous state in cortical circuits. Science 327, 587–591. ( 10.1126/science.1179850) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 53.Lopes-dos-Santos V, Conde-Ocazionez S, Nicolelis MAL, Ribeiro ST, Tort ABL. 2011. Neuronal assembly detection and cell membership specification by principal component analysis. PLoS ONE 6, e20996 ( 10.1371/journal.pone.0020996) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 54.Hyvärinen A, Oja E. 2000. Independent component analysis: algorithms and applications. Neural Netw. 13, 411–430. ( 10.1016/S0893-6080(00)00026-5) [DOI] [PubMed] [Google Scholar]
- 55.Cunningham JP, Yu BM. 2014. Dimensionality reduction for large-scale neural recordings. Nat. Neurosci. 17, 1500–1509. ( 10.1038/nn.3776) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 56.Collins M, Schapire RE, Avenue P, Park F. 2002. A generalization of principal component analysis to the exponential family. Adv. Neural Inf. Process. Syst. 14, 617–624. [Google Scholar]
- 57.Liu S, Grosmark AD, Chen Z. 2018. Methods for assesment of memory reactivation. Neural Comput. 30, 2175–2209. ( 10.1162/neco_a_01090) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 58.Zhang K, Ginzburg I, McNaughton BL, Sejnowski TJ. 1998. Interpreting neuronal population activity by reconstruction: unified framework with application to hippocampal place cells. J. Neurophysiol. 79, 1017–1044. ( 10.1152/jn.1998.79.2.1017) [DOI] [PubMed] [Google Scholar]
- 59.Pfeiffer BE, Foster DJ. 2015. Autoassociative dynamics in the generation of sequences of hippocampal place cells. Science 349, 180–184. ( 10.1126/science.aaa9633) [DOI] [PubMed] [Google Scholar]
- 60.Wu X, Foster DJ. 2014. Hippocampal replay captures the unique topological structure of a novel environment. J. Neurosci. 34, 6459–6469. ( 10.1523/JNEUROSCI.3414-13.2014) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 61.Tingley D, Buzsáki G. 2018. Transformation of a spatial map across the hippocampal-lateral septal circuit. Neuron 98, 1–14. ( 10.1016/j.neuron.2018.04.028) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 62.Mackevicius EL, Bahle AH, Williams AH, Gu S, Denisenko NI, Goldman MS, Fee MS. 2019. Unsupervised discovery of temporal sequences in high-dimensional datasets, with applications to neuroscience. Elife 8, 1e38471 ( 10.7554/eLife.38471) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 63.Michon F, Sun J-J, Kim CY, Ciliberti D, Kloosterman F. 2019. Post-learning hippocampal replay selectively reinforces spatial memory for highly rewarded locations. Curr. Biol. 29, 1436–1444. ( 10.1016/j.cub.2019.03.048) [DOI] [PubMed] [Google Scholar]
- 64.Luczak A, Barthó P, Harris KD. 2009. Spontaneous events outline the realm of possible sensory responses in neocortical populations. Neuron 62, 413–425. ( 10.1016/j.neuron.2009.03.014) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 65.Peyrache A, Benchenane K, Khamassi M, Wiener SI, Battaglia FP. 2010. Sequential reinstatement of neocortical activity during slow oscillations depends on cells' global activity. Front. Syst. Neurosci. 3, 1–7. ( 10.3389/neuro.06.018.2009) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 66.Levenstein D, Watson BO, Rinzel J, Buzsáki G. 2017. Sleep regulation of the distribution of cortical firing rates. Curr. Opin. Neurobiol. 44, 34–42. ( 10.1016/j.conb.2017.02.013) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 67.Farooq U, Sibille J, Liu K, Dragoi G. 2019. Strengthened temporal coordination within pre-existing sequential cell assemblies supports trajectory replay. Neuron 103, 719–733. ( 10.1016/j.neuron.2019.05.040) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 68.Battaglia FP, Sutherland GR, Cowen SL, Mc Naughton BL, Harris KD. 2005. Firing rate modulation: a simple statistical view of memory trace reactivation. Neural Netw. 18, 1280–1291. ( 10.1016/j.neunet.2005.08.011) [DOI] [PubMed] [Google Scholar]
- 69.Lathe R. 2001. Hormones and the hippocampus. J. Endocrinol. 169, 205–231. ( 10.1677/joe.0.1690205) [DOI] [PubMed] [Google Scholar]
- 70.Trimper JB, Trettel SG, Hwaun E, Colgin LL. 2017. Methodological caveats in the detection of coordinated replay between place cells and grid cells. Front. Syst. Neurosci. 11, 1–14. ( 10.3389/fnsys.2017.00057) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 71.Oostenveld R, Fries P, Maris E, Schoffelen JM. 2011. FieldTrip: open source software for advanced analysis of MEG, EEG, and invasive electrophysiological data. Comput. Intell. Neurosci. 2011, 156869 ( 10.1155/2011/156869) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 72.Soares JM, Magalhães R, Moreira PS, Sousa A, Ganz E, Sampaio A, Alves V, Marques P, Sousa N. 2016. A Hitchhiker's guide to functional magnetic resonance imaging. Front. Neurosci. 10, 1–35. ( 10.3389/fnins.2016.00515) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 73.Grossberger L, Battaglia FP, Vinck M. 2018. Unsupervised clustering of temporal patterns in high-dimensional neuronal ensembles using a novel dissimilarity measure. PLoS. Comput. Biol. 14, e1006283 ( 10.1101/252791) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 74.Meij RVD, Voytek B. 2018. Uncovering neuronal networks defined by consistent between-neuron spike timing from neuronal spike recordings. eNeuro 5, 1–21. ( 10.1523/eneuro.0379-17.2018) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 75.Seidemann E, Meilijson I, Abeles M, Bergman H, Vaadia E. 1996. Simultaneously recorded single units in the frontal cortex go through sequences of discrete and stable states in monkeys performing a delayed localization task. J. Neurosci. 16, 752–768. ( 10.1523/JNEUROSCI.16-02-00752.1996) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 76.Pandarinath C, et al. 2018. Inferring single-trial neural population dynamics using sequential auto-encoders. Nat. Methods 15, 805–815. ( 10.1038/s41592-018-0109-9) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 77.Quaglio P, Rostami V, Torre E, Grün S. 2018. Methods for identification of spike patterns in massively parallel spike trains. Biol. Cybern. 112, 57–80. ( 10.1007/s00422-018-0755-0) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 78.Oja E. 1982. Simplified neuron model as a principal component analyzer. J. Math. Biol. 15, 267–273. ( 10.1007/BF00275687) [DOI] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
Replay and reactivation methods, as well as simulations, are available in the RnR_methods toolbox: https://github.com/DavidTingley/RnR_methods.