<!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>
      <journal-title-group>
        <journal-title>Bologna, Italy
$ marco.siino@unipa.it (M. Siino)</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>An SVM Ensamble Approach to Detect Irony and Stereotype Spreaders on Twitter</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Daniele Croce</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Domenico Garlisi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Marco Siino</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>CNIT, Consorzio Nazionale Interuniversitario per le Telecomunicazioni</institution>
          ,
          <addr-line>Parma</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Università degli Studi di Palermo</institution>
          ,
          <addr-line>Dipartimento di Ingegneria, Palermo</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2022</year>
      </pub-date>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0001</lpage>
      <abstract>
        <p>The problem we address in this work is classifying whether a Twitter user has spread Irony and Stereotype or not. We used a text vectorization layer to generate Bag-Of-Words sequences. Then such sequences are passed to three diferent text classifiers (Decision Tree, Convolutional Neural Network, Naive Bayes). Our final classifier is an SVM. To test and validate our approach we used the dataset provided for the author profiling task organized by PAN@CLEF 2022. Our team ( missino) submitted the predictions on the provided test set to participate at the shared task. Over several cross fold validation our approach was able to reach a maximum binary accuracy on the best validation split equal to 0.9474. On the test set provided for the shared task our model is able to reach an accuracy of 0.9389.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;PAN2022</kwd>
        <kwd>author profiling</kwd>
        <kwd>SVM</kwd>
        <kwd>ensamble</kwd>
        <kwd>text classification</kwd>
        <kwd>irony</kwd>
        <kwd>stereotype</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>classification tasks. In Section 3 we describe our approach in detail. In Section 4 we present our
results. In Section 5 we conclude our paper and in Section 6 we discuss some future work.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Related work</title>
      <p>
        Relevant approaches about the detection of stereotypes are proposed in [
        <xref ref-type="bibr" rid="ref4 ref5">4, 5</xref>
        ] while some
methods and discussions about irony detection are proposed in [6, 7].
      </p>
      <p>Regarding text classification approaches, most works investigated traditional approaches such
as Support Vector Machines (SVM)[8]. For example, in [9] author proposes an SVM classifier
with character and word n-gram features to determine whether the author of a Twitter feed
is keen to be a spreader of fake news. In [10] authors developed systems that use character
n-grams as features in combination with a linear SVM and Logistic Regression (LR) depending
on the language (e.g., English or Spanish). Using SVM and LR, authors in [11], explored how
powerful and scalable matrix factorization-based classification can be in a multilingual setting,
where the learner is presented with the data from multiple languages simultaneously. Other
SVM-based approaches for shared tasks hosted at PAN are discussed in [12, 13, 14, 15, 16].</p>
      <p>Decision tree is one of the most common machine learning approach for text classification;
some relevant application and works are discussed in [17, 18, 19].</p>
      <p>Convolutional Neural Networks (CNNs) have also been proved to be efective on several text
classification tasks. In the 2021 edition of the author profiling task organized by PAN [ 20], the
winning team [21] used a shallow CNN to detect hate speech spreaders on Twitter. In a similar
task authors used a Multi-Channel CNN to detect patronizing and condescending language [22].</p>
      <p>Finally, ensembles of classifiers have been used by various authors in literature, such as SVM,
Random Forest and Naive Bayes with XGBoost [23]; Decision Tree, Random Forest and XGB [24];
SVM, Logistic Regression, Random Forest and Extra Tree [25, 26]. However, depending on the
specific classification task, performances of each available architecture can difer considerably.</p>
      <p>It is worth noting a relevant increase in the use of Explainable Artificial Intelligence methods
in place of the black box-based approaches. A few of these methods are based on graph and
used in real-world applications such as text classification [ 27], trafic prediction [ 28], computer
vision [29] and social networking [30].</p>
    </sec>
    <sec id="sec-3">
      <title>3. Our approach</title>
      <sec id="sec-3-1">
        <title>3.1. The dataset</title>
        <p>A shown in Table 1, the PAN 2022 Profiling Irony and Stereotype Spreaders on Twitter task
consists of an English corpus containing 600 XML files. Each of these files contains 200 tweets
from a Twitter user. Because of the size of the corpus, we avoided splitting the corpus into
a training and a development set. Instead, we used cross-validation techniques to prevent
overfitting. The dataset provided all URLs, hashtags and user mentions which were changed to
standardized tokens. However we performed an additional preprocessing step on the provided
dataset to remove the tag documents, CDATA and author from each sample in the dataset. Finally
we lowercased all characters in the dataset.</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. The proposed model</title>
        <p>Our proposed model is shown in Figure 1. After a TextVectorization1 layer we provided the
