---
title: "Qualitative Reasoning in Electronic Fault Diagnosis"
authors:
  - "Padraig Cunningham"
doi: ""
url: "https://ijcai.org/proceedings/1987/87"
pdf: "https://ijcai.org/proceedings/1987/0087.pdf"
venue: "Proceedings of the Tenth International Joint Conference on Artificial Intelligence"
year: 1987
pages: "443-444"
track: "Knowledge Representation"
keywords:
---

# Qualitative Reasoning in Electronic Fault Diagnosis

Padraig Cunningham

*Proceedings of the Tenth International Joint Conference on Artificial Intelligence*, pages 443-444.

## Abstract

This paper describes some work in progress aimed at developing an expert system for fault diagnosis on switching mode power supplies. The system being developed is designed to interface with some existing automatic test equipment. Results of tests from this test equipment are the main input to the expert system. Another input is information about signals at various points in the circuit under test. This information is supplied by the user. Both deep and shallow knowledge are used in the diagnostic process. The system is developed in KEE from Intellicorp so the main knowledge representations are rules and frames. The deep knowledge in the system is represented loosely as qualitative reasoning as this is considered to be the way that technicians reason about the causal interactions in a circuit.

## Full text

## 1. Introduction

Electronic fault diagnosis is considered a suitable area for expert systems applications and the research in this area is well documented [1) ... [5],[13]. It is considered that the best approach to the problem of generating expert systems for troubleshooting electronic circuitry is to incorporate both deep and shallow knowledge in the system [13]. This approach recognizes the usefulness of both types of knowledge and utilizes both in the troubleshooting process. The deep model can be a formal, quantitative model or it may be a qualitative, causal model. At present it is considered that the deep model should have various components and should operate at different levels of detail. The contention is that the deep model should contain a structural and behavioural description of the circuit. A formal, quantitative deep model should be capable of doing simulations of the hardware at various different levels taking timing criteria into account [13]. '

In this paper a qualitative reasoning model is proposed as an alternative to this more rigorous deep model. It appears fro~ ":'atching ~echnicians troubleshooting that they use qualitative reasonmg as they search for faults. For instance they look for the presence or absence of signals only and rarely study the nature of signals in any detail. This approach of adopting qualitative reasoning for the deep model has an added attraction because it seems impossible to develop models that

This research was carried out in cooperation with lntepro Ltd. in Limerick in Ireland. The work has been done using a Sperry Explorer Computer and KEE software, awarded to Trinity College Dublin as part of the Unisys artificial intelligence grant programme.

## Qualitative Reasoning in Electronic Fault Diagnosis

Padraig Cunningham. Dept. of Computer Science Trinity College Dublin

and

## Michael Brady Dept. of Computer Science Trinity College Dublin

will do multi-level simulations of a circuit of real size in reasonable time.

The basis of this paper is a project to develop an expert system for fault diagnosis of switching mode power supplies (SMPS). The system is meant to operate in cooperation with some existing automatic test equipment (ATE). The system would accept the results of some forty function tests as its primary input and use these and some further information supplied by the operator to diagnose the faults in the circuit.

## 2. Fault diagnosis in power supplies

Switching mode power supplies are a particular class of power supply that have both analog and digital components. Most SMPS have the same underlying architecture and this is an important factor in determining the structure of an expert system for fault diagnosis on power supplies of this type. Such an expert system should have a knowledge base partitioned into two components: one containing domain knowledge on SMPS in general and the other containing product specific knowledge on the particular power supply under test.

It is worth looking at the SMPS architecture in some detail since it does have a bearing on the knowledge representation issues with which we are concerned. The main component in the power supply is the transformer and the input to this transformer is a high frequency square wave generated by an electronic power switch. The high frequency switching has the advantage of dissipating very little power in the transformer. In addition the output voltage can be controlled by adjusting the mark-space ratio in the power switch. A block diagram for a typical switching mode power supply (SMPS) is shown in Fig. l. All SMPS have these basic modules. (For further information on SMPS see [9].)

