<!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>Aggressiveness Identi cation in Twitter at IberLEF2019: Frequency Analysis Interpolation for Aggressiveness Identi cation</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Universitat Politecnica de Valencia / 46025</institution>
          <addr-line>Valencia</addr-line>
          <country country="ES">Spain</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2019</year>
      </pub-date>
      <fpage>526</fpage>
      <lpage>530</lpage>
      <abstract>
        <p>This document describes a text change of representation approach to the task of Aggressiveness Identi cation in Twitter , as part of IberLEF2019. The task consists in classifying tweets as being aggressive or not aggressive. Tweets have been written by Mexican authors who come from a wide variety of backgrounds. Our approach consists of a change of the space of representation of text into statistical descriptors which characterize the text. In addition, dimensional reduction is performed to 6 characteristics per class in order to make the method suitable for a Big Data environment. Frequency Analysis Interpolation (FAI) is the approach we use to achieve rank 12th among 24 submissions.</p>
      </abstract>
      <kwd-group>
        <kwd>Agresiveness detection</kwd>
        <kwd>FAI</kwd>
        <kwd>Author Pro ling</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Social media has become a new standard of communications in the last years.
Every year more and more people actively participate in the content creation,
sometimes under the shield of anonymity. Social media has become a complex
communication channel in which usually o ensive contents are written.
Supervising the content and banning o ensive messages currently is a subject of high
interest for social media administrators. In this task we address the problem
of detecting aggressive comments in tweets from Mexican users. Spanish is a
language plenty with nuances, a characteristic which excels in Mexican Spanish
and their usage of "albur", where nothing means what it seems. This problem
will be considered as an Author Pro ling task, since the main goal is building a
system which would ideally detect author whose content is o ensive to women
and/or immigrant.</p>
      <p>
        Author Pro ling is widely studied and some new ideas arise from time to time
