Dynamic Mixture Models for Multiple Time-Series

Xing Wei, Jimeng Sun, Xuerui Wang

Introduction

In our increasingly instrumented world, we are flooded with "co-evolving" data streams, such as hundreds of sensors in a water distribution system or a large-scale data center. Analyzing these streams presents three major challenges for facility managers and researchers alike. First, manual overhead is significant; most monitoring tools require experts to set individual thresholds for every stream, failing to capture inter-stream correlations. Second, traditional matrix decomposition methods like Singular Value Decomposition (SVD) often yield negative coefficients for hidden variables, which are physically meaningless in contexts like chlorine concentration. Finally, popular probabilistic models like Latent Dirichlet Allocation (LDA) assume data points are "exchangeable," ignoring the critical temporal order of time-series data.

This paper introduces Dynamic Mixture Models (DMMs), a probabilistic framework designed to discover patterns in multiple co-evolving time series. DMMs capture short-term dependencies through a Markovian latent variable structure, providing highly interpretable and accurate summaries of complex data streams while avoiding the pitfalls of non-physical negative values.

Methods

The authors propose the Dynamic Mixture Model (DMM), which adapts the generative "topic model" structure of LDA for temporal data. In this framework, each time snapshot is treated like a "document," and the values across different sensors are treated like "word counts."

Plate notation for the Dynamic Mixture Model (DMM) showing the temporal chain of latent variables.

The key innovation lies in the temporal engine:

  • Markov Assumption: The mixture of hidden patterns at time $t$ (represented by $\theta_t$) is directly dependent on the mixture at time $t-1$.
  • Dirichlet Transitions: To avoid negative values, DMM uses a Dirichlet distribution to model transitions between time steps. The distribution is defined such that the expected state at time $t$ matches the state at $t-1$, with a "precision" parameter ($\psi$) controlling the rate of change.
  • Efficient Inference: To accommodate high-speed data streams, the authors utilize an "iterated sampling" procedure. This allows the model to update incrementally as new data arrives without the need to re-process the entire historical dataset.

Experimental Evaluation

The model was evaluated on two distinct sensor datasets:

  1. Chlorine Concentrations: A simulated but realistic dataset from EPANET2.0, tracking chlorine levels at 166 junctions in a water network over 15 days (4,310 time stamps).
  2. Light Measurements: Real-world data from Berkeley Mote sensors capturing light intensity in a laboratory environment over one month.

Key Results and Insights

The DMM demonstrated several advantages over static models and traditional decomposition techniques. Unlike SVD, where shuffling time samples does not change hidden variables, DMM is sensitive to sequence, which is essential for time-series analysis. Furthermore, the hidden variables discovered by DMM map directly to physical reality; in the chlorine data, one variable captured the global daily cycle, while another captured the phase shift—the time required for water to travel from the reservoir to distant sensors.

Comparison between source data and DMM reconstruction, demonstrating high fidelity with massive compression.

Major findings include:

  • Massive Compression: For the chlorine dataset, DMM summarized 166 individual streams into just two hidden variables with negligible loss in reconstruction quality.
  • Superior Accuracy: DMM achieved a significantly lower reconstruction error ($p < 1e-20$) compared to static mixture models like LDA by effectively "guessing" the current state based on the previous one.
  • Anomaly and Source Detection: The model naturally highlighted sensors near the water reservoir by assigning them higher "mass" in the hidden variables, proving useful for understanding network topology.

Conclusion and Future Work

DMM provides a mathematically rigorous and physically intuitive approach to streaming data analysis. While the current model performs well, future work will focus on scaling the iterated sampling for even higher-velocity datasets and exploring alternative distributions to capture different types of temporal dependencies. Additionally, optimizing the discretization of continuous sensor data remains an open challenge for topic-modeling approaches in this domain.

Summary updated

BibTeX
@inproceedings{wei2007dynamic,
  author = {Xing Wei and Jimeng Sun and Xuerui Wang},
  title = {{Dynamic Mixture Models for Multiple Time-Series}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2007},
}
Figure