• No results found

Fault Detection and Isolation in the Water Tank World

N/A
N/A
Protected

Academic year: 2021

Share "Fault Detection and Isolation in the Water Tank World"

Copied!
10
0
0

Loading.... (view fulltext now)

Full text

(1)

Fault Detection and Isolation in the Water Tank World

Niclas Bergman, Magnus Larsson

Department of Electrical Engineering

Linkping University, S-581 83 Linkping, Sweden

WWW: http://www.control.isy.liu.se

Email:

f

niclas, magnusl

g

@isy.liu.se

February 26, 1998

REGLERTEKNIK

AUTOMATIC CONTROL

LINKÖPING

Report no.: LiTH-ISY-R-2117

Submitted to CCSSE‘98

Technical reports from the Automatic Control group in Linkping are available by anony-mous ftp at the address ftp.control.isy.liu.se. This report is contained in the com-pressed postscript file 2117.ps.Z.

(2)

Fault Detection and Isolation

in the Water Tank World

Niclas Bergman

Dept. of Electrical Engineering

Link ¨oping University

S-581 83 Link ¨oping, Sweden

email: niclas@isy.liu.se

Magnus Larsson

Dept. of Electrical Engineering

Link ¨oping University

S-581 83 Link ¨oping, Sweden

email: magnusl@isy.liu.se

February 26, 1998

Abstract

A flexible, model based fault detection and isolation (FDI) system for an arbitrary configuration of a water tank world has been designed and implemented in MATLAB, SIMULINKand dSPACE. The fault detection is performed with local change detection algorithms, and the fault isolation is performed with residual patterns automatically generated from the total configuration.

Keywords: Fault detection, Local modeling, Change detection, Fault isolation, Diagno-sis.

1 Introduction

Consider a chemical industrial plant with several interacting subsystems that refines some raw material. Usually, the plant consists of a hierarchical composition of these subsystems. Starting with some low-level processing of several different sources of raw material, the result is carried through the system and intermediate results are processed either in parallel or in series. The output consists of some final product, or products.

In this article, we will use a water tank world as an example of such a refinery process consisting of interconnected subsystems (tanks) where the raw material (just water in our case) is carried through the system in a known direction. Malfunctions or occasional errors in the subsystems will affect the result and lead to a propagation of faults. We propose a

FDI1 methodology that locally detects errors in the subsystems, but globally isolates the

fault in the overall plant.

The water tank world consists of some configuration of tanks with water, pumps to ele-vate water and pipes to guide the liquid from one tank to another. A simple configuration is shown in Figure 1. As for all model based diagnosis, the basic idea is to compare the measured outputs from the system, in our case the tank levels, with the predictions of a system model. The eventual discrepancies are interpreted as symptoms of a fault.

In the approach pursued here, a clear distinction between fault detection and fault isola-tion is made. The fault detecisola-tion step uses detailed, but local nonlinear differential equa-tion models of the tanks, and signal processing in the form of a change detecequa-tion algorithm for each tank. The change detection algorithms generate residuals that are nonzero if the measured and the predicted tank level differ significantly. If one or several residuals are nonzero, a fault has been detected. The residuals then serves as input for the next step, the fault isolation.

(3)

... ... 6 6 h 1 h 2

Figure 1: Basic building block of the water tank world.

The faults that the FDI system is designed to handle are leakage, pipe block and extra water poured into a tank. These faults are very basic, yet of practical importance.

In the fault isolation step, the residuals generated are compared with the known resid-ual patterns for all faults that are known to the FDI system, and a conclusion is drawn on which fault or faults that can have occured. This part of the diagnosis process is quite similar to the discrete event system diagnosis methods treated in [2, 3] and [4].

The residual patterns are automatically generated from the structure of the tank config-uration. The only input to this procedure is the topology in of the interconnection between the tank subsystems. This is possible since we know how the faults manifests themselves and how they cascade through the system. Manual construction of residual patterns is la-borious and error prone and to automate this process is therefore highly desirable. E.g., in the field of diagnosing electrical circuits, much work has gone into the automatic genera-tion of fault trees, a certain residual pattern structure, from schematic representagenera-tions of the circuit, see for example [7].

