Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2011 Jan 1.
Published in final edited form as: Syst Control Lett. 2010 Jan 1;59(1):9–17. doi: 10.1016/j.sysconle.2009.11.001

Detectability of Discrete Event Systems with Dynamic Event Observation

Shaolong Shu 1, Feng Lin 1,2
PMCID: PMC2811886  NIHMSID: NIHMS159204  PMID: 20161618

Abstract

Our previous work considers detectability of discrete event systems which is to determine the current state and subsequent states of a system based on event observation. We assume that event observation is static, that is, if an event is observable, then all its occurrences are observable. However, in practical systems such as sensor networks, event observation often needs to be dynamic, that is, the occurrences of same events may or may not be observable, depending on the state of the system. In this paper, we generalize static event observation into dynamic event observation and consider the detectability problem under dynamic event observation. We define four types of detectabilities. To check detectabilities, we construct the observer with exponential complexity. To reduce computational complexity, we can also construct a detector with polynomial complexity to check strong detectabilities. Dynamic event observation can be implemented in two possible ways: a passive observation and an active observation. For the active observation, we discuss how to find minimal event observation policies that preserve four types of detectabilities respectively.

Keywords: Discrete Event Systems, Detectability, Sensor Activation, Event Observation, State Estimation

1. Introduction

Discrete event systems [1, 2, 3, 4, 5, 6] are often used to model complex man-made systems. Based on discrete event system framework, some important problems on complex systems, such as supervisory control and fault diagnosis, can be effectively addressed. Obtaining successful solutions of these problems often needs sufficient knowledge on system's behavior. There are two possible ways to study system s' behavior. One is to consider event sequences and inv estigate the properties such as observability [4, 5] and co-observability [6]. The other way is to consider state space and state trajectories. In [7, 8], we consider the problem of state estimation by investigating the property of detectability. For different applications, [7, 8] introduce four types of detectabilities.

In most prior works [4, 5, 6, 7, 8], event observation mapping is static: if an event is observable, then it can be observed whenever it occurs. However this may not be the best approach because in many practical systems, the occurrences of events are detected by sensors and then the information is transmitted to supervisors or other agents by communication channels. For such practical systems, static event observation means the corresponding sensors will always be active and all the data will be transmitted to supervisors or agents by the communication channels.

Take sensor networks for example, these systems often have a large number of sensor nodes. The available energy of the battery which provides power to these sensor nodes is limited, and the bandwidth of the communication channels between these sensor nodes and supervisors/agents is also limited. Therefore, we need to save the energy of battery and to utilize the communication channels effectively. Hence the sensors should not be always activated and/or data should not always be transmitted by the communication channels. That means even though an event is observable in principle, only some occurrences of the event may be observable to supervisors or agents. In such cases, event observation becomes dynamic. Hence investigating detectability of discrete event systems with dynamic event observation is important.

Furthermore, supervisors and agents often have the ability to decide when to activate the sensors and when to transmit the occurrences of events. In order to reduce the use of energy of the battery of the sensors and/or to maximize the efficiency of the communication channels, we want the duration in which the sensors are active to b e as short as possible and the information received by the supervisors to be as little as possible without violating detectabilities. This problem can be formulated as minimizing the event observation while preserving detectabilities.

In this paper, we first extend detectabilities from static event observation to dynamic event observation. Since event observation is now state-dependent, we need to consider both events and states. This makes the observation mapping more difficult to handle. We define detectability, strong detectability, periodic detectability and strong periodic detectability using the new dynamic observation mapping. We derive necessary and sufficient conditions for these four detectabilities based on observers. We also derive necessary and sufficient conditions for strong detectability and strong periodic detectability based on detectors. The advantage of using detectors is that while the complexity of constructing an observer is exponential, the complexity of constructing a detector is polynomial.

In the second part of the paper, we investigate the problem of minimizing event observation while preserving detectabilities. We consider various observation policies preserving detectabilities and would like to find a minimal policy that observes event occurrences as little as possible. The results allow us to provide sufficient state information for different purposes such as feedback control and diagnosis with a minimal cost.

The problem of minimization of event observation has been studied using discrete event system framework recently. Initial work on minimization of event observation is to minimize the set of events to be observed by the supervisors or agents [9, 10, 11, 12]. In its general form, this problem is known to be NP-complete [12]. Sequentially, minimization of dynamic event observation is investigated [13, 14, 15, 16, 17, 18, 19, 20, 21]. In [13, 14, 15], the problem of minimization of dynamic event observation to preserve diagnosability is considered. [16, 17, 18, 19, 20] consider how to minimize the communication of event occurrences among multi-agents for supervisory control. More recently, [21] discusses the sensor activation problem of finding a minimal sensor activation policy while preserving observability. [21] is mostly related to the second part of this paper. The main differences between [21] and this paper are as follows. (1) [21] deals with observability while this paper deals with detectability. (2) We assume that the initial state is uncertain.

The paper is organized as follows. Section 2 considers the detectability of discrete event systems with dynamic event observation. Definitions of detectabilities are given and necessary and sufficient conditions are derived. In Section 3, we investigate how to minimize event observation while preserving detectabilities. Algorithms are given to compute minimal event observation policies.

