<!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>fabsam @ AMI: A Convolutional Neural Network Approach</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Samuel Fabrizi</string-name>
          <email>s.fabrizi1@studenti.unipi.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>University of Pisa</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2020</year>
      </pub-date>
      <abstract>
        <p>The presence of misogynistic contents is one of the most crucial problems of social networks. In this paper we present our system for misogyny identification on Twitter. Our approach is based on a convolutional neural network that exploits pretrained word embeddings. We also experimented a comparison among different architectures to understand the effectiveness of our method. The paper also described our submissions to both subtasks A and B to Automatic Misogyny Identification competition at Evalita 2020.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>
        The paper describes our submission to the
Automatic Misogyny Identification task at Evalita 2020
        <xref ref-type="bibr" rid="ref4 ref8">(Fersini et al., 2020; Basile et al., 2020)</xref>
        . This
competition is divided into two subtasks:
• Subtask A Misogyny and Aggressive
Behaviour Identification: identify if a text is
misogynous or not, and, in case of misogyny,
if it expresses an aggressive attitude.
• Subtask B Unbiased Misogyny
Identification: discriminate misogynistic contents
from the non-misogynistic ones, while
guaranteeing the fairness of the model (in terms
of unintended bias) on a synthetic dataset
        <xref ref-type="bibr" rid="ref10">(Nozza et al., 2019)</xref>
        .
      </p>
      <p>We proposed a convolutional based approach to
recognize misogynistic sentences. We grounded
our work over a robust model selection technique.
In order to confirm our approach we developed
other architectures based on state of art models to
make a systematic comparison.</p>
      <p>Our work is organized as follows. Section 2 briefly
describes related work on the proposed task.
Section 3 describes our architectures. Section 4
introduces our method. In particular, it describes
our approach for model selection and assessment.
Section 5 presents the official results obtained in
the AMI competition. Section 6 concludes this
work.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Related Work</title>
      <p>
        The misogyny identification and classification
approaches are very recent
        <xref ref-type="bibr" rid="ref1 ref7">(Anzovino et al., 2018)</xref>
        .
In the last few years there was an increasing
number of research on this field. The majority of them
have concentrated especially on abusive and
aggressive language detection. This form of hate
speech task has been proposed in different
organized shared tasks: IberEval 2018
        <xref ref-type="bibr" rid="ref1 ref7">(Fersini et al.,
2018)</xref>
        , Evalita 2018
        <xref ref-type="bibr" rid="ref1 ref7">(Fersini et al., 2018)</xref>
        and later
at SemEval 2019
        <xref ref-type="bibr" rid="ref3">(Basile et al., 2019)</xref>
        . Most of
the state-of-art approaches to misogyny detection
were described as system reports for these shared
tasks.
      </p>
      <p>
        Finally, it is important to mention that
different deep learning approaches have been proposed
        <xref ref-type="bibr" rid="ref2">(Badjatiya et al., 2017)</xref>
        . In this paper we extend
the use of convolutional layers for word based
feature extraction.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Description of the system</title>
      <p>In this section we describe our approach that
exploits the intuition of extracting dependencies
among words as features from tweets. We also
made an analysis about other architectures and we
compare them with ours in order to understand
strength and weakness of our architecture. Our
method consists of the following steps:
• normalization of the datasets;
• use an effective word embedding
representation;
• define different state of art architectures to
compare them with our model.</p>
      <p>
        This model was trained for 15 epochs using a
batch size of 128.
Out-of-vocabulary words are one of the most
important issues with the use of word embedding,
especially in the context of social networks in which
colloquial language is widespread. In order to
normalize tweets, we pre-processed them using tools
from ekphrasis
        <xref ref-type="bibr" rid="ref5">(Baziotis et al., 2017)</xref>
        .
      </p>
      <p>First of all we removed punctuation and separated
sentences into words. Then we applied the
normalization process. This process involves, for
example, allcaps annotation (’ABC’ becomes
’allcaps abc allcaps’), elongated words normalization
(’vaaaaai’ becomes ’elongated vai elongated’) and
emoticons transformation. We manually carried
out translations of these keywords to adapt
annotations to the Italian language.</p>
      <p>We experimented different word embedding
pretrained model. After a sequence of
considerations we chose the word embeddings presented in
Cimino et al. (2018) trained on 46 million Italian
tweets. It is a word2vec based model and it
encodes each word in a 128-size vector.
3.2</p>
      <sec id="sec-3-1">
        <title>Our model</title>
        <p>The model used for the AMI competition is
represented in Figure 1.</p>
        <p>Given a tweet, we firstly apply the pre-processing
