Effective Temporal Dependence Discovery in Time Series Data

Qingchao Cai, Zhongle Xie, Gang Chen, H. V. Jagadish, Beng Chin Ooi, Meihui Zhang

TL;DR

This paper introduces "recurrent cohort analysis," a novel framework for discovering temporal dependencies in user behavior over time. It overcomes limitations of traditional cohort analysis by allowing for multiple, flexible "birth events" and dynamic age definitions, enabling more nuanced insights into how past actions influence future behavior.

What Problem Does This Paper Address?

Understanding how user actions unfold over time is crucial for many applications, from predicting stock market trends to improving e-commerce user retention. Traditional cohort analysis, while useful, has significant limitations. It typically defines a user's "birth event" as a single, specific action, restricting the types of causative behaviors that can be analyzed. Furthermore, it assumes a fixed rate of progression through life stages, which doesn't hold true for many real-world scenarios where user behavior can be highly variable. This paper addresses the need for a more flexible and powerful method to discover temporal dependencies, allowing for multiple, recurring causative behaviors and more dynamic age definitions.

Methods

The core of the paper is the introduction of Recurrent Cohort Analysis. This framework generalizes traditional cohort analysis by:

  • Recurrent Cohort Definition: Users can enter multiple cohorts based on recurring causative behaviors, not just a single birth event.
  • Flexible Time Windows: The concept of "time windows" is introduced, allowing for configurable lengths and positions to precisely define the time intervals for measuring both causative and dependent behaviors. This includes defining windows that look backward or forward from a specific point.
  • Time Window Attributes: These attributes abstract the measurement of user behavior over time windows, allowing for aggregation and arithmetic operations to define complex behaviors.
  • Cohort Operators: A set of operators (window slicing, window aggregation, age-by, recurrent aggregation) are defined to transform raw event data into the desired cohort analysis results. These operators are designed to be composable, forming a query plan.
  • Evaluation Strategies: Two strategies are proposed:
  • SQL-based: Translating the operators into standard SQL queries.
  • Intrusive: Natively implementing the operators within a specialized system (COHANA) for better performance.

Datasets

The paper uses a dataset of approximately 30 million activities performed by 57,000 game users between May 21, 2013, and June 26, 2013. This dataset is characterized by a significant portion of users with short lifetimes and low activity counts. For performance evaluation, four datasets were generated: tiny, small, medium, and large, with up to 60 million user activity records.

Key Insights and Ideas

  • Beyond Single Birth Events: The most significant insight is the move away from the single "birth event" paradigm. Allowing users to belong to multiple cohorts based on recurring behaviors unlocks a much richer understanding of user journeys.
  • Dynamic Age Definition: The ability to define age dynamically, not just as a fixed time after a single event, is crucial for capturing the nuances of user progression.
  • Time Windows as a Core Abstraction: The flexible time window definition is a powerful abstraction that underpins the entire framework, enabling precise measurement of behaviors over arbitrary time intervals.
  • Intrusive Strategy's Performance Advantage: The native implementation of cohort operators within a specialized system (COHANA) significantly outperforms traditional SQL-based approaches, especially for large datasets, by avoiding expensive joins and processing data at a user granularity.

Key Results

  • Performance Speedup: The intrusive evaluation strategy achieved significant speedups, outperforming SQL-based approaches by up to six orders of magnitude in single-node settings.
  • Scalability: The intrusive approach demonstrated good scalability in distributed settings, with performance improving almost linearly with the number of workers up to a certain point.
  • SQL Optimization: Materializing time slice boundaries for event-based and dimensional partitions in the SQL-based approach yielded performance gains of up to 60x for specific queries.
  • Time Breakdown: For most queries, measuring causative behavior took longer than dependent behavior, attributed to the pre-computation of time window attributes.

Limitations and Future Work

  • SQL-Based Limitations: The paper highlights that the SQL-based strategy does not scale well due to quadratic growth in join complexity, making it unsuitable for large-scale analysis.
  • Native Database Implementation: The authors suggest that natively implementing the cohort operators within existing database systems (beyond COHANA) would be a valuable area for future research.
  • Data Models: Extending the framework to support other data models, such as star and snowflake schemas, is another promising direction.
  • Cohort Exit Criteria: Allowing users to leave cohorts based on specific triggering criteria could further enhance the analysis capabilities.

Summary updated

BibTeX
@article{cai2018effective,
  author = {Qingchao Cai and Zhongle Xie and Gang Chen and H. V. Jagadish and Beng Chin Ooi and Meihui Zhang},
  title = {{Effective Temporal Dependence Discovery in Time Series Data}},
  journal = {Proc. VLDB Endow.},
  year = {2018},
  doi = {10.14778/3204028.3204033},
}
Figure