<!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>The validity of word vectors over the time for the EVALITA 2018 Emoji prediction task (ITAmoji)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Mauro Bennici You Are My GUide</string-name>
          <email>mauro@youaremyguide.com</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Xileny Seijas Portocarrero You Are My GUide</string-name>
        </contrib>
      </contrib-group>
      <abstract>
        <p>English. This document describes the results of our system in the evaluation campaign on the prediction of Emoji in Italian, organized in the context of EVALITA 20181 (Ronzano et al., 2018). Given the text of a tweet in Italian, the task is to predict the emoji most likely associated with that tweet among the 25 emojis selected by the organizers. In this report, we describe the three proposed systems for evaluation. The approach described starts from the possibility of creating two different models, one for the part of categorization, and the other for the part of polarity. And to combine the two models to get a better understanding of the dataset. Italiano. Questo documento descrive i nostri risultati del nostro sistema nella campagna di valutazione sulla predizione delle Emoji in italiano, organizzata nel contesto di EVALITA 2018.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Dato il testo di un tweet in italiano, il
task consiste nel predire l’emoji più
probabilmente associata a quel tweet tra
le 25 emojis selezionate dagli
organizzatori. In questo report descriviamo
i tre sistemi proposti per la valutazione.
L'approccio descritto parte dalla
possibilità di creare due modelli diversi, uno per
la parte di categorizzazione, e l'altro per
la parte di polarità. E di unire i due
modelli per ottenere una maggiore
comprensione del dataset.
1</p>
    </sec>
    <sec id="sec-2">
      <title>Introduction</title>
      <p>In the field of communication, the importance of
addressing your audience with a common
language in which the customer can recognize and
identify with each other is fundamental. In social
interactions, an increasing amount of
communication occurs in a non-verbal way, as with emoji.
Being able to predict the best emoji to use in a
message can increase the perception of the same
and give strength to the message itself.</p>
      <p>
        In the context of the Italian Emoji Prediction task
called ITAmoji, we have tried to predict one of
25 possible emojis from different tweets.
Despite the knowledge of how a system of SVM
could be the best solution for the problem, as per
the previous context SemEval 2018
        <xref ref-type="bibr" rid="ref2">(Rama &amp;
Çöltekin, 2018)</xref>
        , a different approach was
chosen to focus on the effectiveness of a Neural
Network based model
2
      </p>
    </sec>
    <sec id="sec-3">
      <title>Description of the system</title>
      <p>We first started by cleaning the given data from
all the noise information. All the punctuation
marks were removed from the text of tweets, and
we focused on cleaning the text and removing
ambiguities such as shortened words and
abbreviations. We substituted all the hyperlinks with a
more generic word “LINK” and we did the same
with the usernames preceded by ‘@’ (users’
tags), after seeing that it was not relevant in the
prediction of the most likely emoji for the tweet.
We tried removing the stop words from the
tweets’ text to leave only the words with relevant
meaning in it, but the results were poor.
Then we converted every word of the tweet’s
text into its lemma, and while doing the
lemmatization, we saw that sometimes the username
was misleading in the text, so we chose to
remove it and substitute it with a more generic
word ‘USERNAME’.</p>
      <p>We used two different fastText2 vectors created
in the 2016 and the other created in 2017, all
with Italian tweets containing at least one emojis.
The idea is to analyze if different fastText
vectors created with tweets published in different
periods could discover the use of the emojis and
its evolution over the time.</p>
      <p>
        The system created is an Ensemble of two
different models to replicate the result obtained in the
emotion classification
        <xref ref-type="bibr" rid="ref4">(Akhtar at al., 2018)</xref>
        .
The first model is a bi-directional Long
ShortTerm Memory (BI-LSTM) implemented in
Keras3.
_______________________________________
Layer (type) Output Shape Param #
===================================
e (Embedding) (None, 25, 200) 34978200
_______________________________________
b (Bidirectional) (None, 512) 935936
_______________________________________
d (Dense) (None, 25) 12825
===================================
A dropout and a recurrent_dropout of 0.9.
The optimizer is the RMSProp. The embedding
is trainable.
      </p>
      <p>The second is a LightGBM4, where the following
