Summary
During pauses in exploration, ensembles of place cells in the rat hippocampus re-express firing sequences corresponding to recent spatial experience. Such ‘replay’ co-occurs with ripple events: short-lasting (~50–120 ms), high frequency (~200 Hz) oscillations that are associated with increased hippocampal-cortical communication. In previous studies, rats explored small environments, and replay was found to be anchored to the rat’s current location, and compressed in time such that replay of the complete environment occurred during a single ripple event. It is not known whether or how longer behavioral sequences are replayed in the hippocampus. Here we show, using a neural decoding approach, that firing sequences corresponding to long runs through a large environment are replayed with high fidelity (in both forward and reverse order), and that such replay can begin at remote locations on the track. Extended replay proceeds at a characteristic virtual speed of ~8 m/s, and remains coherent across trains of ripple events. These results suggest that extended replay is composed of chains of shorter subsequences, which may reflect a strategy for the storage and flexible expression of memories of prolonged experience.
Introduction
Place cells in the hippocampal formation fire selectively when an animal moves through particular locations (“place fields”) in the environment (O’Keefe and Dostrovsky, 1971; Wilson and McNaughton, 1993). As a consequence, when the animal travels along a given trajectory hippocampal cells with place fields on that trajectory are activated in sequence. During pauses in locomotion, and during slow-wave sleep, many place cells are recruited in intermittent population bursts, which are accompanied by ripples in the hippocampal local field potential (Buzsaki et al., 1992; Chrobak and Buzsaki, 1996). The firing order of place cells during those bursts reflects a memory for the order in which they were activated during previous exploration. Such ‘replay’ has been observed during slow-wave sleep (Ji and Wilson, 2007; Lee and Wilson, 2002; Nadasdy et al., 1999; Wilson and McNaughton, 1994) as well as during immobility on linear tracks (Diba and Buzsaki, 2007; Foster and Wilson, 2006) and in an open field (Csicsvari et al., 2007).
During replay events in rats, place cell firing sequences are re-expressed at a faster rate than during actual experience (Diba and Buzsaki, 2007; Foster and Wilson, 2006; Ji and Wilson, 2007; Lee and Wilson, 2002). For the small 1–2 meter long linear tracks used in previous studies, the firing sequence of a set of place cells that spans the complete environment can be re-expressed at the same time scale of a single ripple (50–120 milliseconds (Ylinen et al., 1995)). These results can be accounted for by a model in which sensory input drive to place cells is ‘read out’, possibly by a sweeping release of inhibition during a single sharp wave-ripple (Csicsvari et al., 2007; Diba and Buzsaki, 2007; Foster and Wilson, 2006).
The limited duration of single ripple events suggest that awake replay in a large environment should be limited to a small region of space. In the wild, however, rats typically navigate over tens, or even hundreds of meters (Jackson, 1982). Can the hippocampus support replay across larger spatial scales? If so, is such extended replay further compressed in time or is there a fixed rate at which replay progresses? If the latter, how are longer sequences mapped onto short-lasting ripple events?
Results
Extended replay detected by neural decoding
Simultaneous recordings of multiple single units in hippocampal area CA1 were made (n=47, 34, 23 and 32 units with consistent place-related firing in rats 1–4; see Experimental Procedures) while rats explored a 10.3-meter long track (Fig. 1A–B). Food reward was provided at both ends of the track, but since rats were not pre-trained, behavior was variable and the animals frequently paused at many locations on the track (Fig. 1C). We linearized the animal’s position, such that it represented the distance from one end of the track (Fig. 1C), and the behavior of the rat was classified as either ‘RUN’ (linear speed > 15 cm/s ) or ‘STOP’ (linear speed < 5 cm/s) (Fig. 1E). Candidate replay events (‘CAND’) were identified as periods during STOP with elevated multi-unit activity across all electrodes (Fig. 1D–E; see Experimental Procedures; mean rate during STOP of 0.36, 0.40, 0.32, 0.40 events/s in rats 1–4). Candidate events were characterized by sharp on- and offsets (Fig. 1G–H), and event durations ranged from 40–1018 ms (Fig. 1F), with 19% of events (17%, 22%, 16%, 14% in rats 1–4) characterized as ‘long’ (>250 ms; chosen to be more than twice the typical duration of a single ripple (Ylinen et al., 1995)).
To evaluate whether candidate events contained replayed spatial memory sequences, we employed a probabilistic neural decoding strategy to estimate the animal’s position on the track from the ensemble of spike trains (Brown et al., 1998; Wilson and McNaughton, 1993; Zhang et al., 1998). We reasoned that during reactivation of previous experience the position estimate would deviate systematically from the actual position (Johnson and Redish, 2007).
Our algorithm does not require that each cluster used for decoding contains only spikes emitted by a single neuron; successful estimation requires only that the spatial tuning of each unit is stable across the training and decoding epochs. This property of the decoder allows us to make optimal use of the spatial information present in the neural data by including units that are less well isolated, but which nevertheless have a stable spike amplitude signature and carry consistent spatial information. We therefore interpret our results in terms of the behavior of the hippocampal ensemble rather than that of individual place cells; we use the term ‘unit’ rather than ‘cell’ throughout the paper to emphasize this distinction. All reported results were qualitatively similar when calculated using only well-isolated units (see Supplementary Results).
We first confirmed that we could use our decoder to accurately estimate the animal’s position during RUN using 500 ms time windows. Median error for rats 1–4 was 7, 9, 8, and 8 cm, with good performance across the entire environment (Fig. 2A–C; see also Supplementary Fig. 1 and Supplementary Movie 1).
We next applied the decoding algorithm to non-overlapping 20 ms time windows in all candidate events lasting at least 100 ms. During many candidate events the sequence of position estimates described a rapid traversal of a section of the track at a relatively constant speed, even though the animal was stationary (Figs. 2, 3A–C). The decoding algorithm we use is memoryless, and therefore the observed trajectories are not the result of temporal smoothing across neighboring estimates.
In order to characterize individual events, we determined the best linear fit to the observed pattern of position estimates for each candidate event by maximizing a ‘replay score.’ The resulting fit specifies the most likely constant-speed trajectory being replayed, and the replay score corresponds to the mean estimated likelihood that the rat was on the specified trajectory (see Experimental Procedures and Supplementary Fig. 2). To test for statistical significance, we compared the observed replay score for each event to sample distributions of scores obtained after shuffling the original data. Three distinct shuffling regimes were employed to control for non-specific factors possibly contributing to the replay score (Supplementary Fig. 2). First, to control for the chance linear alignment of position estimates, we circularly shifted the estimate at each time point by a random distance (“column-cycle shuffle”). Second, to control for the contribution to the replay score of firing characteristics of single units (e.g. bursting), we randomly permuted the mapping between spiking records and spatial tuning curves (“unit identity shuffle”). Third, to control for a bias of the decoding procedure towards particular locations, we constructed artificial candidate events by combining position estimates taken randomly from the complete set of candidate events in each session (“pseudo-event shuffle”). We performed each shuffle 1500 times and conservatively consider only events with a Monte Carlo p-value < 0.01 under all three shuffles to be significant.
Using these criteria, 16% of all analyzed candidate events contained significant replay trajectories (118/657, 109/699, 12/137, 24/163 events significant for rats 1–4; p < 10−7 for each rat under a binomial distribution assuming a false positive rate of 1%). Of long (>250 ms) candidate events, 33% were significant (59/145, 60/203, 9/36, 10/38 candidate events in rats 1–4; p < 10−10 for each rat). (Using a significance threshold of p < 0.05, 29% of all events, and 50% of long events were found to contain replayed memory sequences, however we chose to use a threshold of p < 0.01 to reduce the likelihood of false positives.)
Speed and location of replayed trajectories
Individual replay events could cover long sections of the track (Fig. 3A–C), and the length of replayed trajectories was linearly correlated with the duration of the events (Fig. 3D), indicating a characteristic speed for replay (Fig 3E; median speed of 8.1 m/s for all significant events; median of 8.7/7.6/10.8/10.5 m/s in rats 1–4). These replay speeds are 15–20 times faster than a typical rat running speed (~0.5 m/s), consistent with previous reports of compression factors for shorter-duration replay events (Lee and Wilson, 2002; Nadasdy et al., 1999).
We next analyzed the relation between the actual position of the animal during replay and the location of the replayed trajectories on the track. Replay occurred while the animal stopped at the ends of the track to consume reward as well as at other locations (Supplementary Fig. 3A–D). Replay in both the A→B and B→A directions was common, with no clear trend across rats (58%, 51%, 25%, 21% of replays from A→B in rats 1–4). Since rats spent a significant amount of time at the reward sites facing away from the track, a higher proportion of replayed trajectories occurred behind the animal (Supplementary Fig. 3; 35% ahead, 65% behind). This bias was not significantly different from chance (33% ahead; p = 0.58, 2-sided Monte Carlo p-value), computed under the null hypothesis that there is no relation between the stopping location of the rat and the position of the replayed trajectory.
Locally and Remotely initiated replay
Previous reports suggested that replay might be influenced by strong local place-related inputs (Csicsvari et al., 2007; Diba and Buzsaki, 2007; Foster and Wilson, 2006). Consistent with this model for replay generation, we found that the start locations of the replay trajectories were strongly biased towards the rat’s current location (Fig. 3F), with 40% of significant replay trajectories starting within 50 cm of the rat’s current location, which we refer to as ‘local replay’ (chance = 17%, calculated by bootstrapping under the null hypothesis that replay trajectories and the rat’s position are uncorrelated, p < 0.0005 pooled across rats). The location of the ends of replay trajectories were not similarly biased towards current location (Fig. 3G), with only 5% ending nearer than 50 cm (chance = 8%, p = 0.99 pooled across rats).
We also observed many significant replay trajectories that began at remote locations (Fig. 3F; see examples in Fig. 3B, Fig. 4C–D). Indeed, 51% of events started at least 1m away from the rat’s current location. Such trajectories could be artifacts of our replay detection method, if we made an error in determining the start time of the candidate event. A remote event could be either a truncated fragment of a long trajectory that actually begins at the current location (i.e. event start time too late; see Supplementary Fig. 7C for a possible example), or an incorrect extrapolation of a shorter trajectory that actually begins at the current location (i.e. start time too early). We conservatively exclude these two classes of possible errors by selecting only trajectories that proceed from a remote location towards the animal; and that never proceed past the current location. Twenty percent of significant replay events (52/263) meet these more stringent criteria and are termed ‘remote replay’ (dashed lines in Supplementary Fig. 3). There are significantly more remote replay events than the number of false positives expected to be generated by our replay detection procedure (52 of 1656 events; p < 10−11 under a binomial distribution, using false positive rate of 1%).
Forward- and reverse-ordered replay
Previous studies have taken advantage of the joint tuning of many CA1 cells to running direction and location on the linear track (McNaughton et al., 1983; Muller et al., 1994) to demonstrate that spiking sequences can be replayed in either the forward or reverse temporal order (Diba and Buzsaki, 2007; Foster and Wilson, 2006). In order to determine the ordering of the observed replay trajectories, we extended our decoding procedure to estimate both the rat’s position and its instantaneous running direction (i.e. whether the rat is running from ‘A→B’ or ‘B→A’) from the entire ensemble (Fig. 4A; see Experimental Procedures). Running direction was estimated correctly during RUN 89%, 83%, 83%, and 89% of time in rats 1–4 (chance 50%; p < 10−12 in each rat).
For each replay event, we computed a ‘replay order score’ which reflected the degree to which our estimate of instantaneous running direction agreed with (+1, forward replay) or disagreed with (−1, reverse replay) the overall direction of the trajectory being replayed (see Experimental Procedures). For example, the reverse replay event in Figure 4D proceeds in the B→A direction (from 7.5 to 2.5 m on the track), but uses the hippocampal ensemble code associated with running in the opposite A→B direction, as indicated by the blue color. Overall, replay order scores were significantly biased away from 0 and towards −1 and 1 (Fig. 4G; p < 0.02 for each rat, one-sided Kolmogorov-Smirnov two-sample test, compared to pseudo-event shuffle distribution), indicating that the hippocampal ensemble tends to represent one running direction consistently within a replay event. Statistical significance of the replay order score was next tested for each event by comparison to a distribution of order scores obtained from shuffled data. Significantly (p < 0.05) forward- and reverse-ordered replays were observed in all sessions (Fig. 4B–D, Supplementary Figs. 5–7 and Supplementary Movie 2) across the full range of event durations (Fig. 4G).
Forward replay is significantly more frequent than reverse replay (p < 0.005 by two-sided binomial test), consistent with a previous report (Diba and Buzsaki, 2007). Of all replay events, 40% (106/263) were significantly forward-ordered, 26% (68/263) were significantly reverse-ordered, with the remaining 33% of events (89/263) classified as ‘mixed’ replay. This difference was also significant (p < 0.002) among replay events longer than 250ms: 48% (66/138) were significantly forward-ordered, and 25% (34/138) were significantly reverse-ordered. Mixed replay events contain significant replay in decoded position, but do not exhibit a consistent directional estimate. Most mixed events exhibit weak or variable direction tuning (e.g. Fig. 4E), but we also occasionally observe events which apparently switch represented directions in mid-replay (e.g. Fig. 4F, Supplementary Figs. 5D & 7C).
We observed no significant difference in the speeds of forward and reverse replay trajectories (Fig. 4H; median speed 8.6 vs. 7.9 m/s; Kolmogorov-Smirnov two-sample test, p = 0.24). Forward and reverse replay trajectories did not preferentially correspond to runs in the A→B or B→A direction (47% of forward, and 52% of reverse replay trajectories proceeded from A→B). Similar proportions of both forward and reverse replay trajectories were initiated locally or remotely (p > 0.5 by two-proportion z-test): 42% of forward and 38% of reverse replay events were local (greater than the respective chance levels of 17% and 19%, p < 0.0005); and 19% of forward and 20% of reverse replay events were remote.
Locally-initiated forward replay will reflect possible future paths, while locally-initiated reverse replay will reflect possible approaches to the animal’s current location. Do such replayed trajectories preferentially express the animal’s actual past and future paths, rather than the paths not taken? To address this question, we analyzed periods when the animal was stopped in the middle of the track (at least 2 m from either end), where there are two possible paths associated with the animal’s current location. We did not find a strong bias for locally-initiated forward replay trajectories to represent the actual future path (15 actual future path vs. 12 opposite direction). Similarly, there was no strong bias for locally-initiated reverse replay to represent the actual path taken by the animal to reach the current location (9 actual past path vs. 7 opposite direction).
Relationship between extended replay and ripples
Replay events have consistently been found to co-occur with ripple oscillations in the hippocampal local field potential (Diba and Buzsaki, 2007; Foster and Wilson, 2006; Ji and Wilson, 2007; Lee and Wilson, 2002; Nadasdy et al., 1999). Consistent with these reports, we found that ripple emission rate was much higher during replay events than during non-candidate event STOP periods ( 8.8–11.8 s−1 vs. 0.17–0.27 s−1; p < 10−4 in each rat). Detected ripples were associated with transient deflections in the LFP (‘sharp waves’; Fig. 5B–D) and with transient increases in multi-unit activity (78–88% increase; p < 10−7 for each rat; Fig. 5C,E), and single unit firing rate (81–94% increase; p < 0.0002 for each rat). These effects each lasted approximately 50 ms, which is comparable to the duration of single sharp wave-ripple complexes as described previously (Ylinen et al., 1995). In order to characterize the relationship between ripple events and extended replay, we performed a linear regression and found a strong positive correlation between the number of emitted ripples and the duration of the replay event (Fig. 5A; R2 = 0.65, 0.45, 0.70, 0.67 for rats 1–4, p < 0.001 for each rat). These results demonstrate that extended replay spans trains of discrete sharp wave-ripple events.
Next we explored whether the confidence of the position reconstruction during replay events was uniform across the ripple trains. We find that reconstruction quality during replay, as measured by the mode of the position estimate, is significantly elevated at ripple peak times (Fig. 5F; 0.20–0.26 vs. 0.32–0.41; p < 10−4 for each rat). We also find that the error between the replayed trajectory and the estimated position is significantly lower at ripple peak times (Fig. 5G.; 87–131 cm vs. 182–227 cm, p < 0.003 for each rat). These data show that replay integrity is not uniform across the duration of an event, but that it is modulated in association with ripple trains, suggesting that extended replay consists of chains of shorter ripple-associated subsequences.
Discussion
We have shown that time-compressed forward and reverse hippocampal replay of long behavioral sequences is common during pauses in exploration of a large environment, and is associated with trains of ripple events. In contrast to studies conducted in smaller environments, we find that replay is neither limited to locations where reward is consumed, nor exclusively tied to the animal’s current location.
We developed and used a neural decoding approach for replay detection. Performing replay detection in the decoded spatial domain affords advantages over methods that examine firing order across individual units, such as pair-wise correlation (Wilson and McNaughton, 1994) and spike sequence detection (Diba and Buzsaki, 2007; Foster and Wilson, 2006; Lee and Wilson, 2004). Our method allowed us to examine the fine spatial structure of replayed trajectories in a statistically rigorous manner, and makes optimal use of the spatial information contained in hippocampal spikes, including the activity of cells with irregularly-shaped place fields (such as those with multiple firing fields (Fenton et al., 2008); Supplementary Fig. 8).
Using this decoding approach, we demonstrated that behavioral sequences spanning long sections of a 10 m track are re-expressed during population bursts lasting up to 700 ms. Replay trajectories proceed at a constant speed of ~8 m/s, approximately 15–20 times faster than typical rat running speeds. Such values are consistent with the compression factors determined previously by analysis of spike time lags in smaller environments (Diba and Buzsaki, 2007; Lee and Wilson, 2002). The constant speed of replay contrasts strongly with the rats’ highly irregular behavior on the track, suggesting that the sequential structure of the behavioral experience, rather than the detailed time course of particular episodes, is re-expressed during replay. Constant-speed replay is also reminiscent of studies in humans showing that response times are linearly dependent on distance traveled across an imagined map (Kosslyn et al., 1978), or on the magnitude of mental rotation of 3-dimensional objects (Shepard and Metzler, 1971).
We confirmed previous reports that awake replay events are associated with sharp wave-ripples in the local field potential (Csicsvari et al., 2007; Diba and Buzsaki, 2007; Foster and Wilson, 2006). However, the extended replay sequences we report last much longer than the duration of a single sharp wave-ripple event and we demonstrate that they span trains of sharp wave-ripples. Such trains have been noted since the first reports of ripples (Buzsaki et al., 1983; O’Keefe and Nadel, 1978; Suzuki and Smith, 1987), but no function has previously been ascribed to this phenomenon. CA1 unit activity is highest at the peak of individual ripples, corresponding to an increased confidence of the position estimate, which suggests that extended hippocampal replay may consist of chains of subsequences, each with a spatial extent of ~50 cm (based on a ripple duration of 60 ms, and a replay speed of 8 m/s). Temporally compressed place cell sequences with a similar duration and spatial extent also occur during individual theta cycles (Foster and Wilson, 2007) (Supplementary Fig. 9), as predicted from the observation of phase precession in single place cells (Skaggs et al., 1996).
Both theta sequences (Mehta et al., 2002) and ripple-associated replay (Foster and Wilson, 2006) have been proposed to arise from a translation of place cell excitability into a phase or latency offset by a sweeping decrease in inhibition. This model predicts that ripple-associated sequences in the hippocampus should be limited to roughly the spatial scale of a single place field, and would therefore require that longer sequences consist of several sharp wave-ripple associated subsequences. One possible mechanism for the generation of trains of subsequences is provided by the re-entrant loops in the hippocampal-entorhinal circuitry (Canto et al., 2008; Kloosterman et al., 2004). Following each ripple, current hippocampal output to the entorhinal cortex could be fed back to the hippocampus, providing the inputs required for expression of the next subsequence. Alternatively, extended replay may reflect the continuous operation of an auto-associative network, possibly in area CA3 (August and Levy, 1999). Recordings across multiple brain regions will be necessary to test these hypotheses.
We found a bias for both forward- and reverse-ordered replay trajectories to begin near the animal, which suggests that such events could be used for evaluation of immediate future and past paths. We also found that when the rat was stopped in the middle of the track, where there are multiple possible paths away from (and possible approaches to) the current location, replayed trajectories were not strongly correlated with the animal’s actual behavior. In particular, forward replay trajectories were not predictive of the upcoming path, and reverse replay did not preferentially reflect the path just taken by the animal. These results suggest that replayed trajectories represent the set of possible future or past paths linked to the animal’s current position, rather than the actual paths. Further study of the correspondence between replay order and behavior may benefit from the use of tasks that place specific demands on the animal’s evaluation of past and future experience.
Diba and Buzsáki (2007) found that forward replay beginning at the present location, moving along the upcoming path, was more common than forward replay beginning at a remote location and proceeding towards the animal’s current location along the preceding path. Similarly, they find a preference for reverse replay events to represent the previous path (which, since it is replayed in reverse, is also initiated locally). These results are consistent with our observation of a bias towards local initiation for both forward and reverse replay.
We also report that a significant number of replay events express trajectories beginning at locations remote from the physical location of the rat. This indicates that during awake replay the hippocampus has access to a broad range of stored memory sequences that are not solely dependent on the current location or the behavior just prior to the replay event. In this respect, awake replay is similar to sequence reactivation during slow-wave sleep (Ji and Wilson, 2007; Lee and Wilson, 2002). In our experiments the rat has visual access to the complete track and it is possible that remotely initiated replay is cued by sensory inputs reaching the hippocampus through cortical pathways. Similarly, during slow-wave sleep cortical inputs may bias or otherwise influence memory reactivation (Ji and Wilson, 2007), given the complex bi-directional interactions between the hippocampus and neocortex (Isomura et al., 2006; Molle et al., 2006; Siapas and Wilson, 1998; Sirota et al., 2003; Wolansky et al., 2006).
Interestingly, groups of ripples are also present during slow-wave sleep, where they predominantly occur during periodic increases in neocortical population activity (“up-states”) (Battaglia et al., 2004; Clemens et al., 2007; Molle et al., 2006; Sirota et al., 2003) associated with slow oscillations in the cortical EEG (Isomura et al., 2006; Steriade, 2006; Wolansky et al., 2006). During these up-states, coordinated memory reactivation has been observed in the hippocampus and visual cortex (Ji and Wilson, 2007). These data suggest that individual trains of ripples during both slow-wave sleep and in the awake state may constitute a higher level organization, possibly sharing a common mechanism for their generation.
Replay associated with single ripples may represent a building block for the expression of longer, more complex memories. Hippocampal replay has been proposed to contribute to memory consolidation during sleep (Buzsaki, 1989; Marshall and Born, 2007; Stickgold, 2005). During wakefulness, high-speed replay of long sequences of behavior could also support learning processes that would benefit from prospective or retrospective evaluation, such as reinforcement learning (Foster and Wilson, 2006). Extended replay may also support tasks involving memory recall. This last possibility, while speculative, is lent some support by the recent finding of specific reactivation of hippocampal neurons during free recall in humans (Gelbard-Sagiv et al., 2008), and by specific activation of the hippocampus during sequence recall tasks in humans (Lehn et al., 2009). This interpretation of the functional role of awake replay is also consistent with work suggesting a high degree of overlap in the cognitive processes supporting both episodic recall and the evaluation of future events in humans (Buckner and Carroll, 2007; Schacter et al., 2007). The link between awake replay and cognition can be further explored by studying replay in animals engaged in more cognitively demanding tasks, and by the experimental disruption or bias of replay.
Experimental Procedures
Electrophysiology and behavior
All procedures were approved by the Committee on Animal Care at Massachusetts Institute of Technology and followed US National Institutes of Health guidelines. Microdrive arrays carrying 9–18 independently adjustable gold-plated tetrodes or octrodes (2 octrodes in one animal) aimed at area CA1 of the right dorsal hippocampus (2.4 mm lateral and 4.0 mm posterior, relative to bregma) were implanted under isoflurane anesthesia in 5 male Long-Evans rats (400–500 g). Tetrode and octrode construction is as previously described for tetrodes (Wilson and McNaughton, 1993): each electrode consists of a twisted bundle of 4 or 8 polyimide-insulated microwires, fused and cut to create a blunt tip. Wire used for tetrodes was either 13 μm-diameter nichrome resistance wire (RediOhm-800, Kanthal, Palm Coast, FL) electroplated with gold; or 15 μm-diameter nickel-iron wire (Nickel Alloy-120; California Fine Wire, Grover Beach, CA) with all recording sites plated with gold simultaneously using an electroless dip-plating process (Immersion Gold CF, Transene, Danvers, MA). Octrode wires were polyimide-coated tungsten (8 μm diameter, California Fine Wire, Grover Beach, CA). Electrodes were slowly lowered into the CA1 pyramidal cell layer over the course of 1–2 weeks. Individual units were isolated by manual clustering on peak spike waveform amplitudes across all channels using custom software (xclust; M.A.W.). For each electrode the local field potential (LFP) was recorded from a single channel, filtered from 1–475 Hz and sampled at 2 kHz. All recordings were differential against a reference electrode placed in white matter overlying CA1. A screw in the skull overlying cerebellum served as ground. For each rat, a single electrode showing clear sharp waves was selected for plotting of LFP.
Animals were not introduced to the ~10.3 m long linear track (Fig. 1A–B) until stable unit recordings were obtained, and only had one track session per day. Animals received food reward at the track ends (‘A’ and ‘B’; see Fig. 1A–B) only after the rat completed a full length of the track. For each animal we selected a session in which the animal ran several complete laps, but behavior was still variable and the number of recorded units was large. These criteria limited the number of sessions we could use for each animal and we chose one session per animal in order to preserve independence across sessions and to avoid over-representation of one animal in the data (track session 3, 3, 3, 4, and 3, duration of 60, 55, 26, 28, 74 min. for rats 1–5).
Animal location and head direction were captured at 30 Hz by video tracking of 2 head-mounted LEDs using an overhead camera. The linearized position along the track was found by projecting the x,y coordinates of the animal’s position onto a hand-fitted spline model of the track (A = 0 m, B = 10.3 m). Linearized velocity was smoothed with a Gaussian kernel (s.d. = 0.25 s) and epochs during which linearized speed is > 15 cm/s (RUN) or linearized speed is < 5 cm/s (STOP) were detected. Positive velocity indicates movement from A→B.
Place/direction tuning and unit selection
For each unit we constructed a joint tuning curve over linearized position (10 cm bins) and running direction (A→B and B→A) from all spikes emitted during RUN (Supplementary Figure 8E–F). This curve was smoothed in position (Gaussian kernel; s.d. = 5 cm). We excluded putative interneurons (mean firing rate > 5 Hz) and units with weak place-related firing (peak rate in tuning curve < 3 Hz), leaving 47, 34, 23, 32, and 21 spatially tuned single units in rats 1–5 (cluster quality measures: L-ratio 0.12 ± 0.17; isolation distance 17 ± 9; calculated using peak amplitude on each channel (Schmitzer-Torbert et al., 2005)).
Candidate replay events
A smoothed histogram (1 ms bins; Gaussian kernel, s.d. = 15 ms) was constructed of multi-unit activity (MUA) including all spikes with a peak amplitude greater than 100 μV on any channel, whether or not they are part of an isolated cluster. Mean and standard deviation of MUA during STOP was calculated, and candidate replay events were defined as epochs during which MUA was higher than the mean and peak rate was at least 3 standard deviations above the mean. Only candidate events within 30 s of RUN were analyzed to exclude possible sleep periods.
Position estimation and validation
We used a Bayesian reconstruction algorithm (Zhang et al., 1998) to compute the joint probability distribution of position and running direction from neuronal firing in non-overlapping time bins using the place-by-direction tuning curves described above (see Supplementary Methods). In cases where only position estimates were needed we computed the marginal distribution of these estimates over position. In order to validate our estimation procedure, RUN epochs in each session were divided into ‘training’ and ‘testing’ periods (alternating 1-second epochs). We calculated tuning curves using data from the training period, and used these to estimate position and direction during the testing period. Confusion matrices were calculated to assess reconstruction accuracy across the track (Supplementary Fig. 1B–F), and maximum likelihood estimates of position and running direction were compared with the rat’s true behavior (Supplementary Fig. 1A). Data from rat 5 was excluded from further analysis because of poor position estimation during RUN (median error 23 cm; uneven coverage of track).
Replay detection
We define ‘replay’ as a sequence of hippocampal firing patterns that encodes a trajectory along the track at a constant velocity (Supplementary Fig. 2). The most likely such trajectory is detected using a line-finding algorithm (Toft, 1996) across the set of position estimates obtained during each candidate event (see Supplementary Methods). Each replay trajectory is characterized by its velocity, location on the track, and its likelihood (‘replay score’). For each candidate event, replay scores were compared to score distributions of three types of shuffled versions of the data to test for significance (Monte Carlo p-value (Davison and Hinkley, 1997) < 0.01 for each shuffle type; see Supplementary Methods).
To determine if significant replay events represented forward or reverse replay we computed a ‘replay order’ score as the difference between the mean likelihoods that the estimated running direction on the trajectory was in the same or opposite direction as the actual replayed trajectory (see Supplementary Methods).
To test if the magnitude of the replay order score for a replay event is statistically significant, it was compared to the distribution of replay order magnitudes of 2000 randomly-generated pseudo-events of the same duration (see Supplementary Methods). Replay events with a Monte Carlo p-value < 0.05 are classified as ‘forward’ or ‘reverse’ replay; the remaining events are classified as ‘mixed’ replay. Throughout the paper, ‘significant replay’ includes forward-, reverse-, and mixed-order replay.
To measure overall bias of replay towards forward and reverse replay (scores of +1 and −1) and away from mixed replay (score of 0), we performed a one-sided two-sample Kolmogorov-Smirnov test on the absolute values of the observed replay order scores and of the scores obtained under pseudo-event shuffling, as described above.
Replay trajectory analysis
For each detected replay trajectory, we calculate whether that trajectory lies mostly ahead of or behind (along the track) the rat’s true position, and report the fraction of events lying mostly ahead. We test the significance of this measure by non-parametric bootstrapping. The chance level pooled across animals is estimated by randomly pairing within each session the observed replay trajectories to the location of the rat at the time of the replay events (2000 simulations, Monte Carlo p-value reported), under the null hypothesis that these two variables are independent. Because the rats spent a significant amount of time at the ends of the track facing away from the track, the chance level for replay trajectories lying behind the animal is higher than for those lying ahead of the animal.
The same approach is used to analyze the relationship between the rat’s location and the start and end locations of detected replay trajectories. The test statistic in this case is the fraction of start or end locations within 50 cm of the rat’s true location. Similar results were obtained for thresholds ranging from 25 cm to 2 m.
Ripple detection and ripple-triggered analyses
We used a variation of Skaggs’ (Skaggs et al., 2007) ripple detection procedure, which allows for the detection of closely-spaced ripples. The ripple amplitude at each recording site was estimated by band-pass filtering the local field potential (LFP) signal between 150–250 Hz, then taking the absolute value of the Hilbert-transformed signal (Siapas et al., 2005). The mean ripple amplitude across all recording sites was then smoothed (Gaussian kernel, s.d. = 12.5 ms) to give a single continuous measure of ripple activity. Individual ripples were detected as local peaks in this signal with an amplitude larger than 2.5 s.d. above the mean (mean and s.d. measured during STOP epochs). Ripple emission rates were calculated separately for each replay event, and compared with the mean ripple emission rate across all non-CAND STOP periods using a one-sample t-test. For plots in Figs. 5B and 5D (but not for any statistical analysis), ripple times were aligned (+/− ~2 ms) to the closest ripple cycle peak of the channel being plotted, in order to show local ripple structure.
Comparisons between ripple and non-ripple times during replay events were performed using either: a 1-sided 2-sample t-test assuming unequal variances (used for MUA; single unit firing rate); or, if the data did not appear to be normally distributed, the Mann-Whitney U test (used for mode of estimate; replay line error). For all tests, we used the same 20 ms non-overlapping time bins used for position reconstruction, and the comparison was between bins that contained a detected ripple and those that did not.
Supplementary Material
Acknowledgments
We thank E. N. Brown, D. Ji, M. S. Fee, B.B. Scott, A.S. Andalman, D.P. Nguyen and Z. Chen for helpful discussions and comments on the manuscript. This research was supported by National Institutes of Health (NIH) grant MH061976 (M.A.W.).
Footnotes
Publisher's Disclaimer: This is a PDF file of an unedited manuscript that has been accepted for publication. As a service to our customers we are providing this early version of the manuscript. The manuscript will undergo copyediting, typesetting, and review of the resulting proof before it is published in its final citable form. Please note that during the production process errors may be discovered which could affect the content, and all legal disclaimers that apply to the journal pertain.
References
- August DA, Levy WB. Temporal sequence compression by an integrate-and-fire model of hippocampal area CA3. J Comput Neurosci. 1999;6:71–90. doi: 10.1023/a:1008861001091. [DOI] [PubMed] [Google Scholar]
- Battaglia FP, Sutherland GR, McNaughton BL. Hippocampal sharp wave bursts coincide with neocortical “up-state” transitions. Learn Mem. 2004;11:697–704. doi: 10.1101/lm.73504. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Brown EN, Frank LM, Tang D, Quirk MC, Wilson MA. A statistical paradigm for neural spike train decoding applied to position prediction from ensemble firing patterns of rat hippocampal place cells. J Neurosci. 1998;18:7411–7425. doi: 10.1523/JNEUROSCI.18-18-07411.1998. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Buckner RL, Carroll DC. Self-projection and the brain. Trends Cogn Sci. 2007;11:49–57. doi: 10.1016/j.tics.2006.11.004. [DOI] [PubMed] [Google Scholar]
- Buzsaki G. Two-stage model of memory trace formation: a role for “noisy” brain states. Neuroscience. 1989;31:551–570. doi: 10.1016/0306-4522(89)90423-5. [DOI] [PubMed] [Google Scholar]
- Buzsaki G, Horvath Z, Urioste R, Hetke J, Wise K. High-frequency network oscillation in the hippocampus. Science. 1992;256:1025–1027. doi: 10.1126/science.1589772. [DOI] [PubMed] [Google Scholar]
- Buzsaki G, Leung LW, Vanderwolf CH. Cellular bases of hippocampal EEG in the behaving rat. Brain Res Rev. 1983;6:139–171. doi: 10.1016/0165-0173(83)90037-1. [DOI] [PubMed] [Google Scholar]
- Canto CB, Wouterlood FG, Witter MP. What does the anatomical organization of the entorhinal cortex tell us? Neural Plast. 2008;2008:381243. doi: 10.1155/2008/381243. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Chrobak JJ, Buzsaki G. High-frequency oscillations in the output networks of the hippocampal-entorhinal axis of the freely behaving rat. J Neurosci. 1996;16:3056–3066. doi: 10.1523/JNEUROSCI.16-09-03056.1996. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Clemens Z, Molle M, Eross L, Barsi P, Halasz P, Born J. Temporal coupling of parahippocampal ripples, sleep spindles and slow oscillations in humans. Brain. 2007;130:2868–2878. doi: 10.1093/brain/awm146. [DOI] [PubMed] [Google Scholar]
- Csicsvari J, O’Neill J, Allen K, Senior T. Place-selective firing contributes to the reverse-order reactivation of CA1 pyramidal cells during sharp waves in open-field exploration. Eur J Neurosci. 2007;26:704–716. doi: 10.1111/j.1460-9568.2007.05684.x. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Davison AC, Hinkley DV. Bootstrap methods and their application. Cambridge, UK ; New York, NY, USA: Cambridge University Press; 1997. [Google Scholar]
- Diba K, Buzsaki G. Forward and reverse hippocampal place-cell sequences during ripples. Nat Neurosci. 2007;10:1241–1242. doi: 10.1038/nn1961. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Fenton AA, Kao HY, Neymotin SA, Olypher A, Vayntrub Y, Lytton WW, Ludvig N. Unmasking the CA1 ensemble place code by exposures to small and large environments: more place cells and multiple, irregularly arranged, and expanded place fields in the larger space. J Neurosci. 2008;28:11250–11262. doi: 10.1523/JNEUROSCI.2862-08.2008. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Foster DJ, Wilson MA. Hippocampal theta sequences. Hippocampus. 2007;17:1093–1099. doi: 10.1002/hipo.20345. [DOI] [PubMed] [Google Scholar]
- Foster DJ, Wilson MA. Reverse replay of behavioural sequences in hippocampal place cells during the awake state. Nature. 2006;440:680–683. doi: 10.1038/nature04587. [DOI] [PubMed] [Google Scholar]
- Gelbard-Sagiv H, Mukamel R, Harel M, Malach R, Fried I. Internally Generated Reactivation of Single Neurons in Human Hippocampus During Free Recall. Science. 2008;322:96–101. doi: 10.1126/science.1164685. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Isomura Y, Sirota A, Ozen S, Montgomery S, Mizuseki K, Henze DA, Buzsaki G. Integration and segregation of activity in entorhinal-hippocampal subregions by neocortical slow oscillations. Neuron. 2006;52:871–882. doi: 10.1016/j.neuron.2006.10.023. [DOI] [PubMed] [Google Scholar]
- Jackson WB. Norway Rat and Allies. In: Chapman JA, Feldhamer GA, editors. Wild Mammals of North America. Baltimore, Maryland: Johns Hopkins University Press; 1982. pp. 1077–1088. [Google Scholar]
- Ji D, Wilson MA. Coordinated memory replay in the visual cortex and hippocampus during sleep. Nat Neurosci. 2007;10:100–107. doi: 10.1038/nn1825. [DOI] [PubMed] [Google Scholar]
- Johnson A, Redish AD. Neural ensembles in CA3 transiently encode paths forward of the animal at a decision point. J Neurosci. 2007;27:12176–12189. doi: 10.1523/JNEUROSCI.3761-07.2007. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Kloosterman F, van Haeften T, Lopes da Silva FH. Two reentrant pathways in the hippocampal-entorhinal system. Hippocampus. 2004;14:1026–1039. doi: 10.1002/hipo.20022. [DOI] [PubMed] [Google Scholar]
- Kosslyn SM, Ball TM, Reiser BJ. Visual images preserve metric spatial information: evidence from studies of image scanning. J Exp Psychol Hum Percept Perform. 1978;4:47–60. doi: 10.1037//0096-1523.4.1.47. [DOI] [PubMed] [Google Scholar]
- Lee AK, Wilson MA. A combinatorial method for analyzing sequential firing patterns involving an arbitrary number of neurons based on relative time order. J Neurophysiol. 2004;92:2555–2573. doi: 10.1152/jn.01030.2003. [DOI] [PubMed] [Google Scholar]
- Lee AK, Wilson MA. Memory of sequential experience in the hippocampus during slow wave sleep. Neuron. 2002;36:1183–1194. doi: 10.1016/s0896-6273(02)01096-6. [DOI] [PubMed] [Google Scholar]
- Lehn H, Steffenach HA, van Strien NM, Veltman DJ, Witter MP, Haberg AK. A specific role of the human hippocampus in recall of temporal sequences. J Neurosci. 2009;29:3475–3484. doi: 10.1523/JNEUROSCI.5370-08.2009. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Marshall L, Born J. The contribution of sleep to hippocampus-dependent memory consolidation. Trends Cogn Sci. 2007;11:442–450. doi: 10.1016/j.tics.2007.09.001. [DOI] [PubMed] [Google Scholar]
- McNaughton BL, Barnes CA, O’Keefe J. The contributions of position, direction, and velocity to single unit activity in the hippocampus of freely-moving rats. Exp Brain Res. 1983;52:41–49. doi: 10.1007/BF00237147. [DOI] [PubMed] [Google Scholar]
- Mehta MR, Lee AK, Wilson MA. Role of experience and oscillations in transforming a rate code into a temporal code. Nature. 2002;417:741–746. doi: 10.1038/nature00807. [DOI] [PubMed] [Google Scholar]
- Molle M, Yeshenko O, Marshall L, Sara SJ, Born J. Hippocampal sharp wave-ripples linked to slow oscillations in rat slow-wave sleep. J Neurophysiol. 2006;96:62–70. doi: 10.1152/jn.00014.2006. [DOI] [PubMed] [Google Scholar]
- Muller RU, Bostock E, Taube JS, Kubie JL. On the directional firing properties of hippocampal place cells. J Neurosci. 1994;14:7235–7251. doi: 10.1523/JNEUROSCI.14-12-07235.1994. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Nadasdy Z, Hirase H, Czurko A, Csicsvari J, Buzsaki G. Replay and time compression of recurring spike sequences in the hippocampus. J Neurosci. 1999;19:9497–9507. doi: 10.1523/JNEUROSCI.19-21-09497.1999. [DOI] [PMC free article] [PubMed] [Google Scholar]
- O’Keefe J, Dostrovsky J. The hippocampus as a spatial map. Preliminary evidence from unit activity in the freely-moving rat. Brain Res. 1971;34:171–175. doi: 10.1016/0006-8993(71)90358-1. [DOI] [PubMed] [Google Scholar]
- O’Keefe J, Nadel L. The hippocampus as a cognitive map. Oxford; New York: Clarendon Press; Oxford University Press; 1978. [Google Scholar]
- Schacter DL, Addis DR, Buckner RL. Remembering the past to imagine the future: the prospective brain. Nat Rev Neurosci. 2007;8:657–661. doi: 10.1038/nrn2213. [DOI] [PubMed] [Google Scholar]
- Schmitzer-Torbert N, Jackson J, Henze D, Harris K, Redish AD. Quantitative measures of cluster quality for use in extracellular recordings. Neuroscience. 2005;131:1–11. doi: 10.1016/j.neuroscience.2004.09.066. [DOI] [PubMed] [Google Scholar]
- Shepard RN, Metzler J. Mental rotation of three-dimensional objects. Science. 1971;171:701–703. doi: 10.1126/science.171.3972.701. [DOI] [PubMed] [Google Scholar]
- Siapas AG, Lubenov EV, Wilson MA. Prefrontal phase locking to hippocampal theta oscillations. Neuron. 2005;46:141–151. doi: 10.1016/j.neuron.2005.02.028. [DOI] [PubMed] [Google Scholar]
- Siapas AG, Wilson MA. Coordinated interactions between hippocampal ripples and cortical spindles during slow-wave sleep. Neuron. 1998;21:1123–1128. doi: 10.1016/s0896-6273(00)80629-7. [DOI] [PubMed] [Google Scholar]
- Sirota A, Csicsvari J, Buhl D, Buzsaki G. Communication between neocortex and hippocampus during sleep in rodents. Proc Natl Acad Sci U S A. 2003;100:2065–2069. doi: 10.1073/pnas.0437938100. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Skaggs WE, McNaughton BL, Permenter M, Archibeque M, Vogt J, Amaral DG, Barnes CA. EEG sharp waves and sparse ensemble unit activity in the macaque hippocampus. J Neurophysiol. 2007;98:898–910. doi: 10.1152/jn.00401.2007. [DOI] [PubMed] [Google Scholar]
- Skaggs WE, McNaughton BL, Wilson MA, Barnes CA. Theta phase precession in hippocampal neuronal populations and the compression of temporal sequences. Hippocampus. 1996;6:149–172. doi: 10.1002/(SICI)1098-1063(1996)6:2<149::AID-HIPO6>3.0.CO;2-K. [DOI] [PubMed] [Google Scholar]
- Steriade M. Grouping of brain rhythms in corticothalamic systems. Neuroscience. 2006;137:1087–1106. doi: 10.1016/j.neuroscience.2005.10.029. [DOI] [PubMed] [Google Scholar]
- Stickgold R. Sleep-dependent memory consolidation. Nature. 2005;437:1272–1278. doi: 10.1038/nature04286. [DOI] [PubMed] [Google Scholar]
- Suzuki SS, Smith GK. Spontaneous EEG spikes in the normal hippocampus. I Behavioral correlates, laminar profiles and bilateral synchrony Electroencephalogr. Clin Neurophysiol. 1987;67:348–359. doi: 10.1016/0013-4694(87)90123-4. [DOI] [PubMed] [Google Scholar]
- Toft PA. PhD thesis. Technical University of Denmark; 1996. The Radon Transform - Theory and Implementation. URL: http://petertoft.dk/PhD/ [Google Scholar]
- Wilson MA, McNaughton BL. Reactivation of hippocampal ensemble memories during sleep. Science. 1994;265:676–679. doi: 10.1126/science.8036517. [DOI] [PubMed] [Google Scholar]
- Wilson MA, McNaughton BL. Dynamics of the hippocampal ensemble code for space. Science. 1993;261:1055–1058. doi: 10.1126/science.8351520. [DOI] [PubMed] [Google Scholar]
- Wolansky T, Clement EA, Peters SR, Palczak MA, Dickson CT. Hippocampal slow oscillation: a novel EEG state and its coordination with ongoing neocortical activity. J Neurosci. 2006;26:6213–6229. doi: 10.1523/JNEUROSCI.5594-05.2006. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ylinen A, Bragin A, Nadasdy Z, Jando G, Szabo I, Sik A, Buzsaki G. Sharp wave-associated high-frequency oscillation (200 Hz) in the intact hippocampus: network and intracellular mechanisms. J Neurosci. 1995;15:30–46. doi: 10.1523/JNEUROSCI.15-01-00030.1995. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Zhang K, Ginzburg I, McNaughton BL, Sejnowski TJ. Interpreting neuronal population activity by reconstruction: unified framework with application to hippocampal place cells. J Neurophysiol. 1998;79:1017–1044. doi: 10.1152/jn.1998.79.2.1017. [DOI] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.