Skip to main content
eLife logoLink to eLife
. 2022 Jan 18;11:e71850. doi: 10.7554/eLife.71850

Hippocampal sharp wave-ripples and the associated sequence replay emerge from structured synaptic interactions in a network model of area CA3

András Ecker 1,2,†,, Bence Bagi 1,2,, Eszter Vértes 1,2,§, Orsolya Steinbach-Németh 1,2, Mária R Karlócai 1, Orsolya I Papp 1, István Miklós 3,4, Norbert Hájos 1, Tamás F Freund 1,2, Attila I Gulyás 1, Szabolcs Káli 1,2,
Editors: Neil Burgess5, Laura L Colgin6
PMCID: PMC8865846  PMID: 35040779

Abstract

Hippocampal place cells are activated sequentially as an animal explores its environment. These activity sequences are internally recreated (‘replayed’), either in the same or reversed order, during bursts of activity (sharp wave-ripples [SWRs]) that occur in sleep and awake rest. SWR-associated replay is thought to be critical for the creation and maintenance of long-term memory. In order to identify the cellular and network mechanisms of SWRs and replay, we constructed and simulated a data-driven model of area CA3 of the hippocampus. Our results show that the chain-like structure of recurrent excitatory interactions established during learning not only determines the content of replay, but is essential for the generation of the SWRs as well. We find that bidirectional replay requires the interplay of the experimentally confirmed, temporally symmetric plasticity rule, and cellular adaptation. Our model provides a unifying framework for diverse phenomena involving hippocampal plasticity, representations, and dynamics, and suggests that the structured neural codes induced by learning may have greater influence over cortical network states than previously appreciated.

Research organism: Mouse

Introduction

The hippocampal region plays a pivotal role in spatial and episodic memory (O’Keefe and Nadel, 1978; Morris et al., 1982). The different stages of memory processing (Marr, 1971; Buzsáki, 1989) are associated with distinct brain states and are characterized by distinct oscillatory patterns of the hippocampal local field potential (LFP) (Buzsáki et al., 1983; Colgin, 2016). When rodents explore their environment, place cells of the hippocampus are activated in a sequence that corresponds to the order in which the animal visits their preferred spatial locations (place fields) (O’Keefe and Dostrovsky, 1971). The same sequences of firing activity can also be identified, on a faster time scale, during individual cycles of the 4–10 Hz theta oscillation that dominates the hippocampal LFP in this state (O’Keefe and Recce, 1993; Dragoi and Buzsáki, 2006; Foster and Wilson, 2007). These compressed sequences are thought to be optimal for learning via activity-dependent synaptic plasticity (Jensen and Lisman, 2005; Foster and Wilson, 2007).

Other behavioral states such as slow-wave sleep and quiet wakefulness are characterized by the repetitive but irregular occurrence of bursts of activity in the hippocampus, marked by the appearance of sharp waves (Buzsáki et al., 1983; Wilson and McNaughton, 1994) and associated high-frequency (150–220 Hz) ripple oscillations (O’Keefe and Nadel, 1978; Buzsáki et al., 1992) in the LFP. Disruption of SWRs was shown to impair long-term memory (Girardeau et al., 2009; Ego-Stengel and Wilson, 2010; Jadhav et al., 2012; Oliva et al., 2020). The activity sequences observed during exploration are also recapitulated during SWRs (Nádasdy et al., 1999; Kudrimoti et al., 1999; Lee and Wilson, 2002), in the absence of any apparent external driver, and this ‘replay’ can happen either in the same or in a reversed order relative to the original behaviorally driven sequence (Foster and Wilson, 2006; Csicsvari et al., 2007; Diba and Buzsáki, 2007; Davidson et al., 2009; Karlsson and Frank, 2009; Gupta et al., 2010). More specifically, awake replay is predominantly in the ‘forward’ direction near choice points during navigation (Diba and Buzsáki, 2007; Pfeiffer and Foster, 2013), while it is mainly ‘backward’ when the animal encounters a reward (Diba and Buzsáki, 2007). Consequently, while sleep replay was suggested to be involved in memory consolidation, forward and reverse replay in awake animals may contribute to memory recall and reward-based learning, respectively (Carr et al., 2011; Foster, 2017; Pfeiffer, 2017; Olafsdottir et al., 2018). Finally, behavioral tasks with a high memory demand led to an increase in the duration of SWRs, while artificial prolongation of SWRs improved memory (Fernández-Ruiz et al., 2019).

For several decades, area CA3 of the hippocampus has been proposed to be a critical site for hippocampal memory operations, mainly due to the presence of an extensive set of modifiable excitatory recurrent connections that could support the storage and retrieval of activity patterns and thus implement long-term memory (Marr, 1971; McNaughton and Morris, 1987; Levy, 1996; Rolls, 1996; Káli and Dayan, 2000). Area CA3 was also shown to be strongly involved in the generation of SWRs and the associated forward and reverse replay (Buzsáki, 2015; Davoudi and Foster, 2019).

Several modeling studies have addressed either theta oscillogenesis, learning, sequence replay or ripples; however, a unifying model of how the generation of SWRs and the associated neuronal activity are shaped by previous experience is currently lacking. In the present study, we built a minimal, yet data-driven model of the CA3 network, which, after learning via a symmetric spike-timing-dependent synaptic plasticity rule (Mishra et al., 2016) during simulated exploration, featured both forward and backward replay during autonomously generated sharp waves, as well as ripple oscillations generated in the recurrently connected network of perisomatic interneurons. After validating the model against several in vivo and in vitro results (Buzsáki et al., 1992; Hájos et al., 2013; English et al., 2014; Schlingloff et al., 2014; Stark et al., 2014; Pfeiffer and Foster, 2015; Gan et al., 2017), we took advantage of its in silico nature that made feasible a variety of selective manipulations of cellular and network characteristics. Analyzing the changes in the model’s behavior after these perturbations allowed us to establish the link between learning from theta sequences and the emergence of SWRs during ‘offline’ states, to provide a possible explanation for forward and backward replays, and to disentangle the mechanisms responsible for sharp waves and ripple oscillations.

Results

To identify the core mechanisms that are responsible for the relationship between learning during exploration and SWRs during rest, we built a scaled-down network model of area CA3 of the rodent hippocampus. In this model, we specifically did not aim to capture all the biological details of hippocampal neurons and circuits; instead, our goal was to reveal and analyze those mechanisms that are essential for the generation of sharp waves, ripple oscillations, and bidirectional activity replay. The main assumptions underlying the construction of our model are listed in Table 1. The complete network consisted of 8000 excitatory pyramidal cells (PCs) and 150 inhibitory parvalbumin-containing basket cells (PVBCs), corresponding roughly to the size of the CA3 area in a 600-µm-thick slice of the mouse hippocampus, which is known to be capable of generating SWRs (Hájos et al., 2013; Schlingloff et al., 2014). These two cell types are known to be indispensable to the generation of SWRs (Rácz et al., 2009; Ellender et al., 2010; English et al., 2014; Schlingloff et al., 2014; Stark et al., 2014; Gulyás and Freund, 2015; Buzsáki, 2015; Gan et al., 2017). All neurons in the network were modeled as single-compartment, adaptive exponential integrate-and-fire (AdExpIF) models whose parameters were fit to reproduce in vitro voltage traces of the given cell types in response to a series of step current injections (‘Materials and methods’ and Figure 1—figure supplement 2). Connections of all types (PC-PC, PC-PVBC, PVBC-PC, PVBC-PVBC) were established randomly using connection type-specific probabilities estimated from anatomical studies. All model parameters are detailed in the ‘Materials and methods’ section and summarized in Tables 2 and 3.

Simulations of the network were run in two phases corresponding to spatial exploration and ‘offline’ hippocampal states (slow-wave sleep and awake immobility), respectively. During the exploration phase, the spiking activity of PCs was explicitly set to mimic the firing patterns of a population of place cells during simulated runs on a linear track, and the recurrent connections between PCs evolved according to an experimentally constrained, spike-timing-dependent plasticity (STDP) rule (see below). In the subsequent offline phase, we recorded the spontaneous dynamics of the network in the absence of structured external input (or plasticity), analyzed the global dynamics (including average firing rates and oscillations), and looked for the potential appearance of sequential activity patterns corresponding to the previous activation of place cells during exploration, often referred to as ‘replay.’ The main features of the model are summarized in Figure 1.

Figure 1. Overview of learning and the spontaneous generation of sharp wave-ripples (SWRs) and sequence replay in the model.

(A) Tuning curves (Equation (1)) of exemplar place cells covering the whole 3-m-long linear track. (B) Broad, symmetric spike-timing-dependent plasticity (STDP) kernel used in the learning phase. The time constant was fit directly to experimental data from Mishra et al., 2016. (C) Learned excitatory recurrent weight matrix. Place cells are ordered according to the location of their place fields; neurons with no place field in the environment are scattered randomly among the place cells. Actual dimensions are 8000 * 8000, but, for better visualization, each pixel shown represents the average of an 80 * 80 square. (D) Pyramidal cell (PC) raster plot is shown in the top panel, color-coded, and ordered as the place fields in (A). PC population rate (middle), and local field potential (LFP) estimate (bottom panel), corresponding to the same time period. (E) Posterior matrix of the decoded positions from spikes within the high activity period shown in (D). Gray lines indicate the edges of the decoded, constant velocity path.

Figure 1.

Figure 1—figure supplement 1. The generation of the spike trains of pyramidal cells (PCs) in the exploration phase.

Figure 1—figure supplement 1.

(A) Firing rates of exemplar place cells covering the whole 3-m-long linear track. In contrast to the spatial tuning curves shown in Figure 1A (Equation (1)), these are time-dependent rates modulated by theta oscillation and phase precession (Equation (2)). (B) Exemplar spike trains generated based on the firing rates shown in (A). (Spike trains used in the learning phase were 400 s long. For the purpose of visualization, only the beginning is shown here.) (C) Interspike interval (ISI) distribution of the generated spike trains. ISIs of place cells (C1) (inset is a zoom into the same distribution at a finer timescale to show theta modulation) and nonplace cells (C2).

Figure 1—figure supplement 2. Single-cell models.

Figure 1—figure supplement 2.

(A) Fitted AdExpIF pyramidal cell (PC) model (blue) and experimental traces (green) are shown in the top panel. The amplitudes of the 800-ms-long step current injections shown at the bottom were as follows: –0.04, 0.15, and 0.6 nA. (B) Fitted ExpIF parvalbumin-containing basket cell (PVBC) model (pink) and experimental traces (green) are shown in the top panel. The amplitudes of the 800-ms-long step current injections shown at the bottom were as follows: –0.03, 0.09, and 0.25 nA. Insets show the f–I curve of the in vitro (green) and in silico (red) cells. For parameters of the cell models, see Table 2.

Recurrent weights are learned during exploration via a symmetric STDP rule

During exploration, half of the PCs had randomly assigned, overlapping place fields in the simulated environment, characterized by Gaussian spatial tuning curves, whereas the others fired at low rates in a spatially nonspecific manner (‘Materials and methods’ and Figure 1A). During simulated unidirectional runs along a 3-m-long linear track, these tuning curves, modulated by theta oscillation and phase precession, gave rise to generated spike trains similar to those observed for real place cells under similar conditions (‘Materials and methods’ and Figure 1—figure supplement 1). The simulated spike trains served as inputs for STDP, which was characterized by the broad, symmetric kernel observed in pairs of CA3 PCs recorded in hippocampal slices (Figure 1B; Mishra et al., 2016). The anatomical connectivity of PCs was sparse and random, assuming 10% PC-PC connection probability (Lisman, 1999; Andersen et al., 2007), and only these preexisting connections were allowed to evolve (‘Materials and methods’).

The most prominent feature of the learned recurrent excitatory synaptic weight matrix was its highly organized structure (Figure 1C). Relatively few strong (>1 nS) synapses near the diagonal (representing pairs of cells with overlapping place fields) emerged from a background of much weaker connections. Similar symmetric weight structures have been used in continuous ‘bump’ attractor models of various neural systems such as head direction cells, place cells, and parametric working memory (Zhang, 1996; Samsonovich and McNaughton, 1997; Káli and Dayan, 2000; Compte et al., 2000). In these studies, the weights were typically either imposed or learned using rate-based (not STDP) learning rules, and led to stationary patterns of activity in the absence of external input. By contrast, most previous spiking neuron models of sequence learning used temporally asymmetric STDP rules, resulting in a weight structure dominated by feedforward chains (each neuron giving the strongest input to other neurons that follow it in the spatial sequence), and sequential activity patterns that follow these chains of strong connections (Jahnke et al., 2015). In order to reveal the combined effect of learned, essentially symmetric connections and realistic cell-type-specific neuronal spike responses, we next explored the spontaneously generated activity patterns in our full network model.

The dynamics of the network model reproduce key features of SWRs and replay

The sparse recurrent excitatory weight matrix resulting from the phenomenological exploration (Figure 1C) was used directly in network simulations mimicking resting periods, in which (with the exception of the simulations shown later in Figure 2C) PCs received only spatially and temporally unstructured random synaptic input (‘Materials and methods’). The maximal conductances of the other types of connections in the network (the weights of PC-PVBC, PVBC-PC, and PVBC-PVBC connections as well as the weight of the external random input) were optimized using an evolutionary algorithm with network-level objectives, which included physiological PC population firing rates, suppressed gamma (30–100 Hz) oscillation in the PC population, and strong ripple oscillation in the PVBC population (see ‘Materials and methods’ for details).

Figure 2. Forward and backward replay events, accompanied by ripple oscillations, can occur spontaneously but can also be cued.

(A) Pyramidal cell (PC) raster plot of a 10-s-long simulation, with sequence replays initiating at random time points and positions and propagating either in forward or backward direction on the top panel. PC population firing rate is plotted below. Dashed vertical black lines indicate the periods marked as sustained high-activity states (above 2 Hz for at least 260 ms), which are submitted to automated spectral and replay analysis. (B) Estimated local field potential (LFP) in the top panel and its time-frequency representation (wavelet analysis) below. (C) Forward and backward sequence replays resulting from targeted stimulation (using 200-ms-long 20 Hz Poisson spike trains) of selected 100-neuron subgroups, indicated by the black rectangles in the raster plots. (C1) Example of cued forward replay. PC raster plot is shown at the top with PC population rate, LFP estimate, and its time-frequency representation (wavelet analysis) below. (C2) Same as (C1), but different neurons are stimulated at the beginning, leading to backward replay.

Figure 2.

Figure 2—figure supplement 1. The step-size distribution of the decoded paths is much wider than expected.

Figure 2—figure supplement 1.

(A) Posterior matrix of the decoded positions from spikes within a selected high-activity state (first one from Figure 2A). Thick gray lines indicate the edges of the decoded, constant velocity path. Thin gray line shows the decoded path by connecting the weighted average positions in every 10-ms-long time step. (B) Step sizes from the decoded, variable velocity path (see A) for the same period (first high-activity state in Figure 2A). The horizontal dashed black line shows the average or predicted step size within the given period. (C1) Skewed distribution of observed step sizes (in gray) and the predicted (from evenly spacing) step-size distribution (in red) for more than a hundred replay events (similar to the one in A and B). Inset shows the same distributions at smaller scales. (C2) Cumulative distribution of the observed and predicted step sizes shown in (C1). Observed vs. predicted distributions differ significantly (two-sample Kolmogorov–Smirnov test).
Figure 2—figure supplement 2. Single-cell characteristics during network simulations.

Figure 2—figure supplement 2.

(A) Distributions of single pyramidal cell (PC) (A1) and parvalbumin-containing basket cell (PVBC) (A2) firing rates during the 10-s-long simulation shown in Figure 2. (B) Distributions of interspike intervals (ISIs) of PCs (B1) and PVBCs (B2) in the 10-s-long simulation shown in Figure 2. (C) Voltage traces of selected place cells from the beginning, middle, and end of the track, a nonplace cell and a PVBC on top, and their input currents (EPSC (excitatory postsynaptic current) in blue, IPSC (inhibitory postsynaptic current) in pink, y-axis on the right) and intrinsic adaptation current w (red, y-axis on the left) at the bottom of each panel, during a full forward replay. Dashed vertical lines indicate the period marked as high-activity state. (D) Synaptic input currents of PCs (D1) and PVBCs (D2) during sequence replay initiation. Gray lines are the averages of the EPSCs and IPSCs of 400 PCs and 30 PVBCs, respectively (similar to the ones shown in C). Individual gray lines correspond to individual high-activity states (n = 7, see Figure 2A). Dashed vertical lines (at 0 ms) indicate the beginning of the periods marked as high-activity states (see Figure 2A). Colored lines represent the grand average EPSC (blue) and IPSC (pink) arriving at PCs (D1) and PVBCs (D2) during sharp wave-ripple (SWR) initiation.

Spontaneously generated activity in the network consisted of alternating periods of low activity (mean PC rates below 1 Hz) and high activity (mean PC rates around 3.5 Hz), which resembled the recurring appearance of sharp wave events during slow-wave sleep and quiet wakefulness (Figure 2A). Similar to experimental sharp waves, high-activity events in the model were accompanied by transient oscillations in the ripple frequency range (Figure 2B; Buzsáki, 1986; Buzsáki et al., 1992; Foster and Wilson, 2006; Buzsáki, 2015). We calculated an estimate of the LFP by summing the synaptic inputs of a small, randomly selected subset of PCs (Mazzoni et al., 2008), and found that ripple oscillations were reliably present in this signal during the high-activity periods (Figures 1D and 2B).

