<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>HYDIAG: extended diagnosis and prognosis for hybrid systems</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Elodie Chanthery</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yannick Pencolé</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Pauline Ribot</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Louise Travé-Massuyès</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>avenue du colonel Roche</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Toulouse</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>France e-mail: [firstname.name]@laas.fr</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Univ de Toulouse</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Toulouse</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>France</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Univ de Toulouse</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Toulouse</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>France</string-name>
        </contrib>
      </contrib-group>
      <fpage>281</fpage>
      <lpage>284</lpage>
      <abstract>
        <p>HYDIAG is a software developed in Matlab by the DISCO team at LAAS-CNRS. It is currently a software designed to simulate, diagnose and prognose hybrid systems using model-based techniques. An extension to active diagnosis is also provided. This paper aims at presenting the native HYDIAG tool, and its different extensions to prognosis and active diagnosis. Some results on an academic example are given.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>HYDIAG is a software developed in Matlab, with Simulink.
The development of this software was initiated in the
DISCO team with contributions about diagnosis on hybrid
systems [1]. It has undergone many changes and is
currently a software designed to simulate, diagnose and
prognose hybrid systems using model-based techniques [2; 3; 4].
An extension to active diagnosis has been also realized [5;
6]. This article aims at presenting the native HyDiag tool
and its different extensions to prognosis and active
diagnosis.</p>
      <p>Section 2 recalls the hybrid formalism used by HYDIAG.
Section 3 presents the native HYDIAG tool that simulates
and diagnoses hybrid systems. Section 4 explains how
HYDIAG has been extended in HYDIAGPRO to prognose and
diagnose hybrid systems. Section 5 presents the extension
to active diagnosis. Experimental results of HYDIAG and its
extension HYDIAGPRO are finally presented in Section 6.</p>
    </sec>
    <sec id="sec-2">
      <title>Hybrid Model for Diagnosis</title>
      <p>HYDIAG deals with hybrid systems defined in a monolithic
way. Such a system must be modeled by a hybrid automaton
[7]. Formally, a hybrid automaton is defined as a tupleS =
(ζ, Q, Σ, T, C, (q0, ζ0)) where:
• ζ is a finite set of continuous variables that comprises
input variables u(t) ∈ Rnu , state variables x(t) ∈
Rnx , and output variables y(t) ∈ Rny .
• Q is a finite set of discrete system states.
• Σ is a finite set of events.
• T ⊆ Q × Σ → Q is the partial transition function
between states.
• C = Sq∈Q Cq is the set of system constraints linking
continuous variables.</p>
      <p>Each state q ∈ Q represents a behavioural mode that is
characterized by a set of constraints Cq that model the
linear continuous dynamics (defined by their representations
in the state space as a set of differential and algebraic
equations). A behavioural mode can be nominal or faulty
(anticipated faults). The unknown mode can be added to model
all the non anticipated faulty situations. The discrete part of
the hybrid automaton is given by M = (Q, Σ, T, q0), which
is called the underlying discrete event system (DES). Σ is
the set of events that correspond to discrete control inputs,
autonomous mode changes and fault occurrences. The
occurrence of an anticipated fault is modelled by a discrete
event fi ∈ Σf ⊆ Σuo, where Σuo ⊆ Σ is the set of
unobservable events. Σo ⊆ Σ is the set of observable events.
Transitions of T model the instantaneous changes of
behavioural modes. The continuous behaviour of the hybrid
system is modelled by the so called underlying multimode
system Ξ = (ζ, Q, C, ζ0). The set of directly measured
variables is denoted by ζOBS ⊆ ζ.</p>
      <p>An example of a hybrid system modeled by a hybrid
automaton is shown in Figure 1. Each mode qi is characterized
by state matrices Ai, Bi, Ci and Di.</p>
      <p>Hybrid system
u</p>
      <p>q1 q2
C1 xY11((nn+)=1C)=1xA11(xn1)(+nD)+1uB(1nu)(n) σ12 C2 xY22((nn+)=1C)=2xA22(xn2)(+nD)+2uB(2nu)(n)
σ21
y
σ1i</p>
      <p>qi
Ci xYii((nn+)=1C)=ixAi(inx)i(+nD)+iuB(un()n)
σ</p>
      <p>…</p>
    </sec>
    <sec id="sec-3">
      <title>Overview of the native HYDIAG diagnoser</title>
      <p>The method developed in [1] for diagnosing faults on-line
in hybrid systems can be seen as interlinking a standard
diagnosis method for continuous systems, namely the parity
space method, and a standard diagnosis method for DES,
namely the diagnoser method [8].</p>
      <sec id="sec-3-1">
        <title>3.1 How to use HYDIAG ?</title>
      </sec>
      <sec id="sec-3-2">
        <title>Step 1: hybrid model edition</title>
        <p>HYDIAG allows the user to edit the modes of a hybrid
