<!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>Deception Detection in Arabic Tweets and News</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>F. Javier Fernandez-Bravo Pen~uela</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Polytechnic University of Valencia</institution>
          ,
          <country country="ES">Spain</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>The project Arabic Author Pro ling for Cyber-Security (ARAP)1 aims at preventing cyber-threats using Machine Learning. To this end, they monitor social media to early detect threatening messages and, in such a case, to pro le the authors behind. Pro ling potential terrorists from messages shared in social media may allow detecting communities whose aim is to undermine the security of others. One of this framework's main challenges is recognizing false positives, such as potential threatening messages that are actually deceptive, ironic or humorous. This paper focuses on the goal of detecting deceptive messages, which are intentionally written trying to sound authentic. This task is performed on two di erent genres of Arabic texts: Twitter messages and news headlines.</p>
      </abstract>
      <kwd-group>
        <kwd>text classi cation</kwd>
        <kwd>deception detection</kwd>
        <kwd>arabic text mining</kwd>
        <kwd>natural language processing</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        The present work describes the process of designing and implementing a classi er
whose goal is to decide whether a message is either true or deceptive, based
on the application of natural language processing techniques for decomposing
the text and arranging it in the form of a vector of features, along with the
construction of a machine learning model trained upon two di erent datasets of
Arabic written texts: Twitter messages and news headlines. This task is carried
out in the context of the APDA challenge [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] held in conjunction with the FIRE
2019 Forum for Information Retrieval Evaluation.
      </p>
      <p>This document rst outlines the aforementioned challenges and di culties
found in the problems of text mining and deception detection, focusing on their
application in the analysis of Arabic written texts. Next, it focuses on how to deal
with these problems, detailing how each one of them was overcome in the design
of the proposed classi er for detecting deceptive messages: which techniques and
features were applied on the corresponding stages of development, which were
considered but later discarded for di erent reasons, and which were retained and
assimilated in the nal model. Last, some conclusions regarding the attempt in
providing a solution to the problem of deception detection, where its assorted
eventualities and the results reached are highlighted.</p>
    </sec>
    <sec id="sec-2">
      <title>Challenges</title>
      <p>Three main challenges are found when analyzing written texts from Arabic media
(both press and social). First of all, di erences to languages based on the latin
alphabet and with widely di erent from the gramatical point of view must be
handled, so that texts written on these languages can be processed in the context
of an automated task.</p>
      <p>Next, the result of this process in the current task must be applied to the
problem of deception detection, which will be addressed below in section 3.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Deception detection in Arabic written texts</title>
      <p>
        The focus of the task is on deception detection in Arabic on two di erent genres:
Twitter and news headlines. Both dataset's origin are the corpora created in
[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], which contain 1444 news headlines (679 true statements and 765 deceptive
statements) and 532 Twitter messages (259 true publications and 273 deceptive
publications). They reach a large variety of topics and both classes are balanced
enough, so that they are supposed to be representative of the whole populations
generalizable by the experiment.
      </p>
      <p>
        The documents contained in each dataset must be transformed into
