This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Fault Diagnosis of Discrete-Event Systems under
Non-Deterministic Observations with Output Fairness

Weijie Dong, Shang Gao, Xiang Yin and Shaoyuan Li This work was supported by the National Natural Science Foundation of China (61803259, 61833012).W. Dong S. Gao, X. Yin and S. Li are with Department of Automation and Key Laboratory of System Control and Information Processing, Shanghai Jiao Tong University, Shanghai 200240, China. E-mail: {wjd_dollar,gaoshang,yinxiang,syli}@sjtu.edu.cn.
Abstract

In this paper, we revisit the fault diagnosis problem of discrete-event systems (DES) under non-deterministic observations. Non-deterministic observation is a general observation model that includes the case of intermittent loss of observations. In this setting, upon the occurrence of an event, the sensor reading may be non-deterministic such that a set of output symbols are all possible. Existing works on fault diagnosis under non-deterministic observations require to consider all possible observation realizations. However, this approach includes the case where some possible outputs are permanently disabled. In this work, we introduce the concept of output fairness by requiring that, for any output symbols, if it has infinite chances to be generated, then it will indeed be generated infinite number of times. We use an assume-guarantee type of linear temporal logic formulas to formally describe this assumption. A new notion called output-fair diagnosability (OF-diagnosability) is proposed. An effective approach is provided for the verification of OF-diagnosability. We show that the proposed notion of OF-diagnosability is weaker than the standard definition of diagnosability under non-deterministic observations, and it better captures the physical scenario of observation non-determinism or intermittent loss of observations.

I Introduction

Engineering cyber-physical systems (CPS), such as manufacturing systems, transportation systems and power systems, are generally very complex due to their intricate operation logic and hybrid dynamics. For such large-scale safety-critical systems, failures during their operations are very common as millions of components/modules are working in parallel. Therefore, failure diagnosis and detection is crucial but challenging task in order to monitor the operation conditions and to maintain safety for CPSs.

In this work, we investigate the fault diagnosis problem in the framework of discrete-event systems (DES), which are widely used in modeling the high-level logical behaviors of CPSs [7]. In the context of DES, the problem of fault diagnosis was initiated by [15], where the notion of diagnosability was proposed. Specifically, it is assumed that the system’s events are partitioned as observable events and unobservable events, and a system is said to be diagnosable if the occurrence of fault event can always be detected within a finite delay based on the observed sequence. To the past years, fault diagnosis of DES remains a hot topic due to its importance; see, e.g., some recent works [12, 21, 14, 20, 19, 8]. The reader is referred to the comprehensive survey papers [22, 10] for more details on this topic.

In the modeling of DES, the occurrences of events are essentially observed by the corresponding sensors. In practice, however, due to measurement noises, sensor failures or malicious attacks, the sensor readings can be unreliable or non-deterministic. Such non-deterministic observation issue was initially addressed in the context of intermittent loss of observations [4, 11, 3], where it is assumed that some observable events are unreliable in the sense that their occurrences may be observed or be lost non-deterministically. In [17], Takai and Ushio investigated the issue of non-deterministic observation using Mealy automata. Specifically, the observation of the system is modeled by a state-dependent non-deterministic output function. The model is quite general that captures the issue of intermittent loss of observations. Furthermore, it allows the observation symbols to be different from the original event set.

Our work is motivated by the aforementioned works on fault diagnosis under intermittent loss of observations [4] or, in a broad sense, non-deterministic observations [17]. In particular, we note that the existing models for non-deterministic observations essentially assume that all possible realizations under the non-deterministic output mapping are feasible. In the context of fault diagnosis, therefore, it needs to consider whether or not fault can be detected under all possible observation realizations. We argue in this work that this setting is somehow too strict for the purpose of diagnosis since it may exclude the possibility for the occurrence of some possible sensor reading, which is “unfair”.

To see this “unfairness” more clearly, let us consider the case of intermittent loss of observations. Suppose that after the occurrence of fault events, there will be an observable but unreliable event occurring repeatably. Furthermore, once this indicator event is observed, we know for sure that the fault has occurred. In the existing frameworks [17, 4], this system is not diagnosable because we should consider the case where the observation of this unreliable event is lost each time when it occurs. However, this scenario actually corresponds to the case that the underlying sensor has failed permanently. Of course, such a permanent sensor failure is also possible in practice [9, 16, 6, 5], but it should be categorized differently from the setting of intermittent loss of observations. In other words, for such a sensor that is unreliable but we have prior information that it will not fail permanently, the fault may be diagnosed with unreliability. To this end, Vinicius S. et al in [13] proposed K-diagnosability which excludes permanent sensor failures by bounding the maximum number of consecutive failure for an unreliable sensor under a finite integer kk. However, in real-word engineering, we usually only can be sure that a sensor will not fail permanently and can repair after finite time delay, but we have no idea about what the upper bound of time needed to repair is. Thus, in this paper, we use the notion of ”fair” to solve this problem.

It is worth noting that, in [2], the authors investigated diagnosability for fair systems. However, the notion of fairness is different from our setting. Specifically, [2] assumes that the dynamic of the system is fair in the sense that each transition can be executed for infinite number of times whenever it is enabled infinitely. However, the observation mapping considered therein is still static modeled as a natural projection. In contrast, we impose fairness constraint on the observation mapping rather than the internal behavior of the system the system’s dynamic. Therefore, the problem setting in our work is quite different from that of [2].

In this paper, we revisit the fault diagnosis problem under non-deterministic observations. Motivated by the above discussion, however, to better capture the physical scenario in which all possible observations are always available, we further require that each possible observation (or output symbol) is fair in the sense that if it has infinite chances to be observed then it will indeed be observed infinite number of times. To formally describe this fairness requirement, we use an assume-guarantee type linear temporal logic (LTL) formulas. Then, we propose a new condition called output-fair diagnosability (OF-diagnosability) that provides the necessary and sufficient condition for the existence of a diagnoser that works correctly under the fair-observation setting. Also, we utilize the structure properties of fairness requirement to provide an more effective procedure for checking this new condition. Our work bridges the gap between the existing mathematical definition of diagnosability under intermittent loss of observations and the physical setting, where those unreliable sensors will not fail permanently.

II Preliminary

II-A System Model

Let Σ\Sigma be a finite set of events. A finite (infinite) string over Σ\Sigma is a finite (infinite) sequence of events in Σ\Sigma of form s=σ1σ2σn()s=\sigma_{1}\sigma_{2}\dots\sigma_{n}(\dots), where σiΣ\sigma_{i}\in\Sigma, for i=1,,ni=1,\cdots,n. A finite (infinite) language is a set of finite (infinite) strings. We denote by Σ\Sigma^{*} and Σω\Sigma^{\omega}, respectively, the set of all finite and the set of all infinite strings over Σ\Sigma. Note that the empty string, denoted by ε\varepsilon, is included in Σ\Sigma^{*}. Given a finite language LΣL\subseteq\Sigma^{*}, the prefix-closure of LL is defined by Pre(L)={wΣ:tΣ s.t. wtL}\textsf{Pre}(L)=\{w\in\Sigma^{*}:\exists t\in\Sigma^{*}\text{ s.t. }wt\in L\}. Similarly, for an infinite language LΣωL\subseteq\Sigma^{\omega}, its prefix-closure is the set of all its finite prefixes, i.e., Pre(L)={wΣ:tΣω s.t. wtL}\textsf{Pre}(L)=\{w\in\Sigma^{*}:\exists t\in\Sigma^{\omega}\text{ s.t. }wt\in L\}. For any string sΣΣωs\in\Sigma^{*}\cup\Sigma^{\omega}, we write Pre({s})\textsf{Pre}(\{s\}) as Pre(s)\textsf{Pre}(s) for the sake of simplicity. Given an infinite string sΣωs\in\Sigma^{\omega}, Inf(s)\textsf{Inf}(s) denotes the set of events that appear infinitely number of times in the string.

In this paper, we consider DES modeled by a deterministic finite-state automaton (DFA) G=(Q,Σ,f,q0)G=(Q,\Sigma,f,q_{0}), where QQ is the finite set of states; Σ\Sigma is the finite set of events; f:Q×ΣQf:Q\times\Sigma\to Q is the partial transition function; and q0Qq_{0}\in Q is the initial state. The transition function ff can be extended to f:Q×ΣQf:Q\times\Sigma^{*}\to Q recursively in the usual manner; see, e.g., [7]. The finite language generated by GG is defined by (G)={sΣ:f(q0,s)!}\mathcal{L}(G)=\{s\in\Sigma^{*}:f(q_{0},s)!\}, where “!” means “is defined”, and the infinite language generated by GG is defined by ω(G)={sΣω:f(q0,s)!}\mathcal{L}^{\omega}(G)=\{s\in\Sigma^{\omega}:f(q_{0},s)!\}. We assume that system GG is live, i.e., qQ,σ:f(q,σ)!\forall q\in Q,\exists\sigma:f(q,\sigma)!.

II-B Non-Deterministic Observations

