<!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>Distant Supervision for Emotion Classi cation Task using emo ji2emotion</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Aisulu Rakhmetullina</string-name>
          <email>aisulu.rakhmetullina@tum.de</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dietrich Trautmann</string-name>
          <email>dietrich.trautmann@cs.tum.edu</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Georg Groh</string-name>
          <email>grohg@in.tum.de</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Figure 1: Plutchiks Wheel of Emotions with Plutchik's</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Eight highlighted [Plu91]</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Informatics Dept.</institution>
          ,
          <addr-line>Garching, 85748</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2018</year>
      </pub-date>
      <abstract>
        <p>Increasing number of research in the area of distant supervision for emotion detection task requires a reliable mapping between noisy labels and emotion classes. We propose a method for an experimental creation of such a reliable mapping based on manually annotated data and quantitative relations between labels and classes on example of emojiemotion pair in a form of emoji2emotion mapping.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>The japanese word emoji means \picture +
character", and has no semantical connection to english
emotion as you might have thought. However, emojis
indeed very often carry the emotional state of the writer.
That is why, no surprises that as a part of the digital
text emojis were exploited in various NLP researches
related to sentiment analysis or emotion classi cation.</p>
      <p>In later works based on machine learning
approaches, most of the time emojis are used as a noisy
label for a distant supervision task. However, the
matching between emoji and sentiment or emotion
class is often done manually [WR16]. That approach
implies subjectivity and could lead to mismatching.
The goal of this work is to propose a method for
experimental matching between emoji and classes that
should be more reliable. To evaluate our method
we apply it to emoji to emotion mapping. Since to
our knowledge there is no such experimentally created
mapping between them, we introduce the name for it
- emoji2emotion.</p>
      <p>There exist di erent emotion classi cation models,
either discrete or dimensional. In this work we have
chosen Plutchik's wheel of emotions [Plu91] that
combine characteristics of both discrete and dimensional
models. We use main 8 emotions out of it called
Plutchik's eight (anger, anticipation, joy, trust, fear,
surprise, sadness and disgust) that shown in Figure 1.
.</p>
    </sec>
    <sec id="sec-2">
      <title>Related Work</title>
      <p>One of the rst attempts to characterize emoji from
its sentimental load perspective was a project called
Emoji Sentiment Ranking - the rst emoji sentiment
lexicon (Figure 2). It was created by [NSSM15] and
provides a map between 751 most frequently used
emojis and sentiments. The valuable insights from it that
we use: the majority of emojis are positive, especially
the top popular ones; among tweets with emojis, the
inter-annotator agreement tend to be higher.</p>
      <p>In [ERA+16] authors release emoji2vec, set of
pretrained embeddings for all emojis in Unicode learned
from emojisdescription taken from Unicode emoji
standard. That is one of the examples of mapping
emojis to another forms that are compatible to
incorporate into machine learning tasks. And in general,
representation learning and usage of pre-trained word
embeddings is popular among natural language
processing applications focused on social media.</p>
      <p>In several works [BFMP13], [HBF+15], [JLL+14],
[KZM14] emoticons were used to create a lexicon for a
later use in a knowledge-based approach for sentiment
analysis or emotion detection. The common thing
between these works is a utilization of a high number of
emoticon types, usually hundreds. Later works based
on machine learning approach in contrast to works in
the previous paragraph use emoticons and emojis as
noisy labels for distant supervision tasks. Such works
are [Rea05], [GBH09], [DTR10], [ZDWX12].</p>
      <p>The recent paper [FMS+17] presents a project
called DeepMoji and shows that diversi cation of noisy
labels set for the distant supervision allows models to
learn richer representations. They obtained
state-ofthe-art performance on the 8 benchmark datasets
according to sentiment, emotion and sarcasm detection,
which proves the e ectiveness of the noisy level
approach. Furthermore, their analyses con rm the
assumption that diversity of emotional labels results in a
performance improvement comparing to previous
distant supervision methods.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Data Acquisition and Annotation</title>
      <p>In this section, the process of manually annotated
