Abstract
In many real-world applications, sequential rule mining (SRM) can provide prediction and recommendation functions for a variety of services. It is an important technique of pattern mining to discover all valuable rules that belong to high-frequency and high-confidence sequential rules. Although several algorithms of SRM are proposed to solve various practical problems, there are no studies on target sequential rules. Targeted sequential rule mining aims at mining the interesting sequential rules that users focus on, thus avoiding the generation of other invalid and unnecessary rules. This approach can further improve the efficiency of users in analyzing rules and reduce the consumption of data resources. In this paper, we provide the relevant definitions of target sequential rule and formulate the problem of targeted sequential rule mining. Furthermore, we propose an efficient algorithm, called targeted sequential rule mining (TaSRM). Several pruning strategies and an optimization are introduced to improve the efficiency of TaSRM. Finally, a large number of experiments are conducted on different benchmarks, and we analyze the results in terms of their running time, memory consumption, and scalability, as well as query cases with different query rules. It is shown that the novel algorithm TaSRM and its variants can achieve better experimental performance compared to the existing baseline algorithm.
Introduction
Sequential Rule Mining (SRM) is a powerful tool for predicting temporal events, such as "what happens next" in a sequence of actions. Unlike Sequential Pattern Mining, which focuses solely on frequency, SRM incorporates confidence—the conditional probability that if event $A$ happens, event $B$ will follow.
However, existing SRM algorithms suffer from "information overload." When support or confidence thresholds are set low, algorithms often return thousands of rules, most of which are irrelevant to the user's specific needs. For example, a meteorologist interested only in the causes of "rain" must wait for a standard algorithm to process rules for all possible weather outcomes before filtering. This paper addresses this by formalizing Targeted Sequential Rule Mining, where users define specific items of interest upfront to guide the discovery process.
Problem Formulation and Data Representation
The core of targeted SRM is to find rules that satisfy minimum support and confidence thresholds while also matching a user-defined query (e.g., "find rules where the result includes 'c'").
As illustrated in the sample database above, sequences consist of ordered itemsets. The goal is to efficiently extract rules from such data without exploring the entire combinatorial space of itemsets that do not meet the target criteria.
The TaSRM Algorithm
The authors propose the TaSRM (Targeted Sequential Rule Mining) algorithm. Unlike "post-processing" approaches that mine everything and filter later, TaSRM uses the target query to aggressively prune the search space from the start. Key innovations include:
- Four Pruning Strategies:
- UTP (Unpromising Transaction Pruning): Discards sequences that lack the required target items.
- UIP (Unpromising Items Pruning): Removes items in positions where they cannot form a valid rule (e.g., a target antecedent item appearing after all target consequent items).
- URP (Unpromising 1*1 Rules Pruning): Prevents the initialization of rules that violate basic target requirements.
- UEIP (Unpromising Extended Items Pruning): A recursive strategy that halts rule expansion if target constraints are violated.
- CountMap Optimization: Uses hash tables to track item positions, allowing the algorithm to skip entire branches of the search tree that cannot meet support thresholds.
Key Results and Insights
TaSRM was evaluated on diverse datasets, including e-commerce clickstreams, text, and traffic accident data. The results demonstrate significant advantages over the baseline RuleGrowth algorithm:
- Exponential Speedups: Optimized versions of TaSRM often completed tasks in less than one second that took the baseline hundreds of seconds.
- Memory Efficiency: On synthetic datasets, TaSRM used up to 10x less memory by avoiding the storage of irrelevant candidate rules.
- Scalability: TaSRM’s runtime scaled linearly with database size, making it far more suitable for big data applications than traditional methods.
The table above shows examples of high-confidence rules extracted when a specific target (e.g., consequent {c}) is defined. By focusing on these targets, TaSRM avoids the performance bottleneck of generating thousands of irrelevant intermediate rules.
Conclusion
TaSRM represents a significant step forward in making sequential rule mining practical for real-world applications. By integrating user constraints directly into the mining process, it achieves remarkable efficiency and reduces information overload. Future work will explore adapting these techniques for streaming data and incorporating more complex "interestingness" metrics beyond support and confidence.
Summary updated