<!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>Use of Ontology to Model the Perception of the Environment by a Humanoid Robot</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Helio Azevedo</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jose´ Pedro Ribeiro Belo</string-name>
          <email>josepedroribeirobelo@usp.br</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Isaque E. de Souza</string-name>
          <email>isaque.souzag@cti.gov.br</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Roseli A. F. Romero</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Center for Information Technology Renato Archer (CTI) Campinas - SP -</institution>
          <country country="BR">Brazil</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of Sa ̃o Paulo (USP) Sa ̃o Carlos - SP -</institution>
          <country country="BR">Brazil</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Social robotics is a research area that aims to develop models that allow robots and humans to interact naturally. One of the factors that compromises the evolution of social robotics is the difficulty in integrating cognitive and robotic systems, mainly due to the volume and complexity of the information existing in a dynamic environment. In this work, we are proposing an ontology, named OntPercept, for formalize the communication between the cognitive and robotic systems. Thanks to this ontology is possible to model the environment perception using the information captured by the sensors present in the robotic system. It will be shown that OntPercept simplifies the development, reproduction and comparison of experiments associated with social robotics.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Robots are capable of millimeter-precision movements by performing repetitive tasks
operating in structured environments where objects are in known and predictable locations.
Thus, it is not surprising that robots are used more in manufacturing operations, such as
painting and welding, instead of operations where, diversity of actions, direct contact with
humans and changes in the environment are part of the system requirements.</p>
      <p>
        Despite its complexity, the demand for the use of robotic agents in environments
other than manufacturing is a necessity of modern society. The World Robotics 2017
report [IFR 2017] indicates a cumulative volume of around 27 billion U.S. dollars in the
service robots sales forecast for the 2018-2020 biennium. This upward trend in the use of
service robots requires a growth in research involving Human-Robot Interaction (HRI),
in particular in the sub-area defined by
        <xref ref-type="bibr" rid="ref7">Fong [Fong et al. 2003</xref>
        ] as Socially Interactive
Robots (SIR) or “Social Robotics”, the term used in this article.
      </p>
      <p>
        This work contributes in this process by developing an environment directed to
social robotics involving the areas of ontology, HRI and cognitive science. For this,
in our previous work, an architecture, named “Cognitive Model Development
Environment (CMDE)” was proposed [
        <xref ref-type="bibr" rid="ref3 ref4">Azevedo et al. 2017</xref>
        b] [
        <xref ref-type="bibr" rid="ref3 ref4">Azevedo et al. 2017</xref>
        a]. The aim of
CMDE was to accelerate the development of social robotic systems establishing a clear
communication between the cognitive system and the robotic system responsible for
generating the environment perception (in Fig. 1).
      </p>
      <p>Copyright © 2020 for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).</p>
      <p>An important component of CMDE is the OntPercept ontology, that is responsible
for formalizing the communication of the environment perception data from Cognitive to
Robotic System. Since its first version in 2017 1, two were the focus of evolution:
optimization of objects access (bypassing performance issues of the producer-consumer
information exchange model used with the triple store) and inclusion of the memory concept
as a resource for robot long term interaction.</p>
      <p>The organization of this article follows the steps used to create an ontology. The
hierarchy, concepts and properties of the OntPercept are detailed in Section 2. In Section
3 is presented the test environment. In Section 4, the conclusion of this work is presented.</p>
    </sec>
    <sec id="sec-2">
      <title>2. The OntPercept ontology</title>
      <p>The ontology presented in this article emphasizes the need to formalize the information
that transits between the processing nodes defined by CMDE architecture (Fig. 1). The
idea is to enable the cognitive system to receive perception information from the
environment with a high level of cognition.</p>
      <p>
        The development of an ontology is accelerated by the use of appropriate modeling
methodologies and tools. This work uses the Ontology Development 101 methodology
[
        <xref ref-type="bibr" rid="ref11">Noy and Mcguinness 2001</xref>
        ], which proposes seven steps for the construction of an