corpus creation is described in detail. First, an
acquisition of data for further annotation is explained in three
steps: emoji list creation, tweets crawling and tweets
preprocessing. Second, the annotation course is
presented in another three steps: tweets ltering,
annotation and averaging of vectors, analysis of resulting
corpus.
The rst step of an emoji containing tweets corpus
creation is to choose the list of emojis. To select most
popular emojis in the twitter and in general in text
online, we looked into the Emojitracker [etr13] project as
well as into Emoji Sentiment Ranking table [NSSM15].
By application of threshold for each ranking (&gt;100 000
000 for Emojitracker and &gt;100 for Emoji Sentiment
Ranking) 31 emojis from the rst list and 50 from the
second was picked. We selected emojis that were the
intersection of both lists and additionally handpicked
some emojis that were in the top lists but not in the
intersection one. That is how the set of 43 tweets was
created. After that, we calculated the distribution
percentages for each source and found the average. That
average percentage was used to create the same
natural balance in our corpus.</p>
      <p>The second step of corpus creation is a collection
of data using the results of the previous step. In this
paper, we use easily accessible Twitter data that we
crawl with help of tweepy library. As a result, 84777
tweets containing emojis were crawled. Turned out,
the vast majority of them (92.3%) contains only one
type of emoji and most of the time its quantity is equal
to 1 (average emoji count per tweet is 1.2). That is
why we decided to focus on single emoji type tweets
and after ltering out tweets with multiple emoji types
or with emoji types that are not in our emoji list, the
74670 tweets left for training purposes.</p>
      <p>The last step in the creation of corpus for labelling
is a tweets preprocessing. On this stage, the raw tweets
downloaded in the previous step are processed to the
ready tweets . To do so, the number of emoji types in a
tweet is counted, as well as the number of occurrences
per each emoji type present. The replacement of tags,
hashtags and URLs by the placeholders is done.
3.2</p>
      <p>Data Annotation
In order to start annotation process, we picked 500
tweets with additional requirement in order to enhance
the quality of tweets to be annotated. The
requirements were:</p>
      <p>Tweet does not contain URL-s, TAG-s. That is
a common practice in NLP that allows to exclude
meaningless parts of the text.</p>
      <p>Tweet does not contain HASHTAGS. Even
though [DTR10] found hashtags useful for
automated sentiment analysis, in our case we decided
to eliminate them in order to increase the
readability for annotators.</p>
      <p>Tweet contains from 5 to 15 words. That way
we have not so short and not so long tweets.
Tweet contains no more than 2 uppercase
words. That is also for readability reasons.
Tweet contains no unlemmatizeable words
(using spacys lemmatizer). Here it serves the data
purity purposes as well as the understandability
of the text for annotators.</p>
      <p>Tweet contains no certain keywords (the list
was manually generated after revision of corpus)
in order to eliminate spam tweets.</p>
      <p>After choosing these 500 tweets, 3 annotators were
asked to go through the procedure of tweets
evaluation using an Web Interface created by us. For each
tweet they could choose arbitrary number of emotions
(including none) out of Plutchik's Eight and set the
intensity value for it from 1 to 3. The resulting labels
were averaged according to rule of where more than
half of annotators should agree on label.</p>
      <p>The resulting corpus consists of 500 labeled tweets,
where labels are vectors of size 8 containing emotion
intensities for 8 emotions. In the annotated set nearly
half of tweets has only one emotion type, and the other
half the combination of them (up to 4 out of 8 at once),
resulting 1.1 emotion per tweet in average. The most
prevalent emotion was joy that appeared in 57% of
tweets to some extent. Other emotions were not that
spread, and appeared in a quarter or less of tweets
each.</p>
      <p>In Table 1 the statistics of emotion and emotion
