[Paper Review] NegPSpan: efficient extraction of negative sequential patterns with embedding constraints
This paper proposes NegPSpan, a novel algorithm for efficiently mining negative sequential patterns (NSPs) with maxgap and maxspan constraints using a unified semantic framework. It outperforms the state-of-the-art eNSP algorithm in both speed and memory efficiency, especially on longer sequences, while avoiding missed patterns due to stricter semantics and embedding constraints.
Mining frequent sequential patterns consists in extracting recurrent behaviors, modeled as patterns, in a big sequence dataset. Such patterns inform about which events are frequently observed in sequences, i.e. what does really happen. Sometimes, knowing that some specific event does not happen is more informative than extracting a lot of observed events. Negative sequential patterns (NSP) formulate recurrent behaviors by patterns containing both observed events and absent events. Few approaches have been proposed to mine such NSPs. In addition, the syntax and semantics of NSPs differ in the different methods which makes it difficult to compare them. This article provides a unified framework for the formulation of the syntax and the semantics of NSPs. Then, we introduce a new algorithm, NegPSpan, that extracts NSPs using a PrefixSpan depth-first scheme and enabling maxgap constraints that other approaches do not take into account. The formal framework allows for highlighting the differences between the proposed approach wrt to the methods from the literature, especially wrt the state of the art approach eNSP. Intensive experiments on synthetic and real datasets show that NegPSpan can extract meaningful NSPs and that it can process bigger datasets than eNSP thanks to significantly lower memory requirements and better computation times.
Motivation & Objective
- Address the lack of standardized syntax and semantics for negative sequential patterns (NSPs) in existing literature.
- Overcome the limitations of the state-of-the-art eNSP algorithm, particularly its high memory usage and inability to handle embedding constraints like maxgap and maxspan.
- Enable the discovery of semantically meaningful NSPs that capture the absence of events within a defined temporal window, improving actionable insights in domains like healthcare and marketing.
- Provide a formal framework that clarifies the differences between various NSP semantics, especially regarding itemset non-inclusion and multiple embeddings.
- Demonstrate that NegPSpan can extract patterns missed by eNSP due to its stricter semantics and support constraints, particularly when positive partners are infrequent.
Proposed method
- Define a unified syntactic and semantic framework for NSPs, distinguishing between strict-embedding semantics and alternative negation semantics.
- Adapt the PrefixSpan algorithm to support negative events (denoted by ¬) in sequential patterns, enabling depth-first exploration of the pattern space.
- Incorporate maxgap and maxspan constraints into the pattern generation process to limit the temporal distance between events, reducing the search space and improving efficiency.
- Use a support computation mechanism based on sequence embeddings that respects the maxgap constraint, ensuring only valid, temporally constrained occurrences are counted.
- Implement a pruning strategy that leverages the embedding constraints to avoid generating or counting invalid or overly distant pattern occurrences.
- Apply the algorithm to both synthetic and real-world datasets, comparing performance and pattern sets with eNSP under identical settings.
Experimental results
Research questions
- RQ1How can a consistent and formal syntax and semantics for negative sequential patterns be defined to enable meaningful comparison across methods?
- RQ2To what extent does the inclusion of maxgap and maxspan constraints improve the efficiency and relevance of negative sequential pattern mining?
- RQ3Can NegPSpan extract meaningful NSPs that are missed by eNSP due to its semantic and support constraints?
- RQ4How does NegPSpan's performance in terms of execution time and memory usage compare to eNSP on large or long sequences?
- RQ5What is the impact of different negation semantics—particularly strict-embedding versus non-strict—on pattern support and discovery?
Key findings
- NegPSpan significantly reduces memory usage compared to eNSP, enabling processing of much larger datasets.
- On sequences longer than 20 itemsets, NegPSpan achieves faster execution times than eNSP, even with weak maxgap constraints.
- Only three patterns were shared between eNSP and NegPSpan in the real-world case study, indicating substantial differences in pattern sets due to semantic and constraint differences.
- eNSP missed pattern $\boldsymbol{p}_8 = \langle 383\ \neg 7\ 383\rangle$ because its positive partner $\langle 383,7,383\rangle$ was infrequent, while NegPSpan successfully extracted it due to its looser support requirement.
- Pattern $\boldsymbol{p}_1 = \langle 383\ \neg(86,383)\ 383\rangle$ was not extracted by NegPSpan due to its strict-embedding semantics, which requires that neither 86 nor 383 appear between the two 383s, making the support lower than under eNSP’s semantics.
- NegPSpan identified meaningful patterns such as $\langle 114\ \neg 383\ 114\rangle$, which indicates that the absence of a switch from brand-name to generic valproic acid is frequent, offering actionable insights not captured by eNSP.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.