2. Detectability Based on Dynamic Event Observation

2.1 Model

In this section, we investigate detectability of discrete event systems with dynamic event observation. As usual [1, 2, 3], a discrete event system is modeled by a deterministic automaton as follows:

G=(Q,Σ,f,q0).

where Q is the set of discrete states; Σ is the set of discrete event s; f: Q × Σ → Q is the transition function; q0Q is the initial state of the system. The transition function describes the dynamics of the discrete event system. The transition function is extended to f: Q × Σ* → Q in the usual way. We use f (q, s)! to mean that f (q, s) is defined.

For different state estimation problems, we assume different knowledge on the initial state. We use Q0 (⊆ Q) to denote the set of possible initial states. So the automaton used for state estimation can be re-written as:

G=(Q,Σ,f,Q0).

The language generated by G is defined as

L(G)={sΣ:(qQ0)f(q,s)!}.

Static event observation is given by the natural projection P: Σ → Σo, where Σo is the set of observable events. Dynamic event observation means observable events may be observed for some time periods, but not for all time periods. We assume that dynamic event observation is state-dependent and we use the following mapping to describe this dependency:

Φ:Q2Σo.

Given a state q, Φ(q) is the set of events which can be observed when the system is in state q. Since the observation of events is state-dependent, the event observation can be described by observable transitions. In other words, all the transitions are divided into two disjoint sets: observable transition set and unobservable transition set.

As in [7, 8], we make the following two assumptions without loss of generality.

Assumption 1

G is deadlock free, that is, for any state of the system, at least one event is defined at that state: (∀qQ)(∃σ ∈ Σ)f(q, σ)!.

Assumption 2

No loops in G contain only unobservable events.

2.2 Definitions of Detectabilities

Compared with static event observation, dynamic event observation makes it more difficult to determine the current state of the system. To illustrate this difficulty intuitively, let us consider the following example.

Example 1

Consider the discrete event system in Figure 1. We assume Q0 = {q1} and the observable event set is Σo = Σ = {α, β}. Under static observation, we can determine the current state for any event sequence.

Fig. 1.

Fig. 1

A discrete event system for detectability under dynamic event observation

Now we assume that the events are dynamically observable and the dynamic event observation mapping is defined as: Φ(q1) = {α}, Φ(q2) = {α, β}, Φ(q3) = {α, β}.

Initially, the system is in state q1. Since the transition (q1, β, q3) is not observable, we cannot observe the occurrence of this transition when it occurs. So the system may go to q3 before we observe any event occurred. That means we cannot determine the initial state of the system.

However, the transition (q3, β, q2) is observable. That means if the system moves from state q3 to state q2, we can observe the occurrence of transition (q3, β, q2) and know the system is now in state q2. Though the two transitions (q1, β, q3) and (q3, β, q2) have the same event, one is observable and the other is unobservable. It makes it more difficult to check the detectability of the system.

Since the observation of events is dynamic and the initial state is uncertain (the initial state can be any one of the states in Q0), for an event sequence s, the observed event sequence may not be unique. However, for a transition path qiσ1σnqi+n, the observed event sequence is unique because the observability of any transition is certain. So we can define the information mapping

θ:Q×ΣΣo

in such a way that θ(q, s) is the observation when the system starts at q and s has occurred. θ(q, s) is defined recursively as follows (ε denotes the empty string)

θ(q,σ)={σifσΦ(q)εifσΦ(q)} (1)
θ(q,sσ)={θ(q,s)σifσΦ(f(q,s))θ(q,s)εifσΦ(f(q,s))} (2)

Based on the information mapping θ, we can define the observed language of a discrete event system G as:

Lo(G)={sΣo:(qQ0)(tΣ)f(q,t)!θ(q,t)=s}

Suppose that a discrete event system G is in a set of possible states Q′(⊆ Q), then the set of all possible states after observing t ∈ Σ* is denoted by

R(Q,t)={f(q,s):(qQ)(sΣ)θ(q,s)=tf(q,s)!}

In particular, the unobservable reach is defined as:

UR(Q)=R(Q,ε)

Detectability concerns with the state estimation after sufficient long sequences of observations. Therefore, let us denote the length of a string s by |s|, and the set of positive integers by N. If x is a set, then |x| denotes the number of elements in the set. We also denote the set of prefixes of s by Pr(s).

Since the initial state may be unknown and the information mapping depends on states, we need to describe a possible trajectory of the system by an infinite transition path:

q0σ1q1σ2σnqnσn+1.

where, q0Q0, and s = σ1σ2…σnσn+1… ∈ Σω is an infinite sequence of events belonging to ω –language Σω. We denote this infinite transition path by (q0, s) ∈ Q0 × Σω.

From Assumptions 1 and 2 in Section 2.1, we know that for an infinite transition path, the length of the observable event sequence is also infinite.

With these definitions and notations, we can now extend the definitions of various detectabilities of discrete event system to the case of dynamic event observation.

Definition 1 (Detectability)

A discrete event system G is detectable with respect to Φ if we can determine, after a finite number of observations, the current state and subsequent states of the system for some trajectories of the system. That is,

