<!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>Sexism Detection in English and Spanish Tweets</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Ritesh Kumar</string-name>
          <email>ritesh.cse@nitjsr.ac.in</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Soumya Pal</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Rajendra Pamula</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Science and Engineering Indian Institute of Technology (Indian School of Mines)</institution>
          ,
          <addr-line>Dhanbad</addr-line>
          ,
          <country country="IN">India</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Department of Computer Science and Engineering National Institute of Technology Jamshedpur</institution>
          ,
          <country country="IN">India</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Sexism is an ancient evil that society struggles with till date. The freedom of speech and ease of anonymity granted by social media has also resulted in incitement to hatred. This presents the need for automatic detection of sexist posts or tweets on social media. In this paper, we present the machine learning models that can detect sexism. Speci cally, we describe the model submitted for the shared task on sEXism Identi cation in Social network at IberLeF 2021. The problem concentrates on sexism detection in two languages: English and Spanish. The challenge is divided into two tasks of di erent granularity: (1) a binary classi cation problem to discover the instances of sexism in the post and (2) to predict one the ve types of sexism present. Overall, our performance is good but it needs some improvement, our scores are encouraging enough to work for better results in future.</p>
      </abstract>
      <kwd-group>
        <kwd>SVM</kwd>
        <kwd>LSTM</kwd>
        <kwd>Random Forest</kwd>
        <kwd>Misogyny</kwd>
        <kwd>Social Media</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>The digitalization of the world also means the digitalization of sexism. Sexism
can be referred to as individuals' attitudes, beliefs, behaviors, organizational,
institutional and cultural practices that either re ect negative evaluations of
individuals based on their gender or support unequal status of women and men.
With rapid advancement of the internet and social media, such beliefs can spread
rapidly. Thus, it is very essential to detect such behaviour. The amount of data
generated on social media sites can be estimated from the fact that, every
second, on average, around 6,000 tweets are generated. Content moderation of such
a huge data is di cult to achieve exclusively through man power. Social
networking sites are struggling with content moderation. Arti cial Intelligence and
di erent Machine Learning techniques can be exploited for Sexism Detection.</p>
      <p>In this paper, we present the models to detect sexism, speci cally the system
we submitted for EXIST 2021 shared task 3. Sexism can be expressed directly,
3 IberLEF 2021, September 2021, Malaga, Spain.</p>
      <p>
        Copyright ' 2021 for this paper by its authors. Use permitted under Creative
Commons License Attribution 4.0 International (CC BY 4.0).
implicitly and can be hidden in the form of humor. Automatically detecting the
subtle instances of sexism is much harder than discovering the misogyny and
violence aimed towards women. We try to identify the instances of both implicit
and explicit sexim and future classify the sexism into one of the ve categories
which are as follow: 1. Ideological and Inequality, Stereotyping and Dominance,
Objecti cation, Sexual Violence, Misogyny and Non-sexual Violence.
As per requirement of EXIST 2021 [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], we submitted three runs for task1 and
two runs for task2. We extracted di erent lexical and non lexical features from
the text for the classi cation. Our best run in task1 achieved an accuracy of
71%. For task2, our best run was with an F1 score of 0.59.
      </p>
      <p>The organization of the rest of the paper is as follows. Section 2 describes
about Related Work. In Section 3, we describe about Task &amp; Dataset. Section 4,
describes about System Description i.e. Test Preprocessing, Feature Extraction
and Machine Learning Models. In Section 5, we discuss about our Results. Lastly,
Conclusion and future direction of our research work is presented in section 6.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Related Work</title>
      <p>
        Several works have been proposed to detect misogyny and hate speech against
