Source Detection in Hypergraph Epidemic Dynamics using a Higher-Order Dynamic Message Passing Algorithm

Qiao Ke, Naoki Masuda, Zhen Jin, Chuang Liu, Xiu-Xiu ZhanarXiv 2025 · DOI

Abstract

Identifying the origin of an outbreak—the "patient zero"—is a critical task in epidemiology. While traditional models focus on pairwise interactions, many real-world contagions spread through group settings such as classrooms or public transport. This paper presents the Higher-order Dynamic Message Passing modulated with Neighbor infection probability (HDMPN) algorithm, designed specifically for hypergraph structures. By integrating dynamic message passing with a local neighbor infection probability metric, HDMPN significantly improves source detection accuracy over existing centrality-based and network-level methods.

Introduction

The spread of infectious diseases is often modeled as a network of pairwise contacts. However, this simplification fails to capture the "higher-order" nature of human interactions, where groups of individuals interact simultaneously. Hypergraphs, where hyperedges can connect any number of nodes, provide a more accurate mathematical framework for these dynamics. Detecting the source of an infection in such structures is an NP-hard problem, further complicated by the non-linear spreading patterns inherent in higher-order systems. The authors aim to bridge this gap by creating a dedicated algorithm that accounts for these group-based infection mechanisms.

Methodology: The HDMPN Algorithm

The authors propose HDMPN, which builds upon the Susceptible-Infectious (SI) model adapted for hypergraphs. In this model, an infectious node can infect all susceptible members of a shared hyperedge with a certain probability. The algorithm consists of three primary stages:

  1. Dynamic Message Passing (DMP): The framework calculates the probability of each node $v_k$ being in state $S$ (susceptible) or $I$ (infectious) at time $T$, given a candidate source $v_i$. This avoids the computational cost of exhaustive simulations.
  2. Neighbor Infection Probability ($\rho_i$): This is the core innovation. The algorithm calculates the fraction of a candidate source's neighbors that are infected at the final observation time. The intuition is that a true source is likely to have a high density of infected neighbors in its immediate higher-order vicinity.
  3. Source Identification: The final likelihood is determined by multiplying the HDMP probability by the neighbor infection probability. The node that maximizes this product is identified as the most likely source.
The workflow of the HDMPN algorithm, illustrating the transition from hypergraph dynamics to source identification.

Despite the complexity of hypergraph interactions, the algorithm maintains a time complexity of $O(N^2 T)$, making it significantly more efficient than brute-force Monte Carlo simulations for networks of moderate size. To facilitate the mathematical implementation, the authors define several key variables related to node states and hyperedge interactions.

Summary of notations and definitions used in the HDMPN framework.

Experimental Evaluation

The HDMPN algorithm was tested against synthetic models and empirical datasets to ensure robustness:

  • Synthetic Models: Erdős-Rényi Hypergraphs (ERH), Scale-free Hypergraphs (SFH), and the HyperCL Model (HCL).
  • Empirical Datasets: User interactions on MathOverflow (Algebra), Yelp restaurant reviews (Restaurant-Rev), and chemical drug components (NDC-classes).

Performance was compared against benchmarks such as Higher-order Closeness Centrality (HCC), Betweenness Centrality (HBC), and standard simulation-based methods (HMCSM).

Key Results

  • Superior Accuracy: HDMPN consistently outperformed standard HDMP and centrality-based heuristics across all datasets. The inclusion of the neighbor infection probability ($\rho_i$) proved crucial in filtering out false positives—nodes that might look like sources due to random noise but lack the local "footprint" of a true origin.
  • Robustness to Time: While accuracy naturally declines as an epidemic progresses and more nodes become infected, HDMPN maintains a higher performance floor compared to traditional methods, particularly in the early-to-mid stages of an outbreak.
  • Ranking Performance: Even when the algorithm did not pick the exact source, the true source was almost always ranked very high in the list of candidates, significantly outperforming centrality-based heuristics.

Conclusion and Future Work

HDMPN represents a significant step forward in source localization for higher-order dynamics. By accounting for local group structures, it overcomes the limitations of pairwise network models. However, the current framework assumes complete observation of node states. Future research will focus on adapting the algorithm for SIR (Recovery) or SEIR (Incubation) models and improving scalability for massive datasets where only partial observations are available.

Summary updated

BibTeX
@misc{ke2025source,
  author = {Qiao Ke and Naoki Masuda and Zhen Jin and Chuang Liu and Xiu-Xiu Zhan},
  title = {{Source Detection in Hypergraph Epidemic Dynamics using a Higher-Order Dynamic Message Passing Algorithm}},
  year = {2025},
  eprint = {2507.02523},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.02523},
}
Figure