<!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>Classifying Text-Based Conspiracy Tweets related to COVID-19 using Contextualized Word Embeddings</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Abdul Rehman</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>Rabeeh Ayaz Abbasi</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>Irfan ul Haq Qureshi</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>Akmal Saeed Khattak</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>CEUR Workshop Proceedings</institution>
          ,
          <addr-line>CEUR-WS.org</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Department of Computer Science, Quaid-i-Azam University</institution>
          ,
          <addr-line>Islamabad</addr-line>
          ,
          <country country="PK">Pakistan</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>The FakeNews task in MediaEval 2022 investigates the challenge of finding accurate and high-performance models for the classification of conspiracy tweets related to COVID-19. In this paper, we used BERT, ELMO, and their combination for feature extraction and RandomForest as classifier. The results show that ELMO performs slightly better than BERT, however their combination at feature level reduces the performance. People widely use social media to share their opinions. At times, people intentionally or unintentionally share false information about serious issues like pandemics. This results in misleading other people about the issue. As a result, people often create hurdles in managing the issue by not complying with the advice provided by authentic sources like healthcare institutes. COVID-19 has affected the entire world [1]. A lot of fake news was spread on social media platforms about the pandemic. Text-Based Misinformation and Conspiracies Detection, one of the subtasks of FakeNews Detection task in MediaEval2022 [2], focuses on the classification of tweets by conspiracy. For this study, we focused solely on this subtask because it was the most closely related to our research question, which was to investigate the effectiveness of contextualized word embeddings for identifying conspiracy-related content in social media. The task uses three different class labels to mark the tweet contents: Promotes/Supports Conspiracy, Discusses Conspiracy, and Non-Conspiracy. There are overall nine conspiracies for which the class labels have to be assigned. We use pre-trained contextualized word embedding models, BERT, and ELMo [3], and their combination for classifying misinformative tweets. The FakeNews task in 2022 extends from the FakeNews task in MediaEval 2021 [5]. Among its participants, two teams used the contextualized word embeddings from BERT pre-trained model to classify the tweets [6], [7]. In both cases, using the BERT model improved classification performance for different conspiracies.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 INTRODUCTION</title>
    </sec>
    <sec id="sec-2">
      <title>METHODOLOGY</title>
      <p>In this section, we present the proposed model for the task.</p>
    </sec>
    <sec id="sec-3">
      <title>Pre-Processing</title>
      <p>We used a tweets dataset from the organizers of the task. Since we are using pre-trained language models like BERT [8]
and ELMo [9], preprocessing is not needed. These models use all of the information in a sentence, including punctuation, and
stop-words, from a wide range of perspectives by leveraging bidirectional LSTMs and multi-head self-attention mechanisms
[10]. As the provided dataset was imbalanced (91% Non-Conspiracy, 3% Discusses Conspiracy, 6% Promotes/Supports
Conspiracy), to effectively train the machine learning model, we use “Synthetic Minority Oversampling Technique”
(SMOTE). It is a widely used and successful oversampling method to handle unbalanced datasets [11]. We sample the tweets
in the following manner: 50% examples of “Non-Conspiracy”, 25% “Promotes/Supports Conspiracy”, and 25% “Discusses
Conspiracy” examples.
question answering, sentiment analysis, and textual entailment. In addition, we also tried to combine the embeddings from
both of these most widely used pre-trained models to get contextualized word embeddings.</p>
      <p>The BERT encoder generates a sequence of hidden states for each input sentence, representing the meaning and context
of the words in the sentence. To use this sequence for classification tasks, we need to compact it into a single vector
representation. There are several ways to do this, such as using max/mean pooling or applying attention to the hidden states.
In our study, we chose a simpler approach: we only took the hidden state associated with the initial token ([CLS] token), which
is prepended to the beginning of each sentence by BERT as a start-of-sentence token. The representation of the whole tweet
is then given by the 768-dimensional embedding of the CLS token, which captures the meaning and context of the entire
sentence [14], [15]. Figure 1 shows how BERT embeddings are used for modeling tweets.</p>
      <p>ELMo gives a vector of size 1024, for every word in the input sentence. To get the vector representation of a tweet as a
