 Case Study
 Open Access
 Published:
A novel metric to measure spatiotemporal proximity: a case study analyzing children’s social network in schoolyards
Applied Network Science volume 8, Article number: 50 (2023)
Abstract
The present study aims to infer individuals’ social networks from their spatiotemporal behavior acquired via wearable sensors. Previously proposed static network metrics (e.g., centrality measures) cannot capture the complex temporal patterns in dynamic settings (e.g., children’s play in a schoolyard). Moreover, existing temporal metrics overlook the spatial context of interactions. This study aims first to introduce a novel metric on social networks in which both temporal and spatial aspects of the network are considered to unravel the spatiotemporal dynamics of human behavior. This metric can be used to understand how individuals utilize space to access their network, and how individuals are accessible by their network. We evaluate the proposed method on real data to show how the proposed metric impacts performance of a clustering task. Second, this metric is used to interpret interactions in a realworld dataset collected from children playing in a playground. Moreover, by considering spatial features, this metric provides unique knowledge of the spatiotemporal accessibility of individuals in a community, and more clearly captures pairwise accessibility compared with existing temporal metrics. Thus, it can facilitate domain scientists interested in understanding social behavior in the spatiotemporal context. Furthermore, We make our collected dataset publicly available for further research.
Introduction
Increasing public awareness about the potential impact of social networks on individuals and society has led to an interest in understanding how these networks function, and how individuals are positioned in their social contexts. In an effort to investigate the structure of these networks, a considerable body of research literature has developed around the theme of social network analysis (SNA) (Lusher et al. 2010; Li et al. 2022; Valeri and Baggio 2020; Redondo et al. 2020). The availability of wearable technologies that allow for the collection of finegrained data from daily activities, advances in data analysis techniques and computational tools, and the need to understand the dynamics of social networks in various fields such as sociology, sports science, and healthcare, have all contributed to increased interest in SNA. SNA involves a collection of tools that adopt graph theory to perform extensive computational techniques that ultimately identify connection patterns among members of a community (Barnes and Harary 1983). For instance, a static representation graph accumulates relationships between individuals in an episode, calculates static metrics such as centrality measures (e.g., closeness centrality (Bavelas 1950)), and estimates the role of any given node (or individual) in the static representation of that network.
However, a static representation graph eliminates all temporal details, such as the frequency of events and time difference between subsequent events, when this temporal information might include important information about the nature of the interactions at stake (Kostakos 2009). It also does not take into account any spatial relationships featured within those interactions.
Regarding omitted temporal detail, Fig. 1 demonstrates the limitations of existing approaches. Throughout this paper, we will refer back to this running example  inspired by an in vivo social scenario  to illustrate our proposed method. The example data here reflect the play of four children (A, B, C, and D) during recess in a playground that features four distinct play areas: a sandpit, a bench, a combination of green areas, and a walking path, plus the entrance to the playground. In this scenario, ChildA played in the sandpit during the whole break, whilst ChildB first played in the sandpit, then engaged in a conversation with a peer on a bench, and later walked to the entrance of the playground. According to the data source in Fig. 1a, ChildA interacted with peers only at the beginning of recess time (i.e., T1, T2, T3) in the sandpit, where most of the peers appear to have been located during the same period, whereas ChildB interacted with peers across the entire recess time (i.e., T1, T4, T6) in different locations (i.e., sandpit, bench, and the entrance). These facts reflect distinctions that are relevant to social network structure. Yet although ChildA and ChildB had different behavioral patterns during recess, their positions in the static graph representation, as shown in Fig. 1b, appear the same: the graph shows an equal number of edges (partners) with equal weights (number of interactions), which yields the same representation as in their static metrics, such as centrality measures. This example illustrates how these static metrics are not sensitive to temporal changes, and fail to capture complex dynamics that could be contained within such data.
To tackle this problem, Kostakos (2009) proposed a “temporal” graph representation, in which the relationship between nodes and the position of each node was investigated in the temporal context of an entire network, rather than in an aggregated format. Based on this representation, Kostakos (2009) introduced new metrics, including average geodesic proximity and average temporal proximity, which consider edge availability over time and take into account possible wait times for each node before meeting the next node. Specifically, these are measures of how quickly an individual is accessible by their network, and how quickly the network is accessible by the individual. Figure 1c does show this temporal representation: in contrast to a static analysis, ChildA and ChildB are positioned differently in this representation. Here, the temporal metrics preserve information about the order and the frequency of events over time.
Yet, even in this temporal representation of a network, one aspect that is still entirely overlooked is that of the physical environment. In the context of the example illustrated in Fig. 1, investigating the temporal accessibility of a child in the playground does not inform us about how the child utilized the environment: did the child walk around and interact with peers (e.g., ChildB in Fig. 1d), or simply remain in a crowded spot while making contact with peers (e.g., ChildA playing in the sandpit in Fig. 1d)? To understand the impact of the physical environment on an individual’s interactions with their network, it is crucial to consider spatial features in analyzing the social network. The temporal metric estimates availability only by considering temporal differences between nodes. The spatial aspect of this availability, i.e., the location of contacts in the physical environment, is still ignored in a temporal graph representation.
The literature has already documented the importance of considering spatial context when examining social networks. Several studies have examined the effect of environments on human behavior, for example, the impact of physical and social environments of neighborhoods on child and family wellbeing (Franzini et al. 2009), the impact of office design on employee’s office usage and social interactions (Montanari et al. 2017), and the impact of schoolyard design on children’s movement and their social behavior (Nasri et al. 2022). In fact, including the spatial element of social networks enables us to understand better how the physical environment impacts individuals’ behavior (Chaix 2020) and how users utilize the environment to interact with their network.
While the impact of the physical environment on social networks has been confirmed in various studies, limited attention has been given to the integration of these dimensions into a unified framework. Consequently, there is a critical need for research that addresses this gap by introducing spatiotemporal metrics capable of quantifying the complex interplay between social and physical environments.
In order to examine the interdependency between spatial and social contexts of interactions and continue to build a better understanding of the impact of the physical environment on social networks, the present study pursues two main aims. First, we introduce a new metric for measuring the spatial and temporal dynamics of social networks, known as average spatiotemporal proximity. By considering the spatial differences between temporal networks, our proposed metric examines how spatially sparse these networks are and how spatiotemporally a user is connected to its network. Specifically, this metric calculates the shortest path based on the spatial distance of temporal events, and estimates how far, on average, nodes (or individuals) in a network need to move to reach a specific node, and how far, on average, a node needs to move to reach the rest of the network. Such a metric would enable a more comprehensive understanding of the factors influencing social accessibility (i.e., examining how the physical and social context reciprocates around individuals).
Second, we evaluate the proposed metric in the context of a case study whose goal was to investigate social interactions among a group of 32 children playing in a schoolyard during recess. By measuring the spatiotemporal proximity of individuals over time, we aim to better understand the social behavior of these children and their interactions within the context of their spatial environment.
Overall, this paper makes the following contributions:

We introduce a new metric to quantify the proximity of nodes in a graph that considers both temporal and spatial characteristics of contacts in order to measure how individuals in a network utilize space to make contacts.

We present and make publicly available a new dataset collected from children’s interactions and movements in a schoolyard during recess. This dataset uniquely registered facetoface contacts and children’s locations over time, measured via wearable proximity sensors and GPS loggers, respectively. This dataset is available in a public repository for future use in spatiotemporal research.

We evaluate the performance of our proposed metric to show how it impacts the performance of a clustering task in identifying clusters in a network, compared to temporal measures alone.

We further demonstrate how this metric can be used to illuminate the underlying interactions in our Schoolyard Dataset.
The rest of this paper is organized as follows: In Related work, we discuss the literature relevant to our study. The Problem Definition introduces the computational problem at stake in our proposed methodology. Methodology presents the details of our method. The experimental settings and results are presented in Experiments. Finally, Conclusions summarizes the study and discusses future research directions.
Related work
To provide relevant context, here we reference further literature on two main approaches to the fusion of spatial information with timeseries data: locationbased social network (LBSN) analysis, where spatial information is intertwined with social networks, and spatiotemporal pattern mining, where relevant research is scanned to identify spatiotemporal features, as a broad concept.
Locationbased social network (LBSN) analysis
Most studies in LBSN analysis arose from the urban computing field and social media networks analysis mainly due to the availability of largescale databases such as Foursquare, Twitter, Instagram, and Google Places (Liu et al. 2019; Steiger et al. 2015; Advaith et al. 2020; Rahmani et al. 2022). In this body of research, the interdependency between spatial and social contacts lies in the copresence of two persons in the same physical locations, or the sharing of a similar location history, common behavior, or activities. In these cases, interdependency is implied from users’ location data without assessing facetoface interactions from individuals’ perspectives (Zheng 2011). The aim of this line of research is often to design physical location (or activity) recommendation systems (Zheng et al. 2010; Ding et al. 2018; Rahmani et al. 2020), travel planning (Yoon et al. 2010; Vassakis et al. 2019), and marketing (Tussyadiah 2012) from accumulated spatial behavior, mainly by considering similarity among users. In contrast, spatial information in the present study is used as a descriptive machine learning model for the purpose of improving performance of a downstream task, and for discovering more about the nature of interactions, rather than for predicting social contacts or common interests.
Spatiotemporal pattern mining
Recently, interest has been growing in areas related to the adoption of deep neural network models to generate spatiotemporal features in varied applications. These include crowd flow prediction (Wang et al. 2018), social event detection (Afyouni et al. 2022; Nasri et al. 2023), and financially aware social network analysis (Ruan et al. 2019). Although the performance of deep models for extracting spatiotemporal features has appeared promising, these models require a huge amount of representative data to learn about generalizable spatiotemporal embeddings. Therefore, these methods are hardly applicable for small datasets in which the duration of data assessments and the number of users is limited. In addition, collecting largescale data from certain populations (e.g., patients in a hospital or children in a playground) is often impossible because of privacy protection concerns. Therefore, analyzing spatial patterns over time via classical pattern mining techniques has been the focus of many studies in domains such as animal revisitation analysis (Bracis et al. 2018), disease spread patterns (Yie et al. 2021), and the tourism industry (Liu et al. 2022; Baratchi et al. 2013). This line of research often involves extracting time domain features (e.g., residence time, the time between visits) and applying a downstream task to the extracted features, such as clustering and prediction.
Analyzing temporal events via graphs, as in a “temporal graph”, was first introduced by Kostakos (2009). Using this representation, temporal metrics were defined to assess geodesic and temporal proximity. These metrics estimated how quickly a node was accessible by the network, and how quickly a network was accessible by a node. Accessibility in temporal proximity was defined as the time difference between temporal events in a weighted shortestpath algorithm. Geodesic proximity was calculated using the number of hops between temporal events in an unweighted shortestpath algorithm. Neither metric took into account the spatial context of temporal events, e.g., the geodistance between nodes.
The present study is intended to further build upon the work of Kostakos (2009). Specifically, temporal metrics proposed by Kostakos (2009) are further developed to incorporate the spatial aspect of social contacts and to examine the spatiotemporal accessibility of individuals within a network.
Problem definition
Assume a spatiotemporal proximity dataset as a set of tuples in the form of \(\langle v_i,v_j,s_t \rangle\) where \(\{v_i, v_j \in {\textbf{V}}\}\) are two entities in the set of entities \({\textbf{V}}\) that are detected in proximity to each other, where \(s_t = (x,y,t)\) represents the coordinate where the contact between these \(v_i\) and \(v_j\) is registered at time t, and \(t \in \{1,\ldots , T \}\) represents the timestamp of the contact. Such a dataset can be collected, for example, when the two entities are equipped with a proximity sensor (to detect contacts) and a GPS sensor to acquire the average coordinate representing the point of contact between the entities.
First, we are interested in creating a spatiotemporal graph representation \(g = \langle {\textbf{V}}_{s_t}, {\textbf{E}}\rangle\), where \(\{v_{i,s_t} \in {\textbf{V}}_{s_t}\}\) are sets of nodes each represented over timestamps t, at a location denoted by s, and \({\textbf{E}}\) is a set of instant and spatiotemporal edges. Instant edges are unweighted and undirected links between spatiotemporal nodes \(v_{i,s_t}\) and \(v_{j,s_t}\) indicating contact between two distinct nodes \(v_i\) and \(v_j\), \(i\ne j\) at location s in time t. Spatiotemporal edges are weighted, and directed links between consecutive pairs \(v_{i,s_t}\) and \(v_{i,s_{t+1}}\) of node \(v_i\) which is weighted based on the spatiotemporal proximity assuming that the direction of edges represents the temporal order.
Second, we are interested in finding clusters \(C_i = {\textbf{V}}_{C_i}\) where \({\textbf{V}}_{C_i} \subseteq {\textbf{V}}\), such that all nodes \({\textbf{V}}_{C_i}\) within each cluster \(C_i\) are spatiotemporally similar to each other and dissimilar to the nodes in other clusters.
Methodology
In this section, we present essential mathematical preliminaries as the foundation for understanding our proposed methodology, and the problem at stake. Then, we explain our proposed spatiotemporal graph and its proximity metrics.
Background and preliminaries
Graphs are mathematical structures used to model pairwise relations between objects. In this structure, objects are represented as nodes that are connected by edges (West 2001). In order to preserve temporal information via graph representations, Kostakos (2009) introduced the idea of temporal graphs. In this representation, contrary to static representations, the temporal relationship between nodes, and the position of each node in the temporal context of the entire network, is preserved. According to Kostakos (2009), a temporal graph is constructed in three steps:

