scieee AI-readable full text Open interactive document viewer

Introduction to spatio-temporal topological processes analysis

Galiana Safont, Diego

Full text

Bachelor’s Degree in Computational Mathematics Bachelor’s Degree Final Project Introduction to spatio-temporal topological processes analysis Autor: Diego Galiana Safont Mentor: Jorge Mateu Mahiques Reading Date: de de 20 Academic course 2023/2024 3 Acknowledgements Thanks to Anastasios Stefanou, who taught me at the University of Bremen what a simplex was in his ‘Introduction to Applied Algebraic Topology’ class. Although I failed his subject, I found it really interesting and challenging. Thanks to Jorge Galindo Pastor, who taught me from scratch basic concepts of topology in his subject ‘Differential Geometry and Topology’ at the Jaume I University in Castell´on. I managed with great effort to pass it but I enjoyed it a lot. Thanks to Joan Porti and Martin Campos who at the Universidad Aut´onoma de Barcelona finally made me really understand what I missed in Germany in 2022 in their subject ‘Topological Analysis of Data’ and made me fall in love with this field of study. Thanks to Jorge Mateu for being such a good tutor for my final project and helping me whenever I needed it, as well as giving me the opportunity to learn about such an interesting field as spatio-temporal analysis. I would also like to thank Jaime G´omez for providing useful ideas and recommendations. Finally, I would also like to thank all the teachers I have had in my degree for training me professionally and Vicente Felip who made me like mathematics and studying this degree. I am also very grateful for the support and patience of my family and friends throughout my university adventure. 4 Contents 1 Introduction 7 2 Spatio-Temporal Point Processes 11 2.1 Basic characteristics .................................. 11 2.2 Estimation Methods .................................. 16 2.3 Spatio-Temporal models ................................ 20 3 Persistent Homology 25 3.1 Simplicial complexes .................................. 25 3.2 Simplicial homology .................................. 30 3.3 Filtrations and persistence ............................... 34 4 Case of study: Emergency calls in Valencia 41 4.1 Presentation and context of dataset .......................... 41 4.2 Spatio-temporal analysis ................................ 46 4.3 Topological analysis .................................. 52 4.4 Conclusions ....................................... 64 5 4.5 Next Steps ....................................... 66 A Appendix I 69 6 Chapter 1 Introduction We are at a point in history where knowing, collecting, processing and analysing large amounts of data is of vital importance if we want to be better prepared for any kind of situation, whether it is a for-profit company, a country that wants to offer a better service or a person with a specific personal interest. While we now give data the importance it deserves, there is still a long way to go. While the biggest concern with data is how we can analyse more data in less time, we seem to have taken for granted that our analysis is perfect and that there is nothing more we can get. Like any science, the study of data is constantly evolving and is far from perfect or be finished. We must continue to investigate new ways of obtaining and relating data to obtain information with some kind of value. Topological data analysis focuses on the geometric structure and spatial relationships that exist between data points. This allows the capture of non-linear relationships and allows the analysis to rely on global properties or connections between points rather than local measures such as mean or standard deviation, which facilitates the interpretation of complex patterns and relationships. One of its features is that its analysis is not limited by the specific nature of the data, making it compatible with spatio-temporal data. Persistent homology studies the changes in the topological characteristics of a filtering of simplicial complexes and estimates their homology groups from a point cloud. The study of this application of algebraic topology allows us to identify robust patterns and meaningful structures under the presence of variability or noise in the data, in addition to the possibility of detecting persistent features in the data such as holes, which provides us with information about the connectivity and distribution of the data points. 7 An effective way to gain insights from data is through the visualization of persistence diagrams, as illustrated in Figure 1.1. This figure showcases three diagrams representing different stages of the data filtration process. By constructing a simplicial complex and varying a scale parameter, we capture the birth and death of topological features, such as connected components and holes. The persistence diagrams summarize these features, with the x-axis indicating birth and the y-axis indicating death. This iterative process enhances our understanding of the data’s topological structure and helps identify robust features crucial for further analysis. Spatio-temporal data have two dimensions, a spatial and a temporal component. The spatial component allows us to know the geographical distribution of the data while the temporal component permit us to track and capture changes over time. These properties are well suited to represent most real-world phenomena and allow us through the analysis of these data to understand trends, patterns and fluctuations of different phenomena, geographic variations and spatial interactions between different locations. A point process is a mathematical model used to describe and analyze random events that occur in time, space, or both. It represents a collection of points, each corresponding to an event, distributed across a given domain, such as a timeline, a spatial region, or a combination of space and time. Key characteristics of point processes include their inherent randomness, where events happen unpredictably, and their intensity, which denotes the rate at which events occur. This intensity can be constant across the domain (homogeneous process), or vary depending on location or time (inhomogeneous process). Point processes can model independent events or capture dependencies between them, making them versatile tools for studying phenomena in various fields, such as ecology, economics or criminology. The study of the shape of data is not new and has been questioned many times for its real usefulness. During this thesis we will introduce two branches of analysis, one more traditional and focused on global properties as the analysis of spatio-temporal data using point processes and one more innovative as the persistent homology analysis. Later, by means of a study of emergency call data in the city of Valencia, we will put into practice the concepts introduced and we will relate these two ways of analysing data to demonstrate the usefulness and importance of topological analysis. In recent years, Topological Data Analysis (TDA) has gained significant traction across various fields, demonstrating its versatility in uncovering hidden patterns in complex datasets. Chandola and Kumar [1] applied TDA to anomaly detection in network traffic, revealing insights that traditional methods often miss, particularly in cybersecurity contexts. Turner, Mukherjee, and Boyer [2] provided a comprehensive survey of TDA’s integration into machine learning, highlighting its role in enhancing predictive models. Meanwhile, Bubenik [3] advanced the field with his work on Persistence Landscapes, a tool that summarizes topological features across scales, proving essential in areas ranging from biology to medical imaging. 8 Exploring the relationship between Topological Data Analysis (TDA) and point processes in spatial-temporal data is a burgeoning area of research that promises significant insights. Recent studies have made notable advancements in this field. For example, Ghrist [4] delves into how topological methods can be applied to spatial data analysis, offering new perspectives on data connectivity and structure. Nelson et al. [5] extend this exploration to temporal data, demonstrating how TDA can capture dynamic and temporal features. Additionally, Pratola et al. [6] investigate the application of persistent homology to spatial point processes, revealing how topological techniques can enhance the understanding of point distributions in both spatial and temporal contexts. These contributions underscore the growing importance of integrating TDA with spatial-temporal analysis, highlighting its potential to uncover complex patterns and relationships in such data. In the second chapter, we focus on spatio-temporal point processes, while in the third, we explore the field of persistent homology. Finally, in chapter three, we introduce a practical application of the theory and present a few conclusions. We hope you enjoy this journey through data analysis and that it inspires many of you to reconsider the way we analyze data. Figure 1.1: Persistence diagrams. 9 2.2 Estimation Methods In this section we will focus on estimation methods that allow us to apply the previously defined theoretical concepts to real data. In practice, we do not have the exact theoretical parameters, but rather observed data from which we need to estimate these parameters. This chapter explores various techniques, such as non-parametric estimators and kernel-based methods, that allow us to approximate the unknown parameters and thus fit the theoretical models to the observed reality. Definition 2.2.1 Let ˆ λspace(·) and ˆ λtime(·) be unbiased estimators. If we assume separability, we define the first-order spatio-temporal intensity function estimation as: ˆ λ(u, v) = 1 nˆ λspace(u)ˆ λtime(v) This is also an unbiased estimator of the expected number of points. Definition 2.2.2 Let εbe a positive smoothing parameter called bandwidth. Let κ(·) be a bivariate kernel such that κε(u) = 1 ε2κ(u ε), and let CWε(ui) be an edge-correction factor to guarantee RWˆ λspace(u)du =nsuch that CWε(ui) = ZW κε(u−ui)du. We define the non-parametric estimation of the spatial intensity function using a kernel estimation: ˆ λspace(u) = n X i=1 κε(u−ui) CWε(ui), u ∈W. In the same way, we can also estimate λtime(v) non-parametrically by kernel estimators. Note that the estimation depends on the bandwidth and there is no magic constant value to get always the best approximation. Small values usually leads to noisy and unrealistic estimations, while large values produce smooth estimations. We assume that X is a spatio-temporal point process on W ×T⊆R2×[0, ∞] such that Xtime is well defined. X can be treated as a temporal point process with corresponding marks Xspace and we can define the cumulative process as Xtime(t) :=|Xtime ∩[0, t]|, t ∈T. This approach for spatio-temporal point processes is the classical one. 16 Definition 2.2.3 Let w(u) ij be the proportion of the circumference of a circle centred at uiwith radius ∥ui−uj∥that lies within W, we define the isotropic correction as: wij =|W×T|w(u) ij wv ij here the weight is proportional to the product between its one-dimensional analogue and the ripley edge-correction factor for the spatial region. The temporal edge-correction factor w(v) ij takes the value of 1 if both ends of the interval of length 2|vi−vjthat is centred at vilie within T, or otherwise 1/2. Definition 2.2.4 Let W⊖r={u∈W:B[u, r]⊆W}and T⊖t={v∈T:B[v, t]⊆T} be eroded spatial and temporal regions, obtained by trimming off a margin of width r≥0 and t≥0 from the borders of W and T, respectively. We can define the border method as wij =Pn j=1 1{(uj, vj)∈W⊖r×T⊖t}⧸λ(uj, vj) 1{(ui, vi)∈W⊖r×T⊖t}, r, t ≥0 Note that W⊖r×T⊖tmay be visualised by taking the flat trimmed region W⊖r× {0}and stretching it in the t-dimension until its height reaches |T| −2t. This method restricts attention to those events lying more than r units away from the boundary of W and more than t units away from the boundary of T. Definition 2.2.5 Let X = {(ui, vi)}n i=1. Let κ1εand κ2δbe one-dimensional kernel functions with spatial and temporal bandwidths εand δrespectively. Let wij be edge-correction factors, which correct for the loss of information regarding the interaction occurring between points close to the border of W ×T and those (unobserved) ones outside. We can define the non-parametric estimation of the pair correlation functions based on kernel methods as: ˆg(r, t) = 1 4πr n X i=1 n X j=1 j=i κ1ε(∥ui−uj∥ −r)κ2δ(|vi−vj|−t)) ˆ λ(ui, vi)ˆ λ(uj, vj)wij , r > ε, t > δ. Definition 2.2.6 Let X = {(ui, vi)}n i=1 we can define the general Kinhom(r, t)estimator as ˆ K(r, t) = n X i=1 n X j=1 j=i 1[∥ui−uj∥≤ r]1[|vi−vj|≤ t] ˆ λ(ui, vi)ˆ λ(uj, vj)wij if wij is Ripley’s spatial edge-correction factor, we obtain an approximately unbiased nonparametric estimator of Kinhom(r, t). 17 Let ntbe the number of events vi≤b−twhenever T=[a,b] ⊆R+, we can define alternatively the past estimation without taking into account the past of the process: ˆ K∗(r, t) = n nt nt X i=1 X j>i 1[∥ui−uj∥≤ r]1[vi−vj≤t] ˆ λ(ui, vi)ˆ λ(uj, vj)wij . We begin with an example of a spatial pair correlation function (see Figure 2.2), utilizing a dataset of emergency calls from the city of Valencia in 2015, which serves as part of the practical case study in Chapter 3. This analysis is spatial in nature, as we exclusively use spatial data, specifically the longitude and latitude coordinates from the dataset. The resulting graph includes the Poisson pair correlation function as a reference, revealing that the calculated pair correlation function exhibits higher values. This observation indicates, as explained in Figure 2.1, that the K function is another type of graph that illustrates a similar degree of data aggregation but in a different way. Figure 2.2: Pair Correlation Function Example. 18 We can extend the calculation of the pair correlation function to spatio-temporal data by incorporating a temporal component. In our previous example using the emergency call dataset from Valencia in 2015, we now include the variable representing days, which ranges from 1 to 365 for the entire year. This allows us to generate a spatial pair correlation function for each temporal value. The resulting pair correlation function illustrates the spatial distribution of the data across different days, similar to the example shown in Figure 2.2, which displays the spatial pair correlation function. A comprehensive example of the spatio-temporal pair correlation function can be observed in Figure 2.3. Figure 2.3: Spatial-Temporal Pair Correlation Function Example. With these estimation tools, we are now ready to move on to the concrete modelling of spatio-temporal processes in the next chapter. 19 2.3 Spatio-Temporal models In the previous chapters, we have established the fundamental theoretical concepts and estimation methods needed to understand spatio-temporal point processes. With this foundation, we are ready to explore specific models that capture the complexity of spatio-temporal phenomena in practice. In this chapter, we will focus on spatiotemporal Poisson processes, both homogeneous and inhomogeneous, and move towards more sophisticated models such as Cox and Hawkes processes. Definition 2.3.1 Let λbe a positive constant that represents intensity, we define a spatiotemporal homogenous Poisson process as a spatio-temporal point process X satisfying that: i. Given A1×B1, ..., Am×Bm⊆W×T, the corresponding random variables N(A1× B1), ..., N(Am×Bm) follow independent Poisson distributions with the respective means µ(Ai× Bi) = λ|Ai×Bi|, i = 1, ..., m. ii. Points included in A×Bform an independent random sample from the uniform distribution on A×B(conditioned on N(A×B)). iii. All product densities exist and λ(k)(ξ1, ..., ξk)≡λk, k ≥1. Poisson processes are the starting point for spatio-temporal point pattern data models, they are rarely realistic but provide an approximation of complete spatio-temporal randomness (CSTR). Definition 2.3.2 We define a spatio-temporal inhomogeneous Poisson process as: i. Given any disjoint A1×B1,...,Am×Bm⊆w×T, the corresponding random variables N(A1×B1), ..., N(Am×Bm) follow independent Poisson distributions with the respective means ZAiZBi λ(u, v)dudv, i = 1, ..., m. ii. Given N(W×T) = n, the n events in W×Tform an independent random sample from the distribution on W×Twhich has density function f(u, v) = λ(u, v) RWRTλ(u, v)dudv . We obtain the homogeneous Poisson process by setting λ≡λ > 0. Similarly to the homogeneous case, it follow that the product densities exist and are given by λ(k)((u1, v1), ..., (uk, vk)) = k Y i=1 λ(ui, vi), k ≥1. 20 Spatio-temporal inhomogeneous Poisson process is the simplest non-stationary spatio-temporal point process, note that it is obtained by replacing the constant intensity of a homogeneous Poisson process by a spatially and/or temporally varying intensity function λ(u, s),(u, s)∈W×T. We present a graphical example of an inhomogeneous spatio-temporal Poisson process in Figure 2.4. In this example, we illustrate three independent processes that vary from fewer to more points. The figure provides both a two-dimensional (spatial) perspective and a threedimensional (spatio-temporal) view, allowing for a comprehensive understanding of how point density and distribution change over time and space. This visualization underscores the characteristics of inhomogeneous processes, where the intensity of points is not uniform, revealing insights into the underlying structure of the data. Figure 2.4: Inhomogeneous Poisson Process Example. 21 Definition 2.3.3 Let the likelihood be as the probability of obtaining a given number of points in the spatio-temporal observation window, times the joint conditional density for the locations of those points, given their number. Suppose that there are n observations on W×Tat spatio-temporal points {(ui, vi)}n i=1. Since the distribution of the number of points in Poisson, then the probability of obtaining single points in some differential volume △centred at (ui, vi) and no points on the remaining part of W×Tis given by exp −ZWZT λ(u, v)dudvn Y i=1 λ(ui, vi)△. Hence, dividing by △n, letting △ → 0 and taking logs, we have that the log-likelihood for λ(·,·) based on data is given by L(λ) = n X i=1 logλ(ui, vi)−ZWZT λ(u, v)dudv. In practice, it is particularly useful if λ(u, v) can be specified through a regression model, for example let zj(u, v) be covariates that may vary in space and time, consider logλ(u, v) = p X j=1 βjzj(u, v). Definition 2.3.4 We define a spatio-temporal Cox process as a process that satisfies: i. {Λ(u, v) : (u, v)∈R2×R}is non-negative-valued stochastic process. ii. Conditionally on {Λ(u, v) = λ(u, v) : (u, v)∈R2×R}, the events form an inhomogeneous spatio-temporal Poisson process with intensity function λ(u,v). Cox processes are natural models for point patterns that are thought to be determined by environmental variability, we can think about it like a ”doubly stochastic” process formed as an inhomogeneous Poisson process with an intensity function coming from some stochastic mechanism. Moment properties of a Cox process are inherited from those of the process Λ(u, v) and thus first and second order properties are obtained from those of the inhomogeneous Poisson process by taking expectations with respect to Λ(u, v). Assuming that the covariance structure γ(r, t) = Cov{Λ(u1, v1),Λ(u2, v2)}, for r = ∥u1−u2∥and t = |v1−v2|, is stationary, a convenient reparametrisation is Λ(u, v) = λ(u, v)S(u, v), where S(u,v) is a stationary process with expectation 1 and covariance function γ(r, t) = σ2is the variance of S(u,v) and s(·,·) is a spatiotemporal correlation function. It follows that λ(u, v) is the first-order intensity of the point 22 process, and the stationarity of S(u,v) implies that the point process is intensity-reweighted stationary. Given the last parametrisation, we can say that Λ(u, v) is first-order separable if λ(u, v) = λ1(u)λ2(v) holds, and second-order separable if γ(r, t) = σ2s1(r)s2(t), where s1(r) and s2(t) can be chosen as any pair of valid correlation functions in R2and R, respectively. The assumption of second-order separability is more difficult to deal with, but undeniably convenient. The K-function of an intensity-reweighted stationary Cox process (with the last parametrisation) is given by K(r, t) = πr2t+ 2πλ−2σ2Zt 0Zr 0 xs(x, y)dx dy. For a Poisson process, by the independence of the events, we can obtain that λ∗(u, v | Hv)dudv =E[N(du ×dv)| Hv] = E[N(du ×dv)] = λ(u, v)dudv, the conditional intensity function and the first-order intensity function are the same. Note that the intensity function can be estimated either by smoothing the observations or by fitting some parametric model, and here the situation is similar. In the conditional intensity setting, the non-parametric estimation procedure of the first-order intensity is directly followed. Definition 2.3.5 A spatio-temporal point process X is called self-exciting if Cov[N(A× B), N(A×B+ (u, v))] >0 for small values of (u,v). Stationary spatio-temporal point processes are sometimes described by the covariance between the number of points in some spatio-temporal regions A×Band A×B+ (u, v) (A×Bshifted by (u,v)). If such covariance is negative, the process is self-correcting. Thus the occurrence of points in a self-exciting point process causes other points to be more likely to occur in space-time, whereas in a self-correcting process, the points have an inhibitory effect, these models are commonly used in seismology. Definition 2.3.6 Let X = {(ui, vi)}be a Poisson cluster process with events (ui, vi)∈R2×R. Let the cluster centres of X given by certain events be called ’immigrants’ and the other events known as ’offspring’. A spatio-temporal Hawkes process X satisfies that: i. All immigrants follow a Poisson process with intensity function ψ(u, v). ii. Each immigrant (ui, vi) generates a cluster Ci, which consists of events of generations of order m= 0,1, . . . with the following branching structure. First we have (ui, vi), which is said to be of generation 0. Given the 0,. . . ,m generations in Ci, each (ui, vi)∈Ciof generation mrecursively generates a Poisson process Xjof offspring of generation m+ 1 with intensity function κi(u, v) = κ(u−ui, v −vi). Here, κis a non-negative function defined on (0,∞). 23 iii. Given the immigrants, the clusters are independent. iv. X consists of the union of all clusters. v. The conditional intensity function of the Hawkes process, given the history Htup to time t, is defined as: λ∗(u, v | Hv) = ψ(u, v) + X i:vi<v κi(u, v), where ψ(u, v) is the baseline intensity function representing the immigrant process, and κi(u, v) = κ(u−ui, v −vi) represents the influence of past events (offspring) on the current rate of occurrence. These approaches allow us to address situations where the intensity of events varies in space and time, or where events are correlated with each other. Such techniques are fundamental for the analysis of spatio-temporal point patterns in environments where the assumption of homogeneity is unrealistic and where interactions between events play a crucial role. By understanding and applying these methods, we are better equipped to capture and analyze the inherent complexity of spatio-temporal phenomena in real contexts. This knowledge is essential for practical applications that require accurate modeling of observed data in space and time. 24 Chapter 3 Persistent Homology The aim of this chapter is to provide a general but solid background on persistent homology. We have divided the chapter into three parts. 3.1 Simplicial complexes The first section is intended to relate the topological spaces to simplicial complexes, defining the bases on which persistent homology is built. This relation allows us to analyse a topological space from a simplicial point of view, applying the tools and techniques of simplicial analysis that we will see in the next section. Definition 3.1.1 We recall that a finite set of vectors {v0, ..., vn}from a vector space is said to be linearly independent, if there only exist all zero scalars a0, ..., an/a0v0+...+anvn = 0 (defining 0 as the null vector). Definition 3.1.2 A finite subset {v0, ..., vn}of points in Rmis called to be affine independent if the set of vectors {v1-v0,...,vn-v0}is linearly independent. Definition 3.1.3 Let n,m ∈R/ m≥n. A n-simplex is the convex hull of an affine independent set of n+1 points {v0, ..., vn} ∈ Rm: (n X i=0 aivi/ n X i=0 ai= 1, ai≥0∀i= 0, ..., n) 25 In the study of algebraic topology, homology groups provide valuable insights into the shape and structure of topological spaces. For instance, consider a disk; it has no holes, which means its zeroth homology group, denoted H0, is isomorphic to Z, representing its connected components. Next, a circle possesses a one-dimensional hole, characterized by its first homology group H1, which is also isomorphic to Z. Similarly, an annulus features a one-dimensional hole as well, and interestingly, both a circle and an annulus are homotopy equivalent, reflecting the same topological structure in terms of their homology groups. Lastly, a sphere exhibits a twodimensional hole, corresponding to its second homology group H2, which is isomorphic to Z. Therefore, we can summarize the homology groups for these examples as follows: H0∼ =Zfor the disk, H1∼ =Zfor both the circle and the annulus, and H2∼ =Zfor the sphere, illustrating the relationship between the dimensions of holes and their corresponding homology groups. All of these concepts can be visualized in Figure 3.6. Figure 3.6: Homology Groups Example. Definition 3.2.11 Let K be a simplicial complex and d its dimension, its Betti Number is defined as βd(K) = βd(K, F) = dim(Hd(K, F)) Definition 3.2.12 We define the euler characteristic of a simplicial complex K as: χ(K) = X d (−1)d(number of d −simplexs of K) Theorem 3.2.13 Let K be a simplicial complex: χ(K) = X d (−1)dβd(K) = X d (−1)ddim(Hd(K, F)) 32 In conclusion, we have explored the fundamental concepts of homology groups and their significance in understanding the topology of simplicial complexes. By defining homology groups and their dimension, we have established a framework for quantifying the ’holes’ or non-trivial cycles in a simplicial complex. Furthermore, we have discussed the relationship between homology groups and Betti numbers, as well as their connection to the Euler characteristic for a simplicial complex. Through these insights, we gain a deeper understanding of the topological structure encoded within simplicial complexes, paving the way for further exploration into the rich interplay between algebraic and geometric concepts in topology. Moreover, armed with the ability to quantify the ’holes’ of a simplicial complex through homology groups, we can now undertake comparative analyses between different complexes. By computing the homology groups of a given complex, we can determine its topological characteristics and discern whether it shares the same homology groups as another complex. This enables us to identify topological similarities or differences between complexes and investigate their structural properties. Furthermore, we can extend this analysis to compare the homology groups of a complex to those of a known compact surface. It’s important to note that the equality of homology groups between two simplicial complexes doesn’t automatically guarantee their homotopy equivalence. While homology groups provide valuable information about the topology of complexes, homotopy is a broader notion involving the possibility of continuously deforming one complex into another. Therefore, while the equality of homology groups suggests similarities in the topological structure of the complexes, other topological properties must be considered for a complete characterization of their relationship. For instance, consider the case of a solid sphere and a hollow sphere: both have the same homology groups, yet they are not homotopically equivalent due to their differing topological structures. 33 3.3 Filtrations and persistence Now that we understand how to compare topological structures among simplicial complexes, compact surfaces, and their continuous deformations, the question arises: how do we compute a simplicial complex that represents a given point cloud of data? It’s crucial to find an optimal method for generating the simplicial complex, as it will be analyzed to gain a deeper understanding of the topological structure of the point cloud. This analysis allows us to determine if the structure resembles any known compact surface or exhibits unique topological features. In this section we aim to explain how to compute a simplicial complex given a point cloud data and the problem of its computational complexity. Moreover we will define persistence given a filtration and a useful way to illustrate it. Definition 3.3.1 Let X be a set of finite points of the euclidean space such that: X={x0, x1, ..., xN} ⊂ Rn We fix a radius r > 0 and d as the euclidean distance to consider the open balls of radius r centred at the points xi⊂X: B(xi, r) = {a∈Rn/ d(a, xi)< r} We define the ˇ Cech complex ˇ C(X,r) as the simplicial complex with the following simplexs: 1. Vertexs of ˇ C(X,r) are in bijection with the x points: we call vito the corresponding vertex to xi∀i = 0,...,N. 2. A simplex [v0, ..., vk] belongs to ˇ C(X,r) if: B(x0, r)∩B(x1, r)∩... ∩B(xk, r)=∅ (at least one point of Rnis at a distance <r to the points x0, x1, ..., xk) ˇ Cech vertexs (0-simplexs) are the points x0, ..., xNof X, the edges (1-simplexs) correspond to the pair of balls that cut into each other and 2-simplexs correspond to three balls that intersect, and so on. We define the ˇ Cech environment as the union of the set of balls of radius r of the points of X: Nr(X) = [ x∈X B(x, r) 34 Theorem 3.3.2 ˇ Cech complex ˇ C(X,r) has the homotopy type of Nr(X): |˘ C(X, r)|⋍Nr(X) Note that one of the consequences is that the homology of the ˇ Cech complex is that it is the homology of the tubular environment Nr(X). ˇ Cech complex can be calculated algebraically from the points of X by calculating distances, but it is computationally very complex. Let n be the number of points of X, then we have 2n intersections, which is a very high value. ˇ Cech complexes are constructed by varying the radius between points in a dataset. As the radius changes, different simplices emerge, reflecting the underlying connectivity of the points. For small radii, isolated points or small clusters may form, while as the radius increases, more complex structures appear, leading to the formation of higher-dimensional simplices. This dynamic illustrates how the choice of radius can significantly impact the shape and structure of the resulting ˇ Cech complex. An illustrative example of these concepts can be seen in Figure 3.7. Figure 3.7: ˇ Cech complex construction. Definition 3.3.3 AVietoris-Rips complex VR(X,r) is a simplicial complex such that: 1. Each point of X its one VR(X,r) vertex. 2. [v0, v1] edge belongs to VR(X,r) if B(x0, r)∩B(x1, r)=∅. Or in other words there is some Rnpoint to any distance lower than r to x0, x1points. 3. If k≥2, [v0, ..., vk] simplex belongs to VR(X,r) if all [vi, vj] edges belong to VR(X,r) for 0 ≤i<j≤k. 35 VR(X, r) calculation complexity is lower than ˇ Cech one. Let n be the points of X, we have to calculate n 2=n(n−1) 2distances among points, but it is still a high computational complexity value. Recent research has investigated methods to improve this problem, including GPU-accelerated computation techniques for Vietoris-Rips persistence barcodes, as discussed by Zhang et al. [8]. Similar to ˇ Cech complexes, Vietoris-Rips complexes are formed by varying the radii between points in a dataset. However, the key distinction lies in how simplices are constructed: in Vietoris-Rips complexes, a simplex is created whenever all points within a certain radius are pairwise connected, regardless of their actual distances. As the radius increases, this leads to the emergence of more extensive and interconnected structures. This characteristic allows Vietoris-Rips complexes to capture different topological features compared to ˇ Cech complexes, where the formation of simplices is contingent on the coverage of balls centered at the points. The differences in these constructions and their implications for topology can be visualized in Figure 3.8. Figure 3.8: Vietoris-Rips complex construction. Definition 3.3.4 A simplicial complex filtration is a Krsimlicial complex family indexed by r > 0 with r∈R(continuous) or r∈N(discret) such that Kr⊂Kr′for r′> r. Let σbe a Krsimplex, then σis also a Kr′simplex for all r′> r. For all pair of radius such that r < r′we consider the following inclusion: ϕ=ϕr,r′:Kr,→Kr′ which not only is injective but also simplicial. It induces a morphism of chain complexes ϕ#:Ci(Kr)→Ci(Kr′) for each i dimension, in other words ∂iϕ#=ϕ#∂i. For each particular ϕ#function carries cycles to cycles and chains to chains and induces an application in homology ϕ∗:Hi(Kr)→Hi(Kr′). 36 Definition 3.3.5 The ϕ∗(Hi(Kr)) in Hi(Kr′) is a persistent homology group of i dimension and r < r′parameters. We also define a persistent homology class as one element of this image, in other words an element of Hi(Kr) seen to Hi(Kr′). The morphism of chains ϕ#:Ci(Kr)→Ci(Kr′) is injective. If z∈Zi(Kr) is a non-null cycle, then ϕ#(z)∈Zi(Kr′) is a non-null cycle for r′> r. If b∈Bi(Kr) is an edge, then ϕ#(b)∈Bi(Kr′) is also an edge for r′> r. Not that above properties does not imply that the induced morphism in homology ϕ∗:Hi(Kr)→ Hi(Kr′) is injective but it implies the existence of a birth and a death if we consider r parameter as a time. Definition 3.3.6 For each homology class in a t time, we obtain a time of death,birth and a life time or persistence. Formally, for each θ∈Hi(Kr) we have that: birth(θ) = inf{α′≤α / θ ∈(ϕ∗:Hi(Kr′)→Hi(Kr)) image} death(θ) = sup{α′≥α / θ /∈(ϕ∗:Hi(Kr)→Hi(Kr′))/kernel} persistence(θ) = death(θ)−birth(θ) Theorem 3.3.7 For all r > 0, a choice of Hi(Kr) bases is possible, such that all its elements that are still ’alive’ for r′> r are part of one Hi(Kr′) base. Definition 3.3.8 Apersistence diagram is a diagram such that classes are represented in one persistent homology base. Each element of the base is represented as a point in the plane, first coordinate is the birth parameter and second one death parameter. We can always obtain a diagram for each d degree of a Hdhomology or a joint network. In a persistence diagram all points are above the diagonal (points can’t die before their birth) and the length of a class is given by the distance from the point to the diagonal. Definition 3.3.9 Abarcode is a diagram such that each element of the persistent homology base is represented as a bar that starts in its birth value and ends in its death value so for each r parameter we have one homology base. Length of the bars gives the lifetime of the persistent homology classes. Both last two diagrams are equivalent. Note that in zero dimension we obtain a lot of classes that quickly disappear. Relevant classes are those with the longest duration (long bars in the code, away from the diagonal on the diagram) but there is not a clear or absolute way to decide the relevance of a class. It is possible 37 to vectorise the diagrams, i.e. transform them into vectors of a finite or infinite vector space for use in statistics or machine learning. The main problem is obtaining the filtrations, since we have the disadvantages of sensitivity to disturbances and noise and computational complexity. Definition 3.3.10 Let D1and D2be two persistence diagrams, we consider all ϕ:D′ 1→D′ 2 bijections between the results of joining points on the diagonal to both D1and D2. We define the bottleneck distance as: db(D1, D2) = infϕsupx∈D′ 1∥x−ϕ(x)∥∞ where ∥x−x′∥∞=max{| x1−x′ 1|,|x2−x′ 2|} and the infimum is obtained from all possible bijections after choosing the points of the respective diagonals. Definition 3.3.11 We define the p-1 wasserstein distance as: W(D1, D2) = inf ϕX x∈D′ 1 ∥x−ϕ(x)∥ Wasserstein distance and Bottleneck distance differ in how they measure discrepancies between persistence diagrams. Wasserstein distance takes a more global approach by considering the overall cost of transporting points from one diagram to another, summing up all the individual distances between matched points. In contrast, the Bottleneck distance can be understood as a ”worst-case” measure, as it focuses on the largest distance between any pair of points across the two datasets. While Wasserstein captures the cumulative difference, Bottleneck highlights the most significant discrepancy between the diagrams. With all necessary definitions in place, we are now prepared to execute the workflow illustrated in Figure 3.9. This process starts with a given dataset, from which we compute its simplicial complexes and derive the corresponding persistence diagram. This diagram is essential for comparing it with other persistence diagrams using the previously defined distances, allowing us to quantitatively assess differences and better understand the dataset’s topological features. In Figure 3.10, we can see a example of one persistence diagram that illustrate these concepts. The idea is to look at the distance between persistence classes of one diagram with classes of the other diagram or with the diagonal (for cycles that have a short duration). This distance allows us to compare persistence diagrams. In Figure 3.11, we see a graphical example of Bottleneck distance, and in Figure 3.12, we illustrate Wasserstein distance. 38 Figure 3.9: Computing Persistent Homology. Figure 3.10: Persistence Diagram Example. 39 Figure 3.11: Bottleneck Distance Example. Figure 3.12: Wasserstein Distance Example. 40 Chapter 4 Case of study: Emergency calls in Valencia In this chapter we will present a practical approach to the above and relate topological analysis to space-time one. The case study presented here is based on the same dataset used by Payares- Garcia et al. [9], whose work provides a dynamic spatio-temporal stochastic modeling approach to emergency calls in an urban context. This study offers valuable insights and serves as the foundation for our analysis. 4.1 Presentation and context of dataset Criminology is a crucial discipline for understanding and addressing security issues within society. Within this field, the analysis of emergency phone calls emerges as a key tool for the prevention and response to crisis situations, such as crimes, accidents, or medical emergencies. The importance of studying and analyzing these calls lies in their ability to provide real-time critical data, including both spatial and temporal information, which enables the rapid location and response to incidents. Emergency calls not only provide details about the type of incident but also about the location and timing, data that are essential for the efficient allocation of resources and the implementation of mitigation strategies. Additionally, analyzing this data helps identify crime patterns and high-risk areas, which is vital for planning public safety policies. In this context, the relationship between criminology and emergency calls is evident. Criminology greatly benefits from the analysis of the spatio-temporal data generated by these calls, 41 We will begin our analysis with the 2018 dataset of AlarmasMujer calls. To perform the spatial analysis, we will use the utm x and utm y variables, which represent the spatial coordinates of each event. With these coordinates, we will calculate the pair correlation function and the K-function, both of which will allow us to understand the spatial distribution and clustering patterns of the data. The K function is a spatial statistical tool used to analyze the degree of clustering or dispersion in a point pattern, in this case, the spatial distribution of gender violence crimes in Valencia during 2018. The function measures the expected number of points within a distance rfrom an arbitrary point, allowing for the detection of clustering or regularity at different spatial scales (see Fig. 4.9). In our analysis, we computed several versions of the K function: isotropic ( ˆ Kiso(r)), translationcorrected ( ˆ Ktrans(r)), border-corrected ( ˆ Kbord(r)), and Poisson (Kpois(r)). The isotropic K function assumes that the point pattern is uniform in all directions, which can be useful when the dataset has no clear anisotropy. However, real-world data, particularly in urban environments, often suffer from edge effects. These effects occur because points near the boundary of the study region have fewer neighbors than those near the center, which can lead to underestimation of the K function at large distances. To address this, both the translation ( ˆ Ktrans(r)) and border corrections ( ˆ Kbord(r)) were applied. These methods adjust for the edge effects, providing a more accurate estimate of point interactions near the borders. Despite these corrections, the overall trend remained consistent: all observed K functions showed significantly larger values than the Poisson K function. This suggests that the crimes exhibit strong spatial clustering rather than being randomly distributed throughout the city. The steep increase in the K function values, particularly at larger distances, indicates that spatial clustering persists across a wide range of scales. The differences between the isotropic K function and the edge-corrected versions show that adjusting for edge effects has a significant impact on the results, but the pattern of clustering remains dominant regardless of these corrections. While the K function provides a global measure of clustering, the Pair Correlation Function (PCF) allows us to explore the local interactions between points at specific distances. The PCF, denoted as g(r), measures the density of points at distance rfrom an arbitrary point, relative to a random distribution. In our case, the PCF enables us to assess how gender violence crimes are clustered or dispersed at fine spatial scales (see Fig. 4.10). We computed several versions of the PCF: Ripley’s PCF (ˆgripley(r)), translation-corrected PCF (ˆgtrans(r)), and the Poisson PCF (gpois(r)). The observed PCF values (ˆgripley(r) and ˆgtrans(r)) were significantly higher than the Poisson PCF at small distances (r ¡ 200 meters), indicating 48 strong clustering of crimes at short distances. This suggests that crimes are not evenly dispersed but tend to occur in close proximity to each other. As the distance increases beyond 200 meters, the observed PCF values gradually approach the Poisson level, indicating that at larger distances, the distribution of crimes becomes more random. However, the sharp peak at short distances highlights the presence of local crime clusters, possibly indicating specific areas where incidents are more likely to occur close together. The difference between the translation-corrected PCF and Ripley’s PCF is minimal, showing that while edge effects are present, they do not drastically alter the overall conclusions. The strong clustering observed at smaller distances is robust across different methods of PCF calculation. Figure 4.9: Spatial Ripley’s K Function. 49 Figure 4.10: Spatial Pair Correlation Function. In addition to the spatial analysis, we extended our study to include a spatiotemporal analysis using the spatiotemporal pair correlation function. This function g(u, v) takes into account both the spatial coordinates (u, v) and time, allowing us to assess whether crimes are correlated not only in space but also in time (see Figs. 4.11 and 4.12). The spatiotemporal PCF is represented by a 3D surface plot, where the spatial axes (u, v) represent distance and the vertical axis represents the intensity or strength of correlation over time. The sharp peaks in the surface indicate areas of strong spatiotemporal clustering. These peaks suggest that not only are the crimes clustered in space, but there is also a temporal component to this clustering. Specifically, crimes tend to occur close to each other in both space and time, forming clusters that are temporally and spatially correlated. The steep rise in the spatiotemporal PCF surface, particularly in specific regions, suggests the presence of temporal hotspots. These are periods when crime activity is highly concentrated in certain spatial areas, indicating that crimes are not only geographically clustered but also occur in bursts over specific periods. This pattern could be linked to underlying factors such as local events, socio-economic conditions, or policing activity. 50 Figure 4.11: Spatio-Temporal Pair Correlation Function (Viewpoint 1). Figure 4.12: Spatio-Temporal Pair Correlation Function (Viewpoint 2). 51 4.3 Topological analysis Our topological analysis tool is to calculate a persistence diagram, which is derived from the corresponding persistence matrix for each dataset. Similarly to the initial spatial analysis presented in Section 4.2, we generated persistence diagrams for the emergency call dataset classified as AlarmasMujer during the year 2018, utilizing the columns crime lon and crime lat (see Figure 4.13). We also generated a diagram for the same dataset based on the Poisson process with the same characteristics, which is shown in Figure 4.14. Similarly to before, we can visually observe that the two diagrams differ significantly from one another; however, to quantify this difference, we employ the Wasserstein and Bottleneck distances between the diagrams. Figure 4.13: Non-random Persistence Diagram. Figure 4.14: Random Persistence Diagram. As we can observe, we can generate a matrix of Wasserstein distance differences (Figure 4.15) and another for Bottleneck distances (Figure 4.16) between datasets, where each dataset is compared with all others. The diagonal is null, reflecting the symmetric nature of the matrix, as R1and R2are two distinct Poisson processes. We utilized Google Colab and Python, leveraging the giotto-tda library to compute persistence diagrams with the VietorisRipsPersistence method. For data manipulation, we employed pandas and numpy. The gudhi library was used for the bottleneck distance, while scipy calculated the Wasserstein distance. Visualization was accomplished using seaborn and matplotlib to generate heatmaps and plots. 52 Figure 4.15: Global Differences AlarmasMujer 2018. Figure 4.16: Maximum Difference AlarmasMujer 2018. 53 We obtain interesting values, but how does the 2018 dataset compare to a random one? How can we assess these values across different heatmaps? Additionally, how similar are the randomly generated datasets to each other? Can we find a typical value that reflects this randomness? To ensure the best calculations and comparisons, we have aimed to always compare datasets that are mutually exclusive (no point is contained in another dataset). All datasets have been sampled to maintain the same number of points; in the case of dataset reduction, the first n values have been taken to preserve the temporal structure. In the case of the Wasserstein heatmap, in addition to each value obtained from the difference between datasets, we have subtracted a certain ’randomness value’ from all values (excluding the diagonal). This randomness value has been calculated separately and prior to each test as the mean of the averages of jexperiments of the Wasserstein differences between mdatasets of npoints. For instance, in the previous case, nwould be 95, mwould be 3 since we have 3 datasets, and jwe would attempt to maximize while considering the necessary computational power (aiming for 100 or 1000 in most cases). With this adjusted matrix, each value indicates how similar the topological properties are between two datasets, and how close or far these differences are from those expected in random processes. Values close to 0 suggest that the datasets have similar topological properties, with differences comparable to those of random processes. Positive values indicate increasing divergence in topological properties, while negative values suggest a greater similarity than expected from random processes, potentially highlighting shared underlying structures or patterns between the datasets. Additionally, we have multiplied all these Wasserstein values by 1000 to obtain more manageable numbers for comparison. We have also adjusted the color scale of the heatmap (minimum and maximum values) based on the calculations from all the heatmaps, allowing us to see how significant the differences are between them. With all the ’random values,’ we calculated the mean and obtained a value of 9.14 in our system. Therefore, based on our approximations, we can consider that any difference greater than this value indicates that the data exhibit topological dependencies. Moreover, any positive value in our Wasserstein matrices already suggests the presence of topological dependencies in the data. We did not apply this calculation to the bottleneck distances because they are more computationally intensive; however, they still provide complementary information without this procedure. Finally, before beginning the topological spatial analysis using the crime lon and crime lat data, it is important to explain the possible implications of having distinct topological properties. The Wasserstein distance provides a global measure of the proximity between persistence diagrams. In this case, we analyze dimension 0 classes, which correspond to the connected components of the data, and dimension 1 classes, which represent the loops or holes formed. 54 In a spatio-temporal context of crime data, similarities in connected components could indicate that different datasets share a comparable clustering behavior, meaning that crimes may be occurring in similarly defined clusters or hotspots across datasets. On the other hand, if the persistence of loops or holes is similar, it may suggest that the spatial layout of crimes shares common structural voids, where areas with few or no crimes exist consistently across datasets. Such patterns could indicate that crime tends to concentrate in certain areas while avoiding others in a recurrent way. These topological features, when consistent between real and synthetic data (such as Poisson processes), could suggest deeper spatial dependencies in the underlying crime distribution. At the end of this document, we have included in Appendix A, specifically in Appendix I within it, the heatmaps representing the differences between the bottleneck diagrams for each test. This was done to avoid taking up too much space in the main text. Instead, we will focus more on the Wasserstein heatmaps, which provide a more general overview of the topological differences between datasets, while the bottleneck diagrams will be particularly useful in practice to assess how similar two datasets are. If the maximum distance in the bottleneck diagram is very low, the datasets will be quite similar. In this first case, we calculated a Wasserstein heatmap showing the differences between datasets separated by hours, from 0 to 23. The dataset of Valencia was divided by hour, and persistence diagrams were calculated using the variables ’crime lat’ and ’crime lon’. In Figure 4.17, we observe that all the values are positive, indicating data aggregation. Regarding the lower values between wasserstein distances, which represent datasets that, despite the aggregation, are more topologically similar, we can see that the most similar hours are 20:00 and 14:00, typical times in Spain when people tend to have meals or stay at home (less movement). We also find low values between 17:00 and 13:00 or 14:00. As for the higher values, there is a noticeable difference between 05:00 and 10:00, and we observe that the distances from 02:00 to 07:00 are generally higher compared to other times of the day. This suggests that crimes during these nighttime hours exhibit significant aggregation and may form distinct clusters, following a specific pattern, while during the rest of the day, there is less aggregation and the datasets are more topologically similar. 55 Figure 4.17: Wasserstein Heatmap of Global Distances: Hourly Analysis in Valencia. In this second case, we calculated a Wasserstein heatmap showing the differences between datasets separated by years, from 2012 to 2019. The entire dataset of Valencia was divided by year, and persistence diagrams were calculated using the variables ’crime lat’ and ’crime lon’. In Figure 4.18, we observe that all the values are positive, indicating data aggregation. Generally, the topological differences from one year to the next are minimal; however, as we compare 2013 with 2017, 2018, or 2019, the changes become significantly noticeable. This suggests that while year-to-year variations may be subtle, the topology of crime patterns evolves over time, leading to a more distinct transformation in the overall structure. 56 Figure 4.18: Wasserstein Heatmap of Global Distances: Annual Analysis in Valencia. In this third case, we present a Wasserstein heatmap illustrating the differences between datasets separated by months, from January to December. The entire dataset of Valencia was segmented by month, and persistence diagrams were computed using the variables ’crime lat’ and ’crime lon’. In Figure 4.19, we observe that all values are positive, indicating aggregation in the data. Generally, we conclude that the most distinct month is March, which coincidentally is when Valencia celebrates its Fallas festival. This celebration significantly alters the topological structure of crime incidents. Additionally, we can observe notable topological differences between the most representative months of each season: December, August, October, and May, further emphasizing the influence of seasonal variations on the distribution and nature of criminal activity throughout the year. 57 4.4 Conclusions As we have seen throughout the article, especially in Section 4.2 from the perspective of spatiotemporal analysis, and in Section 4.3 from the perspective of topological analysis, using the example of the AlarmasMujer 2018 dataset, these two approaches can be related and lead to similar conclusions regarding the aggregation or dispersion of the data. We observed how the generation of a Poisson random process served as our reference point in both analyses, allowing us to determine how far or close the data is from randomness. In the case of topological analysis, we established a metric where the value indicates the degree of aggregation or dispersion (negative values indicating dispersion, positive values indicating aggregation, and values near zero representing complete randomness). Thus, not only have we demonstrated the utility of topological data analysis, but we have also obtained valuable and interesting insights (particularly with respect to topological distances between datasets) that could not have been achieved through spatiotemporal point process analysis alone. In our case, we identified four scenarios generated by two variables and their two possible outcomes (aggregation/dispersion) and (shorter/longer topological distance). As a result, the spectrum of possible solutions is reduced to combinations of these cases, providing a clearer structure for interpreting the relationships between different datasets and their spatial and topological characteristics. The first scenario involves aggregation and shorter topological distance. In this case, the data points exhibit a high degree of spatial aggregation, meaning that the events are concentrated in specific regions. Additionally, the shorter topological distance between datasets implies that the underlying topological features are similar, suggesting similar clustering patterns over different datasets or time periods. For example, this could represent repeated crime incidents in the same urban hotspots, which might indicate persistent social or environmental factors driving these events in those areas. The second scenario is characterized by aggregation and longer topological distance. Here, the data is spatially aggregated, but the topological distance between datasets is large, indicating that while the events are concentrated, the topological features differ significantly across datasets. This could occur if crime hotspots shift between datasets, with each dataset showing distinct clusters in different geographic areas or at different spatial scales. This pattern might reflect shifting socio-economic or urban dynamics that influence crime locations over time. 64 The third scenario shows dispersion and shorter topological distance. This means that the data points are more spatially dispersed, with events being more evenly distributed across the study region. However, the shorter topological distance suggests that the distribution patterns remain topologically similar between datasets. In this case, although crimes are not concentrated in specific areas, the overall spatial structure is consistent across different datasets, potentially reflecting general uniformity in the occurrence of incidents across a wider area, such as evenly distributed low-intensity crime throughout a city. Finally, the fourth scenario involves dispersion and longer topological distance. Here, the data points are spatially dispersed, and the topological distance between datasets is large. This suggests a marked difference in the spatial distribution patterns between datasets. The crime incidents could be widespread and occur in distinct and different patterns across the datasets, showing no clear clustering or consistency over time. This scenario might represent a city-wide dispersion of incidents with no persistent hotspots, potentially indicating random or unpredictable occurrences of crime over time and space. Furthermore, the topological analysis has allowed us to identify which variable among a set of variables has the most significant topological impact in terms of aggregation or dispersion relative to other fixed variables (in our case, the spatial variables). This provides a deeper insight into the relationships between variables, offering a more complex understanding of their interactions. In contrast, the spatiotemporal analysis is limited to a maximum of three variables and is constrained in its input, typically focusing only on spatial and temporal dimensions. This limitation reduces its ability to capture the full complexity of data interactions compared to the broader scope of topological analysis. In conclusion, Topological Data Analysis serves as a valuable example of how to enhance traditional global analyses of spatiotemporal point processes. By offering unique perspectives on data, TDA can be crucial for obtaining more insightful information. This enhanced analysis not only aids in understanding the underlying patterns of crime but also equips decision-makers with the tools needed to better control and anticipate criminal activity in urban environments. Ultimately, the insights derived from TDA can contribute to saving lives and improving the overall quality of life for residents in cities. Moreover, the versatility of TDA allows it to be applied creatively in a wide range of fields and contexts, limited only by the imagination of those who use it. 65 4.5 Next Steps I trust that you have found the concepts presented in this article both engaging and insightful. In this section, I aim to offer several ideas and potential next steps for further exploration in this dynamic field of study, while also discussing innovative ways to integrate topological analysis into various research domains. The investigation of topological data analysis opens up exciting avenues for enhancing our understanding of complex datasets and refining traditional analytical methodologies. Numerous tools in topological analysis remain to be explored and assessed for their utility. For example, the generation of persistence diagrams can benefit from incorporating multiple variables and employing dimension reduction techniques such as Principal Component Analysis (PCA). Additionally, there are innovative approaches to constructing simplices that surpass the computational efficiency of traditional methods like Vietoris-Rips. These include techniques that offer advantages through cubic or square complexes. Such methods can effectively reduce noise within a dataset and stabilize the resulting diagrams by employing techniques like kernel density estimators and distance measures. Moreover, vectorizations and the utilization of landscapes present compelling opportunities for exploring their connections with statistics and machine learning. This exploration can extend to concepts such as silhouettes and time series analysis, further enriching our understanding of data dynamics. Ultimately, there remains a vast array of concepts to delve into and comprehend more deeply. An intriguing avenue for future research could involve the inverse mapping of the most persistent classes within persistence diagrams back to the specific points that generate those classes. This approach could illuminate which points contribute most significantly to the most persistent classes and enable us to identify the spatial areas or hotspots that are particularly valuable for analysis. It is my aspiration that if any aspect of this discussion resonates with you, you will take the initiative to further investigate and broaden your knowledge. Ultimately, I hope to have encouraged a re-evaluation of our analytical practices and to inspire a consideration of the complementary use of these tools to enhance our performance in research. 66 Bibliography [1] Varun Chandola and Vipin Kumar. Topological data analysis for anomaly detection in network traffic. Proceedings of the Workshop on Big Data Analytics and Machine Learning for Data Communication Networks, 2018. [2] Kathleen E. Turner, Sayan Mukherjee, and Doug M. Boyer. A survey of topological data analysis methods in machine learning. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, 2020. [3] Peter Bubenik. Perspectives on persistence landscapes. Journal of Applied and Computational Topology, 2021. [4] Robert Ghrist. Topological methods for spatial data analysis. arXiv preprint arXiv:1806.06232, 2018. [5] T.J. Nelson et al. Topological data analysis for temporal data. arXiv preprint arXiv:1902.03924, 2019. [6] J.M.P. Pratola et al. Persistent homology of spatial point processes. arXiv preprint arXiv:2001.00585, 2020. [7] Jonatan A. Gonz´alez, Francisco J. Rodr´ıguez-Cort´es, Ottmar Cronie, and Jorge Mateu. Spatio-temporal point process statistics: A review. Stochastic Processes and their Applications, 2021. [8] Simon Zhang, Mengbai Xiao, and Hao Wang. Gpu-accelerated computation of vietoris-rips persistence barcodes. Journal of Computational Geometry, 2022. [9] David Payares-Garcia, Javier Platero, and Jorge Mateu. A dynamic spatio-temporal stochastic modeling approach of emergency calls in an urban context. Statistical Modelling, 2022. 67 68 69 Appendix A Appendix I Figure A.1: Bottleneck Heatmap of Maximum Distances: Hourly Analysis in Valencia. 70 Figure A.2: Bottleneck Heatmap of Maximum Distances: Monthly Analysis in Valencia. Figure A.3: Bottleneck Heatmap of Maximum Distances: Weekly Analysis in Valencia. 71 Figure A.4: Bottleneck Heatmap of Maximum Distances to Landmarks in Valencia. 72