women across social platforms. Resham Ahluwalia et al. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] proposed how ML
models can detect misogynist tweets. Pamungkas et al. [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] proposed a cross
language study for misogyny detection in tweets. Jose et al. [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] identi ed cases
of aggressiveness and hate speech towards women. Goenaga et al. [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] used
RNN approach using a Bidirectional Long Short Term Memory (Bi-LSTM) with
Conditional Random Fields (CRF) and evaluated the proposed architecture on
misogyny identi cation task (text classi cation). Shushkevich et al. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] combined
several simpler classi ers into one more complex blended model, which classi ed
the data taking into account the probabilities of belonging to classes calculated
by simpler models. They used the Logistic Regression, Naive Bayes, and SVM
classi ers. Liu et al. [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] used three classi ers that were trained by using SVM
with a linear kernel, random forests (RF) and gradient boosted trees (GBT).
      </p>
      <p>The dataset we used, misogynist tweets are considered as a sub-category
of sexist tweets. As most of these works focus on misogyny and hate speech
detection but not the subtle instances of sexism. We try to identify these subtle
sexism in tweets.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Task and Dataset Description</title>
      <p>
        In this section, we describe the automatic sexism detection shared task and the
dataset provided to the participants [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
      </p>
      <p>EXIST 2021 shared task was divided into two subtasks (Task1 and Task2).
Task1 aims at nding the instances of sexism while the goal of Task2 is to
categorize the sexism into one of the following 5 categories (shown in Table 1):
1. Ideological and inequality : Discrediting of the feminist movement, rejecting
the precence of inequality between men and women, or presenting man as the
victim of gender bias.
2. Stereotyping and dominance : Expressing the false idea about women like they
are more suitable for certain tasks and not suitable for certain others.
3. Objecti cation : Presenting women as objects.
4. Sexual Violence : Sexual suggestions, requesting sexual favours or sexual
harrasment threats.
5. Misogyny and Non-sexual Violence : Indicating voilence and hate toward
women of non-sexual nature.</p>
      <p>We used the dataset obtained from the shared task at IberLEF 2021. The
dataset contains 11,000 short texts i.e. tweets and gab posts in English and
Spanish languages. The dataset consists of 6,977 tweets for training and 3,386 tweets
for testing with balanced distribution in both the languages. In addition the test
data contains 492 gabs in English and 490 in Spanish from the uncensored social
network Gab (gab.com). The data was labeled manually by human annotators.
Data was annotated at two di erent levels of granularity. First, each text was
labelled as sexist or non-sexist. Secondly, the instances labelled as sexist are
further divided as ideological-inequality, stereotyping-dominance, objecti cation,
sexual-violence, misogyny-non-sexual-violence. The EXIST dataset focuses on
covering sexism in a broad sense, i.e, both explicit misogyny to implicit subtle
sexism.
4</p>
    </sec>
    <sec id="sec-4">
      <title>System Description</title>
      <p>We splitted the annotated data into a training set with 85% of the annotated
data and validation set with the remaining 15% of the instances. We built similar
systems for both English and Spanish, and then results obtained by these two
systems were combined and submitted as a run. Same splitting was used for
both task1 and task2.
4.1</p>
      <sec id="sec-4-1">
        <title>Test Preprocessing</title>
        <p>We removed punctuation symbols, links and numbers. Also, we removed stop
words. We used lemmatization for the English text and stemming for the spanish
text to ping together the di erent in ected forms of a word. In particular, we
used nltk wordnet for lemmatization and nltk snowball for stemming. The same
preprocessing is used for both Task1 and Task2.
4.2</p>
      </sec>
      <sec id="sec-4-2">
        <title>Feature Extraction</title>
        <p>We extracted the following features from the text:</p>
        <p>Upper Case Count : Number of uppercase letters present in the text
Hashtag Count : Number of hashtags present in the text
Link Count : Number of hyperlinks in present in the text
Tweet Length : Total number of characters in the text</p>
        <p>Slang Words Count : used in the English language
These features were extracted before preprocessing as hashtags and links were
removed after preprocessing. We used the Slang word count feature only for
the English text for both Task1 and Task2. All the rest features were used for
both languages and both tasks. To convert the text into numerical features we
used Tf-idf vectorizer. For LSTM, we used the tokenizer by keras library and
for SVM and Random Forest we used Tf-idf vectorizer from scikit-learn library.
Tokenizer by keras converts the text into either a sequence of integers or into a
vector where the coe cient for each token could be binary, based on word count,
based on tf-idf etc.
4.3</p>
      </sec>
      <sec id="sec-4-3">
        <title>Machine Learning Models</title>
        <p>For Task1, we submitted three runs based on three di erent algorithms,
namelySVM, Random forest and LSTM. We used the scikit-learn library for SVM and
Random forest based models and Keras for LSTM. For SVM, we experimented
with three kernels - linear, rbf (radial basis function) and polynomial. The nal
run we submitted was the linear kernel SVM. We used the following values of
the parameter in scikit-learn:
1. For SVM, kernel coe cient gamma is 0.01, and penalty parameter is 5 (default
parameters).
2. For Random Forest, maximum depth is 150, and number of forest is 1000.
3. For LSTM, we used mean squared error for loss,and batch size as 64.</p>
        <p>For Task2, we submitted two runs based on -SVM and Random Forest. We
treated Task2 as a multi-classi cation problem with 6 categories ( ve categories
of sexism and one category as non-sexist) and not as an extension of Task1. That
is, in case of Task2, we used the whole dataset for training and not just the text
classi ed as sexist in Task1. The parameter values were the same as mentioned
above. And SVM was implemented with a linear kernel.
5</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Results and Discussion</title>
      <p>The results of Task1 are represented in terms of accuracy (shown in Table 2),
while the results of Task2 are in terms of macro F1 score (shown in Table 3). The
best score as accuracy, we get from Task1 is 0.7115. For Task2 we get best score
as F1- measure is 0.4504. Table 2 and 3 shows the ranking of our submissions
based on shared task o cial ranking. Our best system was ranked 38 in Task1
and 43 for task2. Also, baseline is provided by the organizers for both the task.
These rankings indicate the combined results in English and Spanish.</p>
      <p>For Task1, the Random forest system performed better than LSTM and
SVM. But for Task2, SVM performed better than Random forest. The accuracy
and F1 score obtained in Task2 was lower than that of Task1. The same trend
could be found in results of all the teams. This can be attributed to the fact that
classi cation of the sexist text into ner granularity is a much more di cult task
than detecting instances of sexism. Also, as Task2 was multi-class classi cation
problem it's F1 score was lower as compared to the binary classi cation problem
in Task1 .Features like number of slang words, number of hashtags present,
hyperlink count resulted in improved accuracy.
We evaluated the performance of di erent classi cation algorithms for sexism
this year’s shared task. The results, we achieved were average as compared to
other submissions obtained in the EXIST 2021 shared task. We found that
extracted features like number of slangs and hyperlink counts can result in better
performance. We look forward to experimenting with di erent features. Also, ne
tuning the parameters of the algorithm can help in improvement of the overall
performance. And the results of more than one system can be combined to
generate an overall better score. We shall be exploring these tasks in the coming
days.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Ahluwalia</surname>
            <given-names>R</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shcherbinina</surname>
            <given-names>E</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Callow</surname>
            <given-names>E</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nascimento</surname>
            <given-names>AC</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Cock</surname>
            <given-names>M</given-names>
          </string-name>
          (
          <year>2018</year>
          )
          <article-title>Detecting misogynous tweets</article-title>
          .
          <source>In: IberEval@ SEPLN</source>
          , pp
          <volume>242</volume>
          {
          <fpage>248</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Canos</surname>
            <given-names>JS</given-names>
          </string-name>
          (
          <year>2018</year>
          )
          <article-title>Misogyny identi cation through svm at ibereval 2018</article-title>
          . In: IberEval@ SEPLN, pp
          <volume>229</volume>
          {
          <fpage>233</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Goenaga</surname>
            <given-names>I</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Atutxa</surname>
            <given-names>A</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gojenola</surname>
            <given-names>K</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Casillas</surname>
            <given-names>A</given-names>
          </string-name>
          ,
          <string-name>
            <surname>de Ilarraza</surname>
            <given-names>AD</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ezeiza</surname>
            <given-names>N</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Oronoz</surname>
            <given-names>M</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Perez</surname>
            <given-names>A</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Perez-de Vin</surname>
            ~aspre
            <given-names>O</given-names>
          </string-name>
          (
          <year>2018</year>
          )
          <article-title>Automatic misogyny identi cation using neural networks</article-title>
          .
          <source>In: IberEval@ SEPLN</source>
          , pp
          <volume>249</volume>
          {
          <fpage>254</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Liu</surname>
            <given-names>H</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chiroma</surname>
            <given-names>F</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cocea</surname>
            <given-names>M</given-names>
          </string-name>
          (
          <year>2018</year>
          )
          <article-title>Identi cation and classi cation of misogynous tweets using multi-classi er fusion</article-title>
          .
          <source>In: Evaluation of Human Language Technologies for Iberian Languages: IberEval</source>
          <year>2018</year>
          , CEUR Workshop Proceedings, pp
          <volume>268</volume>
          {
          <fpage>273</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <article-title>[5] proceedings of IberLEF 2021 can be tentatively referred to as: Manuel Montes</article-title>
          ,
          <string-name>
            <surname>Rosso</surname>
            <given-names>P</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gonzalo</surname>
            <given-names>J</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Aragon</surname>
            <given-names>E</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Agerri</surname>
            <given-names>R</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Angel</surname>
            <given-names>M</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Carmona</surname>
            <given-names>A</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mellado</surname>
            <given-names>EA</given-names>
          </string-name>
          ,
          <string-name>
            <surname>de Albornoz</surname>
            <given-names>JC</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chiruzzo</surname>
            <given-names>L</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Freitas</surname>
            <given-names>L</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Adorno</surname>
            <given-names>HG</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gutierrez</surname>
            <given-names>Y</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zafra</surname>
            <given-names>SMJ</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lima</surname>
            <given-names>S</given-names>
          </string-name>
          ,
          <string-name>
            <surname>de Arco</surname>
            <given-names>FMP</given-names>
          </string-name>
          , (eds) MT (
          <year>2021</year>
          )
          <article-title>Proceedings of the iberian languages evaluation forum (iberlef 2021)</article-title>
          . CEUR Workshop Proceedings
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Pamungkas</surname>
            <given-names>EW</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cignarella</surname>
            <given-names>AT</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Basile</surname>
            <given-names>V</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Patti</surname>
            <given-names>V</given-names>
          </string-name>
          , et al (
          <year>2018</year>
          ) 14
          <article-title>-exlab@ unito for ami at ibereval2018: Exploiting lexical knowledge for detecting misogyny in english and spanish tweets</article-title>
          .
          <source>In: 3rd Workshop on Evaluation of Human Language Technologies for Iberian Languages, IberEval</source>
          <year>2018</year>
          , CEURWS, vol
          <volume>2150</volume>
          , pp
          <volume>234</volume>
          {
          <fpage>241</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Rodriguez-Sanchez</surname>
            <given-names>F</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Carrillo-de Albornoz</surname>
            <given-names>J</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Plaza</surname>
            <given-names>L</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gonzalo</surname>
            <given-names>J</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosso</surname>
            <given-names>P</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Comet</surname>
            <given-names>M</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Donoso</surname>
            <given-names>T</given-names>
          </string-name>
          (
          <year>2021</year>
          )
          <article-title>Overview of exist 2021: sexism identi cation in social networks</article-title>
          .
          <source>Procesamiento del Lenguaje Natural</source>
          <volume>67</volume>
          (
          <issue>0</issue>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Shushkevich</surname>
            <given-names>E</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cardi</surname>
            <given-names>J</given-names>
          </string-name>
          (
          <year>2018</year>
          )
          <article-title>Classifying misogynistic tweets using a blended model: The ami shared task in ibereval 2018</article-title>
          . In: IberEval@ SEPLN, pp
          <volume>255</volume>
          {
          <fpage>259</fpage>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>