Next Article in Journal
On the Existence Theorems of Equilibrium and Quasi-Equilibrium Problems in Different Spaces
Previous Article in Journal
A Multi-Camera System-Based Relative Pose Estimation and Virtual–Physical Collision Detection Methods for the Underground Anchor Digging Equipment
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Verification of Detectability for Time Labeled Petri Net Systems with Unobservable Transitions

Institute of Systems Engineering, Macau University of Science and Technology, Taipa, Macao SAR 999078, China
*
Author to whom correspondence should be addressed.
Mathematics 2025, 13(4), 563; https://doi.org/10.3390/math13040563
Submission received: 10 December 2024 / Revised: 3 February 2025 / Accepted: 4 February 2025 / Published: 8 February 2025

Abstract

:
We investigate the detectability verification problem of time-dependent systems modeled by time labeled Petri nets that are a typical time-dependent model of many computer-integrated systems in modern society, characterized by networked connections. In a time labeled Petri net, the detectability proposed in this paper characterizes the current state of a time-dependent system that can be uniquely determined after a finite number of observations within a given time instant. Moreover, we further define strong and weak detectability in a time labeled Petri net system. To verify strong and weak detectability, we excogitate a label-based state class graph, which is not required to enumerate all states of a system, to compute the states for a given real-time observation. Based on the proposed label-based state class graph, an information structure called a timed state observer is formulated to verify strong and weak detectability. The proposed verification technique is advantageous and is effectively applied to an intelligent garage system, since the enumeration of all states of the time-dependent system is not required.

1. Introduction

In cyber-physical systems, the system dynamic is generally incompletely known thanks to restrictions of deployed sensors or environmental constraints, such as these systems usually being partially observed, i.e., only a part of system behavior can be observed by an external observer. In this case, system states are only estimated by observational system outputs. In a lot of realistic applications exhibiting the features of discrete-event systems (DESs), system security or the safety of information flows is usually of paramount importance. Recent years have witnessed many interesting research results on these information-related properties in the domain of discrete-event systems, such as detectability detection [1], fault diagnosis and diagnosability analysis [2], opacity verification [3,4,5], and the design of supervisory controllers [6], which rely on the state estimation of partially observable systems.
Deciding on precise system states is critical for many problems of system analysis and synthesis of discrete-event systems since various system control requirements can be equivalently transformed into state detection problems. The classical theory of observers in continuous-time dynamical systems is concerned with the reconstruction of system state space from the input and output of a system. A conceptually appealing and generally useful property of a continuous-time dynamical system is the detectability that is generalized from the observer theory [7].
The notion of detectability was originally formulated in the framework of deterministic finite automata in [8] for discrete-event systems. Technically, detectability is a system property, implying that, given a current observation (an observational system output), the current and the subsequent states can be uniquely inferred within a finite number of observational steps, i.e., after a finite number of labels is generated by the system. Moreover, four types of detectability are proposed: strong detectability, weak detectability, strong periodic detectability, and weak periodic detectability. Moreover, the techniques for verifying these four types of detectability were developed. These notions are different but correlated. For example, strong detectability refers to the determinism of a unique current and subsequent system states for all possible trajectories decided by an observation, while weak detectability implies the determinism of a unique current and subsequent system states for certain possible trajectories decided by an observation. The sufficient and necessary conditions for both properties can be derived from the observer of a system model. Further, in [9], the authors expand detectability to non-deterministic finite automata and develop a detector to verify strong detectability.
Petri nets are a prevailing yet powerful vehicle for the modeling and control of discrete-event systems and have improved modeling capability over finite automata. For example, strong and weak detectability are proposed in labeled Petri nets (LPNs) [10], and computational complexity analysis for verifying different versions of detectability is accordingly reported [11,12]. In a bounded LPN, addressing the detectability problem generally requires the construction of a reachability graph (RG), which is a finite automaton. Based on an RG, its RG observer is further developed for state estimation. It is well known that the complexity of constructing an RG for an LPN system is exponential to the size of this LPN system. To address this problem, a basis reachability graph-based method for verifying detectability with no necessity to enumerate all the states of a system is reported in [13].
In realistic applications such as healthcare systems [14], smart houses systems [15], and commercial systems [16], the time factor serves a crucial and vital role in both the establishment and investigation of timed models. For the sake of enriching the description of detectability of DESs in this paper, we introduce the time factor to specify the behavior of realistic systems [17,18,19,20,21]. In a time labeled Petri net (TLPN) system, an event is required to occur within a time horizon, which implies that an event is associated with a transition with the time property. Particularly, each transition is constrained to a time horizon and each state is a pair ( M x , Φ x ) , in which M x is a logical marking and Φ x is a family of time-dependent inequalities.
In the TLPN framework, most studies touch on opacity verification [22], state estimation [23], and fault diagnosis [24]. A state class graph aims to abstract the state information of a TLPN, where the nodes are the state classes of a TLPN and the edges are tagged with time constraints of transitions. Constructing a state class graph is an essential step in TLPNs, and an array of results has been documented relying on state class graphs [25,26,27]. A state class graph is designed for the abstraction of the state information of a TLPN, where the nodes are the state classes in a TLPN and each edge is tagged by a time constraint. In [28], the authors develop an approach to checking diagnosability using model-checking techniques and transform the pattern diagnosability problem to examine the linear-time properties of a time Petri net (TPN) system. Basile et al. develop a graph called a modified state class graph (MSCG), where each edge is associated with an event and a time horizon, for addressing the state estimation problem in TLPNs [23]. In contrast to MSCGs, the size of the graph developed in this paper depends on the length of a given sequence of observable labels, and the enumeration of all states is avoided. In addition, a revised state class graph is developed to source the evolution of a timed observation for path detectability verification [29]. Verifying path detectability requires searching all paths associated with all prefixes of the timed observation. Since the method proposed in this paper only needs to solve for the longest path associated with the timed observation, the proposed method in this paper is efficient.
Indeed, as far as we know, few works address the detectability verification problem in timed models. Detectability is a crucial aspect when considering time factors. By verifying detectability, one can ensure that the state of the time-dependent system can be inferred from a timed observation, which is crucial for the robustness and accuracy of the system. Effective state detection is pivotal in many real-world applications, including smart houses, automated cargo assembly, freight transportation, manufacturing, automated driving, rocket and satellite systems, etc. These systems are time-dependent, which means that apart from the basic tasks needing to be accomplished following a prescribed order, the state of a system must also be determined within specific time constraints to ensure safety features. Therefore, we need to abstract and investigate the performances and behaviors of time-dependent systems.
Under the framework of timed automata, Dong et al. propose the notions of strong and delayed detectability and investigate corresponding verification approaches [30]. They show that verifying strong and delayed detectability of timed automata is decidable. In a previous study, we introduced path detectability in TLPNs and the time information overlap problem caused by indistinguishable paths in TLPNs [29]. To overcome this problem, we developed a revised state class graph observer to verify path detectability by checking the event tags of the edges. However, it does not consider strong and weak detectability for a TLPN system. In this paper, we propose strong and weak detectability of a real-time observation (RTO) under the framework of TLPNs. Hence, one is required to estimate the state after the occurrence of each event in an RTO. Then, we develop an approach to verifying the proposed detectability. The main contributions of this paper are described below.
(1) Strong and weak detectability are formally defined in a TLPN system.
(2) An algorithm to construct a label-based state class graph (LSCG) with respect to an RTO is developed. Given an RTO, we only need to compute the states associated with the observable sequence within a given time.
(3) On the basis of the proposed LSCG, a timed state observer, which computes the states reached by each event of an RTO, is developed. By constructing the timed state observer, strong and weak detectability can be verified effectively.

