원시데이터 수집 시스템
선정목록으로

Diagnosis of hybrid systems through bond graph, observers and timed automata

간접 관련 모빌리티 소재 · (4) 카시트 모듈 (7) MEA(막전극접합체)

기본 정보

저자
  1. Lotfi Mhamdi — Laboratory of Automatic Signal and Image Processing (LARATSI), University of Kairouan, Tunisia,
  2. Mohammed Said Achbi — Laboratoire d'Automatique et Informatique de Guelma (LAIG lab.), Université 8 Mai 1945 Guelma, BP 401, Guelma 24000, Algérie
  3. Hedi Dhouibi — Laboratory of Automatic Signal and Image Processing (LARATSI), University of Kairouan, Tunisia,
  4. Sihem Kechida — Laboratoire d'Automatique et Informatique de Guelma (LAIG lab.), Université 8 Mai 1945 Guelma, BP 401, Guelma 24000, Algérie
DOI
10.29354/diag/126444
저널
Diagnostyka
발행년도
2020
발행기관
Polskie Towarzystwa Diagnostyki Technicznej
피인용수
3
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.29354/diag/126444
토픽
Analytical Chemistry and Sensors
OpenAlex ID
W3081290188

평가 내용

관련도
간접 관련
사업분야
모빌리티 소재 · (4) 카시트 모듈
부 분야
(7) MEA(막전극접합체)
R&D 측면
분석·모델링
확신도
0.60
근거 용어
Fault Diagnosis, Hybrid Systems, Bond Graph, Observer, Timed Automata
판단 근거
이 논문은 하이브리드 시스템의 결함 진단(Fault Diagnosis)을 위한 수학적 모델링 및 분석 기법을 다루고 있습니다. 이는 코오롱인더스트리의 수소연료전지(MEA, 가습기 등)나 자동차 부품 시스템의 신뢰성 및 유지보수 알고리즘 개발에 응용될 수 있는 제어/진단 이론입니다.
R&D 활용 포인트
수소연료전지 스택이나 자동차 모듈 등 복잡한 시스템의 상태 모니터링 및 고장 예측/진단(PHM) 알고리즘 설계에 활용 가능합니다.
평가 입력
본문 57,686자 중 30,032자 발췌

초록

1. Branicky MS. Studies in hybrid systems: Modeling, Analysis and Control. Ph.D thesis, Department of Electrical Engineering and Computer Science – MIT Cambridge. 1995. Google Scholar

본문 57,686자