(nN)((q,s)Q0×Σω)(tPr(θ(q,s)))t>nR(Q0,t)=1

Definition 2 (Strong Detectability)

A discrete event system G is strongly detectable with respect to Φ if we can determine, after a finite number of observations, the current state and subsequent states of the system for all trajectories of the system. That is,

(nN)((q,s)Q0×Σω)(tPr(θ(q,s)))t>nR(Q0,t)=1

Definition 3 (Periodic Detectability)

A discrete event system G is periodically detectable with respect to Φ if we can periodically determine the current state of the system for some trajectories of the system. That is,

(nN)((q,s)Q0×Σω)(tPr(θ(q,s)))(tΣ)ttPr(θ(q,s))t<nR(Q0,tt)=1

Definition 4 (Strong Periodic Detectability)

A discrete event system G is strongly periodically detectable with respect to Φ if we can periodically determine the current state of the system for all trajectories of the system. That is,

(nN)((q,s)Q0×Σω)(tPr(θ(q,s)))(tΣ)ttPr(θ(q,s))t<nR(Q0,tt)=1

2.3 Determination of Detectability

To find necessary and sufficient conditions for checking the four types of detectabilities under dynamic event observation, we first investigate the properties of observer. As in the case of static event observation, we can construct an observer, denoted by Gobs, from G as follows.

Gobs=(X,Σ,δ,x0)=Ac(2Q,Σ,δ,UR(Q0))

where Ac(.) denotes the accessible part and δ(x,σ) = UR ({f(q,σ): (∃qx)f(q,σ)!∧σ ∈ Φ(q)}). Clearly, δ(x,σ) is defined if and only if {f(q,σ): (∃qx)f(q,σ)!∧σ ∈ Φ(q)} ≠ ϕ, which is denoted by δ(x,σ)!.

The observer Gobs characterizes the observed language of the discrete event system G as shown below.

Theorem 1

  1. Lo(G) = L(Gobs)

  2. (∀sLo(G))δ(x0,s) = R(Q0,s)

Proof:

Let us first prove

sLo(G)sL(Gobs)

by induction on the length | s | of string s ∈ Σ*.

Base: For | s |= 0, that is, s = ε, clearly both ε ∈ Lo(G) and ε ∈ L(Gobs) are true. Therefore,

εLo(G)εL(Gobs).

Induction Hypothesis: Suppose that for any s ∈ Σ* such that | s |≤ n,

sLo(G)sL(Gobs).

Induction Step: We need to prove that any sσ ∈ Σ* such that | sσ |= n + 1,

sσLo(G)sσL(Gobs).

Indeed,

sσLo(G)sLo(G)sσLo(G)sL(Gobs)sσLo(G)by Induction Hypothesisδ(x0,s)!(qQ0)(tσΣ)f(q,tσ)!θ(q,tσ)=sσδ(x0,s)!(qQ0)(tσΣ)f(q,t)!θ(q,t)=sf(q,tσ)!θ(q,tσ)=sσδ(x0,s)!(qQ0)(tσΣ)θ(q,t)=sf(q,t)δ(x0,s)f(q,tσ)!θ(q,tσ)=sσδ(x0,s)!(qQ0)(tσΣ)θ(q,t)=sq=f(q,σ)δ(x0,s)f(q,σ)!σΦ(q)δ(x0,s)!(qQ0)(tσΣ)θ(q,t)=s{f(q,σ):(qδ(x0,s))f(q,σ)!σΦ(q)}ϕδ(x0,s)!(qQ0)(tσΣ)θ(q,tσ)=sδ(x0,sσ)!δ(x0,sσ)!sσL(Gobs)

This proves the first part of the theorem.

Now, let us prove the second part of the theorem, that is, for all sLo (G),

δ(x0,s)=R(Q0,s)

by induction on the length | s | of string sLo (G).

Base: For | s |= 0, that is, s = ε, we have, by definition

δ(x0,ε)=x0=UR(Q0)=R(Q0,ε).

Induction Hypothesis: Suppose that for any sLo (G) such that | s |≤ n,

δ(x0,s)=R(Q0,s).

Induction Step: We need to prove that any sσ ∈ Lo (G) such that | sσ |= n + 1,

δ(x0,sσ)=R(Q0,sσ).

Indeed,

δ(x0,sσ)=δ(δ(x0,s),σ)=δ(R(Q0,s),σ)by Induction Hypotheis=UR({f(q,σ):(qR(Q0,s))f(q,σ)!σΦ(q)})=R({f(q,σ):(qR(Q0,s))f(q,σ)!σΦ(q)},ε)=R(Q0,sσ)

This proves the second part of the theorem.

To check detectabilities, we first mark the states in Gobs that contain singleton state and denote the set by:

Xm={xX:x=1}.

Clearly, if the observer Gobs is in any state belonging to Xm, then the current state of the system G can be uniquely determined; whereas if the observer Gobs is in a state belonging to XXm, then the current state of the system G cannot be uniquely determined.

States involved in loops are of particular interest in determining detectabilities because Gobs can stay in these states forever. Therefore, let us denote the states involved in loops by