In the partial observation setting, it is assumed that the occurrence of each event cannot be observed directly or perfectly. A commonly adopted simple approach is to partition the event set Σ\Sigma into observable events Σo\Sigma_{o} and unobservable events Σuo\Sigma_{uo}. Then natural projection P:ΣΣoP:\Sigma^{*}\to\Sigma_{o}^{*} can be used to capture the issue of partial observability.

In many real-world scenarios, however, the sensor readings may be non-deterministic due to observation noises, sensor failures or malicious attacks. Furthermore, the sensor reading of the event occurrence can be state-dependent. To this end, more complicated observation models have been proposed in the literature. Here, we adopt state-dependent non-deterministic observation model proposed by [17, 18], which captures both state-dependency and non-determinism of observations.

Formally, we assume that Δ\Delta is a new set of all possible observations or output symbols. Then a state-dependent non-deterministic output function is

𝒪:Q×Σ2Δε,\mathcal{O}:Q\times\Sigma\to 2^{\Delta_{\varepsilon}},

where Δε=Δ{ε}\Delta_{\varepsilon}=\Delta\cup\{\varepsilon\}. Intuitively, this output function means that if event σΣ\sigma\in\Sigma occurs at state qQq\in Q, then the system is possible to observe any symbol in 𝒪(q,σ)\mathcal{O}(q,\sigma) non-deterministically.

Remark 1

The above non-deterministic observation model is quite general in the sense it subsumes many observation models in the literature. For example, the standard natural-projection-based observation can be formulated by setting 𝒪(q,σ)={σ}\mathcal{O}(q,\sigma)=\{\sigma\} for all σΣo\sigma\in\Sigma_{o} and 𝒪(q,σ)={ε}\mathcal{O}(q,\sigma)=\{\varepsilon\} for all σΣuo\sigma\in\Sigma_{uo}. Also, it captures the so-called intermittent loss of observations [4]. In this setting, the event set is usually partitioned as Σ=Σr˙Σur˙Σuo\Sigma=\Sigma_{r}\dot{\cup}\Sigma_{ur}\dot{\cup}\Sigma_{uo}, where Σr\Sigma_{r} is the set of reliable events whose occurrences can always be observed directly, Σur\Sigma_{ur} is the set of unreliable events whose occurrences may be observed but can also be lost and Σuo\Sigma_{uo} is the set of unobservable events whose occurrences can never be observed. This setting can be captured by considering a non-deterministic output function with Δ=Σ\Delta=\Sigma and for any qQq\in Q and σΣ\sigma\in\Sigma, we have

