<!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>Explaining the Behaviour of Hybrid Systems with PDDL+ Planning (Extended Abstract)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Diego Aineto</string-name>
          <email>diego.ainetogarcia@unibs.it</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Eva Onaindia</string-name>
          <email>onaindia@upv.es</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Miquel Ramirez</string-name>
          <email>miquel.ramirez@unimelb.edu.au</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Enrico Scala</string-name>
          <email>enrico.scala@unibs.it</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ivan Serina</string-name>
          <email>ivan.serina@unibs.it</email>
        </contrib>
      </contrib-group>
      <pub-date>
        <year>2022</year>
      </pub-date>
      <abstract>
        <p>2Universitat Politècnica de València 3University of Melbourne A hybrid system (HS) is a dynamical system that exhibits a discrete and continuous behaviour, and captures the control of continuously evolving physical activities typical in automated manufacturing, chemical engineering and robotics systems. A hybrid trajectory is a particular execution of the HS that interleaves discrete and continuous behaviour. We aim to solve the problem of finding a hybrid trajectory that matches a sequence of observations of an HS. This problem, which we name the HS Explanation (HSE hereinafter) problem [ 1], is related to the Decoding [2] and Plan Recognition problems [3] studied in purely symbolic settings and enables the extension of such theories to hybrid settings [4, 5, 6, 7]. Figure 1 illustrates the HSE problem in a motion domain in planar space where observations are circular regions parameterized by a radius  ∈ {5, 10, 20, 40} . The black line represents the true trajectory while colored lines are explanations that match the observations for diferent values of  .</p>
      </abstract>
      <kwd-group>
        <kwd>Abstract)</kwd>
        <kwd>Hybrid system</kwd>
        <kwd>hybrid automata</kwd>
        <kwd>model checking</kwd>
        <kwd>automated planning</kwd>
        <kwd>explanation</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. The Hybrid System Explanation Problem</title>
      <p>
        Thermostat Platoon Flight