When we plotted the spike times of all PCs with place cells ordered according to the location of their place fields on the track during the learning phase, it became clear that place cell sequences were replayed during simulated SWRs, while activity had no obvious structure in the low-activity periods between SWRs (Figure 2A). Interestingly, replay of place cell sequences could occur in either the forward or the backward direction relative to the order of activation in the learning phase (Figure 2A). Importantly, apart from some initial transients, simultaneous forward and backward replay was never observed. This is because simultaneous replay in both directions induces competition (mediated by global feedback inhibition) between the two active populations, and one of the sequences always dies out after a short period (this is also because mutual support through recurrent excitation diminishes as the two active populations move further away from each other). This is similar to the competitive behavior observed in ‘bump attractor’ models (Dayan and Abbott, 2001). These qualitative observations of sequence replay were confirmed by analyzing high-activity (SWR) periods with a Bayesian place decoding and path fitting method using spatial tuning curves introduced for spike train generation in the exploration part (‘Materials and methods’ and Figure 1E; Davidson et al., 2009; Karlsson and Frank, 2009; Olafsdottir et al., 2018). Interestingly, our network model also reproduced the broad, long-tailed step-size distribution in the sequence of decoded locations during SWRs, as observed experimentally by Pfeiffer and Foster, 2015; Figure 2—figure supplement 1.

It was also possible to ‘cue’ replay by giving an additional external stimulation to a small subpopulation (n=100) of PCs that had overlapping place fields in the learned environment. In this case, sequence replay started at the location corresponding to the cells that received extra stimulation (Figure 2C). This feature may explain why awake replay tends to be forward when the animal is planning a trajectory from its current location and backward at the goal location.

At the level of single cells, we found that both PCs and PVBCs received approximately balanced excitation and inhibition during SWR events, and inhibitory currents were modulated at the ripple frequency in these periods (Figure 2—figure supplement 2C and D). Excitatory inputs dominated between SWRs and during the initiation of SWR events. Only a small minority of PCs fired in individual ripple cycles, while the participation of PVBCs was much higher (but not complete), resulting in a mean PVBC firing rate of ∼65 Hz during the SWRs, which is much higher than their baseline rate, but significantly below the ripple frequency (Figure 2—figure supplement 2A and B). All of these findings were consistent with experimental results in vitro (Hájos et al., 2013; Schlingloff et al., 2014) and in vivo (Varga et al., 2012; English et al., 2014; Hulse et al., 2016; Gan et al., 2017). The firing of individual PCs appears to differ across experimental conditions, with mostly single spikes in vitro (Hájos et al., 2013; Schlingloff et al., 2014) and occasional burst firing and a lognormal firing rate distribution in vivo (Mizuseki and Buzsáki, 2013). In our simulations, many PCs fired more than one spike per SWR, but these were not bursts in the usual sense as even the shortest ISIs were over 5 ms. The firing rate distribution was skewed, although not particularly long-tailed (Figure 2—figure supplement 2B and C).

SWRs and replay are robust when recurrent excitation is varied

To show that our network model reproduces the wide range of experimental findings presented above in a robust manner, we ran a sensitivity analysis of several parameters. We started by studying the effects of the recurrent excitatory weights, which are the link between exploratory and resting dynamics. To this end, we ran simulations with PC-PC weights that were systematically up- or downscaled after the learning phase, and automatically evaluated various features of the network dynamics, such as population-averaged firing rates, the presence of sequence replay, as well as significant peaks in the ripple frequency range in the power spectra as shown before (‘Materials and methods’ and Figure 3). The network with PC-PC weights multiplied by 0.8 displayed a low-activity, noisy state with severely reduced mean PC firing rate, no sequence replay, and no clear oscillation (Figure 3A1). At the 0.9 multiplier level, sequence replays started to appear, but were less frequent than in the baseline model (Figure 3A2). As the PC-PC synaptic weights were scaled up, sequence replays became faster (completed in a shorter time) and occurred more often (Figure 3A3), a behavior that was stable and realistic up to the 1.5 multiplier level. Ripple oscillations had higher power and appeared at lower multiplier levels in the PVBC population than in the PC population (Figure 3—figure supplement 1), suggesting that they originate from the PVBCs and propagate to the PCs, in agreement with theories based on experimental findings (Buzsáki et al., 1992; Ylinen et al., 1995; Rácz et al., 2009; Schlingloff et al., 2014; Stark et al., 2014; Gan et al., 2017). Overall, the qualitative behavior of our model was similar in a fairly wide range of recurrent excitation, although our baseline model was relatively close to the lower end of this range.

Figure 3. Sharp waves, ripple oscillations, and replay are robust with respect to scaling the recurrent excitatory weights.

(A) Pyramidal cell (PC) raster plots on top and PC population rates at the bottom for E-E scaling factors 0.9 (A1), 0.95 (A2), and 1.05 (A3). (Scaling factor of 1.0 is equivalent to Figure 2A.) Dashed vertical black lines have the same meaning as in Figure 2A. (B) Analysis of selected indicators of network dynamics across different E-E weight scaling factors (0.8–1.2). Mean PC (blue) and parvalbumin-containing basket cell (PVBC) (pink) population rates are shown on top. The frequency of significant ripple oscillations (black) and the percentage of power in the ripple frequency range (red) in the estimated local field potential (LFP) is shown at the bottom. Errors bars indicate standard deviation and are derived from simulations with five different random seeds. See also Figure 3—figure supplement 1.

Figure 3.

Figure 3—figure supplement 1. Spectral analysis of network dynamics across different pyramidal cell-pyramidal cell (PC-PC) weight scaling factors.

Figure 3—figure supplement 1.

(A) Power spectral densities (PSDs) of PC (A1) and parvalbumin-containing basket cell (PVBC) (A2) population rates and estimated local field potential (LFP) (A3). Gray lines correspond to individual high-activity states (n = 14) shown in Figure 2A, while the thicker-colored lines are their averages. Ripple frequency range (150–220 Hz) is highlighted in red. Shaded red area below the curves indicates the power in the ripple range. (B) Spectral analysis of network dynamics across different E-E weight scaling factors (0.8–1.2). The frequency of any significant ripple oscillation (black) and the percentage of power in the ripple band (red) are shown for PC (B1) and PVBC (B2) population rates and estimated LFP (B3). (B3) is the same as the bottom panel of Figure 3B, and it is duplicated here only to show how similar the curves are for the rates and the estimated LFP.

Multiple environments can be learned and replayed

Next, we showed that it is possible to store the representations of multiple environments in the weight matrix, and this change does not fundamentally alter the network dynamics (Figure 4). In particular, we simulated experience and STDP-based learning in two linear environments with a different but overlapping random set of place cells (Figure 4A). The resulting population-level dynamics was quite similar to the one following experience in a single environment, but, during each SWR event, a place cell sequence from either one or the other environment was reactivated (Figure 4B and C). Learning two sequences with the same additive symmetric (nondecreasing) STDP rule led to stronger PC-PC synapses on average (Figure 4A4), which resulted in a higher overall mean PC rate (Figure 4B and D). As a consequence, detectable sequence replays and significant ripple oscillations appeared at lower PC-PC weight multiplier levels (Figure 4D).

Figure 4. Two distinct environments can be learned and replayed by the network.

Figure 4.

(A) Learned excitatory recurrent weight matrices. (A1) Weights after learning the first environment. Note that the matrix appears random because neurons are arranged according to their place field location in the second environment, which has not been explored at this point. (A3) Weights after learning in the second environment. (A2, A4) Distribution of nonzero synaptic weights in the learned weight matrices in (A1) and (A2), respectively. (B) Pyramidal cell (PC) raster plots: in the top panel, neurons are ordered and colored according to the first environment; in the middle panel, neurons are ordered and colored according to the second environment; and PC population rate is shown at the bottom (see Figure 2A) from a simulation run with 0.9* the modified weight matrix shown in (A3). (C) Posterior matrices of decoded positions from spikes (see Figure 1E) within two selected high-activity periods (8th and 10th from B). From left to right: decoding of replay in first environment (eighth event from B) according to the first (significant) and second environment; decoding of replay in second environment (10th event from B) according to the first and second (significant) environment. (D) Analysis of selected network dynamics indicators across different E-E weight scaling factors (0.7–1.1) as in Figure 3B.

Manipulating the model reveals mechanisms of SWR generation and sequence replay

Our network model, equipped with structured recurrent excitation resulting from learning, was able to robustly reproduce recurring sharp wave events accompanied by bidirectional sequence replay and ripple oscillations. Next, we set out to modify this excitatory weight matrix to gain a more causal understanding of how the learned weight pattern is related to the emergent spontaneous dynamics of the network.

Symmetric STDP rule is necessary for bidirectional replay

First, in order to gauge the significance of the experimentally determined symmetric STDP rule, we changed the STDP kernel to the classical asymmetric one that characterizes many other connections in the nervous system (Figure 5A–C; Bi and Poo, 1998; Gerstner et al., 2014). In this case, the learned weight matrix was reminiscent of the feedforward chains that characterized several of the earlier models of hippocampal replay (Jahnke et al., 2015; Chenkov et al., 2017; Theodoni et al., 2018). We found that this weight structure also supported the generation of SWR events and the reactivation of learned sequences in our model; however, crucially, sequence replays occurred only in the forward direction (Figure 5D and E). Theodoni et al., 2018 presented a thorough analysis of the relationship between the shape of the (asymmetric) plasticity kernel and sequence replay in a rate-based model, and thus we shifted our focus towards different modifications.

Figure 5. Learning with an asymmetric spike-timing-dependent plasticity (STDP) rule leads to the absence of backward replay.

Figure 5.

(A) Asymmetric STDP kernel used in the learning phase. (B) Learned excitatory recurrent weight matrix. (C) Distribution of nonzero synaptic weights in the weight matrix shown in (B). (D) Pyramidal cell (PC) raster plot on top and PC population rate at the bottom (see Figure 2A) from a simulation run with the weight matrix shown in (B). (E) Posterior matrix of the decoded positions from spikes (see Figure 1E) within a selected high-activity state (sixth one from D). (F) Analysis of selected network dynamics indicators across different E-E weight scaling factors (0.8–1.2) as in Figure 3B.

The structure rather than the statistics of recurrent excitatory weights is critical for SWRs

Inspired by the observation that many network-level properties, such as single PC firing rates, burst index, and participation in SWR events, follow a skewed, lognormal distribution in vivo (Mizuseki and Buzsáki, 2013), Omura et al., 2015 built a network model with recurrent excitatory weights following a lognormal distribution. Their network with unstructured, but lognormally distributed, recurrent synaptic strengths reproduced most of the in vivo observations of Mizuseki and Buzsáki, 2013; however, no sequence replay or ripple oscillation was involved. In the network presented here, the distribution of PC-PC weights is the result of the application of STDP to the generated spike trains and does not strictly follow a lognormal distribution, although it has a similar long tail (Figure 6D2). In order to establish whether the overall distribution or the fine structure of the weights is the key determinant of neural dynamics in our model, we performed two more drastic perturbations of the recurrent weight matrix itself, starting from the version established in the learning phase of our baseline model (Figure 1C).

Figure 6. Altering the structure of recurrent excitatory interactions changes the network dynamics but altering the weight statistics has little effect.

Figure 6.

(A1) Binarized (largest 3% and remaining 97% nonzero weights averaged separately) recurrent excitatory weight matrix. (Derived from the baseline one shown in Figure 1C.) (A2) Distribution of nonzero synaptic weights in the learned weight matrix shown in (A1). (B) Pyramidal cell (PC) raster plot on top and PC population rate at the bottom (see Figure 2A) from a simulation run with 1.1* the binarized weight matrix shown in (A). (C) Analysis of selected network dynamics indicators across different E-E weight scaling factors (0.9–1.3) as in Figure 3B. (D1) Column-shuffled recurrent excitatory weight matrix. (Derived from the baseline one shown in Figure 1C.) (D2) Distribution of nonzero synaptic weights in the weight matrix shown in (D1) (identical to the distribution of the baseline weight matrix shown in Figure 1C). (E) PC raster plot on top and PC population rate at the bottom from a simulation run with the shuffled weight matrix shown in (D1). (F) Analysis of selected network dynamics indicators across different E-E weight scaling factors (1.0–4.0) as in Figure 3B. Note the significantly extended horizontal scale compared to other cases.

Our first perturbation kept the structure of the interactions and the overall mean weight intact, but completely changed the distribution of the weights. This was achieved by binarizing the values of the learned weight matrix. Specifically, we divided weights into two groups, the strongest 3% and the remaining 97%, and set each weight in both groups to the group average (Figure 6A). Using the modified recurrent synapses between the PCs in the network, we observed extremely similar behavior to our baseline network: recurring sharp waves and sequence replays in both directions, always accompanied by ripple oscillations, with only a small change in the required multiplier for the PC-PC weights (Figure 6B and C).

The second modification kept the same overall weight distribution and even the actual values of the outgoing weights for all neurons, but destroyed the global structure of synaptic interactions in the network. To this end, we randomly shuffled the identity of the postsynaptic neurons (by shuffling the columns of the weight matrix). Strong synapses were not clustered anymore along the diagonal (representing interactions between neurons with nearby place fields), but distributed homogeneously within the matrix (Figure 6D1). None of the networks equipped with the scaled versions of this shuffled weight matrix exhibited sequence replay, mean PC rates were severely reduced, and no sharp wave-like events were observed (Figure 6E and F). On the other hand, with sufficiently amplified (*3.5) PC-PC weights, we detected significant peaks in the ripple frequency range of the LFP (Figure 6F).

Taken together, these modifications suggest that, unlike in the model of Omura et al., 2015, the distribution of the excitatory recurrent synaptic weights is neither necessary nor sufficient for the observed physiological population activity in our model. In other words, our simulation results suggest that the fine structure of recurrent excitation not only enables coding (sequence replay), but also has a major effect on the global average network dynamics (firing rates, sharp waves, and ripple oscillations) in hippocampal area CA3.

Cellular adaptation is necessary for replay

As mentioned earlier, most previous models with symmetrical local excitatory interactions and global feedback inhibition functioned as ‘bump attractor’ networks, in which the dynamics converge to stable patterns of activity involving high rates in a group of neurons with similar tuning properties (adjacent place fields), and suppressed firing in the rest of the excitatory population (Zhang, 1996; Samsonovich and McNaughton, 1997; Káli and Dayan, 2000; Compte et al., 2000). Recent work with rate-based models has also shown that these ‘stable bumps’ can be transformed into ‘traveling bumps’ by the introduction of short-term depression (York and van Rossum, 2009; Romani and Tsodyks, 2015; Theodoni et al., 2018) or spike threshold adaptation (Itskov et al., 2011; Azizi et al., 2013). On the other hand, previous spiking models of sequence learning and recall/replay typically relied on temporally asymmetric learning rules and the resulting asymmetric weight matrices to ensure that neurons are reactivated in the same sequence as during learning (Jahnke et al., 2015; Chenkov et al., 2017), which is also why it is difficult for these models to capture bidirectional replay. Chenkov et al., 2017 also explored the effects of symmetric connectivity patterns in a spiking network with local feedback inhibition and demonstrated the possibility of bidirectional replay, but the excitatory weights in their models were hard-wired rather than learned. Our model uses the experimentally recorded symmetric STDP rule, which results in symmetrical synaptic interactions (although only at the population level rather than the single-neuron level due to the randomness of connectivity). Since our network generated a bump of activity that traveled unidirectionally in any given replay event rather than a stationary bump, we hypothesized that the cellular-level adaptation that characterized CA3 PCs and was also captured by our model may destabilize stable bumps and lead to their constant movement.

To test this hypothesis, we refitted our single-cell data on PC responses to current injections using a modified ExpIF model that did not contain any adaptation mechanism (but was otherwise similar to the baseline model). Although the nonadapting ExpIF model provided a reasonably good fit to our single-cell data (Figure 7A), and the weights resulting from learning were identical to the baseline case, the spontaneous network dynamics was completely different: there was no sequence replay for any scaling of the recurrent PC-PC weights; instead, when structured activity emerged from the random background, it was in the form of a stationary rather than a moving bump (Figure 7B). Therefore, it was the combination of a symmetric learning rule with cellular adaptation that created the possibility of bidirectional replay in our network model.

Figure 7. Sequential replay requires firing rate adaptation in the pyramidal cell (PC) population.

Figure 7.

(A) Voltage traces of fitted AdExpIF (blue) and ExpIF (gray) PC models and experimental traces (green) are shown in the top panel. Insets show the f–I curves of the in vitro and in silico cells. The amplitudes of the 800-ms-long step current injections shown at the bottom were as follows: –0.04, 0.15, and 0.6 nA. For parameters of the cell models, see Table 2. (B) PC raster plot of a 10-s-long simulation with the ExpIF PC models, showing stationary activity in the top panel. PC population rate is shown below.

Ripple oscillations are generated by the recurrently coupled inhibitory population

From the weight matrix modifications, we also learned that ripple oscillations can be disentangled from sequence replays and only require sufficient drive to the interconnected PVBC population in our model (Figure 6F). The same conclusion was reached by recent optogenetic studies in vitro (Ellender et al., 2010; Schlingloff et al., 2014) and in vivo (Stark et al., 2014). To further investigate the generation of ripples in our model, we simulated and analyzed two additional modified versions of the full network.

First, we disconnected the PVBC network from the PCs and replaced the PC input with independent Poisson synaptic input at rates derived from the firing of the PC population during SWRs in the full simulation (Figure 8A and B). In this simplified, recurrently connected, purely PVBC network, we systematically scanned different values of PC input rate and PC-PVBC synaptic weight and measured ripple power as well as the frequency of any significant ripple oscillation as in the full network before (Figure 8A and B). We found that ripple oscillations emerged when the net excitatory drive to PVBCs (which is proportional to the product of the incoming weight and the presynaptic firing rate) was sufficiently large. Above this threshold, the properties of the oscillation depended only mildly on the strength of the input (e.g., the frequency of the oscillation increased moderately with increasing drive), and the firing of PVBCs was synchronized mainly by the decay of inhibitory synaptic current evoked by shared input from their peers.