Xl={x:(sΣ)s1δ(x,s)=x}

Also, the set of states reachable from some states in Xl is denoted by

Xc={x:(xXl)(sΣ)x=δ(x,s)}.

Note that XlXc (by taking s = ε in the above equation). Because the observer Gobs describes the set of all possible states the system G may be in when we observe a sequence of observable transitions, it can be used for checking different types of detectabilities as shown in the following theorems. The proofs of these theorems are omitted because similar proofs can be found in [8].

Theorem 2

A discrete event system G is detectable with respect to Φ if and only if there is at least one loop in Gobs which are entirely within Xm.

Theorem 3

A discrete event system G is strongly detectable with respect to Φ if and only if in its observer Gobs, we have XcXm.

Theorem 4

A discrete event system G is periodically detectable with respect to Φ if and only if there exists at least one loop in Gobs which includes at least one state belonging to Xm.

Theorem 5

A discrete event system G is strongly periodically detectable with respect to Φ if and only if there are no loops in Gobs which are entirely within XXm.

Checking detectabilities using Theorems 2–5 requires the construction of an observer. Since in the worst case, the cardinality of the state space of the observer is 2|Q|, the computational complexity of constructing the observer is exponential. To reduce computational complexity, we can check strong detectability and strong periodical detectability with polynomial complexity by constructing a detector which is introduced in [8]:

Gdet=(Y,Σ,ξ,y0)=Ac(Y,Σ,ξ,UR(Q0)).

The state space of the detector is

Y={y:yQy2}{y0}.

The transition function ξ: Y′ × Σo → 2Y′ is defined as follows. For ξ (y,σ), first let

Temp=UR({f(q,σ):(qx)f(q,σ)!σΦ(q)})

Then according to the number of elements in Temp, we define

ξ(y,σ)={{Temp}ifTemp=1{y:yTempy=2}ifTemp2undefinedifTemp=0.}

As in the case of observer, we define:

Ym={yY:y=1}Yl={y:(sΣ)s1yξ(y,s)}.Yc={y:(yYl)(sΣ)yξ(y,s)}

Based on the detector, we can check strong detectability and strongly periodic detectability using the following two theorems, whose proofs are also om itted. Note that detectability and periodic detectability cannot be checked using detectors.

Theorem 6

A discrete event system G is strongly detectable with respect to Φ if and only if in its detector Gdet, we have: YcYm.

Theorem 7

A discrete event system G is strongly periodically detectable with respect to Φ if and only if there are no loops in Gdet which are entirely within YYm.

Example 2

We continue Example 1. Let us construct the observer for the system in Example 1 as shown in Figure 2. We can see that the system is neither strongly detectable nor strongly periodically detectable. However, the system is detectable and periodically detectable.

Fig. 2.

Fig. 2

The observer with dynamic event observation for the system in Figure 1

We now construct the detector as shown in Figure 3.

Fig. 3.

Fig. 3

The detector with dynamic event observation for the system in Figure 1

We also can see that the system is neither strongly detectable nor strongly periodically detectable.

3. Minimal Event Observation Policy

3.1 Event Observation Policy

Dynamic event observation mapping Φ can be achieved or implemented in two possible ways: a passive way and an active way. In the passive way, the plant G reports to the supervisors or agents the occurrences of events according to Φ automatically without active involvement of the supervisors or agents. Therefore, from the view point of the supervisors or agents, the observation is passive. In the active way, the supervisors or agents activate sensors and control the communications between themselves and the sensors in order to observe the occurrences of events. Both passive observation and active observation are used in practice.

For passive observation, the observation problem is relatively simple from the viewpoint of a supervisor or agent: what it gets is what it has. On the other hand, the observation problem for active observation is more complex and interesting. We investigate this problem in this section. We assume that a set of sensors are available in the plant to detect the occurrences of observable events. For active observation, event observation mapping is achieved by an event observation policy Ω which is a mapping:

Ω:Q2Σo

Here Ω(q) is the set of events whose corresponding sensors are activated and the occurrences of events are transmitted to the agent at state q.

Event observation policies are the same as sensor activation policies discussed in [21] for observability. For two event observation policies Ω and Ω′, we say that Ω ≥ Ω′ if and only if (∀qQ) Ω(q) ⊇ Ω′(q), and Ω > Ω′ if and only if Ω ≥ Ω′ ⊇ (∃qQ)Ω(q) ⊃ Ω′(q). Similarly, we define Ω ≤ Ω′ and Ω < Ω ′. If Ω ≥ Ω′, we say the Ω is a super-policy of Ω′. If Ω ≤ Ω′, we say the Ω is a sub -policy of Ω′.

Given an event observation policy Ω, there is a corresponding information mapping, denoted by θΩ or θ if Ω is understood, as defined by Equations (1) and (2) (by taking Φ as Ω).

For any two transition paths, if they have the same observed event sequences, then they are indistinguishable. Obviously, we must make the same event observation decision after any two indistinguishable transition paths. This leads to the following definition:

Definition 5

An event observation policy Ω is feasible if

(q,qQ0)(s,sΣ)θ(q,s)=θ(q,s)Ω(f(q,s))=Ω(f(q,s)) (3)

