<!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>A case study on graph-based planning for emergency evacuation</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Santa Agreste</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Pasquale De Meo</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Massimo Marchi</string-name>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Maria Francesca Milazzo</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Salvatore Nunnari</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alessandro Provetti</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>DICAM, University of Messina</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>DIECII, University of Messina</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>DMI, University of Messina</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Network services, University of Milan</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>We present a pilot study on the implementation of a software, based on declarative knowledge representation and logic-based automated planning, which assists the management of severe Chemical hazard events, e.g. re or emissions that may require the evacuation of the area surrounding the a ected Chemical plant. We model the geography, the road network and the population of the chemical plant and the surroundings by weighted, labeled graphs, which are updated as the hazardous situation develops. Intervening factors, e.g. the spread of toxic in the air, are represented in the graph in terms of their e ects. Risk for the resident population and possible evacuation plans are evaluated and re-evaluated as the accident develops. Also evacuation plans are contingent and as conditions change may be re-evaluated from scratch; moreover, they may involve complex coordinated actions among the rescue units. Both the evaluation of the emergency scenario and the evacuation planning phases have been prototyped by means of an Answer Set Programming planner.</p>
      </abstract>
      <kwd-group>
        <kwd>Automated Planning</kwd>
        <kwd>Applied Computational Logic</kwd>
        <kwd>Chemical Plants Safety</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>We present a pilot study on the implementation of the central component of a
safety tool for risk evaluation and evacuation planning to be deployed in response
to re or emissions due to accidents at a large Chemical plant5.</p>
      <p>We have created an abstract model of the geography of the chemical plant
and of its surroundings by a weighted, labeled graphs, which is updated as the
hazardous situation unfolds. Evacuation from the surroundings of the plant is
evaluated and planned wrt. to the graph representation. Intervening factors, e.g.
the spread of toxic in the air, are represented in the graph in terms of their e ects.
Evacuation plans are contingent and as conditions change may be re-evaluated
5 Due to legal reasons, at this stage we must omit the name of the plant and of the
residential area for which the tool has been developed.
from scratch. Both the computation of the likely e ects and the planning phase
have been prototyped by an Answer Set Programming planner.</p>
      <p>
        Answer Set Programming (ASP) [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] (also called Stable Logic
Programming (SLP) [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]), is a relatively recent but well-established style of logic
programming: each solution to a problem is represented by an answer set (also called
stable model), and not by answer substitutions produced in response to a query.
A rich literature exists on applications of ASP in many areas, including problem
solving, con guration, information integration, security analysis, agent systems,
semantic web, and planning (see, among many, [
        <xref ref-type="bibr" rid="ref1 ref13 ref2 ref4 ref6">2, 1, 6, 13, 4</xref>
        ] and the references
therein).
      </p>
      <p>
        ASP is the language by which we represent all types of knowledge required
to address this scenario: declarative knowledge about the surroundings,
procedural knowledge about actions (escape actions, take cover actions and so on),
contingencies, and planning as a domain-independent strategy to solve a motion
problem. In this sense, our approach is in the same vein as the pioneer work
of Zepeda and Sol [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] on evacuation as an instance of logic-based automated
planning; the rst complete (and delivered) instance of this approach in their
Plan Popocatpetl project. We believe that our solution represents a marked
improvement and generalization of their approach for the following main reason: we
have adopted an intermediate formal representations with labeled graph for the
representation of the scenario and the a priori evaluation of risk, for the
declarative speci cation of the planning and observing part. These two intermediate
representations make the modularization of the underlying ASP code possible
and manageable thus enabling the higher degree of adaptivity that is required
by the problem.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Evacuation plans</title>
      <p>The drafting of evacuation plans in emergency requires nding a sequence of
actions that lead from an initial state, representing a risk scenario, to a goal
objective, representing a situation where the entire population is rescued (or generally
safe). Unlike the planning scenarios that are traditionally considered in the
Arti cial Intelligence literature, evacuation plans specify administrative/security
policies which can be hard to formulate6|even informally and often hard to
execute even in small scenarios, i.e., those where the number of subjects, the
spacial dimension and the time-scale are reduced.</p>
      <p>Another important di erence is the value to give to the 'do nothing' action.
While in AI planning the so-called nop action is there mostly for padding
xedlength plans, in our applicative scenario they have a precise meaning which must
be re-evaluated constantly: in case of chemical hazard, staying inside the building
and limiting air circulation could be safest option available. Therefore we can
say that automated planning with AI techniques, which is the subject of this
6 See the norms regulating Save
protezionecivile.gov.it/
&amp;
rescue in Italy from
http://www.
paper, is only one dimension of the inherent complexity of emergency evacuation
management.</p>
      <p>The other key element to the formalization of evacuation plans is the
