Relationship-aware sequential pattern mining

Nabil Stendardo, Alexandros KalousisarXiv 2012

Abstract

Relationship-aware sequential pattern mining is the problem of mining frequent patterns in sequences in which the events of a sequence are mutually related by one or more concepts from some respective hierarchical taxonomies, based on the type of the events. Additionally events themselves are also described with a certain number of taxonomical concepts. We present RaSP an algorithm that is able to mine relationship-aware patterns over such sequences; RaSP follows a two stage approach. In the first stage it mines for frequent type patterns and all their occurrences within the different sequences. In the second stage it performs hierarchical mining where for each frequent type pattern and its occurrences it mines for more specific frequent patterns in the lower levels of the taxonomies. We test RaSP on a real world medical application, that provided the inspiration for its development, in which we mine for frequent patterns of medical behavior in the antibiotic treatment of microbes and show that it has a very good computational performance given the complexity of the relationship-aware sequential pattern mining problem.

Introduction: The Challenge of Relationship-Aware Mining

Standard sequential pattern mining (SPM) identifies frequent sequences of items, such as "customers who buy bread often buy milk next." However, in complex domains like medicine, this approach often loses critical context. For example, knowing a patient received "an antibiotic" after "a bacterial infection" is too abstract for clinical utility. Researchers need to know if they received a specific antibiotic that was tested against a specific bacteria and found to be resistant.

This introduces the challenge of "relationship-aware" mining, which must account for:

  1. Hierarchical Data: Events (like drugs or bacteria) belong to deep taxonomies (e.g., Penicillin is a type of Beta-lactam).
  2. Complex Links: Relationships between events (like "tested-against") have their own taxonomies and properties.
  3. Occurrence Explosion: To accurately mine these relationships, an algorithm must find all occurrences of a pattern within a sequence, not just the first one, creating a massive computational search space.
Hierarchical taxonomies for drugs (ATC) and bacteria (NewT) used to categorize events.

The RaSP Algorithm

The authors propose RaSP (Relationship-aware Sequential Pattern), a two-stage algorithm designed to handle this complexity by decoupling types from specific concepts:

  • Stage 1: Mining Type-Patterns: The algorithm uses a modified version of the Generalized Sequential Pattern (GSP) algorithm. Instead of merely checking for existence, it identifies every single occurrence of event-type sequences (e.g., "Event Type B followed by Event Type T"). To maintain computational feasibility, this stage employs "max-gap" and "maximum-projected-length" constraints.
  • Stage 2: Hierarchical Refinement: For every frequent type-pattern found in Stage 1, RaSP retrieves all associated specific data, including taxonomy concepts and relationship values. It then treats the refinement process as a Maximal Frequent Itemset Mining problem, utilizing a modified GenMax algorithm to discover the most specific, frequent versions of the abstract patterns.

Experimental Evaluation

The algorithm was evaluated on a real-world medical dataset from the European project DebugIT, consisting of 6,659 "episodes of care" (patient hospital stays) spanning 2002–2010. The events focused on microbe detections (B) and antibiotic prescriptions (T). The study utilized two primary taxonomies: the ATC (Anatomical Therapeutic Chemical Classification System) for drugs and NewT for bacterial taxonomy.

Statistics of the ATC and NewT taxonomies, highlighting the depth and complexity of the hierarchical data.

Key Results and Insights

Despite the complexity of finding all occurrences, RaSP demonstrated strong computational performance. With a "Max Gap" constraint of 4, the total execution time was under three hours. The study found that the "Max Gap" (MG) parameter is the primary driver of complexity; increasing MG from 4 to 5 caused execution time to jump to four hours and significantly increased the number of discovered patterns from hundreds to thousands.

Beyond efficiency, the algorithm successfully identified meaningful medical patterns. For instance, it discovered a frequent pattern where a microbe detection is followed by two treatments: the microbe was resistant to the initial treatment, but the subsequent treatment involved a specific family of bacteria (gammaproteobacteria) that proved effective.

Conclusion

RaSP addresses the "combinatorial explosion" of hierarchical sequential mining by separating abstract type mining from specific concept refinement. While current limitations include high memory usage for storing all occurrences and a focus on tree-like taxonomies, the algorithm provides a robust framework for discovering complex, relationship-dependent behaviors in large-scale sequential data.

Summary updated

BibTeX
@misc{stendardo2012relationship,
  author = {Nabil Stendardo and Alexandros Kalousis},
  title = {{Relationship-aware sequential pattern mining}},
  year = {2012},
  eprint = {1212.5389},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1212.5389},
}
Figure