The approach taken here is closely related to the analytical redundancy methods treated extensively in the control system literature, see, e.g., [8, 5]. The principal difference lies only in how the residual patterns are generated.

The detailed modeling of the tank and the change detection algorithm used for fault detection is described in Sections 2 and 3. The automatic residual pattern generation and how it is used for fault isolation is treated in Sections 4 and 5.

2 The tank model

In order to design local change detection algorithms, we are not primarily interested in the total tank configuration but rather in the local physical behavior. Hence, we will model the basic building block in our world of tanks and assemble a model of the configuration from such model blocks. The most complex basic configuration that we need is shown in Figure 1. All configurations of tanks that we are interested in, can be assembled by putting instances of this or simpler building blocks in series or in parallel. The inflow to the upper tank is controlled by a voltage driven pump and both tank levels are measurable. When

(4)

not stated otherwise, we will always assume all levels to be measurable.

2.1 Physical modeling

The change of water volume in the upper tank equals inflow minus outflow. The outflow depends on the amount of water in the tank and assuming lateral flow and that the liquid is

incompressible, the speed of the outflow is governed by Bernoulli’s law. LettingAdenote

the tank surface area,a the effective outlet area andthe inflow to the upper tank, we

have Ah˙ 1 =-a p 2gh 1 :

The effective outlet area also depends on the viscosity of the liquid. The pump dynam-ics is neglected, since it compared to the tank dynamdynam-ics is very fast. The water inflow is not necessarily directly proportional to the voltage to the pump. This can, e.g., be due to saturation in the magnetic kernel in the pump motor. We therefore model the pump as a

static nonlinearity from voltage to flow,=q(u). Lumping all constants together we get a

nonlinear model for the upper tank ˙ h 1 =- p h 1 +q(u): (1)

The inflow to the lower tank equals the outflow from the upper one. The lower tank may

not have the same outlet area as the upper one, we hence introduce a parameterfor the

lumped parameters of the lower tank. Augmenting the model (1) with the second tank dynamics, we get ˙ h 1 =- p h 1 +q(u) ˙ h 2 =- p h 2 + p h 1 :

This nonlinear, two dimensional model describes the tank dynamics. A delay time corre-sponding to the time it takes for the pump to deliver water to the upper tanks inlet may also be incorporated in the model, however we discard that component here.

2.2 Parameter identification

To obtain the tank parameters, one can perform a simple experiment with each tank.

Substitutingf(t)=

p h

1

(t)in (1) and letting the inflow be zero, the nonlinear

differen-tial equation becomes

2f(t)f (t)˙ =-f(t) or ˙ f(t)= - 2 :

Assuming the level in the tank is not identically zero we can solve forf(t)

f(t)= p h(t)= - 2 t+f(0):

Hence, starting at some initial condition f(0) =

p

h(0), the square root of the tank level

decreases linearly with time. If one such experiment per tank is performed, a line can be fitted in the least square sense to each of the experimental results. Frome the slopes of these

lines the constantsandcan be calculated.

The nonlinear pump characteristics can also easily be identified using the upper tank. Blocking the outlet of the upper tank its dynamics (1) becomes

˙

h 1

(5)

This shows that when running the pump with a constant voltageu

0, the slope of the tank

level equals the amount of inflow to the tank. If several experiments are performed using

different pump voltages u

0, the slope of the measured tank level can be determined in

the least square sense for eachu

0 used. By fitting the result to a polynomial function the

nonlinearity q(u) was be estimated. The result of such an identification procedure on a

pump in our lab is shown in Figure 2. As seen, a third degree polynomial is sufficient to capture the nonlinear saturation of the pump when driven by maximum voltage.

Estimated inflow samples Linear fit (5 first samples) Polynomial fit (3:rd degree)

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 Pump voltage

Inflow to upper tank