described in Section 3.1 to normalize and
transform it into a sequence of words. Then this
sequence is mapped into a fixed real vector domain
by the embedding layer.</p>
        <p>
          The embedding layer passes an input feature space
to three 1D Convolutional layers. Each of those
uses 150 filters and a stride of 1 but different
kernel sizes of 1, 2, 4 respectively. These layers are
the most interesting ones. Each layer can indeed
be seen as extractors of n-gram features where n is
equal to the kernel size
          <xref ref-type="bibr" rid="ref9">(Kim, 2014)</xref>
          . As explained
in Section 4.1 we search for the best
hyperparameters of these layers in model selection phase.
Outputs from CNN layers are down-sampled by a
GlobalMaxPooling1D layer and then they are
concatenated into a single sequence.
        </p>
        <p>The last two layers are dense layers with tanh and
softmax activation functions respectively. The
final softmax layer maps the sequence received as
input to a probability distribution over all possible
classes.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Experiments</title>
      <p>In the subtask A we split the training set
provided into a train set (4250 tweets) and a test
set (750 tweets). This internal test set was used
only to evaluate our final model. In subtask B we
merged raw and synthetic datasets and separated
from each of these two test sets.</p>
      <p>As explained in Section 3.2 we used as
output layer a dense layer with softmax activation
function. In order to obtain three different
labels for subtask A, misogynous and aggressiveness
columns were converted into a single one. We also
apply one-hot encoding to the integer
representation, otherwise a natural ordering between
categories may result in poor performance or
unexpected results.</p>
      <p>The frequency distribution of these labels turns out
to be quite unbalanced, as shown in Table 1.
Furthermore for each class we have a very small
number of training examples. This could have a strong
influence on the overfitting of the model. We
indeed avoided to use a deep neural network and we
preferred to develop a simple architecture in a
robust way as recommended in Zhang and Wallace
(2015).</p>
      <sec id="sec-4-1">
        <title>Class</title>
      </sec>
      <sec id="sec-4-2">
        <title>Non-misogynous</title>
      </sec>
      <sec id="sec-4-3">
        <title>Non-aggressive</title>
      </sec>
      <sec id="sec-4-4">
        <title>Aggressive</title>
      </sec>
      <sec id="sec-4-5">
        <title>Train set</title>
        <p>2277
484
1489</p>
      </sec>
      <sec id="sec-4-6">
        <title>Test set</title>
        <p>
          386
70
294
We decided to apply a robust model selection
technique to find the best hyperparameters of our
model. We used repeated K-fold cross-validation
          <xref ref-type="bibr" rid="ref11">(Rodriguez et al., 2010)</xref>
          .
        </p>
        <p>In subtask A we used the official AMI score as
metric. While in the subtask B we decided to use
the AUC metric. In both of them we also took into
consideration the standard deviation among
different runs.</p>
        <p>Model selection phase was divided in 2 mainly
stages:
• Stage 1 we validate the best
hyperparameters for each different model. We report the
hyperparameters ranges in Figure 2. In this
stage we used a repeated 5-fold with 10
repetitions.
• Stage 2 We chose the most promising
models according to score and standard
deviation metrics. We applied another repeated
5-fold cross-validation increasing the number
of repetitions to 15. Then we chose the best
model among them using the same metrics as
before.</p>
      </sec>
      <sec id="sec-4-7">
        <title>Hyperparam</title>
      </sec>
      <sec id="sec-4-8">
        <title>Batch size</title>
      </sec>
      <sec id="sec-4-9">
        <title>Filters</title>
      </sec>
      <sec id="sec-4-10">
        <title>Kernel Sizes</title>
      </sec>
      <sec id="sec-4-11">
        <title>L2 regularizer</title>
      </sec>
      <sec id="sec-4-12">
        <title>Number dense nodes Range</title>
        <p>f32, 64, 128g
f[100, 100, 100],
[150, 150, 150]g
f[1, 2, 3],
[1, 2, 4]g
f0.001, 0.005g
f8, 16g</p>
        <p>
          Then we built other architectures to compare
them with ours. In the following we list models
used for these comparisons:
• Convolution-biGRU Based Deep Neural
Network: this architecture allows to capture
long-range dependencies from both
directions of a sentence;
• Convolutional Based Neural Network: deep
neural network based on convolutional layers
that tries to extract different features using a
greater number of layers. It is an extension of
the architecture described in Section 3.2;
• Skipped Convolutional Neural Network
          <xref ref-type="bibr" rid="ref1 ref12 ref6 ref7">(Zhang and Luo, 2018)</xref>
          : CNN architecture