Size HC dR HSE_P HSE_P dR HSE_P HSE_P dR HSE_P HSE_P
2 10 (0.1) 10 (0.2) 10 (0.5) 10 (0.5) 0 10 (1.1) 10 (0.6) 10 (0.3) 10 (0.6) 10 (0.5)
4 10 (0.5) 10 (0.5) 10 (0.6) 10 (0.6) 0 10 (1.0) 10 (0.6) 1 (14) 10 (2.8) 10 (0.7)
6 10 (0.7) 8 (44) 10 (0.6) 10 (0.6) 0 10 (0.7) 10 (0.6) 0 10 (1.3) 10 (0.8)
8 10 (1.3) 3 (15) 10 (0.6) 10 (0.6) 0 10 (0.8) 10 (0.6) 0 10 (1.6) 10 (0.8)
10 10 (1.6) 0 10 (0.7) 10 (0.6) 0 10 (4.3) 10 (0.7) 0 10 (17) 10 (0.8)
20 10 (11) 0 10 (1.4) 10 (0.7) 0 10 (3.9) 10 (0.9) 0 7 (74) 10 (1.3)
30 10 (60) 0 10 (3.1) 10 (1.0) 0 8 (67) 10 (1.1) 0 1 (127) 10 (1.6)
40 10 (118) 0 10 (5.2) 10 (1.1) 0 1 (191) 10 (1.4) 0 0 10 (1.9)
50 5 (261) 0 10 (8.2) 10 (1.3) 0 0 10 (1.5) 0 0 10 (2.3)
60 0 0 10 (14) 10 (1.6) 0 0 10 (1.9) 0 0 10 (3.5)
70 0 0 10 (20) 10 (1.8) 0 0 10 (2.2) 0 0 10 (4.3)
80 0 0 10 (27) 10 (1.9) 0 0 10 (2.4) 0 0 10 (5.8)
90 0 0 10 (38) 10 (2.2) 0 0 10 (2.8) 0 0 10 (9.4)
100 0 0 10 (49) 10 (2.5) 0 0 10 (3.1) 0 0 10 (14)
problem and to use the planning technology to solve it. We formulate the HSE problem through
two HA: one automaton models the behaviour of the HS, and the other one tracks the run of
the HS and checks when the produced trajectory matches the observations. The composition
of both HA efectively restricts the trajectories of the HS to those that are consistent with the
observations, that is, to the language of explanations. We then formalize the HSE problem as an
optimization problem that looks over the language of explanations to find the most suitable
one. In principle, this problem can be solved as a model checking (MC) problem but MC tools
struggle to find concrete trajectories, assume limited knowledge of the systems dynamics, or
only handle simple dynamics. To overcome this limitation, we further provide a formal mapping
from HA to PDDL+ [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], which enables the use of of-the-shelf automated planners and powerful
AI Planning heuristics that have in the past proven very efective for finding trajectories [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Empirical Analysis</title>
      <p>
        We evaluate our approach on three domains with diferent types of dynamics: Thermostat
(piecewise constant), Platoon (linear) and Flight (nonlinear) and with problem sizes ranging from 2 to
100 observations. As baselines we use dReach [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] and HyComp1 [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ], two MC tools that are
able to generate counter-examples (explanations in our setting). We used the ENHSP planner
[
        <xref ref-type="bibr" rid="ref13 ref14 ref15">13, 14, 15</xref>
        ] for the 2 configurations of our planning approach: a basic translation (HSE_P)
and an optimisation (HSE_P ) supported by [1, Theorem 3.7]. Table 1 reports the number of
problems solved (out of 10) and the median time over successful runs (shown in parentheses)
using a time budget of 300s per problem. We observe that HyComp and dReach scale up poorly
and were only able to solve the smaller instances. HSE_P shows better performance than the
MC tools, but is still unable to solve the full suite of problems as computation times quickly
ramp up for the linear and nonlinear domains. HSE_P , however, solves all the problems while
keeping run-time low, hinting that it would be able to scale up to larger instances.
1No results for Platoon and Flight are shown for HyComp as it only supports the piece-wise constant dynamics.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>D.</given-names>
            <surname>Aineto</surname>
          </string-name>
          , E. Onaindia,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ramirez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Scala</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Serina</surname>
          </string-name>
          ,
          <article-title>Explaining the behaviour of hybrid systems with pddl+ planning</article-title>
          , in
          <source>: Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence, IJCAI-22</source>
          ,
          <year>2022</year>
          , pp.
          <fpage>4567</fpage>
          -
          <lpage>4573</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>D.</given-names>
            <surname>Aineto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Jimenez</surname>
          </string-name>
          , E. Onaindia,
          <article-title>Observation decoding with sensor models: Recognition tasks via classical planning</article-title>
          ,
          <source>in: Proceedings of the International Conference on Automated Planning and Scheduling</source>
          , volume
          <volume>30</volume>
          ,
          <year>2020</year>
          , pp.
          <fpage>11</fpage>
          -
          <lpage>19</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>M.</given-names>
            <surname>Ramírez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Gefner</surname>
          </string-name>
          ,
          <article-title>Plan Recognition as Planning</article-title>
          , in: International Joint conference on Artifical Intelligence,
          <source>(IJCAI-09)</source>
          , AAAI Press,
          <year>2009</year>
          , pp.
          <fpage>1778</fpage>
          -
          <lpage>1783</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>D.</given-names>
            <surname>Aineto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Jiménez</surname>
          </string-name>
          , E. Onaindia,
          <article-title>Generalized temporal inference via planning</article-title>
          ,
          <source>in: Proceedings of the International Conference on Principles of Knowledge Representation and Reasoning</source>
          , volume
          <volume>18</volume>
          ,
          <year>2021</year>
          , pp.
          <fpage>22</fpage>
          -
          <lpage>31</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>D.</given-names>
            <surname>Aineto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Jiménez</surname>
          </string-name>
          , E. Onaindia,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ramírez</surname>
          </string-name>
          ,
          <article-title>Model Recognition as Planning</article-title>
          ,
          <source>in: International Conference on Automated Planning and Scheduling</source>
          ,
          <source>(ICAPS-19)</source>
          ,
          <year>2019</year>
          , pp.
          <fpage>13</fpage>
          -
          <lpage>21</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>D.</given-names>
            <surname>Aineto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Jiménez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Onaindia</surname>
          </string-name>
          ,
          <article-title>Learning action models with minimal observability</article-title>
          ,
          <source>Artificial Intelligence Journal</source>
          <volume>275</volume>
          (
          <year>2019</year>
          )
          <fpage>104</fpage>
          -
          <lpage>137</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>D.</given-names>
            <surname>Aineto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Jiménez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Onaindia</surname>
          </string-name>
          ,
          <article-title>Learning STRIPS action models with classical planning</article-title>
          ,
          <source>in: International Conference on Automated Planning and Scheduling</source>
          ,
          <source>(ICAPS-18)</source>
          ,
          <year>2018</year>
          , pp.
          <fpage>399</fpage>
          -
          <lpage>407</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>T. A.</given-names>
            <surname>Henzinger</surname>
          </string-name>
          ,
          <source>The Theory of Hybrid Automata, in: Verification of Digital and Hybrid Systems</source>
          , Springer Berlin Heidelberg,
          <year>2000</year>
          , pp.
          <fpage>265</fpage>
          -
          <lpage>292</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>M.</given-names>
            <surname>Fox</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Long</surname>
          </string-name>
          ,
          <article-title>Modelling mixed discrete-continuous domains for planning</article-title>
          ,
          <source>J. Artif. Intell. Res</source>
          .
          <volume>27</volume>
          (
          <year>2006</year>
          )
          <fpage>235</fpage>
          -
          <lpage>297</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>M.</given-names>
            <surname>Wehrle</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Helmert</surname>
          </string-name>
          ,
          <article-title>The Causal Graph Revisited for Directed Model Checking</article-title>
          , in: SAS,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>S.</given-names>
            <surname>Kong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Gao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E. M.</given-names>
            <surname>Clarke</surname>
          </string-name>
          , dReach:
          <article-title>-Reachability Analysis for Hybrid Systems</article-title>
          , in: TACAS,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>A.</given-names>
            <surname>Cimatti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Griggio</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Mover</surname>
          </string-name>
          , S. Tonetta,
          <article-title>HyComp: An SMT-Based Model Checker for Hybrid Systems</article-title>
          , in: TACAS,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>E.</given-names>
            <surname>Scala</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Haslum</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Thiébaux</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ramirez</surname>
          </string-name>
          ,
          <article-title>Subgoaling techniques for satisficing and optimal numeric planning</article-title>
          ,
          <source>Journal of Artificial Intelligence Research</source>
          <volume>68</volume>
          (
          <year>2020</year>
          )
          <fpage>691</fpage>
          -
          <lpage>752</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>E.</given-names>
            <surname>Scala</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Saetti</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Serina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. E.</given-names>
            <surname>Gerevini</surname>
          </string-name>
          ,
          <article-title>Search-guidance mechanisms for numeric planning through subgoaling relaxation</article-title>
          ,
          <source>in: ICAPS</source>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>M.</given-names>
            <surname>Ramírez</surname>
          </string-name>
          , E. Scala,
          <string-name>
            <given-names>P.</given-names>
            <surname>Haslum</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Thiébaux</surname>
          </string-name>
          ,
          <article-title>Numerical integration and dynamic discretization in heuristic search planning over hybrid domains</article-title>
          ,
          <source>CoRR abs/1703</source>
          .04232 (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>