From Interaction Data to Plan Libraries: A Clustering Approach

Mathias BauerIJCAI 1999

Abstract

A major challenge in plan recognition is the acquisition of plan libraries that accurately reflect real-world user behavior. Traditional methods relying on manual encoding or supervised learning are often brittle or prohibitively expensive. This paper presents an unsupervised clustering approach that automatically constructs plan libraries from unlabeled interaction data. By identifying frequent action sets and applying a specialized "join" operation to abstract commonalities, the system generates robust plan models capable of handling noisy, real-world sequences.

Introduction

Plan recognition systems aim to infer a user's high-level goals from a sequence of observed actions. Central to this task is the plan library—a collection of "recipes" mapping actions to goals. Historically, these libraries have been hand-coded by experts, leading to idealized models that fail to account for the "messy" nature of human interaction, or learned via supervised methods that require massive amounts of labeled data.

Mathias Bauer's research addresses this bottleneck by proposing a method to build plan libraries from raw, unlabeled logs. This approach is particularly valuable because it leverages abundant interaction data while filtering out "spurious actions"—irrelevant steps or mistakes that typically complicate plan inference.

Methodology

The proposed pipeline consists of two primary stages: Frequent Set Clustering and the Join Algorithm.

Frequent Set Clustering

The first stage groups action sequences based on the co-occurrence of action types, rather than their strict temporal order. The algorithm constructs a graph where nodes represent action types and edges represent the probability of co-occurrence within a session. A "clustering factor" ($cf$) serves as a threshold to control the granularity of these clusters. A higher $cf$ results in smaller, more specific clusters, while a lower $cf$ produces broader abstractions.

The Join Algorithm

Once sequences are clustered, the "Join" algorithm identifies the "greatest common denominator" among them. It extracts the essential actions and temporal constraints necessary to achieve a goal, effectively pruning idiosyncratic or irrelevant user behaviors.

Figure 3: The Join algorithm abstracts multiple plan instances into a generalized plan graph by identifying common nodes and constraints.

This process results in an abstract plan graph that represents the core logic of a task, making the library more resilient to the noise found in individual user sessions.

Experimental Evaluation

The approach was tested using a UNIX domain dataset comprising 53 action sequences (up to 24 steps each) across six distinct goals, such as file searching and printer status checks. Performance was evaluated using 10-fold cross-validation, with goal labels withheld during the clustering phase.

Key Results

The system demonstrated significant improvements over traditional incremental clustering algorithms like Cobweb.

Figure 6: Performance metrics (Coverage, Correctness, and Uniqueness) across different clustering factors (cf).
  • Coverage and Accuracy: At an optimal clustering factor of $cf=0.6$, the system achieved nearly 90% coverage of action sequences with an accuracy rate exceeding 77%.
  • Reduced Ambiguity: The method proved less ambiguous than Cobweb, assigning fewer simultaneous goal hypotheses to observed sequences (averaging ~2.0 vs. Cobweb's ~2.5).
  • Computational Efficiency: Higher $cf$ values led to more concise plan entries, resulting in plan recognition speeds up to 10 times faster than at lower thresholds.

Conclusion

By learning directly from actual user behavior, this unsupervised approach creates plan libraries that are both more robust and more representative of real-world usage than hand-coded alternatives. While human experts are still needed to assign names to the resulting abstract goals, the workload is drastically reduced from labeling thousands of raw logs to categorizing a few dozen generated plan models. Future work will explore the integration of domain-specific knowledge and the application of this method to more complex, non-linear environments.

Summary updated

BibTeX
@inproceedings{bauer1999from,
  author = {Mathias Bauer},
  title = {{From Interaction Data to Plan Libraries: A Clustering Approach}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1999},
}
Figure