automaton S as illustrated in Figure 1. To model the system,
the user must first provide in the Graphical User Interface of
the HYDIAG software the following information: the
number of modes, the number of discrete events that can be
observable or unobservable, and the sampling period used for
the underlying multimode system (defined by the set of state
matrices of the state space representation of each mode).</p>
        <p>There are optional parameters that are helpful to initialize
the mode matrices automatically before editing them: the
number of entries for the continuous dynamics, the number
of outputs for continuous dynamics, the dimensions of each
matrix A. The number of entries (resp. outputs) must be the
same for all the modes.</p>
        <p>The simulator of the edited model has no restrictions on
the number of modes or the order of the continuous
dynamics, it is generically designed. Online computations are
performed using Matlab / Simulink. Results provided by
Matlab can be reused if a special need arises. Figure 2 shows an
overview of the software interface.</p>
      </sec>
      <sec id="sec-3-3">
        <title>Step 2: building the diagnoser</title>
        <p>
          HYDIAG automatically computes the analytical redundancy
relations (ARRs) by using the parity space approach [9].
Details of this computation can be found in [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ].
        </p>
        <p>The idea of HYDIAG is to capture both the continuous
dynamics and the discrete dynamics within the same
mathematical object. To do so, the discrete part of the hybrid
system M = (Q, Σ, T, q0) is enriched with specific
observable events that are generated from continuous information.
The resulting automaton is called the Behaviour Automaton
(BA) of the hybrid system. HYDIAG then builds the
diagnoser of the Behaviour Automaton (see [8]) by using the
DIADES1 software also developed within the DISCO team
at LAAS-CNRS (see an example of diagnoser in Figure 7).</p>
      </sec>
      <sec id="sec-3-4">
        <title>Step 3: system simulation and diagnosis</title>
        <p>Given the built hybrid diagnoser, HYDIAG then loads a set
of timed observations produced by the system and it
provides at each observation time an update of the diagnosis
1http://homepages.laas.fr/ypencole/DiaDes/
of the system by triggering the current transition of the
hybrid diagnoser that matches the current observation. It is
possible to define in HYDIAG a simulation scenario for the
modeled system with a duration and a time sample defined
by the user.
3.2</p>
      </sec>
      <sec id="sec-3-5">
        <title>Software architecture with extensions</title>
        <p>The general architecture of HYDIAG and its two extensions
(see the next sections for their description) is presented on
Figure 3. Ellipses represent the objects handled by the
software, rectangles with rounded edges depict HYDIAG
functions and rectangles with straight edges correspond to
external DIADES packages. The behaviour automaton is at the
heart of the architecture as HYDIAG and both its extensions
rely on it to perform diagnosis, active diagnosis and
prognosis.</p>
        <p>ActDiades
Model display
Enriched
hybrid
model</p>
        <p>Specialized
Active 
diagnosers</p>
        <p>Additional
Signature 
event
ARRs computation</p>
        <p>AND/OR 
Graph</p>
        <p>AO* Algorithm</p>
        <p>Behaviour</p>
        <p>Automaton display
Behaviour
Automaton</p>
        <p>Diades
Prognoser
prognosis
prognosis</p>
        <p>ActHyDiag
Conditional</p>
        <p>plan
Conditional plan 
display</p>
        <p>HyDiag
Diagnoser display
Diagnoser
diagnosis</p>
        <p>Diagnosis display
diagnosis</p>
        <p>Prognosis display</p>
        <p>HyDiagPro</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>HYDIAGPRO : an extension for Prognosis</title>
      <p>HYDIAG has been extended in order to provide a
prognosis functionality to the software [4]. The prognosis function
computes (1) the fault probability of the system in each
behavioural mode, (2) the future fault sequence that will lead
to the system failure, (3) the Remaining Useful Life (RUL)
of the system.</p>
      <p>
        In HYDIAGPRO, the initial hybrid model is enriched
by adding for each behavioural mode a set of aging laws:
S+ = (ζ, Q, Σ, T, C, F , (q0, ζ0)) where F = {F q, q ∈ Q}
and F q is a set of aging laws one for each anticipated fault
f ∈ Σf in mode q. The aging modeling framework that
is adopted in HYDIAGPRO is based on the Weibull
probabilistic model [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] (see more details in [4]). The Weibull
fault probability density function W (t, βjq, ηjq, γj ) gives at
q
any time the probability that the fault fj ojqcacruersfiixnetdhebysyths-e
tem mode q. Weibull parameters βjq and η
system mode q and characterise the degradation in mode q
that leads to the fault fj . Parameter γjq is set at runtime to
memorize the overall degradation evolution of the system
accumulated in the past modes [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ].
      </p>
      <p>The prognoser uses the aging laws in S+ to predict fault
