<!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>Classification of COVID-19 Tweets</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Sumana Sree Madasu</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Indian Institute of Science Education and Research Tirupati</institution>
          ,
          <addr-line>Andhra Pradesh</addr-line>
          ,
          <country country="IN">India</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Classification is a vital work to human beings in day today life as it breaks down complex subjects. In the same way, text classification is very important to understand and realize the subject of the text. A classification pipeline is constructed to classify the given set of COVID -19 tweets. Here, Data set containing COVID-19 tweets are classified into three diferent classes using a specific classification pipeline and this classification solves a real world problem. Data is preprocessed, Vectorized using a Doc2Vec model and then Support Vector Machine classifier is used to train the model. The model is then saved and can be used to predict new tweets.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;data preprocessing</kwd>
        <kwd>Support Vector Machine</kwd>
        <kwd>Doc2Vec</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>2. Data Preprocessing</title>
      <p>
        Given data have diferent characteristics, numbers, symbols etc. and this makes the text
preprocessing one of the most critical steps in the classification pipeline. Firstly, necessary
libraries are imported and then the data is preprocessed by using a few methods depending
on the classification task. Here, two functions called clean_text and clean_numbers are used,
they return modified text [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ](after HTML decoding, lowercase text, replaces symbol by space,
deleting few symbols, stopwords and numbers).
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Implementing Doc2Vec</title>
      <p>
        To implement Gensim’s Doc2Vec, every document has to be labeled [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Here ,this is done using
the TaggedDocument method. Then data is split into train and test sets using the train_test
_split from Scikit-Learn library and stratify parameter is used on the data column ‘label’. For
representing each tweet , a Doc2Vec model is built with each vector as 300 dimension, which
iterates over the training corpus 30 times, minimum word count is set to 2 to discard rarely
occurring words and alpha is set to 0.065. Vector representation is obtained using the above
trained Doc2Vec model for the vocabulary of the data.
      </p>
    </sec>
    <sec id="sec-4">
      <title>4. Classification Algorithm</title>
      <sec id="sec-4-1">
        <title>Support Vector Machine :</title>
        <p>Now, the training data vector list is fitted on the Support Vector Machine (SVM)
classifier,which is a traditional machine learning technique [ 3] and this model is used
to predict the labels on the testing data vector list(i.e., validation data list).</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Classification Report</title>
      <p>Classification metrics like f1 score, precision and accuracy are calculated to evaluate
the model.</p>
      <p>Accuracy - 0.5563</p>
      <sec id="sec-5-1">
        <title>Antivax</title>
        <p>Neutral</p>
        <p>ProVax
accuracy
macro avg
weighted avg
6. Conclusion
Classification performances of the classifiers depends on quality of training text
corpuses to some extent. Most text classification problems are linearly separable [ 4] and
SVM helps in finding those linear separators and this says that SVM can perform well
in text classification [ 5] when over fitting issue is taken care of. For large data samples,
Deep Learning techniques show better performance than Traditional Machine Learning
techniques.
[3] E. Ikonomakis, S. Kotsiantis, V. Tampakas, Text classification using machine learning
techniques, WSEAS transactions on computers 4 (2005) 966–974.
[4] T. Joachims, Text categorization with support vector machines: Learning with
many relevant features, in: European conference on machine learning, Springer,
1998, pp. 137–142.
[5] A. Basu, C. Walters, M. Shepherd, Support vector machines for text
categorization, in: 36th Annual Hawaii International Conference on System Sciences, 2003.</p>
        <p>Proceedings of the, 2003, pp. 7 pp.–. doi:10.1109/HICSS.2003.1174243.
References:</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A.</given-names>
            <surname>Kadhim</surname>
          </string-name>
          ,
          <article-title>An evaluation of preprocessing techniques for text classification</article-title>
          ,
          <source>International Journal of Computer Science and Information Security</source>
          ,
          <volume>16</volume>
          (
          <year>2018</year>
          )
          <fpage>22</fpage>
          -
          <lpage>32</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Q.</given-names>
            <surname>Le</surname>
          </string-name>
          , T. Mikolov,
          <article-title>Distributed representations of sentences and documents</article-title>
          ,
          <source>in: International conference on machine learning, PMLR</source>
          ,
          <year>2014</year>
          , pp.
          <fpage>1188</fpage>
          -
          <lpage>1196</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>