1.
One temporal node per original node per point in time is created. Thus, node \(v_i\) in the original graph is represented as \(v_{i,t}\) in the temporal graph where \(t \in [1,\ldots ,T]\) are all the data points in which node \(v_i\) is communicated; e.g., ChildB in Fig. 1 is represented by the set of instances \(v_{B,t} = [{v_{B1}, v_{B4}, v_{B6}}]\).

2.
Consecutive pairs \({v_{i,{t_x}}, v_{i,{t_{x+1}}}}\) with directed edges of weight \(t_{x+1}t_{x}\) for each set of instances \(v_i\) are linked, representing the temporal distance between the pair. For example, in Fig. 1, the weight between nodes \(v_{B1}\) and \(v_{B4}\) is 3 time points.

3.
The unweighted, undirected edges are used to link instantaneous communications between nodes. E.g., an interaction between ChildA and ChildB in Fig. 1 at time \(t_1\) is instantiated as an undirected link between ChildA and ChildB.
Therefore, each node \(v_i\) in Fig. 1b is converted to a directed chain of nodes \(v_{i,t}\) that represent all temporal instances of nodes over time. Following this protocol, the temporal graph is generated as shown in Fig. 1c.
Furthermore, Kostakos (2009) defined average geodesic proximity \(G(v_i,v_j)\) on a temporal graph as the measure of “on average, how many hops is node \(v_i\) away from node \(v_j\)”. This metric is formulated as follows:
where \(g(v_i,v_j,t)\) is the shortest path, starting from node \(v_i\) at time t to the most accessible version of node \(v_j\) over time. \(t \in [1,\ldots ,T]\) is the set of time points that node \(v_i\) is active (or communicating). n is the number of finite \(g(v_i,v_j,t)\) values, e.g., \(g(A,D, t = 1) = 2~(i.e., v_{A1}, v_{A2}, v_{D2})\) in our example in Fig. 1. In this metric, the lowest number of hops defines the most accessible instance. Consequently, the \(G_{in}(v_i)\) and \(G_{out}(v_i)\) are calculated for node \(v_i\) as formulated in Eq. 2:
where \(G_{in} (v_i)\) and \(G_{out} (v_i)\) are measures of “on average, in how many hops is \(v_i\) reached by the rest of the network” and “on average, in how many hops does \(v_i\) reach the rest of the network”, respectively. n is the number of finite \(G(v_j,v_i)\) and \(G(v_i,v_j)\) values, and \(v_j \in {\textbf{V}} = \{v_1, v_2,..., v_M\}, v_j \ne v_i\) is sets of nodes in a network with M nodes.
Similarly, average temporal proximity \(P(v_i,v_j)\) is the measure of, “on average, the time it takes to go from \(v_i\) to \(v_j\)” and is formulated as follows:
where \(p(v_i,v_j,w_t, t)\) is the weighted shortest path, starting from node \(v_i\) at time t to the most accessible version of node \(v_j\) over time. \(t \in [1,\ldots ,T]\) is the set of time points that node \(v_i\) is active (or communicated). n is the number of finite \(p(v_i,v_j,w_t,t)\) values e.g., \(p(A,D, w_t, t_1) = 1~~(i.e., v_{A1}, v_{A2}, v_{D2})\) in Fig. 1. The weight \(w_t\) equals the time difference between nodes at a given path. Consequently, the \(P_{in}(v_i)\) and \(P_{out}(v_i)\) are calculated as formulated in Eq. (4):
The \(P_{in}\) and \(P_{out}\) are measures of “how quickly, on average, \(v_i\) is reached by the rest of the network” and “how quickly, on average, \(v_i\) reaches the rest of the network”. n is the number of finite \(P(v_j,v_i)\) and \(P(v_i,v_j)\) values, and \(v_j \in {\textbf{V}} = \{v_1, v_2,\ldots ,v_M\}, v_j \ne v_i\) is sets of nodes in a network with M nodes. This metric estimates nodes’ accessibility by obtaining its availability over time.
To better understand these two temporal metrics, we calculated them in the playground example presented in the Introduction (see Fig. 1). Tables 1 and 2 show the result of average geodesic proximity and average temporal proximity, respectively. The results demonstrate that, despite the static measures, ChildA and ChildB have different in and out measures (both geodesic and temporal). ChildA has the lowest \(G_{in}\) and \(P_{in}\) as all peers find the child shortly at the start of the break, and the highest \(G_{out}\) due to its absence in communication during the second half of the break. This might be because the child is more involved in solitary games rather than being with peers during recess. The lowest values belong to ChildB in both \(G_{out}\) and \(P_{out}\) because ChildB accessed peers across the break and interacted with all peers.
Spatiotemporal proximity
Both of the metrics that are explained in the previous section overlook spatial dependency among nodes, and consequently, ignore the spatial behavior of individuals (e.g., whether a child is interacting in different areas over the course of recess, or the child stays in a single spot and interacts with peers who come over to that same spot). Obtaining such detailed spatiotemporal behavior is not possible via the existing measures (e.g., average geodesic proximity and average temporal proximity). To address this gap, we introduce spatiotemporal graphs and define average spatiotemporal proximity as \(S(v_i, v_j)\), which takes into account spatial dependencies among nodes. By considering the spatial distances, e.g., Euclidean distance, the spatiotemporal proximity examines how spatially close the user is to their network. To create a spatiotemporal graph, we followed the same steps as in the temporal graph protocol, except in step (2), where the consecutive pairs \({v_{i,{s_{t_x}}}, v_{i,{s_{t_{x+1}}}}}\) are linked with the directed edges of weight \(d(v_{i,{s_{t_x}}}, v_{i,{s_{t_{x+1}}}})\), which is the spatial distance between instances \(v_{i,{s_{t_x}}}\) and \(v_{i,{s_{t_{x+1}}}}\) (instead of temporal differences).
Accordingly, average spatiotemporal proximity is calculated based on this spatiotemporal graph, and allows the weights to be the spatial distances among the edges. This metric investigates “on average, how long (spatiotemporally) it takes for the network to reach \(v_i\) (\(S_{in}\))”, and “on average, how long (spatiotemporally) it takes for \(v_i\) to reach the rest of the network (\(S_{out}\))”. The average spatiotemporal proximity is formulated as follows:
where \(s(v_i,v_j,w_s, t)\) is the weighted shortest path, starting from node \(v_i\) at time t to the most accessible version of node \(v_j\) over time. \(t \in [1,\ldots ,T]\) is the set of time points that node \(v_i\) is active (or communicated). n is the number of finite \(s(v_i,v_j,w_s,t)\) values. The weight \(w_s\) is equivalent to the spatial distance between nodes \(v_i\) and \(v_j\) at a given path, assuming that the location coordinates of all the contacts are available.
Furthermore, the spatiotemporal proximity is calculated per pair of nodes in a community, and the indegree (\(S_{in}\)) and outdegree (\(S_{in}\)) variants are calculated by taking the average over the inreached and outreached variables, respectively.
The \(S_{in}(v_i)\) and \(S_{out}(v_i)\) are measures of “how long, on average, \(v_i\) is accessible by the rest of the network” and “how long, on average, it takes for \(v_i\) to access the rest of the network”. n is the number of finite \(S(v_j,v_i)\) and \(S(v_i,v_j)\) values, and \(v_j \in {\textbf{V}} = \{v_1, v_2,\ldots , v_M\}, v_j \ne v_i\) is sets of nodes in a network with M nodes. Similarly, the result of this analysis for the playground example is shown in Table 3. To calculate this table, it is assumed that the sandpit, bench, and entrance area are located at (3, 1), (2, 2), and (1, 1) Cartesian coordinates, respectively, and that the interactions happened around these areas.
As described in Table 3, ChildA has the lowest \(S_{in}\): during time points when the child was available (i.e., T1, T2, and T3), all other peers were in the same spot (sandpit) and could access the child with a short distance to travel. Meanwhile, ChildD got the highest \(S_{in}\) because the child was only available at T2 and T6, and if anyone wanted to reach ChildD after T2, they had to pass a long spatiotemporal route (i.e., temporally from T2 to T6, and spatially to the entrance) in order to find the child at the Entrance on T6. Regarding the \(S_{out}\), ChildA has the highest score because some peers were not presented at T2 and T3 in the sandpit. Therefore, the child had to wait and reach them in different locations. In contrast, ChildB could more easily access peers (lowest \(S_{out}\)) because the child was present across recess time in different locations. Thus, our proposed metric quantifies accessibility by unifying the spatial and temporal dimension of interactions, and provides unique knowledge on how individuals and their networks utilize the spatial environment to make contacts over time.
Experiments
We investigated the performance of the proposed metric in identifying social groups, based on the most accessible peers. Specifically, we were interested in knowing whether adding spatial context to the existing temporal metrics (i.e., geodesic and temporal proximity) could help better identify groups in a network.
We evaluated the proposed methodology by utilizing a clustering performance task. Here, we first explain our experimental design and introduce the datasets adopted in our experiments. Then, the evaluation metrics are presented. Next, we show the result of our analysis in two sections: The first part evaluates the performance of a clustering task using the proposed metric, compared with the existing temporal metrics as the baseline. The second part analyses children’s behavior in the schoolyard dataset.
Experiment settings
Experiments were designed using the Python programming language. The code has been made available in a public repository.^{Footnote 1}
The NetworkX module was used to execute social network analysis, and Dijkstra shortestpath algorithm (Dijksta 1959) was used for the calculation of proximity metrics (i.e., geodesic, temporal, and spatiotemporal proximity) on the spatiotemporal graph. The SciPy and Scikit Learn packages were used to perform clustering tasks and evaluate their performance, respectively. Hierarchical clustering (Müllner 2011) was used to cluster the proximity matrices, which was a natural choice for clustering data in the form of an adjacency matrix, especially when the dataset size is small. In addition, hierarchical clustering serves best in exploratory analysis where there is no specific outcome variable defined. For this purpose, first, the Pearson correlation coefficients of the pairwise matrices were calculated separately across indegree and outdegree components to acquire how indegree proximity (i.e., accessing the child by the network), and outdegree proximity (i.e., accessing the network by the child), were correlated among children. Consequently, we obtained a symmetric correlation coefficient matrix (CCM) per indegree and outdegree metrics, thereby determining the strength and direction of the pairwise relationships among children. Next, the upper triangular area of the indegree CCM was merged with the lower triangular area of the outdegree CCM, to create a nonsymmetric CCM that described both indegree and outdegree correlations among children. Such a nonsymmetric CCM was used in the hierarchical clustering algorithm to identify groups based on mostly correlational relationships. Furthermore, the obtained matrix was used in creating heatmaps to visualize the relationships between children in a more organized way, which aids in data exploration and analysis.
In designing the hierarchical clustering algorithm, three different linkage methods, including complete, average, and average group, was investigated to understand how different strategies in creating the linkage matrix impact the performance of the clustering algorithm. In short, the ‘complete’ linkage method defines the distance between two groups as the distance between the most distant pair of points, while the ‘average’ defines this distance as the average pairwise distance between data points in two groups, and ‘average group’ defines it as the average pairwise distance between all data points when two groups are merged. Moreover, the correlation distance was used to ensure that the clustering algorithm considered the strength and direction of the correlations between variables. The ‘maxclust’ was selected as the criterion, which finds a minimum threshold to ensure the cophenetic distance between any two original points in the same flat cluster is no greater than the threshold, and no greater than t flat clusters are formed. Since the number of clusters was unknown, the optimum value of t was chosen based on the result of clustering performance, using the Silhouette coefficient score (Rousseeuw 1987) on the range of \(t \in [2, N]\), in which N is the total number of data points. This range was chosen based on the assumption that there were at least two clusters in a playgroup, and that, in the worstcase scenario, there was no child in the same cluster with peers. Since ‘complete’ linkage, on average, performed slightly better than the other two linkage methods (as shown in Table 5), this linkage matrix was used to obtain the optimum number of clusters. Figure 2 shows results for both playgroups. Based on these figures, the ‘maxclust’ was selected as 4 for all proximity measures in PG1 and \([G = 3, P = 9, S = 7]\) for PG2 based on the maximum Silhouette coefficient score.
Schoolyard dataset
We collected spatiotemporal data via wearable sensors from 32 children, aged between 4 and 12 years old, in two playgroups, PG1 and PG2, during recess in the schoolyard of a primary special education school in the Netherlands. These data are now publicly available, so other researchers may replicate our results.^{Footnote 2}
Playgroups PG1 and PG2 were children from junior and senior grades, respectively, who were assigned to designated playgrounds. As shown in Fig. 3, PG1 used areas I, II, and III, which included a soccer field, bench, climbing structure, and sandpit. PG2 spent recess time in areas IV and V, where a bench, table tennis, climbing frame, and soccer field were located. Before starting each break, children were asked to wear a belt with a mounted proximity tag and a GPS logger. The proximity tags detected facetoface contacts, and the GPS loggers recorded the geographic locations of the users. Specifications for the datasets are described in Table 4. In addition to sensor data, video recordings and field observation were conducted simultaneously to gain insight into psychological aspects of children’s interactions and social behavior. Parental informed consent was obtained before conducting the data collection. Approval for the study was obtained from the Leiden University Ethical Committee.
In order to evaluate the effectiveness of our proposed method and verify the results, we need groundtruth data (i.e., unbiased and true values serving as a reference for evaluating the method). The groundtruth informs us about the true pairwise relationship among children, e.g., the true values on how often a child was in meaningful interaction with peers, where precisely in the schoolyard, and for how long. This data could be presented, for example, in the form of pairwise group membership over time by defining ‘group’ as peers who are most accessible by their group mates. Due to privacy concerns regarding any child population, existing videos associated with the data collection were recorded only from focal areas, following the approved ethics application. This made it practically impossible to create groundtruth for the collected sensor data and to systematically verify the results. Moreover, evaluating the concept of pairwise proximity or accessibility over time might not be easily understood and coded by monitoring video recordings or direct observations, especially with regard to children’s age group who often tend to change their peer group and attend different types of play over the course of recess time. Yet, the collected video recordings and the field observation reports allowed us to discover certain behaviors (e.g., identifying the most visited areas, popular activities (or games) among children of a certain group, etc.), to draw a general picture of schoolyards activities, and to verify the obtained results to some extent. Therefore, the experiments in this section are at an exploratory level considering different age groups and playground designs.
Data preparation and preprocessing
Proximity data: Wearable proximity tags were used to detect facetoface contact between children during recess. If any pairs of proximity tags (i.e., children) were at a distance of up to 1.5 ms in the degree of about \(6070^\circ\), then they registered each other’s unique code via Bluetooth. They wirelessly sent this detection to two base stations installed in two different locations in the schoolyard. The installation locations were estimated beforehand to obtain the highest coverage over the schoolyard by considering the fact that each base station covers an area of up to \(25m^2\). Hence, some children might have a low detection rate for various reasons, e.g., playing far away from the base stations or tag malfunctioning.To compensate for this error, the detection rate is calculated per child by dividing the duration of detection by beagle over the total duration of the break. Only children with a detection rate higher than 50% are included for further analysis. As a result, three children from PG2 who had a low detection rate are excluded from further analysis. The data reported in Table 4 is after this exclusion. The obtained contact data is then fused with GPS data to obtain the location of interactions.
GPS locations: The GPS logger(igotU GT120 USB) recorded location coordinates in Longitude and Latitude per second. The GPS locations were converted afterward to Cartesian space and merged with proximity contacts to obtain the location of interactions. As suggested in the literature (Clevenger et al. 2022; Schneider et al. 2019; Heravi et al. 2018), we adopted Euclidean distance to examine the spatial distances between temporal nodes (\(w_s\) in Eq. 5). In our study, it was assumed that children in facetoface contact are almost in the same location, to use the data more efficiently. Therefore, the available GPS data of one of the pairs in interaction was used for the other, in case the GPS data were missed. In addition, a 10second window was used to search for the location of individuals in an interaction, and the median values were used to report the location coordinates at the given time. This merged data was used in our analysis to create the spatiotemporal graph.
Evaluation metrics
This section describes the evaluation metrics used to examine the performance of a clustering task. Since no groundtruth data were available for the schoolyard dataset, we decided to use the following evaluation metrics, which do not require groundtruth but still provide a quantitative assessment of the quality of the clusters found in these datasets when different proximity metrics were used. We expect to observe clusters with higher quality when more informative proximity metrics were used.

