This paper will consider examples of circuitry in modern cars where such approximations of behaviour are unsatisfactory, and will examine the modelling issues that are thrown up by these cases, in order to identify challenges for qualitative electrical reasoning against which future advances in the field can be assessed.
1. Introduction
Electrical circuits were among the earliest devices to be modelled by AI researchers, giving qualitative reasoning about electrical systems a legacy of some two decades of research. This lengthy development is beginning to pay dividends in industrial applications.
Over the past six years, we have developed the FLAME system to perform failure mode and effects analysis [Price 96, Price and Pugh 96] and sneak circuit analysis [Price, Snooke and Landry 96]. Within the last two years, automotive engineers working in consultation with researchers have applied the FLAME system to the different circuits in a modern car. This has provided a breadth of modelling experimentation that exists for very few other qualitative reasoning systems.
This paper attempts to take stock of what has been done in modelling electrical circuits, and look at what further work needs to be done, based on the experience of the FLAME system. This experience is confirmed by the similar work being done by Mauss and Neumann [Mauss and Neumann 95, Mauss and 96] in modelling automotive electrical circuits. The paper considers what has been achieved in modelling car electrical systems, the areas where improvements are needed, and the challenge of developments in the way in which car subsystems are implemented.
2. Qualitative electrical reasoning - state of the art
2.1. Basic Strategy
In order to persuade automotive engineers to use qualitative reasoning, it must be painless for them to build qualitative models of the circuits as they are being designed. This means that the qualitative models must use the same types of components that the engineers are used to dealing with, and that component descriptions must be reusable.
The underlying algorithms performing reasoning about electrical flow only use connectivity information, and the circuit topology used these algorithms will change as the state of components change. This has led to two levels of reasoning being employed.
For our own work on the FLAME system, the lower level reasoning is based on [Lee and Ormsby 93], and is described in [Price and Pugh 96]. The higher level reasoning employs component descriptions that describe the internal topology of a component in different states and under different failure modes. Examples of component descriptions are given in [Pugh and Snooke 96]. A component description consists of:
One area of uncertainty about the lower level reasoning is whether Mauss and Neumann's choice of representation is more efficient as the topology of the network changes. There are certainly cases where changes to circuit topology will only mean changing a small part of the star network. However, the complexity of the mapping between the original circuit and the SPS tree means that it is not always possible to tell what changes to the SPS tree should be made for a change in circuit state, and so it may be necessary to rebuild the SPS tree completely after each change.
2.2. Coping with complex behaviour
The FLAME system has been used to simulate the electrical systems of modern automobiles, and is able to produce reasonable results for 85% of the circuitry. For many of the circuits, some modelling compromises are necessary, and this section gives examples of the kinds of modelling strategies that have been employed in order to produce useful results.
3. Improving Qualitative Reasoning of Electrical Circuits
The number of compromises needed in order to successfully model automotive electrical circuits can be reduced by improving the range of phenomena that can be modelled. This section will consider the areas in which qualitative electrical reasoning needs to be extended in order to improve modelling capabilities and to be able to model some of the other 15% of circuits that cannot be usefully modelled now.
3.1. Recent automotive design
For many years most automotive circuits followed the same basic pattern of the battery providing power to devices such as lamps and motors via sets of switches. Some high power devices' circuits had indirect control via relays to lower switch ratings and the required amount of highly rated cable under the dashboard (as illustrated in figure 1).
All this has changed recently, with many circuits following the pattern of a network of ECUs, each attached to a number of sensors (including button panels, keypads, and potentiometer for user input) and actuators. The sensor signals are thus processed and shared via a digital bus to other modules all of which ultimately control some actuators performing a wide range of tasks ranging from electric windows to fuel injectors. This type of system combines a number of the problems highlighted in this section, and these problems will now be itemized in the context of the column-mirror example in figure 2.
• There are many different types of signal from the sensors representing quantities in different ways. Typical methods include analog, pulsed amplitude modulated, pulse width modulated, frequency modulated etc.
• The digital bus connecting the modules has complex error detection and correction itself. Individual modules know the status of network connections and other modules at any point in time and adjust behaviour accordingly.
• Fail safe and/or default modes are incorporated in many modules to manage failure situations, and many modules have power down or sleep modes to save power.
• Feedback loops exist both as indirect loops (actuators affect sensors via other physical quantities) and direct feedback (ECU devices detect their own outputs or outputs of others).
• Many ECU's have complex internal empirically defined lookup tables to control behaviour (especially engine/gearbox management). Simple combinatorial logic has now given way to more complex sequantial logic.
• Many actuators have a lot of built-in driver circuitry to provide complex control. This circuitry is built into the actuator by the component supplier, and has to be treated as a black box by the circuit designer.
• Another possible approach may be to refine the qualitative simulation by adding more landmarks or by utilising deviational models. Our work has not considered these possibilities in detail at the present time making it unclear whether the potential improvement in model output justifies the additional model complexity.
• There may be the need for additional qualitative models which reason about a wider range of physical phenomina than our current model which is restricted to current flow and voltage. For example in some systems the storage of charge becomes important.
• Using non qualitative techniques. For some of the current limitations we might represent the problem artefact at a higher level of abstraction. We are currently considering the use of state machines to represent ECU behaviour, for instance. In other situations the use of a more detailed quantitative model may be required.
The following sections consider the major problem areas we have encountered to date while using qualitative analysis for FMEA tasks. While we intend to utilize qualitative analysis for other tasks such as design verfication and diagnosis, it is not clear what level of information will be required from the qualitative simulation for these tasks. It does however appear that other types of model (abstract behaviour and function) will be needed to make many of the required deductions. We expect that the general problem areas highlighted by FMEA tasks will also apply to other design analysis tasks since the models (and results) will often be reused with some additional data or deduction processes. The next sections illustrate the problems encountered from our experience with performing real automotive FMEA analysis which are related to the qualitative reasoning
3.2. Dynamic aspects
Circuits which contain continuously changing values electrical feedback loops, oscillators, power on reset circuits cannot be directly simulated because in FlAME there is no representation of energy storage, or of the explicit rate of change of the energy variables. Where the behaviour of components can be made into a discrete set of states, simulation can be achieved by using the simulator in a multi pass mode, with changes being made to the topology of the resistance network after each pass. In this way a capacitor is modeled in either a charged or a discharged state, with either a infinite or zero resistance, and the change of state is made based on the existence of current flow through it. This enables the representation of the power-on-reset circuit's major change in state, along with the correct behaviour of short or open circuits in the circuitry surrounding the capacitor.
Other effects such as the long term effect of drawing charge from a battery are not currently considered, although it should be possible to model these. Also, if simulation was extended into other domains such as hydraulic, the issue of modelling capacity would become more relevant than it is in the electrical domain.
3.3. Functions which cannot be linked to qualitative values
Typically the qualitative values utilized in the simulation (ACTIVE/INACTIVE, or FORWARD/INACTIVE/REVERSE where current direction is significant) are adequate to determine the presence or absence of function. Occasionally however the qualitative value set cannot represent the required functionality. This problem commonly occurs in situations where a resistor bank is used to multiplex a number of separate signal functions to some control circuitry.
A related situation occurs when the 'amount' of functionality is not related to power dissipation, and is not a monotonic function. Simply simulating the boundary conditions does not allow any assumptions concerning intermediate operation (some sensors may exhibit these behaviors). In these situations the inclusion of new key values raises many simulation issues perhaps indicating that a quantitative approach may be required in these situations.
Finally in the category of functional artifacts related to the qualitative analysis, there are situations where a small current indicates some component is ACTIVE without taking into account that the amount of current concerned is too small to actually cause the indicated functionality. Two examples of this have occurred in our experience of simulating circuits:
3.4. Improved behavioural substitutions
Removing the non electrical behaviors from the electrical model might help simplify the simulation and clean up the abstraction. The operation of switches (mechanical), magnetic effects in relays and ECU (logical/information) might be best modeled as a more abstract behaviour with well defined links to control the structure. The problems of ECU components controlled by internal empirical lookup tables can be reduced by including simple versions of these as part of the controlling state machine. If it is required to model failure modes for these devices then additional behaviour can be included to represent the effect of each new failure.
3.5. Alternative quantitative effort /flow models
Recently more circuits contain electrical structures which do not readily fall into the 'power electrical' category that our representation supports. An example of this is Control Area Network bus utilized for information transfer between modules in the automotive environment. In these situations we are interested in the higher level effects of the encoded protocol, rather than the electrical values, which require lots of interpretation.
Digital logic signals are becoming more common and again have characteristics which make simulation as a resistance network difficult not least due to the importance of voltage rather than current as the meaningful signal. We can currently utilize the upper level dependency expressions combined with a simplified electrical interface to model combinatorial logic devices although the expressions can get fairly complex even for relatively simple devices. For sequential logic we have a real problem due to the difficulty of ordering the expressions. The solution appears to be to use the state machine representation of sequential logic, since this approach has often used in the past in the design of such devices. With this approach there will be only a very much simplified electrical model present and in the future it may be necessary to move up a level of abstraction and consider the information flow and signal through the system rather than voltages and currents.
3.6. Aggregation
For some kinds of design analysis (e.g. a complete sneak circuit analysis), it is necessary to perform simulation across the whole circuitry of a car at once. This involves simulating a circuit much larger than any separate subsystem circuit. Fortunately, the requirement for simulating very large networks has arisen at the same time as the restructuring of schematics into a hierarchical format. It may be possible to convert large sections of the hierarchy into a homogenized representation indicating only the equivalent resistance network. The analysis would then be greatly speeded up for each simulation, with the requirement that only parts of the hierarchy containing failures need be simulated in detail.
4. Conclusions
The automotive domain has already proven a useful testing ground for practical qualitative modelling and reasoning about electrical circuitry. It has provided promising results on industrial systems, and has produced applications that have been accepted by industry.
A number of aspects of the present state of qualitative electrical simulation have been considered together with examples of where improvement or a different approach is necessary to deal with specific electrical constructions found in today's automotive circuits and the challenges of tomorrow's automotive circuits.
As the complexity of modern cars increases, the automotive domain is providing challenges that reach to the heart of the qualitative reasoning endeavour, highlighting issues of compositionality, modelling choices, temporal reasoning and the trade-offs that have to be made in order to apply qualitative reasoning. We anticipate that solutions to these challenges may be of use in other areas of qualitative reasoning.
Acknowledgements
This work has been carried out on the UK EPSRC funded projects "Flame" and "Aquavit", with the cooperation of Jaguar Cars Ltd, Ford Motor Company Ltd, the Motor Industry Research Association, Integral Solutions Ltd and Viewlogic Ltd.
References
[Lee and Ormsby 93] Lee, M. and Ormsby, A. 1993. Qualitative Modelling of the Effects of Electrical Circuit Faults. Artificial Intelligence in Engineering vol. 8, 293-300.
[Mauss 95] Mauss, J. and Neumann, B. 1995. Diagnosis by Algebraic Modelling and Fault-Tree Induction. In Proceedings of DX-95, Goslar, Germany, 73-80.
[Mauss 96] Mauss, J. and Neumann, B. 1996. Qualitative reasoning about electrical circuits using series-parallel-star trees. In Proceedings of 10th International Workshop on Qualitative Reasoning, 147-153, California, May 1996.
[Price 96] Price, C. J. 1996. Effortless Incremental Design FMEA, Proc. Ann. Reliability and Maintainability Symp., 43-47, IEEE Press.
[Price and Pugh 96] Price, C. J.; Pugh, D. R. 1996. Interpreting Simulation with Functional Labels, Proc. 10th Annual Qualitative Reasoning Workshop, Stanford Sierra Camp, AAAI Press.
[Price, Snooke and Landry 96] Price, C. J.; Snooke, N.; Landry, J. 1996. Automated Sneak Identification. Engineering Applications of Artificial Intelligence, 9(4), 423-427.
[Pugh and Snooke 96] Pugh, D. and Snooke, N. 1996. Dynamic Analysis of Qualitative Circuits. In Proceedings of Annual Reliability and Maintainability Symposium, 37-42, IEEE Press.