Diagnosis with Behavioral Modes

Johan de Kleer, Brian C. WilliamsIJCAI 1989

Introduction

In the late 1980s, automated diagnosis was divided between fast but brittle "fault model" approaches and robust but inefficient "General Diagnostic Engine" (GDE) methods. GDE modeled only correct behavior, treating all inconsistencies as equally likely faults. This lack of probabilistic intuition often led to inefficient troubleshooting. Sherlock was developed to bridge this gap by incorporating knowledge of how components typically fail without sacrificing the ability to handle unforeseen failure modes.

Methodology: Behavioral Modes and Probabilistic Reasoning

Sherlock evolves the GDE framework by introducing Behavioral Modes. Instead of a binary "working/broken" classification, every component is modeled in one of several states:

  • G (Good): The component operates according to its specification.
  • S1/S0 (Specific Faults): Common failure modes, such as an inverter being "stuck-at-1" or "stuck-at-0".
  • U (Unknown): A "catch-all" mode that makes no predictions, ensuring the system is never inconsistent with observations.
Figure 1: A simple three-inverter circuit used to demonstrate Sherlock's diagnostic logic.

Sherlock employs a Bayesian probabilistic framework to rank "candidates"—combinations of component modes. To optimize troubleshooting, it uses a minimum entropy technique to select the most informative probes. To maintain computational tractability in large systems, Sherlock uses "focusing tactics," prioritizing the most probable diagnoses and expanding the search space only as evidence narrows the possibilities.

Evaluation and Datasets

The system was evaluated using digital circuit simulations. These ranged from simple three-inverter chains (as shown in Figure 1) to complex Arithmetic Logic Units (ALUs) containing up to 400 gates. Each gate was modeled with four behavioral modes. These structural descriptions served as the primary testbed for validating Sherlock's efficiency and accuracy.

Key Results

Sherlock demonstrated significant efficiency gains over GDE by leveraging the likelihood of common failure modes. A key innovation is predictive bias: Sherlock favors candidates that actively predict observed behavior over those that are merely consistent with it.

Figure 3: Probabilities for behavioral modes G, S1, S0, and U across components A, B, and C in the test circuit.

As shown in Figure 3, the system assigns specific probabilities to each mode. In the three-inverter example, if an output error occurs, Sherlock correctly identifies the component whose common failure mode (e.g., S0 or S1) best explains the specific observed discrepancy. The focusing heuristics also proved successful, allowing the system to scale to a 400-gate ALU, a major milestone for diagnostic engines of that era.

Discussion and Limitations

While Sherlock represents a major step forward, it relies on the assumption that components fail independently. It does not explicitly model correlated failures, such as those caused by power surges. Additionally, the system requires accurate "prior" probabilities for each failure mode, which can be difficult to estimate in practice. Future work involves improving test vector generation to better stimulate circuits for diagnosis.

Conclusion

Sherlock successfully combines model-based reasoning with probabilistic fault models. By treating diagnosis as a process of identifying behavioral modes rather than just finding "faults," it provides a robust, efficient, and scalable solution for complex device troubleshooting.

Summary updated

BibTeX
@inproceedings{kleer1989diagnosis,
  author = {Johan de Kleer and Brian C. Williams},
  title = {{Diagnosis with Behavioral Modes}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1989},
}
Figure