Analysis of Web Access Sequence Based on the Improved Prefix Span Algorithm

Yang Xu, Yu WangAdvances 2015

Abstract

PrefixSpan is a significant algorithm for sequential pattern mining, yet its reliance on projected databases often leads to redundant memory usage and excessive scan times. This paper presents an Improved PrefixSpan algorithm (IPS) designed to mitigate these inefficiencies. IPS optimizes the process by pruning non-frequent items and abandoning projected databases with sequence counts below the minimum support threshold. When applied to web access sequence mining, IPS demonstrates superior performance in identifying frequent access patterns, providing actionable insights for website optimization.

Introduction: The Challenge of Sequential Pattern Mining

Sequential pattern mining is a fundamental task in data science, particularly for analyzing user behavior on the web. By identifying frequent sub-sequences—such as users visiting a "frontpage" before navigating to "news"—researchers can optimize site architecture and content delivery.

While the PrefixSpan algorithm is widely used due to its "pattern-growth" approach that avoids candidate generation, it faces a significant bottleneck. It constructs "projected databases" for every frequent prefix, which, in large-scale web log analysis, results in massive memory consumption and repeated, time-consuming database scans.

The Improved PrefixSpan (IPS) Algorithm

To address these limitations, the authors developed the Improved PrefixSpan (IPS) algorithm. IPS introduces two core optimizations:

  1. Aggressive Pruning: IPS incorporates a pruning step during the construction of projected databases. It removes non-frequent items immediately and discards any projected database where the number of sequences is less than the minimum support threshold. This prevents the algorithm from exploring recursive paths that cannot yield valid patterns.
  2. Direct Generation (Theorem 1): Utilizing mathematical induction, the authors established that for specific sequential patterns, the next frequent sequence can be generated directly from the current database. This "shortcut" bypasses the need for a new projected database, significantly reducing computational overhead.

Experimental Dataset and Preprocessing

The IPS algorithm was evaluated using real-world web traffic logs from msnbc.com, covering a 24-hour period. To facilitate mining, raw URLs were mapped to 17 high-level categories (e.g., "frontpage" mapped to 'A', "news" to 'B'). This transformation converted complex clickstreams into manageable strings of Boolean-mapped characters.

Table showing the mapping of web access sequences to single-character identifiers for algorithmic processing.

Performance Analysis and Results

The experimental results highlight the substantial efficiency gains of IPS over the classical PrefixSpan algorithm.

Comparison of run time between PrefixSpan and IPS across varying minimum support thresholds.

Key findings include:

  • Execution Time: At a 1% minimum support threshold, IPS completed the mining task in approximately 250 seconds, compared to 800 seconds for classical PrefixSpan.
  • Scalability: The performance advantage of IPS becomes more pronounced as the minimum support degree decreases. This makes IPS particularly effective for "deep mining" tasks where researchers seek rarer, more complex behavioral patterns.
  • Memory Efficiency: By rejecting non-frequent items and small projected databases early, IPS maintains a significantly leaner memory footprint.

Conclusion and Future Directions

The IPS algorithm offers a robust solution for the inefficiencies inherent in standard PrefixSpan, particularly for large-scale web log analysis. By pruning redundant data structures and utilizing mathematical shortcuts, it achieves dramatic reductions in both runtime and memory usage.

Future research could extend this work by exploring the scalability of IPS in real-time streaming environments and investigating how the algorithm handles more complex data elements beyond single-category mappings. Additionally, automating the transition from discovered patterns to UI/UX design recommendations remains a promising area for development.

Summary updated

BibTeX
@inproceedings{xu2015analysis,
  author = {Yang Xu and Yu Wang},
  title = {{Analysis of Web Access Sequence Based on the Improved Prefix Span Algorithm}},
  booktitle = {Advances},
  year = {2015},
  doi = {10.2991/iiicec-15.2015.177},
}
Figure