<!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>Detection of Aggressive Tweets in Mexican Spanish Using Multiple Features with Parameter Optimization</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>German Ortiz</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Helena Gomez-Adorno</string-name>
          <email>helena.gomez@iimas.unam.mx</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>l-Enguix</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Instituto de Ingenier a, Universidad Nacional Autonoma de Mexico</institution>
          ,
          <country country="MX">Mexico</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Instituto de Investigaciones en Matematicas Aplicadas y en Sistemas, Universidad Nacional Autonoma de Mexico</institution>
          ,
          <country country="MX">Mexico</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Universidad Autonoma de Yucatan</institution>
          ,
          <addr-line>Merida, Yucatan</addr-line>
          ,
          <country country="MX">Mexico</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2019</year>
      </pub-date>
      <fpage>520</fpage>
      <lpage>525</lpage>
      <abstract>
        <p>This paper explains our approach to Aggressiveness Identi cation in the MEX-A3T shared task, whose aim is the detection of aggressive tweets. The task proposes a binary classi cation for every tweet: aggressive and non-aggressive. We approached the problem using linguistically motivated features and several types of n-grams (words, characters, functional words, punctuation symbols, among others). We trained a Support Vector Machine using a combinatorial framework that optimizes the results of the classi er. Our best run achieved a F1-score of 0,4549, which is the 5th best among the twenty-six runs.</p>
      </abstract>
      <kwd-group>
        <kwd>Aggressiveness detection chine learning</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>MaAggressiveness is an emotional state that consists of hate feelings and desires
to physically or psychologically hurt a person or group of people. Nowadays,
communication through social networks plays a crucial role in society life. Social
Networking Services open a whole world of possibilities, but they also represent
a signi cant threat, since users are exposed to many risks and attacks; among
them aggressive comments, which can cause short-term and long-term damage
to victims.</p>
      <p>
        For the second year in a raw, the MEX-A3T 2019 workshop [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] launched
the aggressiveness detection track in Mexican Spanish tweets with the aim of
promoting research on the analysis of the content of social networks in this
language. For this task, the organizers de ne an aggressive tweet as follows: it
contains messages that despise or humiliate a person or group of people, using
the following elements: nicknames, jokes or derogatory adjectives. Our approach
uses a Machine Learning perspective in which the problem results in a binary
classi cation, between aggressive or not. To do this, we use the Support Vector
Machine (SVM) algorithm as a classi er. For feature extraction, di erent types of
n-grams were used (n-grams of words, n-grams of characters, skipgrams, among
others).
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Related work</title>
      <p>In recent years, the automatic detection of aggressive behavior in social media
is gaining a lot of attention.</p>
      <p>
        Our approach is based on previous work on hate speech detection in
twitter [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] and aggressive detection of tweets in Mexican Spanish [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], which were
presented in the MEX-A3T 2018 Workshop [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], and the SemEval-2019 Workshop,
respectively. The former follows a classical machine learning approach, in which
a logistic regression algorithm is trained on linguistically motivated
characteristics and various types of n-grams. The latter uses a Support Vector machine as
classi er with a combinatorial framework for parameter optimization.
      </p>
      <p>
        Concerning to aggressiveness detection related work, [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] classi es Facebook
comments using three deep learning architectures, Convolutional Neural
Networks, Long Short Term Memory networks, and Bi-directional Long Short Term
Memory networks and a majority voting-based ensemble method to combine
them.
      </p>
      <p>
        Djuric et al. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] used the generated list to annotate a publicly available corpus
of more than 16k tweets. They analyzed the impact of various extra-linguistic
features along with character n-grams for the detection of hate speech. In turn,
they elaborated a dictionary based on the most indicative words in their data.
      </p>
      <p>
        Chatzakou et. al [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] studied the properties of bullies and aggressors, and
found that stalkers post with less frequency, participate in fewer online
communities and are less popular than users with standard models of behaviour. Their
research shows that machine learning classi cation algorithms can accurately
detect users who exhibit bullying and aggressive behavior, with more than 90%
of accuracy.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Corpus</title>
      <p>The corpus was collected between August and November 2017. The training
dataset has 7700 tweets, with a distribution of 35% of aggressive messages and
65% non-aggressive messages, keeping the texts and labels on separate les.</p>
      <p>Aggressive tweets contain at least one word considered vulgar or insulting