whole, we use the mean of the ELMo vectors [16]. Figure 2 shows the process of using tweet for classification using ELMO.</p>
      <p>Combining the representations of BERT and ELMo is a nontrivial task due to the difference in their dimensionalities. We
can reduce the dimensions of the representations using different dimensionality reduction techniques, but it will result in
information loss.
In this task, there were nine types of conspiracies and each of them has three labels, and a tweet can belong to more than one
conspiracy. It cannot be a problem of multiclass multilabel classification straightaway as the labels are not binary, however, it
can be transformed into it. But we used nine different models for each conspiracy and dealt with them separately as a multiclass
classification problem [18].</p>
      <p>The training dataset constituted 1912 examples. Algorithms used for deep learning typically require large datasets to
produce good results, and they often underperform on small datasets [19]. Therefore, we chose to use the Random Forest
classifier because it is a robust and widely-used machine learning algorithm that has been shown to perform well on a variety
of tasks, including text classification [20]. Random Forest uses multiple decision trees based on subsamples of the dataset [18],
[21].</p>
    </sec>
    <sec id="sec-4">
      <title>3 RESULTS AND ANALYSIS</title>
      <p>While applying machine learning algorithms with skewed datasets, traditional error metrics, such as accuracy, are not
useful, as they also consider true negatives (or the major class). We use the F1 score, which computes the harmonic mean of
precision and recall. Equations 1, 2 and 3 express the formulae of precision, recall and F1 score respectively.
 =</p>
      <p>+  
 =</p>
      <p>+  
! = 2 ×  ×  (3)</p>
      <p>+</p>
      <p>Another metric that measures machine learning algorithms' performance for classification problems even if the data is
imbalanced is Matthews Correlation Coefficient (MCC). Its value lies between -1 and +1, where -1 represents inverse, 0
represents average, +1 represents perfect predictions. Equation 4 expresses the formula of MCC.
(1)
(2)
(4)
 =</p>
      <p>∗  −  ∗ 
=( + ) ∗ ( + ) ∗ ( + ) ∗ ( + )</p>
      <p>For training the model, we split the data into random train and test subsets using 80-20 ratio. Table 1 shows the F1-scores,
while Table 2 shows the Matthews Correlation Coefficient (MCC) values of the language models used along with the Random
Forest classifier when tested on test subset Table 3 shows the Matthews Correlation Coefficient values of the test data provided
by the organizers which also is the official score.</p>
      <p>ELMo yields better results in most of the cases and even in the remaining cases the differences are small. According to the
experimental result, the pre-trained language model aids in the extraction of conspiracy information for stance classification
and conspiracy detection. However, in the classification for the Suppressed Cures Conspiracy, Harmful Radiation Influence,
and Satanism Conspiracy, all outputs are incorrect. We guess that the classification models do not work because the tweets
belonging to other labels (promotes conspiracy or discusses conspiracy) are only a few. Table 4 shows the distribution of
training examples across conspiracies.</p>
    </sec>
    <sec id="sec-5">
      <title>CONCLUSIONS</title>
      <p>We propose use of different language models like BERT and ELMo, combined with Random Forest Classifier for
