Efficient Temporal Pattern Mining in Big Time Series Using Mutual Information - Full Version

Van Long Ho, Nguyen Ho, Torben Bach Pedersen

Overview

This paper introduces FTPMfTS, an end-to-end framework designed to mine frequent temporal patterns from massive time series data. By integrating a hierarchical graph-based algorithm (HTPGM) with a novel pruning strategy based on Mutual Information (MI), the authors achieve a speedup of up to two orders of magnitude over existing state-of-the-art methods while maintaining high accuracy.

The Challenge of Temporal Pattern Mining

Traditional sequential pattern mining typically identifies simple "A follows B" relationships. However, complex systems—such as smart grids, traffic networks, or industrial sensors—require Temporal Pattern Mining (TPM) to capture more nuanced interval-based relationships. These include whether one event occurs during another or if two events overlap in time.

Temporal relations: Follows, Contains, and Overlaps.

The primary obstacle is computational complexity. The addition of temporal intervals expands the search space exponentially, specifically $O(m^h 3^{h^2})$, where $m$ is the number of events and $h$ is the pattern length. Existing solutions often struggle to scale to "Big Data" volumes or require pre-processed logs, leaving a gap in processing raw sensor data.

The FTPMfTS Framework

The proposed framework utilizes a two-phase approach to bridge the gap between raw data and temporal insights:

  1. Data Transformation: Raw time series are converted into symbolic representations (e.g., using SAX). To ensure patterns occurring across data window boundaries are not lost, the authors implement a splitting strategy with overlapping sequences.
  2. Hierarchical Temporal Pattern Graph Mining (HTPGM):
    • Exact Mining: Uses a hierarchical graph (HPG) and bitmap indexing for rapid support and confidence calculations. It prunes the search space using the Apriori principle and the logical transitivity of temporal relations.
  3. Approximate Mining (A-HTPGM): This core innovation uses Normalized Mutual Information (NMI) to measure correlation between time series. The authors mathematically derived a lower bound for pattern confidence based on MI, allowing the algorithm to prune uncorrelated series early.

Real-World Application and Results

The framework was evaluated using diverse datasets, including residential energy usage (NIST, UKDALE), smart city data (NYC weather and collisions), and American Sign Language annotations.

Example of time series data: CO2 intensity vs. water boiler usage.

Key results from the study include:

  • Performance: The exact HTPGM algorithm outperformed baselines by 3x to 23x. The approximate A-HTPGM version was up to 100x faster on large-scale datasets.
  • Efficiency: HTPGM demonstrated superior memory management, often using 4x to 10x less memory than competitors due to efficient indexing.
  • Accuracy: Despite the aggressive pruning, A-HTPGM maintained over 95% accuracy at high support/confidence thresholds.
  • Scalability: While baseline methods often timed out or crashed when handling 1,000+ time series, A-HTPGM scaled linearly.

Conclusion and Future Directions

The "Correlation Heuristic" introduced in this paper proves that Mutual Information is a powerful proxy for temporal pattern discovery. While current pruning occurs at the series level, future work aims to implement event-level pruning for even finer control over the speed-accuracy trade-off. This framework represents a significant step forward in making complex temporal mining feasible for massive, real-world sensor networks.

Summary updated

BibTeX
@article{ho2021efficient,
  author = {Van Long Ho and Nguyen Ho and Torben Bach Pedersen},
  title = {{Efficient Temporal Pattern Mining in Big Time Series Using Mutual Information - Full Version}},
  journal = {Proc. VLDB Endow.},
  year = {2021},
  doi = {10.14778/3494124.3494147},
}
Figure