2. Problem Statement

For the economy of space, the preliminaries of Petri nets, TPNs, and TLPNs are referred to [31]. Under the framework of TLPNs, detectability is a property that the current state of a system is uniquely determined after a limited length of observation within a given time. To obtain the main results about the detectability of TLPNs, it is assumed that
(A1) The TLPN system is bounded.
(A2) There is no cycle in the TLPN system that consists only of unobservable transitions.
(A3) The summation of the lower bounds of time intervals associated with the transitions in a cycle of the TLPN exceeds zero.
These three assumptions do not constrain the applicability of the proposed techniques, since most cyber-physical systems are bounded and unobservable cycles are unrealistic to fire in zero time.

2.1. State Estimation

In a TLPN system, the observer could merely acquire the observable labels and their corresponding time instants. An RTO O of a TLPN is defined as a pair ( ρ , τ ) , in which ρ is a time-labeled observation (TLO) and τ is a time instant. In this work, τ is the time instant at which the last label is observed in ρ . In what follows, we proceed in the context of a TLPN G = ( N , M 0 , I , E , ) .
Definition 1.
Let O = ( ρ , τ ) be an RTO and ( M 0 , Φ 0 ) be the initial state in G. The set of transition time sequences (TTSs) consistent with the RTO O is
S T S ( O ) = { σ t ( T × Q 0 + ) * ( M k , Φ k ) R t ( G ) : ( M 0 , Φ 0 ) [ σ t ( M k , Φ k ) , P ( σ t ) = ρ , τ τ f < m i n { b h t h E n ( M k ) T u o } }
where τ f = t f ( σ t ) and b i is the upper bound of an unobservable transition t i enabled at M, i.e.,  t i E n ( M ) T u o .
Definition 2.
Given an RTO O = ( ρ , τ ) in G, the set of transition sequences consistent with the RTO O is
S ( O ) = { s T * σ t S T S ( O ) : l o g ( σ t ) = s } .
Definition 3.
Let ( M 0 , Φ 0 ) be the initial state and O = ( ρ , τ ) be an RTO in G. The consistent set of states of the RTO O is defined as
SC ( O ) = { ( M k , Φ k ) R t ( G ) σ t S T S ( O ) : ( M 0 , Φ 0 ) [ σ t ( M k , Φ k ) } .
The consistent set of markings of the RTO O is defined as
M ( O ) = { M k N m σ t S T S ( O ) : ( M 0 , Φ 0 ) [ σ t ( M k , Φ k ) } .
Definition 4.
Given a reachable state C i = ( M i , Φ i ) and an observable transition t o T o in G, the set of silent TTSs of t o at C i is defined as
S S ( C i , t o ) = { σ t ( T × Q 0 + ) * C k R t ( G ) : C i [ σ t C k , C k [ t o , l o g ( σ t ) T u * } .
Example 1.
Consider a TLPN G in Figure 1 with seven places and seven transitions, where M 0 = [ 1 0 0 0 0 0 0 ] T , T o = { t 1 , t 2 , t 5 , t 6 , t 7 } , T u o = { t 3 , t 4 } , ( t 1 ) = ( t 2 ) = a , ( t 5 ) = ( t 6 ) = b , and  ( t 7 ) = c , with  I ( t 1 ) = [ 2 , 4 ] , I ( t 2 ) = [ 3 , 5 ] , I ( t 3 ) = [ 4 , 8 ] , I ( t 4 ) = [ 4 , 7 ] , I ( t 5 ) = [ 2 , 6 ] , I ( t 6 ) = [ 3 , 4 ] , and  I ( t 7 ) = [ 3 , 5 ] . Let O = ( ρ , τ ) with ρ = ( a , 2 ) and τ = 2 be an RTO. By Definitions 1–3, we have S T S ( O ) = { ( t 1 ( a ) , τ 1 ) } , S ( O ) = { t 1 } , SC ( O ) = { ( [ 0 1 0 0 0 0 0 ] T , { a 3 φ 3 b 3 } ) } , and  M ( O ) = { [ 0 1 0 0 0 0 0 ] T } .

2.2. Strong and Weak Detectability in a TLPN

In plain words, the detectability of a TLPN system is the property that characterizes that the current state can be determined uniquely after a finite length of observation within a given time instant. Furthermore, in this section, we touch upon the weak and strong detectability in TLPNs.
Definition 5.
The set of labeled strings generated by G is
O S ( G ) = { w E * ( M i , Φ i ) R t ( G ) , σ t ( T × Q 0 + ) * : ( M i , Φ i ) [ σ t , ( σ t ) = w } .
More specifically, a labeled string is a sequence of labels and is generated by G.
Definition 6.
Let ( M 0 , Φ 0 ) be the initial state in G. The RTO O = ( ρ , τ ) is said to be detectable if
( σ t Σ ( O ) ) [ ( M 0 , Φ 0 ) [ σ t , w O S ( G ) | SC ( O ) | = 1 ] ,
where O S ( G ) is the set of labeled strings generated by G and w = ( σ t ) .
An RTO is detectable if the current state of the TLPN system can be determined after a finite number of events are observed within a given time.
Definition 7.
Given an RTO O = ( ρ , τ ) and the initial state ( M 0 , Φ 0 ) in G, the set of timing consistent states of a prefix r of ρ is
S T C ( r , ρ ) = { ( M d , Φ d ) R t ( G ) σ t ( T × Q 0 + ) * : ( M 0 , Φ 0 ) [ σ t ( M d , Φ d ) , P ( σ t ) = r , σ t [ h ] , t f ( σ t ) τ , h S T S ( O ) } ,
where r = ( e 1 , τ 1 ) ( e 2 , τ 2 ) ( e n , τ n ) is a prefix of a TLO ρ, i.e.,  r ρ .
Note that r is the prefix of ρ and h is a TTS contained in the set of TTSs consistent with the RTO O . This ensures that σ t is not out of the observed time horizon and is associated with O .
Definition 8.
An RTO O = ( ρ , τ ) of G is said to be strongly detectable if, for all r [ ρ ] , | S T C ( r , ρ ) | = 1 holds.
An RTO is strongly detectable if the state of a TLPN system can be uniquely determined after the occurrence of each event, for a finite number of observations within a given time.
Definition 9.
An RTO O = ( ρ , τ ) of G is said to be weakly detectable if there exists a r [ ρ ] ; in this scenario, | S T C ( r , ρ ) | = 1 holds.
An RTO is weakly detectable if there exists a prefix r of a TLO ρ such that the state of the system can be uniquely determined after the occurrence of r.
Proposition 1.
If an RTO O of G is strongly detectable, then it is weakly detectable.
Proof. 
It trivially follows from Definitions 8 and 9.    □
Example 2.
Consider again the TLPN G in Figure 1. Let O = ( ρ , τ ) with ρ = ( a , 2 ) ( b , 8 ) and τ = 8 be an RTO. By Definitions 1–3, we have S T S ( O ) = { ( t 1 ( a ) , τ 1 ) ( t 3 ( ε ) , τ 2 ) ( t 5 ( b ) , τ 3 ) } , S ( O ) = { t 1 t 3 t 5 } , SC ( O ) = { ( [ 0 0 0 0 0 1 0 ] T , { a 7 φ 7 b 7 } ) } , and M ( O ) = { [ 0 0 0 0 0 1 0 ] T } . A prefix of ρ is r = ( a , 2 ) . By Definition 7, we have S T C ( r , ρ ) = { ( [ 0 1 0 0 0 0 0 ] T , { a 3 φ 3 b 3 } ) , ( [ 0 0 0 1 1 0 0 ] T , { a 5 φ 5 b 5 , a 6 φ 6 b 6 } ) } and | S T C ( r , ρ ) | = 2 . By Definitions 8 and 9, this RTO is weakly detectable and not strongly detectable.

3. Verification of State Detectability in TLPNs

Label-Based State Class Graph

This section addresses weak and strong detectability in TLPN systems. In order to show the evolution of states with respect to events, we develop a structure called a label-based partitioned graph (LSCG). In contrast to the traditional modified SCG proposed in [23], all nodes reached by firing observable transitions are marked, and the enumeration of all reachable states is avoided.
Definition 10.
Given an RTO O in G, an LSCG is a directed graph H = ( Q h , L h , W h , δ h , q 0 ) , where Q h is a set of nodes, L h is a set of labels, W h Q h × Q h is a set of edges, δ h : W h L h is a labeling function assigning an edge with a label, and  q h , 0 is the initial node, such that the following statements hold:
  • A node q h = ( M h , Φ h ) Q h is a pair, in which M h is a reachable marking and Φ h is a set of inequalities.
  • A label l h takes the form l h = δ h ( ( q m , q n ) ) = ( t v ( ( t v ) ) , δ v m ) , which is a triple, in which δ v m [ m a x { 0 , a v m } and m i n { b d m t d E n ( M m ) } ] are the firing time units of t v .
Now, we explain how Algorithm 1 performs. Initially, the set of nodes is initiated by q h , 0 , the sets of edges and labels are empty, and w is set to one (Line 1). A “new” tag is assigned to q h , o (Line 4). In Line 6, a node q h , a is chosen. Each Transition t z ( w ) is logically enabled at M a and must fire after m a x { 0 , a z a ( w ) } time units and before m i n { b k a t k E n ( M a ) } time units (Line 8).
In Line 9, Transition t z ( w ) can fire, and a new marking M b can be obtained. At  M b , for all the transitions t j enabled at M b , if  t j is not newly enabled, its lower and upper bounds are a j b = m a x { 0 , a j a δ z ( w ) a } and b j b = b j a δ z ( w ) a , respectively; otherwise, the lower and upper bounds of t j E n ( M b ) equal to their static closed time intervals (Lines 10–14).
In Lines 15–18, we store the states reached by firing observable and unobservable transitions in Q L and Q ε , respectively. The node q h , b , the edge ( q h , a , q h , b ) , and the label ( t z ( w ) ( ( t z ( w ) ) ) , δ z ( w ) a ) are added to the sets Q h , W h , and L h , respectively (Lines 19–21). We choose the tag “new” for q h , b (Line 22). Finally, an LSCG is obtained.
Algorithm 1: Construction of an LSCG
Mathematics 13 00563 i001
In Algorithm 1, once the transition sequences that are consistent with O are obtained, we need to search those that are timing consistent with T . In terms of timing consistency, the observation of labels will emerge at the same time instants as in ρ and no further observations will occur until τ [32].
Example 3.
Consider the TLPN G shown in Figure 1 and an RTO O = ( ρ , τ ) with ρ = ( a , 3 ) ( b , 10 ) and τ = 10 . The initial node is q h , 0 = ( [ 1 0 0 0 0 0 0 ] T , { a 1 φ 1 b 1 , a 2 φ 2 b 2 } ) and E n ( M 0 ) = { t 1 , t 2 } . We have ( t 1 ) = ( t 2 ) = a .
At q h , 0 , Transition t 1 can fire and yield a marking M 1 = [ 0 1 0 0 0 0 0 ] T . Since t 1 is observable, by Algorithm 1, the node q h , 1 = ( M 1 , Φ 1 ) is added to Q L . At  q h , 1 = ( M 1 , Φ 1 ) , we have E n ( M 1 ) = { t 3 } . Since t 3 N e w ( M 0 , t 1 ) , we have Φ 1 = { a 3 φ 3 b 3 } . Then, a new node q h , 3 = ( [ 0 0 0 1 1 0 0 ] T , { a 5 φ 5 b 5 , a 6 φ 6 b 6 } ) is generated from q h , 1 by firing t 3 . Since t 3 is unobservable, the node q h , 3 is stored in Q ε . In a similar way, the remainder of the LSCG can be computed, as shown in Figure 2. Then, by Definition 2, the set of transition sequences consistent with O is S ( O ) = { t 1 t 3 t 5 , t 1 t 3 t 6 , t 2 t 4 t 6 } . Moreover, the nodes and firing time units are given in Table 1 and Table 2.

4. Verification of Detectability Using a Timed State Observer

Construction of a Timed State Observer

To verify the detectability of a bounded LPN, it is essential to construct an RG and its observer. However, the construction of the observer will unavoidably be affected by the state explosion. In order to address this problem, a timed state observer used to verify state detectability for TLPNs without enumerating all states of a time-dependent system is developed. Specifically, a timed state observer is an observer constructed based on an LSCG that computes the state reached after the occurrence of observable events in order to analyze the detectability of the TLPN systems. Then, the state explosion problem caused by enumerating all states can be addressed. Moreover, to visually represent the proposed algorithm, a concise flowchart for verifying weak detectability is shown in Figure 3.
Definition 11.
Let H = ( Q h , L h , W h , δ h , q 0 ) be an LSCG of G with respect to O . A timed state observer S t = ( Y t , D t , E t , δ t , y t , 0 ) is a directed graph, where Y t is a set of vital nodes, D t is a set of labels, E t Y t × Y t is a set of edges associated with observable labels, δ t is a labeling function assigning each edge with a label, and  y t , 0 is the initial vital node.
In an LSCG, the unobservable reach of q h , d is defined as U R ( q h , d ) = { q h , f σ t u ( T × Q 0 + ) * : l o g ( σ t u ) T u * , q h , d [ σ t u q h , f , q h , f Q r , t f ( σ t u ) τ } . Initially, the initial vital node is y t , 0 = U R ( q h , 0 ) (Line 2). In Line 3, D t and E t are empty sets and w is set to one. The vital node y t , i Y t tagged with “new” is chosen in Line 5. For all observable events t k T o with ( t k ) = e d ( w ) , we need to compute the subsequent vital nodes after the observable label e d ( w ) occurs (Line 7). We must determine whether there exists a transition sequence that fires at q h , a to make an observable Transition t k occur (Line 8).
If the observable event e d ( w ) is enabled at q h , a , a new node q h , b will be obtained from q h , a and y t , j = y t , j U R ( q h , b ) (Lines 9–10). In Line 11, we tag q h , a with “old”. In Line 12, we compute the state indicator S I ( y t , j ) of y t , j , i.e., the number of states that are reachable after the occurrence of the label ( e d ( w ) , τ d ( w ) ) .
In Line 13, we tag all nodes in y t , j with “new”. New vital nodes are connected with corresponding labels via the addition of edges (Lines 15–17). To be more specific, the vital node y t , j , the edge e t = ( y t , i , y t , j ) with δ t ( e t ) , and the label d t = ( e d ( w ) , τ d ( w ) ) are added to the sets Y t , E t , and  D t , respectively. Finally, we obtain a timed state observer.
Example 4.
Let us consider the TLPN G shown in Figure 1, an RTO O = ( ρ , τ ) with ρ = ( a , 2 ) ( b , 8 ) ( c , 11 ) and τ = 11 . Initially, we have an initial vital node y t , 0 = U R ( q h , 0 ) = { q h , 0 } . At  q h , 0 , t 1 and t 2 with ( t 1 ) = ( t 2 ) = a are enabled, i.e.,  E n ( M 0 ) = { t 1 , t 2 } . Transition t 1 ( a ) can fire at q h , 0 and generate a new node q h , 1 , i.e.,  q h , 0 ( t 1 ( a ) , δ 1 0 [ 2 , 4 ] ) q h , 1 . By Algorithm 2, y t , 1 = y t , 1 U R ( q h , b ) , we have y t , 1 = { q h , 1 , q h , 3 } and the state indicator S I ( y t , 1 ) = 2 is computed, i.e., the number of states that are reachable after the occurrence of the label ( a , 2 ) . Similarly, we have y t , 2 = { q h , 3 } with S I ( y t , 3 ) = 1 , y t , 3 = { q h , 5 } with S I ( y t , 3 ) = 1 , and  y t , 4 = { q h , 0 } with S I ( y t , 4 ) = 1 . We can obtain a timed state observer, as depicted in Figure 4.
From the timed state observer, a path that can be observed from this observer and is associated with O is q h , 0 ( t 1 ( a ) , δ 1 0 [ 2 , 4 ] ) q h , 1 t 3 ( ε ) , δ 3 1 [ 4 , 8 ] ) q h , 3 t 5 ( b ) , δ 5 3 [ 2 , 4 ] ) q h , 5 t 7 ( c ) , δ 7 5 [ 3 , 5 ] ) q h , 0 . The transition sequence of this path is t 1 t 3 t 5 t 7 with ( t 1 t 3 t 5 t 7 ) = a b c . Then, the constraints for this path are as follows.
δ 1 0 = 2 δ 1 0 + δ 3 1 + δ 5 3 = 8 δ 1 0 + δ 3 1 + δ 5 3 + δ 7 5 = 11 2 δ 1 0 4 4 δ 3 1 8 2 δ 5 3 4 3 δ 7 5 5 δ 1 0 + δ 3 1 + δ 5 3 + δ 7 5 11 11 ( δ 1 0 + δ 3 1 + δ 5 3 + δ 7 5 ) < 4 11 ( δ 1 0 + δ 3 1 + δ 5 3 + δ 7 5 ) < 5
The above constraints have a solution that is δ 1 0 = 2 , δ 3 1 = 4 , δ 5 3 = 2 and δ 7 5 = 3 . The state indicator of y t , 1 is two, as shown in the timed state observer. By Definitions 6, 8, and 9, this RTO O = ( ρ , τ ) with ρ = ( a , 2 ) ( b , 8 ) ( c , 11 ) and τ = 11 is detectable and weakly detectable, but not strongly detectable.
Algorithm 2: Construction of a timed state observer.
Mathematics 13 00563 i002
Remark 1.
Let O = ( ρ , τ ) be an RTO with ρ = ( e d ( 1 ) , τ d ( 1 ) ) ( e d ( 2 ) , τ d ( 2 ) ) ( e d ( n ) , τ d ( n ) ) and τ = τ d ( n ) in G, H = ( Q h , L h , W h , δ h , q 0 ) be an LSCG of O , and S t = ( Y t , D t , E t , δ t , y t , 0 ) be a timed state observer of H. The RTO O is strongly detectable if the value of each state indicator is equal to one in S t . This implies that the state of a TLPN system can be uniquely determined after the occurrence of each event in O .

5. Computational Complexity Analysis

To show the contribution of this paper, we analyze the algorithmic complexity of the proposed approach and compare it with the existing methods in this section. In [23], the number of states in an MSCG increases exponentially with the size of a TLPN and its initial marking, since it needs to enumerate all states. In this paper, we construct an LSCG, which is not required to compute all states of a TLPN, to verify the weak and strong detectability of a TLPN. In contrast to an MSCG, the size of the LSCG developed in this paper is related to the length of a given logical label sequence. The proposed method is more efficient since the states calculated by the proposed method are less than or equal to the MSCG. Moreover, a revised state class graph is developed to source the evolution of the RTO in a TLPN for path detectability verification [29]. Verifying path detectability requires searching all paths associated with all prefixes of the RTO. However, in this paper, we only consider states reached after the occurrence of observable events, and the computation of solving for these paths is omitted. Therefore, the approach of this paper is advantageous.
As for Algorithm 1, the maximum number of transitions enabled at a node of an LSCG is | T | . We then compute the number of equations that need to be solved at each node of an LSCG. One equation is needed on Line 9 of Algorithm 1, and 2 | T | needs to be solved on Lines 12 and 14 of Algorithm 1. Therefore, the number of equations required to be solved at each node is 2 | T | + 1 . Note that if there is no enabled transition at a node, then the computation of the equation for this node is obviated. Let O = ( ρ , τ ) be an RTO in G. We use | ς | to denote the length of the longest path associated with O in the LSCG. Then, the complexity of tracing all paths associated with O is O ( | T | | ς | ) . In the worst case, each transition in a path is observable. The complexity of tagging the nodes reached after the occurrence of an observable transition in a path is | ς | . For the path associated with O , the total number of constraints equals 3 | ς | + | T | ( | ς | + 1 ) + 1 , at most. Note that the number of constraints for checking the enabled transitions of the last node is equal to | T | , at most.
Then, we show the complexity of Algorithm 2. Particularly, Line 1 in Algorithm 2 only needs to compute the unobservable reach of the initial node. Hence, the complexity is O ( | T | | ζ u | ) , where | ζ u | is the length of the longest unobservable path from the initial node. Moreover, the complexity of finding the unobservable reach of a node reached by the occurrence of an observable event e d ( w ) is O ( | T | | ζ e | ) , where | ζ e | is the longest unobservable path from this node. In the worst case, the complexity of solving the state indicator is | Y t | . The complexity of checking that a path is consistent with the labels of the timed state observer is O ( | E t | ) .

6. Case Study

We consider an intelligent garage system, as shown in Figure 5, which consists mainly of an automatic barrier gate, a monitor, a wireless sensor, and so forth. The private smart garage generally parks a sport utility vehicle (SUV) and a sedan, which are occupied by a male and female owner, respectively. Intelligent garage systems deliver personalized services and energy-saving strategies for different vehicles: for instance, the smart adjustment of the height of the garage door, burglary alerts, and intelligent standby, etc. The smart garage system is modeled by a TLPN, which is shown in Figure 6.
The system is turned off after 14–18 s (Transition t 3 ) when the couple leaves for work at 9:30 and is in the shutdown state (Place p 1 ). The system enters from the shutdown state to the standby state (Place p 2 ) after 14–20 s at 17:30 for the end of the workday of this couple (Transition t 4 ). When a vehicle is detected in front of the automatic barrier gate, the system enters the activated state (Place p 0 ) for 12–25 s (Transition t 2 ); otherwise, it enters the standby state (Place p 2 ) to enable the energy-saving strategy.
When a vehicle is preparing to enter the private garage, it is detected by the automatic barrier gate within 8–16 s (Transition t 5 ). The system enters the detected state (Place p 3 ). If this vehicle is not licensed by the owners, then the system will return to the standby state and alert with a message in 15–26 s (Transition t 6 ). If this vehicle is licensed by the owners, then its type will be confirmed, which requires 14–22 s of detection for an SUV (Transition t 7 ) and 14–20 s of detection for a sedan (Transition t 8 ). For an SUV, after the detection is complete, its vehicle identification chip is verified by the wireless sensor (Place p 4 ) to ensure security, and then the smart adjustment of the garage door and the personalized temperature service are provided for the vehicle and driver. An SUV is higher than a sedan, which means it requires a longer time to open the garage door. This intelligent garage system requires 18–32 s (Transition t 9 ) to open the garage door for an SUV and 12–22 s for a sedan (Transition t 10 ). Similarly, the time intervals to close the door for an SUV and a sedan are 28–42 s (Transition t 11 ) and 18–32 s (Transition t 12 ), respectively. Places p 9 and p 10 ensure that only one vehicle is detected each time. Finally, the vehicle enters into the garage (Place p 8 ) and the garage door is closed (Transition t 13 ). Moreover, Transitions t 14 and t 15 indicate the potential delay incurred by the sensor, i.e., more time may be required for detection.
Based on the TLPN model of the intelligent garage system, the set of labels is E = { a , b , c , d , e , f , g , h , i , j , k } , T o = { t 1 , t 2 , t 3 , t 4 , t 6 , t 7 , t 8 , t 9 , t 10 , t 11 , t 12 } , where ( t 1 ) = c , ( t 2 ) = d , ( t 3 ) = a , ( t 4 ) = b , ( t 6 ) = e , ( t 7 ) = ( t 14 ) = f , ( t 8 ) = ( t 15 ) = g , ( t 9 ) = h , ( t 10 ) = i , ( t 11 ) = j , and ( t 12 ) = k , with I ( t 1 ) = [ 12 , 25 ] , I ( t 2 ) = [ 12 , 25 ] , I ( t 3 ) = [ 14 , 18 ] , I ( t 4 ) = [ 14 , 20 ] , I ( t 5 ) = [ 8 , 16 ] , I ( t 6 ) = [ 15 , 26 ] , I ( t 7 ) = [ 14 , 22 ] , I ( t 8 ) = [ 14 , 20 ] , I ( t 9 ) = [ 18 , 32 ] , I ( t 10 ) = [ 12 , 22 ] , I ( t 11 ) = [ 28 , 42 ] , I ( t 12 ) = [ 18 , 32 ] , I ( t 13 ) = [ 14 , 22 ] , I ( t 14 ) = [ 16 , 24 ] , and I ( t 15 ) = [ 16 , 24 ] . The initial state q h , 0 = ( M 0 , Φ 0 ) , where M 0 = [ 0 1 0 0 0 0 0 0 0 1 1 ] T and Φ 0 = { a 4 φ 4 b 4 } .
Suppose the intruder observes the process of a certain vehicle entering the garage, i.e., an RTO O with ρ = ( b , 15 ) ( d , 29 ) ( f , 53 ) ( h , 72 ) and τ = 72 . Constructing a timed state observer using Algorithm 2, we can obtain y t , 0 ( b , 15 ) y t , 1 ( d , 29 ) y t , 2 ( f , 53 ) y t , 3 ( h , 72 ) y t , 4 . After the occurrence of the event pair ( d , 29 ) , there are two states in y t , 2 , which means that the value of the corresponding state indicator exceeds one. The timed state observer is shown in Figure 7. From this observer, it can be seen that the proposed method for detectability verification is still effective when sensor delays are considered. In other words, after observing the system entering the activated state, the intruder cannot determine whether the system is currently in the activated or detected state. Therefore, by Definition 8, the RTO is not strongly detectable; however, by Definition 9, it is weakly detectable.

7. Conclusions

In this paper, strong and weak detectability are defined in a TLPN. We develop an LSCG, which is not required to enumerate all states of a system, to compute the states with respect to a given RTO. Then, with the proposed LSCG, an information structure called a timed state observer is developed. Based on the timed state observer, strong and weak detectability properties can be efficiently verified in TLPNs. Since only one timed state observer needs to be constructed, these two types of detectability can be verified at the same time by checking the state indicators of the timed state observer. In the prospective work, we are intrigued to consider the initial state estimation problem in TLPNs under time constraints.

Author Contributions

Conceptualization, T.Q. and Z.L.; writing—original draft preparation, T.Q.; writing—review and editing, Z.L. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the Science Technology Development Fund, MSAR under Grant No. 0029/2023/RIA1.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
DESDiscrete event system
LPNLabeled Petri net
TLPNTime labeled Petri net
MSCGModified state class graph
LSCGLabel-based state class graph
TTSTransition time sequence
TLOTime-labeled observation
RTOReal-time observation
SUVSport utility vehicle

References

  1. Zhang, K.; Giua, A. On detectability of labeled Petri nets and finite automata. Discret. Event Dyn. Syst. 2020, 30, 465–497. [Google Scholar] [CrossRef]
  2. Ru, Y.; Hadjicostis, C.N. Fault diagnosis in discrete event systems modeled by partially observed Petri nets. Discret. Event Dyn. Syst. 2009, 19, 551–575. [Google Scholar] [CrossRef]
  3. Zhang, J.; Chu, Q.; Han, X.; Li, Z.; Chen, Z. Opacity of discrete-event systems under nondeterministic observation mechanism. Asian J. Control 2023, 25, 1577–1590. [Google Scholar] [CrossRef]
  4. Balun, J.; Masopust, T. Verifying weak and strong k-step opacity in discrete-event systems. Automatica 2023, 155, 111153. [Google Scholar] [CrossRef]
  5. Shen, L.; Miao, S.; Lai, A.; Komenda, J. Verification of initial-and-final-state opacity for unambiguous weighted automata. ISA Trans. 2024, 148, 237–246. [Google Scholar] [CrossRef] [PubMed]
  6. Cabasino, M.P.; Hadjicostis, C.N.; Seatzu, C. Marking observer in labeled Petri nets with application to supervisory control. IEEE Trans. Autom. Control 2016, 62, 1813–1824. [Google Scholar] [CrossRef]
  7. Hautus, M.L.J. Strong detectability and observers. Linear Algebra Its Appl. 1983, 50, 353–368. [Google Scholar] [CrossRef]
  8. Shu, S.; Lin, F.; Ying, H. Detectability of discrete event systems. IEEE Trans. Autom. Control 2007, 52, 2356–2359. [Google Scholar] [CrossRef]
  9. Shu, S.; Lin, F. Generalized detectability for discrete event systems. Syst. Control Lett. 2011, 60, 310–317. [Google Scholar] [CrossRef]
  10. Masopust, T.; Yin, X. Deciding detectability for labeled Petri nets. Automatica 2019, 104, 238–241. [Google Scholar] [CrossRef]
  11. Yin, X. Initial-state detectability of stochastic discrete-event systems with probabilistic sensor failures. Automatica 2017, 80, 127–134. [Google Scholar] [CrossRef]
  12. Zhang, K. The problem of determining the weak (periodic) detectability of discrete event systems is PSPACE-complete. Automatica 2017, 81, 217–220. [Google Scholar] [CrossRef]
  13. Tong, Y.; Lan, H.; Guo, J. Verification of detectability in labeled Petri nets. In Proceedings of the 2019 American Control Conference (ACC), Philadelphia, PA, USA, 10–12 July 2019; pp. 5627–5632. [Google Scholar] [CrossRef]
  14. Zhou, J.; Wang, J.; Wang, J. A simulation engine for stochastic timed Petri nets and application to emergency healthcare systems. IEEE/CAA J. Autom. Sin. 2019, 6, 969–980. [Google Scholar] [CrossRef]
  15. Qin, T.; Yin, L.; Wu, N.; Li, Z. Verification of current-state opacity in time labeled Petri nets with its application to smart houses. IEEE Trans. Autom. Sci. Eng. 2024, 21, 7616–7628. [Google Scholar] [CrossRef]
  16. Entezari-Maleki, R.; Etesami, S.E.; Ghorbani, N.; Niaki, A.A.; Sousa, L.; Movaghar, A. Modeling and evaluation of service composition in commercial multiclouds using timed colored Petri nets. IEEE Trans. Syst. Man Cybern. Syst. 2020, 50, 947–961. [Google Scholar] [CrossRef]
  17. Luo, J.; Huang, Y.S.; Weng, Y.S. Design of variable traffic light control systems for preventing two-way grid network traffic jams using timed Petri nets. IEEE Trans. Intell. Transp. Syst. 2019, 21, 3117–3127. [Google Scholar] [CrossRef]
  18. Cao, R.; Hao, L.; Gao, Q.; Deng, J.; Chen, J. Modeling and decision-making methods for a class of cyber–physical systems based on modified hybrid stochastic timed Petri net. IEEE Syst. J. 2020, 14, 4684–4693. [Google Scholar] [CrossRef]
  19. Zhang, Q.; Wu, J.; Miao, D.; Zhao, C.; Zhang, Q. Attentive multi-granularity perception network for person search. Inf. Sci. 2024, 681, 121191. [Google Scholar] [CrossRef]
  20. He, Y.; Qiao, Y.; Wu, N.; Leng, J.; Luo, X. Scheduling analysis of automotive glass manufacturing systems subject to sequence-independent setup time, no-idle machines, and permissive maximum total tardiness constraint. Eng. Appl. Artif. Intell. 2024, 133, 108299. [Google Scholar] [CrossRef]
  21. Zhang, Q.; Miao, D.; Zhang, Q.; Wang, C.; Li, Y.; Zhang, H.; Zhao, C. Learning adaptive shift and task decoupling for discriminative one-step person search. Knowl. Based Syst. 2024, 304, 112483. [Google Scholar] [CrossRef]
  22. Qin, T.; Yin, L.; Liu, G.; Wu, N.; Li, Z. Strong current-state opacity verification of discrete-event systems modeled with time labeled Petri nets. IEEE/CAA J. Autom. Sin. 2025, 12, 54–68. [Google Scholar] [CrossRef]
  23. Basile, F.; Cabasino, M.P.; Seatzu, C. State estimation and fault diagnosis of labeled time Petri net systems with unobservable transitions. IEEE Trans. Autom. Control 2014, 60, 997–1009. [Google Scholar] [CrossRef]
  24. Song, J.; Liu, G. A system fault diagnosis method based on labeled time Petri net with data. IEEE Control Syst. Lett. 2024, 8, 2337–2342. [Google Scholar] [CrossRef]
  25. Hadjidj, R.; Boucheneb, H. Efficient reachability analysis for time Petri nets. IEEE Trans. Comput. 2010, 60, 1085–1099. [Google Scholar] [CrossRef]
  26. Wang, X.; Mahulea, C.; Silva, M. Diagnosis of time Petri nets using fault diagnosis graph. IEEE Trans. Autom. Control 2015, 60, 2321–2335. [Google Scholar] [CrossRef]
  27. Hadjidj, R. An efficient approach for model-checking zeno behaviors in real-time system models based on the time Petri net formalism. IEEE Trans. Autom. Sci. Eng. 2024, 21, 6628–6642. [Google Scholar] [CrossRef]
  28. Pencolé, Y.; Subias, A. Diagnosability of event patterns in safe labeled time Petri nets: A model-checking approach. IEEE Trans. Autom. Sci. Eng. 2021, 19, 1151–1162. [Google Scholar] [CrossRef]
  29. Qin, T.; Zhu, J.; Li, Z.; Hu, X.; Mostafa, A.M. Path detectability verification for time-dependent systems with application to flexible manufacturing systems. Inf. Sci. 2024, 689, 121404. [Google Scholar] [CrossRef]
  30. Dong, W.; Zhang, K.; Li, S.; Yin, X. On the verification of detectability for timed discrete event systems. Automatica 2024, 164, 111644. [Google Scholar] [CrossRef]
  31. Qin, T.; Li, Z. Preliminaries of Time Petri Nets and Time Labeled Petri Nets. Available online: https://github.com/Zhiwuli/File/blob/main/Preliminaries_TPNs_and_TLPNs.pdf (accessed on 21 January 2025).
  32. Li, L.; Li, Y.; Liu, B.; Wu, W. Least-cost transition sequence estimation in labelled time Petri net systems with unobservable transitions. Int. J. Control 2023, 96, 2976–2989. [Google Scholar] [CrossRef]
Figure 1. TLPN.
Figure 1. TLPN.
Mathematics 13 00563 g001
Figure 2. The LSCG with respect to O of the TLPN in Figure 1.
Figure 2. The LSCG with respect to O of the TLPN in Figure 1.
Mathematics 13 00563 g002
Figure 3. Flowchart of verifying weak detectability in a TLPN.
Figure 3. Flowchart of verifying weak detectability in a TLPN.
Mathematics 13 00563 g003
Figure 4. The timed state observer of the LSCG with respect to O in Example 4.
Figure 4. The timed state observer of the LSCG with respect to O in Example 4.
Mathematics 13 00563 g004
Figure 5. Intelligent garage system.
Figure 5. Intelligent garage system.
Mathematics 13 00563 g005
Figure 6. TLPN model of an intelligent garage system.
Figure 6. TLPN model of an intelligent garage system.
Mathematics 13 00563 g006
Figure 7. The timed state observer of the LSCG with respect to O in the intelligent garage system.
Figure 7. The timed state observer of the LSCG with respect to O in the intelligent garage system.
Mathematics 13 00563 g007
Table 1. Nodes of the RCSG shown in Figure 2.
Table 1. Nodes of the RCSG shown in Figure 2.
NodesMarkingsSet of Inequalities
q h , 0 [ 1 0 0 0 0 0 0 ] T { a 1 φ 1 b 1 ,
a 2 φ 2 b 2 }
q h , 1 [ 0 1 0 0 0 0 0 ] T { a 3 φ 3 b 3 }
q h , 2 [ 0 0 1 0 0 0 0 ] T { a 4 φ 4 b 4 }
q h , 3 [ 0 0 0 1 1 0 0 ] T { a 5 φ 5 b 5 ,
a 6 φ 6 b 6 }
q h , 4 [ 0 0 0 0 1 0 0 ] T { a 6 φ 6 b 6 }
q h , 5 [ 0 0 0 0 0 1 0 ] T { a 7 φ 7 b 7 }
q h , 6 [ 0 0 0 0 0 0 1 ] T          ∅
q h , 7 [ 0 0 0 1 0 0 1 ] T          ∅
Table 2. Firing time units of edges of the LSCG.
Table 2. Firing time units of edges of the LSCG.
Firing Time UnitsTransitionsLabelsTime Intervals
δ 1 0 t 1 a[2, 4]
δ 2 0 t 2 a[3, 4]
δ 3 1 t 3 ε [4, 8]
δ 4 2 t 4 ε [4, 7]
δ 5 3 t 5 b[2, 4]
δ 6 3 t 6 b[3, 4]
δ 6 4 t 6 b[3, 4]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Qin, T.; Li, Z. Verification of Detectability for Time Labeled Petri Net Systems with Unobservable Transitions. Mathematics 2025, 13, 563. https://doi.org/10.3390/math13040563

AMA Style

Qin T, Li Z. Verification of Detectability for Time Labeled Petri Net Systems with Unobservable Transitions. Mathematics. 2025; 13(4):563. https://doi.org/10.3390/math13040563

Chicago/Turabian Style

Qin, Tao, and Zhiwu Li. 2025. "Verification of Detectability for Time Labeled Petri Net Systems with Unobservable Transitions" Mathematics 13, no. 4: 563. https://doi.org/10.3390/math13040563

APA Style

Qin, T., & Li, Z. (2025). Verification of Detectability for Time Labeled Petri Net Systems with Unobservable Transitions. Mathematics, 13(4), 563. https://doi.org/10.3390/math13040563

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop