Distributed Seasonal Temporal Pattern Mining

Van Ho-Long, Nguyen Ho, Anh-Vu Dinh-Duc, Ha Manh Tran, Ky Trung Nguyen, Tran Dung Pham, Quoc Viet Hung NguyenarXiv 2025 · OpenReview

Abstract: The explosive growth of IoT-enabled sensors is producing enormous amounts of time series data across many domains, offering valuable opportunities to extract insights through temporal pattern mining. Among these patterns, an important class exhibits periodic occurrences, referred to as seasonal temporal patterns (STPs). However, mining STPs poses challenges, as traditional measures such as support and confidence cannot capture seasonality, and the lack of the anti-monotonicity property results in an exponentially large search space. Existing STP mining methods operate sequentially and therefore do not scale to large datasets. In this paper, we propose the Distributed Seasonal Temporal Pattern Mining (DSTPM), the first distributed framework for mining seasonal temporal patterns from time series. DSTPM leverages efficient data structures, specifically distributed hierarchical lookup hash structures, to enable efficient computation. Extensive experimental evaluations demonstrate that DSTPM significantly outperforms sequential baselines in runtime and memory usage, while scaling effectively to very large datasets.

Introduction

As IoT sensors proliferate, the volume of time-series data generated is overwhelming traditional analysis methods. A critical task in this domain is identifying Seasonal Temporal Patterns (STPs)—complex sequences of events that recur at regular intervals, such as specific environmental conditions preceding health crises.

Mining these patterns is computationally intensive for three primary reasons. First, traditional "support" metrics fail to capture the regularity of occurrences. Second, the search space for temporal relations (overlaps, contains, follows) is exponentially larger than simple itemsets. Finally, seasonality lacks the anti-monotonicity property (the Apriori property), meaning a sub-pattern might not be seasonal even if the larger pattern it belongs to is. This "Pruning Paradox" typically forces algorithms to check every possible combination, which is infeasible at scale.

The DSTPM Framework

To address these challenges, we introduce DSTPM, a distributed algorithm built on Apache Spark. The framework introduces two key innovations to restore efficiency and scalability.

Pruning with the maxSeason Measure

To overcome the lack of anti-monotonicity in seasonality, we utilize a proxy measure called maxSeason. Unlike seasonality itself, maxSeason is anti-monotonic. By acting as a mathematical "gatekeeper," it allows the system to safely discard infrequent event groups early in the process without missing true seasonal patterns, effectively restoring the pruning capabilities of classical data mining algorithms.

Distributed Hierarchical Lookup Hash (DHLH)

To manage data across a cluster, DSTPM employs a multi-level hash structure known as DHLH. Level 1 ($DHLH_1$) maps event symbols to specific time granules, while Level k ($DHLH_k$) stores candidate k-event patterns and their temporal relationships. This structure enables fast iterative verification across distributed nodes.

The Distributed Hierarchical Lookup Hash (DHLH) architecture for single and k-event patterns.

Experimental Evaluation

Data Representation and Granularity

The framework treats time as a series of discrete "granules" (e.g., 5-minute blocks). This discretization allows the system to define "nearness" and "seasons" mathematically. The table below illustrates how raw temporal sequences are mapped into these granules for processing.

Discretization of temporal sequences into granules (G1-G14) for pattern mining.

Performance Results

We evaluated DSTPM using four real-world datasets (Renewable Energy, Smart City traffic, Influenza records, and HFM) and large-scale synthetic datasets containing up to 1 million sequences. Key findings include:

  • Speed: DSTPM achieved speedups ranging from 3.7x to 8.5x (averaging 5.2x) over sequential baselines.
  • Memory Efficiency: The distributed approach used 2.1x to 4.7x less memory per node than sequential versions.
  • Scalability: DSTPM demonstrated strong horizontal scaling, effectively handling massive synthetic datasets that would cause single-machine implementations to fail.
  • Pattern Discovery: The algorithm successfully identified intuitive patterns, such as "Strong Wind" and "Heavy Rain" leading to "High Congestion" in urban traffic data during specific seasonal windows.

Conclusion

DSTPM represents the first distributed framework specifically designed for mining seasonal temporal patterns. By leveraging the maxSeason measure and DHLH structures, it overcomes the traditional bottlenecks of search space explosion and lack of anti-monotonicity. Future work will explore approximate mining methods to further enhance speed for ultra-scale datasets and automated pruning techniques to reduce initial computational loads.

Summary updated

BibTeX
@misc{holong2025distributed,
  author = {Van Ho-Long and Nguyen Ho and Anh-Vu Dinh-Duc and Ha Manh Tran and Ky Trung Nguyen and Tran Dung Pham and Quoc Viet Hung Nguyen},
  title = {{Distributed Seasonal Temporal Pattern Mining}},
  year = {2025},
  eprint = {2511.12216},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.12216},
}
Figure