ontology. In Table 1, the methodology steps instantiated in the context of OntPercept are
shown. The
        <xref ref-type="bibr" rid="ref14">Prote´ge´ editor [Prote´ge´ 2020</xref>
        ] was selected to model OntPercept. After
modeling, it is possible to identify anomalies using the Pellet reasoner [
        <xref ref-type="bibr" rid="ref15">Stardog-Union 2017</xref>
        ]
tool, available as a plugin in the Prote´ge´ editor.
      </p>
      <p>1Initially the ontology was called OntSense, the name was changed to ontPercept to distance itself from
the sensor notion and reflect the essence of this ontology: environment perception.</p>
    </sec>
    <sec id="sec-3">
      <title>2.1. The OntPercept Development</title>
      <p>
        An important feature of the OntPercept is adherence to the standards of international
organizations with the aim of minimizing effort and providing a better dissemination of the
results. In Fig. 2, the relationship with top-level ontologies is presented as well as the
main concepts of the new ontology. The upper block of this figure presents the top
ontologies, namely: SUMO [
        <xref ref-type="bibr" rid="ref13">Pease 2019</xref>
        ]and
        <xref ref-type="bibr" rid="ref9">IEEE 1872</xref>
        /2015 [
        <xref ref-type="bibr" rid="ref9">IEEE, R&amp;A Society 2015</xref>
        ].
namely: SUMO [
        <xref ref-type="bibr" rid="ref13">Pease 2019</xref>
        ], which provides a high-level view of existing objects in the
world, and
        <xref ref-type="bibr" rid="ref9">IEEE 1872</xref>
        /2015 [
        <xref ref-type="bibr" rid="ref9">IEEE, R&amp;A Society 2015</xref>
        ], which provides specific objects
associated with robotics and automation.
      </p>
      <p>
        In the lower block, the key concepts of OntPercept are presented. The concept
OntPercept:RobotPerceptionEvent represents the super class used as a basis for defining
the environment perception. All other concepts derive or maintain a relationship with this
super class. Next, we will explore the OntPercept:RobotMemory concept. Details of the
other concepts can be obtained at [
        <xref ref-type="bibr" rid="ref2">Azevedo 2018</xref>
        ].
      </p>
      <p>
        OntPercept:RobotMemory concept: Although not directly associated with environment
perception, the OntPercept:RobotMemory2 concept represents the initial step in the
implementation of robotic long-term interaction systems. In this work, information retrieval
is associated with the use of retrieval cues3 stored together with the information
content. The idea is to use association mechanisms similar to those used in the memorization
process of humans [
        <xref ref-type="bibr" rid="ref10">McLeod 2018</xref>
        ]. To achieve this goal, the memory register is stored
with information from the environment perception. The memory register is modeled by
the SUMO:Object and SUMO:Process classes. The SUMO:Object class roughly
corresponds to the class of ordinary objects and the SUMO:Process class models the class of
things that happen and have temporal parts or stages [
        <xref ref-type="bibr" rid="ref13">Pease 2019</xref>
        ] (Fig. 3).
      </p>
      <p>2In this work, the term “memory” represents the structures and processes associated with the storage
and retrieval of information or experiences.</p>
      <p>3A retrieval cue is a hint or clue that can help retrieval.</p>
      <p>In Table 2, it can be found the properties of the OntPercept:RobotMemory concept.
Basically, the core is represented by a relationship with an instance of the SUMO:Entity
class, which is super class of SUMO:Object and SUMO:Process. The other relationships
represent cues that allow the retrieval of the memory register: capture time, event duration
and the sensory environment perception at capture time.</p>
      <p>
        An important memory concept feature is associated with the forgetting process.
In humans the action of forgetting information from the Long Term Memory (LTM) can
be explained using the following theories: interference, retrieval failure and lack of
consolidation [
        <xref ref-type="bibr" rid="ref10">McLeod 2018</xref>
        ]. The Interference Theory states that forgetting occurs because
of interference with other records, either by inhibition caused by an earlier record with
similar characteristics or by overlapping the old record by the new one. The Retrieval
Failure Theory states that a given record cannot be recovered because cues (e.g. smell,
local, emotion and mood) are not present. In the Lack of Consolidation Theory, forgetting
occurs due to biological failures in the record storage.
      </p>
      <p>Unfortunately, robot memory is finite, and judicious use of memory is advisable.
