Hostname: page-component-74656f9884-c52kr Total loading time: 0 Render date: 2026-11-07T04:40:58.241Z Has data issue: false hasContentIssue false

Toward random walk-based clustering of variable-order networks

Published online by Cambridge University Press:  22 December 2022

Julie Queiros*
Affiliation:
Nantes Université, Ecole Centrale Nantes, CNRS, LS2N, UMR 6004, F-44000, Nantes, France
Célestin Coquidé
Affiliation:
Nantes Université, Ecole Centrale Nantes, CNRS, LS2N, UMR 6004, F-44000, Nantes, France
François Queyroi
Affiliation:
Nantes Université, Ecole Centrale Nantes, CNRS, LS2N, UMR 6004, F-44000, Nantes, France
*
*Corresponding author. Email: julie.queiros@univ-nantes.fr
Rights & Permissions [Opens in a new window]

Abstract

Higher-order networks aim at improving the classical network representation of trajectories data as memory-less order $1$ Markov models. To do so, locations are associated with different representations or “memory nodes” representing indirect dependencies between visited places as direct relations. One promising area of investigation in this context is variable-order network models as it was suggested by Xu et al. that random walk-based mining tools can be directly applied on such networks. In this paper, we focus on clustering algorithms and show that doing so leads to biases due to the number of nodes representing each location. To address them, we introduce a representation aggregation algorithm that produces smaller yet still accurate network models of the input sequences. We empirically compare the clustering found with multiple network representations of real-world mobility datasets. As our model is limited to a maximum order of $2$, we discuss further generalizations of our method to higher orders.

Information

Type
Research Article
Copyright
© The Author(s), 2022. Published by Cambridge University Press
Figure 0

Figure 1. Example of inputs and variable-order networks representing dependencies when visiting locations $\mathcal{A}=\{a,b,c,d,e,f\}$. When looking at successive pairwise interaction of set $\mathcal{S}$ in (a) a natural representation is the first-order network (c). However, we can identify second-order dependencies in (b). For instance, when coming from $a$ the flow tends to either return to $a$ or go to $b$ after visiting $e$. The VON$_2$ network in (d) only includes relevant dependencies. Subsequence $de$ is not relevant extension of the sequence $e$ since knowing we visited $d$ before $e$ does not impact the prediction of next visited location. Second-order nodes are displayed as gray rectangles. The set $\mathcal{V}(e)=\{ae,be,ce,e\}$ of nodes are representations of the location $e$. In our aggregated model (e), multiple representations can be merged if they correspond to similar distributions. Here, the probability distribution $P_{ae}$ is close enough to $P_{be}$ to justify using this smaller model. Node $(a\cup b)e$ encodes the event “the traveler came either from $a$ or $b$ before visiting $e$.”

Figure 1

Figure 2. 2 Cliques example. Assume a graph (a) made of two cliques $\{v,a,b,c\}$ and $\{v,d,e\}$. The sequences $\mathcal{S}$ are constructed as follows: a traveler picks any outgoing edge at random. However, if it reaches $v$, it will return to another node of the clique it came from. The network VON$_2(\mathcal{S})$(b) then includes one representation of $v$ for each other node, and all edges leaving the same node have the same weight. In MIN-VON$_2(\mathcal{S})$(b) the representations of $v$ are merged according to the known flow dynamic and include only two representations of $v$. The color indicates the partition that should be found by the clustering algorithm. When projecting on the locations, $v$ will be found in $3$ clusters ($1$ is trivial).

Figure 2

Algorithm 1: Merge second-order representations of v

Figure 3

Figure 3. NMI between Infomap clustering found for each test case and the ground-truth clustering as generated by the LFR benchmark. A value of $1$ indicates a perfect identification of the real clusters (). Each boxplot corresponds to the distribution over $50$ tests.

Figure 4

Table 1. Difference in number of representations in the LFR benchmark for networks VON$_2$ and MIN-VON$_2$

Figure 5

Figure 4. Cumulative distribution of the number of representations $N_{\mathcal{V}}$ (left column) and clusters $N_{\mathcal{C}}$ (right column) for locations. For each panel, $y(x)$ gives the ratio of location having at most $x$ representations/found in at most $x$ clusters. Note that the $y$-axis range varies among the panels.

Figure 6

Table 2. Network’s model accuracy comparison

Figure 7

Table 3. Clustering results comparison

Figure 8

Table 4. NMI between clusterings found with VON$_2$, agg VON$_2$, and FON$_2$

Figure 9

Figure 5. Example of ambiguous case when trying to build the aggregated network when representations of order greater than $2$ exist. We assume distributions $P_{db}$ and $P_{ab}$ are similar. In this context, merging the corresponding nodes together will break the relation $ab \rightarrow abc$ that is required to encode this third-order representation of $c$.

Figure 10

Table 5. Summary table for notations