[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. We have developed a new representation method for text that reduces the
      </p>
      <p>Training Test</p>
      <p>
        7,700 3,156
dimensionality of the information for each author to 6 characteristics per class.
This representation, Frequency Analysis Interpolation, is used to codify the texts
for each user and this codi ed information is used as input data to support vector
machines with linear kernel. In a Big Data environment, reducing the number
of characteristics from thousands to 6 per class allows an e cient way to deal
with high volumes at high speed. With this will in mind a previous method was
tested which can be checked at [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] and [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Corpus</title>
      <p>
        Whereas a complete description of the corpus used in this task can be found at
[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], we will have a glimpse and introductory description of basic information in
regards of it. The data set for this track consists of tweets that were collected
based on their content. Aggressive "Mexicanism" words were explicitly looked
for and manually labelled by two people as aggressive or non-aggressive. A tweets
was considered aggressive if it contained at least one of the referred words and
had the intention to disparage or humiliate a person or a group of people, either
by using nicknames, jokes, derogatory adjectives or profanities. In Table 1 we
show the number of tweets per dataset, and in Table 2 we show the classes
distribution for both datasets.
      </p>
      <p>For this task, the nal score corresponds to the F 1 -measure for the aggressive
class.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Methodology</title>
      <p>Our goal was to develop a method that was language independent and that
required no prior knowledge of the language used by the authors. We started
implementing Term Frequency (TF) representation for each tweet in the corpus,
counting how many times each word appears in each author, each tweet in this
case, and globally for all tweets. We denote TFa as the term frequency vector
for author a.</p>
      <p>T F a = T F(w1;a); T F(w2;a); : : : ; T F(wm;a)
(1)
TF is used since this way we could represent a priori class dependent probability
for each term for each class simply by counting the number of times a term
occurs for each class, and dividing this amount by the number of times this term
shows for all classes. Let F be the frequency term vector for all classes.</p>
      <p>F =</p>
      <p>X T F a
a2A
In order to achieve that, one vector per class is generated. The vector length is
the number of words in the vocabulary. For each word, we divide the number of
times this word shows for this class, and divide it by the number of times the
word shows in all classes. We denote Ck as the term frequency vector for class k
that belong to the set of all classes K.</p>
      <p>Ck =</p>
      <p>X T F a8k 2 K
a2Ak
These vectors are then used to codify the texts. Each word in the text is
substituted by the a priori probability for each class in as many arrays as classes.
Once we have codi ed the text, six statistic values are calculated for each of the
classes:
1. Mean.
2. Standard Deviation.
3. Skewness.
4. First Tertile's length.
5. Second Tertile's length.</p>
      <p>6. Third Tertile's length.</p>
      <p>At this point, for every author, 6 characteristics per class are calculated and
concatenated in a single vector. This vector is used to feed the Support Vector
Machines with Linear kernel. LinearSVC support vector machine from Pythons
Sklearn library is used to train the model and, of course, to predict the results.
One vector is created for each author. This vector contains the six characteristic
mentioned above for every class, concatenated.</p>
      <p>
        Although the FAI representation was developed and mainly tested for Author
Pro ling tasks, it has previously been used for agressiveness detection at HatEval
in SemeEval 2019 with good results for multi-class classi cation [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
4
      </p>
    </sec>
    <sec id="sec-4">
      <title>Evaluation results</title>
      <p>This task is evaluated and ranked using F1-score for the aggressive class.</p>
      <p>Acc =
number of correctly predicted instances</p>
      <p>total number of instances
P =
number of correctly predicted instances
number of predicted labels
(2)
(3)
(4)
(5)</p>
      <p>Team
INGEOTEC task aggressiveness run 1</p>
      <p>Casavantes Aggressiveness Text
GLP-run2 Aggressiveness Text</p>
      <p>GLP-run4 Aggressiveness Text
mineriaUNAM aggressiveness secondaryRun
mineriaUNAM aggressiveness primaryRun</p>
      <p>GLP-run3 Aggressiveness Text
GLP-run1 Aggressiveness Text</p>
      <p>Baseline (Trigrams)
LyRAggressiveness T ext Run3
LyRAggressiveness T ext Run6</p>
      <p>Victor run1</p>
      <p>OscarGaribo run1
LyR Aggressiveness Text Run5
LyR Aggressiveness Text Run2
LyR Aggressiveness Text Run1</p>
      <p>Baseline (BoW )
OscarGaribo run2
LASTUS-UPF run2</p>
      <p>LASTUS-UPF run1
mdmolina agressive detection</p>
      <p>Victor run2</p>
      <p>Aspie96 secondary
LyR Aggressiveness Text Run4
hzegheru Aggressiveness Text</p>
      <p>Aspie96 primary
number of correctly predicted instances
number of labels in the gold standard</p>
      <p>F 1 =
2 * P * R</p>
      <p>
        P + R
(6)
(7)
FAI is usually penalized by the fact of having two classes. As we could see at
[
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] it performs better with a multi-class problem. Nevertheless, as we can see at
Table 3, our method has ranked in the middle of the rank table and has overcome
BoW Baseline. Since the change of representation depends on the vocabulary
that is used, subtle sentences which can denote hate in the speech but which are
not using explicit o ensive vocabulary might have been mislabeled. For example,
polysemic words can be causing mislabelling, since FAI only considers the per
class term frequency, but no context is taken into account.
      </p>
    </sec>
    <sec id="sec-5">
      <title>Conclusions and future work</title>
      <p>We have used FAI, a method developed under the scope of Author Pro ling tasks
to approach HatEval Task. Prior testing performed with our method has been
done under di erent conditions, since there were always more tweets (minimum
100) per author. Thus, there was much more vocabulary to learn from, and more
vocabulary per author. We have to point that our method can easily be updated
with new data, since the only required task to be done is recomputing the a
priori probability vectors once the new labeled data is available, and train the
machine learning algorithm, support vector machines in this speci c case. As
future work we think of exploring new con gurations of our method. One of the
immediate ones is to remove some of the vocabulary from the vocabulary we use
to codify the tweets. We have seen in our in house testing that some problems
require the more the better vocabulary, for example age identi cation, whereas
some others work better if low used words are removed from the vocabulary, for
example removing words used by less than 1% of the authors.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1. Francisco Rangel, Marc Franco-Salvador, and
          <string-name>
            <given-names>Paolo</given-names>
            <surname>Rosso</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>A low dimensionality representation for language variety representation</article-title>
          .
          <source>In: Linguistics and Intelligent Text Processing, CICLing-2016</source>
          , Springer-Verlag,
          <source>Revised Selected Papers</source>
          ,
          <string-name>
            <surname>Part</surname>
            <given-names>II</given-names>
          </string-name>
          ,
          <source>LNCS(9624)</source>
          , pages
          <fpage>156169</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>Oscar</given-names>
            <surname>Garibo</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>A big data approach to gender classi cation in twitter</article-title>
          .
          <source>In CLEF 2018 Labs and Workshops. Notebook Papers. CEUR Workshop Proceedings. CEUR-WS.org/</source>
          Vol-
          <volume>2125</volume>
          /paper 204.pdf.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Valerio</given-names>
            <surname>Basile</surname>
          </string-name>
          , Cristina Bosco, Elisabetta Fersini, Debora Nozza, Viviana Patti, Francisco Rangel, Paolo Rosso, and
          <string-name>
            <given-names>Manuela</given-names>
            <surname>Sanguinetti</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>Semeval-2019 task 5: Multilingual detection of hate speech against immigrants and women in twitter</article-title>
          .
          <source>In Proceedings of the 13th International Workshop on Semantic Evaluation (SemEval2019)</source>
          .
          <article-title>Association for Computational Linguistics</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>Mario</given-names>
            <surname>Ezra</surname>
          </string-name>
          <string-name>
            <surname>Aragon</surname>
          </string-name>
          ,
          <article-title>Miguel A Alvarez-Carmona, Manuel Montes-y Gomez, Hugo Jair Escalante, Luis Villasen~or-</article-title>
          <string-name>
            <surname>Pineda</surname>
            and
            <given-names>Daniela</given-names>
          </string-name>
          <string-name>
            <surname>Moctezuma</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>Overview of MEX-3AT at IberLEF 2019: Authorship and aggressiveness analysis in Mexican Spanish tweets</article-title>
          .
          <source>In Notebook Papers of 1st SEPLN Workshop on Iberian Languages Evaluation Forum (IberLEF)</source>
          , Bilbao, Spain, September.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>