based on a Mexicanisms dictionary. The dataset was manually labeled by two
taggers following the premise that an aggressive message pretends to humiliate
a person or people with jokes or derogative adjectives.</p>
      <p>In the corpus, all user handlers were replaced by @USUARIO and all URL's
were replaced by &lt;URL&gt;.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Methodology</title>
      <p>This section shows in detail the processing that was carried out in the corpus to
subsequently perform the classi cation task. This is a very important stage to
maximize the classi er performance, as well as allow to manipulate the data in
a simpli ed way. In addition, text representation features are described.
4.1</p>
      <p>
        Pre-processing
{ Diacritic symbols: These were removed to avoid composed symbols, that
are an errors source in informal texts.
{ Text normalization: Tweets were standardized to lowercase to avoid
multiple copies of the same words along the corpus.
{ Abbreviations replacement: Abbreviations, contractions and slangs were
replaced by the original text using a social networks-based dictionary [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
{ Emojis were removed.
4.2
      </p>
      <sec id="sec-4-1">
        <title>Classi er</title>
        <p>
          We used a combinatorial framework ( T C ) developed by [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ]. The framework
approaches any text classi cation task as a combinatorial optimization problem;
where there is a search space containing all possible combinations of di erent
text pre-processing methods, text features and weighting schemes with their
respective parameters, and, on this search space, a local search-based
metaheuristic is used to search for a con guration that produces a highly e ective text
classi er. Considering all the combinations established in the implementation
of ( T C), we optimized the features described in Section 4.3. Once the best
con guration was selected, we trained an SVM with a linear kernel.
        </p>
        <p>
          Di erent from previous work [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] where the features added to ( T C) are
static, that is, the feature sets that are not considered in the ( T C ) framework
were selected based on their individual classi cation performance. Once the best
con guration space was found, all n-grams types with all n variations are added
to the nal vector for each text. In our approach, all features were included and
optimized in the ( T C) framework, which selects only those feature sets that
are likely to o er the best classi er performance.
4.3
        </p>
      </sec>
      <sec id="sec-4-2">
        <title>Features</title>
        <p>Beside the features already considered in the T C framework we took into
account other features such as the one mentioned bellow:
{ Character n-grams: They are language-independent powerful features for
many natural language processing tasks where many words are likely to be
poor written. For our approach a variation of n from 3 to 5 is used.
{ Word n-grams: These features capture the identi cation of a word and its
possible neighbors. We use a variation of n from 3 to 5.
{ Aggressive words n-grams: In our approach we manually collected an
aggressive words lexicon obtained from the web and some word extracted
from the training corpus. Variation of n from 2 to 3 is used.
{ Skipgrams: For our approach we capture 2-words groups with skips from
2 to 4 words.
{ Stopwords n-grams: We use the stopwords list from NLTK library to build
them, with a variation of n from 2 to 4. Stopwords frequencies are one of the
best features to detect aggressiveness messages.
{ Punctuation-symbols n-grams: These n-grams helps to detect patterns
in aggressiveness analysis. We use a variation of n from 2 to 5 to build them.
5</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Results</title>
      <p>The system performance in the aggressiveness detection track was measured
using F1-score on aggressive class. Table 5 shows results for the best run on the
training corpus with 10-fold cross-validation using static and optimized features
(as we describe above), along with the evaluation phase o cial results on the
test corpus.</p>
      <p>In the nal con guration space, besides the features already considered in
( T C), from our additional feature sets just punctuation symbols n-grams were
used with n = 5, while the other features are ignored.</p>
      <p>
        The results we obtained in the 2019 edition were clearly better than the ones
from 2018. We improved our results from 0.4285 to 0.4549. The main di erence
was the use of ( T C) [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. This means that this combinatorial framework is a
good complement that helps to optimize the feature set for the classi cation
process.
6
      </p>
    </sec>
    <sec id="sec-6">
      <title>Conclusions</title>
      <p>We presented an approach for aggressiveness detection in Mexican Spanish tweets.</p>
      <p>We trained a Support Vector Machine using a combinatorial framework
( T C), to which we added di erent types of n-grams such as punctuation
symbols n-grams, stop-words n-grams, and aggressive words n-grams to be
optimized. The results we obtained are better than the ones obtained last year,
achieving an improvement from 0.4285 to 0.4549 on the F1-score on the
aggressive class.</p>
      <p>
        In addition, the obtained results in this task were improved by the
optimization of extra features added in previous work [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Alvarez-Carmona</surname>
            ,
            <given-names>M.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Guzman-Falcon</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Montes-</surname>
            y-Gomez,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Escalante</surname>
            ,
            <given-names>H.J.</given-names>
          </string-name>
          ,
          <article-title>Villasen~or-</article-title>
          <string-name>
            <surname>Pineda</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Reyes-Meza</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rico-Sulayes</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Overview of mex-a3t at ibereval 2018: Authorship and aggressiveness analysis in mexican spanish tweets</article-title>
          .
          <source>In: Notebook Papers of 3rd. SEPLN Workshop on Evaluation of Human Language Technologies for Iberian Languages (IBEREVAL)</source>
          , Seville, Spain, September (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Aragon</surname>
            ,
            <given-names>M.E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Alvarez-Carmona</surname>
            ,
            <given-names>M.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Montes-y Gomez</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Escalante</surname>
            ,
            <given-names>H.J.</given-names>
          </string-name>
          ,
          <article-title>Villasen~or-</article-title>
          <string-name>
            <surname>Pineda</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Moctezuma</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Overview of mex-a3t 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 (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Argota</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Reyes-Magaa</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gomez-Adorno</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bel-Enguix</surname>
          </string-name>
          , G.:
          <article-title>MineriaUNAM at SemEval-2019 Task 5: Detecting Hate Speech in Twitter using Multiple Features in a Combinatorial Framework</article-title>
          .
          <source>In: Proceedings of the 13th International Workshop on Semantic Evaluation (SemEval-</source>
          <year>2019</year>
          ).
          <article-title>Association for Computational Linguistics (</article-title>
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Chatzakou</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kourtellis</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Blackburn</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Cristofaro</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stringhini</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vakali</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Mean birds: Detecting aggression and bullying on twitter</article-title>
          .
          <source>In: Proceedings of the 2017 ACM on web science conference</source>
          . pp.
          <volume>13</volume>
          {
          <fpage>22</fpage>
          .
          <string-name>
            <surname>ACM</surname>
          </string-name>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Djuric</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhou</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Morris</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Grbovic</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Radosavljevic</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bhamidipati</surname>
          </string-name>
          , N.:
          <article-title>Hate speech detection with comment embeddings</article-title>
          .
          <source>In: Proceedings of the 24th international conference on world wide web</source>
          . pp.
          <volume>29</volume>
          {
          <fpage>30</fpage>
          .
          <string-name>
            <surname>ACM</surname>
          </string-name>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Gomez-Adorno</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bel-Enguix</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sierra</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sanchez</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Quezada</surname>
            ,
            <given-names>D.:</given-names>
          </string-name>
          <article-title>A machine learning approach for detecting aggressive tweets in spanish</article-title>
          .
          <source>In: Proceedings of the 3rd Workshop on Evaluation of Human Language Technologies for Iberian Languages (IberEval</source>
          <year>2018</year>
          ),
          <source>CEUR WS Proceedings</source>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Gomez-Adorno</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Markov</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sidorov</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Posadas-Duran</surname>
            ,
            <given-names>J.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sanchez-Perez</surname>
            ,
            <given-names>M.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chanona-Hernandez</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Improving feature representation based on a neural network for author pro ling in social media texts</article-title>
          .
          <source>Computational intelligence and neuroscience</source>
          <year>2016</year>
          ,
          <volume>2</volume>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Madisetty</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sankar-Desarkar</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Aggression detection in social media using deep neural networks</article-title>
          .
          <source>In: Proceedings of the First Workshop on Trolling, Aggression and Cyberbullying</source>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Tellez</surname>
            ,
            <given-names>E.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Moctezuma</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Miranda-Jimenez</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gra</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>An automated text categorization framework based on hyperparameter optimization</article-title>
          .
          <source>Knowledge-Based Systems 149</source>
          ,
          <fpage>110</fpage>
          {
          <fpage>123</fpage>
          (
          <year>2018</year>
          ). https://doi.org/10.1016/j.knosys.
          <year>2018</year>
          .
          <volume>03</volume>
          .003
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>