Figure 8. Generation of ripple oscillations relies on recurrent connections within the parvalbumin-containing basket cell (PVBC) population.

Figure 8.

(A) Significant ripple frequency (A1) and ripple power (A2) of a purely PVBC network, driven by (independent) spike trains mimicking pyramidal cell (PC) population activity. Gray color in (A1) means no significant ripple peak. (B) From top to bottom: raster plot, mean PVBC rate, voltage trace (of a selected cell), EPSCs, and IPSCs of the selected cell from the middle (100-ms-long window) of a simulation used for (A). Ripple frequency and power corresponding to this simulation are marked with a black rectangle in (A1) and (A2). (C) PC raster plot on top and PC population rate at the bottom from a simulation run with a network with 1.3* baseline E-E weight matrix but without any PVBC-PVBC synapses, featuring stochastic forward and backward replays but no ripple oscillation (see below). (D) Estimated local field potential (LFP) in the top panel and its time-frequency representation (wavelet analysis) below. (Compared to Figure 2B, there is increased power in the gamma range, but no ripple frequency oscillation.) (E) Analysis of selected network dynamics indicators across different E-E weight scaling factors (0.8–1.6) as in Figure 3B.

Several experiments have shown that local application of GABA blockers eliminates ripples (Maier et al., 2003; Ellender et al., 2010; Schlingloff et al., 2014; Stark et al., 2014); however, in an experimental setup it is hard to distinguish feedback inhibition (PVBC-PC) from reciprocal inhibition (PVBC-PVBC). As a final perturbation, we modified the full baseline model by eliminating only the recurrent inhibitory synapses (Figure 8C and D). The resulting dynamics were stable and with enhanced (*1.3) PC-PC weights it also displayed sequence replay, but ripple oscillations were never observed (Figure 8D and E). Taken together, these results support the conclusions of previous modeling (Brunel and Wang, 2003; Geisler et al., 2005; Taxidis et al., 2012; Donoso et al., 2018; Ramirez-Villegas et al., 2018) as well as experimental studies (Buzsáki et al., 1992; Ylinen et al., 1995; Rácz et al., 2009; Ellender et al., 2010; Schlingloff et al., 2014; Stark et al., 2014; Gulyás and Freund, 2015; Gan et al., 2017), proposing that ripple oscillations are generated in strongly driven, recurrently connected inhibitory networks by the fast inhibitory neuronal oscillation (FINO) mechanism. In fact, recurrent inhibitory connections were both necessary and sufficient for the generation of ripple oscillations in our model.

Discussion

Using a data-driven network model of area CA3 of the hippocampus that reproduces the main characteristics of SWRs, we examined the link between learning during exploration and the network dynamics in resting periods. Our principal findings from analyzing and manipulating this model are as follows: (1) structured (learned) recurrent excitation in the CA3 region not only enables coding and memory, but is critical for the generation of SWRs as well; (2) the symmetric STDP rule described by Mishra et al., 2016, in combination with cellular adaptation in CA3 PCs, provides an explanation for the coexistence of forward and reverse replays; (3) the pattern of strong connections in the network rather than the overall weight statistics may be critical for the emergence and key properties of SWRs and replay in area CA3; and (4) ripple oscillations are generated in the strongly driven, recurrently connected network of fast-spiking PVBCs by the FINO mechanism (Schlingloff et al., 2014) (also known as PYR-INT-INT [Stark et al., 2014; Buzsáki, 2015; Ramirez-Villegas et al., 2018]).

Connections of sharp waves, sequence replay, and ripple oscillations

SWRs represent the most synchronous physiological activity pattern with the largest excitatory gain in the mammalian brain (Buzsáki et al., 1983; Buzsáki et al., 1992; Buzsáki, 1989; Buzsáki, 2015). Under normal conditions, ripples are typically observed riding on top of naturally emerging sharp waves. More recently, using optogenetics, Schlingloff et al., 2014 and Stark et al., 2014 managed to decouple ripples from sharp waves by directly and indirectly activating the interconnected network of PVBCs. Our in silico results perfectly parallel this work: without drastic, nonphysiological modifications of the model ripples were always tied to sequence replay, which was in turn associated with bouts of increased spiking activity in the network (the sharp waves). When we separated the PVBC network, we found that a relatively high (>2 Hz) mean firing rate in the PC population was required for inducing ripple oscillation, a condition that was satisfied only during sharp wave events and the associated sequence replay in our full baseline network. When the PC population reaches this frequency after a stochastically initiated buildup period (Schlingloff et al., 2014), the strongly driven, high-frequency firing of PVBCs is synchronized and phase-locked via reciprocal inhibition. Thus, the learned recurrent PC-PC synaptic weights are responsible for coding, govern sequence replay, and, by giving rise to high PC activity during the replay, they also cause the ripples. In summary, memory storage and recall, as well as the main hippocampal oscillations and transient activity patterns, are intimately interconnected in our unifying model.

Experimental predictions

The identification of the mechanisms in the model through which specific synaptic interactions, plasticity, and cellular properties give rise to sequence generation and particular aspects of population dynamics (sharp waves and ripple oscillations) also allows us to make explicit experimental predictions. Although some of the manipulations that we used to probe our model (such as shuffling the weights) are not feasible in the biological system, others could probably be replicated using modern (e.g., optogenetic or chemogenetic) tools. As an important example, our model predicts that selectively blocking recurrent inhibitory connections between PVBCs should completely eliminate ripple oscillations, while having only minor quantitative effects (through modifying the effective gain of feedback inhibition of PCs) on sharp waves and sequence replay. By contrast, blocking or substantially attenuating recurrent excitatory interactions in area CA3 is expected to simultaneously eliminate sharp waves, ripple oscillations, and autonomous sequence replay.

Recent experimental findings indicated that the content of replay may be substantially different depending on the experience of the animal (Pfeiffer and Foster, 2015; Stella et al., 2019; Kay et al., 2020). In our model, the nature of replayed sequences depends mostly on the activity patterns of hippocampal neurons during exploration, which determine, through learning, the subsequent pattern of recurrent interactions. In the basic scenario explored in our paper, learning occurred during repeated runs along a single linear track, which led to reactivations consisting of random chunks of the single learned trajectory, and allowed our model to replicate the replay dynamics observed by Pfeiffer and Foster, 2015. However, other types of learning experience would be expected to result in different reactivation dynamics. For instance, random exploration in an open field, as investigated by Stella et al., 2019, may be expected to result in a 2D bump attractor structure encoded in the recurrent weights (similarly to the earlier model of Káli and Dayan, 2000), and this, combined with adaptation and some random noise, may explain the diffusive nature of reactivation in their experiments. Similarly, the learning of alternative routes in the experiments of Kay et al., 2020, combined with adaptation, may explain the spontaneous switching between representations of alternative future paths. Overall, a general prediction of our framework is that one could deduce the nature of reactivations in different experiments using the same model simply by changing the spike statistics during the learning phase so that it mimics the corresponding experimental observations. It also follows from this argument that the different results of these studies should stem primarily from the different environments and protocols used during training rather than, for instance, differences in analysis methods.

Experimental studies focusing on conventional forms of sequence reactivation found that the dominant direction of replay depended on the behavioral state of the animal (Foster and Wilson, 2006; Diba and Buzsáki, 2007; Pfeiffer and Foster, 2013), and replay often started at behaviorally relevant locations (Karlsson and Frank, 2009). In our model, the starting point and direction of replay depend on systematic biases and random variations in the weight structure, but also on (random or deterministic) spatio-temporal structure in the external inputs. We believe that the cued replay scenario that we simulated is not entirely artificial – even real environments may contain choice points where the animal pauses to plan its route, or reward sites that again make the animal stop and may also activate subcortical modulatory systems that affect plasticity. At intermediate sites, systematic bias could be introduced during exploration by factors that influence behavior (e.g., running speed), neuronal activity or plasticity (e.g., attention), especially if such factors can change the fully symmetric nature of the synaptic plasticity rule. Random variations in connectivity or the weights (e.g., due to stochastic spiking during learning) will lead to a location-dependent systematic bias towards forward or reverse replay. Finally, (randomly occurring or input-driven) sequences in the external input are also expected to bias the direction of replay even at intermediate points. Although a detailed analysis of the relative impact of these factors will require further efforts, we can already make some predictions regarding the effects of various experimental manipulations. In particular, it should be possible to influence the starting point and direction of replay by the selective activation of place cells representing a particular location (or a sequence of locations) in offline states, although the rapid sequential activation of functionally defined chains of neurons might be technically challenging. More importantly, our model also predicts that similar manipulations of neuronal activity during exploration should also have an impact on the content of replay, and even on the global properties of sharp waves, through their influence on the learned synaptic weight structure.

Finally, our modeling results also suggest that it would be critical to explore whether the unusual, temporally symmetric STDP rule uncovered by Mishra et al., 2016 correctly describes the plasticity of CA3 excitatory recurrent collaterals under all physiological circumstances, or perhaps the rule is different (not entirely symmetric or even antisymmetric) under some conditions in vivo, for example, depending on behavioral variables and the associated pattern of subcortical inputs. One specific prediction of our model is that any factors that change the symmetric nature of the plasticity rule during exploration should alter the balance of forward and backward replay events during subsequent SWRs.

Biological plausibility of the model

The network model presented here was constrained strongly by the available experimental data. Many cellular and synaptic parameters were fit directly to in vitro measurements, and most functional parameters correspond to in vivo recordings of hippocampal place cells. Nevertheless, there are certainly many biological features that are currently missing from our model. We do not see this as a major limitation of our study as our goal was to provide a mechanistic explanation for a core set of phenomena by identifying the key underlying biological components and interactions. On the other hand, our model can be systematically refined and extended, especially when new experimental data become available. The main assumptions we made when constructing the model are explicitly stated in Table 1. Here, we briefly discuss some of these assumptions, as well as some remaining discrepancies between our simulation results and the corresponding experimental data.

Table 1. List of modeling assumptions.

1 In the absence of unified datasets, it was assumed that published parameters from different animals (mouse/rat, strain, sex, age) can be used together to build a general model.
2 Connection probabilities were assumed to depend only on the presynaptic cell type and to be independent of distance.
3 Each pyramidal cell was assumed to have a place field in any given environment with a probability of 50%. For simplicity, multiple place fields were not allowed.
4 When constructing the ‘teaching spike trains’ during simulated exploration, place fields were assumed to have a uniform size, tuning curve shape, and maximum firing rate.
5 For simplicity, all synaptic interactions in the network were modeled as deterministic conductance changes. Short-term plasticity was not included, and long-term plasticity was assumed to operate only in the learning phase.
6 When considering the nonspecific drive to the network in the offline state, it was assumed that the external input can be modeled as uncorrelated random spike trains (one per cell) activating strong synapses (representing the mossy fibers) in the pyramidal cell population.
7 Some fundamental assumptions are inherited from common practices in computational neuroscience; these include modeling spike trains as Poisson processes, capturing weight changes with additive spike-timing-dependent plasticity, describing cells with single-compartmental AdExpIF models, modeling a neuronal population with replicas of a single model, and representing synapses with conductance-based models with biexponential kinetics.
8 When comparing our model to in vivo data, an implicit assumption was that the behavior of a simplified model based on slice constraints can generalize to the observed behavior of the full CA3 region in vivo, in the context of studying the link between activity-dependent plasticity and network dynamics.

The 10% PC-PC connection probability is based on the classical viewpoint that considers the CA3 region as a highly interconnected network (Lisman, 1999; Andersen et al., 2007). Although a recent physiological study (Guzman et al., 2016) estimated <1% connection probability in 400-µm-thick slices, the authors concluded from ‘virtual slicing’ experiments that recurrent axons were substantially reduced. This is in agreement with Li et al., 1994, who reported at least 70% axonal loss in 400 µm slices. Thus, the in vivo connection probability is likely to be considerably higher than 1%. Furthermore, due to the long-tailed distribution of synaptic weights, many of the anatomically existing connections that are represented in our model may be too weak to be reliably detected in paired recording experiments.

Our model network contained 8000 PCs and 150 PVBCs, which is rather small compared to the full rodent CA3 region. While in vitro studies suggest that this network size is sufficient for the generation of SWRs, and that these two cell types are the key players in this process, it is likely that the much larger network size and the various additional cell types modify the quantitative aspects of SWRs in vivo.

For simplicity, we also decided not to model all the different types of variation in single-cell and synaptic properties that characterize real cortical networks. However, it is important to note that several sources of variability (e.g., those resulting from the random assignment of place field locations, sparse, randomized connectivity, and stochastic, independent external drive) were still included in the model. The variability that we include is sufficient to avoid the regular, unnaturally synchronous dynamics that often characterize homogeneous networks, and results in variable, natural-looking spike patterns during both exploration and spontaneous SWR activity. Including additional forms of heterogeneity would likely increase the cell-to-cell variability of activity (such as firing rates), but (up to a certain limit) would not be expected to change our results qualitatively.

We modeled activity-dependent synaptic plasticity based on the study of Mishra et al., 2016, who uncovered an unusual, temporally symmetric form of STDP in the recurrent excitatory connections between CA3 pyramidal neurons. We fit the temporal kernel of our STDP rule directly to their data, assumed linear summation of synaptic modifications from all the spike pairs that occurred during the exploration phase, and ignored all higher-order (triplet, etc.) spike interactions. However, we note that the details of the plasticity rule are not expected to have a major impact on our results concerning the emergent dynamics of the CA3 network during resting periods as long as learning results in the strengthening of connections between PCs that are approximately co-active during exploration, independent of the exact temporal order of their spikes. This requirement would be satisfied by a variety of different learning rules, including the behavioral timescale plasticity rule recently described in hippocampal CA1 PCs (Bittner et al., 2017).

The complete absence of plasticity in the second phase of our simulations may not be realistic. On the other hand, plasticity is known to be strongly modulated by brain state (e.g., through the action of subcortical inputs on hippocampal cells and synapses), so plasticity may be substantially weaker or different in offline states (such as slow-wave sleep; see Hasselmo, 2006; Fuenzalida et al., 2021 for reviews). Finally, since replay recapitulates activity correlations in the learning phase, the main effect of plasticity during replay would be to reinforce existing patterns of weights and activity, although some kind of homeostatic mechanism may be required to prevent uncontrolled positive feedback in this case.

One substantial difference between SWRs in the model and those recorded in vivo is the duration of the SWR events and the associated replay. Ripple episodes typically last 40–100 ms in vivo (O’Keefe and Nadel, 1978; Buzsáki et al., 1983; Buzsáki et al., 1992; Ylinen et al., 1995), although Fernández-Ruiz et al., 2019 recently showed that learning in spatial memory tasks is associated with prolonged SWRs and replays. In our model, SWRs can be up to 800 ms in duration as they are terminated when the replayed sequence reaches either the end or the beginning of the learned trajectory (depending on the direction of replay), thus the length of the track determines the maximal duration of the SWR, in combination with the speed of replay (i.e., the rate at which activation propagates across the population of place cells). The speed of replay in the model is consistent with experimental findings, but a single replay event can cover the whole 3-m-long track. Davidson et al., 2009 also used a long track in their experiments; however, they reported that the whole path was never replayed during a single SWR, only short segments, which combined to cover the whole track over multiple SWRs. Therefore, it appears likely that our simplified model lacks some additional mechanisms that contribute to the termination of individual SWRs in the experiments. For example, building on the work of York and van Rossum, 2009, some rate-based models of sequence replay in a circular environment (Romani and Tsodyks, 2015; Theodoni et al., 2018) included short-term synaptic depression as a mechanism for terminating replay. However, Guzman et al., 2016 found pseudo-linear short-term plasticity profiles for the recurrent PC-PC connections at physiological temperatures (although depression was present in recordings at room temperature). Another possibility is that an additional cell type that is not currently included in our model is responsible for the termination of SWR events. More specifically, the duration of the in silico SWRs could probably be controlled by a second interneuron population providing delayed, long-lasting feedback inhibition to the PCs. Three-population models were recently analyzed in detail by Evangelista et al., 2020, who found that competitive interactions between PVBCs and another (so far unidentified) interneuron population inhibiting PCs, combined with appropriate short-term synaptic plasticity of the relevant connections, could explain many key experimental findings regarding the initiation and termination of SWRs.

Finally, we have presented our work as a model of the hippocampal CA3 area. This is because this area is known to be able to generate SWRs on its own, has modifiable recurrent connections that are thought to be essential for memory, and there are sufficient experimental data from this region to constrain the model. However, other cortical regions such as CA2, the subiculum, and entorhinal cortex are likely involved in the initiation of SWRs under normal conditions (Oliva et al., 2016; Oliva et al., 2020), and the mechanisms we describe here may be operational in these and other brain areas as well.

Previous models of SWRs and sequence replay

In this study, our main objective was to build a simplified, yet powerful model of area CA3 that is constrained by experimental data at all (possible) levels, and thus allows us to uncover the mechanistic links between learning, neural population dynamics, and the representation of spatial (or other) sequences in the hippocampus during different behavioral states. Although there is a plethora of hippocampal models that shed light on some of these aspects (these models have been recently reviewed [Buzsáki, 2015; Jahnke et al., 2015] and are also cited when relevant throughout the ‘Results’ section), there are only a handful of recent models that attempted to treat all of them within a single coherent framework.