Two theories mentioned above may assist in the memory management process. The
Interference Theory can be used to replace one robot’s experience with another similar, where
the robot has succeeded in its operation. On the other hand, the absence of pointers to the
memory register can be used as a catalyst for garbage collector operations in the records,
similarly to Retrieval Failure Theory. Note that by using ontology to formalize
memory operations, axioms can be created to identify these obsolete records. Subsequently,
reasoning tools4 identify these records and triggers actions for their removal.</p>
    </sec>
    <sec id="sec-4">
      <title>2.2. Building the OntPercept ontology</title>
      <p>
        In Fig. 4, the relationships established between OntPercept classes and top-level
ontologies are presented. Classes from SUMO are flagged in green and
        <xref ref-type="bibr" rid="ref9">IEEE 1872</xref>
        -2105 in
4By reasoning we mean deriving facts that are not explicitly expressed in ontology or knowledge base
[
        <xref ref-type="bibr" rid="ref12">Obitko 2007</xref>
        ].
blue. As an example, the properties generateBy, hasCaptureTime and isSenseOf
associated with the class OntPercept:RobotPerceptionEvent represent relationships with
toplevel ontologies. Finally, it is also worth to mention the class SUMO:Object that models
the elements present in the environment.
      </p>
    </sec>
    <sec id="sec-5">
      <title>2.3. Providing interfaces for OntPercept</title>
      <p>The final step established by the “Ontology Development 101” methodology involves the
generation, storage and retrieval of object instances. The strategy adopted to enable the
handling of instances is presented in Fig. 5, with the definition of three processing nodes:
Cognition Node, responsible for the implementation of the cognitive system, SPARQL
Server Node, which implements a database with sensory information and Robotic Agent
Node, which directly controls all sensors and actuators of the robotic agent.</p>
      <p>Basically, the robotic agent obtains information from the environment and routes it
to the cognitive system using a predefined communication protocol such as REST/HTTP.
The cognitive system (“Cognition Node”) processes the environment perception
information, makes decisions and sends actions to the robotic agent via socket communication.</p>
      <p>In order to reduce end-user effort, it was created two APIs to access the “SPARQL
Server Node”. These APIs provide a simpler interface for using the technologies
mentioned here (see Fig. 5). The APIs implement insertion and retrieval operations of
perception events captured by the robotic agent.</p>
      <p>The use of a triple store for sending the environment perception represents a
bottleneck in this deployment. In one cycle, dozens of information are stored in the triple
store by the Robotic Node and then, they are read and immediately removed by the
Cognition Node. In order to optimize this process only information associated with long-term
memory will be kept in the triple store, the other triples will be serialized and sent directly
to the Cognition Node.</p>
    </sec>
    <sec id="sec-6">
      <title>3. Using the Ontology</title>
      <p>The test is accomplished by the exercise of the ontology in a controlled environment
adhering to CMDE architecture. More specifically, given a usage scenario, the OntPercept
must offers resources to represent the exchange of perception information between the
cognitive and robotic systems.</p>
      <p>
        Robot House Simulator (RHS) [
        <xref ref-type="bibr" rid="ref6">Belo et al. 2017</xref>
        ,
        <xref ref-type="bibr" rid="ref5">Belo et al. 2018</xref>
        ] was designed
to test CMDE architecture and the OntPercept ontology. Another element involves the
cognitive system that must control the robotic agent present in the simulator. In this
instantiation, this control is performed using the Soar cognitive architecture [Laird 2012].
      </p>
      <p>The steps to create an experiment involve: defining the desired behavior for the
robotic agent, defining Soar production rules implementing the behavior, and finally,
exercising the results in RHS simulator. The execution of a experiment can be visualized in
the video available at https://youtu.be/rPqfQvReXDo.</p>
    </sec>
    <sec id="sec-7">
      <title>4. Conclusion and Future Works</title>
      <p>This article proposed an ontology to establish the communication between cognitive and