tokenized text to the CNN, Naive Bayes and Decison Tree classifiers.</p>
        <p>The Naive Bayes and Decision Tree are implemented using the scikit-learn package while for
the CNN we implemented the shallow network discussed in [21].</p>
        <p>After we collected the prediction from CNN, Naive Bayes and the Decision Tree on each
sample of the dataset, we provided these predictions as input to an SVM. Same pipeline is
implemented both for training and testing phase of our model. During the training phase we
provide predictions related labels to the SVM. For the test phase we provided the unlabelled
sample from the test set to the CNN, Naive Bayes and the Decision Tree. Providing the output
predictions from these classifiers as input to the SVM, we collected the final prediction to be
submitted on TIRA.</p>
        <p>1https://www.tensorflow.org/api_docs/python/tf/keras/layers/TextVectorization
Results of single classifiers over 5-fold. The best results over 5-fold are expressed in terms of binary
accuracy. The standard deviation over the 5-fold is shown in the latest column.</p>
        <p>Model</p>
        <p>CNN
Naive Bayes</p>
        <p>Decision Tree
SVM (ensamble)</p>
        <p>Accuracy</p>
      </sec>
      <sec id="sec-3-3">
        <title>3.3. Experimental setup</title>
        <p>We developed our software using the Python language (version 3.7) on Google Colab2. To build
our models we mainly used the scikit-learn3 package, numpy4 and TensorFlow5 . Our code is
available Google Drive as a Jupyter Notebook6.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Results</title>
      <p>In Table 2 are shown the results obtained by the single classifiers used and by the SVM ensamble
on the best running fold over a 5-fold cross validation. Results of the SVM are obtained using as
samples the predictions of the first layer classifier over the five folds.</p>
      <p>As can be noted the performance of the SVM ensamble significantly outperforms single
classifiers within our proposed framework. However the standard deviation over the five folds
is not smaller with regards to the CNN and Naive Bayes. As communicated by the organizers,
on the test set provided our model is able to reach an accuracy of 0.9389.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusion</title>
      <p>In this notebook, we summarized our work process of preparing a software for the PAN 2022
Profiling Irony and Stereotype Spreaders on Twitter task. To find the best performing models
we performed a 5-fold cross validation over the labelled samples in the dataset. After nfiding
the models achieving the best accuracies during the cross-validation, we fitted these on the best
fold training set. Then we trained an SVM on the predictions of the three chosen classifiers. So
for our final software, we decided to create a model which was a classifiers taking as input the
predictions of three parallel classifiers (CNN, Naive Bayes, Decision Tree). For each sub-model,
we used grid search and cross-validation to find the best performing parameters and fitted the
models on the best training data with these parameters. To get a final prediction for each user,
we trained an SVM that used the predictions of the sub-models as features. Using the ensemble
6https://colab.research.google.com/drive/1EWCxAHxWWAkFg-Y8dveXuxrh82hyOh96?usp=sharing
model, we were able to achieve improved performances over all tests. Overall, our final model
was able to identify IS spreaders with a maximum binary accuracy of 0.9474 on a single fold.</p>
    </sec>
    <sec id="sec-6">
      <title>6. Future work</title>
      <p>We assume that it would be beneficial to conduct some qualitative research about the tweets in
the dataset to better understand the vocabulary used by IS and nIS spreaders. Another promising
direction for achieving higher accuracy in profiling IS spreaders is to test several other first-stage
classifiers. Perhaps implementing some transformer-based model [ 31]. Such models could be
employed both as a first stage classifier or as the final ensemble predictor. Another way could be
using some pre-trained embedding from common transformer as ELECTRA[32] or RoBERTa[33]
instead of a simple Text Vectorization layer.</p>
      <p>Another interesting aspect to further investigate is about the number of relevant tweets
containing irony and stereotype in the feed of authors labelled as IS spreaders. Finally, some
additional form of noise removal from the actual dataset could be performed to improve the
overall performances of the proposed ensamble.</p>
    </sec>
    <sec id="sec-7">
      <title>CRediT Authorship Contribution Statement</title>
      <p>Daniele Croce: Writing - review &amp; editing. Domenico Garlisi: Writing - review &amp; editing.
Marco Siino: Conceptualization, Formal analysis, Investigation, Methodology, Resources,
Software, Validation, Visualization, Writing - Original draft, Writing - review &amp; editing.
[6] S. Zhang, X. Zhang, J. Chan, P. Rosso, Irony detection via sentiment-based transfer learning,</p>
      <p>Information Processing &amp; Management 56 (2019) 1633–1644.