Feasibility can be checked using observer as described in the following theorem.

Theorem 8

An event observation policy Ω is feasible if and only if the corresponding observer Gobs = (X, Σo, δ, x0) satisfies:

(xX)(q,qx)Ω(q)=Ω(q) (4)

Proof:

We first prove the “If” part. Clearly

(xX)(q,qx)Ω(q)=Ω(q)(tL(Gobs))(q,qδ(x0,t))Ω(q)=Ω(q)

By Theorem 1, we have

(tLo(G))(q,qR(Q0,t))Ω(q)=Ω(q)

Hence, (∀ q, q′ ∈ Q0)(∀s, s′ ∈ Σ*) the following holds

θ(q,s)=θ(q,s)f(q,s)R(Q0,θ(q,s))f(q,s)R(Q0,θ(q,s))Ω(f(q,s))=Ω(f(q,s))

That is, Equation (3) is true and Ω is feasible.

Next, we prove the “Only if” part. Take any tLo(G) and q,q′ ∈ R(Q0, t), then

(s,sL(G))(q0,q0Q0)f(q0,s)=qf(q0,s)=qθ(q0,s)=θ(q0,s)=t

Assume Equation (3) is true, then

θ(q0,s)=θ(q0,s)Ω(f(q0,s))=Ω(f(q0,s))Ω(q)=Ω(q)

Therefore,

(tLo(G))(q,qR(Q0,t))Ω(q)=Ω(q)

By Theorem 1,

(tLo(G))(q,qδ(x0,t))Ω(q)=Ω(q)

which implies

(xX)(q,qx)Ω(q)=Ω(q)

That is, Equation (4) is true.

In [21], it is shown that feasible sensor activation policies satisfy monotonicity. That is, activating more sensor leads to less confusion. The same is true for event observation policies. Moreover, let us define the union of event observation policies as follows. Ω = Ω1 ∪ Ω2 if and only if

(qQ)Ω(q)=Ω1(q)Ω2(q)

Then we have the following theorem.

Theorem 9

If some finite event observation policies Ω12,⋯,Ωn are all feasible, then i=1nΩi is also feasible.

Proof:

We first prove Ω = Ω1 ∪ Ω2 is feasible.

Denote the observers for Ω, Ω1, and Ω2 by Gobs = (X, Σo, δ, x0), Gobs1=(X1,Σo,δ1,x01), and Gobs2=(X2,Σo,δ2,x02) respectively. Since Ω1 and Ω2 are feasible, by Theorem 8, we have

(x1X1)(qi1,qj1x1)Ω1(qi1)=Ω1(qj1)(x2X2)(qh2,qk2x2)Ω2(qh2)=Ω2(qk2)

We need to prove:

(xX)(q,qx)Ω(q)=Ω(q)

Because Ω1 ≤ Ω and Ω2 ≤ Ω, it is not difficult to show

  1. For the initial state, x0x01x0x02

  2. For any state xX, if (∃x1X1, ∃x2X2)xx1xx2, then for any event σ satisfying (∀qx)σ ∈ Ω1(q) ∧ σ ∈ Ω2(q), we have (x1X1,x2X2)δ(x,σ)x1δ(x,δ)x2.

By recursively applying the above facts, we have

(xX)(x1X1,x2X2)xx1xx2

Now (∀xX)(∀q,q′ ∈ x) the following is true

(x1X1,x2X2)xx1xx2(x1X1,x2X2)q,qx1q,qx2(x1X1,x2X2)Ω1(q)=Ω1(q)Ω2(q)=Ω2(q)Ω(q)=Ω(q)

That is, Equation (3) is true and Ω = Ω1 ∪ Ω2 is feasible. Repeat this if necessary, we conclude that i=1nΩi is feasible.

Note that the minimal feasible event observation policy Ωmin is given by

(qQ)Ωmin(q)=ϕ

and the maximal feasible event observation policy Ωmax is given by

(qQ)Ωmax(q)=Σo.

Our goal is to mini mize event observation while preserving detectabilities. This means to find a minimal feasible event observation policy under which the system is detectable (for different detectabilities respectively). Our approach is to start with the maximal feasible event observation policy Ωmax and try to remove event observations one by one until no further removal is possible. Since removing one event observation from a policy may make the resulting policy infeasible, we may have to remove more event observation to recover feasibility. Therefore, given an observation policy Ω, we would like to find the maximal feasible sub-policy of Ω. Let Ω12,⋯,Ωn be all feasible sub-policy of Ω, then by Theorem 9, Ωf=i=1nΩi exists and is feasible. It has the property that (1) Ωf ≤ Ω and (2) for all feasible Ω', Ω' ≤ Ω ⇒ Ω' ≤ Ωf. The following Algorithm calculates the maximal feasible sub-policy of a given event observation policy.

Algorithm 1

Input: a system G and an event observation policy Ω0;

Output: the maximal feasible sub-policy Ωf of Ω0;

Step 1: Initially, set

Ω=Ω0;P{(q,q):q,qQ0};

Step 2: Recursively, based on the policy Ω, set