This uniform structure of all SMPS means that it has been possible to create standard test programs that will test most SMPS with just a few extra tests added to account for the peculiarities of particular circuits. Power supplies can be tested using function tests only. This means that the power supply unit can be tested as a 'black box' and faults can be identified by measuring input and output parameters under different conditions. It is desirable to develop an expert system that would take the results of these function tests as input and diagnose a fault from this data. In most cases the information from the function tests would not be sufficient on its own to isolate a fault. It would be necessary for the expert system to prompt the user for more information on the nature of signals at various points in the circuit A fundamental assumption underlying the research described in this paper is that engineers and technicians perform fault diagnosis differently; they bring different types of knowledge to bear on the problem. The knowledge used by the engineer is quite formal and considers the detailed performance of the various modules in the circuit. This might be called 'e-type' knowledge. The knowledge used by the technician is more experiential, incorporating various 'rules of thumb' and might be termed 't-type' knowledge. So, as an example, when a technician is troubleshooting a circuit he would almost never examine the form of a signal in any detail. Instead he looks for the presence or absence of a signal at certain points in the circuit. He would conclude that the fault lay in a particular module if that module had signals at all its inputs and no output. Implicit in t-type knowledge is the assumption that when things are broken they are badly broken. Subtle faults are expected rarely because the assumption is that the circuit has been designed correctly.

Fig.1. Block diagram of a switching mode power supply.