[7] E. Sulis, D. I. H. Farías, P. Rosso, V. Patti, G. Rufo, Figurative messages and afect in twitter:
Diferences between# irony,# sarcasm and# not, Knowledge-Based Systems 108 (2016)
132–143.
[8] C.-C. Chang, C.-J. Lin, LIBSVM: a library for support vector machines, ACM transactions
on intelligent systems and technology (TIST) 2 (2011) 1–27.
[9] J. Pizarro, Using n-grams to detect fake news spreaders on twitter., in: CLEF (Working</p>
      <p>Notes), 2020.
[10] I. Vogel, M. Meghana, Fake news spreader detection on twitter using character n-grams.</p>
      <p>notebook for pan at clef 2020, arXiv preprint arXiv:2009.13859 (2020).
[11] B. Koloski, S. Pollak, B. Skrlj, Multilingual detection of fake news spreaders via sparse
matrix factorization., in: CLEF (Working Notes), 2020.
[12] D. Espinosa, H. Gómez-Adorno, G. Sidorov, Profiling fake news spreaders using characters
and words n-grams notebook for pan at clef 2020, volume 2696, 2020.
[13] J. L. Fernández, J. A. L. Ramírez, Approaches to the profiling fake news spreaders on
twitter task in english and spanish., in: CLEF (Working Notes), 2020.
[14] A. Hashemi, M. R. Zarei, M. R. Moosavi, M. Taheri, Fake news spreader identification
in twitter using ensemble modeling. notebook for pan at clef 2020., in: CLEF (Working
Notes), 2020.
[15] M. Lichouri, M. Abbas, B. Benaziz, Profiling fake news spreaders on twitter based on tfidf
features and morphological process, in: CEUR Workshop Proceedings, volume 2696, 2020.
[16] E. Fersini, J. Armanini, M. D’Intorni, Profiling fake news spreaders: Stylometry, personality,
emotions and embeddings., in: CLEF (Working Notes), 2020.
[17] J. Su, H. Zhang, A fast decision tree learning algorithm, in: Aaai, volume 6, 2006, pp.</p>
      <p>500–505.
[18] S. Bahassine, A. Madani, M. Kissi, An improved chi-sqaure feature selection for arabic text
classification using decision tree, in: 2016 11th International Conference on Intelligent
Systems: Theories and Applications (SITA), IEEE, 2016, pp. 1–5.
[19] B. Charbuty, A. Abdulazeez, Classification based on decision tree algorithm for machine
learning, Journal of Applied Science and Technology Trends 2 (2021) 20–28.
[20] F. Rangel, G. Sarracén, B. Chulvi, E. Fersini, P. Rosso, Profiling hate speech spreaders on
twitter task at pan 2021, in: CLEF, 2021.
[21] M. Siino, E. Di Nuovo, I. Tinnirello, M. La Cascia, Detection of hate speech spreaders
using convolutional neural networks, in: PAN 2021 Profiling Hate Speech Spreaders on
Twitter@ CLEF, volume 2936, CEUR, 2021, pp. 2126–2136.
[22] M. Siino, M. La Cascia, I. Tinnirello, McRock at SemEval-2022 Task 4: Patronizing and
Condescending Language Detection using Multi-Channel CNN and DistilBERT, in:
Proceedings of the 16th International Workshop on Semantic Evaluation (SemEval-2022),
Association for Computational Linguistics, 2022.
[23] T. Niven, H.-Y. Kao, H.-Y. Wang, Profiling spreaders of disinformation on twitter: Ikmlab
and softbank submission., in: CLEF (Working Notes), 2020.
[24] C. Ikae, J. Savoy, Unine at pan-clef 2020: Profiling fake news spreaders on twitter., in:</p>
      <p>CLEF (Working Notes), 2020.