𝒪(q,σ)={{σ}if σΣr{σ,ε}if σΣur{ε}if σΣuo\mathcal{O}(q,\sigma)\!=\!\left\{\!\!\!\!\begin{array}[]{l l}\{\sigma\}&\text{if }\sigma\!\in\!\Sigma_{r}\\ \{\sigma,\varepsilon\}&\text{if }\sigma\!\in\!\Sigma_{ur}\\ \{\varepsilon\}&\text{if }\sigma\!\in\!\Sigma_{uo}\end{array}\right.

Note that, for the general case we consider here, the output symbols Δ\Delta can be different from the original event set Σ\Sigma.

Based on the output function 𝒪:Q×Σ2Δε\mathcal{O}:Q\times\Sigma\to 2^{\Delta_{\varepsilon}}, we can define a non-deterministic observation mapping M:(G)2ΔM:\mathcal{L}(G)\to 2^{\Delta^{*}}, where Δ\Delta^{*} is the set of finite strings over Δ\Delta and we have εΔ\varepsilon\in\Delta^{*}, recursively as:

  • M(ε)={ε}M(\varepsilon)=\{\varepsilon\};

  • for any sΣs\in\Sigma^{*} and σΣ\sigma\in\Sigma, we have

    M(sσ)={αβΔ:αM(s)β𝒪(f(q0,s),σ)}M(s\sigma)=\{\alpha\beta\!\in\!\Delta^{*}:\alpha\!\in\!M(s)\wedge\beta\in\mathcal{O}(f(q_{0},s),\sigma)\}

Intuitively, M(s)ΔM(s)\in\Delta^{*} is the set of all possible observations (or output strings) upon the occurrence of internal string sΣs\in\Sigma^{*}. The observation mapping is also extended to M:2Σ2ΔM:2^{\Sigma^{*}}\to 2^{\Delta^{*}} by: for any language L(G)L\subseteq\mathcal{L}(G), M(L)=sLM(s)M(L)=\cup_{s\in L}M(s).

Since the observation is non-deterministic, for any specific internal string s(G)s\in\mathcal{L}(G), it may have different output realizations. To “embed” the actual observation occurred into the internal execution of the system, we define

Σe=Q×Σ×Δε\Sigma_{e}=Q\times\Sigma\times\Delta_{\varepsilon}

as the set of extended events. Then an extended string is a finite or infinite sequence of extended events. We say a finite extended string

s=(q0,σ0,δ0)(q1,σ1,δ1)(qn,σn,δn)Σes=(q_{0},\sigma_{0},\delta_{0})(q_{1},\sigma_{1},\delta_{1})\dots(q_{n},\sigma_{n},\delta_{n})\in\Sigma_{e}^{*}

is generated by GG if f(qi,σi)=qi+1,i<nf(q_{i},\sigma_{i})=q_{i+1},\forall i<n and δi𝒪(qi,σi),in\delta_{i}\in\mathcal{O}(q_{i},\sigma_{i}),\forall i\leq n. We denote by e(G)\mathcal{L}_{e}(G) the set of all finite extended strings generated by GG. The infinite extended strings are defined analogously and the set of all infinite extended strings generated by GG is denoted by eω(G)\mathcal{L}^{\omega}_{e}(G).

For any extended string s=(q0,σ0,δ0)(q1,σ1,δ1)s=(q_{0},\sigma_{0},\delta_{0})(q_{1},\sigma_{1},\delta_{1})\cdots, we define ΘQ(s)=q0q1,ΘΣ(s)=σ0σ1\Theta_{Q}(s)=q_{0}q_{1}\cdots,\Theta_{\Sigma}(s)=\sigma_{0}\sigma_{1}\cdots and ΘΔ(s)=δ0δ1\Theta_{\Delta}(s)=\delta_{0}\delta_{1}\cdots as its corresponding state sequence, (internal) event string and output string, respectively. Clearly, for any se(G)s\in\mathcal{L}_{e}(G), we have ΘΔ(s)M(ΘΣ(s))\Theta_{\Delta}(s)\in M(\Theta_{\Sigma}(s)) because ΘΔ(s)\Theta_{\Delta}(s) is a specific observation realization of internal string ΘΣ(s)\Theta_{\Sigma}(s).

Refer to caption
Figure 1: System G1G_{1}.
Example 1

Let us consider system G1G_{1} in Figure 1, where we have Σ={a,b,c,σf,u}\Sigma=\{a,b,c,\sigma_{\!f},u\} and Δ={a,b,c}\Delta=\{a,b,c\}. The output function 𝒪:Q×Σ2Δε\mathcal{O}:Q\times\Sigma\!\to\!2^{\Delta_{\varepsilon}} is specified by the label of each transition, where the LHS of “\\backslash” denotes the internal event and the RHS of “\\backslash” denotes the set of all possible output symbols. For example, b\{b,ε}b\backslash\{b,\varepsilon\} from state 33 to state 44 means that system moves to state 44 from state 33 by firing event bb, i.e., f(3,b)=4f(3,b)=4, and we can non-deterministically observe any output in set 𝒪(3,b)={b,ε}\mathcal{O}(3,b)=\{b,\varepsilon\}. In this example, we either observe bb itself or observe nothing, which corresponds to the case of intermittent loss of observations. Then for finite string σfab(G1)\sigma_{\!f}ab\in\mathcal{L}(G_{1}), the set of all possible output is M(σfab)={ab,a}M(\sigma_{\!f}ab)=\{ab,a\}. These two different outputs lead to the following two extended strings (1,σf,ε)(2,a,a)(3,b,b)(1,\sigma_{\!f},\varepsilon)(2,a,a)(3,b,b) and (1,σf,ε)(2,a,a)(3,b,ε)(1,\sigma_{\!f},\varepsilon)(2,a,a)(3,b,\varepsilon), respectively.

II-C Fault Diagnosis

In this work, we assume that the system is subject to faults whose occurrences need to be diagnosed within a finite number of steps. Specifically, we assume that ΣFΣ\Sigma_{F}\subset\Sigma is the set of fault events. For the sake of simplicity, we do not distinguish among different fault types. We say a string sΣΣωs\in\Sigma^{*}\cup\Sigma^{\omega} is faulty if some event in ΣF\Sigma_{F} appears in ss and we write ΣFs\Sigma_{F}\in s with a slight abuse of notation; otherwise, it is normal. We define F(G)\mathcal{L}_{F}(G) and Fω(G)\mathcal{L}_{F}^{\omega}(G) as the sets of all finite and infinite faulty strings generated by GG, respectively. Similarly, we define Σe,F=Q×ΣF×Δε\Sigma_{e,F}=Q\times\Sigma_{F}\times\Delta^{\varepsilon} as the set of extended fault events and denote by e,F(G)={se(G):Σe,Fs}\mathcal{L}_{e,F}(G)=\{s\in\mathcal{L}_{e}(G):\Sigma_{e,F}\in s\} the set of all finite extended faulty strings generated by GG; the extended infinite faulty language e,Fω(G)\mathcal{L}_{e,F}^{\omega}(G) is also defined analogously. Finally, we define Ψe(G)\Psi_{e}(G) as the set of all finite extended faulty strings in which fault events occur for the first time, i.e.,

Ψe(G)={se,F(G):tPre(s){s},Σe,Ft}.\displaystyle\Psi_{e}(G)=\{s\in\mathcal{L}_{e,F}(G):\forall t\in\textsf{Pre}(s)\setminus\{s\},\Sigma_{e,F}\notin t\}.

To capture whether or not the occurrences of fault events can be detected within a finite number of steps, the notion of diagnosability (under non-deterministic observations) has been proposed in the literature [17].

Definition 1

System GG is said to be diagnosable w.r.t.  output function 𝒪\mathcal{O} and fault events ΣF\Sigma_{F} if

(sΨe(G))(n)(ste(G))[|t|ndiag](\forall s\!\in\!\Psi_{e}(G))(\exists n\!\in\!\mathbb{N})(\forall st\!\in\!\mathcal{L}_{e}(G))[|t|\geq n\Rightarrow\textsf{diag}] (1)

where the diagnostic condition diag is

(ωe(G))[ΘΔ(ω)=ΘΔ(st)Σe,Fω].(\forall\omega\in\mathcal{L}_{e}(G))[\Theta_{\Delta}(\omega)=\Theta_{\Delta}(st)\Rightarrow\Sigma_{e,F}\in\omega].\vspace{8pt}

Intuitively, the above definition says that, for any faulty extended string in which fault events appear for the first time, there exists a finite detection bound such that, for any of its continuation longer than the detection bound, any other extended strings having the same observation must also contain fault events. Note that we consider extended strings rather than the internal strings in order to capture the issue of non-deterministic observations.

Example 2

Again, we consider system G1G_{1} depicted in Figure 1 with Σ={a,b,c,σf,u},Δ={a,b,c}\Sigma=\{a,b,c,\sigma_{\!f},u\},\Delta=\{a,b,c\} and ΣF={σf}\Sigma_{F}=\{\sigma_{\!f}\}. Let us consider faulty extended string (1,σf,ε)Ψe(G1)(1,\sigma_{\!f},\varepsilon)\in\Psi_{e}(G_{1}), which can be extended arbitrarily long as

sF=(1,σf,ε)[(2,a,a)(3,b,b)(4,c,ε)]ns_{F}=(1,\sigma_{\!f},\varepsilon)[(2,a,a)(3,b,b)(4,c,\varepsilon)]^{n}

However, for any nn, we can find a normal extended string

sN=(1,u,ε)[(5,a,a)(6,b,b)]ns_{N}=(1,u,\varepsilon)[(5,a,a)(6,b,b)]^{n}

such that ΘΔ(sF)=ΘΔ(sN)=(ab)n\Theta_{\Delta}(s_{F})=\Theta_{\Delta}(s_{N})=(ab)^{n}. Therefore, we know that system G1G_{1} is not diagnosable under 𝒪\mathcal{O}.

III Diagnosability with Always-Fairness Assumption

III-A Motivating Example

As we discussed in Remark 1, the non-deterministic output function can be used to capture the issue of intermittent loss of observations. Here, however, we argue that the original definition of diagnosability in Definition 1 may be too strong for the case of intermittent loss of observations.

To see this, we still consider system G1G_{1} shown in Figure 1, where the reliable event set is {a}\{a\}, the unreliable events set is {b,c}\{b,c\} and the unobservable event set is {σf,u}\{\sigma_{\!f},u\}. As we have discussed in Example 2, this system is not diagnosable because there are two infinite extended strings:

  • one is faulty sF=(1,σf,ε)[(2,a,a)(3,b,b)(4,c,ε)]ωs_{F}=(1,\sigma_{\!f},\varepsilon)[(2,a,a)(3,b,b)(4,c,\varepsilon)]^{\omega};

  • the other is non-faulty sN=(1,u,ε)[(5,a,a)(6,b,b)]ωs_{N}=(1,u,\varepsilon)[(5,a,a)(6,b,b)]^{\omega}

and they have the same observation, i.e., ΘΔ(s1)=ΘΔ(s2)\Theta_{\Delta}(s_{1})=\Theta_{\Delta}(s_{2}) =(ab)ω=(ab)^{\omega}. As a result, the occurrence of fault in string sFs_{F} can never be detected within a finite number of steps.

Note that, the existence of above extended string sFs_{F} is due to the following physical scenario: the infinite internal string σf(abc)ω\sigma_{\!f}(abc)^{\omega} is executed, i.e., the system loops forever in the cycle formed by states 2,32,3 and 44, and each time when event cc is executed at state 44, the sensor reads ε\varepsilon due to observation loss. In other words, the sensor corresponds to transition 4𝑐4\xrightarrow{c} has to fail permanently in order to draw the conclusion that the system is not diagnosable. However, this source of non-diagnosability seems violate the setting of intermittent loss of observations. In the context of intermittent loss of observations or non-deterministic observations, it makes more sense to assume that each possible observation is eventually possible. Therefore, if event cc at state 44 corresponds to a sensor that may be unreliable but will not fail permanently, then along the infinite loop of σf(abc)ω\sigma_{\!f}(abc)^{\omega}, once one has a single chance to observe output cc for transition 4𝑐4\xrightarrow{c}, it will conclude immediately that fault events have occurred.

III-B Δ\Delta^{\prime}-Fairness Assumption

The above discussion suggests that the exiting definition of diagnosability under non-deterministic observations is a bit strong than its underlying physical setting because it includes the situation where some output symbols are disabled permanently. In order to bridge this discrepancy between the definition of diagnosability and the physical meaning of non-deterministic observations, in this work, we put an additional fairness assumption on those sensors that are subject to intermittent loss of observations, or non-deterministic observations in a broad sense. Specifically, we assume that ΔΔ\Delta^{\prime}\subseteq\Delta is a set of “fair” output symbols in the sense that if they have infinite opportunities to occur, then they will indeed occur infinite number of times.

In order to formalize this fairness requirement, we use the linear temporal logic (LTL) formulas. Formally, an LTL formula φ\varphi is constructed based on a set of atomic propositions 𝒜𝒫\mathcal{AP}, Boolean operators and temporal operators as follows:

φ::=true|p|φ1φ2|¬φ|φ|φ1Uφ2,\varphi::=true\ |\ p\ |\ \varphi_{1}\wedge\varphi_{2}\ |\ \neg\varphi\ |\ \bigcirc\varphi\ |\ \varphi_{1}U\varphi_{2},

where p𝒜𝒫p\in\mathcal{AP} is an atomic proposition; \bigcirc and UU denote “next” and “until”, respectively. Other Boolean connectives can be induced by \wedge and ¬\neg, e.g., φ1φ2=¬(¬φ1¬φ2)\varphi_{1}\vee\varphi_{2}=\neg(\neg\varphi_{1}\wedge\neg\varphi_{2}) and φ1φ2=¬φ1φ2\varphi_{1}\rightarrow\varphi_{2}=\neg\varphi_{1}\vee\varphi_{2}. Temporal operators \Box “always” and \lozenge “eventually” can be induced by until operator, i.e., φ=trueUφ\lozenge\varphi=trueU\varphi and φ=¬¬φ\Box\varphi=\neg\lozenge\neg\varphi. LTL formulas are evaluated over infinite sequences of atomic proposition sets (called words). For any infinite word s(2𝒜𝒫)ωs\in(2^{\mathcal{AP}})^{\omega}, we denote by sφs\models\varphi if it satisfies LTL formula φ\varphi. The reader is referred to [1] for more details on the semantics of LTL.

In our context of non-deterministic observations, we choose extended events as atomic propositions, i.e., 𝒜𝒫=Σe\mathcal{AP}=\Sigma_{e}. For the sake of simplicity, each extended event (q,σ,δ)(q,\sigma,\delta) will also be written as σqδ\sigma_{q}^{\delta} meaning that event σ\sigma occurs at state qq and generates observation δ\delta. For simplicity, we define

σq:=δ𝒪(σ,q)σqδ\sigma_{q}:=\bigvee_{\delta\in\mathcal{O}(\sigma,q)}\sigma_{q}^{\delta}

as the proposition formula meaning that transition q𝜎q\xrightarrow{\sigma} occurs no matter what output it generates. Then we introduce the notion of Δ\Delta^{\prime}-fairness as follows.

Definition 2

(Δ\Delta^{\prime}-Fairness) Let ΔΔε\Delta^{\prime}\subseteq\Delta_{\varepsilon} be a set of output symbols. We say an infinite extended string seω(G)s\in\mathcal{L}_{e}^{\omega}(G) is Δ\Delta^{\prime}-fair if

sφfair:=qQ,σΣ(σqδΔ𝒪(q,σ)σqδ)s\models\varphi_{fair}\!:=\!\bigwedge_{q\in Q,\sigma\in\Sigma}\left(\Box\lozenge\sigma_{q}\to\bigwedge_{\delta\in\Delta^{\prime}\cap\mathcal{O}(q,\sigma)}\Box\lozenge\sigma_{q}^{\delta}\right)\vspace{8pt} (2)

The above subset of outputs ΔΔε\Delta^{\prime}\subseteq\Delta_{\varepsilon} is referred to as the fair outputs meaning that these outputs will always have the opportunity to be measured. Specifically, this requirement is captured by formula φfair\varphi_{fair} saying that, for any transition q𝜎q\xrightarrow{\sigma}, if it is fired infinite number of times, then any of its fair outputs, i.e., σΔ𝒪(q,σ)\sigma\in\Delta^{\prime}\cap\mathcal{O}(q,\sigma), can actually be observed infinite number of times. This excludes the case where some fair outputs are disabled permanently. We define

eφ(G)={seω(G):sφfair}\mathcal{L}_{e}^{\varphi}(G)=\{s\in\mathcal{L}^{\omega}_{e}(G):s\models\varphi_{fair}\}

as the set of infinite extended strings generated by GG satisfying φfair\varphi_{fair}. We also define e,Fφ(G)=eφ(G)e,Fω(G)\mathcal{L}^{\varphi}_{e,F}(G)=\mathcal{L}^{\varphi}_{e}(G)\cap\mathcal{L}_{e,F}^{\omega}(G) as the set of infinite faulty extended strings satisfying φfair\varphi_{fair}.

Remark 2

Throughout the paper, we will only consider LTL formulae in the form of Equation (2) to capture the fairness requirement. Compared with the general form of LTL, Equation (2) is an assume-guarantee type of formula. Later, we will utilize this structural property for the purpose of checking diagnosability.

III-C OF-Diagnosability

Based on the above notion of Δ\Delta^{\prime}-fairness on extended strings, now we modify the existing definition of diagnosability as shown in Definition 1 to the output-fair diagnosability (OF-diagnosability) defined as follows.

Definition 3

(OF-diagnosability) System GG is said to be output-fairly diagnosable (OF-diagnosable) w.r.t.  fault events ΣF\Sigma_{F}, output function 𝒪\mathcal{O} and fair outputs ΔΔε\Delta^{\prime}\subseteq\Delta_{\varepsilon} if

(se,Fφ(G))(tPre(s))[fair-diag](\forall s\in\mathcal{L}^{\varphi}_{e,F}(G))(\exists t\in\textsf{Pre}(s))[\textsf{fair-diag}] (3)

where the fair-diagnostic condition fair-diag is

(we(G))[ΘΔ(w)=ΘΔ(t)Σe,Fw].(\forall w\in\mathcal{L}_{e}(G))[\Theta_{\Delta}(w)=\Theta_{\Delta}(t)\Rightarrow\Sigma_{e,F}\in w].\vspace{8pt}

Intuitively, OF-diagnosability revises the standard diagnosability by restricting our attention only to those infinite extended strings satisfying the fairness assumption and investigates whether or not faults in those “output-fair” strings can be detected.

Remark 3

In Definition 1, it is known that “sΨe(G)\forall s\!\in\!\Psi_{e}(G)” and “n\exists n\!\in\!\mathbb{N}” can be swapped, which means that if the system is diagnosable, then there exists a uniform detection bound after the occurrence of any fault events. However, in Definition 3, the length of detection prefix tt can be arbitrarily long, depending on how the fairness assumption is satisfied in the specific infinite faulty string se,Fφ(G)s\in\mathcal{L}^{\varphi}_{e,F}(G), since the Δ\Delta^{\prime}-fairness assumption only guarantees that all fair outputs eventually occur but the delay can be arbitrarily large.

We show that the proposed notion of a OF-diagnosability provides the necessary and sufficient condition for the existence of diagnoser that works “correctly” under the Δ\Delta^{\prime}-fairness assumption. Formally, a diagnoser is a function

D:M((G)){0,1}D:M(\mathcal{L}(G))\to\{0,1\}

that decides whether a fault has happened (by issuing “11”) or not (by issuing “0”) based on the output string. We say that a diagnoser works correctly under the Δ\Delta^{\prime}-fairness assumption if it satisfies the following conditions:

  1. C1)

    By assuming that each fair-output will actually be observed infinitely if they have infinite chances to be observed, the diagnoser will issue a fault alarm for any occurrence of fault events, i.e.,

    (se,Fφ(G))(sPre(s)))[D(ΘΔ(s))=1].(\forall s\in\mathcal{L}^{\varphi}_{e,F}(G))(\exists s^{\prime}\in\textsf{Pre}(s)))[D(\Theta_{\Delta}(s^{\prime}))=1].
  2. C2)

    The diagnoser will not issue a false alarm if the execution is still normal, i.e.,

    (se(G):Σe,Fs)[D(ΘΔ(s))=0].(\forall s\in\mathcal{L}_{e}(G):\Sigma_{e,F}\notin s)[D(\Theta_{\Delta}(s))=0].