combination distributions over the dataset is
presented. For clarity emotions and emotion
combinations are grouped into the positive, negative and
neutral groups. Here the grouping was made under the
assumption that emotions joy and trust are positive;
sadness, anger, disgust, and fear are negative; and no
emotions(neutral), anticipation and surprise are
neutral. The combinations were determined by the
prevailing sentiment, and in case of equality of positive
and negative emotions, it was grouped into the
neutral category.</p>
      <p>The macro distribution shows that tweets with
positive emotions are prevailing with about 60%, while
the negative and neutral emotion tweets are only the
rest. That is predicted that positive tweets will appear
more (as stated in [NSSM15]), however, a distribution
of classes is quite imbalanced.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Mapping emoji2emotion</title>
      <p>
        Using annotated dataset from the previous step the
percentage of emoji occurrences per emotion and vice
verse was done. In order to create a mapping, we
checked each possible pair of emotions and emojis for
the following two conditions. First, emojis percentage
of appearing in the tweets subset of certain emotion
should be at least equal to the median value of
possible percentages. Second, an emotion should appear
in certain emoji tweets at least half of the time. As
a result, the following mapping was done as shown in
Table 3.
To evaluate the quality of mapping, we use them as
noisy labels in emotion
        <xref ref-type="bibr" rid="ref14">annotation subtask of SemEval
2007</xref>
        task 14 - A ective text [sem07]. That task aims
to explore the connection between emotions and lexical
semantics. Since the task is carried out in an
unsupervised setting, only testing data is provided. It consists
of 1000 short texts (news headlines) annotated
according to 6 emotions (Anger, Disgust, Fear, Happiness,
Sadness, Surprise) which are Ekman's Six, and their
intensity. Due to the fact that 6 emotions of Plutchik's
Eight compose Ekman's Six, this data could be
compatible with ours. For that, we reduce the number of
classes from 8 to 6 and labelled 74670 tweets from Data
Acquisition step using emoji2emotion mapping to use
as training data. We used coarse version of SemEval's
test set as well as labelled our training set with binary
vectors.
      </p>
      <p>To train our model we turned the news headlines in
test set as well as tweet texts in training set into word
embeddings using the word2vec methodology and open
source code of emoji2vec. Then we fed these word
embeddings as well as noisy labels to 4 classi ers (SGD,
Naive Bayes, Random Forest and k-NN) from the
scikit library. Using the trained model we predicted
emotion categories per headline for the 1000 test set
mentioned before. The resulting precision, recall and
f1 scores are presented in the Table 3. The bold
values represent maximum values, while green values are
those that outperform the SemEval's best scores.</p>
      <p>That is evident that the training data has a
imbalance towards certain emotion categories which we link
to the number of emojis picked per emotion. That is
why the results of training also translate that kind of
bias. To avoid that bias we need a more balanced set,
and for that, in turn, we need more balanced mapping.
To achieve that, more training data will be needed in
the next run of the experiment and we leave that for
future development of the work.
We propose a method of experimental mapping
between emoji and sentiment or emotion classes based on
a special processing of manually annotated data. The
processing includes the nding quantitate relation
between emoji and emotion in form of cooccurrence
percentage and further thresholding. To implement the
method we annotated the corpus of 500 tweets
containing emojis with help of 3 human judges. From the
average annotation labels we constructed mapping as
described above. Due to signi cant imbalance in
emotions distribution across the dataset mapping was done
only for 4 emotion categories and evaluated by
exploiting as noisy labels for emotion detection task on those
4 emotions. The results on emotion detection task
show that it is feasible to continue in that direction by
increasing the size of the annotated corpus and further
tuning the training parameters.</p>
      <p>The resulting corpus of manually labeled emoji