The study of Jahnke et al., 2015 is probably the most similar in spirit to ours as it also explores the relationship between learning, replay, and SWRs. One distinguishing feature of their model is that it relies on the nonlinear amplification of synaptic inputs by dendritic spikes in CA3 PCs for the generation of both sequential activity and ripple oscillations (Memmesheimer, 2010). Importantly, replay always occurs in the forward direction in their model as it relies on feedforward chains of strong weights in the network, established by an asymmetric STDP rule that is quite distinct from the one that was later found empirically by Mishra et al., 2016. In addition, the generation of ripple oscillations in their model relies on synchronized pulses of activity generated by interconnected PCs, while recent experimental findings appear to provide causal evidence for the involvement of fast-spiking PVBCs in ripple frequency oscillation generation (Rácz et al., 2009; Ellender et al., 2010; English et al., 2014; Schlingloff et al., 2014; Stark et al., 2014; Gulyás and Freund, 2015; Buzsáki, 2015; Gan et al., 2017). Finally, SWRs need to be evoked by synchronous external input in the model of Jahnke et al., 2015, while they can also emerge spontaneously in our model.

Malerba and Bazhenov, 2019 developed a combined model of areas CA3 and CA1 to study the generation of sharp waves in CA3 and associated ripple oscillations in CA1. This model relies on distance-dependent connection probabilities in the network for the generation of spatially localized SWR events. The study shows that modifying the recurrent excitatory weights via an asymmetric STDP rule during a simulated learning epoch biases the content of SWRs towards the (forward) reactivation of learned trajectories. Ripple oscillations are modeled only in CA1 and, in contrast to our model (and the models of Taxidis et al., 2012; Donoso et al., 2018; Ramirez-Villegas et al., 2018), their generation is independent of recurrent inhibition.

A notable recent example of functionally motivated (top-down) modeling of these phenomena is the study of Nicola and Clopath, 2019. The authors designed and trained (using supervised learning methods) a network of spiking neurons to generate activity sequences that were either tied to the population-level theta oscillation or occurred spontaneously in isolation (in a compressed manner) depending on the presence or absence of an external theta-frequency input. Interestingly, these results were achieved by tuning specifically the inhibitory weights in the network, while all other models (including ours) rely on plasticity in the recurrent excitatory synapses. Their model produced forward replay of sequences by default; however, sequences could be reversed by the activation of a distinct, dedicated class of interneurons.

To our best knowledge, ours is the first model that autonomously generates SWRs and replay in a spiking network model using synaptic weights established via the experimentally observed symmetric STDP rule. The model of Haga and Fukai, 2018 used symmetric STDP (in combination with short-term plasticity) to modify an existing (pre-wired) weight structure, and showed that these changes biased evoked activity sequences towards reverse replay. Neither spontaneous sharp waves nor ripple oscillations were observed in this model.

We believe that our approach of fitting the parameters of our single-cell models directly to experimental data to mimic the physiological spiking behavior of real PCs and PVBCs is also quite unique. This enabled our models of PCs to capture spike frequency adaptation, which proved to be essential for the generation of propagating activity (sequence replay) despite the essentially symmetric nature of synaptic interactions.

Conclusions

At a more general level, our results highlight the significance of some previously neglected interactions between three fundamental components of brain function: population dynamics, coding, and plasticity. Specifically, the different types of population dynamics (including oscillations and transients such as sharp waves) are mostly seen as a background over which coding and plasticity occur, while the impacts of plasticity and especially neural representations on the generation of population activity patterns are rarely considered. However, our results strongly suggest that the structured network interactions resulting from activity-dependent learning (or development) lead to specific spatio-temporal activity patterns (such as autonomously generated replay sequences), which are in turn critical for the emergence of physiological population activity (such as sharp waves and ripple oscillations). Therefore, our study indicates that the complex structure of synaptic interactions in neuronal networks may have a hitherto unappreciated degree of control over the general mode of activity in the network and should be taken into account by future theories and models of population activity patterns in any part of the nervous system.

Materials and methods

In order to investigate the mechanisms underlying hippocampal network dynamics and how these are affected by learning, we built a simplified network model of area CA3. This scaled-down version of CA3 contained 8000 PCs and 150 PVBCs, which is approximately equivalent to cell numbers in area CA3 in a 600-µm-thick hippocampal slice based on our previous estimates (Schlingloff et al., 2014), which are also in good agreement with other estimates (Bezaire and Soltesz, 2013; Donoso et al., 2018; Evangelista et al., 2020). The connection probability was estimated to be 25% for PVBCs (Schlingloff et al., 2014) and 10% for PCs (Table 3), and was independent of distance in the model. Half of the PCs were assumed to have place fields on the simulated 3-m-long linear track.

Only PCs received external input; during exploration, they were activated directly to model place-associated firing; otherwise, they received synaptic input (through the mossy fibers) in the form of uncorrelated Poisson spike trains with a mean rate of 15 Hz. As the hallmark of granule cell activity in the dentate gyrus is sparse, low-frequency firing (Jung and McNaughton, 1993; Skaggs et al., 1996), and each CA3 PC is contacted by only a few mossy fibers, the physiological mean rate of mossy fiber input to PCs is probably substantially lower (especially in offline states of the hippocampus). On the other hand, real CA3 PCs also receive direct input from the entorhinal cortex, and also spontaneous EPSPs from a large population of recurrent collateral synapses. Overall, these other numerous, but small-amplitude inputs may be responsible for most of the depolarization required to bring CA3 PCs close to their firing threshold, in which case mossy fiber input at a significantly lower rate would be sufficient to evoke the same number of action potentials in CA3 PCs.

Network simulations were run in Brian2 (Stimberg et al., 2019). Learning of the structure of recurrent excitation, single-cell and network optimization, and the analysis of the network simulations are detailed in the following sections. A comprehensive list of assumptions made during the model building process is presented in Table 1.

Spike trains during exploration

Spike trains mimicking CA3 PC activity during exploration were generated with exponentially distributed interspike intervals (ISIs) with mean 1/λ, giving rise to Poisson processes. Spike trains of nonplace cells had constant mean firing rates of λ=0.1 Hz. For the spike trains of the randomly selected 4000 place cells, homogeneous Poisson processes with λ=20 Hz were generated, and spike times were accept-reject sampled with acceptance probability coming from place cell-like tuning curves (Equation (2)), which led to inhomogeneous Poisson processes with time-dependent rate λ(t). Tuning curves were modeled as Gaussians centered at randomly distributed positions and standard deviation (σ) set to cover 10% of the 3-m-long linear track (Equation (1)). Edges of the place fields were defined where the firing rate dropped to 10% of the maximal 20 Hz (Dragoi and Buzsáki, 2006). Tuning curves were also modulated in time by the background fθ=7 Hz theta activity, and phase precessed up to 180° at the beginning of the place field (O’Keefe and Recce, 1993). The firing rate of the ith place cell was calculated as follows:

τi(x)=exp(-(x-miPF)22σ2) (1)
λi(t)=λmax×τi(x(t))×cos(2πfθt+πlPF(x(t)-siPF)) (2)

where τi(x) is the spatial tuning curve of the ith neuron, x(t) is the position of the animal, miPF, lPF=0.3 m, and siPF are the middle, length, and start of the given place field, respectively; λmax=20 Hz is the maximum in-field firing rate.

Spikes within a 5 ms refractory period of the previous spike were always rejected. The speed of the animal was set to 32.5 cm/s, thus each run took ∼9.2 s, after which the animal was immediately ‘teleported back’ to the start of the linear track. Generated spike trains were 400 s long, leading to ∼43 repetitions on the same linear track.

Learning via STDP

STDP was implemented by an additive pair-based learning rule, evaluated at spike arrivals (Kempter et al., 1999; Gerstner et al., 2014). Synaptic weights evolved as follows:

Δw+=A+exp(Δtτ+) at tpost if tpre<tpost (3)
Δw=Aexp(Δtτ) at tpre if tpre>tpost (4)

where Δt=tpost-tpre is the time difference between action potentials, and A± describes the weight update, which decayed exponentially with time constants τ±. Synaptic weights were cropped at wmax=20 nS. To reproduce the broad STDP curve presented in Mishra et al., 2016, τ±=62.5 ms was used. In the classical asymmetric STDP rules, A+ is positive, while A- is negative; here, both of them were set to 80 pA to obtain a symmetric STDP curve (Mishra et al., 2016). In simulations using the asymmetric STDP rule, τ±=20 ms, A+=400 pA, A-=-400 pA, and wmax=40 nS were used. In both cases, PCs were sparsely connected (Table 3) and weights were initialized to 0.1 nS. In the learning phase, the intrinsic dynamics of the PCs were not modeled explicitly since only the timing of their spikes mattered, which was set directly as described above. No self-connections were allowed, and diagonal elements of the learned recurrent weight matrix were always set to zero after any modification.

In vitro electrophysiology

Somatic whole-cell patch-clamp recordings were performed in acute hippocampal slices as described before (Papp et al., 2013; Schlingloff et al., 2014; Kohus et al., 2016). PCs were recorded in the CA3 PC layer of juvenile control mice, while PVBCs were recorded in a targeted manner in transgenic mice that expressed enhanced green fluorescent protein controlled by the parvalbumin promoter (BAC-PV-eGFP) (Meyer et al., 2002). To characterize the physiological response properties of the neurons, hyperpolarizing and depolarizing current steps of various amplitudes were injected into the soma, and the voltage response of the cell was recorded. Injected current pulses had a duration of 800 ms, and amplitudes between –100 and 600 pA. Experimental traces were corrected for the theoretical liquid junction potential before further use.

Single-cell models

Neurons were modeled with the AdExpIF model (Naud et al., 2008; Gerstner et al., 2014). AdExpIF neurons are described by their membrane potential V(t) and the adaptation variable w(t), which obey

CmdV(t)dt=-(gL(V(t)-Vrest)-gLΔTexp(V(t)-ϑΔT)+Isyn(t)+w(t)) (5)
τwdw(t)dt=a(V(t)-Vrest)-w(t) (6)

where Cm is the membrane capacitance, gL is the leak conductance, Vrest is the reversal potential of the linear leak current (which is approximately equal to the resting potential), ϑ is the intrinsic spike threshold, ΔT characterizes the ‘sharpness’ of the threshold, w(t) is the adaptation current, and Isyn is the synaptic current (see below). When V(t) crosses the firing threshold θ, it is reset to Vreset and remains there for a refractory period tref. The adaptation current is also increased by a factor b at each spike arrival. The parameter a describes the strength of subthreshold adaptation.

To investigate the role of adaptation, an ExpIF PC model was also fit to the data. The ExpIF model is the same as Equation (5) without the w(t) adaptation current (implemented as an AdExpIF model with parameters a and b set identically to zero). The parameters of all models were fit to experimental data from our somatic whole-cell recordings, and the voltage responses to current injections of four different amplitudes (including two subthreshold and two suprathreshold stimuli) were used in each case. Parameters were tuned using the Optimizer package (Friedrich et al., 2014) with the NEST simulator as backend (van Albada et al., 2015). Spike count, ISI distribution, latency to first spike, and mean squared error (excluding spikes) were used as equally weighted features. After comparing different optimization techniques, the final parameters presented here were obtained with an evolutionary algorithm implemented by the inspyred package (Garrett, 2012), running for 100 generations with a population size of 100. The parameters that yield the best models for the CA3 populations are summarized in Table 2.

Table 2. Optimized parameters of pyramidal cell (PC) (AdExpIF and ExpIF) and parvalbumin-containing basket cell (PVBC) models.

Physical dimensions are as follows: Cm: pF; gL and a: nS; Vrest, ΔT, ϑ, θ, and Vreset: mV; tref and τw: ms; b: pA.

Cm gL Vrest ΔT ϑ θ Vreset tref τw a b
PC 180.13 4.31 –75.19 4.23 –24.42 –3.25 –29.74 5.96 84.93 –0.27 206.84
PC 344.18 4.88 –75.19 10.78 –28.77 25.13 –58.82 1.07 - - -
PVBC 118.52 7.51 –74.74 4.58 –57.71 –34.78 –64.99 1.15 178.58 3.05 0.91

Synapse models

Synapses were modeled as conductances with biexponential kinetics:

g(t)=g^A(exp(-tτd)-exp(-tτr)) (7)

where g^ is the peak conductance (which will also be referred to as the synaptic weight) and τr and τd are rise and decay time constants, respectively. The normalization constant A=exp(-tpτd)-exp(-tpτr) was chosen such that the synapses reach their peak conductance at tp=τdτr/(τd-τr)log(τd/τr) ms. Kinetic parameters were taken from the literature (Geiger et al., 1997; Bartos et al., 2002; Lee et al., 2014; Vyleta et al., 2016; Guzman et al., 2016) and are summarized in Table 3. The postsynaptic current contained AMPA receptor- and GABA-A receptor-mediated components, and was computed as

Isyn(t)=gAMPA(t)(V(t)-Eexc)+gGABA(t)(V(t)-Einh) (8)

Table 3. Synaptic parameters (taken from the literature or optimized).

Physical dimensions are as follows: g^: nS; τr, τd, and td (synaptic delay): ms; and connection probability pconn is dimensionless. GC stands for the granule cells of the dentate gyrus. (GCPC synapses are referred as mossy fibers.) Sym. and asym. indicate maximal conductance parameters obtained for networks trained with the symmetric and the asymmetric spike-timing-dependent plasticity (STDP) kernel, respectively. PC: pyramidal cell; PVBC: parvalbumin-containing basket cell.

g^ τr τd t d pconn
Sym. Asym.
PC PC 0.1–6.3 0–15 1.3 9.5 2.2 0.1
PC PVBC 0.85 1 4.1 0.9 0.1
PVBC PC 0.65 0.3 3.3 1.1 0.25
PVBC PVBC 5 0.25 1.2 0.6 0.25
GC PC 19.15 21.5 0.65 5.4 - -

where Eexc=0 mV and Einh=-70 mV are the reversal potentials of excitatory and inhibitory currents, respectively.

Network optimization

Synaptic weights of the network (five parameters in total) were optimized with an evolutionary algorithm using a custom written evaluator in BluePyOpt (Van Geit et al., 2016). The multiobjective fitness function , designed specifically for this network, included six separately weighted features (Equation (9)): physiological PC firing rate, no significant gamma oscillation in the PVBC population, significant ripple frequency oscillations in the rates of PC and PVBC populations, as well as high ripple vs. gamma power in the rates of the PC and PVBC populations:

F=[exp((νPC2)22×0.52),δ(fγPVBC),exp((frPC180)22×202),2×exp((frPVBC180)22×202),P(ωrPC)P(ωγPC)|[0,5],2×P(ωrPVBC)P(ωγPVBC)|[0,5]] (9)

where ν is the firing rate; δ(fγPVBC) is 1 if no significant gamma oscillation was detected in the PVBC population rate, and 0 otherwise; fr and fγ are significant peaks in the ripple and gamma range (see below) of the PSD of the firing rate, respectively; P(ωr) and P(ωγ) are the periodogram values within the gamma and ripple bands of the firing rate, respectively, while the sums represent the total power within the relevant frequency bands (as below). Ripple/gamma power ratios used for the optimization were clipped to fall into [0, 5]. As in the case of the network simulations (see above), spectral features were extracted only in those time windows when the PC firing rate exceeded the 2 Hz high-activity state detection threshold. Sequence replay was not analyzed during the optimization. Optimizations were run with 50 offspring for 10 generations. Synaptic weights were varied in the [0.1, 5] nS range, except the ‘detonator’ mossy fiber ones that were given a higher [15, 30] nS range (Henze et al., 2002; Vyleta et al., 2016). For the learned recurrent excitatory weights, an additional scaling factor was introduced. All learned weights are presented with this optimized scale factor (0.62 for symmetric and 1.27 for asymmetric STDP rule) taken into account. Final weights are presented in Table 3. The ExpIF PC model required much higher synaptic drive to fire at the same frequency as the AdExpIF model, thus the mossy fiber input weight was doubled (38.3 nS) when ExpIF PC models were used.

LFP estimate

An estimate of the LFP was calculated by summing the synaptic currents of a randomly selected subset of N=400 PCs (Mazzoni et al., 2008). This approach is essentially equivalent to using ‘transmembrane’ currents to calculate the field potential at an arbitrary sampling point xe using volume conduction theory and the forward model (Einevoll et al., 2013):

V(xe,t)=14πσn=1NIn(t)|xe-xn| (10)

where σ=1/3.54 S/m is the extracellular conductivity and In(t) denotes the transmembrane currents of the nth neuron. There was no attempt to replicate the spatial organization of CA3 PCs, and a uniform |xe-xn|=1μm distance from the sampling point was used (note that this choice affects the results only as a constant scaling factor). The resulting signal was low-pass filtered at 500 Hz with a third-order Butterworth filter.

Spectral analysis

Power spectral density (PSD) was estimated by Welch’s method with a Hann window using 512 long segments in case of population rates (sampling frequency = 1 kHz) and 4096 long segments for LFP (see below, sampling frequency = 10 kHz) with 0.5 overlap. If the network showed multiple sequence replays during the 10-s-long simulations (most cases), only the detected high-activity states (see above) were analyzed and averaged to get rid of the high power at ~1.5 Hz, signaling the frequency of sequence replays. In this case, shorter segments (256 and 2048, respectively) were used to estimate the PSD. The significance of peaks in the power spectra in the gamma (30–100 Hz) and ripple (150–220 Hz) bands was evaluated using Fisher’s g-statistic (Fisher, 1929) defined as

g=maxk(P(ωk))k=1NP(ωk) (11)

where P(ω) is the periodogram (Welch’s method estimates PSD by averaging periodograms from the short segments) evaluated at k discrete frequencies, N is the length of the periodogram, and k=1NP(ωk) is the total power of the spectrum. The distribution of g-statistics under the null hypothesis (H0) (Gaussian white noise) is given by

p=Pr(g*§gt;g)=k=1b(-1)k-1N!k!(N-k)!(1-kg)N-1 (12)

