<!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>Supporting configuration choices in smart environments through personalized recom mendations</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Federica Cena</string-name>
          <email>federica.cena@unito.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Cristina Gena</string-name>
          <email>cristina.gena@unito.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Claudio Mattutino</string-name>
          <email>claudio.mattutino@unito.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Michele Mioli</string-name>
          <email>michele.mioli@unito.it</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Antonio Moreno</string-name>
          <email>antonio.moreno@edu.unito.it</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Fabiana Vernero</string-name>
          <email>fabiana.vernero@unito.it</email>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>University of Turin, Department of Computer Science</institution>
          ,
          <addr-line>C.so Svizzera 185, 10149 Turin</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2021</year>
      </pub-date>
      <abstract>
        <p>With the increasing availability of smart environments and IoT devices, end-users who might lack specific technical skills are more and more often confronted with configuration tasks. In this paper, we present a prototype we have built to experiment with personalized recommendations as a way to help end-users make configuration choices. On the one hand, it allowed us to test diferent similarity measures for user models. On the other hand, it ofers diferent recommendation services which can be used to suggest trigger- and action-objects, as well as sample configuration rules.</p>
      </abstract>
      <kwd-group>
        <kwd>smart environments</kwd>
        <kwd>user similarity</kwd>
        <kwd>recommender systems</kwd>
        <kwd>preferential choices</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Smart environments integrate a large number of heterogeneous, connected IoT components,
