<!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>Using 3D simulators for the Ambient Assisted Living</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Paolo Sernani</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andrea Claudi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Paolo Calvaresi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Daniele Accattoli</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Roberto Tofani</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Aldo Franco Dragoni</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dipartimento di Ingegneria dell'Informazione (DII) Universiat` Politecnica delle Marche Via Brecce</institution>
          <addr-line>Bianche 60131 Ancona</addr-line>
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <fpage>16</fpage>
      <lpage>20</lpage>
      <abstract>
        <p>Ambient Assisted Living (AAL) and Ambient Intelligence (AmI) aim at building safe, smart and interconnected environments around people. Nevertheless, the testing phase of intelligent software systems managing smart homes, in real environments, requires an enormous effort in terms of time, work and money. With this paper, we discuss the possibility to use 3D virtual environments during the developing and preliminary tests of such systems, as it happens in robotics with 3D simulators. Even if this approach cannot totally replace the need of real user trials, it can speed up the implementation of prototypes, decoupling software from hardware. We also present a brief description of a proof-of-concept, showing some of the benefits described.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>– with real human inhabitants with different kinds of impairments;
– in different environmental situations;
– taking into account diverse economical conditions.</p>
      <p>Such trials will be also extremely expensive, especially for the development of
software prototypes that would require the hardware for a great number of tests;
furthermore the result of this effort could be the need to modify or redesign some
components (and thus to repeat tests).</p>
      <p>A virtual 3D environment, simulating an interface with necessary sensors
and actuators could be an effective tool to develop, simulate and test intelligent
systems with the aim to extend the time people can (autonomously) live in their
preferred environment.</p>
      <p>This paper discusses the possibility to use 3D virtual environments and
simulators for the AAL, analysing challenges and potential advantages. Using virtual
environments to accurately reproduce real environments would allow a partial
decoupling of the software development from the hardware development. Moreover
it would improve the economical sustainability of the development of software to
control smart homes, speeding up the implementation of prototypes and allowing
the use of real environments only for release candidate versions. Finally it would
provide an environment where researchers in the AAL could easily collaborate
and combine their findings.</p>
      <p>The paper is structured as follows: section 2 lists some current applications
of virtual words in the AAL domain; section 3 discusses the challenges in the
use of virtual environments to test intelligent software systems for the AAL;
section 4 describes the implementation of a preliminary proof-of-concept, based
on a robotics simulator; finally, section 5 concludes the paper, suggesting future
research directions.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Related Works</title>
      <p>
        Most of the current applications of virtual worlds in the AAL are addressed
