A Dirichlet Mixture Model of Hawkes Processes for Event Sequence Clustering

Hongteng Xu, Hongyuan Zha

TL;DR

The paper introduces the Dirichlet Mixture model of Hawkes Processes (DMHP), a novel model-based framework for clustering asynchronous, continuous-time event sequences. By integrating Hawkes processes with a Dirichlet prior and optimizing the inference via an open-loop control strategy, DMHP directly learns cluster structures without relying on error-prone, two-stage feature extraction pipelines.

What Problem Does This Paper Address?

Clustering sequential data is a cornerstone of modern data science, with applications ranging from patient health tracking to user recommendation systems. However, real-world event sequences—like a patient moving between hospital care units or a user watching IPTV programs—are inherently irregular and asynchronous, making them difficult to represent.

Traditional clustering methods typically discretize continuous time into fixed bins or use a two-stage approach: first extracting parametric/nonparametric features from the sequences, and then applying a standard clustering algorithm like a Gaussian Mixture Model. This two-stage pipeline suffers from two major flaws:

  1. High Overfitting Risk: Modeling each sequence individually requires a massive number of parameters.
  2. Sensitivity to Feature Quality: The clustering step is entirely decoupled from the feature extraction step, meaning poor feature representations lead to chaotic and over-segmented clusters.

The authors tackle this challenge by proposing an end-to-end, model-based clustering approach that treats the entire sequence as a realization of a cluster-specific point process.

Methods

The authors introduce DMHP (Dirichlet Mixture model of Hawkes Processes). The core components of their methodology include:

  • Generative Mixture Model: Each event sequence is assumed to be generated by one of $K$ possible clusters. Each cluster is modeled as a multi-dimensional Hawkes process—a self- and mutually-triggering point process where past events influence the probability of future ones. The cluster assignments are governed by a Dirichlet prior.
  • Basis Function Representation: To keep the model flexible yet tractable, the impact functions (which dictate how past events trigger future ones) are represented using a linear combination of Gaussian basis functions.
  • Nested Variational EM Framework: Learning the model parameters requires a nested Expectation-Maximization (EM) algorithm. The outer loop updates cluster responsibilities (E-step) and parameters (M-step), while the inner loop iteratively optimizes the Hawkes process parameters.
  • Open-Loop Control for Iteration Allocation: A key algorithmic innovation is the use of open-loop control theory to adaptively allocate the number of inner EM iterations. Instead of fixing the number of inner loops, the algorithm dynamically decides whether to continue optimizing parameters or to jump back and update cluster responsibilities, significantly accelerating convergence.
  • Local Identifiability Proof: The authors provide a mathematical proof demonstrating that their mixture model is locally identifiable, ensuring that the learned parameters are unique and well-defined.

Datasets

The model was evaluated on both synthetic benchmarks and two large-scale, real-world datasets:

  1. Synthetic Data: Sequences generated via Hawkes processes using both sine-like and piecewise constant impact functions to test robustness against model misspecification.
  2. ICU Patient Flow Data (MIMIC II): Contains the transition records of 30,308 patients moving between various intensive care units.
  3. IPTV User Data: Contains the viewing logs of 7,100 users across 16 different TV program categories over a continuous time domain.

Key Insights and Ideas

  • End-to-End Joint Learning: By optimizing the clustering assignments and the Hawkes process parameters simultaneously, DMHP forces the model to learn features that are explicitly useful for discrimination, leading to cleaner cluster definitions.
  • Dynamic Iteration Allocation: Frame optimization as a control problem. In the early stages of training, cluster responsibilities are highly uncertain. Spending too many inner iterations optimizing parameters based on wrong cluster assignments leads to bad local optima. The open-loop control strategy naturally favors fewer inner iterations early on, updating responsibilities more frequently when it matters most.
Figure 1: Comparison for various inner iteration allocation strategies on different synthetic data sets. Each curve is the average of 5 trials’ results. In each trial, total 100 inner iterations are applied. The increasing (decreasing) strategy changes the number of inner iterations from 2 to 8 (from 8 to 2). The constant strategy fixes the number to 5.
  • Robustness to Misspecification: Even when evaluated on data generated by piecewise constant functions (which cannot be perfectly matched by DMHP's Gaussian basis functions), DMHP still drastically outperformed feature-based alternatives, proving its structural robustness.

Key Results

  • Clustering Purity: On synthetic data with 5 clusters, DMHP achieved a clustering purity of 0.9055 (sine-like) and 0.6774 (piecewise constant), vastly outperforming its closest competitor, MMHP+DPGMM, which scored 0.4656 and 0.3245 respectively.
  • Real-World Consistency: On the ICU and IPTV datasets, DMHP achieved the highest clustering consistency scores (0.3778 and 0.2004), proving that its cluster assignments remain stable across random data splits.
  • Interpretability: While baseline methods over-segmented the ICU data into over 20 chaotic clusters, DMHP discovered a compact set of 6 highly structured clusters. The resulting infectivity matrices clearly map out distinct, sparse patient transition patterns that are easily interpretable by medical administrators.

Limitations and Future Work

While DMHP demonstrates excellent performance, the authors note a few areas for improvement:

  • Cluster Number Estimation: The current method relies on heuristic MCMC merge/split moves to adjust the number of clusters ($K$). The authors suggest exploring Determinantal Point Processes (DPP) as a prior to more elegantly estimate $K$.
  • Infinite Mixtures: The framework could be extended into a true infinite mixture model ($K \to \infty$) using advanced Bayesian nonparametric techniques.

Summary updated

Abstract

We propose an effective method to solve the event sequence clustering problems based on a novel Dirichlet mixture model of a special but significant type of point processes --- Hawkes process. In this model, each event sequence belonging to a cluster is generated via the same Hawkes process with specific parameters, and different clusters correspond to different Hawkes processes. The prior distribution of the Hawkes processes is controlled via a Dirichlet distribution. We learn the model via a maximum likelihood estimator (MLE) and propose an effective variational Bayesian inference algorithm. We specifically analyze the resulting EM-type algorithm in the context of inner-outer iterations and discuss several inner iteration allocation strategies. The identifiability of our model, the convergence of our learning method, and its sample complexity are analyzed in both theoretical and empirical ways, which demonstrate the superiority of our method to other competitors. The proposed method learns the number of clusters automatically and is robust to model misspecification. Experiments on both synthetic and real-world data show that our method can learn diverse triggering patterns hidden in asynchronous event sequences and achieve encouraging performance on clustering purity and consistency.
BibTeX
@inproceedings{xu2017dirichlet,
  author = {Hongteng Xu and Hongyuan Zha},
  title = {{A Dirichlet Mixture Model of Hawkes Processes for Event Sequence Clustering}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
}
Figure