<!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>Chatbots with Deep Learning Techniques: the In uence of Dataset Variation on User Experience</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer science, University of Milano Bicocca</institution>
          ,
          <addr-line>Milan</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Social Things srl</institution>
          ,
          <addr-line>Milan</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>1957</year>
      </pub-date>
      <abstract>
        <p>The main purpose of this research is to nd a correlation between the changes on chatbot training dataset and the impact on the performances of the chatbot itself.</p>
      </abstract>
      <kwd-group>
        <kwd>Chatbot</kwd>
        <kwd>Convertion system</kwd>
        <kwd>Deep Learning</kwd>
        <kwd>Human Computer Interaction</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        background of the problem
Nowadays the chatbot technology is widely used in human machine
interaction[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], allowing people to interact with complex backend systems using the
natural language. There are a lot of examples in the consumer market ( e.g.
Alexa, Siri, ok Google ecc)[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] as well as in the corporate market ( e.g. chatbot
for customer service). In both cases the general goal of a chatbot is to
communicate properly with the user, by responding to the user request in a coherent
and in the most "natural" way. Therefore, chatbots need to classify each users
request according to the speci c use cases they are able to manage. The chatbot
classi er is trained by exploiting a set of sample phrases, taken from previous
usage or handmade, divided into groups called intents. The more these phrases
are similar to the phrases that will be inputted by the user, the more the
classier of the chatbot will perform well. Another characteristic that will a ect the
performances is the way these phrases are grouped into intents. Each intent must
contain phrases that share a topic, in order to provide the chatbot pipeline with
indications on how to handle each single request. In other words, the intent must
contain phrases that need to be answered in a similar way by the chatbot. Due
to the nature of the user interaction with a chatbot, the rst setup of the dataset
can become outdated during the lifetime of the chatbot. This lack of updated
settings impact on the chatbot performances. This means that it is necessary to
operate some changes on the chatbot to adapt it to new con gurations. In order
to maintain a healthy classi cator, the possible changes that can be done are
related to the phrases used to train it, so by removing or adding training phrases,
      </p>
      <p>
        Deola Simone