to motor and cognitive rehabilitation [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] and to improve social inclusion [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
In particular serious gaming has been widely adopted in rehabilitation. Indeed,
typical game features (as providing challenges and goals, stimulating curiosity,
cooperation, competition [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]) enhance user engagement and intrinsic motivation:
thus serious games can support users in developing their skills, in learning and
in experiencing situations that are impossible (e.g. for economical reasons) in
the real world [
        <xref ref-type="bibr" rid="ref7 ref8">7, 8</xref>
        ]. For these reasons, virtual reality and serious games are also
used in therapies for pain management [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. Beyond rehabilitation, a promising
direction is the use of serious gaming for the acceptance of facility automation
and smart homes [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. Moreover the use of Interactive Scenario Visualization
(ISV) can lead to the clarification of system functionalities, as well as to gain
stakeholders’ feedback [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], especially in the design phase.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>3D Virtual Environments for the AAL</title>
      <p>The use of 3D virtual environments to develop intelligent software systems to
manage virtual homes is inspired by the robotics field, where a relevant number
of 3D software simulators is available. The basic concept is to use a 3D simulator
that exposes the interfaces to sensors and actuators (through suitable libraries)
available in the market and that allows to create a virtual home environment:
here, intelligent software systems could be tested to evaluate their behaviour,
even when facing unexpected events. Ideally, the intelligent systems should be
migrated transparently in a real environment with the sensors and actuators
previously simulated.</p>
      <p>To this point, one might argue that there is no need to use the 3D for AAL
simulations. Nevertheless, the 3D feature gives not only the involvement typical
of graphical effects, but should provide to system developers the possibility to
interact directly with the simulations, for example moving objects on the fly.
With a reliable physics engine (as those typical of computer games),
developers can simulate unexpected events and thus understand if the system behaves
correctly.</p>
      <p>
        In a complete 3D simulator for the AAL, also human behaviours should be
represented: the involved research topics are similar to the inclusion of human
reasoning mechanism in computer games and serious games, by exploiting the
results of the Artificial Intelligence (AI) field [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]:
– the selection of the suitable AI approach to model and imitate human
behaviours especially taking into account the need of human like responsiveness
and communication.
– The influence of the adoption of strong AI techniques to imitate human
reasoning on the simulator design, since a well identified problem in computer
game design is the introduction of the AI in the last phases.
– The definition of suitable goals and metrics to test intelligent software
systems for the AAL.
      </p>
      <p>
        A promising direction is the design and implementation of virtual characters
as BDI agents (see, for instance, [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] for the development of BDI based
NonPlayer Characters (NPC) in computer games). Although this approach is ideal to
implement virtual characters capable of carrying out long-term autonomous
actions, it leads to several sub-problems: balancing between proactive and reactive
behaviours, scheduling properly goals on the basis of the application domain,
representing the environment in a symbolic manner and translating this
representation in the interaction with the simulator engine.
      </p>
      <p>
        To obtain the advantages described in the introduction section, a clear
requirements analysis (as suggested in [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]) is needed: firstly system developers,
as the prominent users of 3D simulators, and their needs have to be taken into
account; moreover patients, their relatives, physicians and health operators with
their needs about AAL systems and their personal experience may give a crucial
contribution in the identification of the simulation scenarios.
4
      </p>
    </sec>
    <sec id="sec-4">
      <title>A proof-of-concept example</title>
      <p>
        To show some of the benefits, we implemented a proof-of-concept, using the
multi-agent expert system described in [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]. To create the 3D environment, we
used the outdoor multi-robot simulators Gazebo [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] and Morse [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]. Figure 1
shows the virtual domestic environment composed by four rooms.
      </p>
      <p>
        Thanks to the CameraSensor and the RaySensor classes provided by Gazebo,
we simulated two scenarios to test the behaviour of the multi-agent system
controlling the home: in the first the expert system has to aerate the rooms by
opening the windows, but keeping closed the one in the room where the assisted
person actually stays; moreover it has to close and open windows coherently with
the movements of the patient, using data provided by ray sensors. In the second
scenario the system has to detect the fall of the patient, sending an alarm. To
implement these scenarios, we added some agents to the architecture in [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]:
two Ambient Agents (the Gateway and the Camera Agents, to control the ray
and the camera sensors) and two Actuator Agents (the WindowActuator and
the CameraActuator Agents to send commands to the windows and the video
cameras in the environment). We carried out tests also using the Morse
simulator. We added also a wheelchair, temperature sensors, gas detectors and light
sensors. We tested the control of the home through a mobile application using
both touch and vocal commands1.
      </p>
      <p>Beyond the implemented scenarios, the communication between the software
agents and the sensors in the 3D environment highlights the potential of the
simulations: being based on the TCP/IP protocol, each agent creates a socket
channel to send commands to the sensors. Thus, if virtual sensors provide the
same interface as off-the-shelf sensors (as those implemented in Gazebo and in
similar robotics simulators), the developed agents can be easily migrated in real
environments. This is an advantage also when a real system is running: new
agents can be implemented in virtual environments and added to the real one;
moreover existing ones can be migrated in the virtual environment for
maintenance.
5</p>
    </sec>
    <sec id="sec-5">
      <title>Conclusions</title>
      <p>We discussed on the opportunity to simulate virtual 3D environments to design
and develop intelligent software system to control smart homes for the AAL.
Even if such an approach cannot completely replace user trials before the
everyday use, it can speed up the development of prototypes as well as simplify the
maintenance and the update of existing systems.</p>
      <p>Instead of using a robotics simulator, as in our simple proof-of-concept, a
dedicated AAL simulator (with a physics engine) could be developed, in order to
adhere to specific AAL needs: it could be an ideal platform to combine the efforts
of the AAL research community for the development of assistive technologies.
1 For a video of the Morse simulation and the mobile application see
http://www.youtube.com/watch?v=zXEpShRNGuo</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1. World Health Organization:
          <article-title>Global health and ageing</article-title>
          . (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Sun</surname>
          </string-name>
          , H.,
          <string-name>
            <surname>De Florio</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gui</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Blondia</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Promises and challenges of ambient assisted living systems</article-title>
          .
          <source>In: Information Technology: New Generations</source>
          ,
          <year>2009</year>
          . ITNG '
          <volume>09</volume>
          . Sixth International Conference on. (
          <year>2009</year>
          )
          <fpage>1201</fpage>
          -
          <lpage>1207</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Sadri</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Ambient intelligence: A survey</article-title>
          .
          <source>ACM Computing Surveys</source>
          <volume>43</volume>
          (
          <issue>4</issue>
          ) (
          <year>2011</year>
          )
          <fpage>1</fpage>
          -
          <lpage>66</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Rego</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Moreira</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Reis</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Serious games for rehabilitation: A survey and a classification towards a taxonomy</article-title>
          .
          <source>In: Information Systems and Technologies (CISTI)</source>
          ,
          <year>2010</year>
          5th Iberian Conference on. (
          <year>2010</year>
          )
          <fpage>1</fpage>
          -
          <lpage>6</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Cascado</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Romero</surname>
            ,
            <given-names>S.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hors</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Brasero</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fernandez-Luque</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sevillano</surname>
            ,
            <given-names>J.L.</given-names>
          </string-name>
          :
          <article-title>Virtual worlds to enhance ambient-assisted living</article-title>
          .
          <source>In: Annual International Conference of the IEEE Engineering in Medicine and Biology Society</source>
          . (
          <year>2010</year>
          )
          <fpage>212</fpage>
          -
          <lpage>215</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Malone</surname>
            ,
            <given-names>T.W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lepper</surname>
            ,
            <given-names>M.R.</given-names>
          </string-name>
          :
          <article-title>Making learning fun: A taxonomy of intrinsic motivations for learning</article-title>
          .
          <source>In: Aptitude, learning, and instruction 3</source>
          . (
          <year>1987</year>
          )
          <fpage>223</fpage>
          -
          <lpage>253</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Susi</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Johannesson</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Backlund</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Serious games: an overview</article-title>
          .
          <source>Technical Report HS-IKI-TR-07-001</source>
          , School of Humanities and Informatics, University of Sko¨vde (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Connolly</surname>
            ,
            <given-names>T.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Boyle</surname>
            ,
            <given-names>E.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>MacArthur</surname>
          </string-name>
          , E.,
          <string-name>
            <surname>Hainey</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Boyle</surname>
            ,
            <given-names>J.M.:</given-names>
          </string-name>
          <article-title>A systematic literature review of empirical evidence on computer games and serious games</article-title>
          .
          <source>Computers &amp; Education</source>
          <volume>59</volume>
          (
          <issue>2</issue>
          ) (
          <year>2012</year>
          )
          <fpage>661</fpage>
          -
          <lpage>686</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Simmonds</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zikos</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Computer games to decrease pain and improve mood and movement</article-title>
          .
          <source>In: Proceedings of the the 7th ACM International Conference on PErvasive Technologies</source>
          Related to Assistive
          <source>Environments (PETRA</source>
          <year>2014</year>
          ).
          <article-title>(</article-title>
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Leonhardt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kassel</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Randow</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Teich</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Learning in the context of an ambient assisted living apartment: Including methods of serious gaming</article-title>
          . In Motta, G.,
          <string-name>
            <surname>Wu</surname>
          </string-name>
          , B., eds.:
          <article-title>Software Engineering Education for a Global E-Service Economy. State of the Art, Trends and Developments</article-title>
          . Progress in IS. Springer International Publishing (
          <year>2014</year>
          )
          <fpage>49</fpage>
          -
          <lpage>55</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Van't Klooster</surname>
          </string-name>
          , J.W.,
          <string-name>
            <surname>Van Beijnum</surname>
            ,
            <given-names>B.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Eliens</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hermens</surname>
          </string-name>
          , H.:
          <article-title>Interactive scenario visualization for user-based service development</article-title>
          .
          <source>In: Proceedings of the 2012 International Conference on Collaboration Technologies and Systems</source>
          ,
          <string-name>
            <surname>CTS</surname>
          </string-name>
          <year>2012</year>
          .
          <article-title>(</article-title>
          <year>2012</year>
          )
          <fpage>498</fpage>
          -
          <lpage>503</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Dignum</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Agents for games and simulations</article-title>
          .
          <source>Autonomous Agents and MultiAgent Systems</source>
          <volume>24</volume>
          (
          <issue>2</issue>
          ) (
          <year>2012</year>
          )
          <fpage>217</fpage>
          -
          <lpage>220</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Palazzo</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dolcini</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Claudi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Biancucci</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sernani</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ippoliti</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Salladini</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dragoni</surname>
            ,
            <given-names>A.F.</given-names>
          </string-name>
          :
          <article-title>Spyke3D: A new computer games oriented BDI agent framework</article-title>
          . In: Computer Games: AI, Animation, Mobile, Interactive Multimedia, Educational &amp; Serious
          <string-name>
            <surname>Games</surname>
          </string-name>
          (CGAMES),
          <year>2013</year>
          18th International Conference on,
          <source>IEEE</source>
          (
          <year>2013</year>
          )
          <fpage>49</fpage>
          -
          <lpage>53</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Calvaresi</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sturm</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yu</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dragoni</surname>
            ,
            <given-names>A.F.</given-names>
          </string-name>
          :
          <article-title>Exploring domain requirements and technology solutions: a goal modeling approach</article-title>
          .
          <source>In: Proceedings of the 7th International iStar Workshop (iStar14)</source>
          .
          <article-title>(</article-title>
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Sernani</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Palazzo</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Claudi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dolcini</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Biancucci</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Trentalange</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dragoni</surname>
            ,
            <given-names>A.F.</given-names>
          </string-name>
          :
          <article-title>Virtual carer: A BDI agent system for Ambient Assisted Living</article-title>
          .
          <source>In: 2nd International Workshop on Artificial Intelligence and NetMedicine</source>
          (NetMed
          <year>2013</year>
          ).
          <article-title>(</article-title>
          <year>2013</year>
          )
          <fpage>14</fpage>
          -
          <lpage>23</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16. Gazebo:
          <article-title>Robot simulation made easy</article-title>
          .
          <source>Retrieved May 20</source>
          ,
          <year>2014</year>
          , from http://gazebosim.org (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Morse</surname>
          </string-name>
          <article-title>: the modular openrobots simulation engine</article-title>
          .
          <source>Retrieved May 20</source>
          ,
          <year>2014</year>
          , from http://www.openrobots.org/wiki/morse/ (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>