The following theorem says that there exists a diagnoser working “correctly” under the Δ\Delta^{\prime}-fairness assumption if and only if the system is OF-diagnosable.

Theorem 1

There exists a diagnoser satisfying conditions C1 and C2 if and only if GG is OF-diagnosable w.r.t.  fault events ΣF\Sigma_{F}, output function 𝒪\mathcal{O} and fair outputs ΔΔε\Delta^{\prime}\subseteq\Delta_{\varepsilon}.

Proof:

(\Rightarrow) Suppose that there exists a diagnoser DD satisfying conditions C1 and C2, while, by contradiction, system GG is not OF-diagnosability. This means that there exist an infinite faulty extended string se,Fφ(G)s\in\mathcal{L}_{e,F}^{\varphi}(G) such that for any prefix tPre(s)t\in\textsf{Pre}(s), there exists a normal extended string we(G)w\in\mathcal{L}_{e}(G) having the same observation with tt. Since diagnoser DD satisfies condition C2, for any tPre(s)t\in\textsf{Pre}(s), we get D(ΘΔ(t))=0D(\Theta_{\Delta}(t))=0; otherwise, if D(ΘΔ(t))=1D(\Theta_{\Delta}(t))=1, we get D(ΘΔ(ω))=D(ΘΔ(t))=1D(\Theta_{\Delta}(\omega))=D(\Theta_{\Delta}(t))=1, which violates condition C2. Therefore, for any tPre(s)t\in\textsf{Pre}(s), we get D(ΘΔ(t))=0D(\Theta_{\Delta}(t))=0. As a result, condition C1 does not hold for diagnoser DD, which contradicts the hypothesis.

(\Leftarrow) Suppose that the system GG is OF-diagnosable. We consider a diagnoser D:M((G)){0,1}D:M(\mathcal{L}(G))\to\{0,1\} defined by: for any ωe(G)\omega\in\mathcal{L}_{e}(G)