or by changing the intents composition, so by changing the intent assigned to
each phrase, always guided by the needs of the users. For instance, there can be
users asking for new information that was not included in the previous training.
In this case a new intent must be added to the chatbot[
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Other problems can
be related to the responses of the chatbot, that can be vague as regards a subset
of phrases belonging to some intents. In this case the intent can be split into
multiple intents that cover the particular cases[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. There also can be topics no
more relevant for the chatbot so the relative intents, and relative phrases, can
be eliminated.
2
      </p>
      <p>
        problem description
Nowadays, the only way to estimate the impact of the chatbot's intents changes
on its performances is done by training the chatbot itself and testing it. Those
procedures are expensive as regards both time and economic costs. The purpose
of this research is to train a model that can predict the impact of intents modi
cation on the chatbot performances without the need of training it. The chatbot
modi cations considered will be intent removal, addition or modi cation. The
intent modi cations will be composed of phrases addition, rimotion or modi
cation. During the data collection phase multiple chatbots will be trained, starting
from the same set of phrases. The di erences from one training to another will
be the assignment of each phrase to an intent and the phrases selected. These
changes will be done in order to simulate the possible con gurations that the
intent modi cation proposed could generate. For instance, the chatbot could be
trained starting from all the phrases and then removing one group of phrases
belonging to an intent at a time. The same could be done for each modi
cation proposed. Every time a chatbot is trained, the relative performances will
be calculated and assigned to the training dataset con guration. In this way,
a new dataset is created, composed by the input training dataset, paired with
the performances of chatbot training on it. From now on we will refer to this
dataset as Performances dataset. Since the purpose of this research is to study
the impact of these changes on the chatbot system in the most complete way,
di erent chatbots and parts of the chatbot will be trained. Since the intents
compositions impact mostly on the classi er part of the chatbot, the rst step
will be done on that. This means that the chatbot will be composed of a single
NLP classi er[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], and the relative performances will be precision, recall and
f1score. Di erent NLP classi ers will be explored. A second step will be focused
on using a complete chatbot for training and evaluation. This second test will
study the impact of the dataset modi cation on the overall system of a chatbot.
In order to evaluate the performances of these complex systems di erent metrics
can be used, for example Dialogue e cency in terms of matching type, Dialogue
quality metrics based on response type and Users' satisfaction assessment based
on an open-ended request for feedback[
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Each one of those will highlight di
erent aspects of the chatbot. Once the Performances dataset is created, the main
methods of prediction will be applied, such as regression, Neural Network, ecc,
the in uence of dataset variation on user experience
in order to infer the performance of a chatbot[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. During all the steps described
above, in order to operate on the data, all the data manipulation techniques for
Natural Language will be used ( Embedding, PCA, Lemmatization, ecc.) This
process will be performed on multiple chatbot's intents datasets, provided by
the company. The chatbot datasets are composed of Italian phrases and cover
di erent areas of content ( banking chatbot, FAQ chatbot for di erent Client
services, ecc..).
3
      </p>
      <p>conclusions
The expected result is a model that, starting from any chatbot datasets con
guration, could predict the performances of the chatbot itself, without the needs
of training it. The resulting model should be computationallyl simpler than the
original chatbot and should be accurate enough, in order to remove the need
of the training phase for evaluation. This kind of model could help the process
of creation and maintenance of a chatbot, by providing the users with an
instrument that facilitates the assignment of intents to the training phrases and
suggesting which phrases will be useful in the training process. A possible future
implementation is to use the model to automatically correct the initial intent
assignment and provide the best dataset for chatbot training, saving time and
computational costs.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Ciechanowski</surname>
          </string-name>
          ,
          <article-title>Leon and Przegalinska, Aleksandra and Magnuski, Mikolaj and Gloor, Peter: In the shades of the uncanny valley: An experimental study of human{ chatbot interaction</article-title>
          .
          <source>Future Generation Computer Systems</source>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Batish</surname>
          </string-name>
          ,
          <article-title>Rachel: Voicebot and Chatbot Design: Flexible Conversational Interfaces with Amazon Alexa, Google Home, and Facebook Messenger: An experimental study of human{chatbot interaction</article-title>
          .
          <source>Packt Publishing Ltd</source>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>W.</given-names>
            <surname>Ye</surname>
          </string-name>
          and
          <string-name>
            <given-names>Q.</given-names>
            <surname>Li</surname>
          </string-name>
          :
          <article-title>"Open Questions for Next Generation Chatbots,"</article-title>
          <source>:2020 IEEE/ACM Symposium on Edge Computing (SEC)</source>
          ,
          <year>2020</year>
          , pp.
          <fpage>346</fpage>
          -
          <lpage>351</lpage>
          , doi: 10.1109/SEC50012.
          <year>2020</year>
          .
          <volume>00050</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4. Richard Csaky:
          <article-title>Deep Learning Based Chatbot Models</article-title>
          . CoRR, dblp computer science bibliography, https://dblp.org (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Howard</surname>
          </string-name>
          , Jeremy and Ruder, Sebastian :
          <article-title>Universal language model ne-tuning for text classi cation</article-title>
          . arXiv preprint arXiv:
          <year>1801</year>
          .
          <volume>06146</volume>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Shawar</surname>
          </string-name>
          ,
          <article-title>Bayan Abu and Atwell, Eric: Di erent measurement metrics to evaluate a chatbot system</article-title>
          .
          <source>Proceedings of the workshop on bridging the gap: Academic and industrial research in dialog technologies</source>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7. lmansor, Ebtesam H.
          <article-title>and</article-title>
          <string-name>
            <surname>Hussain</surname>
          </string-name>
          , Farookh Khadeer.
          <article-title>Survey on Intelligent Chatbots: State-of-the-</article-title>
          <string-name>
            <surname>Art</surname>
            and Future Research Directions: Complex,
            <given-names>Intelligent,</given-names>
          </string-name>
          <source>and Software Intensive Systems</source>
          , Springer International Publishing (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>Stefan</given-names>
            <surname>Larson</surname>
          </string-name>
          and
          <string-name>
            <given-names>Anish</given-names>
            <surname>Mahendran</surname>
          </string-name>
          and
          <string-name>
            <given-names>Joseph J.</given-names>
            <surname>Peper</surname>
          </string-name>
          and
          <article-title>Christopher Clarke and Andrew Lee and Parker Hill and Jonathan K. Kummerfeld and Kevin Leach and Michael A. Laurenzano and Lingjia Tang</article-title>
          and
          <string-name>
            <given-names>Jason</given-names>
            <surname>Mars</surname>
          </string-name>
          .
          <article-title>An Evaluation Dataset for Intent Classi cation and Out-of-Scope Prediction</article-title>
          : https://dblp.org/rec/journals/corr/abs-1909
          <article-title>-02027</article-title>
          .bib (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>