occurrences (see Figure 3). The prognoser uses the
current diagnosis result to update on-line these aging laws (the
parameters γjq) according to the operation time in each
behavioural mode. For each new result of diagnosis, the
prognosis function computes the most likely sequence of dated
faults that leads to the system failure. From this sequence is
estimated the system RUL [4].
5</p>
    </sec>
    <sec id="sec-5">
      <title>ACTHYDIAG: Active Diagnosis</title>
      <p>The second extension of HYDIAG provides an active
diagnosis functionality to the software (see Figure 3). The inputs
are the same as for HYDIAG but an additional file indicates
the events of S that are actions, as well as their respective
cost. Based on the behaviour automaton, we compute a set
of specialised active diagnosers (one per fault): such a
diagnoser is able to predict, based on the behaviour automaton,
whether a fault can be diagnosed with certainty by applying
an action plan from a given ambiguous situation [6]. From
these diagnosers, we also extract a planning domain as a
AND/OR graph.</p>
      <p>At runtime, when HYDIAG is diagnosing, the
diagnosis might be ambiguous. An active diagnosis session can
be launched as soon as a specialised active diagnoser can
analyse that the current faulty situation is discriminable by
applying some actions. If the active diagnosis session is
launched, an AO∗ algorithm starts and computes a
conditional plan from the AND-OR graph that optimises an
action cost criterion. It is important to note that in the case
of a system with continuous dynamics, only discrete actions
are contained in the active diagnosis plan issued by
ACTHYDIAG. In particular, it is assumed that if it is necessary to
guide the system towards a value on continuous variables,
the synthesis of control laws must be performed elsewhere.
6</p>
    </sec>
    <sec id="sec-6">
      <title>HyDiag/HyDiagPro Demonstration</title>
      <sec id="sec-6-1">
        <title>Water tank system model</title>
        <sec id="sec-6-1-1">
          <title>Pump P1</title>
          <p>h</p>
        </sec>
        <sec id="sec-6-1-2">
          <title>Pump P2</title>
          <p>hmax
h2</p>
          <p>h1</p>
          <p>HYDIAGPRO has been tested on a water tank system
(Figure 4) composed of one tank with two hydraulic pumps
(P1, P2). Water flows through a valve at the bottom of the
tank depending on the system control. Three sensors (h1,
h2, hmax) detect the water level and allow to set the control
of the pumps (on/off). It is assumed that the pumps may
fail only if they are on. The discrete model of water tank
and the controls of pumps are given in Figure 5. Discrete
events in Σ = {h1, h2s, h2i, hmax, f1, f2} allow the
system to switch into different modes. Observable events are
Σo = {h1, h2s, h2i, hmax}. Two faults that correspond to
the pump failures are anticipated Σf = {f1, f2} and are not
observable.The Weibull parameter values of aging models
F = {F qi } are reported in Table 1.</p>
          <p>The underlying continuous behaviour of every discrete
mode qi for i ∈ {1..8} is represented by the same state
pump
mode</p>
          <p>Pump1 Pump 2</p>
          <p>Time (h)
Time (h)
Time (h)</p>
          <p>Left hand side of Figure 6 shows the diagnoser belief state
just before and after the fault f1 occurrence. Results are
consistent with the scenario: before 3500h, the belief states
of the diagnoser are always tagged with a nominal diagnosis.
After 3500h, all the states are tagged with f1.</p>
          <p>Middle of Figure 6 illustrates the predicted date of fault
occurrence (df1 and df2 ). At the beginning of the process,
the prognosis result is: Π0 = ({f1, 4120}, {f2, 5105}). It
can be noted that the predicted dates df1 and df2 of f1 and
f2 globally increase. Indeed, the system oscillates between
stressful modes and less stressful modes. To make it simple,
we can consider that in some modes, the system does not
degrade, so the predicted dates of f1 and f2 are postponed.
Before 3500h, the predicted date of f1 is lower than the one
of f2. After 3500h, the predicted date of f2 is updated,
knowing that the system is in a degraded mode. Finally, the
prognosis result is Π3501 = ({f2, 5541}). Figure 6 shows
the evolution of the RUL of the system. At t = 3501, as the
fault f2 is estimated to occur at t = 5541, the system RUL
at t = 3501 is 5541 − 3501 = 2040h.
7</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>Conclusion</title>
      <p>HYDIAG is a software developed in Matlab, with Simulink,
