Knowledge Engineering for Planning-Based Hypothesis Generation

Shirin Sohrabi, Octavian Udrea, Anton V. RiabovarXiv 2014

Introduction

In complex monitoring environments like Intensive Care Units (ICUs) or corporate networks, analysts often face the challenge of inferring the true state of a system from a stream of unreliable, ambiguous, or incomplete observations. Automated hypothesis generation aims to bridge this gap by finding a sequence of events that best explains the data. However, standard AI planning tools like PDDL (Planning Domain Definition Language) are often too complex for domain experts. This paper presents a knowledge engineering framework designed to make planning-based hypothesis generation accessible and robust.

The LTS++ Framework

To lower the barrier for non-AI experts, the authors introduced LTS++, a domain-specific language based on Labeled Transition Systems. LTS++ allows users to define states, transitions, and observations with a much simpler syntax than PDDL. A key feature is the support for hyperstates—hierarchical state decompositions that allow the system to handle incomplete models. For instance, an analyst can define a general "Infection" state without needing to specify every possible low-level transition.

An example of a malware detection model using LTS++ hyperstates and associated observations.

The framework is supported by a web-based IDE that provides syntax highlighting, automated visualization of state-transition graphs, and a trace editor for debugging. To guide experts through the modeling process, the authors propose a structured 9-step workflow.

The 9-step structured workflow for domain experts to build hypothesis generation models.

Hypothesis Generation as Cost-Based Planning

The system treats hypothesis generation as a cost-based planning problem. To account for noisy data, the planner is allowed to use a "discard" action to ignore an observation, but at a high cost. Similarly, malicious or rare behaviors are assigned higher costs than normal operations. The most plausible hypothesis is identified as the plan with the lowest total cost.

The IDE translates LTS++ models into PDDL and utilizes the LAMA planner. To provide multiple explanations, a replanning loop iteratively blocks previously discovered plans, generating a set of distinct, high-quality hypotheses.

Evaluation and Results

The approach was evaluated using a hand-crafted 18-state malware detection model and various synthetic domains.

  • Malware Domain: The system achieved a 100% success rate in finding the ground truth for short observation traces (5-10 observations) in under 3 seconds. For longer traces (up to 120 observations), success rates ranged from 50-70%, with computation times between 6 and 20 seconds.
  • Synthetic Domains: Performance scaled reasonably for 10-state models but dropped significantly as the state space grew. For 100-state models, the system solved only 30% of short-trace problems and timed out on anything longer.

Conclusion

The research demonstrates that abstracting AI planning behind a user-friendly language and IDE can empower domain experts to build sophisticated diagnostic models. While the current iterative replanning approach faces scalability challenges in very large state spaces, the framework provides a solid foundation for future work, such as integrating native top-$k$ planners to improve efficiency and accuracy.

Summary updated

BibTeX
@misc{sohrabi2014knowledge,
  author = {Shirin Sohrabi and Octavian Udrea and Anton V. Riabov},
  title = {{Knowledge Engineering for Planning-Based Hypothesis Generation}},
  year = {2014},
  eprint = {1408.6520},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1408.6520},
}
Figure