PP{(q,q)Q×Q:((qi,qj)P)qUR(qi)qUR(qj)};

Step 3: Recursively, based on the policy Ω, set

PP{(q,q)Q×Q:((qh,qk)P)(σΣo)σΩ(qh)σΩ(qk)qf(qh,σ)qf(qk,σ)}

Step 4: Iterate Steps 2 and 3 until no further changes to P;

Step 5: Recursively do

If (∃q, q′) ∈ P)(∃σ ∈ Σo)σ ∈ Ω(q) ∧ σ ∈ Ω(q′), set

Ω(q)Ω(q)σ.

Step 6: Iterate Steps 2 to 5 until no further changes to Ω.

Step 7: Set

Ω0fΩ.

End.

Theorem 10

Ω0f obtained by Algorithm 1 is the maximal feasible event observation sub-policy of the given event observation policy Ω0.

Proof:

It is clear from Algorithm 1 that after the algorithm converges, the resulting Ω, which will be Ω0f, and the corresponding P will satisfy the following conditions.

P=P{(q,q)Q×Q:((qi,qj)P)qUR(qi)qUR(qj)}P=P{(q,q)Q×Q:((qh,qk)P)σΩ(qh)σΩ(qk)qf(qh,σ)qf(qk,σ)} (5)
((q,q)P)(σΣo)σΩ(q)σΩ(q) (6)

Equation (5) is true because otherwise Steps 2 and 3 will not converge. Equation (6) is true because otherwise Step 5 will not converge. From Equations (5) and (6), it is not difficult to see that, (∀ q, q′ ∈ Q0)(∀ s, s′ ∈ Σ*), we have

θ(q,s)=θ(q,s)(f(q,s),f(q,s))P(σΣo)σΩ(f(q,s))σΩ(f(q,s))Ω(f(q,s))=Ω(f(q,s))

That is, Equation (3) is true and Ω = Ω0f is feasible. Ω = Ω0f is the maximal sub-policy because Algorithm 1 starts with Ω = Ω0 and P = {(q, q′): q, q′ ∈ Q0} and remove transitions from Ω only when it is necessary.

Let us now illustrate the use of Algorithm 1 by the following example.

Example 3

Consider the discrete event system shown in Fig. 4.

Fig. 4.

Fig. 4

A discrete event system to illustrate Algorithm 1.

We assume that the initial state set is Q0 = {q1}. Consider the following event observation policy Ω: Ω(q1) = {β, μ}, Ω(q2) = {α, β, μ}, Ω(q3) = {α, β, μ}. Let us see how to find the maximal feasible policy Ωf using Algorithm 1. In Step 1, we have:

P={(q1,q1)}

Because transition (q1, α, q2) is unobservable, then in Step 2, the set P is changed into:

P={(q1,q1),(q2,q2),(q1,q2)}

In Step 3, the set P is changed into:

P={(q1,q1),(q2,q2),(q1,q2),(q3,q3)}

In Step 4, we get the set P as:

P={(q1,q1),(q2,q2),(q1,q2),(q3,q3)}

From the set P, we can see that state q1 and q2 are indistinguishable. So they should have the same observable event set. In Step 5, we change the event observation set for state q2 as:

Ω(q2){α,β,μ}α

Then the new policy is:

Ω(q1)={β,μ},Ω(q2)={β,μ},Ω(q3)={α,β,μ}.

Repeat the process, we find that the new policy is feasible. So the above is the maximal feasible sub-policy Ωf.

Remark 1

[21] considers the feasible event observation policy (called sensor activation policy) for control purpose. In [21], the initial state of the system is known, however, in our case of state estimation of discrete event systems, the initial state of the system is not known, what we know is a subset of states that the system may stay initially. So the above results on feasible event observation policy generalized the corresponding results of the paper [21]. Such generalization is necessary for investigating detectability of discrete event systems and cannot be obtained directly from [21].

3.2 Minimal Valid Event Observation Policies

To find a minimal feasible event observation policy under which the system is detectable, let us first define validity as follows.

Definition 6

A feasible event observation policy Ω is valid with respect to detectability, strong detectability, periodic detectability, and strong periodic detectability, respectively, if discrete event system G is detectable, strongly detectable, periodically detectable, and strongly periodically detectable, respectively, with respect to the feasible event observation policy Ω.

Unless otherwise stated, when we say a policy is valid, we mean it is valid with respect to a given detectability, which can be any of four detectabilities. The following theorem says that the union of two valid policies is also valid.

Theorem 11

If some finite event observation policies Ω1, Ω2, ⋯, Ωn are all valid with respect to a given detectability, then i=1nΩi is also valid with respect to the given detectability.

Proof:

Obviously Ω = Ω1 ∪ Ω2 is feasible by Theorem 9. We define the information mappings θ, θ1 and θ2 for Ω, Ω1 and Ω2 respectively. We construct the corresponding observers Gobs. Gobs1 and Gobs2 for Ω, Ω1 and Ω2 respectively. The transitions for Gobs, Gobs1 and Gobs2 are denoted as δ, δ1 and δ2, respectively.

By monotonicity, we have

