XIMENA FERNANDEZ
Durham University
UK Centre for Topological Data Analysis
Brain Modelling Seminar - Oxford University
Let $X$ be a topological space and let $\mathbb{X}_n = \{x_1,...,x_n\}$ be a finite sample of $X$.
Q: How to infer topological properties of $X$ from $\mathbb{X}_n$?
Let $X$ be a topological space and let $\mathbb{X}_n = \{x_1,...,x_n\}$ be a finite sample of $X$.
Q: How to infer topological properties of $X$ from $\mathbb{X}_n$?
Point cloud
$\mathbb{X}_n \subset \mathbb{R}^D$
For $\epsilon>0$, the $\epsilon$-thickening of $\mathbb{X}_n$: \[\displaystyle U_\epsilon = \bigcup_{x\in \mathbb{X}_n}B_{\epsilon}(x)\]
Theorem (Niyogi, Smale & Weinberger, 2008). Given $\mathcal{M}$ a compact submanifold of $\mathbb{R}^D$ of dimension $k$ and $\mathbb{X}_n$ a set of i.i.d. $n$ points drawn according to the uniform probability measure on $\mathcal{M}$, then $$ U_\epsilon \simeq \mathcal{M}$$ with probability $>1-\delta$ if $0<\epsilon< \frac{\tau_\mathcal{M}}{2}$ and $n> \beta_1 \left(\log(\beta_2)+\log\left(\frac{1}{\delta}\right)\right)$.*
*Here $\beta_1=\frac{\mathrm{vol}(\mathcal{M})}{cos^k(\theta_1) \mathrm{vol(B^k_{\epsilon/4})}}$, $\beta_2=\frac{\mathrm{vol}(\mathcal{M})}{\cos^k(\theta_2)\mathrm{vol}(B^k_{\epsilon/8})}$ and $\theta_1=\arcsin\left(\frac{\epsilon}{8\tau_\mathcal M}\right),$ $\theta_2=\arcsin\left(\frac{\epsilon}{16\tau_\mathcal M}\right)$.
Let $X$ be a topological space and let $\mathbb{X}_n = \{x_1,...,x_n\}$ be a finite sample of $X$.
Q: How to infer topological properties of $X$ from $\mathbb{X}_n$?
Point cloud
$\mathbb{X}_n \subset \mathbb{R}^D$
Evolving thickenings
Let $X$ be a topological space and let $\mathbb{X}_n = \{x_1,...,x_n\}$ be a finite sample of $X$.
Q: How to infer topological properties of $X$ from $\mathbb{X}_n$?
Point cloud
$\mathbb{X}_n \subset \mathbb{R}^D$
Evolving thickenings
Filtration of simplicial complexes
Let $X$ be a topological space and let $\mathbb{X}_n = \{x_1,...,x_n\}$ be a finite sample of $X$.
Q: How to infer topological properties of $X$ from $\mathbb{X}_n$?
Point cloud
$\mathbb{X}_n \subset \mathbb{R}^D$
Filtration of simplicial complexes
Persistence diagram
The Emergence of Grid Cells: Intelligent Design or Just Adaptation?
Emilio Kropff and Alessandro Treves. Hippocampus (2008)
The Emergence of Grid Cells: Intelligent Design or Just Adaptation?
Emilio Kropff and Alessandro Treves. Hippocampus (2008)
Feedforward network dynamics.
The total field received by grid cell $i$ at time $t$ is \[h_i(t) = \sum_{j=1}^{N_{I}}W^I_{ij}(t)r_j^I(t) + \sum_{k=1}^{N_{EC}}W^{EC}_{ik}r_k^{EC}(t) \]
The total field received by grid cell $i$ at time $t$ is \[h_i(t) = \sum_{j=1}^{N_{I}}W^I_{ij}(t)r_j^I(t) + \sum_{k=1}^{N_{EC}}W^{EC}_{ik}r_k^{EC}(t) \]
It is updated according to the Hebbian learning rule \[W_{ij}^I(t+1) = W_{ij}^I(t) + \epsilon \left( r_j^I(t)r_i^{EC}(t)-\overline{r_j^I}(t)\overline{r_i^{EC}}(t)\right)\] where $\epsilon$ is a learning parameter and $\overline{\bullet}(t)$ means the exponential moving average at time $t$.
The total field received by grid cell $i$ at time $t$ is \[h_i(t) = \sum_{j=1}^{N_{I}}W^I_{ij}(t)r_j^I(t) + \sum_{k=1}^{N_{EC}}W^{EC}_{ik}r_k^{EC}(t) \]
It is determined by the position of the individual in the space.
The total field received by grid cell $i$ at time $t$ is \[h_i(t) = \sum_{j=1}^{N_{I}}W^I_{ij}(t)r_j^I(t) + \sum_{k=1}^{N_{EC}}W^{EC}_{ik}r_k^{EC}(t) \]
It is fixed according to the architecture of the connectivity.
The total field received by grid cell $i$ at time $t$ is \[h_i(t) = \sum_{j=1}^{N_{I}}W^I_{ij}(t)r_j^I(t) + \sum_{k=1}^{N_{EC}}W^{EC}_{ik}r_k^{EC}(t) \]
It is updated as \[r_i^{EC} (t+1) = G\frac{|h_i^{\mathrm{act}}(t) -T|_{>0}}{{\left(|h_\bullet^{\mathrm{act}}(t)-T|_{>0}\right)}_{\mathrm{avg}}}\] for a gain parameter $G$, a threshold $T$ representing inhibition and internal variables $h_i^{\mathrm{act}}(t)$ and $h_i^{\mathrm{inact}}(t)$ mimicking adaptation or fatigue within the neuron \begin{align*} h_i^{\mathrm{act}}(t+1) &= h_i(t)-h_i^{\mathrm{inact}}(t),\\ h_i^{\mathrm{inact}}(t+1) &= h_i^{\mathrm{inact}} + \beta h_i^{\mathrm{act}}(t)\\ \end{align*} for some parameter $\beta$.
Experiment: Given a square track and a rat moving freely in the environment, we simulated the simultaneous activity of $N_{mEC}$ grid cells at each point $x$ in the arena for a period of time. For a discretization of the environment in $M$ bins and average over time of the spike rate, we obtained a point cloud of $M$ points in $\mathbb R^{N_{mEC}}$.
Toroidal topology of population activity in grid cells (2022)
Gardner R, Hermansen E, Pachitariu M, Burak Y, N, Dunn B, Moser M B, Moser E. Nature.
Modeled grid cells
aligned by a flexible attractor. (2022)
Sabrina Benas, Ximena Fernandez and Emilio Kropff. bioRxiv 2022.06.13.495956.
2D connectivity
$\bullet$ Gardner R, Hermansen E, Pachitariu M, Burak Y, N, Dunn B, Moser M B, Moser E. Toroidal topology of population activity in grid cells Nature. (2022)
$\bullet$ Guanella A, Kiper D, Verschure P. A model of grid cells based on a twisted torus topology. Int J Neural Syst. 2007 Aug; 17 (4):231-40.
1D connectivity
No connectivity
2D connectivity
1D connectivity
No connectivity
2D connectivity
1D connectivity
No connectivity
Theorem (Classification of closed surfaces). Let $\mathcal M$ be a compact manifold of dimension 2 without boundary. Let $\chi = b_0-b_1 + b_2$ be the Euler characteristic of $\mathcal M$. There are two cases:
- If $\mathcal M$ is orientable, then it is homeomorphic to a connected sum of $1-\chi/2$ torii.
- If $\mathcal M$ is non-orientable, then it is homeomorphic to a connected sum of $2-\chi$ projective planes.
Theorem (Classification of closed surfaces). Let $\mathcal M$ be a compact manifold of dimension 2 without boundary. Let $\chi = b_0-b_1 + b_2$ be the Euler characteristic of $\mathcal M$. There are two cases:
- If $\mathcal M$ is orientable, then it is homeomorphic to a connected sum of $1-\chi/2$ torii.
- If $\mathcal M$ is non-orientable, then it is homeomorphic to a connected sum of $2-\chi$ projective planes.
This result provides a method to univocally determine the homeomorphism type of the geometric structure subjacent in data, provided it is an instance of a closed surface. It is enough to compute (or infer) the following finite list of invariant properties:
a. Smoothed density and Frechet mean across simulations of persistence diagrams with coefficients in $\mathbb{Z}_2$, for 1D (top) and 2D (bottom) connectivity condition. b. As a. but with coefficients in $\mathbb{Z}_3$. c. Distribution of the difference between lifetime of consecutive generators for each simulation (ordered from longest to shortest lifetime) for 1D (left) and 2D (right) connectivity. d. Pie plot and table indicating the number of simulations (out of 100 in each condition) classified according to their Betti numbers.
a. Distribution of the fraction of the population data with local dimensionality equal to 2, for every connectivity condition. b. Distribution of local dimensionality across physical space in representative examples of 1D and 2D conditions. c. Average distribution of local dimensionality for all conditions (same color code as in b.) d-f. As a-c but exploring deviations of the local homology $H_1$ from a value equal to 1, the value expected away from boundary points and singularities.
Source data: Toronto Western Hospital, Canada. Provided by Diego Mateos.
In theory, we assume we have a global continuous time dynamical system $(\mathcal{M}, \phi)$ with $\mathcal{M}$ a topological space and $\phi \colon \mathbb{R} \times \mathcal{M} \to \mathcal{M}$ a continuous map such that $\phi(0, p) = p$ and $\phi(s, \phi(π‘, π)) = \phi(s + t, p)$ for all $p \in \mathcal{M}$ and all $t, s \in \mathbb{R}$.
In theory, we assume we have a global continuous time dynamical system $(\mathcal{M}, \phi)$ with $\mathcal{M}$ a topological space and $\phi \colon \mathbb{R} \times \mathcal{M} \to \mathcal{M}$ a continuous map such that $\phi(0, p) = p$ and $\phi(s, \phi(π‘, π)) = \phi(s + t, p)$ for all $p \in \mathcal{M}$ and all $t, s \in \mathbb{R}$.
In practice, we only have measurements that are the result of an observation function $F:X\to \mathbb R$ and an initial state $x_0\in X$ that produces a time series \begin{align}\varphi_p:\mathbb{R}&\to \mathbb{R}\\ t&\mapsto F(\phi_t(x_0)) \end{align}
In theory, we assume we have a global continuous time dynamical system $(\mathcal{M}, \phi)$ with $\mathcal{M}$ a topological space and $\phi \colon \mathbb{R} \times \mathcal{M} \to \mathcal{M}$ a continuous map such that $\phi(0, p) = p$ and $\phi(s, \phi(π‘, π)) = \phi(s + t, p)$ for all $p \in \mathcal{M}$ and all $t, s \in \mathbb{R}$.
In practice, we only have measurements that are the result of an observation function $F:X\to \mathbb R$ and an initial state $x_0\in X$ that produces a time series \begin{align}\varphi_p:\mathbb{R}&\to \mathbb{R}\\ t&\mapsto F(\phi_t(x_0)) \end{align}
We can topologically reconstruct the attractor from the observation.
In practice, we only have measurements that are the result of an observation function $F:X\to \mathbb R$ and an initial state $x_0\in X$ that produces a time series \begin{align}\varphi_{x_0}:\mathbb{R}&\to \mathbb{R}\\ t&\mapsto F(\phi_t(x_0)) \end{align}
Theorem (Takens). Let $\mathcal{M}$ be a smooth, compact, Riemannian manifold. Let $\tau > 0$ be a real number and let $d β₯ 2 \mathrm{dim}(\mathcal{M})$ be an integer. Then, for generic $\phi \in C^2(\mathbb{R} \times \mathcal{M}, \mathcal{M})$ and $F\in C^2(\mathcal{M}, \mathbb{R})$ and for $\varphi_\bullet(π‘)$ defined as above, the delay map \begin{align} \varphi~ \colon & ~~\mathcal{M} &\rightarrow & ~~\mathbb{R}^{d+1}\\ &~~p &\mapsto & ~~(\varphi_p(0), \varphi_p(π), \varphi_p(2π),\dots, \varphi_p(d\tau)) \end{align} is an embedding (i.e., $\varphi$ is injective and its derivative has full-rank everywhere).
The time delay embedding of $f$ with parameters $d$ and $\tau$ is the vector-valued function \begin{align} X_{d,\tau}f\colon &~~\mathbb{R}\rightarrow ~~\mathbb{R}^{d+1}\\ &~~~t ~\mapsto ~(f(t), π(t + \tau), π(t + 2\tau), \dots, π(t + d\tau))\\ \end{align}
Given time series data $f(t) = \varphi_p(t)$ with $t\in T$ observed from a potentially unknown dynamical system $(X, \phi)$, Takensβ theorem implies that (generically) the time delay embedding $X_{d,\tau}f([0,T])$ provides a topological copy of $\{\phi(t, x_0) βΆ t \in T\} \subseteq X$.
The time delay embedding of $f$ with parameters $d$ and $\tau$ is the vector-valued function \begin{align} X_{d,\tau}f\colon &~~\mathbb{R}\rightarrow ~~\mathbb{R}^{d+1}\\ &~~~t ~\mapsto ~(f(t), π(t + \tau), π(t + 2\tau), \dots, π(t + d\tau))\\ \end{align}
Channel $\to$ Sliding Window $\to$ Takens Delay Embedding $\to$ Path of persistent diagrams $\to$ 1st Derivative