conspiracy tweets classification. Best results are obtained using the ELMo pretrained model. It achieves an average score of
0.05 MCC without using any augmentation or extra information.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <surname>M. R. Gualano</surname>
            , G. lo Moro, G. Voglino,
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Bert</surname>
            , and
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Siliquini</surname>
          </string-name>
          , “
          <article-title>Effects of COVID-19 lockdown on mental health and sleep disturbances in Italy,”</article-title>
          <source>Int J Environ Res Public Health</source>
          , vol.
          <volume>17</volume>
          , no.
          <issue>13</issue>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>13</lpage>
          , Jul.
          <year>2020</year>
          , doi: 10.3390/ijerph17134779.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <given-names>K.</given-names>
            <surname>Pogorelov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. T.</given-names>
            <surname>Schroeder</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Brenner</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Maulana</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.</given-names>
            <surname>Langguth</surname>
          </string-name>
          , “
          <article-title>Combining Tweets and Connections Graph for FakeNews Detection at MediaEval</article-title>
          <year>2022</year>
          ,”
          <year>2022</year>
          . [Online]. Available: http://ceur-ws.org
          <string-name>
            <given-names>N.</given-names>
            <surname>Reimers</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Schiller</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Beck</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Daxenberger</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Stab</surname>
          </string-name>
          ,
          <string-name>
            <surname>and I. Gurevych</surname>
          </string-name>
          , “
          <article-title>Classification and Clustering of Arguments with Contextualized Word Embeddings</article-title>
          ,” Jun.
          <year>2019</year>
          , [Online]. Available: http://arxiv.org/abs/
          <year>1906</year>
          .09821
          <string-name>
            <given-names>Flora</given-names>
            <surname>Carmichael</surname>
          </string-name>
          and Abid Hussain, “
          <article-title>Pro-Indian 'fake websites targeted decision makers in Europe</article-title>
          ,'” BBC World,
          <year>Dec</year>
          .
          <volume>16</volume>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <given-names>K.</given-names>
            <surname>Pogorelov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. T.</given-names>
            <surname>Schroeder</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Brenner</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.</given-names>
            <surname>Langguth</surname>
          </string-name>
          , “
          <source>FakeNews: Corona Virus and Conspiracies Multimedia Analysis Task at MediaEval</source>
          <year>2021</year>
          ,”
          <year>2021</year>
          . [Online]. Available: https://www.kaggle.com/c/ Yuta Yanagi, Ryohei Orihara, Yasuyuki Tahara, Yuichi Sei, and Akihiko Ohsuga, “
          <article-title>Classifying COVID-19 Conspiracy Tweets with Word Embedding and</article-title>
          BERT,”
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <surname>N. M. D.</surname>
             ; Tuan and
            <given-names>P. Q. N.</given-names>
          </string-name>
          <string-name>
            <surname>Minh</surname>
          </string-name>
          , “
          <article-title>FakeNews detection using pre-trained language models and graph convolutional networks</article-title>
          ,”
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <given-names>J.</given-names>
            <surname>Devlin</surname>
          </string-name>
          , M.-
          <string-name>
            <given-names>W.</given-names>
            <surname>Chang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Lee</surname>
          </string-name>
          , and
          <string-name>
            <given-names>K.</given-names>
            <surname>Toutanova</surname>
          </string-name>
          , “BERT:
          <article-title>Pre-training of Deep Bidirectional Transformers for Language Understanding</article-title>
          ,” Oct.
          <year>2018</year>
          , [Online]. Available: http://arxiv.org/abs/
          <year>1810</year>
          .04805
          <string-name>
            <given-names>W.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Wen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Gao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Zheng</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zheng</surname>
          </string-name>
          , “
          <article-title>A multi-label text classification model based on ELMo and attention</article-title>
          ”, doi: 10.1051/matecconf/202030.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <given-names>F.</given-names>
            <surname>Almeida</surname>
          </string-name>
          and G. Xexéo, “Word Embeddings: A Survey,” Jan.
          <year>2019</year>
          , [Online]. Available: http://arxiv.org/abs/
          <year>1901</year>
          .09069 Jason Brownlee, “
          <article-title>Tour of Data Sampling Methods for Imbalanced Classification,” Machine Learning Mastery</article-title>
          , Jan.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <given-names>Y.</given-names>
            <surname>Peng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Yan</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Z.</given-names>
            <surname>Lu</surname>
          </string-name>
          , “
          <article-title>Transfer Learning in Biomedical Natural Language Processing: An Evaluation of BERT and ELMo on Ten Benchmarking Datasets</article-title>
          ,” Jun.
          <year>2019</year>
          , [Online]. Available: http://arxiv.org/abs/
          <year>1906</year>
          .05474
          <string-name>
            <given-names>K.</given-names>
            <surname>Kowsari</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K. J.</given-names>
            <surname>Meimandi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Heidarysafa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Mendu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Barnes</surname>
          </string-name>
          , and
          <string-name>
            <given-names>D.</given-names>
            <surname>Brown</surname>
          </string-name>
          , “
          <article-title>Text classification algorithms: A survey,” Information (Switzerland)</article-title>
          , vol.
          <volume>10</volume>
          , no. 4.
          <string-name>
            <surname>MDPI</surname>
            <given-names>AG</given-names>
          </string-name>
          ,
          <year>2019</year>
          . doi:
          <volume>10</volume>
          .3390/info10040150.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <given-names>Ruben</given-names>
            <surname>Winastwan</surname>
          </string-name>
          , “
          <article-title>Text Classification with BERT in PyTorch,” Towards Data Science</article-title>
          ,
          <source>Nov. 10</source>
          ,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <given-names>Nicolo</given-names>
            <surname>Cosimo</surname>
          </string-name>
          <string-name>
            <surname>Albanese</surname>
          </string-name>
          , “
          <article-title>Fine-Tuning BERT for Text Classification,” Towards Data Science</article-title>
          , May
          <volume>14</volume>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <string-name>
            <given-names>Prateek</given-names>
            <surname>Joshi</surname>
          </string-name>
          , “
          <article-title>A Step-by-Step NLP Guide to Learn ELMo for Extracting Features from Text,” Analytics Vidhya</article-title>
          , Jun.
          <volume>23</volume>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          <string-name>
            <surname>Z.-H. Zhou</surname>
            and
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Feng</surname>
          </string-name>
          , “Deep Forest:
          <article-title>Towards an Alternative to Deep Neural Networks *</article-title>
          .”
          <string-name>
            <given-names>A.</given-names>
            <surname>Chaudhary</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Kolhe</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Kamal</surname>
          </string-name>
          , “
          <article-title>An improved random forest classifier for multi-class classification</article-title>
          ,” Information Processing in Agriculture, vol.
          <volume>3</volume>
          , no.
          <issue>4</issue>
          , pp.
          <fpage>215</fpage>
          -
          <lpage>222</lpage>
          ,
          <year>2016</year>
          , doi: https://doi.org/10.1016/j.inpa.
          <year>2016</year>
          .
          <volume>08</volume>
          .002.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          <string-name>
            <surname>J. M. Davila Delgado</surname>
            and
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Oyedele</surname>
          </string-name>
          , “
          <article-title>Deep learning with small datasets: using autoencoders to address limited datasets in construction management</article-title>
          ,
          <source>” Appl Soft Comput</source>
          , vol.
          <volume>112</volume>
          , p.
          <fpage>107836</fpage>
          ,
          <string-name>
            <surname>Nov</surname>
          </string-name>
          .
          <year>2021</year>
          , doi: 10.1016/J.ASOC.
          <year>2021</year>
          .
          <volume>107836</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          <string-name>
            <given-names>S. J.</given-names>
            <surname>Rigatti</surname>
          </string-name>
          , “Random Forest,”
          <source>J Insur Med</source>
          , vol.
          <volume>47</volume>
          , no.
          <issue>1</issue>
          , pp.
          <fpage>31</fpage>
          -
          <lpage>39</lpage>
          , Jan.
          <year>2017</year>
          , doi: 10.17849/insm-47
          <source>-01-31- 39</source>
          .1.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          <string-name>
            <given-names>Y.</given-names>
            <surname>Kong</surname>
          </string-name>
          and
          <string-name>
            <given-names>T.</given-names>
            <surname>Yu</surname>
          </string-name>
          , “
          <article-title>A Deep Neural Network Model using Random Forest to Extract Feature Representation for Gene Expression Data Classification,”</article-title>
          <source>Sci Rep</source>
          , vol.
          <volume>8</volume>
          , no.
          <issue>1</issue>
          , p.
          <fpage>16477</fpage>
          ,
          <year>2018</year>
          , doi: 10.1038/s41598-018-34833-6.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>