by the DISCO team, at LAAS-CNRS. This tool has been
extended into HYDIAGPRO to simulate, diagnose and
prognose hybrid systems using model-based techniques. Some
results on an academic example are exposed in the paper.
An extension to active diagnosis is also presented. The
active diagnosis algorithm is currently tested on a concrete
industrial case. HYDIAG and its user manual will be soon
available on the LAAS website.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <given-names>M.</given-names>
            <surname>Bayoudh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Travé-Massuyès</surname>
          </string-name>
          , and
          <string-name>
            <given-names>X.</given-names>
            <surname>Olive</surname>
          </string-name>
          .
          <article-title>Hybrid systems diagnosis by coupling continuous and discrete event techniques</article-title>
          .
          <source>In IFAC World Congress</source>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <given-names>P.</given-names>
            <surname>Ribot</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Pencolé</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Combacau</surname>
          </string-name>
          .
          <article-title>Diagnosis and prognosis for the maintenance of complex systems</article-title>
          .
          <source>In IEEE International Conf. on Systems, Man, and Cybernetics</source>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <given-names>Elodie</given-names>
            <surname>Chanthery</surname>
          </string-name>
          and
          <string-name>
            <given-names>Pauline</given-names>
            <surname>Ribot</surname>
          </string-name>
          .
          <article-title>An integrated framework for diagnosis and prognosis of hybrid systems</article-title>
          .
          <source>In the 3rd Workshop on Hybrid Autonomous System (HAS)</source>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <given-names>S.</given-names>
            <surname>Zabi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Ribot</surname>
          </string-name>
          , and
          <string-name>
            <given-names>E.</given-names>
            <surname>Chanthery</surname>
          </string-name>
          .
          <article-title>Health Monitoring and Prognosis of Hybrid Systems</article-title>
          .
          <source>In Annual Conference of the Prognostics and Health Management Society</source>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <given-names>M.</given-names>
            <surname>Bayoudh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Travé-Massuyès</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Xavier</given-names>
            <surname>Olive</surname>
          </string-name>
          .
          <article-title>Active diagnosis of hybrid systems guided by diagnosability properties</article-title>
          .
          <source>In the 7th IFAC Symposium on Fault Detection, Supervision and Safety of Technical Processes</source>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <given-names>E.</given-names>
            <surname>Chanthery</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Pencolé</surname>
          </string-name>
          , and
          <string-name>
            <given-names>N.</given-names>
            <surname>Bussac</surname>
          </string-name>
          . An AO*
          <article-title>-like algorithm implementation for active diagnosis</article-title>
          .
          <source>In 10th International Symposium on Artificial Intelligence, Robotics and Automation in Space, i-SAIRAS</source>
          ,,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <given-names>T.</given-names>
            <surname>Henzinger</surname>
          </string-name>
          .
          <article-title>The theory of hybrid automata</article-title>
          .
          <source>In Proceedings of the 11th Annual IEEE Symposium on Logic in Computer Science</source>
          , pages
          <fpage>278</fpage>
          -
          <lpage>292</lpage>
          ,
          <year>1996</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <source>IEEE Trans. on Automatic Control</source>
          ,
          <volume>40</volume>
          :
          <fpage>1555</fpage>
          -
          <lpage>1575</lpage>
          ,
          <year>1995</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <given-names>M</given-names>
            <surname>Staroswiecki</surname>
          </string-name>
          and
          <string-name>
            <given-names>G</given-names>
            <surname>Comtet-Varga</surname>
          </string-name>
          .
          <article-title>Analytical redundancy relations for fault detection and isolation in algebraic dynamic systems</article-title>
          .
          <source>Automatica</source>
          ,
          <volume>37</volume>
          (
          <issue>5</issue>
          ):
          <fpage>687</fpage>
          -
          <lpage>699</lpage>
          ,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>M.</given-names>
            <surname>Maiga</surname>
          </string-name>
          , E. Chanthery, and
          <string-name>
            <given-names>L. Travé</given-names>
            <surname>Massuyès</surname>
          </string-name>
          .
          <article-title>Hybrid system diagnosis : Test of the diagnoser hydiag on a benchmark of the international diagnostic competition DXC 2011</article-title>
          .
          <source>In 8th IFAC Symposium on Fault Detection, Supervision and Safety of Technical Processes</source>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>P.</given-names>
            <surname>Ribot</surname>
          </string-name>
          and
          <string-name>
            <given-names>E.</given-names>
            <surname>Bensana</surname>
          </string-name>
          .
          <article-title>A generic adaptative prognostic function for heterogeneous multi-component systems: application to helicopters</article-title>
          .
          <source>In European Safety &amp; Reliability Conference</source>
          , Troyes, France, September
          <volume>18</volume>
          -22
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>