<!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>Notes for Arabic Misogyny Identification</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Abir Messaoudi</string-name>
          <email>abir@icompass.digital</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Chayma Fourati</string-name>
          <email>chayma@icompass.digital</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Mayssa Kchaou</string-name>
          <email>mayssakchaou933@gmail.com</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Hatem Haddad</string-name>
          <email>hatem@icompass.digital</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>iCompass</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tunisia</string-name>
        </contrib>
      </contrib-group>
      <abstract>
        <p>We describe our submitted system to the first Arabic Misogyny Identification shared task. We tackled both subtasks, namely Misogyny Content Identification (Subtask 1) and Misogyny Behavior Identification We used state-of-the-art Machine Learning models and pretrained contextualized text representation models that we fine-tuned according to the downstream task in hand. As a first approach, we used Machine Learning algorithms including: Naive Bayes and Support Vector Machine for both subtasks. Then, we used Google's multilingual BERT and then other BERT Arabic variants: AraBERT, ARBERT and MARBERT. The results found show that MARBERT outperforms all of the previously mentioned models overall, whether on Subtask 1 or Subtask 2.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>2. Data</title>
      <p>The provided train dataset [1] of the competition [2] consists of 7866 tweets written in Modern
Standard Arabic (MSA) and several Arabic dialects including: Gulf, Egyptian and Levantine.
The dataset has two label columns: misogyny and category for the first and second subtasks
respectively. The first subtask consists of a binary classification problem, where the column
misogyny contains two labels (Misogyny and None). The second subtask consists of a multiclass
classification problem, where the column category contains eight labels as follows: none, damning,
derailing, discredit, dominance, sexual harassment, stereotyping &amp; objectification, and threat of
violence. In order to validate our models, we split the provided train dataset into train, dev and
test with ratios 70%, 10% and 20% respectively. Tables 1 and 2 present statistics of the splitted
train dataset for Subtask 1 and Subtask 2 respectively.</p>
      <p>Train, dev and test datasets were preprocessed by removing links (https, //, etc..) emoji symbols
(:p, :D, etc..) , hashtags (#), tags (@) retweets (RT) and punctuation (?!., etc..). An example is
the tweet ” ةلطب يتنا @مدختسم”. After preprocessing, the latest becomes ”ةلطب يتنا”.</p>
      <sec id="sec-2-1">
        <title>2.1. Third Party Dataset for Training</title>
        <p>At iCompass, we gathered our Tunisian Misogyny dataset labelled as None (0) and Misogyny (1)
collected from Tunisian sources. We added this dataset for the training of the first subtask since it
has the same labels. Hence, the dataset was enhanced by 818 tweets labelled as ”None” and 642
labelled as ”Misogyny”. The same preprocessing techniques were performed. However, the new
obtained dataset was not used for the experiments, but only when submitting our results.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. System Description</title>
      <p>As a first approach, we used two Machine Learning algorithms: Naive Bayes (NB) and Support
Vector Machine (SVM) chosen based on the state of the art with a variation of hyperparameters
in order to find the best performing values.</p>
      <p>Pretrained contextualized text representation models have shown to perform eefctively in order
to make a natural language understandable by machines. Bidirectional Encoder Representations
from Transformers (BERT) [3] is, nowadays, the state-of-the-art model for language understanding,
outperforming previous models and opening new perspectives in the Natural Language Processing
(NLP) field. Hence, as a second approach, we used multilingual cased BERT model (mBERT) [ 3]
since it contains more than 100 languages including the Arabic one. Then, we used three BERT
Arabic variants: AraBERT [4], ARBERT [5] and MARBERT [5].</p>
      <p>After diefrent experiments, MARBERT achieved the best results for the two subtasks: Misogyny
Content Identification and Misogyny Behavior Identification. We believe this is because MARBERT
was trained mostly on dialectal Arabic which was underrepresented in previous pretrained models.
Since this task’s data is multi-dialectal, this model is expected to achieve the best performance.</p>
      <p>We trained our models on a Google Cloud GPU of 8 cores using Google Colaboratory. The
ifnal models that we used to make the submissions are:
• For Misogyny Content Identification: a model based on MARBERT, trained for 4 epochs
with a learning rate of 2e-5, a batch size of 32 and max sequence length of 128.
• For Misogyny Behavior Identification: a model based on MARBERT, trained for 4 epochs
with a learning rate of 2e-5, a batch size of 32 and max sequence length of 128.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Results and Discussion</title>
      <p>We submitted two runs to each subtask: run1 is trained on the provided train dataset, and run2
on the augmented train dataset.</p>
      <sec id="sec-4-1">
        <title>4.1. Sub-task A - Misogyny Content Identification</title>
        <p>This subtask is a binary classification problem which includes labels ”None” and ”Misogyny”.
Table 4 presents the results of experiments performed for this subtask where the best result was
achieved by MARBERT.</p>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Sub-task B - Misogyny Behavior Identification</title>
        <p>This subtask is a multiclass classification problem, including eight labels. Table 4 presents the
results of experiments performed for this subtask where the best result was also achieved by
MARBERT. Because the dataset is not balanced, F1 macro gives low performances.</p>
      </sec>
      <sec id="sec-4-3">
        <title>4.3. Oficial Submission Results</title>
        <p>The results obtained on the final released test dataset are presented in table 5.</p>
        <p>The augmented train dataset contains comments in the Tunisian dialect, which may have led to
a decrease in the results of the first Subtask. Hence, run 1 outperforms run 2 in the subtask 1.
Results of Subtask 2 are the same because we did not increase the train dataset with our Tunisian
Misogyny one.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusion References</title>
      <p>In this work, two Machine Learning (SVM and NB) and four language models were used to classify
misogyny and to detect misogynic behaviour (mBERT, AraBERT, ARBERT and MARBERT). The
best results were obtained by MARBERT for both tasks with diefrent hyperparameters, which was
selected for the final submission. Future work would involve working on bigger contextualized
pretrained models and enriching the existing Misogyny Content and Misogyny Behaviour datasets.
[1] H. Mulki, B. Ghanem, Let-Mi: An Arabic Levantine Twitter Dataset for Misogynistic Language,
in: Proceedings of the 6th Arabic Natural Language Processing Workshop (WANLP 2021),
2021.
[2] H. Mulki, B. Ghanem, ArMI at FIRE2021: Overview of the First Shared Task on Arabic
Misogyny Identification, in: Working Notes of FIRE 2021 - Forum for Information Retrieval
Evaluation, CEUR, 2021.
[3] J. Devlin, M.-W. Chang, K. Lee, K. Toutanova, BERT: Pre-training of deep bidirectional
transformers for language understanding, in: Proceedings of the 2019 Conference of the
North American Chapter of the Association for Computational Linguistics: Human Language
Technologies, Volume 1 (Long and Short Papers), 2019, pp. 4171–4186.
[4] W. Antoun, F. Baly, H. Hajj, AraBERT: Transformer-based model for Arabic language
understanding, in: Proceedings of the 4th Workshop on Open-Source Arabic Corpora and
Processing Tools, with a Shared Task on Oefnsive Language Detection, 2020, pp. 9–15.
[5] M. Abdul-Mageed, A. Elmadany, E. M. B. Nagoudi, Arbert &amp; marbert: Deep bidirectional
transformers for arabic, ArXiv abs/2101.01785 (2021).</p>
    </sec>
  </body>
  <back>
    <ref-list />
  </back>
</article>