![Image](https://ijcai.org/proceedings/1987/fulltext/87/image_000000_48bdc9852ad5501e665e541fc917962723759be1186833ef4a076b07c07fd415.png)

## 3. Deep and shallow knowledge

An expert system for electronic fault diagnosis could be based simply on 'symptom-to-cause' associations and as such would only contain shallow knowledge. Alternatively it could be a model based expert system as advanced in the research of Davis [2],[3] and Genesereth [4],[5]. Such a system would contain a comprehensive 'deep' model of the circuit. It would also contain some inferencing mechanisms that would determine why the behaviour of the circuit under diagnosis differed from the behaviour predicted by the model.

It is attractive to try and incorporate both deep and shallow knowledge into a knowledge based system for fault diagnosis. The approach proposed here is to generate a set of fault candidates using the 'symptom-to-cause' type shallow knowledge and then to examine in detail how the behaviour of these fault candidates differs from that predicted by the deep model.

The shallow knowledge is the knowledge about fault diagnosis and the deep knowledge is the kn.owledge about electronic circuitry. The deep model must descnbe the structure and behaviour of the circuit. Given symptoms of misbehaviour, the expert system must be able to determine the structural aberration responsible for the fault from the deep knowledge base[14]. The structural knowledge has two components: a functional part and a physical part. The

I

\ '

functional part is roughly analogous to the schematic of the circuit while the physical part corresponds to the circuit layout. These are both suited to an object oriented representation and could be represented in flavors or frames.

The representation of the behaviour is central to the whole diagnostic process as we are concerned with explaining aberrations in the behaviour of a faulty circuit. One approach to representing behaviour is to develop a special Lisp like formalism for describing behaviour [13]. Alternatively the behaviour could be represented using interval temporal logic [10] . This second approach seems particularly suitable for digital circuits. There must be some question as to whether such computationally intensive representations will be tractable.

## 4. Qualitative reasoning

The research in qualitative reasoning in AI stems from the original work on na1ve physics by P. J. Hayes [11]. Na1ve physics can be expressed as a qualitative physics. The goals of qualitative physics are simpler than those of classical physics yet retain all the important distinctions (eg. state, oscillation, gain, momentum) without invoking the mathematics of continuously varying quantities and differential equations [6] . Qualitative reasoning is reasoning about physical systems without pursuing quantitative descriptions of system states [6] ... [8] .

De Kleer argues that a good electrical engineer analyses a circuit symbolically or numerically. He will perform a quantitative analysis only after he understands the circuit at a qualitative level [12]. The contention in this paper is that a technician, when troubleshooting, considers circuits only at a qualitative level and rarely resorts to a quantitative analysis. This qualitative reasoning that the technician employs can be expressed in production rules as follows:-

If a module is of the type that has two inputs and one output and there is no signal on the output and there is a signal on the first input and there is a signal on the second input then there is a fault in that module

and

If the signal on the output of the oscillator is ?S then the signal on the input of the mark space generator is ?S

It can be argued (see [6]) that production rules are not adequate for modeling qualitative reasoning because they lack succinctness. This means that a few rules may be required to describe one causal relationship. This problem has not been acute with the prototype system. There need only be three or four rules like the ftrst rule to isolate the fault to a module. The prototype system that has been built has twenty two qualitative reasoning rules at the module level.

Qualitative reasoning at the component level is more difficult because there are more concepts to be considered. The only issue at the module level is the presence or absence of a signal. Concepts like: open-circuit, voltage drop and short circuit must be considered at the component level once the faulty module has been identified.

## 5. System Design

The expert system for troubleshooting power supplies is meant to be able to diagnose faults in all SMPS because all power supplies of this type share a common architecture. The system knowledge base can be divided into two components: a domain knowledge base related to this common architecture, and a product knowledge base describing particular SMPS. At present the system is implemented in KEE so the main knowledge representations are frames and rules. The structure of the system (see Fig.2.) is influenced to a large extent by the fact that the main input to the system is the results of the function tests from the automatic test equipment.

Fig.2. Structure of the fault diagnosis expert system.

![Image](https://ijcai.org/proceedings/1987/fulltext/87/image_000001_9fc0ca78d34e47ab62af0eb8c8a9c9136745dee4f408fe1aa5c4c3a1285be261.png)

The first input to the expert system is the results of the function tests (approx. 40) from the ATE. A set of fault candidates at the module level is generated by forward-chaining with these results through the function test rules base. These function test rules are shallow rules relating failures in tests to possible causes. The results of the function tests may be used again in the final diagnosis but at this stage some extra information is needed for the diagnosis to proceed.

The fault candidate list can be reduced using the deep knowledge in the QR module rules. These QR rules represent the causal reasoning that the expert technician uses when tracing signals through a circuit. The fault candidate list can be reduced by backward-chaining through these rules. The advantage of backward-chaining is that the system can query the user for any extra information that is needed. Typically, the system would query the user about the presence or absence of a signal at various points in the circuit.

Once the fault candidate list is narrowed down to one or two modules the system can switch to analysis at a component level. Most of the function tests on the ATE are general tests for SMPS but in a working situation some tests will be included that are specific to a particular power supply. The results of these tests are used at this stage and the system backward-chains through the QR component rules to isolate the fault within the faulty module.

## 6. Conclusions

This paper is an interim report on a project to develop an expert system for fault diagnosis of power supplies. The project is proceeding by rapid prototyping with periodic revisions. At this stage all of the components of the system have been implemented to some level of detail.

The expert system incorporates both deep and shallow knowledge and this paper is concerned with representing the behaviour of the circuit in the deep model using causal reasoning. A fundamental assumption underlying this work is that technicians use qualitative models of circuits during troubleshooting and rarely if ever resort to quantitative reasoning. In the system described here this qualitative reasoning is represented using production rules. This representation is working adequately at this stage. However it is accepted that representing causal relationships using production rules may lack succinctness and it may be necessary to find a better representation at a later stage.

The expert system is a general expert system, adaptable for troubleshooting all SMPS. It contains domain knowledge on SMPS in general and some product specific knowledge on particular power supplies. This idea of developing a general system was also the approach in developing the automatic test software to which the expert system is connected. This potential for generality depends on the basic architecture that is common to all SMPS. At present we feel that this similarity between different SMPS is more marked than the similarities that exist in other product groups. Consequently the development of an expert system in this area should be particularly fruitful.

## References

1. Cunningham P. et al., "Diagnostic Heuristics and Perspectives", Expert Systems -'86, pp242-253, 1986.
2. Davis R., Shrobe H., et al. "Diagnosis Based on Description of Structure and Function", AAAI-'82, pp 137-142, 1982.
3. Davis R. "Diagnostic Reasoning Based on Structure and Behavior", Artificial Intellieence, Vol.24, (1984) pp347-410, 1984.
4. Genesereth M.R. "Diagnosis Using Hierarchical Design Models", AAAI-'82, pp 278-283, 1982.
5. Genereseth M.R. "The Use of Design Descriptions in Automated Diagnosis" , Artificial lntellieence, Vol.24, (1984) pp 411-436, 1984.
6. de Kleer J., Brown J.S., " The Origin, Form and Logic of Qualitative Physical Laws", IJCAI-'83 , pp1158-1169, 1983.
7. Forbus K., "Qualitative Reasoning about Physical Processes", IJCAI-'81, pp326-330, 1981.
8. Kuipers B., "Qualitative Simulation", Artificial Intemeence, Vol.29, No.3, pp289-338, 1986.
9. Rupra K., "Switching Mode Power Supplies", in Power Transistor and TIL Inteerated Circuit Applications, ed.
10. Bryan Norris, Me Graw Hill, 1977.
11. Moszkowski B., "A Temporal Logic for Multi-Level Reasoning About Hardware", Computer, Vol.18, No. 2, ppl0-19, 1985.
12. Hayes P.J., "The Na'ive Physics Manifesto" in Expert Systems in the Microelectronics Aee. ed. D.Michie, Edinburgh University Press, 1979.
13. de Kleer J., "How Circuits Work", Artificial Inte1lieence, Vol.24, (1984) pp 205-280, 1984.
14. Giovannini F., Malabocchia F., "A Model Based Expert System for HW Troubleshooting Driven by Compiled Control Knowledge", E3pert Systems-'85, pp65-77, 1985.
15. deKleer J., Williams B.C., "Reasoning about multiple faults", AAAI-'86, pp132-139, 1986.