(qQ0)(sΣ)δ(x0,θ(q,s))δ1(x0,θ1(q,s))(qQ0)(sΣ)δ(x0,θ(q,s))δ2(x0,θ2(q,s))

This means that for any transition path, we have a smaller uncertainty about the system state with policy Ω = Ω1 ∪ Ω2 than with either Ω1 or Ω2. If a transition path occurs and we know the current state with policy Ω1 or Ω2, then we surely know the current state with the policy Ω = Ω1 ∪ Ω2. Hence if Ω1 and Ω2 are both valid, then Ω = Ω1 ∪ Ω2 is also valid.

Repeating this argument if necessary, we conclude that i=1nΩi

Let us now discuss the algorithm to find a minimal valid event observation policy with respect to a given detectability, which can be any of four detectabilities. Obviously, for a solution to exist, we must assume that the maximal feasible event observation policy Ωmax is valid with respect to the given detectability.

The Assumption 2 in Section 2.1 requires no loops in G that contain only unobservable events. However, reducing a given event observation policy Ω may result in the system G having loops which contain only unobservable transitions. It is not what we want to have. So when we try to find a minimal valid event obs ervation policy with respect to a given detectability, we should make sure that the policy does not result in the system having loops which contain only unobservable transitions.

The algorithm to compute a minimal valid event observation policy with respect to a given detectability is as follows.

Algorithm 2

Input: a system G;

Output: a minimal valid event observation policy Ω with respect to a given detectability;

Step 1: Initially, set

ΩΩmax;ΩΩmax;Ω~Ωmin;

Step 2: Randomly pick qQ and σ ∈ Σo such that σΩ(q)σΩ~(q). If no such pair exists, go to Step 6, else set

Ω(q)Ω(q)σ;Ω~(q)Ω~(q){σ};

Step 3: calculate the maximal feasible sub -policy Ωf of Ω using Algorithm 1.

Step 4: If policy Ωf is valid with respect to the given detectability and there are no loops which contain only unobservable transitions, then go to Step 5, else set

ΩΩ;

Go to St ep 2;

Step 5: Set

ΩΩf;ΩΩf;Ω~Ωmin;

Go to Step 2;

Step 6: Set

ΩΩ

End

Theorem 12

The event observation policy Ω obtained by Algorithm 2 is a minimal valid policy with respect to the given detectability under Assumption 2.

Proof:

First, we prove that Ω is valid with respect to the given detectability. Initially Ω = Ωmax is valid by the assumption. Each time an event σ ∈ Σo is removed, Ω(q)Ω(q)σ, we calculate Ωf which ensures feasibility. The removal is final if and only if Ωf is valid wit h respect to the given detectability and there are no loops which contain only unobservable transitions. Therefore Ω is valid with respect to the given detectability under Assumption 2.

Next we prove Ω is minimal by contradiction. Assume that Ω is not minimal and there exists a sub-policy Ω′ < Ω that is valid with respect to the given detectability. Then there must exist qQ and σ ∈ Σo such that

σΩ(q)σΩ(q).

Since Algorithm 2 checks all the observable events for all the states, Ω′ is valid with respect to the given detectability means that σ ∈ Σo will be removed from qQ by Algorithm 2. This leads to a contradiction.

Example 4

We continue Example 3. We assume the initial state set is Q0 = {q1}, and all the events are observable, that is, Σo = Σ = {α, β, μ}. It is easy to see that under the maximal feasible event observation policy Ωmax, the system is strongly detectable, that is, Ωmax is valid with respect to strong detectability. Let us see how to obtain a minimal valid event observation policy to preserve the strong detectability of the system.

Initially, we set

ΩΩmax;ΩΩmax;Ω~Ωmin;

We randomly pick state q1 and observable event α. Set

Ω(q1)Ω(q1)α;Ω~(q1)Ω(q1){α}.

Using Algorithm 1 we obtain the maximal feasible policy Ωf as follows.

Ωf(q1)={β,μ}Ωf(q2)={β,μ}Ωf(q3)={α,β,μ}

The observer is constructed as shown in Figure 5. We can see from the observer that the system G is strongly detectable and has no loops which contain only unobservable events. Therefore, the policy is valid. We next set

ΩΩfΩΩfΩ~Ωmin

and pick state q1 and observable event β in Ω. Set

Ω(q1)Ω(q1)β.Ω~(q1)Ω(q1){β}.

Using Algorithm 1 we find the maximal feasible policy Ωf as

Ωf(q1)={μ}Ωf(q2)={μ}Ωf(q3)={μ}

We construct the observer for the policy Ωf as shown in Figure 6. From the observer, we conclude that the system is not strongly detectable. Therefore, we set back ΩΩ and try the next event. Continue in this fashion, eventually, we will find a minimal event observation policy Ω as follows.

Ω(q1)={β,μ}Ω(q2)={β,μ}Ω(q3)={β}

The observer corresponding to this policy is the same as in Figure 5.

Fig. 5.

Fig. 5

The observer after the first iteration and the final minimal event observation policy

Fig. 6.

Fig. 6

The observer after the second iteration.

4. Conclusions