Figure 2: Identification of the nonlinear pump characteristics.

3 Fault detection

Once a model is found, the detection of discrepancies between the system and the model can be performed in a variety of ways. Often the model is used to predict future values of the system output and the difference between these predictions and the measured values are compared. If the difference between the model output and the measured output is significantly big it is assumed that the system has changed somehow and we label this as a residual change. This indicates that a fault has occured. Change detection is based on the theory of hypothesis testing, comprehensive treatments of these subjects can be found in [1, 6].

For simplicity we will use a simple observer type residual generator and fixed thresh-olds to determine when a residual change has occured. The simple change detector for the upper tank i shown in Figure 3. Compare the blocks with the model (1), the integrator state is limited between full and empty tank. The observer gain is located in block K1=0.1, this value is chosen as a trade-off between sensitivity to changes and reduction of the false alarm risk. With a more accurate model and less sensor noise one can use higher feedback gain K1 and lower detection levels, and thus obtain a faster detection of residual changes. However increasing the gain and decreasing the detection levels will yield an increase of the false alarm risk, the tradeoff is obvious. The residuals are fed to a detection block that generates a residual indicating if the system has significantly more or less water than the model simulation. Similar detectors for any tank can be constructed to locally detect the changes in the residuals.

(6)

0.0442 Alfa + + − Sum + − e1 1/s h1 f(u) Sqrt poly Pump 0 u f(u) Sqrt2 0.1 K1 0 h1mät Detection thresholds Detect 1 Res1

Figure 3: Change detector for a single tank object

4 The fault model

4.1 Fault types

We will assume that the faults that can occur in our tank world are of three types: Extra water poured into a tank, pipe block and pipe leakage. A nice interpretation of the tank world when working with the fault model, is in terms of object orientation. The world consists of two types of objects with certain attributes:

Tank Attributes:

Residual e2f-1 0 1gfrom the local detection algorithm

Extra water E

iis true if extra water is poured into the tank

Pipe Attributes:

Blocked Bis true if pipe is blocked

Leakage Lis true if pipe leaks

Since we assume no faults ever occur in a pump, no pump object is present in this context. Every tank is connected to at least one pipe at the top and bottom, and every pipe is connected at each end with exactly one tank, or “the rest of the world”, see further Sec-tion 4.2 and DefiniSec-tion 4.1. Circuits in the configuraSec-tion, i.e., pumps pumping water from a tank to another, is at present not allowed and we also assume that water always flows in just one direction in every pipe.

Each of the fault types give rise to a certain combination of residuals. Let the two tanksi

(upper tank) andj(lower tank) with residualse

iand e

j, be connected with a pipe denoted

i-j. We then have:

Fault Residual pattern

E

i, or extra water in tank

i e i

>0 L

ij, or leakage in pipe

i-j e j <0 B ij, or pipe i-jblocked e i >0 e j <0

Ifiorjis0, then the corresponding residual (e

ior e

j) is simply removed from the pattern.

Since we measure the level in all tanks, the fault will not propagate further and cause nonzero residuals in other connected tanks.

(7)

4.2 The cause/effect matrix

The configuration of a certain tank world can be specified with a numbering of the tanks and a two column matrix, called the pipe matrix specifying which tanks are connected with pipes.

Definition 4.1Pipe matrix

A pipe matrix is a two column matrix with one row for each pipe in the tank configuration. In a row, the left column contains the index for the upper tank and the right column the index for the lower tank. The value 0 is used when the pipe connects to “the rest of the

world”. 2

As an example, the basic configuration in Figure 1 with the tanks numbered1and2from

the top, has the pipe matrix

S= 2 4 0 1 1 2 2 0 3 5 (2)

where0symbolizes “the rest of the world”.

The general residual pattern in the previous section together with a specific pipe matrix gives rise to a specific cause effect pattern, that can be visualized as a graph. In Figure 4, a part of the graph for the basic configuration in Figure 1 is shown.

E 1 B 12 L 12 e 1 >0 e 1 <0 Causes Effects