properties are extracted from the tweet text:
•
•
•
•
•
•
length of the tweet
percentage of special characters
the number of exclamation points
the number of question marks
the number of words
the number of characters
https://fasttext.cc
https://keras.io
https://github.com/Microsoft/LightGBM
the ratio between words and stop words
the ratio between words and spaces
the ratio between words and hashtags
and are joined to the vector created by the
bigram and the trigram of the tweet itself at word
and character level.</p>
      <p>The number of leaves is 250, the learner set as
‘Feature’, and the learning rate at 0.04.</p>
      <p>The ensemble is done in the weighted average
when the BI_LSTM decide the 60% of the vote
and the LightGBM the 40%.</p>
      <p>It was also tried to add a linear classifier but the
attempt did not provide any advantage. The
cross-validation task to find a good weight was
ineffectual and the provision was insignificant.
3</p>
    </sec>
    <sec id="sec-4">
      <title>Results</title>
      <p>The results of the Bi-LSTM were:</p>
      <p>BI-LSTM with 2016 fastText</p>
      <p>LightGBM only text
precision</p>
      <p>recall
0.2399 0.3094
Table 3: precision, recall, and F1 score
The LightGBM model was also tested by adding
to the already mentioned properties additional
information such as the user ID and information
extracted from the tweet date such as day, month,
the day of the week and time.</p>
      <p>The results obtained also indicate here that there
is a correspondence between the use of emojis,
the user, the time and the day. For example the
Christmas tree in December or the heart emoji in
the evening hours.</p>
      <p>LightGBM with user and date
precision</p>
      <p>recall
0.5044 0.2331
Table 4: precision, recall, and F1 score
The level of Precision obtained in this way was
very high even if the F1 score is still lower than
the BI-LSTM model.</p>
      <p>To avoid the unbalancing of the emojis present in
the training dataset various undersampling and
oversampling operations were performed without
any appreciable results.</p>
      <p>Turning to the result of the ensemble of the two
models we had a marked increase in the F1 score
thanks to the substantial growth of the Recall in
both cases.</p>
      <p>In the tables 5 and 6 there are the results from the
minimum and the maximum F1 score obtained
during the process of the ensemble.
f1-score precision
f1-score
f1-score
quantity
BI-LSTM with 2017 fastText + LightGBM with
user and date
precision</p>
      <p>
        recall
0.3650 0.2917
Table 6: precision, recall, and F1 score
The result of the validation was however very far
from that obtained during the training phase. It
will be necessary to evaluate if, as in the research
Exploring Emoji Usage and Prediction Through
a Temporal Variation Lens
        <xref ref-type="bibr" rid="ref1 ref3 ref5">(Barbieri et al.,
2018)</xref>
        , it was the time of the publication of the
tweets is to be distant from the date of the tweets
analyzed.
      </p>
      <p>If the tweets analyzed were too different from
those of the training dataset, if the users in the
test dataset have different behaviors, or if the
system suffered from some kind of overfitting
(visible in the third submission, gw2017_pe).
Macro F1
Micro F1
Weighted F1
Coverage error
Accuracy at 5
Accuracy at 10
Accuracy at 15
gw2017_e
gw2017_p</p>
      <p>gw2017_pe
0.222082
0.421920
0.368996
4.601440
0.713000
0.859040
0.943080
0.232940
0.400920
0.378105
5.661600
0.671840
0.814880
0.894160
0.037520
0.119480
0.109664
13.489400
0.279280
0.430360
0.560000
Accuracy at 20 0.982520 0.929920 0.662720
Table 7: macro F1, micro F1, weighted F1, coverage
error, accuracy at 5, 10, 15 and 20 for the three runs
submitted.</p>
      <p>In table 8 we can observe the result of the three
submissions split for each emoji.</p>
    </sec>
    <sec id="sec-5">
      <title>Discussion</title>
      <p>In the study of the dataset, three critical issues
emerged.</p>
      <p>l</p>
      <p>The first is that the use of similar emojis
seems more dictated by a personal
choice of the user.</p>
      <p>There are not many pieces of evidence
because the use of one emoji is
preferred.</p>
      <p>In particular for the following emoji:
l</p>
      <p>The second is that, especially in cases