This paper discussed detectability of discrete event systems with dynamic event observation. For a given dynamic event observation, we constructed the corresponding observer and/or detector and derived the necessary and sufficient conditions to check the four types of detectabilities. Dynamic event observation can be achieved or implemented in two possible ways: a passive way and an active way. For the active observation, a minimal valid event observation policy was investigated and the algorithms to obtain a minimal valid event policy were presented.

Acknowledgments

This research is supported in part by NSF under grants ECS-0624828 and ECS-0823865, NIH under grant 1R01DA022730, NSFC under grants 60904019 and 60804042, Key Project of Chinese Ministry of Education under grant 306023, and by Program for Young Excellent Talents in Tongji University.

Footnotes

Publisher's Disclaimer: This is a PDF file of an unedited manuscript that has been accepted for publication. As a service to our customers we are providing this early version of the manuscript. The manuscript will undergo copyediting, typesetting, and review of the resulting proof before it is published in its final citable form. Please note that during the production process errors may be discovered which could affect the content, and all legal disclaimers that apply to the journal pertain.

References

  • [1].Ramadge PJ, Wonham WM. Supervisory control of a class of discrete event processes. SIAM J. Control and Optimization. 1987;25(1):206–230. [Google Scholar]
  • [2].Ramadge PJ, Wonham WM. The control of discrete event systems. Proceedings of the IEEE. 1989;77(1):81–98. [Google Scholar]
  • [3].Cassandras CG, Lafortune S. Introduction to discrete event systems. Kluwer. 1999 [Google Scholar]
  • [4].Lin F, Wonham WM. On observability of discrete event systems. Information Sciences. 1988;44(3):173–198. [Google Scholar]
  • [5].Cieslak R, Desclaux C, Fawaz A, Varaiya P. Supervisory control of discrete event processes with partial observations. IEEE Transactions on Automatic Control. 1988;33(3):249–260. [Google Scholar]
  • [6].Lin F, Wonham WM. Decentralized supervisory control of discrete-event systems. Information Sciences. 1988;44(3):199–224. [Google Scholar]
  • [7].Shu S, Lin F, Ying H. Detectability of discrete event systems. IEEE Transactions on Automatic Control. 2007;52(12):2356–2359. [Google Scholar]
  • [8].Shu S, Lin F. Generalized Detectability for Discrete Event Systems. Submitted for publication. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [9].Haji-Valizadeh A, Loparo KA. Minimizing the cardinality of an event set for supervisors of discrete-event dynamical systems. IEEE Transactions on Automatic Control. 1996;41(11):1579–1593. [Google Scholar]
  • [10].Jiang S, Kumar R, Garcia H. Optimal sensor selection for discrete-event systems with partial observation. IEEE Transactions on Automatic Control. 2003;48(3):369–381. [Google Scholar]
  • [11].Debouk R, Lafortune S, Teneketzis D. On an optimization problem in sensor selection. Discrete Event Dynamic Systems: Theory and Applications. 2002;12(4):417–445. [Google Scholar]
  • [12].Yoo TS, Lafortune S. NP-completeness of sensor selection problems arising in partially-observed discrete event systems. IEEE Transactions on Automatic Control. 2002;47(9):1495–1499. [Google Scholar]
  • [13].Thorsley D, Teneketzis D. Active acquisition of information for diagnosis of discrete event systems. Proceedings of the Allerton Conference on Control, Communication, and Computing.Sept., 2004. [Google Scholar]
  • [14].Thorsley D, Teneketzis D. Active acquisition of information for diagnosis and supervisory control of discrete event systems. Discrete Event Dynamic Systems:Theory and Applications. 2007;17(4):531–586. [Google Scholar]
  • [15].Thorsley D, Teneketzis D. Diagnosis of cyclic discrete-event systems using active acquisition of information. Proc. of 8th International Workshop on Discrete Event Systems (WODES06); Ann Arbor: University of Michigan; 2006. [Google Scholar]
  • [16].Rudie K, Lafortune S, Lin F. Minimal communication in a distributed discrete-event system. IEEE Transactions on Automatic Control. 2003;48(6):957–975. [Google Scholar]
  • [17].Lin F, Rudie K, Lafortune S. Minimal communication for essential transitions in a distributed discrete-event system. IEEE Transactions on Automatic Control. 2007;52(8):1495–1502. [Google Scholar]
  • [18].Wang W, Lafortune S, Lin F. On the minimization of communication in networked systems with a central station. Discrete Event Dynamic Systems: Theory and Applications. 2008;18(3):415–443. [Google Scholar]
  • [19].Wang W, Lafortune S, Lin F. Minimization of communication of event occurrences in acyclic discrete event systems. IEEE Transactions on Automatic Control. 2008;53(11):2197–2202. [Google Scholar]
  • [20].Wang W. Ph.D. dissertation. Department of Electrical Engineering and Computer Science; University of Michigan: 2007. Optimization of communication and coverage in classes of distributed systems. [Google Scholar]
  • [21].Wang W, Lafortune S, Lin F. Optimal Sensor Activation in Controlled Discrete Event Systems; Proceedings of the 45th IEEE Conference on Decision and Control; 2008. pp. 877–882. [Google Scholar]

RESOURCES