Figure 4: Part of the cause/effect graph for the basic configuration in Figure 1

We will choose to represent this knowledge as a matrix, aiming at a MATLAB

imple-mentation. Here is a general definition of the cause/effect matrix. Definition 4.2Cause/effect matrix

A cause/effect matrix (or c/e matrix)Mhas as many rows as there are faults (causes) and as

many columns as there are observable effects.M

ijis

1if faulticauses the effectjto occur,

0otherwise.

Remark: For the water tank world, the matrix has as columns all the residuals, with a

column each fore

1 >0,e

1

<0etc., and all possible faultsE

i, B ijand L ijas rows. 2

The algorithm that generates the c/e matrix from the pipe matrix is now more or less trivial to state.

Algorithm 4.1Cause/effect matrix generation Input: Pipe matrixSand total number of tanksn

t

Output: Cause/effect matrixM

1. Calculate number of pipes,n

p

(8)

2. InitializeMas a(n t +2n s )j(2n t )zero matrix.

3. Set the elements ofMcorresponding to the row forE

iand the column for

e i

>0to 1,

i=1 ::: n t.

4. For each rowjinS,

u=S(j 1);l=S(j 2); % Upper and lower tank indices

ifu6=0, % Upper tank exists

Set the element ofMcorresponding to

the row forB

uland the column for

e u

>0to 1;

endif

ifl6=0, % Lower tank exists

Set the element ofMcorresponding to

the row forB

uland the column for

e l

<0to 1;

Set the element ofMcorresponding to

the row forL

uland the column for

e l

<0to 1;

endif endfor

5. IfMcontains rows with only zeros, display warning message for undetectable fault(s).

6. IfMcontains identical rows, display warning message for indistinguishable faults.

2

For the basic configuration in Figure 1, with pipe matrix (2), the complete c/e matrix is:

e 1 >0 e 1 <0 e 2 >0 e 2 <0 E 1 1 E 2 1 B 01 1 L 01 1 B 12 1 1 L 12 1 B 20 1 L 20 (3)

Remember that eachEcorresponds to a tank andBandLcorrespond to pipes. As can be

seen from the matrix, faultL

20can never be detected and the faults

B 01 L 01respectively E 2 B

20cannot be separated. This is due to the fact that pipes

0-1and2-0are connected

to ‘the rest of the world’, where we have no sensors.

The algorithm 4.1 for the automatic generation of this matrix from a pipe matrix has

been implemented in MATLAB.

5 Fault isolation

With fault isolation we mean the process of deciding which fault/faults that has occured in the real system after that a deviation from normal behavior has been detected by the change detection algorithms in Section 3, in the form of one or more nonzero (active) residuals.

We will make the assumption that only one fault occurs at a time. The fault isolation is then simply to pick out the faults that alone explain the misbehavior, i.e., that explain the nonzero residuals.

Since a residual often is part of more than one faults residual pattern, see e.g.,e

2 <0in

the c/e matrix (3), we introduce the concept of ‘timeout’. When a certain time has elapsed, or when the human operator so orders, ‘timeout’ is requested and then we only keep the faults whose total residual pattern has occured.

Given the cause/effect matric from Section 4 and a set of active residuals, we go about as follows:

(9)

Algorithm 5.1Fault isolation

Input: Set of active residuals, c/e matrixM, timeout (Boolean).

Output: Set of possible faults.

1. Pick out the columns of the active residuals from the cause/effect matrixM.

2. Keep the rows ofMthat have a1in all of these columns. If there is no such row,

multiple or unknown faults has occured.

3. If timeout, keep only the rows (i.e., faults) for which all of the residuals are active. 4. Output the faults corresponding to the remaining rows (may be none).

2

This algorithm has been implemented in MATLAB.

Example Consider the basic configuration in Figure 1 again. Assume that the level in

the lower tank is lower than it should be, i.e., we gete

2

< 0from the change detection

algorithm. The corresponding column in the cause/effect matrix (3) contains two1s, one

forB