1.
Silhouette score (Rousseeuw 1987) indicates how well clusters are separated from each other. This metric is defined as follows:
$$\begin{aligned} SC = \frac{1}{N} \sum _{i=1}^N \frac{(b_ia_i)}{max(a_i,b_i)} \end{aligned}$$where a is the mean distance between sample i and all other points in the same cluster, and b is the mean distance between sample i and all other points in the next nearest cluster. N is the total number of points.

2.
Calinski–Harabasz score (Caliński and Harabasz 1974) is the ratio between the withincluster dispersion and the betweencluster dispersion, and is defined as follows:
$$\begin{aligned} s = \frac{\textrm{tr}(B_k)}{\textrm{tr}(W_k)} \times \frac{n_E  k}{k  1} \end{aligned}$$where \(n_E\) and k are the data and cluster sizes, respectively. \(\textrm{tr}(B_k)\) is the trace of the betweengroup dispersion matrix, and \(\textrm{tr}(W_k)\) is the trace of the withincluster dispersion matrix defined as follows:
$$\begin{aligned} W_k = \sum _{q=1}^k \sum _{x \in C_q} (x  c_q) (x  c_q)^T,\quad B_k = \sum _{q=1}^k n_q (c_q  c_E) (c_q  c_E)^T \end{aligned}$$where \(C_q\), is the set of points in cluster q, with cluster center equal to \(c_q\). \(c_E\) is the centroid of cluster E and \(n_q\) is number of points in cluster q.