[25] A. Shrestha, F. Spezzano, A. Joy, Detecting fake news spreaders in social networks via
linguistic and personality features, in: Working Notes of CLEF 2020-Conference and Labs
of the Evaluation Forum, 2020.
[26] M. Siino, I. Tinnirello, M. La Cascia, T100: A modern classic ensemble to profile irony and
stereotype spreaders, in: CLEF 2022 Labs and Workshops, Notebook Papers, CEUR-WS.org,
2022.
[27] F. Lomonaco, G. Donabauer, M. Siino, Courage at checkthat! 2022: Harmful tweet detection
using graph neural networks and electra, in: Working Notes of CLEF 2022—Conference
and Labs of the Evaluation Forum, CLEF ’2022, Bologna, Italy, 2022.
[28] Y. Li, R. Yu, C. Shahabi, Y. Liu, Difusion convolutional recurrent neural network:
Datadriven trafic forecasting, arXiv preprint arXiv:1707.01926 (2017).
[29] P. Pradhyumna, G. Shreya, et al., Graph neural network (gnn) in image and video
understanding using deep learning for computer vision applications, in: 2021 Second
International Conference on Electronics and Sustainable Communication Systems (ICESC), IEEE,
2021, pp. 1183–1189.
[30] M. Siino, M. La Cascia, I. Tinnirello, Whosnext: Recommending twitter users to follow
using a spreading activation network based approach, in: 2020 International Conference
on Data Mining Workshops (ICDMW), IEEE, 2020, pp. 62–70.
[31] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, I.
Polosukhin, Attention is all you need, Advances in neural information processing systems 30
(2017).
[32] K. Clark, M.-T. Luong, Q. V. Le, C. D. Manning, Electra: Pre-training text encoders as
discriminators rather than generators, arXiv preprint arXiv:2003.10555 (2020).
[33] Y. Liu, M. Ott, N. Goyal, J. Du, M. Joshi, D. Chen, O. Levy, M. Lewis, L. Zettlemoyer,
V. Stoyanov, Roberta: A robustly optimized bert pretraining approach, arXiv preprint
arXiv:1907.11692 (2019).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>O</given-names>
            <surname>.-B. Reynier</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Berta</surname>
          </string-name>
          , R. Francisco,
          <string-name>
            <given-names>R.</given-names>
            <surname>Paolo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Elisabetta</surname>
          </string-name>
          ,
          <article-title>Profiling Irony and Stereotype Spreaders on Twitter (IROSTEREO) at PAN 2022, in: CLEF 2022 Labs and Workshops, Notebook Papers, CEUR-WS</article-title>
          .org,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>J.</given-names>
            <surname>Bevendorf</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Chulvi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Fersini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Heini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Kestemont</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Kredens</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Mayerl</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Ortega-Bueno</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Pezik</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Potthast</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Rangel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Rosso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Stamatatos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Stein</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Wiegmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Wolska</surname>
          </string-name>
          , E. Zangerle, Overview of PAN 2022:
          <article-title>Authorship Verification, Profiling Irony and Stereotype Spreaders, and Style Change Detection</article-title>
          , in: A.
          <string-name>
            <surname>Barron-Cedeno</surname>
            ,
            <given-names>G. D. S.</given-names>
          </string-name>
          <string-name>
            <surname>Martino</surname>
            ,
            <given-names>M. D.</given-names>
          </string-name>
          <string-name>
            <surname>Esposti</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Sebastiani</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Macdonald</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          <string-name>
            <surname>Pasi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Hanbury</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Potthast</surname>
          </string-name>
          , G. Faggioli, N. Ferro (Eds.),
          <source>Experimental IR Meets Multilinguality, Multimodality, and Interaction. Proceedings of the Thirteenth International Conference of the CLEF Association (CLEF</source>
          <year>2022</year>
          ), volume
          <volume>13390</volume>
          of Lecture Notes in Computer Science, Springer,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>M.</given-names>
            <surname>Potthast</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Gollub</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Wiegmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Stein</surname>
          </string-name>
          ,
          <article-title>Tira integrated research architecture</article-title>
          ,
          <source>in: Information Retrieval Evaluation in a Changing World</source>
          , Springer,
          <year>2019</year>
          , pp.
          <fpage>123</fpage>
          -
          <lpage>160</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>J.</given-names>
            <surname>Sánchez-Junquera</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Chulvi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Rosso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. P.</given-names>
            <surname>Ponzetto</surname>
          </string-name>
          ,
          <article-title>How do you speak about immigrants? taxonomy and stereoimmigrants dataset for identifying stereotypes about immigrants</article-title>
          ,
          <source>Applied Sciences</source>
          <volume>11</volume>
          (
          <year>2021</year>
          )
          <fpage>3610</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>J.</given-names>
            <surname>Sánchez-Junquera</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Rosso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Montes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Chulvi</surname>
          </string-name>
          , et al.,
          <article-title>Masking and bert-based models for stereotype identication</article-title>
          ,
          <source>Procesamiento del Lenguaje Natural</source>
          <volume>67</volume>
          (
          <year>2021</year>
          )
          <fpage>83</fpage>
          -
          <lpage>94</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>