containing tweets is shared open source online
(https://github.com/Aisulu/emoji2emotion) for the
bene ts of scienti c society.
After the annotation process that was evident to us,
that the labelling for 8 classes and 3 intensity levels for
each of them require the high cognitive load from the
annotators and in average takes 18 seconds per tweet.
Even though we knew that the increase in the class
numbers leads to the slower labelling [BKT+13], it was
higher than we expected and lead to the decrease of the
nal corpus size. As a result, not all the emotions were
presented in large enough size in the dataset which
leads to the convergence of the classes to fewer classes.
7</p>
    </sec>
    <sec id="sec-5">
      <title>Future Work</title>
      <p>We aim to nd less time-consuming form of annotation
process for users to increase the size of the manually
annotated corpus. After that we plan to repeat
experimental procedures.
[GBH09]</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [BFMP13]
          <string-name>
            <given-names>Marina</given-names>
            <surname>Boia</surname>
          </string-name>
          , Boi Faltings, ClaudiuCristian Musat, and
          <string-name>
            <given-names>Pearl</given-names>
            <surname>Pu</surname>
          </string-name>
          . A: )
          <article-title>is worth a thousand words: How people attach sentiment to emoticons and words in tweets</article-title>
          .
          <source>In Proceedings of the 2013 International Conference on Social Computing, SOCIALCOM '13</source>
          , pages
          <fpage>345</fpage>
          {
          <fpage>350</fpage>
          , Washington, DC, USA,
          <year>2013</year>
          . IEEE Computer Society.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [BKT+13]
          <string-name>
            <surname>Michael</surname>
            <given-names>Brooks</given-names>
          </string-name>
          , Katie Kuksenok, Megan K. Torkildson, Daniel Perry,
          <string-name>
            <surname>John J. Robinson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Taylor J.</given-names>
            <surname>Scott</surname>
          </string-name>
          , Ona Anicello, Ariana Zukowski, Paul Harris, and
          <string-name>
            <surname>Cecilia</surname>
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Aragon</surname>
          </string-name>
          .
          <article-title>Statistical affect detection in collaborative chat</article-title>
          .
          <source>In Proceedings of the 2013 Conference on Computer Supported Cooperative Work, CSCW '13</source>
          , pages
          <fpage>317</fpage>
          {
          <fpage>328</fpage>
          , New York, NY, USA,
          <year>2013</year>
          . ACM.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [DTR10]
          <string-name>
            <given-names>Dmitry</given-names>
            <surname>Davidov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Oren</given-names>
            <surname>Tsur</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Ari</given-names>
            <surname>Rappoport</surname>
          </string-name>
          .
          <article-title>Enhanced sentiment learning using twitter hashtags and smileys</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <source>In Proceedings of the 23rd International Conference on Computational Linguistics: Posters, COLING '10</source>
          , pages
          <fpage>241</fpage>
          {
          <fpage>249</fpage>
          ,
          <string-name>
            <surname>Stroudsburg</surname>
          </string-name>
          , PA, USA,
          <year>2010</year>
          .
          <article-title>Association for Computational Linguistics</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [ERA+16]
          <string-name>
            <surname>Ben</surname>
            <given-names>Eisner</given-names>
          </string-name>
          , Tim Rocktaschel, Isabelle Augenstein, Matko Bosnjak, and
          <string-name>
            <given-names>Sebastian</given-names>
            <surname>Riedel</surname>
          </string-name>
          . emoji2vec:
          <article-title>Learning emoji representations from their description</article-title>
          .
          <source>CoRR, abs/1609.08359</source>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [FMS+17]
          <string-name>
            <surname>Bjarke</surname>
            <given-names>Felbo</given-names>
          </string-name>
          , Alan Mislove, Anders S gaard, Iyad Rahwan, and
          <string-name>
            <given-names>Sune</given-names>
            <surname>Lehmann</surname>
          </string-name>
          .
          <article-title>Using millions of emoji occurrences to learn any-domain representations for detecting sentiment, emotion and sarcasm</article-title>
          .
          <source>In Conference on Empirical Methods in Natural Language Processing (EMNLP)</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <article-title>Twitter sentiment classi cation using distant supervision</article-title>
          .
          <volume>150</volume>
          , 01
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [HBF+15]
          <string-name>
            <surname>Alexander</surname>
            <given-names>Hogenboom</given-names>
          </string-name>
          , Danella Bal, Flavius Frasincar, Malissa Bal, Franciska De Jong, and Uzay Kaymak.
          <article-title>Exploiting emoticons in polarity classi cation of text</article-title>
          .
          <source>J. Web Eng</source>
          .,
          <volume>14</volume>
          (
          <issue>1-2</issue>
          ):
          <volume>22</volume>
          {
          <fpage>40</fpage>
          ,
          <string-name>
            <surname>March</surname>
          </string-name>
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [JLL+14] [KZM14]
          <string-name>
            <given-names>Fei</given-names>
            <surname>Jiang</surname>
          </string-name>
          , Yiqun Liu, Huanbo Luan, Min Zhang, and Shaoping Ma.
          <article-title>Microblog Sentiment Analysis with Emoticon Space Model</article-title>
          , pages
          <volume>76</volume>
          {
          <fpage>87</fpage>
          . Springer Berlin Heidelberg, Berlin, Heidelberg,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <string-name>
            <given-names>Svetlana</given-names>
            <surname>Kiritchenko</surname>
          </string-name>
          , Xiaodan Zhu, and
          <string-name>
            <surname>Saif</surname>
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Mohammad</surname>
          </string-name>
          .
          <article-title>Sentiment analysis of short informal texts</article-title>
          .
          <source>J. Artif. Int. Res.</source>
          ,
          <volume>50</volume>
          (
          <issue>1</issue>
          ):
          <volume>723</volume>
          {
          <fpage>762</fpage>
          , May
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          <string-name>
            <surname>[NSSM15] Petra Kralj</surname>
            <given-names>Novak</given-names>
          </string-name>
          , Jasmina Smailovic, Borut Sluban, and
          <string-name>
            <given-names>Igor</given-names>
            <surname>Mozetic</surname>
          </string-name>
          . Sentiment of emojis.
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [Plu91] [Rea05] [sem07] [WR16]
          <string-name>
            <given-names>R.</given-names>
            <surname>Plutchik</surname>
          </string-name>
          . The Emotions. University Press of America,
          <year>1991</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          <string-name>
            <given-names>Jonathon</given-names>
            <surname>Read</surname>
          </string-name>
          .
          <article-title>Using emoticons to reduce dependency in machine learning techniques for sentiment classi cation</article-title>
          .
          <source>In Proceedings of the ACL Student Research Workshop</source>
          , ACLstudent '
          <volume>05</volume>
          , pages
          <fpage>43</fpage>
          {
          <fpage>48</fpage>
          ,
          <string-name>
            <surname>Stroudsburg</surname>
          </string-name>
          , PA, USA,
          <year>2005</year>
          .
          <article-title>Association for Computational Linguistics</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          <article-title>A ective text</article-title>
          .
          <source>semeval task 14</source>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          <string-name>
            <given-names>I. D.</given-names>
            <surname>Wood</surname>
          </string-name>
          and
          <string-name>
            <given-names>S.</given-names>
            <surname>Ruder</surname>
          </string-name>
          .
          <article-title>Emoji as emotion tags for tweets</article-title>
          .
          <source>Proceedings of the Emotion and Sentiment Analysis Workshop LREC2016</source>
          , Portoro, Slovenia, pages
          <volume>76</volume>
          {
          <fpage>79</fpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [ZDWX12]
          <string-name>
            <given-names>Jichang</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Li</given-names>
            <surname>Dong</surname>
          </string-name>
          ,
          <string-name>
            <surname>Junjie Wu</surname>
            , and
            <given-names>Ke</given-names>
          </string-name>
          <string-name>
            <surname>Xu</surname>
          </string-name>
          .
          <article-title>Moodlens: An emoticon-based sentiment analysis system for chinese tweets</article-title>
          .
          <source>08</source>
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>