where each convolutional layer uses “gapped
window” to extract features from its input;
In Figure 2 we reported results obtained in stage
2 of the model selection phase in the subtask A.
Our model seems to be better in terms of both
score and standard deviation compared to the
others. Furthermore, it does not have any outliers as
other models have.
As final step we tested our model over the internal
test set. The results obtained are reported in
Table 3. As expected, the behaviour of our model in
this internal test set is in compliance with respect
to validation results.
        </p>
        <p>As regards subtask B, we only considered the
AUC score and results obtained for both model
selection and assessment have proved to be
inconclusive.</p>
        <p>Run
Run 1
Run 2
Run 3
Both run fabsam.r.c.run1 and fabsam.r.c.run1
have outperformed other constrained runs and our
best run ranks third in the official leaderboard.
This confirms the effectiveness of our approach.
During an error analysis we noticed that our model
wrongly classifies short sentences and hate speech
sentences referred to men. Nevertheless, in our
best run the f1 score for misogynous label reaches
0:8038 while the real problem is in the 0:6647 of
aggressiveness label. This is probably due to the
small number of non-aggressive examples used to
fit the model.</p>
        <p>Different results of runs reflect the standard
deviation observed during the validation phase. While
scores obtained are smaller then model selection
results.
5.2</p>
      </sec>
      <sec id="sec-4-13">
        <title>Subtask B</title>
        <p>In the following we reported our results for the
subtask B.</p>
        <p>SubtaskB
run2
run3
run1
run1
run2
run2
run3
run3
u/c
u
c
c
c
c
c
c
c
We used for subtask B the same model used for the
other subtask. We have performed a poor
validation approach using as evaluation metric the AUC.
We chose to train the model merging raw and
synthetic datasets. This choice led to poor
performance on unseen datasets. Indeed our model was
strongly affected by overfitting when it met
identity terms used in training. From an error analysis
we noticed that it wrongly classifies lots of
sentences from synthetic dataset, while it performs
very well on raw dataset.
6</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Conclusion</title>
      <p>The presence of misogynistic contents in social
network is a major problem. A crucial work in
this direction is the detection and recognition of
this type of contents.</p>
      <p>We propose a simple architecture based on