where b is the largest integer less than 1/g. Large value of g (small p-value) indicates a strong periodic component and leads to the rejection of H0. Alpha level 0.05 was used throughout the study. To characterize nonsignificant oscillations too, gamma and ripple power (defined as the sum in the given frequency band divided by the total power in the 0–500 Hz range) were calculated as well. Time-frequency representations were created by convolving the firing rates (or LFP) with samples of the integral of the Morlet wavelet Ψ(t)=exp(-t2/2)cos(5t) evaluated at the scales corresponding to the 25–325 Hz band using the pywt package (Lee et al., 2006).

Replay analysis

Sequence replay was analyzed with methods used by experimentalists having access to spike times of hundreds of identified neurons (Olafsdottir et al., 2018). Firstly, candidate replay events were selected based on the averaged (into 20 ms bins) PC population firing rate crossing the threshold of 2 Hz for at least 260 ms. Secondly, the animal’s position was estimated with a memoryless Bayesian place decoder based on the observed spikes within the selected time windows (Davidson et al., 2009; Karlsson and Frank, 2009). Only spikes from the N=4000 place cells were used. For numerical stability, log likelihoods were calculated:

log(Pr(spikes|x))=i=1Nnilog(ΔTτi(x)ni!)-ΔTi=1Nτi(x) (13)

where ni is the number of spikes of the ith neuron within the ΔT=10-ms-long, nonoverlapping time bins, and τi(x) is the tuning curve used for spike train generation (Equation (1)). The 3-m-long linear track was binned into 50 intervals, resulting in 6 cm spatial resolution. Thirdly, constant velocity v neural trajectories were detected with a 2D band finding method in the decoded posterior matrix (Davidson et al., 2009). For candidate events consisting of n time bins, the average likelihood R that the animal is within distance d=18 cm of a particular trajectory is given by

R(v,x0)=1nk=0n-1Pr(|x-(x0+vkΔT)|d) (14)

where x0 is the starting position of the trajectory. R(v,x0) was maximized using an exhaustive search to test all combinations of v between –18 m/s and 18 m/s in 0.3 ms/s increments (excluding slow trajectories with speed [-0.3,0.3] m/s) and x0 between –1.5 m and 4.5 m in 3 cm increments. Lastly, to determine the significance of replay, Rmax was compared to the best-line fits of 100 posterior probability matrices generated by shuffling the identities of cells included in the candidate event. Only events with Rmax values exceeding the 95th percentile of their own shuffled distribution were labeled as replay.

To replicate the step-size analysis of Pfeiffer and Foster, 2015, the position of the animal was estimated as a weighted average based on the posterior matrix in each time bin instead of the band finding method. As their control distribution for the skewed step sizes (‘predicted step-size’ distribution) was derived for a 2D arena, it was not directly applicable to our linear track setup. Therefore, we defined the predicted step-size distribution based on the ratio of the length of the replayed path and the duration of the replay event for the SWRs detected in the simulations.

Accessibility

The source code is publicly available at https://github.com/KaliLab/ca3net (copy archived at ,swh:1:rev:bfeb4fa6c8d07f75778df671cc9500cf0316df51, Ecker, 2022).

Acknowledgements

We thank G Buzsáki, D Csordás, G Nyíri, B Ujfalussy, and V Varga for insightful comments on the manuscript, M Stimberg for his help with Brian2, and F Crameri for colormaps.

Funding Statement

The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication.

Contributor Information

András Ecker, Email: andras.ecker@epfl.ch.

Szabolcs Káli, Email: kali@koki.hu.

Neil Burgess, University College London, United Kingdom.

Laura L Colgin, University of Texas at Austin, United States.

Funding Information

This paper was supported by the following grants:

  • Hungarian Scientific Research Fund K83251 to Attila I Gulyás, Szabolcs Káli, Mária Karlócai.

  • Hungarian Scientific Research Fund K85659 to Orsolya I Papp, Norbert Hájos.

  • Hungarian Scientific Research Fund K115441 to Attila I Gulyás, Szabolcs Káli.

  • Hungarian Medical Research Council 2017-1.2.1-NKP-2017-00002 to Norbert Hájos.

  • European Commission ERC 2011 ADG 294313 to Tamás Freund, Attila I Gulyás, Szabolcs Káli.

  • European Commission 604102 to Tamás Freund, Attila I Gulyás, Szabolcs Káli.

  • European Commission 720270 to Tamás F Freund, Attila I Gulyás, Szabolcs Káli.

  • European Commission 785907 to Tamás F Freund, Attila I Gulyás, Szabolcs Káli.

  • National Research, Development and Innovation Office Artificial Intelligence National Laboratory to Szabolcs Káli.

Additional information

Competing interests

No competing interests declared.

Author contributions

Conceptualization, Formal analysis, Investigation, Methodology, Software, Visualization, Writing – original draft, Writing – review and editing.

Data curation, Formal analysis, Investigation, Methodology, Software, Writing – review and editing.

Conceptualization, Formal analysis, Investigation, Methodology, Software, Writing – review and editing.

Formal analysis, Investigation, Writing – review and editing.

Investigation, Writing – review and editing.

Data curation, Investigation, Writing – review and editing.

Formal analysis, Methodology, Writing – review and editing.

Conceptualization, Data curation, Writing – review and editing.

Conceptualization, Funding acquisition, Writing – review and editing.

Conceptualization, Data curation, Writing – review and editing.

Conceptualization, Data curation, Funding acquisition, Investigation, Methodology, Supervision, Writing – original draft, Writing – review and editing.

Ethics

Experiments were approved by the Committee for the Scientific Ethics of Animal Research (22.1/4027/003/2009) and were performed according to the guidelines of the institutional ethical code and the Hungarian Act of Animal Care and Experimentation. Experiments were performed in acute brain slices; no animal suffering was involved as mice were deeply anaesthetized with isoflurane and decapitated before slice preparation. Data recorded in the context of other studies were used for model fitting, and therefore no additional animals were used for the purpose of this study.

Additional files

Transparent reporting form

Data availability

The source code to build, run and analyze our model is publicly available on GitHub: https://github.com/KaliLab/ca3net, (copy archived at swh:1:rev:bfeb4fa6c8d07f75778df671cc9500cf0316df51).

References

  1. Andersen P, Morris R, Amaral D, Bliss T, O’Keefe J. The Hippocampus Book. Oxford University Press; 2007. [DOI] [Google Scholar]
  2. Azizi AH, Wiskott L, Cheng S. A computational model for preplay in the hippocampus. Frontiers in Computational Neuroscience. 2013;7:161. doi: 10.3389/fncom.2013.00161. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Bartos M, Vida I, Frotscher M, Meyer A, Monyer H, Geiger JRP, Jonas P. Fast synaptic inhibition promotes synchronized gamma oscillations in hippocampal interneuron networks. PNAS. 2002;99:13222–13227. doi: 10.1073/pnas.192233099. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Bezaire MJ, Soltesz I. Quantitative assessment of CA1 local circuits: knowledge base for interneuron-pyramidal cell connectivity. Hippocampus. 2013;23:751–785. doi: 10.1002/hipo.22141. [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Bi GQ, Poo MM. Synaptic modifications in cultured hippocampal neurons: dependence on spike timing, synaptic strength, and postsynaptic cell type. The Journal of Neuroscience. 1998;18:10464–10472. doi: 10.1523/JNEUROSCI.18-24-10464.1998. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Bittner KC, Milstein AD, Grienberger C, Romani S, Magee JC. Behavioral time scale synaptic plasticity underlies CA1 place fields. Science. 2017;357:1033–1036. doi: 10.1126/science.aan3846. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Brunel N, Wang XJ. What determines the frequency of fast network oscillations with irregular neural discharges? I. Synaptic dynamics and excitation-inhibition balance. Journal of Neurophysiology. 2003;90:415–430. doi: 10.1152/jn.01095.2002. [DOI] [PubMed] [Google Scholar]
  8. Buzsáki G, Lai-Wo S. L, Vanderwolf CH. Cellular bases of hippocampal EEG in the behaving rat. Brain Research Reviews. 1983;6:139–171. doi: 10.1016/0165-0173(83)90037-1. [DOI] [PubMed] [Google Scholar]
  9. Buzsáki G. Hippocampal sharp waves: Their origin and significance. Brain Research. 1986;398:242–252. doi: 10.1016/0006-8993(86)91483-6. [DOI] [PubMed] [Google Scholar]
  10. Buzsáki 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]
  11. Buzsáki G, Horváth 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]
  12. Buzsáki G. Hippocampal sharp wave‐ripple: A cognitive biomarker for episodic memory and planning. Hippocampus. 2015;25:1073–1188. doi: 10.1002/hipo.22488. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Carr MF, Jadhav SP, Frank LM. Hippocampal replay in the awake state: a potential substrate for memory consolidation and retrieval. Nature Neuroscience. 2011;14:147–153. doi: 10.1038/nn.2732. [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. Chenkov N, Sprekeler H, Kempter R. Memory replay in balanced recurrent networks. PLOS Computational Biology. 2017;13:e1005359. doi: 10.1371/journal.pcbi.1005359. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Colgin LL. Rhythms of the hippocampal network. Nature Reviews. Neuroscience. 2016;17:239–249. doi: 10.1038/nrn.2016.21. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Compte A, Brunel N, Goldman-Rakic PS, Wang XJ. Synaptic mechanisms and network dynamics underlying spatial working memory in a cortical network model. Cerebral Cortex. 2000;10:910–923. doi: 10.1093/cercor/10.9.910. [DOI] [PubMed] [Google Scholar]
  17. 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. The European Journal of Neuroscience. 2007;26:704–716. doi: 10.1111/j.1460-9568.2007.05684.x. [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Davidson TJ, Kloosterman F, Wilson MA. Hippocampal replay of extended experience. Neuron. 2009;63:497–507. doi: 10.1016/j.neuron.2009.07.027. [DOI] [PMC free article] [PubMed] [Google Scholar]
  19. Davoudi H, Foster DJ. Acute silencing of hippocampal CA3 reveals a dominant role in place field responses. Nature Neuroscience. 2019;22:337–342. doi: 10.1038/s41593-018-0321-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Dayan P, Abbott LF. Theoretical Neuroscience. Cambridge, MA, USA: MIT Press; 2001. [Google Scholar]
  21. Diba K, Buzsáki G. Forward and reverse hippocampal place-cell sequences during ripples. Nature Neuroscience. 2007;10:1241–1242. doi: 10.1038/nn1961. [DOI] [PMC free article] [PubMed] [Google Scholar]
  22. Donoso JR, Schmitz D, Maier N, Kempter R. Hippocampal Ripple Oscillations and Inhibition-First Network Models: Frequency Dynamics and Response to GABA Modulators. The Journal of Neuroscience. 2018;38:3124–3146. doi: 10.1523/JNEUROSCI.0188-17.2018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Dragoi G, Buzsáki G. Temporal encoding of place sequences by hippocampal cell assemblies. Neuron. 2006;50:145–157. doi: 10.1016/j.neuron.2006.02.023. [DOI] [PubMed] [Google Scholar]
  24. Ecker A. Data-driven network model of CA3 - featuring sequence replay and ripple oscillation. swh:1:rev:bfeb4fa6c8d07f75778df671cc9500cf0316df51Software Heritage. 2022 https://archive.softwareheritage.org/swh:1:dir:be7bc5450d9298c0399d5d0255f5071e818c37c3;origin=https://github.com/KaliLab/ca3net;visit=swh:1:snp:dab3aa5ca2492d1f40d08c9b735a2335592cd299;anchor=swh:1:rev:bfeb4fa6c8d07f75778df671cc9500cf0316df51
  25. Ego-Stengel V, Wilson MA. Disruption of ripple-associated hippocampal activity during rest impairs spatial learning in the rat. Hippocampus. 2010;20:1–10. doi: 10.1002/hipo.20707. [DOI] [PMC free article] [PubMed] [Google Scholar]
  26. Einevoll GT, Kayser C, Logothetis NK, Panzeri S. Modelling and analysis of local field potentials for studying the function of cortical circuits. Nature Reviews. Neuroscience. 2013;14:770–785. doi: 10.1038/nrn3599. [DOI] [PubMed] [Google Scholar]
  27. Ellender TJ, Nissen W, Colgin LL, Mann EO, Paulsen O. Priming of hippocampal population bursts by individual perisomatic-targeting interneurons. The Journal of Neuroscience. 2010;30:5979–5991. doi: 10.1523/JNEUROSCI.3962-09.2010. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. English DF, Peyrache A, Stark E, Roux L, Vallentin D, Long MA, Buzsáki G. Excitation and inhibition compete to control spiking during hippocampal ripples: intracellular study in behaving mice. The Journal of Neuroscience. 2014;34:16509–16517. doi: 10.1523/JNEUROSCI.2600-14.2014. [DOI] [PMC free article] [PubMed] [Google Scholar]
  29. Evangelista R, Cano G, Cooper C, Schmitz D, Maier N, Kempter R. Generation of Sharp Wave-Ripple Events by Disinhibition. The Journal of Neuroscience. 2020;40:7811–7836. doi: 10.1523/JNEUROSCI.2174-19.2020. [DOI] [PMC free article] [PubMed] [Google Scholar]
  30. Fernández-Ruiz A, Oliva A, Fermino de Oliveira E, Rocha-Almeida F, Tingley D, Buzsáki G. Long-duration hippocampal sharp wave ripples improve memory. Science. 2019;364:1082–1086. doi: 10.1126/science.aax0758. [DOI] [PMC free article] [PubMed] [Google Scholar]
  31. Fisher RA. Tests of significance in harmonic analysis. Proceedings of the Royal Society of London. Series A, Containing Papers of a Mathematical and Physical Character. 1929;125:54–59. doi: 10.1098/rspa.1929.0151. [DOI] [Google Scholar]
  32. 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]
  33. Foster DJ, Wilson MA. Hippocampal theta sequences. Hippocampus. 2007;17:1093–1099. doi: 10.1002/hipo.20345. [DOI] [PubMed] [Google Scholar]
  34. Foster DJ. Replay Comes of Age. Annual Review of Neuroscience. 2017;40:581–602. doi: 10.1146/annurev-neuro-072116-031538. [DOI] [PubMed] [Google Scholar]
  35. Friedrich P, Vella M, Gulyás AI, Freund TF, Káli S. A flexible, interactive software tool for fitting the parameters of neuronal models. Frontiers in Neuroinformatics. 2014;8:63. doi: 10.3389/fninf.2014.00063. [DOI] [PMC free article] [PubMed] [Google Scholar]
  36. Fuenzalida M, Chiu CQ, Chávez AE. Muscarinic Regulation of Spike Timing Dependent Synaptic Plasticity in the Hippocampus. Neuroscience. 2021;456:50–59. doi: 10.1016/j.neuroscience.2020.08.015. [DOI] [PubMed] [Google Scholar]
  37. Gan J, Weng S-M, Pernía-Andrade AJ, Csicsvari J, Jonas P. Phase-Locked Inhibition, but Not Excitation, Underlies Hippocampal Ripple Oscillations in Awake Mice In Vivo. Neuron. 2017;93:308–314. doi: 10.1016/j.neuron.2016.12.018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  38. Garrett A. inspyred, Inspired Intelligence. GitHub. 2012 https://github.com/aarongarrett/inspyred
  39. Geiger JRP, Lübke J, Roth A, Frotscher M, Jonas P. Submillisecond AMPA receptor-mediated signaling at a principal neuron-interneuron synapse. Neuron. 1997;18:1009–1023. doi: 10.1016/s0896-6273(00)80339-6. [DOI] [PubMed] [Google Scholar]
  40. Geisler C, Brunel N, Wang XJ. Contributions of intrinsic membrane dynamics to fast network oscillations with irregular neuronal discharges. Journal of Neurophysiology. 2005;94:4344–4361. doi: 10.1152/jn.00510.2004. [DOI] [PubMed] [Google Scholar]
  41. Gerstner W, Kistler WM, Naud R, Paninski L. Neuronal Dynamics: From Single Neurons to Networks and Models of Cognition. Cambridge: Cambridge University Press; 2014. [DOI] [Google Scholar]
  42. Girardeau G, Benchenane K, Wiener SI, Buzsáki G, Zugaro MB. Selective suppression of hippocampal ripples impairs spatial memory. Nature Neuroscience. 2009;12:1222–1223. doi: 10.1038/nn.2384. [DOI] [PubMed] [Google Scholar]
  43. Gulyás AI, Freund TT. Generation of physiological and pathological high frequency oscillations: the role of perisomatic inhibition in sharp-wave ripple and interictal spike generation. Current Opinion in Neurobiology. 2015;31:26–32. doi: 10.1016/j.conb.2014.07.020. [DOI] [PubMed] [Google Scholar]
  44. Gupta AS, van der Meer MAA, Touretzky DS, Redish AD. Hippocampal replay is not a simple function of experience. Neuron. 2010;65:695–705. doi: 10.1016/j.neuron.2010.01.034. [DOI] [PMC free article] [PubMed] [Google Scholar]
  45. Guzman SJ, Schlögl A, Frotscher M, Jonas P. Synaptic mechanisms of pattern completion in the hippocampal CA3 network. Science. 2016;353:1117–1123. doi: 10.1126/science.aaf1836. [DOI] [PubMed] [Google Scholar]
  46. Haga T, Fukai T. Recurrent network model for learning goal-directed sequences through reverse replay. eLife. 2018;7:e34171. doi: 10.7554/eLife.34171. [DOI] [PMC free article] [PubMed] [Google Scholar]
  47. Hájos N, Karlócai MR, Németh B, Ulbert I, Monyer H, Szabó G, Erdélyi F, Freund TF, Gulyás AI. Input-output features of anatomically identified CA3 neurons during hippocampal sharp wave/ripple oscillation in vitro. The Journal of Neuroscience. 2013;33:11677–11691. doi: 10.1523/JNEUROSCI.5729-12.2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
  48. Hasselmo ME. The role of acetylcholine in learning and memory. Current Opinion in Neurobiology. 2006;16:710–715. doi: 10.1016/j.conb.2006.09.002. [DOI] [PMC free article] [PubMed] [Google Scholar]
  49. Henze DA, Wittner L, Buzsáki G. Single granule cells reliably discharge targets in the hippocampal CA3 network in vivo. Nature Neuroscience. 2002;5:790–795. doi: 10.1038/nn887. [DOI] [PubMed] [Google Scholar]
  50. Hulse BK, Moreaux LC, Lubenov EV, Siapas AG. Membrane Potential Dynamics of CA1 Pyramidal Neurons during Hippocampal Ripples in Awake Mice. Neuron. 2016;89:800–813. doi: 10.1016/j.neuron.2016.01.014. [DOI] [PMC free article] [PubMed] [Google Scholar]
  51. Itskov V, Curto C, Pastalkova E, Buzsáki G. Cell assembly sequences arising from spike threshold adaptation keep track of time in the hippocampus. The Journal of Neuroscience. 2011;31:2828–2834. doi: 10.1523/JNEUROSCI.3773-10.2011. [DOI] [PMC free article] [PubMed] [Google Scholar]
  52. Jadhav SP, Kemere C, German PW, Frank LM. Awake hippocampal sharp-wave ripples support spatial memory. Science. 2012;336:1454–1458. doi: 10.1126/science.1217230. [DOI] [PMC free article] [PubMed] [Google Scholar]
  53. Jahnke S, Timme M, Memmesheimer RM. A Unified Dynamic Model for Learning, Replay, and Sharp-Wave/Ripples. The Journal of Neuroscience. 2015;35:16236–16258. doi: 10.1523/JNEUROSCI.3977-14.2015. [DOI] [PMC free article] [PubMed] [Google Scholar]
  54. Jensen O, Lisman JE. Hippocampal sequence-encoding driven by a cortical multi-item working memory buffer. Trends in Neurosciences. 2005;28:67–72. doi: 10.1016/j.tins.2004.12.001. [DOI] [PubMed] [Google Scholar]
  55. Jung MW, McNaughton BL. Spatial selectivity of unit activity in the hippocampal granular layer. Hippocampus. 1993;3:165–182. doi: 10.1002/hipo.450030209. [DOI] [PubMed] [Google Scholar]
  56. Káli S, Dayan P. The involvement of recurrent connections in area CA3 in establishing the properties of place fields: a model. The Journal of Neuroscience. 2000;20:7463–7477. doi: 10.1523/JNEUROSCI.20-19-07463.2000. [DOI] [PMC free article] [PubMed] [Google Scholar]
  57. Karlsson MP, Frank LM. Awake replay of remote experiences in the hippocampus. Nature Neuroscience. 2009;12:913–918. doi: 10.1038/nn.2344. [DOI] [PMC free article] [PubMed] [Google Scholar]
  58. Kay K, Chung JE, Sosa M, Schor JS, Karlsson MP, Larkin MC, Liu DF, Frank LM. Constant Sub-second Cycling between Representations of Possible Futures in the Hippocampus. Cell. 2020;180:552–567. doi: 10.1016/j.cell.2020.01.014. [DOI] [PMC free article] [PubMed] [Google Scholar]
  59. Kempter R, Gerstner W, van Hemmen JL. Hebbian learning and spiking neurons. Physical Review E. 1999;59:4498–4514. doi: 10.1103/PhysRevE.59.4498. [DOI] [Google Scholar]
  60. Kohus Z, Káli S, Rovira-Esteban L, Schlingloff D, Papp O, Freund TF, Hájos N, Gulyás AI. Properties and dynamics of inhibitory synaptic communication within the CA3 microcircuits of pyramidal cells and interneurons expressing parvalbumin or cholecystokinin. The Journal of Physiology. 2016;594:3745–3774. doi: 10.1113/JP272231. [DOI] [PMC free article] [PubMed] [Google Scholar]
  61. Kudrimoti HS, Barnes CA, McNaughton BL. Reactivation of hippocampal cell assemblies: effects of behavioral state, experience, and EEG dynamics. The Journal of Neuroscience. 1999;19:4090–4101. doi: 10.1523/JNEUROSCI.19-10-04090.1999. [DOI] [PMC free article] [PubMed] [Google Scholar]
  62. 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]
  63. Lee G, Wasilewski FRG, Wohlfahrt K, O’Leary A, Nahrsteadt H. PyWavelets - Wavelet Transforms in Python. GitHub. 2006 https://github.com/PyWavelets/pywt
  64. Lee SH, Marchionni I, Bezaire M, Varga C, Danielson N, Lovett-Barron M, Losonczy A, Soltesz I. Parvalbumin-positive basket cells differentiate among hippocampal pyramidal cells. Neuron. 2014;82:1129–1144. doi: 10.1016/j.neuron.2014.03.034. [DOI] [PMC free article] [PubMed] [Google Scholar]
  65. Levy WB. A sequence predicting CA3 is a flexible associator that learns and uses context to solve hippocampal-like tasks. Hippocampus. 1996;6:579–590. doi: 10.1002/(SICI)1098-1063(1996)6:6&#x0003c;579::AID-HIPO3&#x0003e;3.0.CO;2-C. [DOI] [PubMed] [Google Scholar]
  66. Li XG, Somogyi P, Ylinen A, Buzsáki G. The hippocampal CA3 network: an in vivo intracellular labeling study. The Journal of Comparative Neurology. 1994;339:181–208. doi: 10.1002/cne.903390204. [DOI] [PubMed] [Google Scholar]
  67. Lisman JE. Relating hippocampal circuitry to function: recall of memory sequences by reciprocal dentate-CA3 interactions. Neuron. 1999;22:233–242. doi: 10.1016/s0896-6273(00)81085-5. [DOI] [PubMed] [Google Scholar]
  68. Maier N, Nimmrich V, Draguhn A. Cellular and network mechanisms underlying spontaneous sharp wave-ripple complexes in mouse hippocampal slices. The Journal of Physiology. 2003;550:873–887. doi: 10.1113/jphysiol.2003.044602. [DOI] [PMC free article] [PubMed] [Google Scholar]
  69. Malerba P, Bazhenov M. Circuit mechanisms of hippocampal reactivation during sleep. Neurobiology of Learning and Memory. 2019;160:98–107. doi: 10.1016/j.nlm.2018.04.018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  70. Marr D. Simple memory: a theory for archicortex. Philosophical Transactions of the Royal Society of London. Series B, Biological Sciences. 1971;262:23–81. doi: 10.1098/rstb.1971.0078. [DOI] [PubMed] [Google Scholar]
  71. Mazzoni A, Panzeri S, Logothetis NK, Brunel N. Encoding of naturalistic stimuli by local field potential spectra in networks of excitatory and inhibitory neurons. PLOS Computational Biology. 2008;4:e1000239. doi: 10.1371/journal.pcbi.1000239. [DOI] [PMC free article] [PubMed] [Google Scholar]
  72. McNaughton BL, Morris RGM. Hippocampal synaptic enhancement and information storage within a distributed memory system. Trends in Neurosciences. 1987;10:408–415. doi: 10.1016/0166-2236(87)90011-7. [DOI] [Google Scholar]
  73. Memmesheimer RM. Quantitative prediction of intermittent high-frequency oscillations in neural networks with supralinear dendritic interactions. PNAS. 2010;107:11092–11097. doi: 10.1073/pnas.0909615107. [DOI] [PMC free article] [PubMed] [Google Scholar]
  74. Meyer AH, Katona I, Blatow M, Rozov A, Monyer H. In vivo labeling of parvalbumin-positive interneurons and analysis of electrical coupling in identified neurons. The Journal of Neuroscience. 2002;22:7055–7064. doi: 10.1523/JNEUROSCI.22-16-07055.2002. [DOI] [PMC free article] [PubMed] [Google Scholar]
  75. Mishra RK, Kim S, Guzman SJ, Jonas P. Symmetric spike timing-dependent plasticity at CA3-CA3 synapses optimizes storage and recall in autoassociative networks. Nature Communications. 2016;7:11552. doi: 10.1038/ncomms11552. [DOI] [PMC free article] [PubMed] [Google Scholar]
  76. Mizuseki K, Buzsáki G. Preconfigured, skewed distribution of firing rates in the hippocampus and entorhinal cortex. Cell Reports. 2013;4:1010–1021. doi: 10.1016/j.celrep.2013.07.039. [DOI] [PMC free article] [PubMed] [Google Scholar]
  77. Morris RG, Garrud P, Rawlins JN, O’Keefe J. Place navigation impaired in rats with hippocampal lesions. Nature. 1982;297:681–683. doi: 10.1038/297681a0. [DOI] [PubMed] [Google Scholar]
  78. Nádasdy Z, Hirase H, Czurkó A, Csicsvari J, Buzsáki G. Replay and time compression of recurring spike sequences in the hippocampus. The Journal of Neuroscience. 1999;19:9497–9507. doi: 10.1523/JNEUROSCI.19-21-09497.1999. [DOI] [PMC free article] [PubMed] [Google Scholar]
  79. Naud R, Marcille N, Clopath C, Gerstner W. Firing patterns in the adaptive exponential integrate-and-fire model. Biological Cybernetics. 2008;99:335–347. doi: 10.1007/s00422-008-0264-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
  80. Nicola W, Clopath C. A diversity of interneurons and Hebbian plasticity facilitate rapid compressible learning in the hippocampus. Nature Neuroscience. 2019;22:1168–1181. doi: 10.1038/s41593-019-0415-2. [DOI] [PubMed] [Google Scholar]
  81. Olafsdottir HF, Bush D, Barry C. The Role of Hippocampal Replay in Memory and Planning. Current Biology. 2018;28:R37–R50. doi: 10.1016/j.cub.2017.10.073. [DOI] [PMC free article] [PubMed] [Google Scholar]
  82. Oliva A, Fernández-Ruiz A, Buzsáki G, Berényi A. Role of Hippocampal CA2 Region in Triggering Sharp-Wave Ripples. Neuron. 2016;91:1342–1355. doi: 10.1016/j.neuron.2016.08.008. [DOI] [PMC free article] [PubMed] [Google Scholar]
  83. Oliva A, Fernández-Ruiz A, Leroy F, Siegelbaum SA. Hippocampal CA2 sharp-wave ripples reactivate and promote social memory. Nature. 2020;587:264–269. doi: 10.1038/s41586-020-2758-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
  84. Omura Y, Carvalho XMM, Inokuchi K, Fukai XT. A Lognormal Recurrent Network Model for Burst Generation during Hippocampal Sharp Waves. The Journal of Neuroscience. 2015;35:14585–14601. doi: 10.1523/JNEUROSCI.4944-14.2015. [DOI] [PMC free article] [PubMed] [Google Scholar]
  85. O’Keefe J, Dostrovsky J. The hippocampus as a spatial map. Preliminary evidence from unit activity in the freely-moving rat. Brain Research. 1971;34:171–175. doi: 10.1016/0006-8993(71)90358-1. [DOI] [PubMed] [Google Scholar]
  86. O’Keefe J, Nadel L. The Hippocampus as a Cognitive Map. Oxford University Press; 1978. [Google Scholar]
  87. O’Keefe J, Recce ML. Phase relationship between hippocampal place units and the EEG theta rhythm. Hippocampus. 1993;3:317–330. doi: 10.1002/hipo.450030307. [DOI] [PubMed] [Google Scholar]
  88. Papp OI, Karlócai MR, Tóth IE, Freund TF, Hájos N. Different input and output properties characterize parvalbumin-positive basket and Axo-axonic cells in the hippocampal CA3 subfield. Hippocampus. 2013;23:903–918. doi: 10.1002/hipo.22147. [DOI] [PubMed] [Google Scholar]
  89. Pfeiffer BE, Foster DJ. Hippocampal place-cell sequences depict future paths to remembered goals. Nature. 2013;497:74–79. doi: 10.1038/nature12112. [DOI] [PMC free article] [PubMed] [Google Scholar]
  90. Pfeiffer BE, Foster DJ. PLACE CELLS. Autoassociative dynamics in the generation of sequences of hippocampal place cells. Science. 2015;349:180–183. doi: 10.1126/science.aaa9633. [DOI] [PubMed] [Google Scholar]
  91. Pfeiffer BE. The Content of Hippocampal Replay. Hippocampus; 2017. [DOI] [PMC free article] [PubMed] [Google Scholar]
  92. Rácz A, Ponomarenko AA, Fuchs EC, Monyer H. Augmented hippocampal ripple oscillations in mice with reduced fast excitation onto parvalbumin-positive cells. The Journal of Neuroscience. 2009;29:2563–2568. doi: 10.1523/JNEUROSCI.5036-08.2009. [DOI] [PMC free article] [PubMed] [Google Scholar]
  93. Ramirez-Villegas JF, Willeke KF, Logothetis NK, Besserve M. Dissecting the Synapse- and Frequency-Dependent Network Mechanisms of In Vivo Hippocampal Sharp Wave-Ripples. Neuron. 2018;100:1224–1240. doi: 10.1016/j.neuron.2018.09.041. [DOI] [PubMed] [Google Scholar]
  94. Rolls ET. A theory of hippocampal function in memory. Hippocampus. 1996;6:601–620. doi: 10.1002/(SICI)1098-1063(1996)6:6&#x0003c;601::AID-HIPO5&#x0003e;3.0.CO;2-J. [DOI] [PubMed] [Google Scholar]
  95. Romani S, Tsodyks M. Short-term plasticity based network model of place cells dynamics. Hippocampus. 2015;25:94–105. doi: 10.1002/hipo.22355. [DOI] [PubMed] [Google Scholar]
  96. Samsonovich A, McNaughton BL. Path integration and cognitive mapping in a continuous attractor neural network model. The Journal of Neuroscience. 1997;17:5900–5920. doi: 10.1523/JNEUROSCI.17-15-05900.1997. [DOI] [PMC free article] [PubMed] [Google Scholar]
  97. Schlingloff D, Káli S, Freund TF, Hájos N, Gulyás AI. Mechanisms of sharp wave initiation and ripple generation. The Journal of Neuroscience. 2014;34:11385–11398. doi: 10.1523/JNEUROSCI.0867-14.2014. [DOI] [PMC free article] [PubMed] [Google Scholar]
  98. 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&#x0003c;149::AID-HIPO6&#x0003e;3.0.CO;2-K. [DOI] [PubMed] [Google Scholar]
  99. Stark E, Roux L, Eichler R, Senzai Y, Royer S, Buzsáki G. Pyramidal cell-interneuron interactions underlie hippocampal ripple oscillations. Neuron. 2014;83:467–480. doi: 10.1016/j.neuron.2014.06.023. [DOI] [PMC free article] [PubMed] [Google Scholar]
  100. Stella F, Baracskay P, O’Neill J, Csicsvari J. Hippocampal Reactivation of Random Trajectories Resembling Brownian Diffusion. Neuron. 2019;102:450–461. doi: 10.1016/j.neuron.2019.01.052. [DOI] [PubMed] [Google Scholar]
  101. Stimberg M, Brette R, Goodman DF. Brian 2, an intuitive and efficient neural simulator. eLife. 2019;8:e47314. doi: 10.7554/eLife.47314. [DOI] [PMC free article] [PubMed] [Google Scholar]
  102. Taxidis J, Coombes S, Mason R, Owen MR. Modeling sharp wave-ripple complexes through a CA3-CA1 network model with chemical synapses. Hippocampus. 2012;22:995–1017. doi: 10.1002/hipo.20930. [DOI] [PubMed] [Google Scholar]
  103. Theodoni P, Rovira B, Wang Y, Roxin A. Theta-modulation drives the emergence of connectivity patterns underlying replay in a network model of place cells. eLife. 2018;7:e37388. doi: 10.7554/eLife.37388. [DOI] [PMC free article] [PubMed] [Google Scholar]
  104. van Albada S, Chindemi G, Deger M, Diesmann M, Djurfeldt M, Enger H, Eppler JM, Gewaltig MO, Helias M, Kunkel S, Morrison A, Muller E, Plesser HE, Schrader S, Tetzlaff T, Zaytsev YV. Nest 2.2.0. Zenodo; 2015. [Google Scholar]
  105. Van Geit W, Gevaert M, Chindemi G, Rössert C, Courcol J-D, Muller EB, Schürmann F, Segev I, Markram H. BluePyOpt: Leveraging Open Source Software and Cloud Infrastructure to Optimise Model Parameters in Neuroscience. Frontiers in Neuroinformatics. 2016;10:17. doi: 10.3389/fninf.2016.00017. [DOI] [PMC free article] [PubMed] [Google Scholar]
  106. Varga C, Golshani P, Soltesz I. Frequency-invariant temporal ordering of interneuronal discharges during hippocampal oscillations in awake mice. PNAS. 2012;109:E2726–E2734. doi: 10.1073/pnas.1210929109. [DOI] [PMC free article] [PubMed] [Google Scholar]
  107. Vyleta NP, Borges-Merjane C, Jonas P. Plasticity-dependent, full detonation at hippocampal mossy fiber-CA3 pyramidal neuron synapses. eLife. 2016;5:e17977. doi: 10.7554/eLife.17977. [DOI] [PMC free article] [PubMed] [Google Scholar]
  108. 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]
  109. Ylinen A, Bragin A, Nádasdy Z, Jandó G, Szabó I, Sik A, Buzsáki G. Sharp wave-associated high-frequency oscillation (200 Hz) in the intact hippocampus: network and intracellular mechanisms. The Journal of Neuroscience. 1995;15:30–46. doi: 10.1523/JNEUROSCI.15-01-00030.1995. [DOI] [PMC free article] [PubMed] [Google Scholar]
  110. York LC, van Rossum MCW. Recurrent networks with short term synaptic depression. Journal of Computational Neuroscience. 2009;27:607–620. doi: 10.1007/s10827-009-0172-4. [DOI] [PubMed] [Google Scholar]
  111. Zhang K. Representation of spatial orientation by the intrinsic dynamics of the head-direction cell ensemble: a theory. The Journal of Neuroscience. 1996;16:2112–2126. doi: 10.1523/JNEUROSCI.16-06-02112.1996. [DOI] [PMC free article] [PubMed] [Google Scholar]