robotic systems. This ontology was incorporated into CMDE architecture and a
simulator for social robotics, called “Robot House Simulator” (RHS). All these elements are
used together to design, develop and validate systems geared towards social robotics.
All configuration items generated in this development are released into GitHub
repository (https://github.com/helioaz/OntPercept) with the GNU GPL v3.0
license.</p>
      <p>
        The results achieved represent a important step in the development of an integrated
environment for the development of cognitive systems with application in social robotics.
This framework is constantly evolving and, as such, a catalyst for future proposals, e.g.:
inclusion of new elements in OntPercept; interface with others cognitive architectures
[
        <xref ref-type="bibr" rid="ref1">ACT 2015</xref>
        ,
        <xref ref-type="bibr" rid="ref8">Gudwin et al. 2018</xref>
        , Kotseruba et al. 2018]; improve the RHS simulator with
new environments, buildings and streets and validation in a real environment.
      </p>
    </sec>
    <sec id="sec-8">
      <title>Acknowledgements</title>
      <p>This research is partially funded by the CAPES/MEC, the CNPq, the FAPESP under the grant
2017/01687-0 and the INCT-INSAC (National Institute of Science and Technology) under the
grant CNPq 465755/2014-3, FAPESP 2014/50851-0 and FAPESP 2018/25782-5.</p>
      <p>IFR</p>
      <p>(2017). Why service robots are booming
worldwide. ifr.org/ifr-press-releases/news/
why-service-robots-are-booming-worldwide. [Online; accessed
30 jun. 2020].</p>
      <p>Kotseruba, I., Gonzalez, O. J. A., and Tsotsos, J. K. (2018). A review of 40 years of
cognitive architecture research: Focus on perception, attention, learning and applications.</p>
      <p>Computing Research Repository - CoRR, abs/1610.08602v3.</p>
      <p>Laird, J. E. (2012). The Soar Cognitive Architecture. AISB Quarterly, 171(134):224–235.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <surname>ACT</surname>
          </string-name>
          (
          <year>2015</year>
          ). ACT
          <string-name>
            <surname>-R Home</surname>
          </string-name>
          . http://act-r.psy.cmu.edu/.
          <source>[Online; accessed 08 feb</source>
          .
          <year>2019</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <surname>Azevedo</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          (
          <year>2018</year>
          ).
          <article-title>Integration of cognitive and robotic systems through an ontology to model the perception of the environment</article-title>
          .
          <source>PhD thesis</source>
          , University of Sa˜o
          <source>Paulo (USP)</source>
          ,
          <source>Sa˜o Carlos</source>
          , Brazil. https://teses.usp.br/teses/disponiveis/ 55/55134/tde-18102018-103203/en.php.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <surname>Azevedo</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Belo</surname>
            ,
            <given-names>J. P. R.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Romero</surname>
            ,
            <given-names>R. A. F.</given-names>
          </string-name>
          (
          <year>2017a</year>
          ).
          <article-title>Cognitive and Robotic Systems: Speeding up Integration and Results</article-title>
          .
          <source>In 2017 Latin American Robotics Symposium (LARS) and 2017 Brazilian Symposium on Robotics (SBR)</source>
          , pages
          <fpage>1</fpage>
          -
          <lpage>6</lpage>
          . IEEE.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <surname>Azevedo</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Belo</surname>
            ,
            <given-names>J. P. R.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Romero</surname>
            ,
            <given-names>R. A. F.</given-names>
          </string-name>
          (
          <year>2017b</year>
          ).
          <article-title>Reducing the gap between cognitive and robotic systems</article-title>
          .
          <source>In 26th IEEE International Symposium on Robot and Human Interactive Communication - RO-MAN2017</source>
          , pages
          <fpage>1049</fpage>
          -
          <lpage>1054</lpage>
          , Lisbon, Portugal. IEEE.
          <source>ISBN: 978-1-5386-3517-9.</source>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <surname>Belo</surname>
            ,
            <given-names>J. P. R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Azevedo</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Romero</surname>
            ,
            <given-names>R. A. F.</given-names>
          </string-name>
          (
          <year>2018</year>
          ).
          <article-title>Enhancements in a social robotic simulator for indoor environments</article-title>
          .
          <source>In 2018 Latin American Robotic Symposium</source>
          ,
          <source>2018 Brazilian Symposium on Robotics (SBR) and 2018 Workshop on Robotics in Education (WRE)</source>
          , pages
          <fpage>457</fpage>
          -
          <lpage>463</lpage>
          . IEEE.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <surname>Belo</surname>
            ,
            <given-names>J. P. R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Romero</surname>
            ,
            <given-names>R. A. F.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Azevedo</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          (
          <year>2017</year>
          ).
          <article-title>RHS simulator for robotic cognitive systems</article-title>
          .
          <source>In 2017 Latin American Robotics Symposium (LARS) and 2017 Brazilian Symposium on Robotics (SBR)</source>
          , pages
          <fpage>1</fpage>
          -
          <lpage>6</lpage>
          , Curitiba, Brazil. IEEE.
          <source>ISBN: 978-1-5090-3656-1.</source>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <surname>Fong</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nourbakhsh</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Dautenhahn</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          (
          <year>2003</year>
          ).
          <article-title>A survey of socially interactive robots</article-title>
          .
          <source>Robotics and Autonomous Systems</source>
          ,
          <volume>42</volume>
          (
          <issue>3-4</issue>
          ):
          <fpage>143</fpage>
          -
          <lpage>166</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <surname>Gudwin</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Paraense</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>de Paula</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          , Fr o´es, E.,
          <string-name>
            <surname>Gibaut</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Castro</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Figueiredo</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Raizer</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          (
          <year>2018</year>
          ).
          <article-title>An Overview of the Multipurpose Enhanced Cognitive Architecture (MECA)</article-title>
          .
          <source>Procedia Computer Science</source>
          ,
          <volume>123</volume>
          :
          <fpage>155</fpage>
          -
          <lpage>160</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <surname>IEEE</surname>
            ,
            <given-names>R</given-names>
          </string-name>
          &amp;A
          <string-name>
            <surname>Society</surname>
          </string-name>
          (
          <year>2015</year>
          ).
          <source>IEEE 1872</source>
          <year>2015</year>
          ,
          <article-title>Standard Ontologies for Robotics and Automation</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <string-name>
            <surname>McLeod</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          (
          <year>2018</year>
          ). Forgetting. https://www.simplypsychology.org/ forgetting.html.
          <source>[Online; accessed 13 aug</source>
          .
          <year>2019</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          <string-name>
            <surname>Noy</surname>
            ,
            <given-names>N. F.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Mcguinness</surname>
            ,
            <given-names>D. L.</given-names>
          </string-name>
          (
          <year>2001</year>
          ).
          <article-title>Ontology Development 101: A Guide to Creating Your First Ontology</article-title>
          .
          <source>Technical report</source>
          , Stanford University.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          <string-name>
            <surname>Obitko</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          (
          <year>2007</year>
          ).
          <article-title>TranslationsbetweenOntologiesinMulti-AgentSystems</article-title>
          . PhDthesis, Czech Technical University in Prague.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          <string-name>
            <surname>Pease</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          (
          <year>2019</year>
          ).
          <article-title>Suggested upper merged ontology (sumo)</article-title>
          . http://www. adampease.org/OP/. [Online; accessed 15 aug.
          <year>2019</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          <string-name>
            <surname>Prote</surname>
          </string-name>
          ´ge´ (
          <year>2020</year>
          ).
          <article-title>Welcome to the protege ontology library</article-title>
          . https://protegewiki. stanford.edu/wiki/Protege4UserDocs. [Online; accessed 23 jun.
          <year>2020</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          <string-name>
            <surname>Stardog-Union</surname>
          </string-name>
          (
          <year>2017</year>
          ).
          <article-title>Faq - pellet</article-title>
          . https://github.com/stardog-union/ pellet/wiki/FAQ. [Online; accessed 08 feb.
          <year>2019</year>
          ].
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>