A temporal graph dissimilarity measure capturing epidemic spreading behavior
Organizations: ISI Foundation, Turin, Italy · Politecnico di Torino, Turin, Italy · Aix Marseille Univ, Univ Toulon, CNRS, CPT, Turing Center for Living Systems, Marseille, France
Abstract
Comparing temporal networks is a challenging problem in network analysis. Commonly adopted methods compare structural properties of temporal graphs and can be highly sensitive to the pre-selected features. However, temporal networks are the support of dynamical processes, and a process may take place in statistically indistinguishable ways on structurally different temporal graphs. In particular, a dissimilarity measure that compares temporal graphs based on how spreading processes unfold on them is highly desirable. In this work, we first define the Time-Shift DTW, a dissimilarity between epidemic curves that accounts for both differences in their shape and temporal shifts. We then introduce Epidemic-Aware Temporal Graph Dissimilarity (EATGD), a deterministic and differentiable dissimilarity between temporal graphs that combines an embedding-based temporal graph distance with a set of topological and temporal features. Its parameters are calibrated using stochastic SIR simulations to maximize the correlation with the Time-Shift DTW, after which graph comparisons require no further epidemic simulations. Using empirical human proximity networks from the SocioPatterns collaboration and synthetic temporal graphs, we show that EATGD captures epidemic-based graph dissimilarity and generalizes across heterogeneous network settings. Its differentiability and computational efficiency make EATGD suitable for integration into machine-learning pipelines and provide a potential loss function for training generative models to reproduce epidemic dynamics without requiring an exact reconstruction of fine-grained network structure.
Figures & tables
| Category | Name | Definition |
| Topological | avg_strength | Average node strength |
| std_strength | Standard deviation of strength across nodes | |
| weighted_clustering | Average fraction of closed triangles per node | |
| assortativity | Degree assortativity coefficient | |
| community_entropy | Quantifies the strength of a community structure | |
| n_nodes | Number of nodes |
| Context | Description | Nodes | Duration |
|---|---|---|---|
| Primary School [ 43 ] | Students and teachers from a primary school | 242 | 2 days |
| High School 1 [ 44 ] | Students and teachers from a high school | 126 | 4 days |
| High School 2 [ 44 ] | Students from a high school | 180 | 7 days |
| High School 3 [ 45 ] | Students from a high school | 327 | 5 days |
| Conference [ 46 ] | Participants in a scientific conference | 405 | 2 days |
| Office [ 46 ] | Workers in an office | 232 | 10 days |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
Dynamic Time Warping
Dynamic Time Warping aligns sequences with nonlinear timing differences to compare, classify, or transform time-series data.
See all 14 papers