such as devices, operating systems and middleware solutions, in a single system aimed at
supporting users in carrying out their tasks [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. While technical challenges can arise regarding
reliable communication, data exchange and timely reaction to local events, supporting end-users
in the configuration of the environment itself can be non-trivial: this implies, on the one hand,
designing usable composition interfaces [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], and, on the other hand, helping users to make
preferential choices [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] in a domain they might know only superficially. Among other things,
choices regard:
      </p>
      <sec id="sec-1-1">
        <title>1. What IoT components to include in the smart environment;</title>
        <p>2. Whether to establish an interaction pattern between two given components;</p>
      </sec>
      <sec id="sec-1-2">
        <title>3. What event (trigger ) should activate an interaction pattern;</title>
        <p>4. What behaviour (action) should be carried out after a trigger event has occurred.
In this short paper, we present a work-in-progress prototype1 we have built in the context of
EMPATHY: Empowering People in Dealing with Internet of Things Ecosystems. Workshop co-located with INTERACT
CEUR
Workshop
Proceedings
the Empathy project2 to experiment with personalized recommendations as a way to help
users make configuration choices. We assume that users can be described through user models
(which are currently being defined) and we choose the smart home domain as a use case for our
examples.</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>2. Prototype goals and functionality</title>
      <p>The prototype has got a double target. In the first place, the goal is to test diferent similarity
measures on user models containing binary data. On the other hand, the target is to provide
suggestions to the users based on the recommendation services (described below) that we have
developed starting from an IFTTT dataset.</p>
      <p>Similarity measures. Our provisional user models describe binary features such as user
goals (e.g. energy saving, comfort) and possessed smart objects. In order to test diferent
similarity algorithms (Jaccard, Pearson, Cosine, Simple matching) we have built a web interface
which allows to choose from: the users, the features of the user model, the similarity measures
and it shows a table with most similar users based on the chosen index (Figure 1).</p>
      <p>Recommendation services. In our project we have applied some machine learning
techniques (e.g., association rules) on an IFTTT rules dataset to extract the most relevant associations
between smart objects. In order to achieve this purpose we have categorized all the objects of
the dataset according to an ontology 3 Based on this data we have built the recommendation
services which suggest the object categories to combine with the input category as a trigger or
as an action to compose a trigger-action rule. We have also built two pages in the web interface
to show these services. More specifically, one page suggests action object categories, given a</p>
      <sec id="sec-2-1">
        <title>2http://www.empathy-project.eu/ 3For our purpose, we extended the EUpont ontology adding more classes [4]</title>
        <p>trigger object category, while the other one suggests the trigger object categories, given an
action object category.</p>
        <p>As we can see from Figure 2, when choosing the trigger (or the action in the other specular
page) the diferent categories are shown with a number that represents the confidence originating
from the machine learning algorithm that has been used4. The categories with higher value of
confidence represent the most used pairings in the IFTTT dataset. Once the categories have
been chosen, three examples of rules from the IFTTT dataset are suggested (Figure 3).</p>
      </sec>
      <sec id="sec-2-2">
        <title>4Apriori algorithm for association rule learning</title>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Prototype implementation</title>
      <p>The software architecture is exemplified in Figure 4. The web interface is developed using
Vue.js and Vuetify as a material design framework. The application server is implemented with
Spring Boot and exposes a set of REST API. The recommender is a module built in Java which
contains all the logic required to provide the diferent techniques of recommendation. The data
are stored in a mongoDB instance and they are organized in diferent collections and databases.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion and future work</title>
      <p>The described prototype exemplifies a number of recommendation-related services to be used
for the configuration of smart environments.</p>
      <p>In an interoperability perspective, future work includes the definition of open APIs which
potentially enable any smart environment to query our services in order to get configuration
recommendations, for example obtaining suggested action object categories to pair with a trigger
object category provided as an input and vice-versa.</p>
      <p>
        In addition, we are planning to use our similarity calculation module to generate personalized
suggestion in the style of collaborative filtering [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], for example by recommending smart objects
owned by other users who have a similar profile.
      </p>
      <p>Finally, at the moment we are carrying out a user study with the goal of assessing how helpful
trigger, action and rule recommendations are to users who are given a configuration task.
Perceived usefulness and other user-experience related metrics will be studied in connection
with psychological constructs such as self-eficacy, intellect and mindset, in order to determine
whether these could be taken into account in the recommendation generation process.
This work is partially supported by the Italian Ministry of University and Research (MIUR)
under grant PRIN 2017 “EMPATHY: EMpowering People in deAling with internet of THings
ecosYstems”.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>S.</given-names>
            <surname>Bansal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Kumar</surname>
          </string-name>
          ,
          <article-title>Iot ecosystem: A survey on devices, gateways, operating systems, middleware and communication</article-title>
          ,
          <source>International Journal of Wireless Information Networks</source>
          <volume>27</volume>
          (
          <year>2020</year>
          )
          <fpage>340</fpage>
          -
          <lpage>364</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Dahl</surname>
          </string-name>
          ,
          <string-name>
            <surname>R.-M. Svendsen</surname>
          </string-name>
          ,
          <article-title>End-user composition interfaces for smart environments: A preliminary study of usability factors</article-title>
          , in: A.
          <string-name>
            <surname>Marcus</surname>
          </string-name>
          (Ed.),
          <article-title>Design, User Experience, and Usability</article-title>
          . Theory, Methods,
          <source>Tools and Practice</source>
          , Springer Berlin Heidelberg, Berlin, Heidelberg,
          <year>2011</year>
          , pp.
          <fpage>118</fpage>
          -
          <lpage>127</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>A.</given-names>
            <surname>Jameson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Berendt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Gabrielli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Cena</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Gena</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Vernero</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Reinecke</surname>
          </string-name>
          ,
          <article-title>Choice architecture for human-computer interaction</article-title>
          ,
          <source>Found. Trends Hum. Comput. Interact</source>
          .
          <volume>7</volume>
          (
          <issue>2014</issue>
          )
          <fpage>1</fpage>
          -
          <lpage>235</lpage>
          . URL: https://doi.org/10.1561/1100000028. doi:
          <volume>10</volume>
          .1561/1100000028.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>F.</given-names>
            <surname>Corno</surname>
          </string-name>
          , L. De Russis,
          <string-name>
            <given-names>A. M.</given-names>
            <surname>Rofarello</surname>
          </string-name>
          ,
          <article-title>A high-level approach towards end user development in the iot</article-title>
          ,
          <source>in: Proceedings of the 2017 CHI Conference Extended Abstracts on Human Factors in Computing Systems, CHI EA '17</source>
          ,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computing Machinery, New York, NY, USA,
          <year>2017</year>
          , p.
          <fpage>1546</fpage>
          -
          <lpage>1552</lpage>
          . URL: https://doi.org/10.1145/3027063.3053157. doi:
          <volume>10</volume>
          . 1145/3027063.3053157.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>C. C.</given-names>
            <surname>Aggarwal</surname>
          </string-name>
          ,
          <source>Neighborhood-Based Collaborative Filtering</source>
          , Springer International Publishing, Cham,
          <year>2016</year>
          , pp.
          <fpage>29</fpage>
          -
          <lpage>70</lpage>
          . URL: https://doi.org/10.1007/978-3-
          <fpage>319</fpage>
          -29659-
          <issue>3</issue>
          _2. doi:
          <volume>10</volume>
          .1007/978- 3-
          <fpage>319</fpage>
          - 29659-
          <issue>3</issue>
          _
          <fpage>2</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>