12, i.e., the pipe between the upper and lower tank is blocked, and one for

L 12, i.e.,

the same pipe has a leakage. If no other residual goes active and we request timeout, the

faultB

12is discarded since it would have caused an increase of the level in the upper tank,

i.e.,e

1

>0. The fault is uniquely diagnosed asL

12.

6 Results and conclusions

A flexible fault detection and isolation (FDI) system for an arbitrary configuration of a water tank world has been designed and implemented.

The physical modeling is locally performed at each tank, and the change detection al-gorithms are locally designed for each tank model. The residual patterns used for fault isolation are automatically obtained from a schematic description of the total configura-tion. In all, this gives a flexible FDI system, quickly adaptable to an arbitrary tank world configuration.

The main limitations of the current approach is that there can be no circuits in the tank configuration, and that the liquid is only allowed to flow in one direction. Experimental testing on a basic configuration has shown expected performance.

Some possible extensions of the approach are to deal with circuits in the configuration, allow bidirectional pipes and to deal with tanks without sensors. Another fault type that is also easily incorporated in the approach is tank leakage. It was not included in the present work for simplicity, and also since it is difficult to simulate on the existing lab equipment.

References

[1] M. Basseville and I.V. Nikiforov. Detection of abrupt changes: theory and application. Infor-mation and system science series. Prentice Hall, Englewood Cliffs, NJ., 1993.

[2] S. Bavishi and E. K. P. Chong. Automated fault diagnosis using a discrete event systems framework. In Proceedings of the International Symposium on Intelligent Control, pages 213–8. IEEE, 1994.

[3] S. Bavishi and E. K. P. Chong. Testability analysis using a discrete event systems frame-work. In Proceedings of the American Control Conference, Seattle, Washington, volume 4, pages 2621–25. IFAC, June 1995.

(10)

[4] Feng Lin. Diagnosability of discrete-event systems and its applications. Discrete Event Dynaic Systems, 4:197–212, 1994.

[5] Mattias Nyberg. Model Based Diagnosis with Application to Automotive Engines. Licentiate thesis LiU-TEK-LIC-1997:38, Department of Electrical Engineering, Link ¨oping Univer-sity, Link ¨oping, Sweden, September 1997.

[6] H.L. Van Trees. Detection, Estimation and Modulation Theory. Wiley, New York, 1968. [7] R. D. Vries. An automated methodology for generating a fault tree. IEEE Transactions

on Reliability, 39(1):76–86, April 1990.

[8] Alan S. Willsky. A survey of design methods for failure detection in dynamic systems. Automatica, 12:601–11, 1976.

References

Related documents

I intervjuerna med eleverna framkommer en trend att skapa en online identitet och forma den utifrån den respons man får av sin omgivning. Som aktiv på sociala medier blir

Incorporating cyber into other activities, clarifying the cyber policy with regard to Article 5 and readiness to conduct full-spectrum cyber operations with shared capabilities

Den här uppsatsen syftar till att undersöka sambandet mellan fitspiration konsumtion på sociala medier och kroppsuppfattning och utseendeångest hos unga kvinnor som studerar eller

Det finns flera bakomliggande orsaker som påverkar hur konsumenter förhåller sig till produkten och när det gäller nötkött är viktiga aspekter till exempel uppfödning, rester

rather high number of images may be needed to reflect the content of a recording. A video file showing a hologram is thus more likely to be more precise as a representation than

För kadmium ligger dock den totala halten un- der mätområdet för metoden (0,005 mg/m 3 ) och prestandakravet är därmed inte rele- vant och kan inte ligga till grund för att

INNEHÅLLSFÖRTECKNING 1 Bakgrund 1.1 Syfte och mål 2 Metodbeskrivning 2.1 Anläggning 2.2 Försöksuppställning och genomförande 2.3 Referensmetod sluten kammare 2.4 Isolation

Vi kommer i denna studie att geografiskt avgränsa oss till det rurala samhället i södra Karnataka som i studien utgörs av fyra byar för att ta reda på hur deras