본문 펼치기
Article citation info: 113 Mhamdi L, Achbi MS, Dhouibi H, Kechida S. Diagnosis of hybrid systems through bond graph, observers and timed automata _._ Diagnostyka. <u>[2020;21(3):113-125. https://doi.org/10.29354/diag/126444](https://doi.org/10.29354/diag/126444)</u> DIAGNOSTYKA, 2020, Vol. 21, No. 3 ISSN 1641-6414 e-ISSN 2449-5220 DOI : 10.29354/diag/126444 DIAGNOSIS OF HYBRID SYSTEMS THROUGH BOND GRAPH, OBSERVERS AND TIMED AUTOMATA Lotfi MHAMDI <sup>1</sup> , Mohammed Said ACHBI <sup>2</sup> , Hedi DHOUIBI <sup>1</sup> , Sihem KECHIDA <sup>2</sup> 1 Laboratory of Automatic Signal and Image Processing (LARATSI), [University of Kairouan, Tunisia, lotfienim@yahoo.fr, hedi.dhouibi@laposte.net](mailto:lotfienim@yahoo.fr) 2 Laboratoire d’Automatique et Informatique de Guelma (LAIG lab.), Université 8 Mai 1945 Guelma, BP 401, Guelma 24000, Algérie <u>achbi.mohammedsaid@univ-guelma.dz, kechida.sihem@univ-guelma.dz</u> Abstract Despite technological advances and progress in industrial systems, the fault diagnosis of a system remains a very important task. In fact an effective diagnosis contributes not only to improved reliability but also to a decrease in maintenance costs. This paper presents an approach to a diagnosis of hybrid systems thanks to the use of Bond Graphs, Observer and Timed Automata. Dynamic models (in normal and failing mode) are generated by an observer based methods as well as through state equations generated by the Bond Graphs model. The procedure of fault localization through a method based on the observer does not allow locating faults with the same signature of failure. Thus the diagnosis technique for the localization of these defects will be based on the time analysis using Timed Automata. The proposed approach is then validated by simulation tests in a two tanks hydraulic system. Keywords: Bond Graph, Observer, Timed Automata, Fault Diagnosis, Fault Localization. 1. INTRODUCTION Improvement in the dependability of systems rests essentially on algorithms of detection and isolation of defects. These algorithms mainly consist in comparing the actual behavior of a system with a behavior of reference systems describing normal functioning (in order to detect defects) or describing different kinds of defects (In order to analyze and isolate faults), while reducing false alarms, non-detections as well as delays in detection of defects. In surveillance approaches based on quantitative models performances of detection procedures and localization of failures strongly depend on the used model. Once the last is generated, failure indicators can be deducted. Obtaining such model is a complex and difficult task more particularly for the process engineering systems because of their diversity and coupling energies which characterize them. Classical techniques for detection, localization and diagnosis show their limits, especially for systems which become increasingly complex, which Hybrid Dynamic Systems (HDS). HDSs [1, 33] are systems composed of dynamics of a continuous and discrete nature interacting between them; continuous dynamics is represented by differential equations and discrete dynamics by state transitions. For HDS modeling, there are several approaches. The common point between these approaches is that continuous evolution is affected by discrete events. The HDS study focuses on problem classes that could not be treated with traditional approaches based on homogeneous modelling. Complex systems are designed by incorporating differential equations to model continuous behavior, and discrete event representations to model the instantaneous state change in response to events. Among the HDS modeling tools, we find: hybrid automata [2], Hybrid Petri nets [3, 32], and hybrid bond-graph [4]. To obtain good performance in terms of coverage and high quality of isolation, research is directed towards coupling approaches and using their complementarity. The coupling of continuous/discrete approaches must achieve good performance. The modeling approach to which we have been interested in our work considers the hybrid system model, which is based on the interaction of two sub-models, one for eventaspects, based on timed automata, and the other, formalized by state equations (obtained through bond graphs) for the continuous aspects. The objective of this paper is the modeling of hybrid dynamic systems using a mixed approach (the approach that combines the continuous systems approach and the Discrete Event Systems approach), and the application of the generation technique Residuals and generation of the timed model for the monitoring of these systems. In this context, this paper proposes a dynamic model (in normal mode and in fault mode) using an observerbased method, where the equations are obtained 114 DIAGNOSTYKA, Vol. 21, No. 3 (2020) <u>Mhamdi L, Achbi MS, Dhouibi H, Kechida S.:</u> _<u>Diagnosis of hybrid systems through bond graph, observers …</u>_ thanks to a bond graph, well known in the continuous domain. For a complex system the bond graphs allow modeling of physical processes in all aspects (electrical, mechanical ...) [5, 6, 34]. The observer theory is used for detection and localization of single part failures. As shown in the flowchart of Figure 1, this model is coupled to the timed automata (TA). TA [7, 8, 35], commonly used in the field of discrete event systems [9, 10, 36], allows to take into account the temporal aspects and to follow the dynamic evolution of the system as well as the propagation effects of the defects. The diagnoser built by automaton can refine the location of the fault [11]. Fig. 1. Flowchart of the proposed approach. The Bond Graphs modeling [12, 13] as a unified modeling approach for different physical domains is especially suitable for development of multienergy systems models [14]. In more detail the use of the Bond Graphs for the conception of a generator of formal dynamic models of the energy processes is compulsory in order to monitor them [15,16]. These models generated under formal form will be used in order to generate dynamic equations of each component. From these equations, it is easy to determine equations of processes state and to monitor them by the method based on the observers since it is robust and efficient compared to Bond Graphs models. The principle of model-based diagnosis is to compare the expected behavior of the system, given by a model, with its actual behavior, a defect is detected if the residuals, generated by the observer model, are different from zero and if one event does not come on the desired date. When a fault is detected, it is a matter of locating it. This location is made from the signature matrix and from time identification. ● _<u>Signature matrix:</u>_ the signature matrix combines sensitivity and robustness information for the residuals. The dimensions of the signature matrix are determined from the number of sensors or actuators and the number of residues generated by the observer model. - _<u>Temporal identification:</u>_ From the time of detection of a fault and the various fault modes identified in FMEA (Failure Modes and Effects Analysis), it is necessary to know how a fault spreads in the system and how it will change the appearance of future events. In order to present our methodology for the diagnosis, the paper is organized as follows: Section 2 presents a proposed approach for the fault diagnosis on a hybrid model as soon as possible. An academic example in Section 3 has been used to illustrate our approach. Finally, a conclusion is presented with some perspectives. 2. DIAGNOSTIC APPROACH BASED ON HYBRID MODEL Many industrial processes are hybrid in nature, which means that their behavior results from the evolution and interaction of continuous variables and discrete variables. For this type of system, little work has been devoted to detecting, locating or diagnosing failures [17]. The literature in this field is abundant and numerous solutions have been proposed for continuous and discrete systems, linear and nonlinear. The mixed approach proposed in this paper is based on a combination of two models (continuous and discrete). The continuous component is described by a set of differential equations obtained by bond graph and the discrete component by a finite state automaton. This approach evolves through an alternation of continuous steps, where state variables and time evolve continuously, and discrete steps where several discrete and instantaneous transitions can be crossed. The diagnostic method combines the advantages of the three approaches (Bond Graph, Observer and Timed Automata) for best performance, particularly in the fault locating phase. Each step is described in a conventional form. For a complex system, the Bond Graph allows the modeling of multi-energy physical processes (electrical, mechanical, thermal etc). The observerbased approach is used to generate fault indicators. The fault detection algorithm consists of analyzing these residuals. The location is made from the signature matrix and from time identification. 2.1. Continuous model 2.1.1. Bond graph modeling The Bond Graph is a multi-physical modeling tool based on analogy and power exchange capable of modeling systems with a single language independently of their physical nature. Several works have been devoted to the theory of Bond Graph [18, 19]. The Bond Graph methodology is based on the graphical representation of the power exchanges within a system to be modeled and the analogy between the variables of different physical domains. The power exchange between two DIAGNOSTYKA, Vol. 21, No. 3 (2020) 115 <u>Mhamdi L, Achbi MS, Dhouibi H, Kechida S.:</u> _<u>Diagnosis of hybrid systems through bond graph, observers …</u>_ elements of a system is represented by a half-arrow (or by link), Figure 2, which is characterized by two variables: effort variable " _e_ " and flow variable " _f_ ", called "Power variables". The product of these two variables represents the instantaneous power exchanged by this link. The direction of the half arrow indicates the direction of the power transfer. In addition to this energy aspect, the Bond Graph tool has important causal properties for the modeling of complex systems. Causality, represented on the bond graph by a "causal trait" placed perpendicular to the link, makes it possible to highlight the relations of "cause and effect", or "input - output" or "given - unknown". This is one of the major advantages of the Bond Graph technique to systematically write state equations. The convention is as follows: the causal trait is placed near the element for which the effort is a given, and away from the element for which the flux is known (Figure 2). Fig. 2. Representation of a causal bond graph element. The Bond Graph [20, 21] is a physical model where parameters are explicitly represented by Bond Graph elements. The sources of effort, _Se_ and flux, _Sf_ are active elements which provide power, the elements of resistive type _R_, capacitive _C_, inertial _I_ are passive elements which transform the power supplied to them into dissipated energy (elements _R_ ) or stored (elements _C_ and _I_ ), the elements 0, 1, TF, GY are junction elements which are conservative of power and the detectors of effort, _De_ and flux, _Df_ represent sensors of effort and flux supposed ideal, and therefore not consuming power. The power exchange in bond graph is represented by a half arrow while the exchange of information (from a sensor or a controller) is modeled by an arrow. A bond graph model is structurally observable in state if and only if there is a causal path between all the dynamic elements _I_ and _C_ and a detector _De_ or _Df_ [22] as shown in Figure 3. Fig. 3. The structure of a bond graph model. In bond graph, the state variables _x_ are the energy variables: the generalized displacement ( _q_ ) and the pulse ( _p_ ) associated with the elements _I_ and _C_, the inputs _u_ are the sources of effort and flux and the measurements _y_ are the effort and flux detectors. 2.1.2. Observer-based fault detection and location 2.1.2.1. Principle of diagnosis using an observer approach Our goal is to study the problem of faults detection and localization for systems with faults and disturbances. This problem has received considerable attention in the past ten years [23, 24, 25, and 26]. We consider a model-based approach for fault detection and location where two steps are distinguishable: generation of residuals sensitive to faults and location of faults. We design a set of observer-based residuals; in such way that the faults are always detected and isolated despite disturbances and noises. The representation of a control loop with different sources of defaults is given by Figure 4. Fig. 4. Control loop with different default sources. The diagnosis using the observer state estimation became a method most widely used in the industry [27]. The principle of this method is given in Figure 5. Fig. 5. Principle of Diagnosis by observer. 2.1.2.2. The observer principle Suppose we have a representation of the process as a linear dynamic model with _m_ inputs, denoted _u,_ and _p_ measured outputs, denoted _y_ . With the set of _n_ variables describing the state When the system is linear, the equation of state and measurement have the following form: 116 DIAGNOSTYKA, Vol. 21, No. 3 (2020) <u>Mhamdi L, Achbi MS, Dhouibi H, Kechida S.:</u> _<u>Diagnosis of hybrid systems through bond graph, observers …</u>_  _<u>dx</u>_  _A_ ( _t_ ) _x_ ( _t_ )  _B_  _dt_   _y_ ( _t_ )  _C_ ( _t_ ) _x_ ( _t_ )    _x_ (0)  _x_ 0  _<u>dx</u>_  _A_ ( _t_ ) _x_ ( _t_ )  _B_ ( _t_ ) _u_ ( _t_ ) _dt_ _y_ ( _t_ )  _C_ ( _t_ ) _x_ ( _t_ )  _D_ ( _t_ ) _u_ ( _t_ _x_ (0)  _x_ 0 ( _t_ ) _x_ ( _t_ )  _B_ ( _t_ ) _u_ ( _t_ ) _y_ ( _t_ )  _C_ ( _t_ ) _x_ ( _t_ )  _D_ ( _t_ ) _u_ ( _t_ ) _x_ (0)  _x_ 0 selected so that _(A − LC)_ is a stable matrix [29]. The observer described by equation (4) is illustrated (1) in Figure 6. 0 In which: # - A ( t ) is the evolution matrix  n  n  - B ( t ) is the control matrix  n  m  - C ( t ) is the observation matrix  l  n  - D ( t ) is the direct transmission matrix  l  m  _<u>dx</u>_ We note: _x_ ( _t_ )  _dt_ The evolution of dynamic system subjected to inputs _u_ ( _t_ ) and delivering information y( _t_ ) is entirely characterized by a vector x( _t_ ) of size _n_ linked to the input and output by the relation:  _x_  _Ax_ ( _t_ )  _Bu_ ( _t_ )   _x_   _A_  _BK_  _x_ ( _t_ )   _y_ ( _t_ )  _Cx_ ( _t_ )     _y_ ( _t_ )  _Cx_ ( _t_ )  _u_ ( _t_ )  _Kx_ ( _t_ )  _v_ ( _t_ ) _x_  _Ax_ ( _t_ )  _Bu_ ( _t_ )  _x_   _A_  _BK_  _x_ ( _t_ )  _Bv_ ( _t_ _y_ ( _t_ )  _Cx_ ( _t_ )    _Ax_ ( _t_ )  _Bu_ ( _t_ )  _x_   _A_  _BK_  _x_ ( _t_ )  _Bv_ ( _t_ ) ( _t_ )  _Cx_ ( _t_ )   Fig. 6. The structure of observer. If the system (2) is provided with the state feedback, _u(t) = -K x(t) + v(t)_, the closed loop system is written as follows:  _x_ ( _t_ )    _y_ ( _t_ )   _x_ (0)    _x_ ( _t_ ), _u_ ( _t_ ), _t_   _x_ ( _t_ ), _u_ ( _t_ ), _t_  _x_ ( _t_ )  _f_  _x_ ( _t_ ), _u_ ( _t_ ), _t_ _y_ ( _t_ )  _h_  _x_ ( _t_ ), _u_ ( _t_ ), _t_ ( _t_ )  _f_  _x_ ( _t_ ), _u_ ( _t_ ), _t_  _y_ ( _t_ )  _Cx_ ( _t_ ) _u_ ( _t_ )  _Kx_ ( _t_ )  _v_ ( _t_ )  _y_ ( _t_ )  _Cx_ ( _t_ ) ( _t_ )  _Kx_ ( _t_ )  _v_ ( _t_ ) ( _t_ )  _h_  _x_ ( _t_ ), _u_ ( _t_ ), (2) _x_ (0)  _x_ 0 (0) 0 With:  _x_ 1( _t_ )   _u_ 1( _t_ )   _y_ 1( _t_ )    _x_ 2 ( _t_ )  ; u( _t_ )   _u_ 2 ( _t_ )  _and_ ( _y_ _t_ )   _y_ 2 ( _t_ )               _xn_ ( _t_ )   _um_ ( _t_ )   _yn_ ( _t_ )  (5) Where _v(t)_ is input for the closed loop system and since it has been assumed the pair ( _A_, _B_ ) is controllable, the state feedback gain _K_ can be selected so that _(A − BK)_ is a stable matrix [29]. By realizing a loop-back ( _u_ _t_ )  _Kx_ ( _t_ )  _v_ ( _t_ ), The dynamics of the closed loop system is written as follows: _x_ 1( _t_ )   _u_ 1( _t_ )   _y_ 1( _t_ 1( _t_ )   _u_ 1( _t_ )   _y_ 1( _t_ ) 1   1   1 2 ( _t_ )    _u_ 2 ( _t_ )    _y_ 2 _x_ ( _t_ )   _x_ 2 ( _t_ )  ; u( _t_ )   _u_ 2 ( _t_ )  _and_ ( _y_ _t_ )   _y_ 2 ( _t_ ( _t_ )   _x_ 2 ( _t_ )  ; u( _t_ )   _u_ 2 ( _t_ )  _and_ ( _y_ _t_ )   _y_ 2 ( _t_ ) _xn_ ( _t_ )   _um_ ( _t_ )   _yn_ ( _t_ _n_ ( _t_ )   _um_ ( _t_ )   _yn_ ( _t_ ) Where _x_ ( _t_ )  _Rn_ is the state vector, _u_ ( _t_ )  _Rm_ is the _x_ ( ) _t_  _A x_ . ( ) _t_  _B_ .(  _Kx_ ( ) _t_  _v_ _t_ ( ) _t_  _A x_ . ( ) _t_  _B_ .(  _Kx_ ( ) _t_  _v_ ( )) _t_ input vector and _y_ ( _t_ )  _R_ _p_ is the output vector. Note that matrix _A_, _B_, and _C_ correspond to the state-space description of the linear time-invariant system and they have appropriate dimensions with those of the vectors _x (t)_, _u (t)_ and _y (t)_ [28]. To diagnose the fault, the following observer is constructed:  _x_ ( ) _t_  _A x_ . ( ) _t_  _B_ .(  _Kx_ ( ) _t_  _v_ ( )) _t_   _x_  _t_  ( _A_  _LC_ ) _x_  _t_  _B_ .(  _Kx_ ( ) _t_  _v_ ( )) _t_   _t_  ( _A_  _LC_ ) _x_  _t_ _x_  _t_  ( _A_  _LC_ ) _x_  _t_  _B_ .(  _Kx_ ( ) _t_  _v_ ( )) _t_  _LCx_ ( ) _t_ ( _A_  _LC_ ) _x_  _t_  _B_ .(  _Kx_ ( ) _t_  _v_ ( )) _t_  _LCx_ ( ) _t_ (6) The equation of state of the global system (6) is illustrated in Figure 7.  _x_ _A_ ( _t_ ) _x_ ( _t_ )  _B_ (   _y_ ( _t_ )  _C_ ( _t_ ) _x_ ( _t_ )    _x_ (0)  _x_ 0  _x_ _A_ ( _t_ ) _x_ ( _t_ )  _B_ ( _t_ ) _u_ ( _t_ ) _y_ ( _t_ )  _C_ ( _t_ ) _x_ ( _t_ )  _D_ ( _t_ ) _u_ ( _t_ _x_ (0)  _x_ 0 _A_ ( _t_ ) _x_ ( _t_ )  _B_ ( _t_ ) _u_ ( _t_ ) ( _t_ )  _C_ ( _t_ ) _x_ ( _t_ )  _D_ ( _t_ ) _u_ ( _t_ ) (0)  _x_ 0 (3) 0 Where: - _x_ ( _t_ )  _Rn_ <sup>is the estimated state vector.</sup> _x_ ( _t_ )  _Rn_ _y_ ( _t_ )  _R_ _p_ - _y_ ( _t_ )  _R_ _p_ is the estimated output vector. This system (3) can be written as: _x_  _t_  ( _A_  _LC_ ) _x_  _t_  _Bu_  _t_  _Ly_  _t_ (4) Since it has been assumed that the pair ( _A_, _C_ ) is observable, the observer gain matrix _L_ can be Fig. 7. Structure of control by state feedback with observer. The fault detection step is very important in a system diagnosis. If this step is not realized correctly, the faults can be badly or not detected. False alarms can also appear. Detection efficiency passes by its robustness against model uncertainties. The fault location is studied using the fault signature matrix. The dimensions of the signature DIAGNOSTYKA, Vol. 21, No. 3 (2020) 117 <u>Mhamdi L, Achbi MS, Dhouibi H, Kechida S.:</u> _<u>Diagnosis of hybrid systems through bond graph, observers …</u>_ matrix are determined from the number of sensors or actuators and the number of residues generated by the observer model. It is a binary matrix whose column _j_ corresponds to the defect _fj_ and the line _i_ corresponds to the residue _ri_ . ?= ( ?1 ?2 ⋮ ?? ) = ( 1 0 ⋯ 0 0 1 ⋱ ⋮ ⋮ ⋱ ⋱ 0 0 ⋯ 0 1 ) ( ?1 ?2 ⋮ ?? ) (7) guard determines the possible instants to cross the arcs; an arc of the automata cannot be crossed until after verification of its guard. Thus the guard corresponding to the output transition of the vertex S0 such that a ^ x2 = 2, this implies that the arc can only be crossed if the event "a" has occurred and the clock x2 takes the value 2 the assignment corresponding to this transition is x1: = 0, this implies that the crossing of this arc causes the zeroing of the clock x1. The assignment function allows the evolution of the parameters of the timed automata during transitions of the automata. During initialization of the model the initialization of the states and parameters of the model is realized by an initiating arc entering in the state S0 (in our case x1: = 0 and x2: = 0). Fig. 8. Example of Timed Automata. Our objective, thanks to the use of timed automata, is to build a diagnosis system called diagnostician which allows to analyze, detect and locate a fault in a system. The construction of the diagnostician is based on a dynamic model representing different functioning modes of the monitored system (normal and failing). The dynamic model is neither more nor less a copy of a control-command program of the system to diagnose with added time information such as the duration of different steps of functioning, the execution order of tasks and the date of event appearance. 3. APPLICATION EXAMPLE 3.1. Description of the system We consider as example a two tanks hydraulic system, Figure 9. To fill the first tank T1of section S1 (S1= 0.0154 m <sup>2</sup> ) with a volume flow qi and height h1 which is measured by the level sensor L1. At the exit of this tank a valve V1 (of hydraulic resistance RV1), always opens to allow the fluid to pass in to a second tank T2, of section S2 (S2= 0.0154 m <sup>2</sup> ) and height h2 which is measured by the level sensor L2. The outlet flow of this tank is authorized by a valve V2 of hydraulic resistance RV2. Two overflow sensors: L3 for tank T1 and L4 for tank T2. Unfortunately this method does not allow locating faults with the same signature. To work around this problem, we use Timed Automata. 2.2. Discrete event model: Fault diagnosis through the Timed Automata A timed automata (TA) is defined as a tool or theory for modeling and verification of real time systems. In the original formalism of the tool [30, 01], a timed automata is a finite state extended with a set of real-valued modeling clocks. A finite automata which consider us a graph containing a finite set of nodes and a finite set of labeled edges extended with real-valued variables. In this work, we shall focus on timed automata us a tool used to generate a model for the analysis of a process and especially for the verification of the process operation, detection and isolation of failures. The clocks of a timed automata evolve continuously over time. Thus, each transition contains a guard (on the value of the clocks) that describes when the transition will be executable and a set of clocks that must be reset to zero during transition. Each control state contains an invariant (a constraint on the clocks) that can limit the waiting time in the state and therefore force the execution of an action transition. Let’s consider the example in Figure 8. S0 is an initial state of this automata. The qualitative parameters represent the sequence of events (a and b) while the quantitative parameters represent the temporal parameters (x1 and x2). The invariants x2 ≤ 2 of S0 and x1 ≤ 3 of S1 indicate, respectively, that we can stay in S0 as long as x2 is less than 2 and that we can stay in S1 as long as x1 is less than 3 but not beyond. An invariant is associated with each state; it allows to represent the conditions to be satisfied to remain in the current state. The automata can remain in a state as long as the condition of the invariant is satisfied. As long as the controller is in a state Si, the clock xi is continuously incremented. The continuous evolution of the clocks of the automata of figure 8 is described by the relation _x_  1 _x_  1, the system can comprise more than one clock as a function of the modeling needs, in our example it can be seen that there are two clocks called x1 And x2. All clocks are synchronized with the same increment step. Each transition of the automata is linked by an event called guard. The 118 DIAGNOSTYKA, Vol. 21, No. 3 (2020) <u>Mhamdi L, Achbi MS, Dhouibi H, Kechida S.:</u> _<u>Diagnosis of hybrid systems through bond graph, observers …</u>_ The event variables (discrete) V1, V2, L1, L2, L3 and L4 are of Boolean nature, that is to say that the possible values of these variables are either 1 or 0: Vi = {0,1}, Lj = {0,1} with: i = 1,2 and j = 1,2. The objective is to maintain the liquid level in the two tanks on a well-defined level: Using the bond graph representation system state equations can be directly deducted from the bond graph model of the system. In Bond Graph, the levels in the two tanks, h1 and h2, represent the state variables x = [h1, h2], the input _u_ is the flux source: _u_ = [qi] and the measurements _y_ are the effort detectors: _y_ = [L1, L2]. Choose as the first equation the one corresponding to the junction 01. We therefore have:  _h_ 1  0.15 _m_  _if_ _h_ 1  0.15 _m then L_ 1  1  _h_ 2  0.10 _m_  _if_ _h_ 2  0.10 _m then L_ 2  _h_ 1  0.15 _m_  _if_ _h_ 1  0.15 _m then L_ 1 _h_ 2  0.10 _m_  _if_ _h_ 2  0.10 _m then L_ 2 0.15 _m_  _if_ _h_ 1  0.15 _m then L_ 1  1 1 1 1 2  0.10 _m_  _if_ _h_ 2  0.10 _m then L_ 2 0.10 _m_  _if_ _h_ 2  0.10 _m then L_ 2  1 _f_ 5  _f_ 1  _f_ 6  0 (8) In this equation the flow variables ( _f5, f1, f6_ ) can be determined by following the causal paths on the bond graph model of figure 11. While _f5_ variable is calculated from the constitutive relation of _CT1_ element: _<u>d</u>_ _f_ 5  _CT_ 1. _dt_ (e5 ) (9) Fig. 9. Two tanks hydraulic system. Figure 10 shows the measurements of the levels h1 and h2 in normal operation. Fig. 10. The level measurements in the normal operation (the continuous evolution). 3.2. Generating a state representation The bond graph model in derivative causality of the physical system of Figure 9 is shown in Figure 11. Fig. 11. Two tank system model by bond graph in derivative causality. _<u><mark>Nomenclature:</mark></u>_ <mark>1</mark> : The flux sources Sf models a volume flow qi, 2: The element _C_ models a storage tank T1, 3: The effort detector _De_ models a level sensor L1, 4: The element R models a valve V1, 5: The element _C_ models a storage tank T _2_, 6: The effort detector _De_ models a level sensor L2, 7: The element R models a valve V2 . Where _CT1_ parameter is given by the following relation: _CT_ 1   _<u>S</u>_ <u>1</u> _g_ (10) With _S1_ the section of the first tank, _g_ the gravity constant and  the density of the fluid are used, and _e5_ is determined by following the causal path _De:L1_ _→ e4 → e3 → e2 → e5_  _e5 = e2 =_  _gL1_ . We therefore have: _f_ 5  _<u>S</u>_ <u>1</u> . _<u>d</u>_ ( _gL_ 1)  _g_ _dt_ <sup></sup> (11)  _f_ 5  1 _<u>dL</u>_ <u>1</u> _S_ _dt_ (12) The variable _f1_ corresponds to the source of flow ( _Sf: qi_ ). We can thus write:  _f_ 1  _qi_ (13) The variable _f6_ can be obtained from the constitutive relation of the element _R_ : _f_ 6  _f_ 7  _Re_ <u>7</u> _v_ 6  _f_ 7  _R_ <u>7</u> _v_ 1, _Rv_ 1 (14) The variable _e7_ is calculated from the equation of junction 11: _e_ 7  _e_ 6  _e_ 8 (15) The causal path _De: L1 → e4 → e3 → e2 → e6_ allows calculating the variable _e6_ : _v_ 1 _e_ 7  _e_ 6  _e_ 8  _e_ 6  _e_ 2   _gL_ 1 6 2 1 (16) And _e8_ is determined by following the causal path _De: L2 → e12 → e11 → e10 → e8_  _e_ 8  _e_ 10   _gL_ 2 (17) We therefore have:  _e_ 7   _g_ ( _L_ 1  _L_ 2 ) (18) We can therefore write:  _e_ 8  _e_ 10   _gL_ 2  _e_ 7   _g_ ( _L_ 1  _L_ 2 )  _f_ 6  <u></u> _<u>g</u>_ <u>(</u> _<u>LR</u>_ <u>1</u> _v_ 1 <u></u> _<u>L</u>_ <u>2</u> <u>(</u> _<u>L</u>_ <u>1</u> <u></u> _<u>L</u>_ <u>2</u> <u>)</u> (19) 6  _R_ <u>1</u> _v_ 1 <u>2</u> _v_ 1 DIAGNOSTYKA, Vol. 21, No. 3 (2020) 119 <u>Mhamdi L, Achbi MS, Dhouibi H, Kechida S.:</u> _<u>Diagnosis of hybrid systems through bond graph, observers …</u>_ The first equation is obtained as follows: The state equation of a two-tank system, figure 9, is obtained from equations (21) and (32) generated by the bond graph model in Figure 11.  _S_ 1 _<u>dLdt</u>_ <u>1</u>  _qi_  <u></u> _<u>g</u>_ <u>(</u> _<u>LR</u>_ <u>1</u> _v_ 1 <u></u> _<u>L</u>_ <u>2</u> <u>)</u> (20) <u>(</u> _<u>L</u>_ <u>1</u> <u></u> _<u>L</u>_ <u>2</u> <u>)</u> 1 _dt_ <u>1</u>  _qi_  _R_ <u>1</u> _v_ 1 <u>2</u> _i_ _v_ Knowing that h1 = L1, it is easy to deduce the first state equation:  _<u>dhdt</u>_ <u>1</u>  _S_ <u>11</u> _qi_  _S_ <u></u> 1. _Rgv_ 1 ( _h_ 1  _h_ 2 )    _<u>dhdt</u>_ <u>2</u>  _S_ <u></u> 2. _Rgv_ 1 ( _h_ 1 - _h_ 2 )  _S_ <u></u> 2 _<u>gh</u>_ . _Rv_ <u>22</u> _<u>dhdt</u>_ <u>1</u>  _S_ <u>11</u> _qi_  _S_ <u></u> 1. _Rgv_ ( _h_ 1  _h_ 2 <u>1</u>  _S_ 1 _qi_  _S_ 1. _Rv_ 1 ( _h_ 1  _h_ 2 ) <u>1</u> <u></u> _<u>g</u>_ _S_ 1 _qi_  _S_ 1. _Rv_ ( _h_ 1  _h_ 2 ) _i_ <u></u> <u>1</u> <u></u> _<u>g</u>_  _qi_  ( _h_ 1  <u></u> _<u>g</u>_ <u></u> _<u>dhdt</u>_ <u>1</u>  _S_ <u>11</u> _qi_  _S_ <u></u> 1. _Rgv_ ( _h_ 1  _h_ 2 <u>1</u> <u></u> _<u>g</u>_ _S_ 1 _qi_  _S_ 1. _Rv_ ( _h_ 1  _h_ 2 ) _<u>dhdt</u>_ <u>2</u>  _S_ <u></u> 2. _Rgv_ ( _h_ 1 - _h_ 2 )  _S_ <u></u> 2 _<u>gh</u>_ . _Rv_ <u>2</u>  _S_ 2. _Rv_ 1 ( _h_ 1 - _h_ 2 )  _S_ 2. _Rv_ <u>22</u> 2. _Rv_ ( _h_ 1 - _h_ 2 )  _S_ 2. <u>1</u>  _S_ 1 _qi_  _S_ 1. _Rv_ 1 ( _h_ 1  _h_ 2 _v_ 1 1 (33) _v_ 1 By proceeding in the same way as for equation 1 1 _v_ 1 (21)  _dt_ <u>2</u>  _S_ 2. _Rv_ 1 ( _h_ 1 - _h_ 2 )  _S_ 2. _Rv_ <u>22</u> (33) (8), a second one can be generated from the equation of the junction 03. We can thus write _:_  _h_ 1  <u>1</u> _qi_  _<u>R</u>_ <u>1</u> ( _h_ 1  _h_ 2 ); _R_ 1  <u></u> _<u>g</u>_  1 _v_ 1 2 _v_ _v_ 1 <u></u> _<u>g</u>_ <u>1</u> _qi_  _<u>R</u>_ <u>1</u> ( _h_ 1  _h_ 2 ); _f_ 9  _f_ 8  _f_ 13  0  _h_ 1  _S_ <u>11</u> _qi_  _<u>RS</u>_ 11 ( _h_ 1  _h_ 2 ); _R_ 1  <u></u> _Rvg_ 1   _h_ 2  _SR_ 21 ( _h_ 1 - _h_ 2 )  _<u>RS</u>_ 22 _h_ 2; _R_ 2  <u></u> _Rvg_ 2 _h_ 1  _S_ 1 _qi_  _S_ 11 ( _h_ 1  _h_ 2 ); _R_ 1  _Rv_ 1 _i_ 9 8 13 (22)  constitutive relation of the elementThe variable _f9_ can be determined by the _CT2_ as follows:  _h_ 2  _SR_ 21 _v_ 1 _h_ 2  _S_ 21 ( _h_ 1 - _h_ 2 )  _S_ 22 _h_ 2; _R_ 2  _Rv_ 2 ( _h_ 1 - _h_ 2 )  <u>2</u> _h_ 2; <u></u> _<u>g</u>_ _v_ _<u>d</u>_ _f_ 9  _CT_ 2. _dt_ (e9 ), (23) So  _h_ 1  _S_ <u>11</u> _qi_  _<u>RS</u>_ 11 ( _h_ 1  _h_ 2 ); _R_ 1    _h_ 2  _SR_ 21 ( _h_ 1 - _h_ 2 )  _<u>RS</u>_ 22 _h_ 2; _R_ 2  The causal path _De: L2 → e12 → e11 → e10 → e9_ allows to calculate the variable _e9_ : _e_ 9  _e_ 10   _gL_ 2 (24) The parameter _CT2_ is given by the following relation:  _S_ 1. _R_ 1 _S_ 1. _R_ 1     1 0  _A_   <u>1</u> <u></u> <u>1</u>  _<u>R</u>_ <u>1</u> <u></u> _<u>R</u>_ <u>2</u> , _B_   _S_ 1 , _C_   0 1 , _D_  0  _S_ 2. _R_ 1 _S_ 2  _R_ 1. _R_ 2   0  (34) The measurements are given as follows: L1 = h1 and L2 = h2.  <u></u> <u>1</u> <u>1</u>  <u></u> <u>1</u> <u>1</u>    <u>1</u>  1. _R_ 1 _S_ 1. _R_ 1     1 0  <u>1</u> <u></u> <u>1</u>  _<u>R</u>_ <u>1</u> <u></u> _<u>R</u>_ <u>2</u> , _B_   _S_ 1 , _C_   0 1 , _D_  0 2. _R_ 1 _S_ 2  _R_ 1. _R_ 2   0     <u>1</u>  _S_ . _R_ _S_ . _R_ _S_ 1. _R_ 1 _S_ 1. _R_ 1 1 1 1 1  1 1 1 1    _A_   <u>1</u> <u></u> <u>1</u>  _<u>R</u>_ <u>1</u> <u></u> _<u>R</u>_ <u>2</u> , _B_   _S_ 1 , _C_   0 1 , _D_ 1 <u>1</u> <u>2</u> _S_ 2. _R_ 1 _S_ 2  _R_ 1. _R_ 2 2 1 2  1 2 _CT_ 2   _<u>S</u>_ <u>2</u> _g_ _T_ 2  <u>2</u>  _g_ (25) With _S2_ the section of the second tank, _g_ the gravity constant and  the density of the fluid are # used. We can then write: K   k 1  _f_ 9  _S_ 2 _<u>dLdt</u>_ <u>2</u> (26) The variable _f13_ can be obtained from the constitutive relation of the element _R_ : The system can be brought back in a stable closed loop system by the state feedback where # K   k 1 k 2  is the state feedback gain and v(t) is input for the closed loop system. _Li_  _L_ 11 _L_ 12   _L_ 21 _L_ 21  The state equation obtained equation (33), takes the following form: input for the closed loop system. _L_  11 12 _i_  _L_ 21 _L_ 21 _f_ 13  _f_ 14  _Re_ <u>14</u> _v_ _f_ 13  _f_ 14  _R_ <u>14</u> _v_ 2, _v_ 2 (27) The causal path _De : L2 → e12 → e11→ e10 →_ _e13→ e14_ allows to calculate the variable _e14_ :  _x_  _Ax_ ( _t_ )  _Bu_ (   _y_ ( _t_ )  _Cx_ ( _t_ )   _u_ ( _t_ )  _Kx_ ( _t_ )  _x_  _Ax_ ( _t_ )  _Bu_ ( _t_ ) _y_ ( _t_ )  _Cx_ ( _t_ ) _u_ ( _t_ )  _Kx_ ( _t_ )  _v_ ( _t_ _x_  _Ax_ ( _t_ )  _Bu_ ( _t_ ) _y_ ( _t_ )  _Cx_ ( _t_ ) ( _t_ )  _Kx_ ( _t_ )  _v_ ( _t_ ) (35) _v_ _e_ 14  _e_ 13  _e_ 10   _gL_ 2 (28) 3.3. Observer-based fault diagnosis method Method using observers consists of reconstructing, from the mathematical model of equation (35), the output system through an estimate of the system states. 14 13 10 2 (28) 3.3. Observer-based fault diagnosis method We can therefore write: Method using observers consists of  _f_ 13  <u></u> _RgLv_ 2 <u>2</u> 13  _Rv_ 2 <u>2</u> _Rv_ 2 (29) estimate of the system states. According to the law of conservation of the  _x_ _Ax_ ( _t_ )  _Bu_ ( _t_ )  L(y  y) junction 11 and from the equation (19), we have:  (36)  _x_ _Ax_ ( _t_ )  _Bu_ ( _t_ ( _t_ )  _Bu_ ( _t_ )  L(y  y) (36)  _f_ 8  _f_ 6  <u></u> _<u>g</u>_ <u>(</u> _<u>LR</u>_ <u>1</u> _v_ 1 <u></u> _<u>L</u>_ <u>2</u> <u>(</u> _<u>L</u>_ <u>1</u> <u></u> _<u>L</u>_ <u>2</u> <u>)</u>  _x_ _Ax_ ( _t_ )  _Bu_ ( _t_ )  L(y    _y_ ( _t_ )  _Cx_ ( _t_ )  _u_ (t)  _kx_ ( _t_ )  _v_ ( _t_ )  _y_ ( _t_ )  _Cx_ ( _t_ ( _t_ )  _Cx_ ( _t_ ) _f_ 8  _f_ 6  _R_ <u>1</u> _v_ 1 <u>2</u> _Rv_ 1  (30) With: The second equation which is structurally independent of the first is thus:  <u></u> <u>1</u> <u>1</u>  _v_ _u_ (t)  _kx_ ( _t_ )  _v_ ( _t_ (t)  _kx_ ( _t_ )  _v_ ( _t_ ) With:  <u></u> <u>1</u> <u>1</u>   _S_ 2 _<u>dLdt</u>_ <u>2</u>  <u></u> _<u>g</u>_ <u>(</u> _<u>LR</u>_ <u>1</u> _v_ 1 <u></u> _<u>L</u>_ <u>2</u> <u>)</u>  <u></u> _RgLv_ 2 <u>2</u>    <u>1</u>  _S_ _R_ _S_ _R_ <u>1</u> <u>2</u> <u>(</u> _<u>L</u>_ <u>1</u> <u></u> _<u>L</u>_ <u>2</u> <u>)</u> 2 _dt_ <u>2</u>  _R_ <u>1</u> _v_ 1 <u>2</u>  _Rv_ 2 <u>2</u>  1 1 1 1   _A_  ; _B_ _S_ 1  <u>1</u> <u></u> <u>1</u>  _<u>R</u>_ <u>1</u> <u></u> _<u>R</u>_ <u>2</u>     _S_ 2 _R_ 1 _S_ 1  _R R_ 1 2    0 _S_ 1 _R_ 1 _S_ 1 _R_ <u></u> <u>1</u> <u>1</u>    <u>1</u>  1 _R_ 1 _S_ 1 _R_ 1    ; _B_ _S_ 1 ; <u>1</u> <u></u> <u>1</u>  _<u>R</u>_ <u>1</u> <u></u> _<u>R</u>_ <u>2</u>         0  1 1 1 1   ; _B_ _S_ 1   Knowing that h1 = L _v_ 1 1 and h2 = L _v_ 2 (31) 2, it is easy to  _S_ 2 _R_ 1 _S_ 1  _R R_ <u>1</u> 1 2 <u>2</u>    0  deduce the second state equation, which is structurally independent of the first, is thus: _C_   10 10 ; K   4,7 6,06  (37) _v_ 1 _v_ 2 1 1  1 2 (37) _C_  _S_ 1 _R_ 1 _S_ 1 _R_ 1     ; _B_ _S_ 1  <u>1</u> <u></u> <u>1</u>  _<u>R</u>_ <u>1</u> <u></u> _<u>R</u>_ <u>2</u>      _S_ 2 _R_ 1 _S_ 1  _R R_ 1 2    0    1 0 ; K   4,7 6,06   0 1    120 130  and _L_    130  175  1 0 ; K   4,7 6,06  0 1   4,7 6,06  <u></u> _<u>g</u>_ <u></u>  ( _h_ 1 - _h_ 2 )  _L_ _<u>dhdt</u>_ <u>2</u>  _S_ <u></u> 2. _Rgv_ ( _h_ 1 - _h_ 2 )  _S_ <u></u> 2 _<u>gh</u>_ . _Rv_ <u>2</u> <u>2</u>  _S_ 2. _Rv_ 1 ( _h_ 1 - _h_ 2 )  _S_ 2. _Rv_ <u>22</u> (32)  130  175    120 130 and _L_   130  175 1 120 DIAGNOSTYKA, Vol. 21, No. 3 (2020) <u>Mhamdi L, Achbi MS, Dhouibi H, Kechida S.:</u> _<u>Diagnosis of hybrid systems through bond graph, observers …</u>_ This method is capable of solving the fault detection and location problem by the evolution of residues as illustrated in figure 7. Indeed, the deviation signal or residual between the measurements and the outputs estimation (error estimation on outputs) is only a function of noises, model errors and failures. With the estimation error (or residual): _r(t) =_  ( _t_ )  _y_ ( _t_ )  _y_ ( _t_ ) 3.4. Faults signature matrix The residuals generation consists of comparing measurements stemming from the system to their estimations stemming from observer-based model. Only one residual allows fault detection at the level of a sub-system. However, the fault location requires a set of structured residuals. These residues must be designed to be sensitive to certain faults and insensitive to others, allowing thus the location of the failing element: symptoms are generated and compared to fault signatures. These residues lead to the fault signature matrix which is given by Table 1. By analyzing this matrix we see well the components signatures valve V2 and level sensor L2 are unique which means failures of these components are isolable. On the other hand, the components signatures valve V1 and level sensor L1 are identical which means the failures affecting these components cannot be isolated. To solve this problem another additional tool is used namely a timed automata in order to differentiate these two failures. Table 1. Fault signature matrix _Failure mode_ _Components_ r1 r2 Valve _V1_ Valve V1 1 0 <u>Stuck_Close</u> Valve _V2_ <u>Stuck_Close</u> Valve V2 1 1 Valve _V2_ <u>Stuck_Open</u> Level sensor _L1_ <u>Stuck_Close</u> Level sensor L1 1 0 Level sensor _L1_ <u>Stuck_Open</u> Level sensor _L2_ <u>Stuck_Close</u> Level sensor L2 0 1 Level sensor _L2_ <u>Stuck_Open</u> _Li_ Stuck_ Open means the sensor always remains in state 0 (the sensor does not detect the high level); _Li_ Stuck_ Close means the sensor always remains in state 1 (the sensor does not detect the low level); _Vi_ Stuck_Close means the valve number _i_ remains closed to an opening request; _Vi_ Stuck_Open means the valve number i remains <u>open to a closing request;</u> 3.5. Diagnosis method based on Timed Automata Dynamic model where timed automata is used contains all possible states (normal and failing states) of a system, which allows following its temporal evolution. Thanks to the trajectory that we follow to go from an initial state to a failure state, we are therefore able to locate a fault by quantifying the times spent in the transitions. In order to locate faults having the same failure signatures (i.e. defects valve V1 and level sensor L1), it is necessary to apprehend the different phases of diagnosis (construction of the dynamic model, detection and location phase). All the times concerning faults detection and location have been found mathematically or from simulations taking into account a default. Indeed, the first step consists in establishing the system dynamics, Figure 12. The objective is to know how the system behaves in the course of time. Fig. 12. Discrete event model corresponding to the two tanks system. Figure 13 shows us the final state of the diagnostician in a two-tank system. In the above figure, we distinguish three parts: the faultless functioning part of the two-tank system (diagnostician phase 1), the detection part and finally the fault location part. The first part of the diagnostician corresponds to the system control Grafcet but with temporal information in more. We can see the correspondence states / transitions between the control Grafcet, figure 14, and the diagnostician Phase 1 (normal state), Figure 13-(a). In the case where the execution times of the diagnostician Phase 1 are not respected, we are thus in the presence of a defect. The second phase of diagnosis, Figure 13-(b), concerns the fault detection. In the case where one of these conditions is not respected, the diagnostician goes from a normal state to a fault detection state. The third step of diagnosis, Figure 13-(c), consists in the fault location. Each detection state has a necessary condition to go from the location detection. Indeed, following the detection of a fault, and of the different failure modes identified in the FMEA (Failure Modes and Effects Analysis), we need to know how the fault will spread in the system and how it will modify the appearance of future events. (The state of the valve takes the value 0 for closed and the state of the valve takes 1 for open) (“&” corresponds to logical AND; “!” corresponds to logical NON). DIAGNOSTYKA, Vol. 21, No. 3 (2020) 121 <u>Mhamdi L, Achbi MS, Dhouibi H, Kechida S.:</u> _<u>Diagnosis of hybrid systems through bond graph, observers …</u>_ Fig. 15. Normal behavior of our discrete Fig. 13. Diagnoser of two-tank system a) Dynamic model, b) Detection phase, c) Location phase. Fig. 14. Control Grafcet. The diagnostician construction is based on the temporal knowledge of the system it is necessary to know the times of the system such as, for example, the opening time of the valves or the change time of the sensors state. Figure 15 illustrates the nominal behavior of the system over an operating cycle. The two diagnosis methods (Observer and Timed Automata) work in parallel. Indeed, the observer-based methods consist of detecting and locating a fault on a studied system at any instant and without delay. And the timed automata based method allows to locate the defects which cannot be isolated by the first method (observer-based method) and also to identify the causes of failure more precisely (i.e. for a valve V2 default, the valve V2 remains closed during an opening request or the valve V2 remains open during a closing request) but with some delay. system. 4. SIMULATION RESULTS The simulation model is made in Matlab simulink, state-flow. In order to test the effectiveness of the faults detection and location technique of the proposed diagnosis approach, we injected defects in a random way. At first, we injected a fault on the valve V2 at the instant t = 3s. Figure 16 shows the response of residuals _R1_ and _R2_ and their sensitivity to this failure. If we refer to the signature of valve V2 given by Table1 we note this result is appears as expected or is aligned with expectations. In other words, if valve V2 fails, only residuals _R1_ and _R2_ will exceed their respective thresholds. Fig. 16. Response of the residuals in presence of a fault on valve V2 (Observer-based method). More precisely, Figure 17 shows the valve V2 remains closed during an opening request (V2 Stuck_Close). In the above figure, despite the opening request (green signal), valve V2 remains closed (red signal). This instant represents the occurrence of a failure. T occurrence = 3 sec. 122 DIAGNOSTYKA, Vol. 21, No. 3 (2020) <u>Mhamdi L, Achbi MS, Dhouibi H, Kechida S.:</u> _<u>Diagnosis of hybrid systems through bond graph, observers …</u>_ Subsequently, L1 and L2 sensors (purple signal) remain in state 1; 0.002 sec after the opening request of the valve V2. This instant represents fault detection instant. T detection = 3.02 sec. State ED2 of diagnostician, figure 13. Finally, the detection is enough for the location. T location = 3.024 sec. V2_SC State of the diagnostician, Figure 13. Fig. 19. Diagnosis for the fault valve V1 Stuck_Close (Timed Automata based method). Fig. 17. Diagnosis of the fault valve V2 Stuck_Close (Timed Automata based method) Then, we injected a fault on the valve V1 at the instant t = 7s. The responses residuals to this failure are given in Figure 18 . The signature of the valve V1 given by Table 1 merges with the signature of the level sensor L1 and consequently, this failure is detectable but not localizable. Fig. 18. Response of the residuals in presence of a fault on valve V1 (Observer-based method). With the diagnosis method based on Timed Automata the fault valve V1 can be located. Figure 19 shows the valve V1 at the instant t = 7s remains closed during an opening request. In the above figure, valve V1 remains closed (red signal) during an opening request (green signal). This instant represents the occurrence of a failure. T occurrence = 7 sec. Subsequently sensor L2 (purple signal), remains in state 0; 0.053 sec after the opening request of valve V2. This instant represents the fault detection instant. T detection = 7.026 sec. State ED5 of diagnostician, Figure 13. Finally, sensor L3 (brown signal) remains in state 1 and sensor L4 (cyan signal) remains in state 0; 0.091 sec after the activation of the detection state. This instant corresponds to the fault location. T location = 7.12 sec. V1_SC State of diagnostician, Figure 13. It is therefore possible to locate this fault by Timed Automata. After several simulations, this diagnosis approach (using the Bond graph, the Observer and Timed Automata) detects and locates every defect at any time, it is reliable. Furthermore, the observer-based diagnosis method does not impose constraints or very restrictive conditions. Also, noteworthy is its robustness vis-a-vis of measurement noises. Although generated residuals are influenced by noises, faults can always be detected and isolated as quickly as possible. As a result performances of the diagnosis method based on Timed Automata (detection and location deadlines) are related to temporal characteristics of setting up the process and instrumentation. 5. CONCLUSION & PERSPECTIVES The diagnostic method, in our work, combines the advantages of the three approaches (Bond Graph, Observer and Timed Automata) in order to obtain the best performances. DIAGNOSTYKA, Vol. 21, No. 3 (2020) 123 <u>Mhamdi L, Achbi MS, Dhouibi H, Kechida S.:</u> _<u>Diagnosis of hybrid systems through bond graph, observers …</u>_ In this paper, we discussed the problem of faults diagnosis on a complex hybrid system thanks to the use of the bond graph and observer well known in the continuous field, coupled with the timed automata used in the field of Discrete events systems. The proposed approach solves the problem of fault identification. The approach used consists, first, to model a complex physical system using the Bond Graph, in order to generate residues (or defects indicators), sensitive to any defect affecting the system to be monitored, by the observer model. Then, it is necessary to analyze these residues to detect the presence of a defect. Finally, the fault locating procedure is performed from the fault signatures matrix derived from the observer model and from time identification and the FMEA. A perspective of this work is to extend our approach to take into account the diagnosis problem when the system is affected simultaneously by actuators and sensors faults. Another problem not addressed in this paper would be study and the mastery of propagation of defects in a hybrid system. ACKNOWLEDGMENTS The authors would like to thank the comments provided by the anonymous reviewers and editor, which helped the authors improve this paper significantly. REFERENCES 1. Branicky MS. Studies in hybrid systems: Modeling, Analysis and Control. Ph.D thesis, Department of Electrical Engineering and Computer Science – MIT Cambridge. 1995 2. Alur R, Courcoubetis C, Henzinger TA, Ho PH. Hybrid automata: an algorithmic approach to the specification and verification of hybrid systems. In Hybrid Systems, LNCS. 1993; 736:209-229. 3. Le Bail J, Alla H, David R. Hybrid Petri nets. In Proceedings of the European Control Conference, Grenoble, France. 1991:1472-1477. 4. Mosterman PJ. Hybrid dynamic systems: a hybrid Bond-Graph modeling paradigm and its application in diagnostic. Ph.D thesis, Vanderbilt University 1997. 5. Ould Bouamama B, Medjaher K, Samantaray AK, Staroswiecki M. Supervision of an industrial steam generator. Part I: Bond graph modelling. Control Engineering Practice. 2006:14:71–83. 6. Dhouibi H, Bochra M, Simeu Abazi Z, Hassani M. Diagnosis approach using bond graph and timed automata. IJAREEIE. 2013;2(9). 7. Bengtsson J, Wang Yi. Timed automata: semantics, algorithms and tools. In lecture Notes on Concurrency and Petri Nets, W. Reisig and G. Rozenberg (eds), LNCS 3098, Springer-Verlag, 2004 8. Saeed Ghasemi, Leili Mohammad Khanli, Mina Zolfi, Ghader Tahmasebpour. Modeling and Simulation of NFC Logical Layer Peer-to-Peer Mode using CPN and TA. International Journal of Electrical and Computer Engineering (IJECE). 2014;4(2): 162168. 9. Mhamdi L, Dhouibi H, Simeu-Abazi Z, Liouane N. Using constrained Petri nets and timed automata for modelling of discrete event systems. IJE. 2014;27: 113-122. 10. Gascard E, Simeu-Abazi Z. Modular Modelling for the Diagnostic of Complex Discrete-Event Systems. IEEE Trans. on Automation Science and Engineering. 2013;10(4):1101-1123. 11. Zineb Simeu-Abazi and al. Fault diagnosis for discrete event systems: modelling and verification. Reliability Engineering et systems Safet. 2010;95(4): 369-378. 12. Paynter HM. Analysis and design of engineering systems. MIT Press, Cambridge, Massachusetts. 1961. 13. Mukherjee A, Karmakar R. Modelling and simulation of engineering systems through bond graphs. Alpha sciences international. 2000. 14. Thoma JU, Ould Bouamama B. Modelling and simulation in thermal and chemical engineering: A Bond graph approach. Springer Science & Business Media. 2013. 15. Ould-Bouamama B, Medjaher K, Bayart M, Samantaray AK, Conrard B. Fault detection and isolation of smart actuators using bond graphs and external models. Control Engineering Practice. 2005; 13:159–175,. 16. Ould-Bouamama B, El Harabi R, Abelkrim MN, Ben Gayed MK. Bond graphs for diagnosis of chemical processes. Computers & chemical engineering. 2012; 36: 301–324. 17. Panos Antsaklis, Xenofon Koutsoukos, Janan Zaytoon. On hybrid control of complex systems: a survey. ADPM’98, Reims, France. 1998. 18. Dauphin-Tanguy G. Les Bond Graphs. Hermes Sciences Europe Limited, Paris. 2000. 19. Karnopp DC, Rosenberg RC. System Dynamics: A unified Approach. John Wiley, New York. 1974. 20. Borutzky W. Bond Graph Modelling and simulation of multidisciplinary systems: An introduction. Simulation Modelling Practice and Theory. 2009;17(1):3-21. 21. Paynter HM. Analysis and design of engineering systems. MIT Press, Cambridge. 1961. 22. Touati Y. Diagnostic Robuste et estimation de défauts à base de modèle Bond Graph. Ph.D thesis. 2012. 23. Chen J, Patton RJ. Robust model-based fault diagnosis for dynamic systems. The International Series on Asian Studies in Computer and Information Science. 1999. 24. Chen J, Patton RJ, Zhang HY. Design of unknown input observers and robust fault detection filters. IJC, 1996; 63(1):85–105. 25. Frank PM. Analytical and qualitative model-based fault diagnosis - a survey and some new results. European Journal of Control. 1996;2:6–28. 26. Patton RJ. Robust model-based fault diagnosis: the state of the art. IFAC Safe process Symposium, Espoo, Finland. 1994:1-24. 27. Gauthier JP, Hammouri H, Othman S. A Simple Observer for Nonlinear Systems Applications to Bioreactors. IEEE Trans on Automatic Control. 1992;37:875–880. 124 DIAGNOSTYKA, Vol. 21, No. 3 (2020) <u>Mhamdi L, Achbi MS, Dhouibi H, Kechida S.:</u> _<u>Diagnosis of hybrid systems through bond graph, observers …</u>_ 28. René Husson et al. Automatique du cahier des charges à la réalisation de systems. Edition Dunod, Paris. 2007. 29. Perry Y. Li. University of Minnesota ME 8281: Advanced Control Systems Design. 2001-2012 30. Sava AT. Sur la synthese de la commande des systemes a evenements discrets temporises. Ph.D thesis, Laboratoired’Automatique de Grenoble. 2001. 31. Simeu-Abazi Z, Rayhane H, Bennani T, Bouredji Z. Optimisation des temps de detection dans la surveillance des systemes. 5eme Congres International de Genie Industriel. 2003: 25-29. 32. Lajmi F, Talmoudi AJ, Dhouibi H. Fault Diagnosis of Uncertain Systems Based on Interval Fuzzy PETRI Net, Studies in Informatics and Control. 2017;26(2):239-248. <u>[https://doi.org/10.24846/v26i2y201712](https://doi.org/10.24846/v26i2y201712)</u> 33. Maaref B, Ghabi J, Simeu-Abazi Z. A mixed approach for modeling and fault diagnosis of hybrid dynamical systems with unknown disturbance. Studies in Informatics and Control. 2018;27(3):307318. 34. Miguel Hernandez, Basilio Del Muro, Domingo Cortes, Juan Carlos Sanchez. An Easy to Apply Methodology for Fault Detection and Isolation in Linear Systems. Studies in Informatics and Control. 2012;21(3):275-282. 35. Guerra RV, Rubio JM, Cuéllar BM, Sánchez GID. Dynamic delayed controllers for unstable recycling systems with time delays. Studies in Informatics and Control. 2016;25(2):195-206. 36. Campos-Rodriguez R, Alcaraz-Mejia M. An efficient testing for the detection of trajectories in discreteevent systems modelled by S-Nets. Studies in Informatics and Control. 2016;25(3):363-374. 37. Mhamdi L, Dhouibi H, Simeu-Abazi Z, Liouane N. Modelling approach for discrete event systems through petri nets and timed automata. In 2013 International Conference on Control, Decision and Information Technologies (CoDIT). 2013:166-171. 38. Belkacem L, Mhamdi L, Simeu-Abazi Z, Messaoud H, Gascard E. Diagnosis of hybrid dynamical systems through hybrid automata. IFAC-PapersOnLine. 2016;49(12):990-995. 39. Achbi MS, Kechida S. Methodology for monitoring and diagnosing faults of hybrid dynamic systems: a case study on a desalination plant. Diagnostyka, 2020;21(1):27:33. <u>[https://doi.org/10.29354/diag/116076](https://doi.org/10.29354/diag/116076)</u> 40. Achbi MS, Kechida S. Hybrid dynamic systems fault diagnosis approach based on hybrid automata and \ANFIS. 2nd international conference on Applied Automation and Industrial Diagnostics. ICAAID. Djelfa. 2017. 41. Achbi M S, Kechida S. Fault diagnosis of a reverse osmosis water desalination plant through a hybrid approach. International conference on Electronicsand new technologies.ICENT.M’sila. 2017. 42. Mhamdi L, Liouane N, Hassani M, Dhouibi H. Using interval petri nets and timed automata for diagnosis of discrete event systems (des). International Journal of Engineering. 2014;27(1): 113-122. 43. Achbi MS, Kechida S. Fault tolerant control of Reverse Osmosis Desalination Plant with the application of SCADA system. 2nd international conference on Applied Automation and Industrial Diagnostics. ICAAID. Djelfa. 2017. 44. Mhamdi L, Belkacem L, Dhouibi H, Abazi ZS. Using Hybrid Automata for Diagnosis of Hybrid Dynamical Systems. International Journal of Electrical & Computer Engineering. 2015;5(6). 45. Mhamdi L, Dhouibi H, Simeu-Abazi Z, Liouane, N. Modelling approach for discrete event systems through petri nets and timed automata. In 2013 International Conference on Control, Decision and Information Technologies (CoDIT). 2013;166-171. 46. Kechida S, Cocquempot V. Méthodologies de diagnostic des systèmes dynamiques: Théories et exemples. Kechida S, & Cocquempot V. Méthodologies de diagnostic des systèmes dynamiques: Théories et exemples. 2012. Received 2020-04-01 Accepted 2020-09-17 Available online 2020-08-24 Lotfi MHAMDI received his Engineer degree of maintenance and master at National School of Engineering - University of Center, Tunisia in 2004 and 2007 respectively. In 2014, he obtained his doctorate degree in Industrial automation: automatic and Industrial computing from Institut National Polytechnique of Grenoble, INPG France and National School of Engineering of Monastir, University of Center. He is currently Assistant professor of Electrical Engineering at University of Kairawan Tunisia. His research interests include Modeling, Intelligente Control and Monitoring and command Manufactory systems, he is former member in LARATSI-(Labortoired’ Automatique, Traitement de signal et Imagerie), Monastir, Tunisia. Mohammed Said ACHBI is a postgraduate student at the Department of electrical Engineering Guelma University, Algeria. His research activities deal mainly with Fault Diagnosis and Fault tolerant of Hybrid Dynamical Systems. He is interested also in Artificial Intelligence. Team Research, Diagnostic et Sûreté de Fonctionnement at Laboratoire d’automatique et informatique de Guelma. [E-mail: achbi.mohammedsaid@univ-guelma.dz](mailto:achbi.mohammedsaid@univ-guelma.dz) Hedi DHOUIBI - received his Engineer degree of maintenance and DEA at National School of Engineering - University of Center, Tunisia in 1997 and 1999 respectively. In 2005, he obtained his doctorate degree in Industrial automation: automatic and Industrial computing from University of the sciences and the DIAGNOSTYKA, Vol. 21, No. 3 (2020) 125 <u>Mhamdi L, Achbi MS, Dhouibi H, Kechida S.:</u> _<u>Diagnosis of hybrid systems through bond graph, observers …</u>_ technologies of Lille France. He is currently Assistant professor of Electrical Engineering at University of Kairawan Tunisia. His research interests include Modeling, Intelligente Control and Monitoring and command Manufactory systems. Sihem KECHIDA is a Doctor in Industrial Automation, Senior Lecturer at Guelma University, Algeria. Team Research Leader Diagnostic et Sûreté de Fonctionnement at Laboratoire d’automatique et informatique de Guelma. She is the supervisor of many PhD Students and she is the coordinator of several industrial research projects within the applied automatic diagnostics and reliability of industrial systems. She also works on Fault Detection and Isolation (FDI) for Hybrid Dynamical Systems and Transportation Systems. She is active as an expert in several national and internationals committees and collaboration research activities. She has participated in several international research projects and has led several national research projects. [E-mail : kechida.sihem@univ-guelma.dz](mailto:kechida.sihem@univ-guelma.dz)

섹션 본문

섹션 본문이 없습니다.

참고문헌 28건

  1. Sur la synthèse de la commande des systèmes à évènements discrets temporisés 2001
  2. Robust Model-Based Fault Diagnosis for Dynamic Systems ˜The œKluwer international series on Asian studies in computer and information science · Springer Nature · 1999 10.1007/978-1-4615-5149-2
  3. Studies in hybrid systems: modeling, analysis, and control 1996
  4. On Hybrid Control of Complex Systems: A Survey 1997
  5. Using Hybrid Automata for Diagnosis of Hybrid Dynamical Systems International Journal of Electrical and Computer Engineering (IJECE) · Institute of Advanced Engineering and Science (IAES) · 2015 10.11591/ijece.v5i6.pp1396-1406
  6. Bond graphs for the diagnosis of chemical processes Computers & Chemical Engineering · Elsevier BV · 2011 10.1016/j.compchemeng.2011.07.008
  7. Hybrid automata: An algorithmic approach to the specification and verification of hybrid systems Lecture notes in computer science · Springer Science+Business Media · 1993 10.1007/3-540-57318-6_30
  8. Fault detection and isolation of smart actuators using bond graphs and external models Control Engineering Practice · Elsevier BV · 2004 10.1016/j.conengprac.2004.03.003
  9. System dynamics: A unified approach Proceedings of the IEEE · Institute of Electrical and Electronics Engineers · 1977 10.1109/proc.1977.10509
  10. Supervision of an industrial steam generator. Part I: Bond graph modelling Control Engineering Practice · Elsevier BV · 2005 10.1016/j.conengprac.2005.01.004
  11. Modelling approach for Discrete Event Systems through Petri Nets and Timed Automata 2013 10.1109/codit.2013.6689538
  12. Using Interval Petri Nets and Timed Automata for Diagnosis of Discrete Event Systems (DES) International Journal of Engineering · Materials and Energy Research Center · 2013 10.5829/idosi.ije.2014.27.01a.14
  13. Analytical and Qualitative Model-based Fault Diagnosis – A Survey and Some New Results European Journal of Control · Elsevier BV · 1996 10.1016/s0947-3580(96)70024-9
  14. Design of unknown input observers and robust fault detection filters International Journal of Control · Taylor & Francis · 1996 10.1080/00207179608921833
  15. Bond graph modelling and simulation of multidisciplinary systems – An introduction Simulation Modelling Practice and Theory · Elsevier BV · 2007 10.1016/j.simpat.2007.08.008
  16. Modeling and Simulation of NFC Logical Layer Peer-to-Peer Mode using CPN and TA International Journal of Electrical and Computer Engineering (IJECE) · Institute of Advanced Engineering and Science (IAES) · 2014 10.11591/ijece.v4i2.5154
  17. Fault diagnosis for discrete event systems: Modelling and verification Reliability Engineering & System Safety · Elsevier BV · 2009 10.1016/j.ress.2009.11.007
  18. A simple observer for nonlinear systems applications to bioreactors IEEE Transactions on Automatic Control · Institute of Electrical and Electronics Engineers · 1992 10.1109/9.256352
  19. Timed Automata: Semantics, Algorithms and Tools Lecture notes in computer science · Springer Science+Business Media · 2004 10.1007/978-3-540-27755-2_3
  20. Diagnosis of Hybrid Dynamical Systems through Hybrid Automata IFAC-PapersOnLine · Elsevier BV · 2016 10.1016/j.ifacol.2016.07.571
  21. Dynamic Delayed Controllers for Unstable Recycling Systems with Time Delays Studies in Informatics and Control · ICI Bucharest · 2016 10.24846/v25i2y201607
  22. An Efficient Testing for the Detection of Trajectories in Discrete-Event Systems Modelled by S-Nets Studies in Informatics and Control · ICI Bucharest · 2016 10.24846/v25i3y201610
  23. Diagnosis approach using bond graph and timed automata HAL (Le Centre pour la Communication Scientifique Directe) · Le Centre pour la Communication Scientifique Directe · 2014
  24. An Easy to Apply Methodology for Fault Detection and Isolation in Linear Systems Studies in Informatics and Control · ICI Bucharest · 2012 10.24846/v21i3y201206
  25. Robust Model-Based Fault Diagnosis: The State of the ART IFAC Proceedings Volumes · Elsevier BV · 1994 10.1016/s1474-6670(17)47997-3
  26. Fault Diagnosis of Uncertain Systems Based on Interval Fuzzy PETRI Net Studies in Informatics and Control · ICI Bucharest · 2017 10.24846/v26i2y201712
  27. Methodology for monitoring and diagnosing faults of hybrid dynamic systems: a case study on a desalination plant Diagnostyka · Polskie Towarzystwa Diagnostyki Technicznej · 2020 10.29354/diag/116076
  28. Modelling and Simulation in Thermal and Chemical Engineering: A Bond Graph Approach 1999