Editor's evaluation

Neil Burgess 1

This manuscript will be of interest to theoretical neuroscientists broadly defined and potentially also to experimentalists investigating the hippocampus. A biologically plausible spiking neural network model of subregion CA3 of the hippocampus is proposed and studied in order to pinpoint the mechanistic sources of sharp wave ripples and replay observed in vivo.

Decision letter

Editor: Neil Burgess1
Reviewed by: Daniel McNamee2, Bruce Graham3

Our editorial process produces two outputs: (i) public reviews designed to be posted alongside the preprint for the benefit of readers; (ii) feedback on the manuscript for the authors, including requests for revisions, shown below. We also include an acceptance summary that explains what the editors found interesting or important about the work.

Decision letter after peer review:

Thank you for submitting your article "Hippocampal sharp wave-ripples and the associated sequence replay emerge from structured synaptic interactions in a network model of area CA3" for consideration by eLife. Your article has been reviewed by 3 peer reviewers, and the evaluation has been overseen by a Reviewing Editor and Laura Colgin as the Senior Editor. The following individuals involved in review of your submission have agreed to reveal their identity: Daniel McNamee (Reviewer #1); Bruce Graham (Reviewer #3).

The reviewers have discussed their reviews with one another, and the Reviewing Editor has drafted this to help you prepare a revised submission.

Essential revisions:

The reviewers agree that this manuscript is worthy of acceptance, but that the authors should be encouraged to further clarify or explain the mechanisms causing ripples and replay, as detailed in their responses below. The main broad issues for consideration are: (1) What causes forward versus backwards replay; (2) The necessity or otherwise for the recurrent connectivity created by the specific STDP rule used in generating replay; (3) The necessity of adaptation in causing replay, when cells might fire only once per event; (4) Whether the contribution of an extra inhibitory neuronal cell type might produce a more accurate model of the duration of SWRs; (5) Whether any explicit experimental predictions can be made.

Reviewer #1 (Recommendations for the authors):

Thank you for the well-written manuscript and also for providing your source code. I had a few queries and suggestions that I hope may be helpful.

1. What is the functional role of the non-spatial PCs?

2. It seems that the heavy-tailed step size distribution of Pfeiffer and Foster is replicated (line 160). Can the gaussian step size distribution of diffusive reactivations be induced? (observed during rest, see Stella et al., Neuron, 2019). Furthermore, beyond the bidrectionality of replay, recent experiments have demonstrated that sequential hippocampal reactivations make take on even more exotic forms such as generative cycling (Kay et al., Cell, 2020). It would be interesting to speculate how such flexible dynamism may emerge in this circuit model e.g. based on entorhinal input.

3: it seems (line 538) that the exploring rodents moved at a constant velocity. If this interpretation is correct, Im wondering if the replay phenomenology is robust to heterogeneous velocities during naturalistic movement (e.g. stop/starts)?

4: Can the model be successfully deployed in an open box environment?

Reviewer #2 (Recommendations for the authors):

Below is a list of questions and comments in ascending order with respect to the line number. I have marked some with an 'S' to highlight that I find them pretty significant. Some of these points are already made in the Public Review and I allow myself to repeat them here so that they are easier to understand. Apologies if this unduly increases the length of the review.

l. 95- 96: Could the authors highlight the main characteristics of the connection probabilites in their model? What are their typical numerical values? They are given in Methods, but I think it is nicer to have an idea about them without having to go consult that section.

(S) Figure 1: How important is it that the STDP kernel is temporally broad (broader than the timescale of a ripple oscillation)?

l. 110: To which figures does the reference refer to? To Figure 1A or its Supplement? Or is Methods and Figure 1A simultaneously referenced? Then, 'Methods and Figure 1A' would be more appropriate. Please clarify.

l. 130: Chenkov et al., also use a symmetric learning rule (see their Figure 8) supporting reverse replay, so this part of the manuscript is not novel. The authors should rephrase this part to clarify the point.

After l. 134: it should be made clearer what the 'spatially and temporally unstructured' external inputs to the network are, and which cells (all? only a fraction?) are receiving them.

l. 172: At least in CA1, PVBCs fire at the ripple frequency of 200 Hz, see e.g. Ylinen et al., 1995. Is this comparatively low inhibitory population firing rate important for the model?

l. 178: Are the weights scaled after the initial learning phase, or before? Please clarify this.

l. 192: The reference should be to Supplementary Figure 3 since there are no spectral measures shown in Supplementary Figure 1.

(S) l. 195: The main result of Stark et al., 2014 is that interactions between PCs and PVBCs underlie ripple oscillations, and that both cell types are needed for ripples. So citing this reference when saying that ripples start from the PVBC population and then propagate to the pyramidal cells does not seem to be right.

Figure 3B bottom plot: To which scaling factor does 100% LFP power correspond to?

l. 222: Did Theodoni et al., show that one needs a symmetric STDP kernel to generate both forward and reverse replay? If so, it would be good to state this explicitly.

l. 238 ff. Is it important that a 97-3 split is done on the weight matrix? What would happen if, for example, a 50-50 split was done? The choice for the split seems arbitrary and should be better justified.

(S) l. 251: This reads as if the PC-PC coupling structure 'does everything', i.e. it generates replay but also ripple oscillations. This raises the interesting question whether ripples could in principle also be observed in unstructured networks. Could the authors comment on this (for example, by showing a PC spike raster for Figure 6F, where ripple oscillations seem to be present for large PC weight multipliers)?

(S) l. 258 ff. There seems to be a dichotomy revealed by the model: the PC-PC connections are crucial, but the ripple oscillation is generated by PVBCs and is only present in the LFP, but not in the PC firing activity- although the model was designed to show ripple oscillations in the PC activity (Equation 9). Is there an easy intuitive reason for why this is the case?

Figure 7B: It is confusing that the PCs with the highest indices in the rasterplot have the same color (orange) as the BCs in the scheme on top of the figure. Similarly at the top of Figure 2.

(S) l. 295: Similarly to comment about l. 195, Stark et al., 2014 seem to be cited incorrectly: in that study, driving PVBCs did not result in ripple frequency oscillations in the LFP, see their Figure 5. E and F and 6.

l. 321-322: This reads like an addition, while it is a summary of the paragraph above. Please consider re-writing to reflect this.

(S) l. 262: The spike-triggered adaptation must be quite strong because a single PC spikes only once or twice during a given ripple, so the adaptation variable gets only one kick and then decays. This means that either the adaptation starts already at quite a high value or the kick size is large, because otherwise there would be no effect on the membrane voltage. Could the authors comment on this?

l. 347- 348: What is a stochastically initiated buildup period? Was it described before?

l. 365: Given that after learning, the distribution of the PC-PC synaptic strengths is also long-tailed, it might well be that the effective connectivity is lower than 10% because only strongly connected cells fire and the rest stays silent. Is this plausible?

l. 422: Maybe the authors would find the study 'Generation of Sharp Wave-Ripple Events by Disinhibition' (Evangelista et al., J Neurosci 2020) interesting. This study contains a mechanism for the generation of SPW/R events by disinhibition of PCs by a third inhibitory cell population. Here, short-term depression acts on the connection between PVBCs and the third cell population.

Table 3: The decay time constant for PC-PC synapses is large (more than 5 ms). Is this a realistic value for AMPAergic synapses?

(S) l. 604/ 620 (and also the section beginning on l. 291): The network was optimized to generate strong ripple-frequency oscillations in both the PC and PVBC population (Equation 9). In Figure 1D, however, it looks as if there was no ripple oscillation in the PC rate, but only in the LFP. Could the authors please clarify this? It would be nice to see a magnification of the spike rasterplot at the top of Figure 1D. I also wonder whether there could be a ripple oscillation present in the spiking activity of PCs shown in Figure 8C. It isn't present in the LFP as shown in Figure 8D, but since the network was optimized to display ripple oscillations in the PC activity (Equation 9) and since there still is bi-directional replay in the model, it might well be that there are still ripple oscillations in the PC population activity, as shown in Figure 3—figure supplement 1 for a different setup. It is also not defined how the population rates for PCs and PVBCs are calculated, but the temporal resolution (for example in Figure 1D middle plot) looks rather low and this might mask fast oscillations. Could the authors comment on this?

Figure 2, supplement 2: it looks like some fraction of PC and PVBCs is bursting (very small ISIs). Are they important for the network dynamics? Is the adaptation maybe only effective in the bursting PCs? This might be important to gain a better mechanistic understanding of the model.

Reviewer #3 (Recommendations for the authors):

The authors are careful to consider some of the limitations of their simple model. However, their study would certainly be strengthened if some of these and other questions could be addressed. Specific consideration should be given to the following:

Spike adaptation alone does not result in a match to the experimentally-recorded durations of SWRs, as the authors acknowledge. It would be good at least to see results from the simulations that have been tried using an extra inhibitory neuron type to try to address this mismatch; and other mechanisms also could be explored here.

What specific spatio-temporal characteristics of spike activity trigger a sequence replay? For example, how sensitive is this to the number of closely associated place cells that spike contemporaneously and does it require some sequencing in this spiking? Is it such initial sequencing that determines whether forward or backward replay occurs?

As discussed, there are biases towards forward or backward replay in different animal situations. How can such biases arise in this model? The "cued" replay results (Figure 2C) demonstrate the obvious of forward replay if the cue is at the track beginning, with backward replay if the cue is at the end of the track, but how in general may such "beginnings" and "ends" be defined in terms of place cells? The strict beginning and end here is somewhat artificial. How can a bias for forwards or backwards replay be introduced at intermediate points along the track? Insights into the characteristics of spike activity triggering replay, as asked for above, should help answer this.

Why do we not see simultaneous forward and backward replay from a single trigger point?

eLife. 2022 Jan 18;11:e71850. doi: 10.7554/eLife.71850.sa2

Author response


Essential revisions:

The reviewers agree that this manuscript is worthy of acceptance, but that the authors should be encouraged to further clarify or explain the mechanisms causing ripples and replay, as detailed in their responses below. The main broad issues for consideration are: (1) What causes forward versus backwards replay;

This question was explored explicitly in the simulations shown in Figure 2C, which demonstrated that one can evoke either forward or backward replay via external input that corresponds to neural activity at the start and the end of the track, respectively. Without any cuing input we find (as expected from the symmetry of the plasticity rule and all other properties of the network) that forward and backward replays occur with the same frequency. At a more general level, the direction of replay in the model can depend on systematic biases and random variations in the weight structure, but also on (random or deterministic) spatio-temporal structure in the external inputs. A more detailed discussion of this issue has been incorporated into the Discussion section of the paper, and also appears in our responses to the reviewers below.

2) The necessity or otherwise for the recurrent connectivity created by the specific STDP rule used in generating replay;

A key finding of our work is that sufficiently strong, properly structured recurrent excitatory connections are essential for several key aspects of network dynamics, including sequence replay, sharp waves, and (indirectly, by causing a high level of PVBC activity) ripple oscillations. In principle, such structured connectivity could be formed by a variety of different mechanisms (as discussed in the section “Biological plausibility of the model”). The plasticity rule that we used in most of our simulations is based on direct measurement of STDP in pairs of CA3 pyramidal neurons in hippocampal slices (Mishra et al., Nature Comms., 2016). To our best knowledge this is the only rule that has been experimentally measured in area CA3. On the other hand, we do investigate the effect of using a different type of STDP rule (one that has been measured in several other types of synapse), and find that this choice leads to altered dynamics and the absence of reverse replay events (Figure 5). Therefore, our results confirm that applying the experimentally determined plasticity rule to activity patterns seen during exploration leads to a pattern of synaptic interactions that gives rise to the correct form of network dynamics (including sharp wave-ripples and bidirectional replay) in off-line states of the hippocampus.

3) The necessity of adaptation in causing replay, when cells might fire only once per event;

In our model, adaptation is necessary for sequence replay as it destabilizes a stationary bump of activity, and causes it to move on to previously inactive populations with nearby place fields. This is clearly demonstrated by Figure 7, which shows that the activity bump remains stationary without adaptation in PCs. On the other hand, spike-triggered adaptation does not need to be dominant in single cells to shift network activity away from the currently active population, and we have confirmed this by looking at synaptic and adaptation currents in some randomly selected neurons. Excitation and inhibition are almost balanced in active cells, and the addition of the adaptation current is sufficient to silence them. By contrast, previously inactive cells with nearby place fields still get strong excitatory input, so that they can start to fire if they were not recently active (and thus have no adaptation current). In addition, the majority of place cells in our model fire more than once during individual sharp waves, although we do not believe this to be essential for the main results of the paper. We have amended the manuscript to clarify this fact, and also added an insert to panel B1 and a new panel C to Supplementary Figure 4.

4) Whether the contribution of an extra inhibitory neuronal cell type might produce a more accurate model of the duration of SWRs;

The mechanisms responsible for the termination of SWRs are currently unknown, and this is also an open question for our current model. Several different mechanisms based on cellular adaptation, short-term synaptic plasticity, and multiple inhibitory cell populations have been proposed. An additional possible mechanism based on the (learned or hard-wired) structure of recurrent excitation is demonstrated in this paper. As we briefly mentioned in the previous version of the manuscript, we also found that adding a second inhibitory population that provides delayed, long-lasting negative feedback to the PCs could explain the termination of SWRs. However, these simulations were performed in an earlier version of the circuit model that lacked learned excitatory connections, and we found that introducing this mechanism in the final model required substantial retuning of several parameters. Therefore, we decided to defer the full exploration of possible SWR termination mechanisms to a subsequent study; we have removed the reference in the manuscript to the preliminary simulation results, and cite related published work (Evangelista et al., J. Neurosci. 2020) to back the proposed idea.

5) Whether any explicit experimental predictions can be made.

Both our concrete mechanistic model and the general conceptual framework suggested by our simulation results can be used to derive novel experimental predictions. In fact, the consequences of all the manipulations that we employed to probe our in silico network can be regarded as experimental predictions. Although some of these manipulations (such as shuffling the weights) would be difficult to replicate in real experiments, others are probably feasible using modern tools (cell-type-specific targeting, optogenetics, chemogenetics, etc.). We have listed several specific predictions of our modeling work in a new section of the Discussion (“Experimental predictions”). These predictions include the following:

– Blocking PVBC-PVBC synaptic interactions should eliminate ripples but not sharp waves or replay, while blocking recurrent excitation is expected to eliminate sharp waves, ripple oscillations and spontaneous replay as well.

– The nature of replay (e.g., stereotypical vs. diffusive) should depend on the task and behavior during learning (e.g., 1D vs. 2D environment, goal-oriented vs. random foraging task).

– It should be possible to influence the content of replay by providing structured input either during learning or before/during SWRs.

– Any manipulation changing the symmetry of the STDP rule should bias the direction of replay.

Reviewer #1 (Recommendations for the authors):

Thank you for the well-written manuscript and also for providing your source code. I had a few queries and suggestions that I hope may be helpful.

1. What is the functional role of the non-spatial PCs?

When we constructed the model, we included PCs that do not have place fields in a particular environment to better match the relevant experimental data. This also allowed us to check whether these cells have any functional role in our model; however, we found that (at least in the current, simplified model where cells without place fields fired at low rates during exploration) non-spatial neurons had only weak excitatory interactions with other PCs, and were not significantly involved in the generation of SWRs or replay. On the other hand, when we investigated the effects of learning in multiple environments, place cells were selected independently and randomly; in this case, the presence of non-spatial cells decreased the amount of overlap between representations of the two environments, which may have contributed to the robustness of independent replay of spatial sequences in the two environments (although we have not tested this explicitly).

2. It seems that the heavy-tailed step size distribution of Pfeiffer and Foster is replicated (line 160). Can the gaussian step size distribution of diffusive reactivations be induced? (observed during rest, see Stella et al., Neuron, 2019). Furthermore, beyond the bidrectionality of replay, recent experiments have demonstrated that sequential hippocampal reactivations make take on even more exotic forms such as generative cycling (Kay et al., Cell, 2020). It would be interesting to speculate how such flexible dynamism may emerge in this circuit model e.g. based on entorhinal input.

Thank you for drawing our attention to this interesting issue. In our model, the nature of replayed sequences depends mostly on the activity patterns of hippocampal neurons during exploration (which determine the pattern of recurrent interactions), but it is also influenced by (either sensory-driven or random) input before/during reactivation episodes. In the basic scenario explored in our paper, learning occurred during repeated runs along a single linear track, which led to reactivations consisting of random chunks of the single learned trajectory, and allowed our model to replicate the replay dynamics observed by Pfeiffer and Foster. However, other types of learning experience would be expected to result in different reactivation dynamics. For instance, the random 2D exploration investigated by Stella et al., Neuron, (2019) may be expected to result in a 2D bump attractor structure encoded in the recurrent weights, and this, combined with adaptation and some random noise, may explain the diffusive nature of reactivation in their experiments. Similarly, the learning of alternative routes in the experiments of Kay et al. Cell., (2020), combined with adaptation, may explain the spontaneous switching between representations of alternative future paths. We have included these thoughts in the Discussion (lines 384-403).

