Neighbourhood matching creates realistic surrogatetemporal networks

Antonio Longa, Giulia Cencetti, Sune Lehmann, Andrea Passerini, Bruno LepriResearch Square 2022

Abstract

Temporal networks are essential for modeling and understanding systems whose behavior varies in time, from social interactions to biological systems. Often, however, real-world data are prohibitively expensive to collect or unshareable due to privacy concerns. A promising solution is ‘surrogate networks’, synthetic graphs with the properties of real-world networks. Until now, the generation of realistic surrogate temporal networks has remained an open problem, due to the difficulty of capturing both the temporal and topological properties of the input network, as well as their correlations, in a scalable model. Here, we propose a novel and simple method for generating surrogate temporal networks. By decomposing graphs into temporal neighborhoods surrounding each node, we can generate new networks using neighborhoods as building blocks. Our model vastly outperforms current methods across multiple examples of temporal networks in terms of both topological and dynamical similarity. We further show that beyond generating realistic interaction patterns, our method is able to capture intrinsic temporal periodicity of temporal networks, all with an execution time lower than competing methods by multiple orders of magnitude.

Introduction

Temporal networks, where connections between nodes evolve over time, are critical for studying dynamic phenomena such as the spread of infectious diseases or information flow in social systems. However, high-quality real-world data is often difficult to access due to privacy regulations or the high cost of longitudinal data collection. Surrogate networks—synthetic datasets that mimic the statistical properties of real ones—provide a vital alternative for researchers.

Existing generative models often struggle to balance topological accuracy with temporal realism. Global models frequently fail to scale to large datasets, while deep-learning-based approaches may miss the inherent "rhythms" or periodicity of human interactions. To address these challenges, we introduce the Egocentric Temporal Neighborhood Generator (ETN-gen), a scalable algorithm that reconstructs global network dynamics from local interaction patterns.

Methods

The core innovation of ETN-gen is its shift from a global perspective to an "egocentric" one. The algorithm operates through a four-stage pipeline:

  1. Decomposition: The network is decomposed into egocentric temporal neighborhoods (ETNs) for each node over a short sliding time window.
  2. Linearization: These neighborhoods are encoded into unique binary signatures. This transforms complex graph-matching into efficient bit-vector comparisons, drastically reducing computational overhead.
  3. Probabilistic Modeling: The model analyzes a source dataset to build local probability distributions of how these signatures evolve, capturing the likelihood of transition from one neighborhood state to another.
  4. Generation and Validation: To create a new network, the model samples these distributions to generate provisional connections. A validation process then resolves conflicts between nodes to ensure a consistent global graph.
Overview of the ETN-gen pipeline: from neighborhood decomposition to validated network generation.

Key Results

ETN-gen was evaluated against state-of-the-art competitors (Dymond, STM, and TagGen) across diverse datasets, including face-to-face interactions in schools and hospitals, as well as communication logs.

Superior Accuracy and Realism

ETN-gen consistently achieved the highest structural accuracy, maintaining the lowest Kolmogorov-Smirnov distances across multiple topological metrics like clustering coefficients and path lengths. Furthermore, when simulating dynamical processes such as SIR disease spreading models, ETN-gen surrogates produced results remarkably close to the original data, whereas competing models often showed significant deviations.

Unprecedented Scalability

The linearization of neighborhoods allows ETN-gen to run up to three orders of magnitude faster than existing methods. For instance, in a benchmark using a high school dataset, ETN-gen completed the task in 22 seconds, while the nearest competitor required nearly 89 hours. This efficiency makes it uniquely capable of generating large-scale synthetic networks or extending short-term datasets into long-term simulations.

Conclusion

By focusing on local, egocentric neighborhoods, ETN-gen provides a simple yet powerful framework for creating realistic surrogate temporal networks. Its ability to capture temporal periodicity and maintain dynamical realism, combined with its massive speed advantage, positions it as a leading tool for data augmentation and privacy-preserving network research. Future developments may include incorporating preferential attachment to further refine higher-order topological features like degree assortativity.

Summary updated

BibTeX
@inproceedings{longa2022neighbourhood,
  author = {Antonio Longa and Giulia Cencetti and Sune Lehmann and Andrea Passerini and Bruno Lepri},
  title = {{Neighbourhood matching creates realistic surrogatetemporal networks}},
  booktitle = {Research Square},
  year = {2022},
  doi = {10.21203/rs.3.rs-1638968/v1},
}
Figure