D(ΘΔ(ω))={1if se(G):ΘΔ(ω)=ΘΔ(s)Σe,FΘΣ(s)0otherwise.\begin{split}&D(\Theta_{\Delta}(\omega))=\\ &\left\{\begin{array}[]{lr}1&\text{if }\forall s\in\mathcal{L}_{e}(G):\Theta_{\Delta}(\omega)=\Theta_{\Delta}(s)\Rightarrow\Sigma_{e,F}\in\Theta_{\Sigma}(s)\\ 0&otherwise.\end{array}\right.\\ \end{split} (4)

We claim that the diagnoser given by equation (4) satisfies condition C1 and C2. We first show that the diagnoser satisfies condition C2. For any normal extended language se(G)\e,F(G)s\in\mathcal{L}_{e}(G)\backslash\mathcal{L}_{e,F}(G), by equation (4), we have D(ΘΔ(s))=0D(\Theta_{\Delta}(s))=0, that is, C2 holds. To see that C1 holds, we consider any faulty extended string se,Fφ(G)s\in\mathcal{L}^{\varphi}_{e,F}(G). By OF-diagnosability, there exists a finite prefix tPre(s)t\in\textsf{Pre}(s) such that any finite normal extended language ω\omega having the same observation with tt is faulty, i.e., Σe,FΘΣ(ω)\Sigma_{e,F}\in\Theta_{\Sigma}(\omega). Then, by equation (4), we have D(ΘΔ(ω))=1D(\Theta_{\Delta}(\omega))=1, i.e., condition C1 also holds. ∎

We use the following examples to illustrate the concept of output fairness as well as the notion of OF-diagnosability.

Example 3

Again, let us consider system G1G_{1} shown in Figure 1 with ΣF={σf}\Sigma_{F}=\{\sigma_{\!f}\} and suppose that the fair outputs are Δ={b,c}\Delta^{\prime}=\{b,c\}. Then by Definition 2, the Δ\Delta^{\prime}-fairness assumption is

φfair=(i=3,6bibib)(c4c4c)\varphi_{fair}=(\bigwedge_{i=3,6}\Box\lozenge b_{i}\to\Box\lozenge b^{b}_{i})\wedge\left(\Box\lozenge c_{4}\to\Box\lozenge c^{c}_{4}\right)

Note that for infinite faulty extended string

sF=(1,σf,ε)[(2,a,a)(3,b,b)(4,c,ε)]ω,s_{F}=(1,\sigma_{\!f},\varepsilon)[(2,a,a)(3,b,b)(4,c,\varepsilon)]^{\omega},

we have sF⊧̸φfairs_{F}\not\models\varphi_{fair} because c4\Box\lozenge c_{4} holds but c4c\Box\lozenge c^{c}_{4} does not hold. Therefore, sFe,Fφ(G)s_{F}\not\in\mathcal{L}^{\varphi}_{e,F}(G) is not considered in the analysis of OF-diagnosability. Clearly, for any faulty string in e,Fφ(G)\mathcal{L}^{\varphi}_{e,F}(G), c4cc^{c}_{4} must occur, which means output cc will be observed and upon the occurrence of which the fault can be detected. Therefore, this system is actually OF-diagnosable.

IV Verification of OF-diagnosability

In this section, we investigate the verification of OF-diagnosability. Specifically, we provide a verifiable necessary and sufficient condition for OF-diagnosability based on the verification structure.

IV-A Augmented System

To verify OF-diagnosability, our first step is to augment both the state-space and the event-space of GG such that

  • the information of whether or not a fault event has occurred is encoded in the augmented state-space; and

  • the information of where the event occurs and which specific output is observed are encoded in the augmented event-space.

Formally, given system G=(Q,q0,Σ,f)G=(Q,q_{0},\Sigma,f), fault events ΣF\Sigma_{F} and output function 𝒪\mathcal{O}, we define the augmented system as a new DFA

G~=(Q~,q~0,Σe,f~),\tilde{G}=(\tilde{Q},\tilde{q}_{0},\Sigma_{e},\tilde{f}), (5)

where

  • Q~Q×{F,N}\tilde{Q}\subseteq Q\times\{F,N\} is the set of augmented states;

  • q~0=(q0,N)\tilde{q}_{0}=(q_{0},N) is the initial augmented state;

  • Σe\Sigma_{e} is the set of augmented events, which are just extended events;

  • f~:Q~×ΣeQ~\tilde{f}:\tilde{Q}\times\Sigma_{e}\rightarrow\tilde{Q} is the transition function defined by: for any q~=(q,l)Q~\tilde{q}=(q,l)\in\tilde{Q} and σ~=(q,σ,δ)Σe\tilde{\sigma}=(q,\sigma,\delta)\in\Sigma_{e}, we have f~(q~,σ~)!\tilde{f}(\tilde{q},\tilde{\sigma})! if f(q,σ)!f(q,\sigma)! and δ𝒪(q,σ)\delta\in\mathcal{O}(q,\sigma). Furthermore, when f~(q~,σ~)!\tilde{f}(\tilde{q},\tilde{\sigma})!, we have

    f~(q~,σ~)={(f(q,σ),N) if l=Nσ~Σe,F(f(q,σ),F) otherwise .\tilde{f}(\tilde{q},\tilde{\sigma})=\left\{\begin{array}[]{l l}(f(q,\sigma),N)&\text{ if }l=N\wedge\tilde{\sigma}\!\notin\!\Sigma_{e,F}\\ (f(q,\sigma),F)&\text{ otherwise }\end{array}\right..

The above constructed augmented system G~\tilde{G} has the following properties:

  • First, the augmented system G~\tilde{G} generates extended strings. Essentially, it still tracks the original dynamic of the system by putting both the output realization and the current state information together with the internal event. Therefore, we have

    (G~)=e(G) and ω(G~)=eω(G).\mathcal{L}(\tilde{G})=\mathcal{L}_{e}(G)\text{ and }\mathcal{L}^{\omega}(\tilde{G})=\mathcal{L}_{e}^{\omega}(G).
  • Second, each augmented state (q,l)Q×{F,N}=Q~(q,l)\in Q\times\{F,N\}=\tilde{Q} has two components. The first component qq is the actual state in the original system GG and the second component l{N,F}l\in\{N,F\} is a label denoting whether fault events have occurred. By the construction, the label will change from NN to FF only when an extended fault event occurs and once the label becomes FF, it will be FF forever. We denote by Q~N={(q,l)Q~:l=N}\tilde{Q}_{N}=\{(q,l)\in\tilde{Q}:l=N\} the set of normal augmented states and the set of faulty states Q~F\tilde{Q}_{F} is defined analogously.

Refer to caption
Figure 2: Augmented system G~1\tilde{G}_{1} for system G1G_{1}.
Example 4

Still, we consider system G1G_{1} shown in Figure 1 with the same setting in Example 3. Its augmented system G~1\tilde{G}_{1} is depicted in Figure 2, where (1,σf,ε)(1,\sigma_{\!f},\varepsilon) is the extended fault event and after occurrence of which all states is augmented with label FF, e.g., states 2F2F and 3F3F. Furthermore, the transitions of the augmented system G~1\tilde{G}_{1} are defined according to the actual transitions and the underlying observations of original system G1G_{1}. For example, because f(3,b)=4f(3,b)=4 and 𝒪(3,b)={b,ε}\mathcal{O}(3,b)=\{b,\varepsilon\}, we have two new transitions in G~1\tilde{G}_{1}: f~(3F,b3b)=4F\tilde{f}(3F,b_{3}^{b})=4F and f~(3F,b3ε)=4F\tilde{f}(3F,b_{3}^{\varepsilon})=4F.

IV-B Verification Structure

Let r2Q~r\in 2^{\tilde{Q}} be a set of states representing the current state estimation of the augmented system. By observing a new output symbol δΔ\delta\in\Delta, the estimate is updated by the following observable reach

Next(r,δ)={q~Q~:q~r,σ~Σe s.t ΘΔ(σ~)=δq~=f~(q~,σ~)}.\textsf{Next}(r,\delta)=\left\{\tilde{q}^{\prime}\in\tilde{Q}:\!\!\!\begin{array}[]{cc}\exists\tilde{q}\in r,\tilde{\sigma}\in\Sigma_{e}\text{ s.t }\\ \Theta_{\Delta}(\tilde{\sigma})\!=\!\delta\wedge\tilde{q}^{\prime}\!=\!\tilde{f}(\tilde{q},\tilde{\sigma})\end{array}\right\}.

Also, the system can execute silently without generating an output symbol. This is captured by the unobservable reach defined by:

UR(r)={q~Q~:q~r,sΣe s.t ΘΔ(s)=εq~=f~(q~,s)}.\textsf{UR}(r)=\left\{\tilde{q}^{\prime}\in\tilde{Q}:\!\!\!\begin{array}[]{cc}\exists\tilde{q}\in r,s\in\Sigma_{e}^{*}\text{ s.t }\\ \Theta_{\Delta}(s)\!=\!\varepsilon\wedge\tilde{q}^{\prime}\!=\!\tilde{f}(\tilde{q},s)\end{array}\right\}.

Now, based on the augmented system G~=(Q~,q~0,Σ~,f~)\tilde{G}=(\tilde{Q},\tilde{q}_{0},\tilde{\Sigma},\tilde{f}), we construct the verification structure as follows:

V=(QV,qV0,ΣV,fV)V=(Q_{V},q_{V}^{0},\Sigma_{V},f_{V}) (6)

where

  • QVQ~×2Q~Q_{V}\subseteq\tilde{Q}\times 2^{\tilde{Q}} is the set of states;

  • qV0=(q~0,UR({q~0}))q_{V}^{0}=(\tilde{q}_{0},\textsf{UR}(\{\tilde{q}_{0}\})) is the initial state;

  • ΣV=Σe\Sigma_{V}=\Sigma_{e} is the event set, which is just the set of extended events;

  • fV:QV×ΣVQVf_{V}:Q_{V}\times\Sigma_{V}\rightarrow Q_{V} is the transition function defined by: for any (q~,r)Q~×2Q~(\tilde{q},r)\in\tilde{Q}\times 2^{\tilde{Q}} and σ~ΣV\tilde{\sigma}\in\Sigma_{V}, we have

    fV((q~,r),σ~)={(q~,r)if ΘΔ(σ~)=ε(q~,r)if ΘΔ(σ~)Δf_{V}((\tilde{q},r),\tilde{\sigma})=\left\{\!\!\begin{array}[]{l l}(\tilde{q}^{\prime},r)&\text{if }\Theta_{\Delta}(\tilde{\sigma})=\varepsilon\\ (\tilde{q}^{\prime},r^{\prime})&\text{if }\Theta_{\Delta}(\tilde{\sigma})\in\Delta\end{array}\right.

    where q~=f~(q~,σ~)\tilde{q}^{\prime}=\tilde{f}(\tilde{q},\tilde{\sigma}) and r=UR(Next(r,ΘΔ(σ~)))r^{\prime}=\textsf{UR}(\textsf{Next}(r,\Theta_{\Delta}(\tilde{\sigma}))).

Intuitively, each state (q~,r)(\tilde{q},r) in the verification structure VV has two components. The first component q~Q~\tilde{q}\in\tilde{Q} tracks the current (augmented) state in G~\tilde{G}. Therefore, the transition of the first part is consistent with f~\tilde{f}. As a result, we also have

(V)=(G~)=e(G)\mathcal{L}(V)=\mathcal{L}(\tilde{G})=\mathcal{L}_{e}(G)

and the same for the generated infinite language. On the other hand, the second component r2Q~r\in 2^{\tilde{Q}} captures the current state estimation of system G~\tilde{G}. Therefore, this component is updated only when a new output symbol is generated, i.e., ΘΔ(σ~)Δ\Theta_{\Delta}(\tilde{\sigma})\in\Delta. Furthermore, if it is updated, then it first updates the estimate by the observable reach to compute the set of state that can be reached immediately following the output. Also, we need to include all states that can be reached silently by using the unobservable reach. Essentially, we can image VV as the synchronization of the augmented system G~\tilde{G} and its current-state estimate under the non-deterministic observation setting.

For any state (q~,r)QV(\tilde{q},r)\in Q_{V} in VV, we say the state is

  • certain if q~Q~F\tilde{q}\in\tilde{Q}_{F} and rQ~Fr\subseteq\tilde{Q}_{F};

  • uncertain if q~Q~F\tilde{q}\in\tilde{Q}_{F} and rQ~Nr\cap\tilde{Q}_{N}\neq\emptyset.

We denote by QVcerQ_{V}^{cer} and QVuncQ_{V}^{unc} the set of certain states and uncertain states in VV, respectively. Then for any string s(V)s\in\mathcal{L}(V), based on the definition of uncertain and certain states, we have following properties:

  • For any faulty extended string s(V)=e(G)s\in\mathcal{L}(V)=\mathcal{L}_{e}(G), there exists a normal extended string se(G)s^{\prime}\in\mathcal{L}_{e}(G) such that ΘΔ(s)=ΘΔ(s)\Theta_{\Delta}(s)=\Theta_{\Delta}(s^{\prime}) if and only if fV(qV0,s)QVuncf_{V}(q_{V}^{0},s)\in Q_{V}^{unc}.

  • For any faulty extended string s(V)=e(G)s\in\mathcal{L}(V)=\mathcal{L}_{e}(G), if fV(qV0,s)QVcerf_{V}(q_{V}^{0},s)\in Q_{V}^{cer}, then for any of its continuation st(V)st\in\mathcal{L}(V), we have fV(qV0,st)QVcerf_{V}(q_{V}^{0},st)\in Q_{V}^{cer}.

IV-C Checking OF-Diagnosability

Now we investigate the verification of OF-diagnosability. According to Definition 2, a system is not OF-diagnosable if and only if there exists an infinite extended faulty string satisfying the Δ\Delta^{\prime}-fairness assumption but all states in VV reached along the string are uncertain. Then, since the systems is finite, only loops can generate infinite strings. This leads to the definition of fairly uncertain loop (FU-loop).

Formally, given the verification structure VV, we define a run in VV as a finite sequence

π=qV1σV1qV2σV2σVn1qVn\pi=q_{V}^{1}\xrightarrow{\sigma_{V}^{1}}q_{V}^{2}\xrightarrow{\sigma_{V}^{2}}\cdots\xrightarrow{\sigma_{V}^{n-1}}q_{V}^{n}

where qV1,,qVnQV,σV1,,σVnΣVq_{V}^{1},\cdots,q_{V}^{n}\in Q_{V},\sigma_{V}^{1},\cdots,\sigma_{V}^{n}\in\Sigma_{V} and qVi+1=fV(qVi,σVi),i=1,,n1q_{V}^{i+1}=f_{V}(q_{V}^{i},\sigma_{V}^{i}),i=1,\dots,n-1. A run of the above form is called a loop if qV1=qVnq_{V}^{1}=q_{V}^{n}.

Then given a loop π=qV1σV1qV2σVn1qVn\pi=q_{V}^{1}\xrightarrow{\sigma_{V}^{1}}q_{V}^{2}\cdots\xrightarrow{\sigma_{V}^{n-1}}q_{V}^{n} in the verification structure, where σVi=(qi,σi,δi)\sigma_{V}^{i}=(q^{i},\sigma^{i},\delta^{i}), we say π\pi is

  • fair if for each transition that occurs in the loop, any of its fair output symbols must occur in the loop associating with the same transition, i.e.,

    (i{1,,n})(δ𝒪(qi,σi)Δ)\displaystyle(\forall i\in\{1,\cdots,n\})(\forall\delta\in\mathcal{O}(q^{i},\sigma^{i})\cap\Delta^{\prime})
    (j{1,,n})[(qj,σj)=(qi,σi)δj=δ]\displaystyle(\exists j\in\{1,\cdots,n\})[(q^{j},\sigma^{j})\!=\!(q^{i},\sigma^{i})\wedge\delta^{j}\!=\!\delta]
  • uncertainty if all states in the loop are uncertain, i.e.,

    i{1,,n}:qViQVunc\forall i\in\{1,\cdots,n\}:q_{V}^{i}\in Q_{V}^{unc}
  • reachable if there exists a finite string s(V)s\in\mathcal{L}(V) such that fV(qV0,s)=qV1f_{V}(q_{V}^{0},s)=q_{V}^{1}.

Clearly, by properties of the verification structure, we know that an uncertain loop will only be reached by faulty strings. Furthermore, if some state in a loop is uncertain, then all states in it are uncertain.

In the following two lemmas, we formally establish the relationship between strings satisfying the Δ\Delta^{\prime}-fairness assumption and fair loops, according to the structure characteristics of Δ\Delta^{\prime}-fairness assumption. Due to space constraint, their proofs are omitted here and are available in [sup-material].

First, we show that, for any reachable fair loop, it can generate an infinite extended string string satisfying the Δ\Delta^{\prime}-fairness assumption.

Lemma 1

Given a reachable fair loop π=qV1σV1qV2σVn1qVn\pi=q_{V}^{1}\xrightarrow{\sigma_{V}^{1}}q_{V}^{2}\cdots\xrightarrow{\sigma_{V}^{n-1}}q_{V}^{n} in verification system VV, there exists an infinite extended string in VV in the form of

s=t(σV1σV2σVn)ωω(V)=eω(G)s=t\left(\sigma_{V}^{1}\sigma_{V}^{2}\cdots\sigma_{V}^{n}\right)^{\omega}\in\mathcal{L}^{\omega}(V)=\mathcal{L}^{\omega}_{e}(G)

such that sφfairs\models\varphi_{fair}.

Proof:

By contradiction, we assume s=t(σV1σV2σVn)ωs=t\left(\sigma_{V}^{1}\sigma_{V}^{2}\cdots\sigma_{V}^{n}\right)^{\omega} does not satisfy φfair\varphi_{fair}, that is, there exists σΣ,qQ\sigma\in\Sigma,q\in Q such that ss satisfies LTL formula σq\Box\diamondsuit\sigma_{q}, while there exists δΔ𝒪(q,σ)\delta\in\Delta^{\prime}\cap\mathcal{O}(q,\sigma) and ss does not satisfy formula σqδ\Box\diamondsuit\sigma^{\delta}_{q}. By the first formula σq\Box\diamondsuit\sigma_{q}, we have there is δ𝒪(q,σ),δδ\delta^{\prime}\in\mathcal{O}(q,\sigma),\delta^{\prime}\neq\delta such that σqδ\sigma^{\delta^{\prime}}_{q} appears in ss for infinite times, that is, σqδ\sigma^{\delta^{\prime}}_{q} is concluded in σV1σV2σVn\sigma_{V}^{1}\sigma_{V}^{2}\cdots\sigma_{V}^{n}, and since the formula σqδ\Box\diamondsuit\sigma^{\delta}_{q} is false, σqδ\sigma^{\delta}_{q} cannot occur for infinite times, that is, σqδ\sigma^{\delta}_{q} is not contained by σV1σV2σVn\sigma_{V}^{1}\sigma_{V}^{2}\cdots\sigma_{V}^{n}. Thus, the loop π\pi is not fair and the hypothesis is contradicted. ∎

On the other hand, given an infinite extended string satisfying φfair\varphi_{fair}, it will also induce a fair loop.

Lemma 2

For any infinite extended string sω(V)=eω(G)s\in\mathcal{L}^{\omega}(V)=\mathcal{L}^{\omega}_{e}(G) satisfying φfair\varphi_{fair}, we can find a reachable fair loop π=qV1σV1qV2σV2σVn1qVn\pi=q_{V}^{1}\xrightarrow{\sigma_{V}^{1}}q_{V}^{2}\xrightarrow{\sigma_{V}^{2}}\cdots\xrightarrow{\sigma_{V}^{n-1}}q_{V}^{n} in which events in the loop are the same as those event appearing infinite number of times in ss, i.e., {σV1,,σVn}=Inf(s)\{\sigma_{V}^{1},\dots,\sigma_{V}^{n}\}=\textsf{Inf}(s).

Proof:

Suppose there is an infinite string s(V)s\in\mathcal{L}(V) and ss satisfies φfair\varphi_{fair}. Because system VV is finite, we can obtain a reachable loop with the structure π=qV1σV1qV2σV2σVn1qVn\pi=q_{V}^{1}\xrightarrow{\sigma_{V}^{1}}q_{V}^{2}\xrightarrow{\sigma_{V}^{2}}\cdots\xrightarrow{\sigma_{V}^{n-1}}q_{V}^{n} such that the set of events in loop π\pi is equal to Inf(s)\textsf{Inf}(s), i.e., {σVΣV:i{1,,n},σV=σVi}=Inf(s)\{\sigma_{V}\in\Sigma_{V}:\exists i\in\{1,\cdots,n\},\sigma_{V}=\sigma_{V}^{i}\}=\textsf{Inf}(s). We assume the loop π\pi is not fair, by contradiction. That is, there exists i{1,,n}i\in\{1,\cdots,n\} and a fair output δ\delta in the set 𝒪(qi,σi)Δ\mathcal{O}(q^{i},\sigma^{i})\cap\Delta^{\prime} such that for all j{1,,n}j\in\{1,\cdots,n\}, we have either (qj,σj)(qi,σi)(q^{j},\sigma^{j})\neq(q^{i},\sigma^{i}) or δjδ\delta^{j}\neq\delta. Let q=qi=qj,σ=σi=σjq=q^{i}=q^{j},\sigma=\sigma^{i}=\sigma^{j} and δ=δi\delta^{\prime}=\delta^{i}. As a result, we know that σqδ\sigma^{\delta^{\prime}}_{q} is included by Inf(s)\textsf{Inf}(s) but σqδ\sigma^{\delta}_{q} is not. The formula σq\Box\lozenge\sigma_{q} is true, while the formula σqδ\Box\lozenge\sigma^{\delta}_{q} is false. Then, the hypothesis is contradicted. ∎

Based on Lemmas 1 and 2, we obtain the following main result, which shows that, to check OF-diagnosability, it suffices to check the existence of a reachable fair and uncertain loop (FU-loop) in the verification structure VV.

Theorem 2

A system GG is not OF-diagnosable w.r.t. fault events ΣF\Sigma_{F}, output function 𝒪\mathcal{O} and fair outputs ΔΔ\Delta^{\prime}\subseteq\Delta, if and only if, there exists a reachable FU-loop in the verification structure VV.

Proof:

(\Leftarrow) Assume system GG is OF-diagnosable. That is, for any infinite faulty extended string se,Fφ(G)s\in\mathcal{L}^{\varphi}_{e,F}(G), it has a finite prefix tt such that each extended string ωe(G)\omega\in\mathcal{L}_{e}(G), which has the same output with tt, is faulty, i.e., Σe,Fω\Sigma_{e,F}\in\omega.

By contradiction, we claim there exists a reachable FU-loop π\pi in VV. Suppose π=qV1σV1qV2σV2σVn1qVn\pi=q_{V}^{1}\xrightarrow{\sigma_{V}^{1}}q_{V}^{2}\xrightarrow{\sigma_{V}^{2}}\cdots\xrightarrow{\sigma_{V}^{n-1}}q_{V}^{n}. By Lemma 1, there is an infinite string s=t(σV1σV2σVn)ωs=t\left(\sigma_{V}^{1}\sigma_{V}^{2}\cdots\sigma_{V}^{n}\right)^{\omega} in VV satisfying φfair\varphi_{fair}, where tPre(s)t\in\textsf{Pre}(s) and fV(qV0,s)=qV1f_{V}(q_{V}^{0},s)=q^{1}_{V}. By properties of verification structure, we know that for any prefix tPre(s)t^{\prime}\in\textsf{Pre}(s), f(qV0,t)QVcerf(q^{0}_{V},t^{\prime})\notin Q^{cer}_{V}. And since all states in loop π\pi are uncertain, for any prefix tPre(s)t^{\prime}\in\textsf{Pre}(s), there exists a normal extended string ωe(G)\omega\in\mathcal{L}_{e}(G) having the same output with tt^{\prime}. The system is not OF-diagnosable, which contradicts the hypothesis.

(\Rightarrow) Suppose system GG is not OF-diagnosable. By Definition 3, there is an infinite faulty extended string se,Fφ(G)s\in\mathcal{L}^{\varphi}_{e,F}(G) such that for any prefix tPre(s)t\in\textsf{Pre}(s), a normal extended string ωe(G)\omega\in\mathcal{L}_{e}(G) has the same output with tt. Because of this normal extended string ω\omega, by properties of verification structure, any prefix tt of the infinite faulty extended string ss cannot reach certain states, i.e., fV(qV0,t)QVcerf_{V}(q^{0}_{V},t)\notin Q_{V}^{cer}. Because extended string ss is fair, i.e., sφfairs\models\varphi_{fair}, by Lemma 2, there exists a fair loop π=qV1σV1qV2σV2σVn1qVn\pi=q_{V}^{1}\xrightarrow{\sigma_{V}^{1}}q_{V}^{2}\xrightarrow{\sigma_{V}^{2}}\cdots\xrightarrow{\sigma_{V}^{n-1}}q_{V}^{n}, where {σV1,,σVn}=Inf(s)\{\sigma_{V}^{1},\dots,\sigma_{V}^{n}\}=\textsf{Inf}(s). For any faulty prefix tPre(s)t^{\prime}\in\textsf{Pre}(s), there is a string t′′Σet^{\prime\prime}\in\Sigma_{e}^{*} such that tt′′t^{\prime}t^{\prime\prime} is a prefix of ss and reaches the state qV1q_{V}^{1}, i.e., fV(qV0,tt′′)=qV1f_{V}(q_{V}^{0},t^{\prime}t^{\prime\prime})=q_{V}^{1}. By properties of verification structure, all states in loop π\pi are uncertain, that is, π\pi is a reachable FU-loop. The proof is complete. ∎

The condition in Theorem 2 can be checked as follows. First, in verification structure, we find all strongly connected components (SCCs) that are reachable by fault events. Clearly, each of above SCCs only consists of either certain states or uncertain states and we only need to consider those uncertain SCCs. Then we need to check if any of the uncertain SCCs contains a fair loop. To this end, for each extended event (q,σ,δ)(q,\sigma,\delta), we check if it is fair in the sense that any δΔ𝒪(q,σ)\delta\in\Delta^{\prime}\cap\mathcal{O}(q,\sigma) also appears in the same SCC. If not, we need to remove such an extended event, and then recompute the SCCs and repeat the above removal procedure. When no such “unfair” extended event can be removed, the SCC remained (if exists) will contain a fair-loop; otherwise, no fair-lopp can be found. The above procedure is in polynomial-time in the size of the verification structure since computing all SCCs can be done in linear time and the above procedure repeats at most |Q|2|Σ||Δ||Q|^{2}|\Sigma||\Delta| times. However, the size of the verification structure is exponential in the size of the original system. Therefore, the overall complexity for checking OF-diagnosability is exponential.

Example 5

Still, let us consider system G1G_{1} shown Figure 1 with ΣF={σf}\Sigma_{F}=\{\sigma_{\!f}\} and suppose that the fair outputs are Δ={b,c}\Delta^{\prime}=\{b,c\}. As we have discussed in Example 3, this system is OF-diagnosability. Here, we analyze this more formally using Theorem 2. Based on the augmented system G~1\tilde{G}_{1}, we construct the verification structure V1V_{1}; part of it is shown in Figure 3, where we focus on the only reachable uncertain loop, as highlighted with red lines in the Figure 3, and omit other parts without loss of generality for the purpose of verification. To form a loop, we have to fire extended event c4ϵc_{4}^{\epsilon} infinite number of times at state 4F4F. However, the fair output of transition 4𝑐4\xrightarrow{c} is cΔc\in\Delta^{\prime}, i.e., 𝒪(4,c)Δ={c}\mathcal{O}(4,c)\cap\Delta^{\prime}=\{c\} and extended c4cc_{4}^{c} is not included. Therefore, we conclude the V1V_{1} cannot form a FU-loop, which means that system G1G_{1} is OF-diagnosable according to Theorem 2.

Refer to caption
Figure 3: Part of verification structure V1V_{1} corresponding to system G1G_{1}. The uncertain loop is highlighted by red lines.

In the previous running example, the non-deterministic observation is either to see the occurrence of the internal event or to lose the observation. This actually corresponds to the special case of intermittent loss of observations. As we mentioned, our framework captures the general case of state-dependency and allows the output symbols to be different from the event set. In the following example, we consider such a general scenario.

Example 6

Let us consider system G2G_{2} shown in Figure 4(a) with Σ={a,b,c,σf,u}\Sigma=\{a,b,c,\sigma_{\!f},u\}, Δ={o1,o2,o3}\Delta=\{o_{1},o_{2},o_{3}\} and ΣF={σf}\Sigma_{F}=\{\sigma_{\!f}\}. We assume that the fair outputs are Δ={o2,o3}\Delta^{\prime}=\{o_{2},o_{3}\}. For example, for transition 4𝑐4\xrightarrow{c}, we may observe any output δ𝒪(4,c)={o2,o3,ε}\delta\in\mathcal{O}(4,c)=\{o_{2},o_{3},\varepsilon\} non-deterministically. The augmented system G~2\tilde{G}_{2} is depicted in Figure 4(b). For this system, the Δ\Delta^{\prime}-fairness assumption is given by

φfair=\displaystyle\varphi_{fair}= (i=4,7(ciδ{o2,o3}ciδ))\displaystyle(\bigwedge_{i=4,7}(\Box\lozenge c_{i}\to\bigwedge_{\delta\in\{o_{2},o_{3}\}}\Box\lozenge c^{\delta}_{i}))
(b3δ{o2,o3}b3δ)(b6b6o2).\displaystyle\wedge(\Box\lozenge b_{3}\to\bigwedge_{\delta\in\{o_{2},o_{3}\}}\Box\lozenge b^{\delta}_{3})\wedge\left(\Box\lozenge b_{6}\to\Box\lozenge b^{o_{2}}_{6}\right).\vspace{-12pt}

Now, let us verify OF-diagnosability using Theorem 2. To this end, we construct the corresponding verification system V2V_{2}, part of which is shown in Figure 5. However, there is fair but uncertainty loop reachable, which is highlighted in red color. Specifically, we consider the following loop

(3F,{2F,3F,4F,7N})b3ε(4F,{2F,3F,4F,7N})\displaystyle(3F,\{2F,3F,4F,7N\})\xrightarrow{b_{3}^{\varepsilon}}(4F,\{2F,3F,4F,7N\})
c4o2\displaystyle\xrightarrow{c_{4}^{o_{2}}} (2F,{2F,4F,8N})a2o1(3F,{2F,3F,4F,7N})\displaystyle(2F,\{2F,4F,8N\})\xrightarrow{a_{2}^{o_{1}}}(3F,\{2F,3F,4F,7N\})
b3o2\displaystyle\xrightarrow{b_{3}^{o_{2}}} (4F,{2F,4F,8N})c4ε(2F,{2F,4F,8N})\displaystyle(4F,\{2F,4F,8N\})\xrightarrow{c_{4}^{\varepsilon}}(2F,\{2F,4F,8N\})
a2o1\displaystyle\xrightarrow{a_{2}^{o_{1}}} (3F,{2F,3F,4F,7N})b3ε(4F,{2F,3F,4F,7N})\displaystyle(3F,\{2F,3F,4F,7N\})\xrightarrow{b_{3}^{\varepsilon}}(4F,\{2F,3F,4F,7N\})
c4o3\displaystyle\xrightarrow{c_{4}^{o_{3}}} (2F,{2F,4F,8N})a2o1(3F,{2F,3F,4F,7N})\displaystyle(2F,\{2F,4F,8N\})\xrightarrow{a_{2}^{o_{1}}}(3F,\{2F,3F,4F,7N\})
b3o3\displaystyle\xrightarrow{b_{3}^{o_{3}}} (4F,{2F,4F,8N})c4ε(2F,{2F,4F,8N})\displaystyle(4F,\{2F,4F,8N\})\xrightarrow{c_{4}^{\varepsilon}}(2F,\{2F,4F,8N\})
a2o1\displaystyle\xrightarrow{a_{2}^{o_{1}}} (3F,{2F,3F,4F,7N}).\displaystyle(3F,\{2F,3F,4F,7N\}).

This loop is fair because for transition 3𝑏3\xrightarrow{b} all fair outputs in 𝒪(3,b)Δ={o2,o3}\mathcal{O}(3,b)\cap\Delta^{\prime}=\{o_{2},o_{3}\} occur in the loop, and for transition 4𝑐4\xrightarrow{c} all fair outputs in 𝒪(4,c)Δ={o2,o3}\mathcal{O}(4,c)\cap\Delta^{\prime}=\{o_{2},o_{3}\} occur in the loop. Furthermore, all states in the loop are uncertain. Thus, system G2G_{2} is not OF-diagnosable.

Refer to caption
(a) System G2G_{2}.
Refer to caption
(b) Augmented system G~2\tilde{G}_{2}.
Figure 4: Example of a non-OF-diagnosable system.
Refer to caption
Figure 5: Part of verification structure V2V_{2} corresponding to system G2G_{2}. The uncertain loop is highlighted by red lines.

V Conclusion

In this work, we revisited the problem of fault diagnosis of DES under non-deterministic observations. Compared with existing works, we introduced the notion of output fairness that excludes the case where some possible outputs are disabled permanently, which is formalized as Δ\Delta^{\prime}-fairness assumption by LTL. We proposed a new notion called OF-diagnosability to capture the diagnostic requirement under Δ\Delta^{\prime}-fairness assumption. Necessary and sufficient condition for testing OF-diagnosability was also provided based. Our work bridged the discrepancy between the existing definition of diagnosability under non-deterministic observations and the physical setting of non-deterministic observations.

References

  • [1] C. Baier and J. Katoen. Principles of Model Checking. MIT press, 2008.
  • [2] P. Biswal and S. Biswas. A polynomial algorithm for diagnosability of fair discrete event systems. Systems Science & Control Engineering, 3(1):307–319, 2015.
  • [3] A. Boussif, M. Ghazel, and J. Basilio. Intermittent fault diagnosability of discrete event systems: an overview of automaton-based approaches. Discrete Event Dynamic Systems, 31(1):59–102, 2021.
  • [4] L. Carvalho, J. Basilio, and M. Moreira. Robust diagnosis of discrete event systems against intermittent loss of observations. Automatica, 48(9):2068–2078, 2012.
  • [5] L. Carvalho, M. Moreira, and J. Basilio. Comparative analysis of related notions of robust diagnosability of discrete-event systems. Annual Reviews in Control, 2021.
  • [6] L. Carvalho, M. Moreira, J. Basilio, and S. Lafortune. Robust diagnosis of discrete-event systems against permanent loss of observations. Automatica, 49(1):223–231, 2013.
  • [7] C. Cassandras and S. Lafortune. Introduction to Discrete Event Systems, volume 2. Springer, 2008.
  • [8] Y. Hu, Z. Ma, Z. Li, and A. Giua. Diagnosability enforcement in labeled petri nets using supervisory control. Automatica, 131:109776, 2021.
  • [9] N. Kanagawa and S. Takai. Diagnosability of discrete event systems subject to permanent sensor failures. International Journal of Control, 88(12):2598–2610, 2015.
  • [10] S. Lafortune, F. Lin, and C. Hadjicostis. On the history of diagnosability and opacity in discrete event systems. Annual Reviews in Control, 45:257–266, 2018.
  • [11] F. Lin. Control of networked discrete event systems: dealing with communication delays and losses. SIAM Journal on Control and Optimization, 52(2):1276–1298, 2014.
  • [12] F. Lin, W. Chen, L. Han, B. Shen, et al. N-diagnosability for active on-line diagnosis in discrete event systems. Automatica, 83:220–225, 2017.
  • [13] V. Oliveira, F. Cabral, and M. Moreira. K-loss robust diagnosability of discrete-event systems. IFAC-PapersOnLine, 53(4):250–255, 2020.
  • [14] N. Ran, H. Su, A. Giua, and C. Seatzu. Codiagnosability analysis of bounded petri nets. IEEE Trans. Automatic Control, 63(4):1192–1199, 2018.
  • [15] M. Sampath, R. Sengupta, S. Lafortune, K. Sinnamohideen, and D. Teneketzis. Diagnosability of discrete-event systems. IEEE Trans. Automatic Control, 40(9):1555–1575, 1995.
  • [16] S. Takai. A general framework for diagnosis of discrete event systems subject to sensor failures. Automatica, 129:109669, 2021.
  • [17] S. Takai and T. Ushio. Verification of codiagnosability for discrete event systems modeled by Mealy automata with nondeterministic output functions. IEEE Trans. Aut. Control, 57(3):798–804, 2012.
  • [18] T. Ushio and S. Takai. Nonblocking supervisory control of discrete event systems modeled by Mealy automata with nondeterministic output functions. IEEE Trans. Aut. Control, 61(3):799–804, 2015.
  • [19] G. Viana, M. Moreira, and J. Basilio. Codiagnosability analysis of discrete-event systems modeled by weighted automata. IEEE Trans. Automatic Control, 64(10):4361–4368, 2019.
  • [20] X. Yin, J. Chen, Z. Li, and S. Li. Robust fault diagnosis of stochastic discrete event systems. IEEE Trans. Automatic Control, 64(10):4237–4244, 2019.
  • [21] X. Yin and S. Lafortune. On the decidability and complexity of diagnosability for labeled Petri nets. IEEE Trans. Automatic Control, 62(11):5931–5938, 2017.
  • [22] J. Zaytoon and S. Lafortune. Overview of fault diagnosis methods for discrete event systems. Annual Rev. Control, 37(2):308–320, 2013.