1 Introduction and background

Spatial cognition in mammals is based on an internalized representation of space—a cognitive mapFootnote 1 that emerges from neuronal activity in several regions of the brain (O’Keefe and Nadel 1978; Derdikman and Moser 2011; Grieves and Jeffery 2017; Tolman 1948; McNaughton 1996; Moser et al. 2008; Lisman et al. 2017). The type of information encoded by a specific neuronal population is discovered by establishing correspondences between its spiking parameters and spatial characteristics of the environment. For example, ascribing the xy-coordinates to every spike produced by the hippocampal principal neurons according to the animal’s (in the experiments, typically rat’s) position at the moment of spiking, produces distinct clusters, indicating that these neurons, the so-called place cells, fire only within specific locations—their respective place fields (O’Keefe and Dostrovsky 1971; Best and White 1998). The layout of the place fields in a spatial domain \({\mathcal {E}}\)—the place field map \(M_{{\mathcal {E}}}\) (Fig. 1A)—thus defines the temporal order of the place cells’ spiking activity during the animal’s navigation, which is a key determinant of the cognitive map’s structure. Hence, tagging the spikes with the location information can be viewed as a mapping from a cognitive map \({\mathcal {C}}\) into the navigated space,

figure a

referred to as spatial mapping in Babichev et al. (2016). Similarly, tagging the spikes produced by certain neurons in the postsubiculum (and in few other brain regions (Taube et al. 1990; Wiener and Taube 2005)) with the rat’s head direction angle \(\varphi \) produces clusters in the space of planar directions—the circle \(S^1\), thus defining a mapping

figure b

The angular domains in which specific head direction cells become active can be viewed as head direction fields in \(S^1\), similar to the hippocampal place fields in the navigated space. The corresponding head direction map, \(M_{S^1}\), determines the order in which the head direction cells spike during the rat’s movements (Fig. 1B, Taube et al. (1996); Muller et al. (1996)).

The preferred angular domains depend weakly, if at all, on the rat’s position, just as place fields are overall decoupled from the head or body orientation (see however Jercog et al. 2019; Rubin et al. 2014). Thus, the following discussion will be based on the assumption that both cell populations contribute to an allocentric representation of the ambient space: the place cells encode a topological map of locations (Gothard et al. 1996; Alvernhe et al. 2008, 2011, 2012; Dabaghian et al. 2014; Wu and Foster 2014), whereas head direction cells augment it with angular information (Taube 1998; Valerio and Taube 2012; McNaughton et al. 2006; Savelli and Knierim 2019).

Topological model. The physiological and the computational mechanisms by which a cognitive map comes into existence remain vague (McNaughton 1996; Moser et al. 2008; Lisman et al. 2017). However, certain insights into its structure can be obtained through geometric and topological constructions. For example, a place field map \(M_{{\mathcal {E}}}\) can be viewed as a cover of the navigated environment \({\mathcal {E}}\) by the place fields \(\upsilon _i\),

$$\begin{aligned} {\mathcal {E}}=\cup _i\upsilon _i, \end{aligned}$$
(2)

and used to link the topology of \({\mathcal {E}}\) to the topological structure of the cognitive map \({\mathcal {C}}\). Indeed, according to the Alexandrov-Čech theorem, if every nonempty set of overlapping place fields, \(\upsilon _{i_0,i_1,\ldots ,i_n}\equiv \upsilon _{i_0}\cap \upsilon _{i_1}\cap \ldots \cap \upsilon _{i_n}=\upsilon _{i_0, i_1,\ldots ,i_n}\ne \varnothing \), is represented by an abstract simplex, \(\nu _{i_0,i_1,\ldots ,i_n}=[\upsilon _{i_0},\upsilon _{i_1},\ldots ,\upsilon _{i_n}]\), then the homologies of the resulting simplicial complex \({\mathcal {N}}_{\sigma }\)—the nerve of the map \(M_{{\mathcal {E}}}\)—match the homologies of the underlying space \(H_{*}({\mathcal {N}}_{\sigma })=H_{*}({\mathcal {E}})\), provided that all the overlaps \(\upsilon _{i_0,i_1,\ldots ,i_n}\) are contractible. This implies that \({\mathcal {N}}_{\sigma }\) and \({\mathcal {E}}\) have the same topological shape—same number of connectivity components, holes, cavities, tunnels, etc. Hatcher (2002). The same line of arguments allows relating the head direction map with the topology of the space of directions \(S^1\) (Fig. 1C).

Fig. 1
figure 1

Basic topological constructions. A. Simulated place field map \(M_{\mathcal {E}}\) with place fields scattered randomly in a \(1\times 1\) m square environment \({\mathcal {E}}\) with a square hole in the middle. Clusters of dots of a particular color represent individual place fields. B. A head direction field map \(M_{S^1}\) covers the space of directions, \(S^1\). Clusters of colored dots mark specific head direction fields \(\upsilon _{h}\), centered each at its preferred angle \(\varphi _h\). C. The net pool of place cell coactivities is represented by the coactivity complex \({\mathcal {T}}_{\sigma }(t)\) (top right), which provides a developing topological representation of the environment \({\mathcal {E}}\) (bottom). The head direction cells map a circular space of directions \(S^1\) (shown as a ring around the rat). The net pool of head direction cell activities is schematically represented the coactivity complex \({\mathcal {T}}_{\eta }(t)\). D. The timelines of the separate pieces (top panel) and holes (bottom panel) in the complex \({\mathcal {T}}_{\sigma }(t)\) are shown as horizontal bars. At the onset of the navigation, \({\mathcal {T}}_{\sigma }(t)\) contains many spurious topological defects that disappear after a certain “learning period" \(T_{\min }^{\sigma }\), leaving behind a few persistent loops that define the topological shape of \({\mathcal {T}}_{\sigma }(t)\) Dabaghian et al. (2012). Similar behavior is exhibited by the head direction coactivity complex \({\mathcal {T}}_{\eta }(t)\)

It must be emphasized however, that reasoning in terms of place and head direction fields may not capture the brain’s intrinsic principles of processing spiking information, e.g., explain how either the location or the direction signals contribute to animal’s spatial awareness, because the experimentally constructed firing fields are nothing but artificial constructions used to in interpret and visualize spiking data (Hargreaves et al. 2007; Sargolini et al. 2006). Addressing the brain’s intrinsic space representation mechanisms requires carrying the analyses directly in terms of spike times, without invoking auxiliary correlates between neuronal activity and the observed environmental features.

Fortunately, the approach motivated by the nerve theorem can be easily transferred into a “spiking" format. Indeed, one can view a combination of the coactive place cells—a cell assembly (Hebb 1949; Harris 2005; Buzsaki 2010)—as an abstract coactivity simplex,

$$\begin{aligned} \sigma _i=[c_{i_{0}},c_{i_1},\ldots ,c_{i_n}] \end{aligned}$$
(3)

that activates when the rat crosses its simplex field \(\upsilon _{\sigma _i}\)—a domain where all the cells \(c_i\in \sigma _i\) are coactive (Curto and Itskov 2008). By construction, this domain is defined by the overlap of the corresponding place fields \(\upsilon _{\sigma _i}=\upsilon _{i_0,i_1,\ldots ,i_n}\), and may hence be viewed as the the projection of \(\sigma _i\)s into \({\mathcal {E}}\) under the mapping (1\(\sigma \)). Note that if two coactivity simplexes overlap, their respective fields also overlap, \(\sigma _i \cap \sigma _j\ne \varnothing \Leftrightarrow \upsilon _{\sigma _i}\cap \upsilon _{\sigma _j}\ne \varnothing \). Thus, if a cell \(c_i\) is shared by a set \(U_i\) of simplexes, \(U_i=\{\sigma :\sigma \cap c_i\ne \varnothing \}\), then its place field is formed by the union of the corresponding \(\sigma \)-fields,

$$\begin{aligned} \upsilon _i=\cup _{\sigma \in U_i}\upsilon _{\sigma }. \end{aligned}$$

If a simplex \(\sigma _i\) first appears at the moment \(t_i\), then the net pool of neuronal activities produced by the time t gives rise to a time-developing simplicial coactivity complex

$$\begin{aligned} {\mathcal {T}}_{\sigma }(t) =\cup _{t_i<t}\sigma _i \end{aligned}$$

