<!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>Emotion based voted classi er for Arabic irony tweet identi cation</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Nikita Kanwar</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Rajesh Kumar Mundotiya</string-name>
          <email>rajeshkm.mundotiya@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Megha Agarwal</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Chandradeep Singh</string-name>
          <email>chandradeepsingh904g@gmail.com</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Indian Institute of Technology (BHU)</institution>
          ,
          <addr-line>Varanasi</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Pratap Institute of Technology and Science</institution>
          ,
          <addr-line>Sikar</addr-line>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this paper, we have worked on irony detection in the Arabic language, a task which is organized by FIRE 2019. The tweets have been preprocessed and tokenized to extract the frequency-based, emotion-based features. These features are used to irony identi cation using the voted classi er. The F-score of our proposed approach is 0.807 and the top-ranking developed method having F-score of .037, so the di erence between F-score makes our approach better.</p>
      </abstract>
      <kwd-group>
        <kwd>Voted Classi er</kwd>
        <kwd>Emotion feature</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        In a couple of years, social media blogs become the best way to exchange pieces of
information. Irony used ubiquitously, primarily when acknowledging
microblogging platforms like Twitter. These platforms aid users to dispense their opinions
and thoughts on a various topic. There are many more natural language
processing applications which are often observed while modelling ironic contents and
with its complexity [
        <xref ref-type="bibr" rid="ref10 ref13 ref14 ref9">13, 9, 10, 14</xref>
        ].
      </p>
      <p>
        Most of the earlier work on ironic detection using English data has been done
using rule-based and feature-based techniques. In previous work of irony
detection on English: A rule-based approach depends on the hashtag [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] and linguistic
features (exclamations and intensi ers) [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] are used. Feature-based approach
includes handcrafted features i.e. emotion features, sentiment lexicon, structural
features, subjectivity lexicon as well as distributional vector representation for
automatic features [
        <xref ref-type="bibr" rid="ref16 ref17">16, 17</xref>
        ]. From the natural language processing (NLP)
perspective, irony helps to produce and understand human language whereas, in
terms of text mining, it is more convenient where semantic analysis has a
significant role, such as author pro ling and deception detection, sentiment analysis,
emotion analysis, online harassment detection [
        <xref ref-type="bibr" rid="ref15 ref2">15, 2</xref>
        ].
      </p>
      <p>
        Irony detection in Arabic tweets is a challenging task due to the inclusion