3: It seems (line 538) that the exploring rodents moved at a constant velocity. If this interpretation is correct, Im wondering if the replay phenomenology is robust to heterogeneous velocities during naturalistic movement (e.g. stop/starts)?

At an intuitive level, if velocity varies more or less randomly across trials, and the starts and stops occur at different locations in each trial, then replay should be robust given enough repetitions of the same path (the current results are based on more than 40 repetitions), although we have not tested this explicitly. Robustness against variations in speed is also increased by the broad temporal kernel of the STDP rule. On the other hand, if starts and stops occurred at stereotypical locations, our model predicts that these locations would become preferred starting points (or endpoints) of replayed paths. In fact, it would be relatively straightforward to modify the spike patterns used during the exploration phase to model variations in speed.

4: Can the model be successfully deployed in an open box environment?

In principle, exploration in an open box (or any other environment) could be modeled by changing the spike statistics during the learning phase so that it mimics the corresponding experimental observations. All other properties and parameters of the model would remain unchanged. This would also allow us to test whether we can predict the replay dynamics in these novel situations (see above), and we intend to examine this in a follow-up project.

Reviewer #2 (Recommendations for the authors):

Below is a list of questions and comments in ascending order with respect to the line number. I have marked some with an 'S' to highlight that I find them pretty significant. Some of these points are already made in the Public Review and I allow myself to repeat them here so that they are easier to understand. Apologies if this unduly increases the length of the review.

l. 95- 96: Could the authors highlight the main characteristics of the connection probabilites in their model? What are their typical numerical values? They are given in Methods, but I think it is nicer to have an idea about them without having to go consult that section.

We decided to list most parameter values in the Methods rather than the Results section so that the Results can remain focused on the main ideas and the new results. More specifically, we do not think that the precise connection probabilities have a major qualitative effect on the behavior of the model, and their biological values are also to some extent uncertain, so we prefer to keep them in the Methods, but added an internal reference (line 97) to the manuscript to facilitate the localization of this information.

(S) Figure 1: How important is it that the STDP kernel is temporally broad (broader than the timescale of a ripple oscillation)?

The exact width of the STDP kernel is probably not critical in our model (its symmetry is more important for our results) although it is likely to influence the exact replay dynamics (e.g., the speed of activity propagation). However, we did not investigate this issue in detail here because the effects of the shape of the STDP kernel of network dynamics were recently analyzed by Theodoni et al., eLife, (2017).

l. 110: To which figures does the reference refer to? To Figure 1A or its Supplement? Or is Methods and Figure 1A simultaneously referenced? Then, 'Methods and Figure 1A' would be more appropriate. Please clarify.

We thank the reviewer for drawing our attention to this issue; we have added “and” to this reference in the manuscript (and to all similar cases as well).

l. 130: Chenkov et al., also use a symmetric learning rule (see their Figure 8) supporting reverse replay, so this part of the manuscript is not novel. The authors should rephrase this part to clarify the point.

We first note that Chenkov et al., PLOS, (2017) did not use a learning rule to set up the excitatory recurrent connections. The authors constructed hard-wired chains of assemblies and varied the connection probabilities within and between assemblies (and used inhibitory plasticity to balance the network) As a last experiment they showed that symmetric connections can lead to reverse replay, but only if it is cued (as shown in their Figure 8). We have clarified this point in the manuscript (lines 291-293). Besides, we do not claim to be the first to observe reverse replay with a symmetric learning rule (see e.g., the citation of Haga et al., eLife, (2018) in lines 565-568).

After l. 134: it should be made clearer what the 'spatially and temporally unstructured' external inputs to the network are, and which cells (all? only a fraction?) are receiving them.

These inputs represent the spontaneous (random) activation of all synapses onto all CA3 PCs, although, for simplicity, we use only a single type of synapse in the model whose parameters best match those of mossy fiber inputs. We have added a reference to the Methods (where the nature of external inputs is discussed in detail) in line 139 to clarify this point.

l. 172: At least in CA1, PVBCs fire at the ripple frequency of 200 Hz, see e.g. Ylinen et al., 1995. Is this comparatively low inhibitory population firing rate important for the model?

According to more recent publications that recorded the firing activity of identified PVBCs during SWRs, their firing rate is typically substantially less than 200 Hz; e.g., Varga et al., PNAS, (2012) measured 75 Hz in awake mice, and Hájos et al., J. Neurosci., (2013) measured 82 Hz in the CA3 region of the mouse hippocampal slice. These values are in good agreement with our simulation results. Moreover, the exact frequency of PVBC firing is not important in our model; the PVBCs increase their rate, and skip fewer and fewer ripple cycles, as their input is increased.

l. 178: Are the weights scaled after the initial learning phase, or before? Please clarify this.

They are scaled after learning; please see lines 196-197.

l. 192: The reference should be to Supplementary Figure 3 since there are no spectral measures shown in Supplementary Figure 1.

We thank the Reviewer for catching this mistake, resulting from an error in the LaTeX source file. The error has been corrected.

(S) l. 195: The main result of Stark et al., 2014 is that interactions between PCs and PVBCs underlie ripple oscillations, and that both cell types are needed for ripples. So citing this reference when saying that ripples start from the PVBC population and then propagate to the pyramidal cells does not seem to be right.

Stark et al., Neuron, (2014) show that activation of PVBCs induces ripple-frequency coherent spiking of PVBCs and PCs, although this is not detectable in the LFP. They say: “although tonic light activation of PV interneurons cannot induce LFP ripples, it can organize neuronal ensemble spiking into coherent ripple-frequency oscillations, consistent with a modified version of an INT-INT-based timing mechanism (Figure 1D).”

Figure 3B bottom plot: To which scaling factor does 100% LFP power correspond to?

None – this plot shows the percentage of power in the ripple range relative to the total power of the signal for each multiplier. 100% power is the total power within the whole 0-500 Hz range as explained in the Methods.

l. 222: Did Theodoni et al., show that one needs a symmetric STDP kernel to generate both forward and reverse replay? If so, it would be good to state this explicitly.

No, they did not. We have clarified this in line 239.

l. 238 ff. Is it important that a 97-3 split is done on the weight matrix? What would happen if, for example, a 50-50 split was done? The choice for the split seems arbitrary and should be better justified.

The split is indeed arbitrary. We have tried several splits in the 99-1 and 90-10% range; the results were qualitatively similar, but this one gave the cleanest result. There is definitely a tradeoff between the number (more the better) and strength (the fewer averaged the better) of the near-diagonal synapses, but we did not think that the results were interesting enough to be presented in the article. The important point here is that this is a manipulation of the weight matrix that preserves the global structure but completely changes the weight statistics.

(S) l. 251: This reads as if the PC-PC coupling structure 'does everything', i.e. it generates replay but also ripple oscillations. This raises the interesting question whether ripples could in principle also be observed in unstructured networks. Could the authors comment on this (for example, by showing a PC spike raster for Figure 6F, where ripple oscillations seem to be present for large PC weight multipliers)?

In our baseline model, ripples are indeed strongly tied to replay because PVBCs receive a sufficiently large excitatory drive only during these events (corresponding to sharp waves). Ripples can also be observed in unstructured networks (which lack replay), but only with much (3.5 times) stronger weights. For some additional discussion of this issue, please see our response to point 1 in the Public Review section above.

(S) l. 258 ff. There seems to be a dichotomy revealed by the model: the PC-PC connections are crucial, but the ripple oscillation is generated by PVBCs and is only present in the LFP, but not in the PC firing activity- although the model was designed to show ripple oscillations in the PC activity (Equation 9). Is there an easy intuitive reason for why this is the case?

As we discussed in our response to question 3 in the Public Review section, the second part of the statement above is incorrect (ripples are indeed present in the PC rate as shown in Supplementary Figure 5), which solves the apparent paradox.

Figure 7B: It is confusing that the PCs with the highest indices in the rasterplot have the same color (orange) as the BCs in the scheme on top of the figure. Similarly at the top of Figure 2.

We thank the reviewer for pointing out this issue, and we have changed the color of the PVBCs in all figures.

(S) l. 295: Similarly to comment about l. 195, Stark et al., 2014 seem to be cited incorrectly: in that study, driving PVBCs did not result in ripple frequency oscillations in the LFP, see their Figure 5. E and F and 6.

As we also indicated in our response above, Stark et al., Neuron, (2014) do find that PVBC activation induces coherent ripple-frequency spiking activity (although this is not reflected by the LFP, presumably because of insufficient PC activity). As our argument here is about ripple-frequency synchrony and not the LFP, we think that this citation is appropriate.

l. 321-322: This reads like an addition, while it is a summary of the paragraph above. Please consider re-writing to reflect this.

This sentence (saying that recurrent inhibitory connections are both necessary and sufficient for ripple oscillations) is actually meant to be an addition to (or amendment of) the previous sentence (which is only about sufficiency), while it is also a concise summary of the results presented in this section.

(S) l. 262: The spike-triggered adaptation must be quite strong because a single PC spikes only once or twice during a given ripple, so the adaptation variable gets only one kick and then decays. This means that either the adaptation starts already at quite a high value or the kick size is large, because otherwise there would be no effect on the membrane voltage. Could the authors comment on this?

First, we note that spike-triggered adaptation does not need to be dominant in single cells to shift network activity away from the currently active population, and we have confirmed this by looking at synaptic and adaptation currents in some randomly selected neurons. Excitation and inhibition are almost balanced in active cells, and the addition of the adaptation current is sufficient to silence them. By contrast, previously inactive cells with nearby place fields still get strong excitatory input (plus slightly less inhibitory input), so that they can start to fire if they were not recently active (and thus have no adaptation current). In addition, the majority of place cells in our model fire more than once during individual sharp waves. We have amended the manuscript to clarify this fact in lines 188-191 and also added an insert to panel B1 and a new panel C to Supplementary Figure 4.

l. 347- 348: What is a stochastically initiated buildup period? Was it described before?

The stochastic initiation of SWRs was described and discussed extensively by Schlingloff et al., J. Neurosci., (2014). We have now added this citation to this point of the manuscript in line 366.

l. 365: Given that after learning, the distribution of the PC-PC synaptic strengths is also long-tailed, it might well be that the effective connectivity is lower than 10% because only strongly connected cells fire and the rest stays silent. Is this plausible?

We first note that there is no special population of strongly connected place cells in the model, and most place cells participate in replay events (although there are differences due to random variations of spiking activity in the learning phase). On the other hand, it is true that most PCs have a small number of (incoming and outgoing) large weights and many smaller ones, and many of the anatomically existing connections may be too weak to be reliably detected in paired recording experiments. We have added this point to the manuscript in lines 453-455.

l. 422: Maybe the authors would find the study 'Generation of Sharp Wave-Ripple Events by Disinhibition' (Evangelista et al., J Neurosci 2020) interesting. This study contains a mechanism for the generation of SPW/R events by disinhibition of PCs by a third inhibitory cell population. Here, short-term depression acts on the connection between PVBCs and the third cell population.

We thank the Reviewer for drawing our attention to this interesting paper. A proper exploration of all possible termination mechanisms is a major task that we have postponed to a follow-up study. For now, we have removed the reference to our preliminary results, and added a citation to the article mentioned by the Reviewer in lines 510-516.

Table 3: The decay time constant for PC-PC synapses is large (more than 5 ms). Is this a realistic value for AMPAergic synapses?

Yes, this value is not just realistic, but it was determined experimentally for these connections by Guzman et al., Science, (2016).

(S) l. 604/ 620 (and also the section beginning on l. 291): The network was optimized to generate strong ripple-frequency oscillations in both the PC and PVBC population (Equation 9). In Figure 1D, however, it looks as if there was no ripple oscillation in the PC rate, but only in the LFP. Could the authors please clarify this? It would be nice to see a magnification of the spike rasterplot at the top of Figure 1D. I also wonder whether there could be a ripple oscillation present in the spiking activity of PCs shown in Figure 8C. It isn't present in the LFP as shown in Figure 8D, but since the network was optimized to display ripple oscillations in the PC activity (Equation 9) and since there still is bi-directional replay in the model, it might well be that there are still ripple oscillations in the PC population activity, as shown in Figure 3—figure supplement 1 for a different setup. It is also not defined how the population rates for PCs and PVBCs are calculated, but the temporal resolution (for example in Figure 1D middle plot) looks rather low and this might mask fast oscillations. Could the authors comment on this?

Ripples are present in the PC rate as shown in Supplementary Figure 5 (please also refer to our earlier responses). The population rate is calculated in 1 ms-long time windows as described in Methods line 724. On the other hand, plots showing the long-term population rate (such as the middle plot of Figure 1D) use a lower temporal resolution of 10 ms. The Reviewer is right that one cannot judge the presence or absence of ripple frequency oscillation from these plots, but we intended those panels to show the overall increase in PC population rate during sequence replay. On the other hand, Supplementary Figure 5 explicitly documents the presence of ripple oscillations in PC spiking activity.

Figure 2, supplement 2: it looks like some fraction of PC and PVBCs is bursting (very small ISIs). Are they important for the network dynamics? Is the adaptation maybe only effective in the bursting PCs? This might be important to gain a better mechanistic understanding of the model.

We have added panel C to Supplementary Figure 4, which shows that the low ISI values in PCs are due to some place cells firing more than once during a sharp wave (see the voltage trace of the second place cell). To further clarify this point, we have added an insert to panel B1 as well, showing that the lowest PC ISIs are above 5 ms (in fact, 5.96 ms is their refractory period (see Table 2)). Therefore, PCs in our model do not burst according to the usual definition (ISIs below 5 ms), but some of them do fire more than once during a sharp wave. As we argued above, we do not think that these multiple spikes are critical for the qualitative behavior of the network model. In principle, one could re-optimize the whole network with an extra feature controlling the number of PC spikes to judge how important this feature is, but we have not done so in the interest of time. However, we have added lines 186-191 to the results stating that this is a potential difference between the current model and the available data.

Reviewer #3 (Recommendations for the authors):

The authors are careful to consider some of the limitations of their simple model. However, their study would certainly be strengthened if some of these and other questions could be addressed. Specific consideration should be given to the following:

Spike adaptation alone does not result in a match to the experimentally-recorded durations of SWRs, as the authors acknowledge. It would be good at least to see results from the simulations that have been tried using an extra inhibitory neuron type to try to address this mismatch; and other mechanisms also could be explored here.

The mechanisms responsible for the termination of SWRs are currently unknown, and this is also an open question for our current model. Several different mechanisms based on cellular adaptation, short-term synaptic plasticity, and multiple inhibitory cell populations have been proposed. An additional possible mechanism based on the (learned or hard-wired) structure of recurrent excitation is demonstrated in this paper. As we briefly mentioned in the previous version of the manuscript, we also found that adding a second inhibitory population that provides delayed, long-lasting negative feedback to the PCs could explain the termination of SWRs. However, these simulations were performed in an earlier version of the circuit model that lacked learned excitatory connections, and we found that introducing this mechanism in the final model required substantial retuning of several parameters. Therefore, we decided to defer the full exploration of possible SWR termination mechanisms to a subsequent study; we have removed the reference in the manuscript to the preliminary simulation results, and cite some related published work (Evangelista et al., J. Neurosci. 2020) to back the proposed idea.

What specific spatio-temporal characteristics of spike activity trigger a sequence replay? For example, how sensitive is this to the number of closely associated place cells that spike contemporaneously and does it require some sequencing in this spiking?

This is an excellent question but, unfortunately, we do not know the answer yet. Simple observation of the spike rasters reveals no obvious pattern. One might guess that some combination of activity noise (stochastic activation of neurons) and “frozen noise” (randomness in connectivity and synaptic weights) determines where replay starts and the direction it takes (in the absence of external bias). However, it will require more sophisticated analysis methods or clever manipulations of inputs and weights to find a definite answer.

Is it such initial sequencing that determines whether forward or backward replay occurs?

As discussed, there are biases towards forward or backward replay in different animal situations. How can such biases arise in this model? The "cued" replay results (Figure 2C) demonstrate the obvious of forward replay if the cue is at the track beginning, with backward replay if the cue is at the end of the track, but how in general may such "beginnings" and "ends" be defined in terms of place cells? The strict beginning and end here is somewhat artificial. How can a bias for forwards or backwards replay be introduced at intermediate points along the track? Insights into the characteristics of spike activity triggering replay, as asked for above, should help answer this.

In general, the direction of replay in the model can depend on systematic biases and random variations in the weight structure, but also on (random or deterministic) spatio-temporal structure in the external inputs. We believe that the cued replay scenario that we simulated is not entirely artificial – even real environments may contain choice points where the animal pauses to plan its route, or reward sites that again make the animal stop and may also activate subcortical modulatory systems that affect plasticity. At intermediate sites, systematic bias could be introduced during exploration by factors that influence behavior (e.g., running speed), neuronal activity or plasticity (e.g., attention), especially if such factors can change the fully symmetric nature of the synaptic plasticity rule. Random variations in connectivity or the weights (e.g., due to stochastic spiking during learning) will lead to a location-dependent systematic bias towards forward or reverse replay. Finally, (randomly occurring or input-driven) sequences in the external input are also expected to bias the direction of replay even at intermediate points. However, a detailed analysis of the relative impact of these factors will require further efforts. We have included some of these arguments in lines 404-427 of the Discussion.

Why do we not see simultaneous forward and backward replay from a single trigger point?

In fact, we do see some evidence of replay starting in both directions in the model in certain cases (please refer to the first and second detected replays in Figure 2A). However, there is competition between the two active populations (mediated by feedback inhibition), and one of the sequences always dies out after a short period (this is also because mutual support through recurrent excitation diminishes as the two active populations move further away from each other). This is similar to the competitive behavior of other “bump attractor” models. We have included these arguments in lines 159-164.


Articles from eLife are provided here courtesy of eLife Sciences Publications, Ltd

RESOURCES