convolutional layers. From our experiments we
understood that capturing long-term dependencies
produces an unstable training and poor performance
in this type of subtasks. Performances of the
model could be increased focusing its approach on
model selection. Lastly, it could be very important
to take into consideration data augmentation
techniques or other sources of data to solve the
unbalanced dataset issue.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <given-names>Maria</given-names>
            <surname>Anzovino</surname>
          </string-name>
          , Elisabetta Fersini, and
          <string-name>
            <given-names>Paolo</given-names>
            <surname>Rosso</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Automatic identification and classification of misogynistic language on twitter</article-title>
          .
          <source>In International Conference on Applications of Natural Language to Information Systems</source>
          , pages
          <fpage>57</fpage>
          -
          <lpage>64</lpage>
          . Springer.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <given-names>Pinkesh</given-names>
            <surname>Badjatiya</surname>
          </string-name>
          , Shashank Gupta, Manish Gupta, and
          <string-name>
            <given-names>Vasudeva</given-names>
            <surname>Varma</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Deep learning for hate speech detection in tweets</article-title>
          .
          <source>In Proceedings of the 26th International Conference on World Wide Web Companion</source>
          , pages
          <fpage>759</fpage>
          -
          <lpage>760</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <given-names>Valerio</given-names>
            <surname>Basile</surname>
          </string-name>
          , Cristina Bosco, Elisabetta Fersini, Debora Nozza, Viviana Patti, Francisco Manuel Rangel Pardo, Paolo Rosso, and
          <string-name>
            <given-names>Manuela</given-names>
            <surname>Sanguinetti</surname>
          </string-name>
          .
          <year>2019</year>
          . SemEval
          <article-title>-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</source>
          , pages
          <fpage>54</fpage>
          -
          <lpage>63</lpage>
          , Minneapolis, Minnesota, USA, June. Association for Computational Linguistics.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <given-names>Valerio</given-names>
            <surname>Basile</surname>
          </string-name>
          , Danilo Croce, Maria Di Maro, and
          <string-name>
            <surname>Lucia</surname>
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Passaro</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>Evalita 2020: Overview of the 7th evaluation campaign of natural language processing and speech tools for italian</article-title>
          .
          <source>In Valerio Basile</source>
          , Danilo Croce, Maria Di Maro, and Lucia C. Passaro, editors,
          <source>Proceedings of Seventh Evaluation Campaign of Natural Language Processing and Speech Tools for Italian. Final Workshop (EVALITA</source>
          <year>2020</year>
          ),
          <article-title>Online</article-title>
          . CEUR.org.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <given-names>Christos</given-names>
            <surname>Baziotis</surname>
          </string-name>
          , Nikos Pelekis, and
          <string-name>
            <given-names>Christos</given-names>
            <surname>Doulkeridis</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Datastories at semeval-2017 task 4: Deep lstm with attention for message-level and topic-based sentiment analysis</article-title>
          .
          <source>In Proceedings of the 11th International Workshop on Semantic Evaluation (SemEval-2017)</source>
          , pages
          <fpage>747</fpage>
          -
          <lpage>754</lpage>
          , Vancouver, Canada, August. Association for Computational Linguistics.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <given-names>Andrea</given-names>
            <surname>Cimino</surname>
          </string-name>
          , Lorenzo De Mattei, and Felice Dell'Orletta.
          <year>2018</year>
          .
          <article-title>Multi-task learning in deep neural networks at evalita 2018</article-title>
          .
          <article-title>Proceedings of the 6th evaluation campaign of Natural Language Processing and Speech tools for Italian (</article-title>
          <source>EVALITA'18)</source>
          , pages
          <fpage>86</fpage>
          -
          <lpage>95</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <given-names>E</given-names>
            <surname>Fersini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P</given-names>
            <surname>Rosso</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M</given-names>
            <surname>Anzovino</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Overview of the task on automatic misogyny identification at ibereval 2018</article-title>
          . In Workshop on Evaluation of
          <article-title>Human Language Technologies for Iberian Languages</article-title>
          ,
          <source>IberEval</source>
          <year>2018</year>
          , volume
          <volume>2150</volume>
          , pages
          <fpage>214</fpage>
          -
          <lpage>228</lpage>
          . CEUR-WS.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <given-names>Elisabetta</given-names>
            <surname>Fersini</surname>
          </string-name>
          , Debora Nozza, and
          <string-name>
            <given-names>Paolo</given-names>
            <surname>Rosso</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>Ami @ evalita2020: Automatic misogyny identification</article-title>
          . In Valerio Basile, Danilo Croce, Maria Di Maro, and Lucia C. Passaro, editors,
          <source>Proceedings of the 7th evaluation campaign of Natural Language Processing</source>
          and
          <article-title>Speech tools for Italian (EVALITA 2020), Online</article-title>
          . CEUR.org.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <given-names>Yoon</given-names>
            <surname>Kim</surname>
          </string-name>
          .
          <year>2014</year>
          .
          <article-title>Convolutional neural networks for sentence classification</article-title>
          .
          <source>Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing</source>
          ,
          <volume>08</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <string-name>
            <given-names>Debora</given-names>
            <surname>Nozza</surname>
          </string-name>
          , Claudia Volpetti, and
          <string-name>
            <given-names>Elisabetta</given-names>
            <surname>Fersini</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>Unintended bias in misogyny detection</article-title>
          .
          <source>In IEEE/WIC/ACM International Conference on Web Intelligence</source>
          , pages
          <fpage>149</fpage>
          -
          <lpage>155</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          <string-name>
            <surname>J. D. Rodriguez</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Perez</surname>
            , and
            <given-names>J. A.</given-names>
          </string-name>
          <string-name>
            <surname>Lozano</surname>
          </string-name>
          .
          <year>2010</year>
          .
          <article-title>Sensitivity analysis of k-fold cross validation in prediction error estimation</article-title>
          .
          <source>IEEE Transactions on Pattern Analysis and Machine Intelligence</source>
          ,
          <volume>32</volume>
          (
          <issue>3</issue>
          ):
          <fpage>569</fpage>
          -
          <lpage>575</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          <string-name>
            <given-names>Ziqi</given-names>
            <surname>Zhang</surname>
          </string-name>
          and
          <string-name>
            <given-names>Lei</given-names>
            <surname>Luo</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Hate speech detection: A solved problem? the challenging case of long tail on twitter</article-title>
          .
          <source>Semantic Web</source>
          , Accepted,
          <volume>10</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          <string-name>
            <given-names>Ye</given-names>
            <surname>Zhang and Byron</surname>
          </string-name>
          <string-name>
            <given-names>C.</given-names>
            <surname>Wallace</surname>
          </string-name>
          .
          <year>2015</year>
          .
          <article-title>A sensitivity analysis of (and practitioners' guide to) convolutional neural networks for sentence classification</article-title>
          .
          <source>CoRR, abs/1510</source>
          .03820.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>