representation of the area, with a dynamic description of elements such as i) source
and type of hazard ii) risk di usion maps, which are speci c to the type of risk,
i.e., iii) number and localization of the population that needs to be evacuated
iv) transport means and their level of mobilization v) Accident &amp; Emergency (A
&amp; E) services with trained personnel and specialized equipment. For know risks,
normally associated to Chemical/energy plants, the complexity of the task is
essentially decreased by the availability of pre-compiled maps, which can specify
the following two types.</p>
      <p>First, during the emergency the danger areas extend (or contract) following
the evolution of the accident, moreover such expansion/contraction is not easily
characterized by simple circumferences around the site of the accident (consider,
e.g., liquid chemicals in rivers, or re under constant-direction winds). Normally,
risk di usion maps create a three-level partition of the areas in i) impact, i.e.,
areas close to the epicenter of the disaster, with high likelihood of lethality, ii)
damage, normally external to the former, where lack of protection would cause
irreversible damage to those who are contaminated, especially children and old
people, and iii) attention, where damage is possible but not irreversible, in any
case requiring medical treatment and possibly causing unrest in the population.</p>
      <p>Second, so-called safe areas and their features. These areas are further
detailed in i) waiting areas, ii) concentration areas for the rescuers and iii) recovery
areas, which are safe places where the refugees will end up as a result of the
evacuation.
3</p>
      <p>Representation of the geography and of the escape
scenarios
Two key aspects of the knowledge representation needed for this planning
instance are the representation of the geography, namely roads and rivers, and of
the level of risk assigned to areas by the domain experts. These information are
synthesized by the risk graph, which is reported in Figure 1 for the rst instance
of problem we considered.</p>
      <p>For comparison, we report in Figure 1 one of the annotated maps, in the
standard format for Geographical Information Systems (GIS) that have been
used to compile the graph in Figure 1. The twenty-one relevant area (called
waypoints) identi ed by the domain experts (in this case, Fire patrol senior
o cers) are connected by 36 relevant routes.</p>
      <p>As it can be noticed in Figure 1, domain experts have assigned each waypoints