representation which allows its processing, such as a vector of features. A machine
learning model has to be constructed and trained using the portion of the dataset
available to the APDA challenge contestants [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. This model will be used for
making classi cation predictions for the texts in the evaluation portion of the
dataset. Finally, the test results' quality will be measured by computing the
FScore which compares the classi cation predictions to the actual classes for the
evaluation data subset.
      </p>
      <p>The tasks carried out to reach this goal are outlined in the following
subsections.
3.1</p>
      <sec id="sec-3-1">
        <title>Preprocessing</title>
        <p>In order to process the raw text collection from the dataset and build a classi er
capable of di erentiate whether tweets and news are true or deceptive, the rst
step was to apply some normalization tasks on the text entries, as follows:
{ All letters capitalization was turned to lowercase.
{ Numbers were removed.
{ White spaces and other splitter characters were rst collapsed and then
removed.
{ Every word contained into the English and Arabic languages stop-words lists
of common words with empty semantic meaning was removed from the text.
{ Punctuation symbols were removed.
{ Words from the English and Arabic languages stop-words lists were removed
again. The reason for performing this elimination twice was having found
out that removing words from the stop-words list before and after removing
punctuations actually contributed to a better cleansing of the text processed,
thus increasing the nal accuracy attained by the classi er.
3.2</p>
      </sec>
      <sec id="sec-3-2">
        <title>Feature extraction</title>
        <p>Next step was to retrieve a data frame containing the 1000 most frequent words
occurring in the text collection. This data frame, which corresponds to the text
collection vocabulary, was used to generate the bag of words representation of
the text collection, a two-dimensional matrix which relates words from the
vocabulary to their number of occurrences on each of the dataset's documents.
This bag of words is actually a vectorized representation of the text's features,
which, along with the class each document belongs to, can be used to train a
classi er a build a Machine Learning model with the ability to decide the most
probably category for new unseen documents.</p>
        <p>At this point, the bag of words was enriched in di erent ways for the news
and Twitter datasets (constructing separated classi ers for every one). A new
feature was added to both data frames containing the number of words in the
document, and three new features were added to the Twitter data frame
detailing the number of hashtags, user mentions, emojis. These three are some
traits characteristic in Twitter's texts and it is believed that their frequency
might be related to either true or deceptive messages, so that they make a good
discriminatory factor for di erentiating and classifying messages.
3.3</p>
      </sec>
      <sec id="sec-3-3">
        <title>Classi er model training</title>
        <p>Once the vectorized form of the text collection was complete, the data frame
containing the bag of words representation for each dataset was used to train a
classi er2, taking support vector machines as the machine learning technique of
choice, due to their good performance on classi cation where many features are
used (as it happens to be the case of text classi cation). K-fold cross-validation
was used to select the classi er which provides the highest accuracy and displays
the best ability to generalize. The collection was split into four folds, three of
which were used for training on every iteration, while the other one was left for
evaluation.</p>
        <p>Since the result classes for the test dataset are unknown, the F-Score
obtained by the implementation of the K-fold cross-validation technique was used
to check which combination of parameters, features, and techniques produced
the highest accuracy on classi cation. This accuracy result data from evaluation
are displayed in section 4.
2 In case of having unbalanced classes, weighting and penalization mechanisms can be
included in the classi er, so that the predictions made will be more accurate and
representative for the general population.</p>
      </sec>
      <sec id="sec-3-4">
        <title>Accuracy evaluation</title>
        <p>Once the classi er model was built, the bag of words representations for the
test datasets (news and tweets) were constructed, applying on them the same
normalization techniques on the documents as in their documents as in the
training data and using the vocabulary from the training stage. By doing this,
both vectorized representations are equivalent to the training ones regarding
order and indexing, and the classi er built from training data can be used to
generate predictions for new data.</p>
        <p>Finally, predictions were generated for the vectorized representation of the
test data, and the identi er and predicted class for each document were stored
into text les, ready to be submitted for evaluation. Since di erent models were
trained for classifying news and tweets, the corresponding classi er was used for
generating predictions on test data les.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Results</title>
      <p>First of all, a prototype implementation was built, including just the components
strictly needed for basic tokenization, vectorization, and classi cation (without
including other manipulations on the text neither the extraction of additional
features), so that a baseline score could be obtained and later improved. The
original F-score reached on both datasets was quite low for a classi cation with
just two possible categories. These results, along with the attained in further
stages, are displayed in table 1.</p>
      <p>Once the de nitive implementation was complete, having tuned the support
vector machine's hyperparameters, extracted additional useful feature and
included supplementary mechanisms (which were commented in subsection 3.2),
classi cation on the Twitter and news datasets respectively improved in 16%
and 12%.</p>
      <p>Although an even higher improvement would be feasible, the results show
that the application of some of the techniques introduced actually improves the
classi er's accuracy. In the case of the classi cation on the Twitter dataset,
it was evaluated before implementing the extraction of relevant features (just
keeping the n most frequent words). The inclusion of some relevant features
based on the text characteristic themselves, combined with common natural
language processing techniques, provides a signi cant improvement on the results
attained.
The present work has described the process of designing and implementing a
classi er whose goal is to decide whether a message is either true or deceptive
(a false statement which is intentionally written pretending to seem true).</p>
      <p>The extraction of features related to the nature of the text itself has proven
useful for increasing the model's accuracy and might indeed be decisive on the
results attained. Particularly, when analyzing Twitter texts, characteristic traits
from this media were extracted, such as hashtags, user mentions, and emojis.
This led to the construction of a di erent classi er for each media, trained with
their corresponding vectors of features.</p>
      <p>In a world of social media and fake news, this e ort is oriented to provide a
solution to the problem of determining the truthfulness of a statement just from
the way it is written and expressed. Further e orts aim to take into account
linguistic twists which may imply false positives, such as irony or humor.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Rangel</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Char</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosso</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zaghouani</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          :
          <article-title>Detecting deceptive tweets in arabic for cyber-security</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Rangel</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosso</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Char</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zaghouani</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ghanem</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sanchez-Junquera</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          :
          <article-title>Overview of the track on author pro ling and deception detection</article-title>
          .
          <source>In: Working Notes of the Forum for Information Retrieval Evaluation (FIRE</source>
          <year>2019</year>
          )
          <article-title>(</article-title>
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>