that inflates (\({\mathcal {T}}_{\sigma }(t)\subseteq {\mathcal {T}}_{\sigma }(t')\) for \(t<t'\)), and eventually saturates, converging to the nerve complex’s structure, i.e., \({\mathcal {T}}_{\sigma }(t) \approx {\mathcal {N}}_{\sigma }\), for \(t > rsim T^{\sigma }_{*}\). Analyses based on simulating rat’s moving through randomly scattered place fields show that, e.g., for a small environment \({\mathcal {E}}\) illustrated on Fig. 1A, the rate of new simplexes’ appearance slacks in about \(T^{\sigma }_{*}\approx 6\) minutes (Babichev et al. 2016), which provides an estimate for the time required to map \({\mathcal {E}}\).

The topological dynamics of \({\mathcal {T}}_{\sigma }(t)\) can be described using Persistent Homology theory (Zomorodian and Carlsson 2005; Edelsbrunner and Harer 2010; Kang et al. 2021), which allows identifying the ongoing shape of \({\mathcal {T}}_{\sigma }(t)\) based on the times of its simplexes’ first appearance. Typically, \({\mathcal {T}}_{\sigma }(t)\) starts off with numerous topological defects that tend to disappear as the information provided by the spiking place cells accumulates (see Dabaghian et al. 2012; Arai et al. 2014; Hoffman et al. 2016; Basso et al. 2016 and Fig. 1D). Hence the minimal period \(T_{\min }^{\sigma }\) required to recover the “physical" homologies \(H_{*}({\mathcal {E}})\) provides an estimate for the time necessary to learn topological connectivity of the environment, which, for the case illustrated on Fig. 1A, is about \(T_{\min }^{\sigma }\approx 4-5\) minutes (Dabaghian et al. 2012; Arai et al. 2014; Basso et al. 2016; Hoffman et al. 2016; Alvernhe et al. 2012; Piet et al. 2018).

Importantly, the coactivity complex may be used not only as a tool for estimating learning timescales, but also as a schematic representation of the cognitive map’s developing structure, providing a context for interpreting the ongoing neuronal activity. Indeed, a consecutive sequence of \(\sigma \)-fields visited by the rat,

$$\begin{aligned} \Upsilon =\{\upsilon _{i_0},\upsilon _{i_1},\ldots ,\upsilon _{i_n},\ldots \}, \end{aligned}$$
(4)

captures the shape of the underlying physical trajectory \(s\subset \Upsilon \) (Guger et al. 2011; Jensen and Lisman 2000; Frank et al. 2000; Brown et al. 1998; Zhang et al. 1998; Huang et al. 2009). The corresponding chain of the place cell assemblies ignited in the hippocampal network is represented by the simplicial path

figure c

The fact that this information allows interpreting certain cognitive phenomena (Pfeiffer and Foster 2013; Johnson and Redish 2007; Dragoi and Tonegawa 2011) suggests that the animal’s movements are faithfully monitored by neuronal activity, i.e., that in sufficiently well-developed complexes (e.g., for \(t>T_{\min }^{\sigma }\)) simplicial paths capture the shapes of the underlying trajectories (Guger et al. 2011; Jensen and Lisman 2000; Frank et al. 2000; Brown et al. 1998; Zhang et al. 1998; Huang et al. 2009). For the referencing convenience, this assumption is formulated as two model requirements:

R1. Actuality. At any moment of time, there exists an active assembly \(\sigma \) that represents the animal’s current location.

R2. Specificity. Different place cell assemblies represent different domains in \({\mathcal {E}}\),i.e., \(\sigma \)-simplexes serve as unique indexes of the animal’s location in a given map \({\mathcal {C}}\).

An implication of these requirements is that the simplex fields cover the explored surfaces (2) and that if the consecutive simplexes in (5\(\sigma \)) are adjacent, i.e., no simplexes ignite between \(\sigma _i\) and \(\sigma _{i+1}\) (schematically denoted below as ) then the corresponding \(\sigma \)-fields are adjacent or overlap.

Head orientation map. Using the same line of arguments, one can deduce the topology of the space of directions by building a dynamic head direction coactivity complex \({\mathcal {T}}_{\eta }(t)\) from the simplexes

$$\begin{aligned} \eta _j=[h_{j_1},\ldots ,h_{j_l}], \end{aligned}$$

which designate the assemblies of head direction cells \(h_{j_1}, h_{j_2},\ldots ,h_{j_l}\). If a simplex \(\eta _j\) first activates at the moment \(t_j\), then

$$\begin{aligned} {\mathcal {T}}_{\eta }(t) =\cup _{t_{j}\le t}\eta _j. \end{aligned}$$

As the complex \({\mathcal {T}}_{\eta }(t)\) develops, it forms a stage for representing the head direction cell spiking structure: in full analogy with (5\(\sigma \)), traversing a physical trajectory s(t) induces a sequence of active \(\eta \)-simplexes, or a head direction simplicial path

figure d

in which different \(\eta \)-simplexes represent distinct directions, at all locations. As spiking information accumulates, the topological structure of \({\mathcal {T}}_{\eta }(t)\) converges to the structure of nerve complex \({\mathcal {N}}_{\eta }\) induced by the head direction fields’ cover of \(S^1\)—every \(\eta \)-simplex projects into its respective head direction field \(\upsilon _{\eta }\) under the mapping (1\(\eta \)). Simulations demonstrate that in the environment shown on Fig. 1A, a typical coactivity complex \({\mathcal {T}}_{\eta }(t)\) saturates in about \(T_{*}^{\eta }\approx 2\) minutes, while the persistent homologies of \({\mathcal {T}}_{\eta }(t)\) filtered according to the times of \(\eta \)–simplexes’ first appearances reveal the circular topology of the space of directions in about \(T_{\min }^{\eta }\approx 1.5\) minutes.

From the biological point of view however, these results do not provide an estimate for orientation learning time: by itself, \(T_{\min }^{\eta }\) may be viewed as the time required to learn head directions at a particular location, in every environment, whereas learning to orient in \({\mathcal {E}}\) implies knowing directions at every location and an ability to link orientations across locations. The latter is a much more extensive task, which, as it will be argued below, requires additional specifications and interpretations.

The following discussion is dedicated to constructing phenomenological models of orientation learning using algebraic topology and synthetic geometry approaches. In Sect. 2, we construct and test a direct generalization of the topological model, similar to the one used in Dabaghian et al. (2012); Arai et al. (2014); Basso et al. (2016); Hoffman et al. (2016) and demonstrate that it fails to produce biologically viable predictions for the learning period. In Sect. 3, the topological approach is qualitatively generalized using an alternative scope of ideas inspired by synthetic geometry. In Sect. 4, it is demonstrated that the resulting framework allows incorporating additional neurophysiological mechanisms and acquiring the topological connectivity of the environment in a biologically viable time, thus revealing a new level of organization of the cognitive map, as discussed in Sect. 5.

2 Topological model of orientation learning

Orientation coactivity complex. The model requirements R1 and R2, applied to both hippocampal and head direction activity, imply that the animal’s location and orientation are represented, at any moment of time, by an active \(\sigma \)-simplex and an active \(\eta \)-simplex. Thus, the net pattern of activity in the hippocampal and in the head direction networks defines a \((\sigma ,\eta )\) pair—a single oriented, or pose simplex

$$\begin{aligned} \zeta =[\sigma ,\eta ], \end{aligned}$$

(the latter term is borrowed from robotics (Thrun et al. 2005; Heinze et al. 2018; Savelli and Knierim 2019)). Restricting a \(\zeta \)-simplex to its maximal subsimplexes spanned, respectively, by the place- or the head direction cells defines the projections into its positional and directional components,

figure e

which permits terminology such as “\(\zeta \) is located at \(\sigma \)," “\(\zeta \) is directed toward \(\eta \)," “a location \(\sigma \) is directed by \(\eta \)," “\(\eta \) is applied at \(\sigma \)," etc. Thus, one may refer to the \(\sigma \)-simplexes as to locations and to the \(\eta \)-simplexes as to directions, implying, depending on the context, either the items encoded in the cognitive map, or the \(\sigma /\eta \)-fields, or both.

As in the previously discussed cases, the collection of pose simplexes produced up to a moment t forms an orientation coactivity complex \({\mathcal {T}}_{\zeta }(t)\) that schematically represents the net pool of conjunctive patterns generated by the place- and the head direction cells accumulated since the onset of the navigation. In particular, the combinations of cells ignited along a physical path s induces an oriented simplicial path

$$\begin{aligned} \tilde{\zeta }=\{\zeta _1,\zeta _2,\ldots ,\zeta _n,\ldots \}, \end{aligned}$$
(7)

which runs through \({\mathcal {T}}_{\zeta }(t)\). The transitions from a given active pose simplex, \(\zeta _i\), to the next, \(\zeta _{i+1}\), occur at discrete moments \(t_1,t_2,\ldots ,t_n,\ldots \), when either the \(\sigma \)- or the \(\eta \)-component of \(\zeta _i\) deactivates and the corresponding component of \(\zeta _{i+1}\) ignites. Thus, the simplicial paths \({\tilde{\sigma }}\) and \({\tilde{\eta }}\) can be produced from the oriented path (7) using (5). In contrast with (5\(\sigma \)) and (5\(\eta \)), the \(\sigma \)- and \(\eta \)-simplexes in such paths are indexed uniformly, according to the indexes of (7),

figure f

(8\(\sigma \)) or in (8\(\eta \)) (but not in both of them simultaneously) may coincide, e.g., the location \(\sigma _i\) may remain the same during several timesteps, while the \(\eta \)-activity changes, or vice versa.

Since the rat can potentially run in any direction at any location (unless stopped by an obstacle), there are no a priori restrictions on the order of the place cell and the head direction cells spiking activity. This observation is formalized by another model requirement:

R3. Independence. A given head direction cell assembly \(\eta \) may become coactive with any place cell assembly \(\sigma \) and vice versa, with independent \(\sigma \)- and \(\eta \)-spiking parameters.

In model’s terms, this implies that the development of the coactivity complex \({\mathcal {T}}_{\eta }(t)\) and its ultimate saturated structure \({\mathcal {N}}_{\eta }\) is the same at any location \(\sigma \), and vice versa, the saturated structure of \({\mathcal {T}}_{\sigma }(t)\) is independent from \(\eta \)-activity.

However, since the activities in the hippocampal and in the head direction cell networks represent complementary aspects of the same movements, certain characteristics of the simplicial paths (8) are coupled. Specifically, in light of R1R2, a connected physical trajectory s should induce a connected \(\sigma \)-path in the place cell complex \({\mathcal {T}}_{\sigma }\), together with a connected \(\eta \)-path in the head direction complex \({\mathcal {T}}_{\eta }\). Similarly, a looping trajectory should induce periodic sequences of simplexes,

$$\begin{aligned} {\tilde{\sigma }}_{o}=\{\sigma _1,\sigma _2,\ldots , \sigma _n, \sigma _1, \sigma _2,\ldots \},\\ {\tilde{\eta }}_{o}=\{\eta _1,\eta _2,\ldots ,\eta _n, \eta _1, \eta _2, \ldots \}. \end{aligned}$$

In other words, making a loop in physical space \({\mathcal {E}}\) should induced \(\sigma \)- and \(\eta \)-loops. Thus, without referencing the physical trajectory, the model requires

R4. Topological consistency. The simplicial paths (8) should be connected and a simple periodic \(\sigma \)-path should induce a simple periodic \(\eta \)-path and vice versa.

Orientation learning. As discussed above, getting rid of the topological defects in \({\mathcal {T}}_{\sigma }(t)\) and in \({\mathcal {T}}_{\eta }(t)\) allows faithful topological classification of physical routes in terms of the neuronal (co)activity. Thus, the “topological maturation" of these complexes can be viewed as a schematic representation of the learning process. The concept of oriented simplicial paths embedded into the orientation coactivity complex \({\mathcal {T}}_{\zeta }(t)\) allows a similar interpretation of the spatial orientation learning—as acquiring an ability to distinguish between qualitatively disparate moving sequences. Indeed, knowing how to orient in a given space, viewed as a cognitive ability to reach desired places from different directions via a suitable selection of intermediate locations and turns, may be interpreted mathematically as an ability to classify trajectories using topologically inequivalent classes of oriented simplicial paths (8). From an algebraic-topological perspective, this may be possible after the orientation complex \({\mathcal {T}}_{\zeta }(t)\) acquires its correct topology.

To establish the latter, note that the complex \({\mathcal {T}}_{\zeta }(t)\) has the same nature as \({\mathcal {T}}_{\sigma }(t)\) and \({\mathcal {T}}_{\eta }(t)\)—it is an emerging temporal representation of a nerve complex, induced from a cover of a certain orientation space \({\mathcal {O}}\) that combines \({\mathcal {E}}\) and \(S^1\). Since the preferred angles of the head direction cells remain the same at all locations Wiener and Taube (2005), the space of directions \(S^1\) represented by these cells does not “twist” as the rat moves across \({\mathcal {E}}\), which implies that the orientation space has a direct product structure \({\mathcal {O}}={\mathcal {E}}\times S^1\) (Hatcher 2002). One may thus combine (1\(\sigma \)) and (1\(\eta \)) to construct a joint spatial mapping, \(f_{\zeta }=(f_{\sigma },f_{\eta })\), that associates instances of simultaneous activity of place- and head direction cell groups with domains in the orientation space,

$$\begin{aligned} f_{\zeta }: {\mathcal {T}}_{\zeta }\rightarrow {\mathcal {O}}. \end{aligned}$$

For example, if a given place cell c maps into a field \(\upsilon =f_{\sigma }(c)\), then the coactivity of a pair \(\zeta =[c,h]\) (the smallest possible combined coactivity) can be mapped into \({\mathcal {O}}\) by shifting \(\upsilon \) along the corresponding fiber \(S^1\) according to the angle field of the head direction component of \(\zeta \), \(\varphi =f_{\eta }(h)\) (Fig. 2A). The resulting orientation fields, \(\upsilon _{\zeta _i}=f_{\zeta }(\zeta _i)\), form a cover of the orientation space,

$$\begin{aligned} {\mathcal {O}}=\cup _i\upsilon _{\zeta _i}, \end{aligned}$$

whose nerve \({\mathcal {N}}_{\zeta }\) is reproduced by the temporal orientation complex \({\mathcal {T}}_{\zeta }(t)\).

Just as the \(\sigma \)- and \(\eta \)-simplexes, each pose simplex \(\zeta _k\) has a well-defined appearance time, \(t_k\), due to which the orientation complex is time-filtered, \({\mathcal {T}}_{\zeta }(t)\subseteq {\mathcal {T}}_{\zeta }(t')\) for \(t<t'\). Applying Persistent Homology techniques (Zomorodian and Carlsson 2005; Edelsbrunner and Harer 2010), one can compare topological shape defined by the time-dependent Betti numbers of \({\mathcal {T}}_{\zeta }(t)\) with the shape of the orientation space \({\mathcal {O}}={\mathcal {E}}\times S^1\), and thus quantify the orientation learning process.

Fig. 2
figure 2

Topological leaning dynamics. A. The orientation space for a rat moving on a circular runway (bottom) is a topological torus (top), \({\mathcal {O}}=T^2\). Clusters of colored dots show examples of the simplex fields \(\upsilon _{\zeta _{ij}}\) of the basic coactivity combinations \(\zeta _{ij}=[c_i,h_j]\). The timelines of the topological loops in the place cell complex \({\mathcal {T}}_{\sigma }(t)\) (panel B, horizontal bars) and in the head direction cell complex \({\mathcal {T}}_{\eta }(t)\) (panel C) disappear in under a minute; a stable loop in 0D and a stable loop in 1D in each case indicate that both the runway and the direction space are topological circles. D. The orientation coactivity complex \({\mathcal {T}}_{\zeta }(t)\) contains many topological defects that take over an hour to disappear: the spurious 0D loops contract in about 17 minutes (top panel), and the spurious 1D loops persist for  80 minutes. For an “open field" environment (Fig. 1A) a similar topological learning process takes hours. These estimates exceed the experimental learning timescales, suggesting that the physiological orientation learning involves additional mechanisms

As an illustration of this approach, we simulated the rat’s movements on a circular runway, for which the total representing space for the combined place cell and head direction cell coactivity forms a 2D torus (Fig. 2A). To simplify modeling, we used movement direction as a proxy for the head direction, although physiologically these parameters not identical (Cei et al. 2014; Raudies et al. 2015; Laurens and Angelaki 2018; Shinder and Taube 2011, 2014). Computations show that the correct topological shapes of the place- and the head direction complexes emerge in about 1 minute (Fig. 2B,C), while the transient topological defects in \({\mathcal {T}}_{\zeta }(t)\) disappear in about 80 minutes (Fig. 2D)—a surprisingly large value that exceeds behavioral outcomes by an order of magnitude (Alvernhe et al. 2012; Piet et al. 2018). Even assuming that biological learning may involve only a partial reconstruction of the orientation space’s topology, the persistence diagrams shown on Fig. 2D indicate that \({\mathcal {T}}_{\zeta }(t)\) is not only riddled with holes for over 40 minutes, but also that it remains disconnected (\(b_0({\mathcal {T}}_{\zeta })>1\)) for up until 17 minutes, i.e., according to the model, the animal should not be able to acquire a connected map of a simple annulus after completing multiple lapses across it.

Biological implications of mismatches between the experimental and the modeled estimates of learning timescales are intriguing: since the model’s quantifications are based on “topological accounting" of place- and head direction cell coactivities induced by the animal’s movements, the root of the problem seems to lay not in the mathematical side of the model, but in the biological assumptions that underlie the computations. Specifically, the overly long learning periods suggest that building a spatial map from the movement-triggered neuronal coactivity alone does not take into account certain principal components of the learning mechanism. In other words, the fact that the animal seems to produce correct representations of the environment much faster than it would be possible from the influx of navigation-triggered data, implies that the brain can bypass the necessity to discover every bit of information empirically, i.e., that building a cognitive map may be accelerated by “generating information from within,” via autonomous network dynamics.

Physiologically, this conclusion is not surprising: the phenomena associated with spatial information processing through endogenous hippocampal activity are well known. Many experiments have demonstrated that the animal can replay place cells during the quiescent states (Wu and Foster 2014; Karlsson and Frank 2009; Ólafsdóttir et al. 2018) or sleep (Ji and Wilson 2007; Louie and Wilson 2001), in the order in which they have fired during preceding active exploration of the environment, or preplay place cells in sequences that represent future trajectories (Pfeiffer and Foster 2013; Johnson and Redish 2007; Dragoi and Tonegawa 2011). These phenomena are commonly viewed as manifestations of the animal’s “mental explorations” of its cognitive map, which help acquiring, sustaining and retrieving memories (Hopfield 2010; Zeithamova et al. 2012).

However, one would expect a different functional impact of replays and preplays on spatial learning. Since replays represent past experiences, they cannot accelerate acquisition of new spatial information—in the model’s terms, reactivation of simplexes that are already included into the coactivity complex cannot alter its shape (in absence of synaptic and structural instabilities (Roux et al. 2017; van de Ven et al. 2016; Babichev et al. 2018, 2019)). In contrast, preplaying place cell combinations that have not yet been triggered by previous physical moves may speed up the learning process. Yet, from the modeling perspective, it is a priori unclear which specific trajectories may be preplayed by the brain, or, in computational terms, which specific simplicial trajectories should be “injected" into the simulated cognitive map \({\mathcal {T}}_{\zeta }(t)\) to simulate the preplays that may accelerate learning. Experiments suggest that “natural" connections between locations are the straight runs (Pfeiffer and Foster 2013; Valerio and Taube 2012; McNaughton et al. 2006); however, implementing such runs would require a certain “geometrization" of the topological model. In the following, we propose a geometric implementation of preplays that help to expedite learning process and open new perspectives modeling spatial representations.

3 Geometric model of orientation learning

The motivation for an alternative approach comes from the observation that combining inputs from the place and the head direction cells offers a possibility of establishing different arrangements of the locations in the hippocampal map. Indeed, common interpretations of the head direction cells’ functions suggest that the rat’s movements guided by a fixed head direction activity trace approximately straight paths, whereas shifts in \(\eta \)-activity indicate curved segments of the trajectory, turns, etc. Chen et al. (1994); Wiener and Taube (2005); Savelli and Knierim (2019). This implies that the brain may use the head direction cells’ outputs to represent shapes of the paths encoded by the place cells, to align their segments, identify collinearities, their incidences, parallelness, etc.

To address these structures and their properties we will use the following definitions:

D1. Simplexes \(\sigma _1\) and \(\sigma _2\) are aligned in \(\eta \)-direction, if they may ignite during an uninterrupted activity of a fixed \(\eta \)-simplex. In formal notations, \((\sigma _1,\sigma _2)\lhd \eta \).

D2. Two \(\eta \)-aligned simplexes are \(\eta \)-adjacent, , if the ignition of \(\sigma _2\) follows immediately the ignition of \(\sigma _1\), with no other cell groups igniting in-between.

D3. An ordered sequence of \(\sigma \)-simplexes forms an \(\eta \)-oriented alignment if each pair of consecutive simplexes, \((\sigma _i,\sigma _{i+1})\) in (8\(\sigma \)), is \(\eta \)-adjacent, i.e., if the oriented path,

$$\begin{aligned} \ell =\{[\sigma _1,\eta ],[\sigma _2,\eta ],\ldots ,[\sigma _n,\eta ]\}, \end{aligned}$$

never changes direction. The notation

$$\begin{aligned} \ell =\{\sigma _1,\sigma _2,\ldots ,\sigma _n|\eta \}\equiv \{{\bar{\sigma }}|\eta \} \end{aligned}$$
(9)

highlights the set of collinear locations \({\bar{\sigma }}=(\sigma _1,\sigma _2,\ldots ,\sigma _n)\) and the \(\eta \)-simplex that orients it. The bar in \({\bar{\sigma }}\) is used to distinguish an alignment from a generic simplicial path \({\tilde{\sigma }}\).

D4. An alignment \(\ell _1\) augments an alignment \(\ell _2\), if both \(\ell _1\) and \(\ell _2\) can be guided by an uninterrupted \(\eta \)-activity (\({\bar{\sigma }}_1\bowtie {\bar{\sigma }}_2\Leftrightarrow ({\bar{\sigma }}_1\cup {\bar{\sigma }}_2)\lhd \eta \)). Conversely, a proper subset \({\bar{\sigma }}'\) of an aligned set \({\bar{\sigma }}\) forms its proper subalignment (\({\bar{\sigma }}'\subset {\bar{\sigma }}\Leftrightarrow \{{\bar{\sigma }}'|\eta \} < imes \{{\bar{\sigma }}|\eta \}\)).

D5. Two alignments \(\ell _1\) and \(\ell _2\) overlap, if they share a location \(\sigma \) (\(\ell _1\cap \ell _2= \sigma \Leftrightarrow \sigma \in {\bar{\sigma }}_1\cap {\bar{\sigma }}_2\)).

D6. A location \(\sigma '\) lays outside of an \(\eta \)-alignment \(\ell _{\eta }\), if it aligns with any \(\sigma \) from \(\ell _{\eta }\) along a direction different from \(\eta \) (\(\sigma '\notin \ell _{\eta }\Leftrightarrow \exists \sigma \in \ell _{\eta },\eta '\ne \eta :(\sigma ,\sigma ')\lhd \eta '\)).

D7. Two alignments are parallel, if they are directed by the same or opposite \(\eta \)-activity, without augmenting each other, i.e., if one \(\pm \eta \)-alignment contains a location outside of the other one, (\(\ell _1 \parallel \ell _2\Leftrightarrow \eta _1 =\pm \eta _2\), and \(\exists \sigma :\sigma \in {\bar{\sigma }}_1\, ,\sigma \notin {\bar{\sigma }}_2\), where \(f_{\eta }(-\eta )\approxeq \pi +f_{\eta }(\eta )\)).

D8. A yaw is an oriented path in which a sequence of \(\eta \)-simplexes ignites at a fixed location \(\sigma \),

Thus, yaws may be viewed as structural opposites of the alignments, which is emphasized by the notation

that highlights the range of \(\eta \)-simplexes, \({\hat{\eta }}\), ignited at the axis of the yaw, \(\sigma \).

D9. A clockwise turn is an oriented path \({\tilde{\zeta }}_{+}=\{[\sigma _1,\eta _1],[\sigma _2,\eta _2],\ldots , [\sigma _n,\eta _n]\}\) with a growing angular sequence, i.e., the angle \(\varphi _i\) that represents the element \(\eta _i\) is not greater than the next one, \(\varphi _{i+1}\ge \varphi _i\). A counterclockwise turn \({\tilde{\zeta }}_{-}\) is an oriented path with a decreasing angular sequence, \(\varphi _{i+1}\le \varphi _i\).

The latter definition is due to the observation that \(\eta \)-simplexes can be ordered according to the angles they represent, i.e., \(\eta _i<\eta _{i+1}\) iff \(\varphi _i<\varphi _{i+1}\), which also allows defining the angle between alignments,

$$\begin{aligned} \measuredangle (\ell _{\eta _i},\ell _{\eta _j})\equiv \measuredangle (\eta _i,\eta _j)\equiv |\varphi _i-\varphi _{j}|= \Delta \varphi _{ij}. \end{aligned}$$

In light of the definitions D1D9, the model requirements R1R4 imply that the entire ensembles of the active place and head direction cells are involved into geometric arrangements, e.g., every location \(\sigma \) belongs to an alignment directed by a \(\eta \)-simplex, and conversely, every \(\eta \)-simplex directs a nonempty alignment through the \(\sigma \)-map. The question is, whether this collection of alignments is sufficiently complete to allow self-contained geometric reasoning in terms of collinearities, incidences, parallelisms, etc., i.e., does it form a self-contained geometry?

The standard approach to answering this question is based on verifying a set of axioms, in this case—the axioms of affine geometry, applied to the elements of a suitable set \(A=\{x,y,z,\ldots \}\) and its select subsets \(\ell _1,\ell _2,\ldots ,\in A\):

A1. Any pair of distinct elements of \(x\ne y\) is included into a unique subset \(\ell \).

A2. There exists an element xoutside of any given subset \(\ell \), \(x\notin \ell \).

A3. For any subset \(\ell \) and an element \(x\notin \ell \), there exists a unique subset \(\ell _x\) that includes x, but does not overlap with \(\ell \).

If these axioms (referred to as A-axioms below) are satisfied, then the subsets \(\ell _1,\ell _2, \ldots \), can be viewed as lines because interrelationships among them and with other elements of A reproduce the familiar geometric incidences between lines and points in the Euclidean plane (Hilbert 1992; Hilbert and Cohn-Vossen 1999; Batten 1997; Karteszi 1976). However, the set of geometries established via the A-axioms is much broader than its main “motivating example:" the standard planar affine geometry \({\mathscr {A}}_E\) is but a specific model implementing the A-axioms using the infinite set of infinitesimal points and infinite lines (Hilbert 1992; Hilbert and Cohn-Vossen 1999; Batten 1997; Karteszi 1976). In fact, it is also possible to use the A-axioms to establish geometry on finite sets, thus producing finite affine planes. This is important for modeling cognitive maps encoded by the physiological networks that contain finite numbers of neurons and thus may represent finite sets of locations and alignments. Specifically, a possible adaptation of the A-axioms using spiking semantics, is the following:

A1\(_n\). Any pair of distinct locations \(\sigma _1\ne \sigma _2\)belongs to a unique alignment, i.e., \(\sigma _1\)and \(\sigma _2\) may ignite in sequence during the activity of a single \(\eta \)-simplex (\(\forall \sigma _1,\sigma _2,\exists !\eta , {\bar{\sigma }}:(\sigma _1,\sigma _2) < imes {\bar{\sigma }}\lhd \eta \)).

A2\(_n\). The location-encoding network can activate a group of cells \(\sigma \) to represent a location outside of any given alignment (\(\forall \ell ,\,\exists \sigma \notin \ell \)).

A3\(_n\). For any alignment \(\ell \) and a location \(\sigma \notin \ell \), there exists a unique alignment \(\ell _{\sigma }\) parallel to \(\ell \) that passes through \(\sigma \) (\(\forall \ell ,\,\sigma \notin \ell ,\,\exists !\ell _{\sigma }: \sigma \in \ell _{\sigma }, \ell \parallel \ell _{\sigma }\)).

Validating these axioms over the net pool of spiking activities produced by the hippocampal and head direction cells would establish a discrete-geometric structure encoded by \((\sigma ,\eta )\)-neuronal activity. However, the requirements imposed by the A\(_n\)-axioms may not be compatible with physiological mechanisms that operate the corresponding networks, as well as with these networks’ functions. Indeed, the configurations formed by the connections in finite planes are typically non-planar (Fig. 3), whereas physiological computations combining place and head direction cells’ activities appear to enable geometric planning in planar environments (Valerio and Taube 2012; McNaughton et al. 2006). Second, the combinations of locations that form “relational lines" according to the A\(_n\)-axioms may not have the standard properties of their Euclidean counterparts, e.g., they may include sequences of locations that cannot be consistently mapped into straight Euclidean paths (Fig. 3). In contrast, experiments show that neuronal activity during animals’ movements along straight arrangements of \(\sigma \)-fields, as well as their offline preplays/replays (Mattar and Daw 2018; Byrne and Becker 2004), dovetail with the definitions D1-D7. Third, given a large number of the encoded locations (in rats, about \(3\times 10^4\) of active place cells in small environments Ziv et al. (2013)) and a very large set of possible co-active cell combinations (Buzsaki 2010; Babichev et al. 2016), a finite set of \(\eta \)-simplexes may not suffice to align all pairs of locations in the sense of the definition D7.

On the other hand, certain key features of finite affine planes, e.g., the necessity of having k parallel lines in every direction and a fixed number, \(k+1\), of lines passing through each location (Hilbert 1992; Hilbert and Cohn-Vossen 1999; Batten 1997; Karteszi 1976) are reflected in the network. Indeed, the existence of a fixed population of head direction assemblies results in a fixed number \(k\approxeq N_{\eta }/2\) of distinct alignments passing through any location and the same number of directions running across the cognitive map.

Fig. 3
figure 3

Finite affine plane of the third order, \({\mathscr {A}}_3\), with 9 points (black dots) aligned according to the A-axioms in 12 lines (colors) forms a non-planar configuration

Together, these observations suggest that the brain may combine certain aspects of finite geometries and Euclidean plane discretizations. Rather than trying to recognize the net geometry of the resulting representations from the onset, one may adopt a constructive “bottom up" approach: it may be possible to interpret certain local properties of spiking activity as basic geometric relations and then follow how such relations accumulate at larger scales, yielding global geometric frameworks. For example, it can be argued that place cell activities can be aligned locally, i.e., that ignitions of a specific head direction assembly can accompany transitions of activity from one place cell assembly to an adjoining one. It is also plausible that, in stable network configurations, the selection of cell groups involved in such transitions is limited or even unambiguous. Also, given the number of place cells (\(N_c\approx 3\times 10^5\)) and typical assembly sizes (\(60-300\) cells) (Buzsaki 2010), there should be enough place cell combinations to represent a sufficient set of alignments, overlaps between them, etc. (Babichev et al. 2016; Perin et al. 2011; Reimann et al. 2017).

Thus, in addition to (mostly topological) requirements R1R4, one can consider the following neuro-geometric rules:

G1. Any two adjacent locations align in a unique direction .

G2. A location adjacent to a given one may be recruited in any direction ).

G3. The location-encoding network can explicitly represent the overlap between any two non-parallel alignments (\(\forall \ell _1,\ell _2,\eta _1\ne \eta _2,\,{\tilde{\exists }}!\sigma :\ell _1\cap \ell _2=\sigma \in \ell _1,\ell _2\)).

In contrast with the A\(_n\)-axioms that aim to establish large-scale properties of a “cognitive" affine plane as a whole, the G-rules define local geometric relationships induced by local mechanisms controlling neuronal activity. In particular, G1 ascertains a possibility of aligning any two adjacent locations, rather than any two locations as required by the A1\(_n\). The rule G2 is complementary: it posits that if an active \(\eta \)-combination is selected, then the activity can propagate from a given \(\sigma _1\) to a specific adjacent \(\sigma _2\). Lastly, the rule G3 allows reasoning about the locations, alignments, incidences, etc., assuming that all these elements can be physiologically actualized.

Fig. 4
figure 4

G-rules based geometric constructions. A. A directed polygonal chain connecting pairs of adjacent locations along the navigated trajectory in the environment shown on Fig. 1A. B. A schematic representation of a discrete homotopy from a generic \(\zeta \)-path to a polygonal chain: the \(\eta \)-components shift towards the unique directions that align the adjacent locations (gray arrows). C. The resulting polygonal chain (a combination of yaws and straight runs) projects by \(\pi _{\sigma }\) into a undirected chain connecting the adjacent locations—a fragment of the chain shown on the panel A. D. Lemma 2: If two nonparallel alignments, \(\ell _{\eta }\) and \(\ell _{\eta '}\), produce two intersections \(\sigma \) and \(\sigma '\), then there exists a \({\tilde{\sigma }}\)-trajectory that forms a noncontractible simple loop, while the corresponding \({\tilde{\eta }}\)-trajectory forms a contractible segment (top left corner), in contradiction with R4

As a first application of the G-rules, notice that a \(\sigma \)-path, viewed as a sequence of adjacent \(\sigma \)s, induces a unique ordered \(\eta \)-sequence, i.e., a \({\tilde{\eta }}\)-path in \({\mathcal {T}}_{\eta }(t)\). Together, these paths define an oriented trajectory \({\tilde{\zeta }}'\), formed by uniquely directed straight links between adjacent locations, which can be graphically represented by a directed polygonal chain of \(\sigma \)-locations (Fig. 4A). Conversely, the fact that a generic \({\tilde{\zeta }}\) projects into a ordered sequence of adjacent \(\sigma \)-simplexes, \({\tilde{\sigma }}=\pi _{\sigma }({\tilde{\zeta }})\), implies that oriented paths can be aligned into the polygonal chains, \({\tilde{\zeta }}\rightarrow {\tilde{\zeta }}'\) (Fig. 4B). From the perspective of the topological model discussed in Section 2, this means that each path \({\tilde{\sigma }}\) can be “lifted" from \({\mathcal {T}}_{\sigma }(t)\) into a unique oriented path \({\tilde{\zeta }}'\in {\mathcal {T}}_{\zeta }(t)\) by a back projection, \({\tilde{\zeta }}'=\pi _{\sigma }^{-1}({\tilde{\sigma }})\). In the following, the term “simplicial path" will refer to the polygonal chains only, unless explicitly stated otherwise, and the “prime" notation will be suppressed.

Reversing the order of simplexes in a chain and inverting the corresponding \(\eta \)-sequence,

figure g

where the angle \(-\eta \) is diametrically opposite to \(\eta \), \(f_{\eta }(-\eta _i)\approxeq \pi +f_{\eta }(\eta _i)\). The “\(+\)" sign in (10\(\eta \)) corresponds to “backing up" along the path \({\tilde{\sigma }}_{+}\) and the “−" sign to reversing the moving direction, either by implementing the required physical steps or by flipping the order of the replayed or preplayed sequences (Foster and Wilson 2006; Ambrose et al. 2016) (in open fields, place cell spiking is omnidirectional Chen et al. (2018)). The Since move reversal does not affect the \(\sigma \)-paths’ geometries, the transformations (10) can be regarded as equivalence relationships, which do not reference physical trajectory:

R5. Reversibility. Simplicial \(\sigma \)-paths related via (10) are geometrically identical.

In accordance with R5, a given \(\eta \)-oriented alignment, \(\ell _{+}=\{{\bar{\sigma }}|\eta \}\), and its inverse, \(\ell _{-}=\{{\bar{\sigma }}|-\eta \}\), define the same collinear sequence, i.e., \(\pi _{\sigma }(\ell _{+})= \pi _{\sigma }(\ell _{-})={\bar{\sigma }}\)—a natural observation that motivates the definition D7. In particular, a pair of \(\pm \eta \) adjacent locations is also geometrically adjacent (), which allows representing trajectories by undirected polygonal chains connecting adjacent \(\sigma \)-fields (Fig. 4C). For example, a bending chain corresponds to a clockwise turn \({\tilde{\zeta }}_{+}\) as well as to its counterclockwise counterpart \({\tilde{\zeta }}_{-}\) (both project to the same \(\sigma \)-path, \(\pi _{\sigma }({\tilde{\zeta }}_{+})=\pi _{\sigma }({\tilde{\zeta }}_{-})={\tilde{\sigma }}\)); a closed chain—to a loop that can be traversed in clockwise or in counterclockwise direction (\({\tilde{\sigma }}_{o}=\pi _{\sigma }({\tilde{\zeta }}_{o_{-}})=\pi _{\sigma }({\tilde{\zeta }}_{o_{+}})\)), etc.

Returning to the link between the G-rules and the remaining two A- or A\(_n\)-axioms, it can be observed that the A2\(_n\)-axiom is an immediate consequence of G2: if the network is capable of actualizing up to \(N_{\eta }\) simplexes adjacent to a given one along \(N_{\eta }\) available directions, then \(N_{\eta }-2\) of them will necessarily lay outside of a given alignment. The argument for the existence and uniqueness of parallel lines (axiom A3\(_n\)) can be organized into the following two lemmas:

Lemma 1

If \(\sigma \) is a location outside of an alignment \(\ell _{\eta }\), \(\sigma \notin \ell _{\eta }\), and \(\ell _{\eta }'\) is an alignment directed by \(\eta \) at \(\sigma \), \(\ell _{\eta }\ne \ell '_{\eta }\), then \(\ell _{\eta }\) and \(\ell _{\eta }'\) do not overlap.

Proof

. Assume that the overlap exists, \(\ell _{\eta }\cap \ell _{\eta }'=\sigma '\ne \varnothing \). Since \(\eta \) is a unique index of directions, the location \(\sigma '\) is \(\eta \)-aligned with its adjacent locations both in \(\ell _{\eta }\) and in \(\ell _{\eta '}\). Thus, \(\ell _{\eta }\) and \(\ell _{\eta }'\) augment each other (\({\bar{\sigma }}_1\bowtie {\bar{\sigma }}_2\)), forming a single joint \(\eta \)-alignment that passes through \(\sigma \), in contradiction with the original assumption \(\sigma \notin \ell _{\eta }\). \(\square \)

Lemma 2

Two non-parallel lines cannot intersect more than once.

Proof

. Consider two alignments \(\ell _{\eta }\) and \(\ell _{\eta '}\), \(\eta \ne \eta '\), with \(\ell _{\eta }\cap \ell _{\eta '} = \sigma \). Without loss of generality (change \(\ell _{\eta }\rightarrow \ell _{-\eta }\) if necessary), we may assume that the angle between them is sharp, \(\measuredangle (\ell _{\eta },\ell _{\eta '})<\pi /2\) (Fig. 4C). Consider an oriented path \(\zeta \) that starts at \(\sigma \) in \(\eta '\)-direction, i.e., along \(\ell _{\eta '}\). If \(\ell _{\eta '}\) crosses \(\ell _{\eta }\) again at a location \(\sigma '\), then the path \(\zeta \) may turn back at \(\sigma '\) and continue along \(\ell _{-\eta }\) towards \(\sigma \), then continue along \(\ell _{\eta '}\) again, etc., yielding a single closed \(\sigma \)-path. On the other hand, the corresponding \(\eta \)-path links \(\eta \) and \(\eta '\) at the first turn and then goes back from \(\eta '\) to \(-\eta \) at the second turn, forming a contractible segment, in contradiction with R4. \(\square \)

In effect, these two lemmas validate the constructive definition of parallelness D7 and point at an alternative form of the axiom A3\(_n\): If two locations \(\sigma _1\) and \(\sigma _2\) are aligned along \(\eta \), then any two alignments \(\ell _1\) and \(\ell _2\) directed through \(\sigma _1\) and \(\sigma _2\) by a \(\eta '\ne \eta \) are parallel.

The foregoing discussion suggests that the spatial framework represented by the place cells and the head direction cells forms neither a naïve discretization of the Euclidean plane nor a conventional finite geometry, as defined by the standard A-axioms. Rather, combining the location and the direction information can be used to capture a certain sub-collection of geometric arrangements, e.g., a particular set of alignments, which may then be used for navigation and geometric planning (Valerio and Taube 2012; McNaughton et al. 2006). Correspondingly, orientation learning can be interpreted as a process of establishing and expanding such arrangements (e.g., prolonging shorter alignments, completing partial ones, etc.) and accumulating them in the cognitive map.

4 Synthesizing cognitive geometry

As a basic example of a geometric map learning, consider an oriented trajectory \(\zeta (t)\) that starts with an alignment \(\ell _1=\{\sigma _0,\sigma _1|\eta _1\}\), followed by a yaw at \(\sigma _1\), and continues along \(\ell _2= \{\sigma _1,\sigma _2|\eta _2\}\), reaching \(\sigma _2\) at the moment \(t_2\) (Fig. 5A). As in Sec. 2, the head and the motion directions are identified for simplicity. If \(\sigma _0\), \(\sigma _1\) and \(\sigma _2\) are the only locations in the emerging affine map \({\mathscr {A}}(t_2)\), then \(\sigma _2\) is adjacent to \(\sigma _0\) and hence it must align with \(\sigma _0\) along a certain \(\eta \)-direction \(\eta _{20}\) (assuming a generic case, in which \(\ell _1\) and \(\ell _2\) are nonparallel, \(\eta _1\ne \pm \eta _2\)). Representing this alignment in the parahippocampal network, i.e., producing the corresponding imprints in the synaptic architecture via plasticity mechanisms (Leuner and Gould 2010; Caroni et al. 2012; Brown and O. 2020), requires actualization by igniting \(\sigma _2\) and \(\sigma _0\) consecutively during the activity of a particular \(\eta _{20}\). This can be achieved either by navigating between the corresponding \(\sigma \)-fields or off-line, via autonomous network activity. In the former case, the connection \(\ell _{20}=\{\sigma _2,\sigma _0|\eta _{20}\}\) is incorporated into the map after the animal arrives to \(\sigma _0\) from \(\sigma _2\), i.e., at the “empirical learning" timescale discussed in Section 2. In the latter case, \(\ell _{20}\) may form at the spontaneous spiking activity timescale (milliseconds (Wu and Foster 2014; Karlsson and Frank 2009; Ólafsdóttir et al. 2018; Ji and Wilson 2007; Louie and Wilson 2001; Pfeiffer and Foster 2013; Johnson and Redish 2007; Dragoi and Tonegawa 2011)), as soon as the animal reaches \(\sigma _2\), which clearly accelerates the formation of the cognitive map.

This illustrates the model’s general approach: although the geometric constructions were discussed in Section 3 in reference to spiking produced during the animal’s movements, they also apply to endogenous spiking activity. In other words, the G-rules can be used “imperatively," for producing geometric structures in the cognitive map autonomously, based on available information rather than physical navigation. In particular, preplays can be used for aligning locations with specific \(\eta \)-assemblies by preplaying straight “home runs,” as soon as the physical trajectory assumes a suitable configuration.

The physiological processes that enforce transitions of activity between cell assemblies are currently studied both experimentally and theoretically (Harris 2005; Buzsaki 2010; Laurens and Angelaki 2018); in case of the head direction and place cells, the corresponding network computations may be guided by sensory (e.g., visual) and idiothetic (proprioceptive, vestibular and motor) inputs and involve a variety neurophysiological mechanisms (Haggerty and Ji 2015; Knierim et al. 1998; Chen et al. 2013; Zhang et al. 2014; Laurens and Angelaki 2018). However, the principles of utilizing such mechanisms for acquiring a map of orientations can be illustrated using basic, self-contained algorithms that rely on the information provided by the hippocampal and head direction spiking. Specifically, the history of the \(\eta \)-assemblies’ ignitions allows estimating the direction between the loci of a polygonal chain according to

$$\begin{aligned} \Delta \varphi _{ij}=\frac{1}{N}\sum _{k=i}^j \varphi _k n_k, \end{aligned}$$

where \(n_k\) is the number of spikes produced by the \(k^{\text {th}}\) head direction assembly \(\eta _k\), \(\varphi _k\) is the corresponding angle (i.e., \(\eta _k=\pi _{\eta }(\zeta _k)\) and \(\varphi _k=f_{\eta }(\eta _k)\)), N is the total number of spikes. If \(\eta _k\) is characterized by a Poisson firing rate \(\mu _k\), then the number of spikes that it produces over an ignition period \(\Delta t_k\) can be estimated as \(n_k=\mu _k \Delta t_k\). Assuming for simplicity that all rates are the same \(\mu _k=\mu \), the angular shifts can be estimated from the individual ignitions’ duration and the total navigation time T,

$$\begin{aligned} \Delta \varphi _{ij}=\frac{1}{T}\sum _{k=i}^j \varphi _k \Delta t_k. \end{aligned}$$
(11)

The \(\eta \)-simplex required to perform a home run from \(\sigma _j\) to \(\sigma _i\) can then be selected as the one whose discrete angle is closest to \(\varphi _j=\varphi _i+\Delta \varphi _{ij}\), i.e.,

$$\begin{aligned} \eta _j=\min _{\eta }\left( \varphi _j-f_{\eta }(\eta )\right) . \end{aligned}$$
(12)

In particular, (11) and (12) allow estimating the required direction from \(\sigma _2\) to \(\sigma _0\) and thus identifying the simplex \(\eta _{20}\) that needs to direct the corresponding home run preplay \(\ell _{20}\). Other models can be built by modifying or altering these rules.

The next move continues along \(\ell _3=\{\sigma _2,\sigma _3|\eta _3\}\), arriving to \(\sigma _3\) at the moment \(t_3\), which allows preplaying connections to previously visited locations along \(\ell _{31}\) and \(\ell _{30}\) in the map \({\mathscr {A}}_{{\mathcal {C}}}(t_3)\) (Fig. 5B). If \(\zeta (t)\) is a right turn (\(\eta _1<\eta _2<\eta _3\)), then the line \(\ell _{31}\) lays between \(\ell _{30}\) and \(\ell _{3}\), and, according to G3, overlaps with \(\ell _{20}\) at \({\bar{\sigma }}_1\), which will thus lay between \(\sigma _0\) and \(\sigma _2\), \(\ell _{31} =\{\sigma _3, {\bar{\sigma }}_1,\sigma _1|\eta _{31}\}\). Also, since \(\ell _3\) and \(\ell _1\) are non-parallel, they produce an overlap at \({\bar{\sigma }}_2\) that extends the “seed alignments" \(\ell _1(t_2)\) and \(\ell _3(t_2)\) to \(\ell _1(t_3) = \{\sigma _0,\sigma _1,{\bar{\sigma }}_2|\eta _1\}\) and \(\ell _3(t_3)=\{{\bar{\sigma }}_2,\sigma _2,\sigma _3|\eta _3\}\). The locations within the alignments \(\ell _1\) and \(\ell _3\) are ordered correspondingly, e.g., \(\sigma _1\) falls between \(\sigma _0\) and \({\bar{\sigma }}_2\), and \(\sigma _2\) falls between \({\bar{\sigma }}_2\) and \(\sigma _3\).

Note that since \({\bar{\sigma }}_1\) and \({\bar{\sigma }}_2\) can be viewed as adjacent, it is also possible to form an additional alignment \(\ell _x=\{{\bar{\sigma }}_1,{\bar{\sigma }}_2|\eta _x\}\), which induces two additional locations by intersecting \(\ell _{30}\) and \(\ell _{12}\) (Fig. 5C). However, the orientations of the existing segments of the trajectory do not determine the direction \(\eta _x\), and \(\ell _x\) can therefore be viewed as a “provisional" alignment that may be actualized once the explicit information specifying its orientation emerges. Nevertheless, such alignments and the incidences that they induce may be incorporated into the hippocampal map, to accelerate its topological dynamics.

As the turn continues, the next segment connects to \(\sigma _4\) along \(l_4=\{\sigma _3,\sigma _4|\eta _4\}\), allowing home run preplays \(\ell _{40}\), \(\ell _{41}\), \(\ell _{42}\), which produce additional intersections, augmenting the lines \(\ell _{30}\), \(\ell _{31}\) and \(\ell _{43}\) in specific order (Fig. 5D). Subsequent segments of the trajectory can generate ever larger sets of locations and alignments but the map learning process can be terminated when the map \({\mathscr {A}}_{{\mathcal {C}}}(t_n)\) stabilizes topologically (see below). At each step, the acquired collection of alignments embedded into the unfolding cognitive map sustains its ongoing geometric structure.

Fig. 5
figure 5

Aligning the cognitive map. A The endpoints of the initial two segments of the trajectory are connected by a home run preplay \(\ell _{20}\) (dashed line). B Reaching the next location, \(\sigma _3\), allows preplaying home runs to \(\sigma _0\) and \(\sigma _1\) and introducing the intersections \({\bar{\sigma }}_1\) and \({\bar{\sigma }}_2\) into the map. C The direction of the alignment connecting the new points \({\bar{\sigma }}_1\) and \({\bar{\sigma }}_2\) remain undefined, so \(\ell _x=\{{\bar{\sigma }}_1,{\bar{\sigma }}_2|\eta _x\}\) and may thus be viewed as provisional (topological) alignment in \({\mathscr {A}}_{{\mathcal {C}}}(t_3)\). D The location \(\sigma _4\) induces at several additional preplays to previously visited locations. E At each step \(t_n\), the adjacent segments of the trajectory, induce a connectivity graph \({\mathcal {G}}_{\sigma }(t_n)\), and the corresponding clique complex \({\mathcal {T}}_{\sigma }^{\ell }({\mathcal {G}}_{\sigma })\) schematically represents the topological structure of the aligned map \({\mathscr {A}}_{{\mathcal {C}}}(t_n)\). F The decays of the cell assemblies representing the unvisited locations (shaded areas) induces the required topological dynamics

Other alignments may be produced by more complex relationships within the existing configurations and their maps, as suggested, e.g., by Desargues or Pappus theorems. However, in finite planes these relationships may not be necessitated by the incidence axioms and require additional properties and implementing mechanisms (Hilbert 1992; Hilbert and Cohn-Vossen 1999; Batten 1997; Karteszi 1976). This scope of questions falls beyond this discussion and will be addressed elsewhere.

Topological quantification of geometric learning. The assumption of the model is that the influx of endogenously generated \(\sigma \)- and \(\zeta \)-simplexes accelerates the emergence of an aligned cognitive map with the correct topological shape. Testing this hypothesis requires computing the persistent homologies of the corresponding aligned complexes \({\mathcal {T}}_{\sigma }^{\ell }(t)\) and \({\mathcal {T}}_{\zeta }^{\ell }(t)\); however, the algorithm described above produces the locations \(\sigma _i\) and their appearance times \(t_i\) without specifying cells that comprise a given simplex or detailing how these cells are shared between simplexes, which is required for the homological computations.

To extract the needed information, consider a graph \({\mathcal {G}}_{\sigma }\) whose links correspond to the adjacent simplexes, i.e., vertexes \(v_i,v_j\in {\mathcal {G}}_{\sigma }\) are connected if . If each \(\sigma _i\) acts as an assembly, i.e., ignites when all of its vertex-cells (3) activate and if the adjacent simplexes share vertexes, i.e., (required for spatiotemporal contiguity, see Babichev and Dabaghian (2018)), then each \({\mathcal {G}}_{\sigma }\)-link marks at least one putative cell \(c_k\) shared by \(\sigma _i\) and \(\sigma _j\). In a conservative estimate (assuming, e.g., no “redundant" cells that manifest themselves within just one assembly), the set of \({\mathcal {G}}_{\sigma }\)-links terminating at a given vertex \(\sigma \) thus defines the neuronal decomposition (3) of the corresponding simplex. Same analyses allow restoring neuronal decompositions for \(\eta \)-simplexes and constructing the \(\zeta \)-simplexes, thus producing cliques simplicial complexes \({\mathcal {T}}_{\sigma }^{\ell }(t)\), \({\mathcal {T}}_{\eta }^{\ell }(t)\) and \({\mathcal {T}}_{\zeta }^{\ell }(t)\).

If, according to the requirement R1, the resulting \(\sigma \)- and \(\eta \)-fields cover their respective representing spaces \({\mathcal {E}}\) and \(S^1\), then the \(\zeta \)-fields cover the orientation space \({\mathcal {O}}= {\mathcal {E}}\times S^1\), and the nerves associated with these covers, along with their temporal representations, \({\mathcal {T}}_{\sigma }^{\ell }(t)\) and \({\mathcal {T}}_{\zeta }^{\ell }(t)\), should have the required topological properties. However, this argument has a principal caveat: some locations induced through endogenous network activity may correspond to physically inaccessible domains in \({\mathcal {E}}\), which may divert the evolution of the resulting coactivity complex from the topology of the place field nerve of the navigated environment. Simulations show that indeed, the “autonomously constructed" complex \({\mathcal {T}}_{\sigma }^{\ell }(t)\) tends to acquire a trivial shape (\(b_{n>0}({\mathcal {T}}_{\sigma }^{\ell })=0\)) irrespective of the shape of the underlying \({\mathcal {E}}\).

A solution to this problem may be based on exploring functional differences between place cell combinations \({\dot{\sigma }}_i\) that represent “physically allowed" locations and the combinations \(\acute{\sigma }_k\) that represent “physically prohibited" regions. One would expect that in a confined environment, the former kind of cell groups should reactivate regularly due to animal’s (re)visits, whereas the latter kind is never “validated" through actual exploration—\(\acute{\sigma }_k\)s may activate only during the occasional preplays or replays. Taking advantage of this difference, let us assume that cell assemblies have a finite lifetimes (Buzsaki 2010; Harris 2005), i.e., that 1) the probability of an assembly’s disappearance after an inactivity period \(t_{\sigma }\) is

$$\begin{aligned} p_{\sigma }\simeq e^{-t_{\sigma }/\tau _{\sigma }}, \end{aligned}$$

where \(\tau _{\sigma }\) is \(\sigma \)’s mean decay period, and 2) that the decay process resets (\(t_{\sigma }=0\)) after each reactivation of \(\sigma \) (for some physiological motivations and references see Babichev et al. (2018, 2019)).

To emphasize the contribution of the locations imprinted into the network structure due to physical activity over the computationally induced locations, the latter may be attributed with a shorter decay period, \(\tau _{ \acute{\sigma }}=\tau \ll T_{\min }^{\sigma }\), whereas the former may be treated as semi-stable \(\tau _{\dot{ \sigma }}\gg \tau _{\acute{\sigma }}\), e.g., for basic estimates, one can use \(\tau _{{\dot{\sigma }}}=\infty \). Lastly, the transition between \(\acute{\sigma }\)s and \({\dot{\sigma }}\)s is modeled by stabilizing the decaying assemblies upon validation, i.e.,

$$\begin{aligned} \tau _{\sigma } = {\left\{ \begin{array}{ll} \tau _{\acute{\sigma }}=\tau &{} \text{ before } \text{ animal } \text{ visits } \upsilon _{\sigma }, \\ \tau _{{\dot{\sigma }}}=\infty &{} \text{ after } \text{ animal } \text{ visits } \upsilon _{\sigma }. \end{array}\right. } \end{aligned}$$

With this plasticity rule, physically permitted locations \({\dot{\sigma }}\) should maintain their presence in the map, whereas the prohibited locations \(\acute{\sigma }\) should decay, revealing the physical shape of the environment (Fig. 5E).

To verify this approach, the semi-random foraging trajectory simulated in Section 2 was replaced with a polygonal chain trajectory consisting of straight moves and random yaws. The preplays were then modeled by injecting straight alignments into the coactivity graph as soon as the required information became available (for details see Babichev et al. (2019)). Based on the results of Babichev et al. (2018, 2019), the decay rate \(\tau =0.5\) secs was selected to model the dynamics of the unstable locations.

For these parameters, the homological characteristics of the resulting “flickering" coactivity complex evaluated using ZigZag Homology techniques (Carlsson and Silva 2010; Carlsson et al. 2009; Edelsbrunner et al. 2002), quickly became stable: the Betti numbers stabilized at \(b_{n\le 1}({\mathcal {T}}_{\zeta }^{\ell })=1\), \(b_{n>1}({\mathcal {T}}_{\zeta }^{\ell })=0\), in \(T_{\min }^{\zeta }\approx 5\) minutes, which approximately matches the hippocampal learning time \(T_{\min }^{\sigma }\) and demonstrates that geometric organization of the cognitive map brings learning dynamics to the biologically viable timescale.

5 Discussion

The proposed models of orientation learning are built by combining inputs from the hippocampal place cells and the head directions cells. Experiments demonstrate that these two populations of neurons are coupled: in slowly deforming environments, their spiking activities remain highly correlated, pointing at a unified cognitive spatial framework that involves both locations and orientations (Knierim et al. 1995; Yoganarasimha and Knierim 2005; Hargreaves et al. 2007; Sargolini et al. 2006). The goal of this study is to combine topological and geometric approaches to model such a framework, and to evaluate the corresponding learning dynamics.

The first model (Sect. 2) is based on the observation that both the hippocampal and the head direction maps are of a topological nature: while the place cells encode a qualitative, elastic map of the navigated environment \({\mathcal {E}}\) (Gothard et al. 1996; Alvernhe et al. 2008, 2011, 2012; Dabaghian et al. 2014; Wu and Foster 2014), the head direction cells map the space of directions, \(S^1\) (Taube 1998). A combination of place and head direction cells’ inputs can hence be used to construct an extended topological map of oriented locations \({\mathcal {O}}\), which has a structure of a direct product \({\mathcal {E}}\times S^1\)—a natural framework for describing the kinematics of rats’ movements.

The second model (Sect. 3) is structurally similar (a discrete map of directions is associated with each location), but involves constructions that define an additional, geometric layer of the cognitive map’s architecture. In particular, this model allows viewing spatial orientation learning from a geometric perspective—not only as a process of discovering connections between locations, but also establishing shapes of location arrangements, e.g., straight or turning paths, their incidences, intersections, junctions, etc. In neuroscience literature, such references are commonly made in relation to the physical geometry of the representing spaces \({\mathcal {E}}\) and \(S^1\), e.g., the “straightness" of a \(\sigma \)-field arrangement implies simply that it can be matched by a Euclidean line in the environment where the rat is observed (Valerio and Taube 2012; McNaughton et al. 2006). However, understanding the geometric structure of the cognitive map requires interpreting neuronal activity in systems’ own terms, rather than through the parameters of exterior geometry.

The key observation underlying the geometric model is that the activity of head direction cells “tags” the activity of place cells in a way that allows an intrinsic geometric interpretation of the combined spiking patterns, i.e., defining alignments, turns, yaws, etc., in terms of neuronal spiking parameters. A famous quote attributed to D. Hilbert proclaims that “the axioms of geometry would be just as valid if one replaced the undefined terms ‘point, line, and plane’ with ‘table, chair, and beer mug’..." (Blumenthal 1935). From such perspective, this model aims at constructing a synthetic “location and compass" neuro-geometry in terms of the temporal relationships between the spike trains, without using extrinsic references or ad hoc measures, which may be a general principle for how space and geometry emerge from neuronal activity.

In order to emphasize connections with conventional geometries, the model is formulated in a semi-axiomatic form. However, in contrast with the standard affine A-axioms or their direct analogues, the A\(_n\)-axioms, the rules G1G3 serve not just as formal assertions that lay logical foundations for geometric deductions, but also as reflections of physiological properties of the networks that implement the computations. First, since the networks contain a finite number of neurons and may actualize a finite set of locations and alignments, the emergent geometry is finitary. Second, certain notions that in standard discrete affine plane \({\mathscr {A}}\) are introduced indirectly, relationally, become constructive in the “cognitive" affine plane. For example, directions defined through equivalence classes of parallel lines in \({\mathscr {A}}\) (Hilbert 1992; Hilbert and Cohn-Vossen 1999; Batten 1997; Karteszi 1976), are defined explicitly in \({\mathscr {A}}_{{\mathcal {C}}}\) using the directing \(\eta \)-activities. Third, certain elements of the geometric structure are actualized explicitly through the network’s architecture, e.g., a fixed number of alignments passing through every location is implemented by cell assemblies wired into the head direction network (Bassett et al. 2018; Redish et al. 1996). Other properties are not prewired but acquired during a particular learning experience and reflect both the physical structure of a specific environment and intrinsic mechanisms of spatial information processing.

6 Appendix: Spatial learning

Spatial learning in mammals is a complex, distributed process, sustained by coherent effort of many strongly interconnected brain structures, which jointly yield an internalized, coherent, cognitively accessible representation of a physical environment—a cognitive map (Grieves and Jeffery 2017; Moser et al. 2008; Derdikman and Moser 2011; McNaughton 1996; Lisman et al. 2017). A key role in this process is played by hippocampus—evolutionarily one of the oldest brain parts, that is critical for rapid pattern encoding and erasure, storing conjunctive associations between stimuli, cortical representations, etc. (Kim and Frank 2009; Madroñal et al. 2016; Kragel et al. 2020[103] Cheng 2013; Zhang and Manahan-Vaughan 2015; Poulter et al. 2018).

A key property that links hippocampal principal neurons to spatial learning is spatial selectivity of their spiking: each cell fires in its preferred location that is largely independent of the animal’s behavior, body or head orientation, movement direction, etc. (O’Keefe and Nadel 1978; O’Keefe and Dostrovsky 1971; Derdikman and Moser 2011; Grieves and Jeffery 2017; Best and White 1998; Moser et al. 2008; McNaughton 1996; Lisman et al. 2017). Spatial layout of the firing fields hence controls the order of the hippocampal neurons’ activity and is therefore commonly viewed as the main correlate of the cognitive map (Frank et al. 2000; Guger et al. 2011; Brown et al. 1998; Jensen and Lisman 2000; Zhang et al. 1998; Huang et al. 2009), although the exact link between the two remains opaque Vorhees and Williams (2014). A common (and historically oldest) approach views spatial learning as tuning the individual cells to their respective firing fields. Once such tuning is complete for most cells in the ensemble (for rats’ place fields this takes about four minutes Frank et al. 2000), it is presumed that a large-scale hippocampal map has emerged (Frank et al. 2000; Wilson and McNaughton 1993; Wills et al. 2010). Further learning is tied to slower information flow from hippocampus to cortex and back—a multifaceted process happening at several timescales, that depends on specific experiences, number of exposures, behavioral control, modality, synaptic mechanisms, etc. (Rothschild et al. 2017; Weber and Sprekeler 2018; Rolls 2018; Michelmann et al. 2021).

Analyses of these phenomena are based on interpreting population activity (Wilson and McNaughton 1993; Mau et al. 2020; Zhang et al. 1998; Pouget et al. 2000), and building specific spatial representations from spiking data (Savelli and Knierim 2019; Dabaghian 2021; Kang et al. 2021; Gluck et al. 2003). However, the principles that could guide or constrain such constructions remain controversial. For example, the shapes and the locations of place fields can be affected by visual, olfactory, vestibular, kinesthetic, and other cues as well as more subtle cognitive aspects of navigation, e.g., the animal’s goals and discrepancies between the expected and actual location of navigational targets (Wood et al. 2000; Butler et al. 2019; Chen et al. 2013; Erdem and Hasselmo 2012; Kragel et al. 2020; Ji and Wilson 2007; Rothschild et al. 2017). It is hence unclear which part of this information is embedded in the place cell spiking and transmitted to downstream neurons, along with the consequences for the type of spatial properties that might form the basis for the cognitive map.

The dominant assumption within the field has been that the hippocampal map incorporates detailed geometric information arising through proprioceptive and sensory cues (Solomon et al. 2019; Stella et al. 2013; Terrazas et al. 2005; Moser and Moser 2008). However, a growing volume of experimental results suggest that hippocampal map is topological in nature, providing a schematic representation of space, akin to a subway-map (Alvernhe et al. 2008, 2011, 2012; Gothard et al. 1996; Dabaghian et al. 2014; Place and Nitz 2020; Krupic et al. 2018; Chen et al. 2014, 2012). From a biological standpoint, such maps may be viewed as rough-and-ready frameworks into which geometric details could be situated over time (Chen et al. 2013; Erdem and Hasselmo 2012; Yoder et al. 2011; Knierim et al. 1995, 1998; Jercog et al. 2019). Hippocampal ability to acquire and store conjunctive associations allows coupling the outputs of the animal’s directional system, notably head direction cells, with hippocampal connectivity map (Zhang 1996; Zugaro et al. 2003; Hargreaves et al. 2007).

Since many specifics of this process remain unknown, modeling may be based on describing the structure of the information flow itself, without detailing the mechanisms that may produce or process the contributing spiking activity. The topological nature of the cognitive map suggests using topological analyses, notably persistent and zigzag homology methods that allow assessing the map’s topological dynamics (Chen et al. 2014, 2012; Dabaghian et al. 2012; Kang et al. 2021), taking into account a wide scope of physiological phenomena—brain waves (Arai et al. 2014; Basso et al. 2016; Hoffman et al. 2016), synaptic imperfections Dabaghian (2018), plasticity (Babichev et al. 2018, 2019), internal dynamics (replays and preplays) (Babichev et al. 2019; Wu and Foster 2014; Ólafsdóttir et al. 2018), etc. (Dabaghian 2021). The proposed model aims to extend this approach to address a long standing problem: how complementary inputs (topological, geometrical or non-spatial) provided by different brain parts may combine into a full representation of the environment (Wood et al. 2000; van der Veldt et al. 2021; Sargolini et al. 2006; O’Reilly and McClelland 1994; Komorowski et al. 2009; Eichenbaum 2004).

7 Methods

The computational algorithms used in this study were described in (Dabaghian et al. 2012; Arai et al. 2014; Basso et al. 2016; Hoffman et al. 2016; Babichev et al. 2016; Babichev and Dabaghian 2018; Babichev et al. 2016, 2018, 2019).

The environment shown on Fig. 1A is similar to the arenas used in electrophysiological experiments (Hafting et al. 2005)[137]. The simulated trajectory represents exploratory spatial behavior that does not favor one segment of the environment over another.

Place cell spiking probability was modeled as a Poisson process with the rate

$$\begin{aligned} \lambda (r)=f e^{-\frac{(r-r_0)^2}{2s^2}}, \end{aligned}$$

where f is the maximal rate and s defines the size of the firing field centered at \(r_0 = (x_0, y_0)\)Barbieri et al. (2004). In addition, spiking probability was modulated by the \(\theta \)-waves, which also define the temporal window \(w \approx 250\) ms (about two \(\theta \)-periods) for detecting the place cell spiking coactivity (Arai et al. 2014; Mizuseki et al. 2009). The place field centers \(r_0\) for each computed place field map were randomly and uniformly scattered over the environment .

Persistent Homology Theory computations were performed using Javaplex computational software (Adams et al. 2014) as described in Dabaghian et al. (2012); Arai et al. (2014); Basso et al. (2016); Hoffman et al. (2016); Babichev et al. (2016). Usage of zigzag persistent homology methods is described in Babichev et al. (2018, 2019).