to one of 5 levels of risk for the population, according to the following standard
risk scale.</p>
      <p>
        { RiskLevel = 1: recovery area, destination for evacuation plans;
{ RiskLevel = 2: low-risk area, close to recovery areas and far from the risk
areas;
{ RiskLevel = 3: average-risk area, far from recovery areas but su ciently
close to the risk areas;
{ RiskLevel = 4: high-risk area, close to high-risk areas, thus very far from
recovery areas;
{ RiskLevel = 5: high-risk area, the starting point for evacuation plans.
This subsection describes the ASP predicate de nitions that have been
developed to capture the speci c aspects of the evacuation planner. The following
description does not cover the general part of the evacuation planner, which has
been adopted as is from the ASP translation of the action description languages
L0 and L1 developed in [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] and extensively described thereof. The only changes
were made to embed the general rules into an answer-set program ready for
interpretation by the ASP solver DLV [
        <xref ref-type="bibr" rid="ref7 ref8">8, 7</xref>
        ]; the syntax of the ASP program is
thus speci c to that accepted by the DLV grounder.
      </p>
      <p>It should be added that some simplifying assumptions have been embodied
directly in the ASP representation of the planning instance. These assumptions
are taken from the pre-compiled evacuation plan now in use, e.g., that for all
evacuation actions there are some vehicles, typically buses, available to transport
people to recovery areas. Another simpli cation is in the consideration of groups
of evacuees, as opposed to single individuals. The structure of the graph in Figure
1 is embedded into the ASP program by means of the waypoint relation:
group(N ame):
where Name is assigned to thus-formed groups. The cardinality is not speci ed
but as noted above we assume than one vehicle can evacuate a group. The last
type of extensional predicate is for representing the position of the groups on
the map, by this type of facts:</p>
      <p>waypoint(N ame; RiskLevel):
where variables Name and RiskLevel indicate the vertex of the graph and its
assigned risk level. Communication routes, i.e., the edges of the graph are described
by facts of this type:
route(P lace1; P lace2; Length; Criticality):
(2)
where variables Place1 and Place2 indicate the two areas that are connected,
Length captures geographical distance and Criticality is a parameter representing
the danger assigned to the usage of the given connection. Another important
information is the representation of the evacuee groups:
(1)
(3)
holds(position(Group; P lace); 0):
(4)</p>
      <p>Notice how relation position(Group; P lace) is rei ed into a uent; variables
Group and Place have their obvious meaning, whereas time-stamp 0 relates
these facts to the initial state of the planning activity. Of course, we can have
more than one group sitting on the same waiting area, as well as empty waiting
areas. Finally, to describe actions where a certain areas become unreachable,
i.e., a communication route has become nonviable (e.g., busy or disrupted or
dangerous), we use these types of fact:
waypoint blocked(W P 1):
route blocked(W P 1; W P 2):
(5)</p>
      <p>The predicate described above are to be added to the domain description
and changed often, to adapt to the changing scenario, especially the (possible)
disruption of roads, to be acquired, in the full version of this planner, from
real-time GIS information.
4</p>
    </sec>
    <sec id="sec-3">
      <title>Results and open issues</title>
      <p>One of the most important problems to be solved in case of disasters is the
draw and quick deployment of evacuation plans for the population. We describe
a methodology based on knowledge representation and reasoning to formulate
Evacuation Plans, using the intermediate graph representation and the DLV
inferential engine.</p>
      <p>Our evacuation planner considers the present situation, the type of danger,
weather conditions, tra c or other modi cation of the zone to be evacuated,
and formulates alternative evacuation plans to be face-validated on a
case-bycase basis.</p>
      <p>Studying the real case of the External Emergency Plan for a Re nery, we
have implemented a planner able to generate appropriate evacuation plans, on
the basis also of incomplete information derived from a possible Geographic
Information System, supplying a representation of the scenario on the ground.</p>
      <p>
        The results against a benchmark of 5 realistic emergency scenarios are
encouraging: computation times remain within few minutes and the generated
solutions were rated \excellent" by domain experts. From the point of view of
computational logic, these results are entirely satisfactory, and, in our opinion,
should become even more signi cant and widely applicable by the introduction
of two further formal devices. The rst device is the formal apparatus of ASP
programs with weak constraints developed by Leone et al. and implemented in
DLV. Even though there have been successful applications in literature, e.g. [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ],
at the moment, our tests indicate that weak constraints are too heavy
computationally to be deployed in our platform, so we have decided to leave them out
of the current implementation.
      </p>
      <p>
        The second improvement would be a full model of context to be applied to
data, i.e., to redesign the data as to capture their contextual aspects, and have
the devices, e.g., local-cell emergency broadcasting, to selectively handle them,
along the lines of the methodology de ned Rauseo et al. [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ].
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Anger</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schaub</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Truszczynski</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>ASPARAGUS { the Dagstuhl Initiative</article-title>
          .
          <source>ALP Newsletter</source>
          <volume>17</volume>
          (
          <issue>3</issue>
          ) (
          <year>2004</year>
          ), see http://asparagus.cs.uni-potsdam.de
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Baral</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Knowledge representation, reasoning and declarative problem solving</article-title>
          . Cambridge University Press (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Baral</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gelfond</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Provetti</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Representing actions: Laws, observations and hypotheses</article-title>
          .
          <source>Journal of Logic Programming</source>
          <volume>31</volume>
          (
          <issue>1-3</issue>
          ),
          <volume>201</volume>
          {
          <fpage>243</fpage>
          (
          <year>1997</year>
          ), http://dx. doi.org/10.1016/S0743-
          <volume>1066</volume>
          (
          <issue>96</issue>
          )
          <fpage>00141</fpage>
          -
          <lpage>0</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Gelfond</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Answer sets</article-title>
          . In:
          <article-title>Handbook of Knowledge Representation, chapter 7</article-title>
          .
          <string-name>
            <surname>Elsevier</surname>
          </string-name>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Gelfond</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lifschitz</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>The stable model semantics for logic programming</article-title>
          .
          <source>In: ICLP/SLP</source>
          . pp.
          <volume>1070</volume>
          {
          <issue>1080</issue>
          (
          <year>1988</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Leone</surname>
          </string-name>
          , N.:
          <article-title>Logic programming and nonmonotonic reasoning: From theory to systems and applications</article-title>
          . In: Baral,
          <string-name>
            <given-names>C.</given-names>
            ,
            <surname>Brewka</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            ,
            <surname>Schlipf</surname>
          </string-name>
          ,
          <string-name>
            <surname>J.S</surname>
          </string-name>
          . (eds.)
          <source>Logic Programming and Nonmonotonic Reasoning</source>
          , 9th International Conference,
          <string-name>
            <surname>LPNMR</surname>
          </string-name>
          <year>2007</year>
          . p.
          <volume>1</volume>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Leone</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Faber</surname>
            ,
            <given-names>W.:</given-names>
          </string-name>
          <article-title>The dlv project: A tour from theory and research to applications and market</article-title>
          . In: de la Banda,
          <string-name>
            <given-names>M.G.</given-names>
            ,
            <surname>Pontelli</surname>
          </string-name>
          , E. (eds.)
          <source>ICLP. Lecture Notes in Computer Science</source>
          , vol.
          <volume>5366</volume>
          , pp.
          <volume>53</volume>
          {
          <fpage>68</fpage>
          . Springer (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Leone</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pfeifer</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Faber</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Eiter</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gottlob</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Perri</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Scarcello</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>The dlv system for knowledge representation and reasoning</article-title>
          .
          <source>ACM Trans. Comput. Logic</source>
          <volume>7</volume>
          (
          <issue>3</issue>
          ),
          <volume>499</volume>
          {562 (Jul
          <year>2006</year>
          ), http://doi.acm.
          <source>org/10</source>
          .1145/1149114.1149117
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Lifschitz</surname>
          </string-name>
          , V.:
          <article-title>Answer set planning</article-title>
          . In: Schreye, D.D. (ed.)
          <article-title>Logic Programming: The 1999 International Conference</article-title>
          , Las Cruces, New Mexico, USA, November 29 - December 4,
          <year>1999</year>
          . pp.
          <volume>23</volume>
          {
          <fpage>37</fpage>
          . MIT Press (
          <year>1999</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Marek</surname>
            ,
            <given-names>V.W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Truszczynski</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>Stable logic programming - an alternative logic programming paradigm</article-title>
          , pp.
          <volume>375</volume>
          {
          <fpage>398</fpage>
          . Springer (
          <year>1999</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Rauseo</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Martinenghi</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tanca</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Context through answer set programming</article-title>
          . In: Fletcher,
          <string-name>
            <given-names>G.H.L.</given-names>
            ,
            <surname>Staworko</surname>
          </string-name>
          , S. (eds.)
          <source>Proceedings of the 4th International Workshop on Logic in Databases</source>
          , Uppsala, Sweden, (EDBT/ICDT '10 joint conference),
          <source>March</source>
          <volume>25</volume>
          ,
          <year>2011</year>
          , Proceedings. p.
          <fpage>58</fpage>
          .
          <string-name>
            <surname>ACM</surname>
          </string-name>
          (
          <year>2011</year>
          ), http://doi.acm.
          <source>org/10</source>
          .1145/ 1966357.1966369
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Rauseo</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Martinenghi</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tanca</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Contextual data tailoring using ASP</article-title>
          . In: Schewe,
          <string-name>
            <given-names>K.</given-names>
            ,
            <surname>Thalheim</surname>
          </string-name>
          ,
          <string-name>
            <surname>B</surname>
          </string-name>
          . (eds.)
          <article-title>Semantics in Data and Knowledge Bases</article-title>
          , 5th International Workshop, SDKB 2011, Zurich,
          <source>Switzerland, July</source>
          <volume>3</volume>
          ,
          <year>2011</year>
          ,
          <source>Revised Selected Papers. Lecture Notes in Computer Science</source>
          , vol.
          <volume>7693</volume>
          , pp.
          <volume>99</volume>
          {
          <fpage>117</fpage>
          . Springer (
          <year>2011</year>
          ), http://dx.doi.org/10.1007/978-3-
          <fpage>642</fpage>
          -36008-
          <issue>4</issue>
          _
          <fpage>5</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Truszczynski</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Logic programming for knowledge representation</article-title>
          . In: Dahl,
          <string-name>
            <surname>V.</surname>
          </string-name>
          , Niemela, I. (eds.)
          <article-title>Logic Programming</article-title>
          , 23rd International Conference,
          <string-name>
            <surname>ICLP</surname>
          </string-name>
          <year>2007</year>
          . pp.
          <volume>76</volume>
          {
          <issue>88</issue>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Zepeda</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sol</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Evacuation planning using answer set programming: An initial approach</article-title>
          .
          <source>Engineering Letters</source>
          <volume>15</volume>
          (
          <issue>2</issue>
          ),
          <volume>240</volume>
          {
          <fpage>249</fpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>