where a tweet begins by indicating a
USERNAME, or in a mention or a direct
response, the use of emoji takes on a
sub-language value. That is, the use of a
specific word or emoji has a meaning
that only the tweet recipients know. Use
of emoji
and</p>
      <p>could be irony or
just references to previous pasted
experiences in common.
l</p>
      <p>Thirdly, the strong imbalance of the
training dataset is not the only reason for
the unbalanced prediction of some
emojis, as in the case of
and
.
5</p>
    </sec>
    <sec id="sec-6">
      <title>Conclusion</title>
      <p>The result of the ensemble was pretty good and
demonstrate the validity of this kind of approach.
The use of emoji is personal and also depends on
the context and the people in the discussion. A
system with the emojis with the same meaning
merged could be more proficient and ready for
the production.</p>
      <p>In the near future, we will evaluate the speed and
effectiveness of a CNN model in which the
operation of the BI-LSTM and the features
extrapolation used in the LightGBM model can be merged
during the same training session.</p>
      <p>We will also focus on the creation of fastText
vectors of different size containing tweets for
specific contexts and published in different
periods to identify the periodicity and variation in the
use of particular emoji. The intent is to discover
other hidden patterns, more than the obvious that
has emerged for the holiday periods.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <given-names>Francesco</given-names>
            <surname>Ronzano</surname>
          </string-name>
          , Francesco Barbieri, Endang Wahyu Pamungkas, Viviana Patti, and
          <string-name>
            <surname>Francesca Chiusaroli</surname>
          </string-name>
          (
          <year>2018</year>
          )
          <article-title>ITAmoji: Overview of the Italian emoji prediction task @ Evalita 2018</article-title>
          .
          <source>In Proceedings of Sixth Evaluation Campaign of Natural Language Processing and Speech Tools for Italian. Final Workshop (EVALITA</source>
          <year>2018</year>
          ), CEUR.org, Turin, Italy.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <given-names>Taraka</given-names>
            <surname>Rama</surname>
          </string-name>
          and
          <string-name>
            <given-names>Çagri</given-names>
            <surname>Çöltekin</surname>
          </string-name>
          . (
          <year>2018</year>
          , June). Tü
          <string-name>
            <surname>-</surname>
          </string-name>
          bingen-Oslo at SemEval-2018 Task 2
          <article-title>: SVMs perform better than RNNs in Emoji Prediction</article-title>
          . Retrieved from https://aclanthology.coli.unisaarland.de/papers/S18-1004/s18-
          <fpage>1004</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <given-names>Francesco</given-names>
            <surname>Barbieri</surname>
          </string-name>
          , José Camacho-Collados, Francesco Ronzano, Luis Espinosa Anke, Miguel Ballesteros, Valerio Basile, Viviana Patti, Horacio. (
          <year>2018</year>
          )
          <article-title>Saggion: SemEval 2018 Task 2: Multilingual Emoji Prediction</article-title>
          .
          <source>SemEval@NAACL-HLT</source>
          <year>2018</year>
          :
          <fpage>24</fpage>
          -
          <lpage>33</lpage>
          . ACL.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <given-names>Md</given-names>
            <surname>Shad</surname>
          </string-name>
          <string-name>
            <surname>Akhtar</surname>
          </string-name>
          , Deepanway Ghosal, Asif Ekbal, Pushpak Bhattacharyya, Sadao Kurohashi. (
          <year>2018</year>
          ,
          <article-title>October 15). A Multi-task Ensemble Framework for Emotion, Sentiment</article-title>
          and
          <string-name>
            <given-names>Intensity</given-names>
            <surname>Prediction</surname>
          </string-name>
          . Retrieved from https://arxiv.org/abs/
          <year>1808</year>
          .01216
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <given-names>Francesco</given-names>
            <surname>Barbieri</surname>
          </string-name>
          , Luis Marujo, Pradeep Karuturi,
          <string-name>
            <given-names>William</given-names>
            <surname>Brendel</surname>
          </string-name>
          , Horacio Saggion. (
          <year>2018</year>
          , May 02).
          <article-title>Exploring Emoji Usage and Prediction Through a Temporal Variation Lens</article-title>
          . Retrieved from https://arxiv.org/abs/
          <year>1805</year>
          .00731
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>