of dialects, non-diacritised texts, data sparsity, and code-switching with
Arabic dialects, French and English[
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. We have devised a machine learning-based
voted classi er tool based on emotion feature and term frequency-inverse
document frequency (tf-idf) features of an Arabic tweet. For the emotion feature
extraction, we exerted Google translation api to English.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Related Work</title>
      <p>
        Irony detection has been a problem scrutinised by various disciplines, such as
linguistics, philosophy, and psychology, but their description in formal terms id
quite tricky. The irony is also a challenge for the sentiment analysis problems.
Faras, Delia et. al. gives a irony detection on tweets data. The author
considers it as a binary classi cation problem where mostly tweets speci ed with
distinct hashtags. They propose an a ective method for extraction of features
based on an extensive range of lexical resources accessible for English. The
author uses twitter data for corpora creation using two approach- self-tagging and
crowdsourcing. They use irony detection model with emotion information for a
complete model named emoIDM [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Similarly, de Freitas et al. also uses tweets
data for irony detection, the author describes a set of patterns that may help
to suggest ironic/sarcastic statements. In this paper, the author has analyzed
tweets under the scope of the domain "Fim do Mundo" in the experiment
section [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. On the other hand, Buschmeier et al. treats this problem as supervised
learning and evaluate the di erent classi er. The author uses the revies dataset
for classi cation, whether the review is irony or non-irony [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
      </p>
      <p>
        Moving ahead to the direction of sentiment analysis in Arabic language irony
detection, many authors proposed their methods with di erent methodologies.
Heikal, Maha et al. proposed a deep learning method for sentiment analysis.
The Arabic language is more complicated than any other language because of
the complex structure and inclusion of various dialects in language. The author
used ensemble techniques, which include Convolution neural network and Long
short term memory to predict the sentiment of Arabic tweets [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. Jihen Karouia
et al. describe the sentiment analysis in Arabic tweets as a binary classi cation
technique. They de ne tweet as a vector composed of four groups of features:
surface, sentiment, shifter and internal context features, and applies di erent
types of machine learning classi ers [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. El-Masri et al. performed sentiment
analysis in Arabic tweets using a combination of features; those features are
preprocessing on Arabic tweets using stemming and retweets, n-gram features,
lexicon-based method and machine learning-based methods [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <p>
        Most researcher also focuses on emotion detection. Agrawal et al. proposed
a methodology for sarcasm detection called automated word embedding for
sarcasm, which using relevant information from word representation [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Duppada,
Venkatesh, et al. presents a task paper for SemEval-2018 A ect in Tweets
(English) sub-tasks. This task is mainly focused on the ordinal classi cation and
https://cloud.google.com/translate/docs/
regression sub-tasks for valence and emotion. The author uses four di erent
model domain adaptation and creates an ensemble to give the nal prediction
[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Experimental Setup</title>
      <p>Earlier work on ironic content identi cation depended on feature engineering.
The handcrafted feature extraction required knowledge about language, which
is a tedious task for a person who is new for the language. Our classi cation
method solely depends upon emotional features and tf-idf features.
3.1</p>
      <sec id="sec-3-1">
        <title>Dataset Statistics</title>
        <p>
          In this task, the task organiser has provided a balanced dataset of 4024 posts
for the training, out of which 2091 are ironic and remaining as non-ironic posts,
and 1006 are the testing dataset, as mentioned in Table 1 [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ].
In the preprocessing part, all posts were cleaned using the "Tweet Preprocessing"
library with default settings. We got the clean post after removing the Hashtag,
URL's, Mentions, Emoji's and Smileys for getting the stable emotion features
from Deepmoji, and the get the preprocessed post after ignoring the Arabic stop
words (available in NLTK) from the tokenised sentences. The tf-idf features aid
to design a language-independent model. Whereas lemmatisation, stemming and
grammatical features are language-dependent. The emotions and tf-idf feature
have been extracted through cleaned and preprocessed posts, respectively.
For the classi cation task, our system combines two features: Emotion-based
feature and Frequency-based feature. We have assumed that the meaning of
posts will be captured through emotions and syntactic features through the
frequency-based method. Emotion features extraction has been done though
https://pypi.org/project/tweet-preprocessor/
https://www.nltk.org/
the translation of clean posts into English via Google translation API. The
translated posts feed to deepmoji (using in default setting), which gives the
emotion feature vector. The preprocessed post has used tf-idf vectorization to
represent the syntax features.
3.4
        </p>
      </sec>
      <sec id="sec-3-2">
        <title>Classi er</title>
        <p>Our classi er model includes the robust classi er: Multimodel Naive Bayes (MNB),
Support Vector Machine (SVM), Logistic Regression (LR), with Stochastic
Gradient Descent (SGD). We stored all tracks performance of the individual
classi ers. All classi er takes input in the form of concatenated features (emotion
feature and tf-idf feature) matrix and output as a binary label for the categorical
result. The training has done using cross-validation, in which 0.8% was used as
training and remaining for validation, randomly. Each classi er has a di erent
score, as classi ers have di erent specialties. Therefore, we combined them in
order of Multimodel Naive Bayes, Support Vector Machine, and Logistic
Regression to get an ensembled result. We make a voting system based on majority
rule with the classi ers. The complete processing ow has shown in Figure 1.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Experiment and Result</title>
      <p>We trained di erent models on the training set and tested them on the
validation set, using scikit-learn. The initial experimental results were based on tf-idf
features as a baseline, later on, improves by concatenation of emotion features.
The training of logistic regression with stochastic gradient descent with hinge
loss till 50 maximum iterations and regularised by L2. Remaining classi ers
applied with the default setting. The result of each classi er on validation data are
shown in Table 2. After using the voting system, the result of validation and test
data has shown in Table 3.
https://github.com/bfelbo/DeepMoji
https://scikit-learn.org/stable/</p>
    </sec>
    <sec id="sec-5">
      <title>Conclusion</title>
      <p>Our majority voted classi er for Arabic tweet identi cation has achieved 0.75%,
0.807% F-score on cross-validation and testing data, respectively. The F-score
di erence between our system and the top-ranking system is 0.037%. The data is
a binary labeled, which handled through the concatenation of tf-idf and
emotionbased feature. That features are generated using the generative (Multimodel
Naive Bayes) and discriminative (Logistic Regression, Support Vector Machine)
algorithms. The voted classi er is based on high majority rule. As future work, It
would be helpful to use deep learning-based techniques with pre-trained subword
level embeddings.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Agrawal</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>An</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>A ective representations for sarcasm detection</article-title>
          .
          <source>In: The 41st International ACM SIGIR Conference on Research &amp; Development in Information Retrieval</source>
          . pp.
          <volume>1029</volume>
          {
          <fpage>1032</fpage>
          .
          <string-name>
            <surname>ACM</surname>
          </string-name>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Al-Ayyoub</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Khamaiseh</surname>
            ,
            <given-names>A.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jararweh</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Al-Kabi</surname>
            ,
            <given-names>M.N.:</given-names>
          </string-name>
          <article-title>A comprehensive survey of arabic sentiment analysis</article-title>
          .
          <source>Information Processing &amp; Management</source>
          <volume>56</volume>
          (
          <issue>2</issue>
          ),
          <volume>320</volume>
          {
          <fpage>342</fpage>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Buschmeier</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cimiano</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Klinger</surname>
            ,
            <given-names>R.:</given-names>
          </string-name>
          <article-title>An impact analysis of features in a classi cation approach to irony detection in product reviews</article-title>
          .
          <source>In: Proceedings of the 5th Workshop on Computational Approaches</source>
          to Subjectivity,
          <article-title>Sentiment and Social Media Analysis</article-title>
          . pp.
          <volume>42</volume>
          {
          <issue>49</issue>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Duppada</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jain</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hiray</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          : Seernet at semeval
          <article-title>-2018 task 1: Domain adaptation for a ect in tweets</article-title>
          . arXiv preprint arXiv:
          <year>1804</year>
          .
          <volume>06137</volume>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>El-Masri</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Altrabsheh</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mansour</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ramsay</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>A web-based tool for arabic sentiment analysis</article-title>
          .
          <source>Procedia Computer Science</source>
          <volume>117</volume>
          ,
          <issue>38</issue>
          {
          <fpage>45</fpage>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6. Far as,
          <string-name>
            <given-names>D.I.H.</given-names>
            ,
            <surname>Patti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            ,
            <surname>Rosso</surname>
          </string-name>
          ,
          <string-name>
            <surname>P.</surname>
          </string-name>
          :
          <article-title>Irony detection in twitter: The role of a ective content</article-title>
          .
          <source>ACM Transactions on Internet Technology (TOIT) 16(3)</source>
          ,
          <volume>19</volume>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7. de Freitas,
          <string-name>
            <given-names>L.A.</given-names>
            ,
            <surname>Vanin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.A.</given-names>
            ,
            <surname>Hogetop</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.N.</given-names>
            ,
            <surname>Bochernitsan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.N.</given-names>
            ,
            <surname>Vieira</surname>
          </string-name>
          , R.:
          <article-title>Pathways for irony detection in tweets</article-title>
          .
          <source>In: Proceedings of the 29th Annual ACM Symposium on Applied Computing</source>
          . pp.
          <volume>628</volume>
          {
          <fpage>633</fpage>
          .
          <string-name>
            <surname>ACM</surname>
          </string-name>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Ghanem</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Karoui</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Benamara</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Moriceau</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosso</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Idat@ re2019: Overview of the track on irony detection in arabic tweets</article-title>
          .
          <source>In: FIRE (Working Notes)</source>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Ghosh</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Veale</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Fracking sarcasm using neural network</article-title>
          .
          <source>In: Proceedings of the 7th workshop on computational approaches</source>
          to subjectivity, sentiment
          <article-title>and social media analysis</article-title>
          . pp.
          <volume>161</volume>
          {
          <issue>169</issue>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Gonzalez-Ibanez</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Muresan</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wacholder</surname>
          </string-name>
          , N.:
          <article-title>Identifying sarcasm in twitter: a closer look</article-title>
          .
          <source>In: Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies: Short Papers-Volume</source>
          <volume>2</volume>
          . pp.
          <volume>581</volume>
          {
          <fpage>586</fpage>
          .
          <article-title>Association for Computational Linguistics (</article-title>
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Heikal</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Torki</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>El-Makky</surname>
          </string-name>
          , N.:
          <article-title>Sentiment analysis of arabic tweets using deep learning</article-title>
          .
          <source>Procedia Computer Science</source>
          <volume>142</volume>
          ,
          <issue>114</issue>
          {
          <fpage>122</fpage>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Karoui</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zitoune</surname>
            ,
            <given-names>F.B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Moriceau</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>Soukhria: Towards an irony detection system for arabic in social media</article-title>
          .
          <source>Procedia Computer Science</source>
          <volume>117</volume>
          ,
          <issue>161</issue>
          {
          <fpage>168</fpage>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Liu</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Sentiment analysis and opinion mining</article-title>
          .
          <source>Synthesis lectures on human language technologies 5(1)</source>
          ,
          <volume>1</volume>
          {
          <fpage>167</fpage>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Maynard</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Greenwood</surname>
            ,
            <given-names>M.A.</given-names>
          </string-name>
          :
          <article-title>Who cares about sarcastic tweets? investigating the impact of sarcasm on sentiment analysis</article-title>
          .
          <source>In: LREC 2014 Proceedings. ELRA</source>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Rosso</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rangel</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Far</surname>
            as,
            <given-names>I.H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cagnina</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zaghouani</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Char</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>A survey on author pro ling, deception, and irony detection for the arabic language</article-title>
          .
          <source>Language and Linguistics Compass</source>
          <volume>12</volume>
          (
          <issue>4</issue>
          ),
          <year>e12275</year>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Van Hee</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lefever</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hoste</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>Semeval-2018 task 3: Irony detection in english tweets</article-title>
          .
          <source>In: Proceedings of The 12th International Workshop on Semantic Evaluation</source>
          . pp.
          <volume>39</volume>
          {
          <issue>50</issue>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Zhang</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhang</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chan</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosso</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Irony detection via sentiment-based transfer learning</article-title>
          .
          <source>Information Processing &amp; Management</source>
          <volume>56</volume>
          (
          <issue>5</issue>
          ),
          <volume>1633</volume>
          {
          <fpage>1644</fpage>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>