3.
Davies–Bouldin score (Davies and Bouldin 1979) is defined as the ratio between the cluster scatter and the cluster’s separation. A lower value of this metric will indicate a better clustering and it can be calculated as follows:
$$\begin{aligned} DB = \frac{1}{k} \sum _{i=1}^k \max _{i \ne j} R_{ij},\quad R_{ij} = \frac{s_i + s_j}{d_{ij}} \end{aligned}$$where \(s_i\) is the diameter of cluster i and \(d_{ij}\) is the distance between cluster centroids i and j. DB is the Davis–Bouldin index.
Results and discussion
In this section, we report the results of our experiments in two main areas: evaluation of the performance of the proposed metric by obtaining the quality of clusters in a hierarchical clustering task (Clustering Performance Evaluation), and the indepth analysis of our Schoolyard Datasets, to see how children interacted with peers and utilized the physical environment.
Clustering performance evaluation
Table 5 shows the results of the clustering performance task using Silhouette, Calinski–Harabasz, and DaviesBouldin scores in clustering CCM of pairwise relation. In pairwise relations of PG1, the geodesic proximity and temporal proximity obtained slightly higher Silhouette and Calinski–Harabasz scores, and lower Davies–Bouldin scores than spatiotemporal proximity in the three linkage matrices. The superiority of geodesic and temporal proximity might be due to the fact that most children in PG1 played with bikes across the playground, according to the field observations during the data collection. This activity uniformly increased facetoface contact with all other children across the playground, thereby making them uniformly accessible. Therefore, pairwise spatial proximity might not be influential in describing pairwise proximity for PG1. Meanwhile, in the senior group, PG2, our proposed spatiotemporal measure and temporal measure identified clusters with higher quality than geodesic proximity by obtaining higher Silhouette and CalinskiHarabasz scores. Whilst the result was not consistent for DaviesBouldin scores. This competitive result in temporal and spatiotemporal metrics indicat that, in addition to focusing on the temporal context, including the spatiotemporal contexts of interactions contributed on describing children’s social behavior and their position in the social network in PG2. The availability of a larger playground area, the tendency to play in group settings in certain areas in senior groups, and more interest in stationary activities such as sitting and chatting with peers might be the reasons why the spatial context provided a positive impact on the performance of the clustering algorithm of this playgroup, compared with PG1.
As Table 5 shows, the performance of linkage methods was inconsistent across different metrics and evaluation scores. Yet, the ‘complete’ linkage obtained the highest score in more assessments compared with the ‘average’ and ‘group average’ methods. However, it is important to note that the performance of different linkage methods can vary depending on the specific dataset and the nature of the underlying data. Therefore, to optimize clustering performance, the linkage method could be defined as a hyperparameter and optimized specifically per dataset. In the present study, we adopted the result of the ‘complete’ linkage matrix to conduct the analysis on the schoolyard dataset in the next sections of the analysis.
Overall, our results highlight the value of including the spatial context in examining individuals’ social behavior, and in assessing their position in the network.
Indepth analysis of schoolyard data
In this analysis, accessibility is defined in three dimensions: (1) geodesic proximity—\(G(v_i,v_j)\), (2) temporal proximity—\(P(v_i,v_j)\), and (3) spatiotemporal proximity—\(S(v_i,v_j)\). Each dimension provides unique knowledge on how individuals and their networks were accessible in the geodesic space, over time, and in the spatiotemporal context. Therefore, “accessibility” will heretofore refer to all three of these dimensions, throughout the rest of this paper.
As previously discussed, the CCM was used to create heatmaps, as depicted in Fig. 4 for both playgroups. The x and y axis show children from different groups in this figure. Specifically, there are two groups (A and B) in PG1 and three groups (A, B and C) in PG2 that have similar break schedules, separated by green lines. The first digit of each child’s identifier indicates their group. The results are shown as a heatmap based on the correlation coefficients matrix in all three measures (i.e., average geodesic proximity, average temporal proximity, and average spatiotemporal proximity). The grids are colored based on obtained correlation coefficients, such that blue shows negative correlations, red shows positive correlations, and white shows no correlation among pairs of children, following the color bar.
We further quantified and visualized the results of these heatmaps using the box plots to better understand the relations in each playgroup. Figure 5 shows the box plot of intergroup and crossgroup correlation of the results per proximity measure in both playgroups.
In Fig. 5a, we observed that in PG1A, the highest correlation was found in pairwise temporal proximity, compared with the other two proximity measures. Meanwhile, in group PG1B, spatiotemporal proximity scored the highest correlation, indicating that spatial context could better describe the accessibility among children of this group. In addition, the average correlation is higher in PG1A compared with PG1B among all proximity measures. This could be because of the smaller group size in PG1A. Overall, there is a positive correlation between the proximity measures of children from the same group and a negative correlation among children from different groups, except in the temporal proximity of PG1B, where the average crossgroup correlation is higher than the intergroup correlation in the boxplot. This is also illustrated in Fig. 4a, where several negative correlations (cells in blue) were observed among children in PG1B. Nonetheless, no pronounced patterns between indegree and outdegree proximity were found in this playgroup.
Figure 5b shows that in PG2, the positive and negative correlations are more uniformly distributed across intergroups and crossgroups pairs. Yet, in all three groups (A, B, and C) and across all proximity measures, the average intergroup correlation is higher than the crossgroup measures. This means that, in general, children are more accessible by peers from the same group, and it is easier to access peers from the same group in all three dimensions of geodesic, temporal, and spatiotemporal proximity. Yet, some children appear as outliers, not following the general pattern in the heatmap visualizations (e.g., A4 and B11 in PG1, A3 and C14 in PG2, as illustrated in Fig. 4).
Furthermore, the triangular patterns are more pronounced in PG2 than PG1. This shows a considerable difference between proximity towards a child from the peer group and proximity towards peers by a child. Specifically, in all three measures, children in PG2A and PG2B have a positive correlation in their indegree components (i.e., more red cells in their upper triangular heatmap). In comparison, in PG2C, the positive correlation is observed in outdegree measures (more red cells in their lower triangular heatmap). This means that the peer networks in groups A and B had quicker access to a child, compared with the child accessing the network. On the contrary, in group C, individuals had quicker access to peer groups.
Furthermore, to better understand the impact of physical space in shaping identified clusters, we extracted the GPS location of children per cluster across one of the school breaks, and visualized the kernel density estimation (KDE) of the GPS locations. KDE represents the distribution of GPS locations using a continuous probability density curve in two dimensions. The result of this analysis is depicted in Figs. 6 and 7 for PG1 and PG2, respectively.
As shown in Fig. 6, we identified four clusters via hierarchical clustering of pairwise spatiotemporal proximity. Each cluster shows how the most accessible peers within each cluster utilized the playground. As a result, in Cluster 1, children were most accessible in the communal area where most play structures were quickly reachable (e.g., climbing frame, funnel ball, sandpit, and bench). Children in Cluster 2 and Cluster 4 often played in sandpits and quickly accessed their peers playing in the same location. According to field observations, children in PG1 often attended to wheeled movements. This is observed in Cluster 1 and Cluster 3, in which children widely used the playground via wheeled mobility toys (e.g., bikes, steppers, etc.). This finding shows how the available play structures impacted children’s use of space and could determine group activities in a network.
The impact of available play structures was even more evident in PG2. In Fig. 7, hierarchical clustering of pairwise spatiotemporal proximity identified seven clusters. In Cluster 2, with the most members, children often had facetoface contact with peers around the play structures. This could, for instance, be due to using several play structures during the break (e.g., climbing frame, bench, and bar fixes) or being involved in an active game that required movements. Thus, the highly supplied area by the play structures attracted more children, and more conscious or unconscious contacts happened in this cluster. Cluster 1 and Cluster 3 belong to children who stayed around and in the climbing frame to climb, chat, or to simply observe other peers. The use of space as influenced by a specific play structure was also observed in Cluster 5 and Cluster 6, where the football field and the attached structures (i.e., table tennis, rolling game, and bar fix) were located. A higher number of clusters in this playgroup, compared with PG1, occurred due to a higher number of participants in PG2; more extensive physical space provided to this playgroup during recess; and differences in their age group, as senior grades tend to have more grouporiented activities, such as talking on a bench or table tennis, compared with junior grades.
Conclusions
The present study features a novel spatiotemporal proximity metric, which retains spatial information about the underlying temporal dynamics. The main strength of this metric, compared to the previously proposed temporal proximity metrics, lies in the ability to account for the role of the physical environment when analyzing an individual’s temporal behavior. We applied the proposed metric to a case study, in an effort to understand children’s social behavior in a schoolyard environment.
We evaluated the quality of the proposed metric by performing a downstream clustering task. Our results show that the proposed spatiotemporal metric uniquely quantified an individual’s relationships over time, concerning the spatial context of their activity. This led to better clustering performance when compared to geodesic proximity metrics that were applied to senior groups in our study. In junior groups, the spatial context did not positively impact clustering performance.
We also introduced two new datasets collected from children playing in schoolyards during recess, using wearable proximity tags and GPS loggers. We made these datasets available for other researchers to study social dynamics. In this case study, we first examined pairwise accessibility based on the calculated proximity values among children in a playgroup. Our results showed that, in general, children were more accessible to peers from the same group. Similarly, children more easily accessed peers from the same group. Second, we analyzed the impact of the physical environment and its characteristics on forming the most accessible clusters. Our findings show that in both of the playgroups we studied, the most accessible clusters utilized common areas in the playground, which were often located around one or several play structures that the schoolyard featured.
In summary, we found that application of a novel spatiotemporal proximity metric to data collected via wearable proximity sensors offered valuable insight into the spatiotemporal accessibility of children in schoolyards. The proposed method could be used to develop and evaluate targeted interventions aimed at creating a more accessible and inclusive environment, for example, by designing new play structures or interactive games aimed at increasing pairwise accessibility among all children. Moreover, the proposed method is applicable beyond schoolyards and can be used in diverse scenarios, including analyzing employee behavior in an office setting, tracking athletes’ movements on sports fields, and monitoring the wellbeing of elderly individuals in a nursing home. The present study used the proposed metric in the context of a case study at an exploratory level. Yet, making broad generalizations about children’s behavior requires a larger sample of data. Collecting a larger sample was not possible due to the COVID19 crisis, which resulted in school closure and implementing strict protocols during school reopenings, but it currently remains one of the major focuses of the research team.
One of the limitations of this research is the absence of groundtruth data due to privacy concerns and the complexity of defining “truth” for the examined variables. Specifically, in order to provide groundtruth for children’s spatiotemporal proximity, we need to know the details of their group behavior in time and space, e.g., the true values of children’s pairwise meaningful interactions, the frequency of contacts and their accurate location in the schoolyard. Thus, it is important to consider some levels of uncertainty and the potential for alternative interpretations, e.g., uncertainties in sensors operations might conclude a different picture of schoolyard activities or use of some specific areas might be due to the impact of external events such as weather conditions, etc. Another limitation in the proposed method is the time complexity of shortestpath algorithms, which is \({\mathcal {O}}(V\log {}V + E)\) for Dijkstra shortestpath algorithm, where E and V denote the number of edges and the number of nodes, respectively. Thus, it is computationally expensive to estimate the proximity metrics when the data is gathered from larger samples (higher number of users) and over a longer period of time (higher number of temporal edges). Employing shortestpath estimation algorithms and parallel computing is recommended to enhance the scalability of the proposed method for larger graphs in future research. Additional research is needed in order to understand factors contributing to an inclusive environment, to investigate how the proposed metrics describe such an environment, and to prioritize interventions using the proposed metrics in a recommender system. Moreover, future research might explore the Kinetic data structures, a data structure to track an attribute of a moving geometric system, to capture the spatiotemporal changes of moving users.
Availability of data and materials
The data presented in this study are openly available in a public repository: https://doi.org/10.34894/ZCPXDW
References
Advaith H, Adarsh S, Akshay G, Sreeram P, Sajeev G (2020) A proximity based community detection in temporal graphs. In: Proceedings of the international conference on electronics, computing and communication technologies (CONECCT), pp 1–6. IEEE
Afyouni I, Khan A, Aghbari ZA (2022) DeepEware: spatiotemporal social event detection using a hybrid learning model. J Big Data 9(1):86
Baratchi M, Meratnia N, Havinga PJ (2013) Finding frequently visited paths: dealing with the uncertainty of spatiotemporal mobility data. In: 2013 IEEE eighth international conference on intelligent sensors, sensor networks and information processing (pp 479–484). IEEE
Barnes JA, Harary F (1983) Graph theory in network analysis. Soc Netw 5(2):235–244
Bavelas A (1950) Communication patterns in taskoriented groups. J Acoust Soc Am 22(6):725–730
Bracis C, Bildstein KL, Mueller T (2018) Revisitation analysis uncovers spatiotemporal patterns in animal movement data. Ecography 41(11):1801–1811
Caliński T, Harabasz J (1974) A dendrite method for cluster analysis. Commun Stat Theory Methods 3(1):1–27
Chaix B (2020) How daily environments and situations shape behaviors and health: momentary studies of mobile sensing and smartphone survey data. Health Place 61:102241
Clevenger KA, Pfeiffer KA, Pearson AL (2022) Using linked accelerometer and GPS data for characterizing children’s schoolyard physical activity: an overview of hot spot analytic decisions with reporting guidelines. Spat Spatiotemporal Epidemiol 100548
Davies DL, Bouldin DW (1979) A cluster separation measure. IEEE Trans Pattern Anal Mach Intell 2:224–227
Dijksta EW (1959) A note on two problems in connexion with graphs. Numer Math 1(1):269–271
Ding Z, Li X, Jiang C, Zhou M (2018) Objectives and stateoftheart of locationbased social network recommender systems. ACM Comput Surv (Csur) 51(1):1–28
Franzini L, Elliott MN, Cuccaro P, Schuster M, Gilliland MJ, Grunbaum JA, Franklin F, Tortolero SR (2009) Influences of physical and social neighborhood environments on children’s physical activity and obesity. Am J Public Health 99(2):271–278
Heravi BM, Gibson JL, Hailes S, Skuse D (2018) Playground social interaction analysis using bespoke wearable sensors for tracking and motion capture. In: Proceedings of the 5th international conference on movement and computing (pp 1–8)
Kostakos V (2009) Temporal graphs. Phys A Stat Mech Appl 388(6):1007–1023
Li X, Geng S, Liu S (2022) Social network analysis on tourists’ perceived image of tropical forest park: implications for niche tourism. SAGE Open 12(1):21582440211067244
Liu Z, Zhou X, Shi W, Zhang A (2019) Recommending attractive thematic regions by semantic community detection with multisourced VGI data. Int J Geogr Inf Sci 33(8):1520–1544
Liu W, Wang B, Yang Y, Mou N, Zheng Y, Zhang L, Yang T (2022) Cluster analysis of microscopic spatiotemporal patterns of tourists’ movement behaviors in mountainous scenic areas using open GPStrajectory data. Tour Manag 93:104614
Lusher D, Robins G, Kremer P (2010) The application of social network analysis to team sports. Measu Phys Educ Exerc Sci 14(4):211–224
Montanari A, Mascolo C, Sailer K, Nawaz S (2017) Detecting emerging activitybased working traits through wearable technology. In: Proceedings of the international conference (ACM) on interactive, mobile, wearable and ubiquitous technologies (vol 1, issue 3, pp 1–24)
Müllner D (2011) Modern hierarchical, agglomerative clustering algorithms. arXiv preprint arXiv:1109.2378
Nasri M, Tsou YT, Koutamanis A, Baratchi M, Giest S, Reidsma D, Rieffe C (2022) A novel datadriven approach to examine children’s movements and social behaviour in schoolyard environments. Children 9(8):1177
Nasri M, Fang Z, Baratchi M, Englebienne G, Wang S, Koutamanis A, Rieffe C (2023) A GNNbased architecture for group detection from spatiotemporal trajectory data. In: Proceedings of the advances in intelligent data analysis (p XXI)
Rahmani HA, Aliannejadi M, Baratchi M, Crestani F (2020) Joint geographical and temporal modeling based on matrix factorization for pointofinterest recommendation. In: Proceedings of the European conference on information retrieval (pp 205–219). Springer, Berlin
Rahmani HA, Aliannejadi M, Baratchi M, Crestani F (2022) A systematic analysis on the impact of contextual information on pointofinterest recommendation. ACM Trans Inf Syst (TOIS) 40(4):1–35
Redondo RPD, GarciaRubio C, Vilas AF, Campo C, RodriguezCarrion A (2020) A hybrid analysis of LBSN data to early detect anomalies in crowd dynamics. Future Gener Comput Syst 109:83–94
Rousseeuw PJ (1987) Silhouettes: a graphical aid to the interpretation and validation of cluster analysis. J Comput Appl Math 20:53–65
Ruan L, Li C, Zhang Y, Wang H (2019) Soft computing model based financial aware spatiotemporal social network analysis and visualization for smart cities. Comput Environ Urban Syst 77:101268
Schneider S, Bolbos A, Fessler J, Buck C (2019) Deprivation amplification due to structural disadvantage? Playgrounds as important physical activity resources for children and adolescents. Public Health 168:117–127
Steiger E, De Albuquerque JP, Zipf A (2015) An advanced systematic literature review on spatiotemporal analyses of twitter data. Trans GIS 19(6):809–834
Tussyadiah IP (2012) A concept of locationbased social network marketing. J Travel Tour Mark 29(3):205–220
Valeri M, Baggio R (2020) Social network analysis: organizational implications in tourism management. Int J Org Anal 29(2):342–353
Vassakis K, Petrakis E, Kopanakis I, Makridis J, Mastorakis G (2019) Locationbased social network data for tourism destinations. In: Big data and innovation in tourism, travel, and hospitality: managerial approaches, techniques, and applications (pp 105–114)
Wang L, Geng X, Ma X, Liu F, Yang Q (2018) Crowd flow prediction by deep spatiotemporal transfer learning. arXiv preprint arXiv:1802.00386
West DB (2001) Introduction to graph theory, vol 2. Prentice Hall, Upper Saddle River
Yie KY, Chien TW, Yeh YT, Chou W, Su SB (2021) Using social network analysis to identify spatiotemporal spread patterns of COVID19 around the world: online dashboard development. Int J Environ Res Public Health 18(5):2461
Yoon H, Zheng Y, Xie X, Woo W (2010) Smart itinerary recommendation based on usergenerated GPS trajectories. In: Proceedings of the international conference on the ubiquitous intelligence and computing (UIC), pp 19–34. Springer, Berlin
Zheng VW, Zheng Y, Xie X, Yang Q (2010) Collaborative location and activity recommendations with GPS history data. In: Proceedings of the international conference on world wide web (pp 1029–1038)
Zheng Y (2011) Locationbased social networks: users. In: Computing with Spatial Trajectories (pp 243–276). Springer, New York
Acknowledgements
We want to thank the participating schools, teachers, parents and above all, the children participating in this study. We also want to thank LisaMaria van Klaveren for organizing the data collection assessments. Lastly, we want to thank Jennifer Schoerke for correcting our English, and her edits have definitely improved this manuscript.
Funding
This paper represents independent research funded by the Dutch Research Council (NWO, grant number: AUT.17.007) and LeidenDelftErasmus Centre for BOLD Cities (Grant number: BC20191).
Author information
Authors and Affiliations
Contributions
MN and YTT contributed to data acquisition and preparation; MN and MB contributed to data analysis and interpretations; CR, AK, MB, and SG made funding acquisition; MN contributed to writing the software and writing the original draft; YTT, AK, SG, MB, and CR in writing, review and editing; AK, MB, SG, and CR in supervising; MN, YTT, AK, MB, SG, and CR in designing the methodology; All authors have read and agreed to the published version of the manuscript.
Corresponding author
Ethics declarations
Ethics approval and consent to participate
Informed consent was obtained from all children’s parents involved in the study before the test procedures. The informed consent form and the research protocol were approved by the Psychology Research Ethics Committee of Leiden University (V22428date 04 June 2020; V32685date 24 October 2020).
Competing interests
No competing interest were reported. This paper represents independent research partfunded by the Dutch Research Council (NWO) and LeidenDelftErasmus Centre for BOLD Cities.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Nasri, M., Baratchi, M., Tsou, YT. et al. A novel metric to measure spatiotemporal proximity: a case study analyzing children’s social network in schoolyards. Appl Netw Sci 8, 50 (2023). https://doi.org/10.1007/s41109023005716
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s41109023005716
Keywords
 Spatiotemporal graph
 Wearables
 Social network