<!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>Tweet Classifier: Advancements in Multi-Label Analysis</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Swastik Anupam</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Amity University Kolkata</institution>
          ,
          <addr-line>Newtown, Kadampukur, Kolkata, West Bengal, 700135</addr-line>
        </aff>
      </contrib-group>
      <abstract>
        <p>Tweet Classifier is my submitted work to AISoMe FIRE 2023. In this research, I propose a text classification model for multi-label classification tasks using a domain-specific model to classify tweets as Unnecessary, Mandatory, Pharma, Conspiracy, Political, Country, Rushed, Ingredients, Side-efect,Inefective and Religious.The vaccination process was on- going worldwide to fight against the novel coronavirus disease(COVID-19), and the sentiment analysis of tweets is expected to provide helpful insights regarding the stance of people about the vaccines.I employed a deep neural network architecture implemented using TensorFlow, with TF-IDF vectorization as a feature engineering technique.The model is trained on a labeled dataset and evaluated on a test dataset, achieving competitive macro F1 scores.This approach provides a robust framework for automated text classification tasks. The evaluation score of our submitted run is reported in terms of accuracy and macro-F1 score.We achieved an accuracy of 0.4975, a macro-F1 score of 0.25, the 41th rank among other submissions.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Sentiment Analysis</kwd>
        <kwd>COVID-19 Vaccine Tweets</kwd>
        <kwd>Tweet Analysis</kwd>
        <kwd>Text Analysis</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>surrounding the pandemic efectively. This work underscores the potential of machine learning
in addressing real-world challenges, especially within the context of a global health crisis.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Task</title>
      <p>For task, "Building an efective multi label classifier to label a social media post (tweets)
according to the specific concern(s) towards vaccines".</p>
      <p>Note: a tweet can have more than one label (concern).</p>
      <p>Our objective is to construct a robust multi-label classifier for social media posts, specifically
tweets, aimed at categorizing them based on the distinct concerns expressed by authors
regarding vaccines.</p>
      <p>It is important to note that a single tweet can encompass multiple concerns, necessitating a
multi- label approach. The concerns we consider as labels for classification encompass:
1. Unnecessary: Tweets suggesting vaccines are unnecessary or that alternative remedies are
superior. Example: "Why bother with vaccines when natural immunity is better?"
2. Mandatory: Tweets opposing mandatory vaccination, asserting that vaccines should not be
enforced. Example: "Vaccination should always be a choice, never mandatory."
3. Pharma: Tweets criticizing Big Pharmaceutical companies, alleging profit-driven motives, or
expressing general distrust based on their history.Example: "Big Pharma profits while we sufer."
4. Conspiracy: Tweets delving into deeper conspiracies related to vaccines, extending beyond
ifnancial motivations (e.g., tracking people, COVID-19 being a hoax). Example:"Vaccines are a
tool for population control."
5. Political: Tweets voicing concerns that governments or politicians are advancing their
agendas through vaccines.Example: "Politicians are exploiting vaccines for their own gain."
6. Country: Tweets expressing objections to vaccines based on their country of
origin.Example:"I won’t trust a vaccine made in that country."
7. Rushed: Tweets expressing concerns about insuficient testing or inaccurate published data
regarding vaccines.Example:"These vaccines were rushed and not properly tested."
8. Ingredients: Tweets raising concerns about vaccine ingredients (e.g., fetal cells, chemicals)
or the technology used (e.g., mRNA vaccines).Example:"I’m worried about what’s in these
vaccines."
9. Side-efect : Tweets expressing concerns about vaccine side efects, including
fatalities.Example:"Too many people are experiencing severe side efects."
10. Inefective : Tweets doubting vaccine eficacy, asserting they are not efective and, thus,
useless.Example:"These vaccines don’t work as advertised."
11. Religious: Tweets opposing vaccines on religious grounds. Example:"My faith prohibits me
from getting vaccinated."
12. None: Tweets with no specific reason stated or citing other reasons not covered
above.Example:"I haven’t decided yet if I want to get vaccinated."</p>
    </sec>
    <sec id="sec-3">
      <title>3. Related Work</title>
      <p>
        Users post content on microblogs like twitter for various purposes, including their sentiments
about vaccines and vaccination drives.Data extraction from these textual tweets is very popular
part of sentiment analysis. The traditional machine learning methods like Naive-Bayes classifier,
Linear classifier,Support Vector Machines and Deep neural methods like Long Short-Term
Memory (LSTMs) and Bidirectional RNN are very successful for text classification.More recent
language models for natural language processing includes XGBoost models, KNN,KLNext, BERT
(Bidirectional Encoder Representations from Transformers) and its domain-specific version CT
BERT(COVIDTwitterBERT),TensorFlow(TF-IDF).The papers which i have used for citations are
related to this research using tensorflow and deep neural network to classify text.All the citations
which I have taken proved very informative as they provided the base for my research by giving
info about the TD-IDF and other techniques with precision [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].The overview paper,a
comprehensive study gives the idea of the growing importance and integration of AI in online
social platforms [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <sec id="sec-3-1">
        <title>3.1. TensorFlow (TF-IDF)</title>
        <p>TensorFlow with TF-IDF (Term Frequency-Inverse Document Frequency) is an approach in
which text data is converted into numerical TF-IDF features and then processed using
TensorFlow, a prominent deep learning framework.In the context of multi-label text classification, this
method employs TensorFlow to construct neural networks that utilize TF-IDF as the input.It
seamlessly integrates the powerful text representation capabilities of TF-IDF with the modeling
strengths of neural networks to classify text into multiple labels. This code exemplifies
multilabel text classification utilizing TensorFlow and scikit-learn. It involves data preprocessing,
conversion of text into TF-IDF features, construction of a neural network with three layers,
model training, prediction generation, and evaluation through metrics such as the macro F1
score and a comprehensive classification report.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Dataset</title>
      <p>
        The training dataset given comprises 9,921 tweets expressing concerns about COVID vaccines,
posted during 2020-21.The dataset includes two essential components: tweet IDs and
corresponding labels. My approach used the dataset taken from updated version on Arxiv["CAVES:
A dataset to facilitate explainable classification and summarization of concerns towards COVID
vaccines"] [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].I augmented the dataset with the given tweet, tweet ID and labels by using
K-means clustering and DBSCAN (Density-Based clustering algorithm) to observe the various
trends in the given dataset.
      </p>
      <sec id="sec-4-1">
        <title>4.1. Trends in the dataset</title>
        <p>Based on the given information, the following trends were observed in the dataset.The dataset
contains tweets with various labels. Here are some key findings:
• The label "side-efect" is the most common, with 2,883 occurrences, representing approximately
29.06 percent of the dataset.
• The label "inefective" appears 1,204 times, accounting for about 12.14 percent of the dataset.
• Labels like "rushed," "pharma," and "none" also have significant counts.</p>
        <p>There are a total of 288 unique label combinations in the dataset. Some labels are combined
(e.g., "side-efect pharma ingredients"),indicating that a single tweet might be associated with
multiple themes or topics.The test data is annotated by human annotators, where a label is
assigned on the unanimous agreement or majority agreement from the given labels.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Pre-processing</title>
      <p>I pre-processed the tweets in order to improve the quality of text produced by TF-IDF.Tweets
generally contains like HASHTAGS, HTTP-URL and EMOJIS which without pre-processing,
often reduce the performance of the model.Thus, i used the following data cleaning tasks as
part of pre-processing the tweets in the dataset:
• Stop Words Removal: A stop word is a commonly used word such as "the", "a", "an", "in",
which do not provide any valuable information. I removed the stop words in order to give more
focus to the important information.
• Text Standardization: Tweets are written more casually, thus by lower casing every word, i
am keeping only a single version of every word, enhancing the text analysis.
• Emoji Conversion to words: Emojis are extensively used on Twitter to express feelings and
emotions. Completely removing them removes a lot of sentiment information; thus, I converted
the emojis to text and retained their meaning using ’emoji’ library available.
• Contraction Expansion in text: In order to standardize the text, each contraction is
converted to its expanded, original form.
• Non-Alphanumeric Characters Removal: To ensure completely refined textual data, I
removed all the non-letter characters like brackets, colon, semi-colon, @, etc.
• URL Elimination: URLs are not suficient for sentiment analysis; I removed them with the
help of regular expression from the text.</p>
    </sec>
    <sec id="sec-6">
      <title>6. Methodology</title>
      <p>6.1. Model
Term Frequency Inverse Document Frequency-TensorFlow (TF-IDF): TensorFlow with
TF-IDF (Term Frequency-Inverse Document Frequency) is an approach in which text data is
converted into numerical TF-IDF features and then processed using TensorFlow, a prominent
deep learning framework.</p>
      <p>Representation: Used tool scikit-learn to transform textual data into TF-IDF vectors and this
representation emphasizes the importance of words that are frequent in a specific dataset. This
representation can be particularly useful for tasks like text data classification or clustering.
Neural Network with TensorFlow: After TF-IDF representations, I used them as input features
to a neural network model built using TensorFlow. This model is designed for classification and
sentiment analysis.Pre-training: In Pre-training, I pre-processed the dataset before fine-tuning
it on a specific task.</p>
      <p>However, in the case of a TF-IDF representation, pre-training is not a standard practice since
TF-IDF vectors are task-specific. We typically train our TensorFlow model on our dataset with
TF-IDF vectors without any pre-training.</p>
      <sec id="sec-6-1">
        <title>6.2. Experimental Setup</title>
        <p>My experimental framework was constructed using TensorFlow and scikit-learn.I have used
dataset comprising tweets and their respective labels and once loaded, preprocessed the tweets
and transformed the labels into a multi-label binary format using a MultiLabelBinarizer.Further
to convert my textual data into a numerical format suitable for a neural network, i employed
Tfidf Vectorizer. The neural architecture chosen for this task was a sequential model consisting
of two hidden layers, with the first layer housing 512 neurons and the subsequent containing
256 neurons using Keras.I added dropout layers with a rate of 0.7 to prevent overfitting and
adopted a batch training approach which is processing the dataset in chunks of 64 samples, and
the training spanned over 100 epochs for a maximum of 1,000 iterations.I have attached the
repository link also which can be refereed to see the the experimental setup. [click this] link to
go the repository for this research project.</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>7. Prediction</title>
      <p>For the prediction over the given test data, I harnessed the power of TFIDF-Neural Net
MultiLabel Classifier. Instead of the conventional embeddings like CT-BERT,my approach transformed
each tweet into a rich TF-IDF representation,capturing the essence of the content.This data
was then passed through my finely-calibrated neural network to ascertain probability scores
against all classes. The classes with the highest probability emerged as the predicted classes for
a respective tweet. My submission, a prediction file (in CSV format) with both the Tweet ID’s
and its corresponding class prediction, marked my entry for the FIRE Track 2023 task.</p>
    </sec>
    <sec id="sec-8">
      <title>8. Evaluation</title>
      <p>Task - AISOME FIRE 2023 Track Results: Evaluations for the AISOME FIRE 2023 Track were
conducted using two primary metrics: the Jaccard index and the macro-F1 score, both applied
to the specified classes. The outcome of my submitted run for the Track is detailed in Table.
Swastik Anupam (individual) secured the 41st rank among the various submissions, achieving a
Jaccard index of 0.29 and a macro-F1 score of 0.25.</p>
      <p>Sr No.</p>
      <p>41</p>
      <p>Team_Name
Swastik Anupam (Individual)</p>
      <p>Jacc
0.29
macro-F1 score
0.25</p>
      <p>Rank
41
This paper uses TensorFlow (TF-IDF), is an approach in which text data is converted into
numerical TF-IDF features and then processed using TensorFlow, a prominent deep learning
framework. I observed that the TensorFlow (TF-IDF) outperformed the traditional natural
language processing classifier, namely Naive Bayes and Support Vector Machines, as text
computed by the TensorFlow (TF-IDF) are more expressive and yield better results on the given
task. I further propose for improving the performance of my model based on the code and
several potential enhancements in the areas of Embeddings Layer,Hyperparameter Tuning,
Batch Normalization, Custom Loss Functions, Complex Model Architecture (Convolutional
Neural Networks (CNNs) or Recurrent Neural Networks (RNNs) for handling sequential data like
text).To further enhance the model’s accuracy, adversarial training techniques can be applied.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>M.</given-names>
            <surname>Neethu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Rajasree</surname>
          </string-name>
          ,
          <article-title>Sentiment analysis in twitter using machine learning techniques</article-title>
          ,
          <source>in: 2013 fourth international conference on computing, communications and networking technologies (ICCCNT)</source>
          , IEEE,
          <year>2013</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>5</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>L.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <article-title>Deep learning for sentiment analysis: A survey</article-title>
          ,
          <source>Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery</source>
          <volume>8</volume>
          (
          <year>2018</year>
          )
          <article-title>e1253</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>A. M.</given-names>
            <surname>Ramadhani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. S.</given-names>
            <surname>Goo</surname>
          </string-name>
          ,
          <article-title>Twitter sentiment analysis using deep learning methods, in: 2017 7th International annual engineering seminar (InAES)</article-title>
          , IEEE,
          <year>2017</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>4</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>P.</given-names>
            <surname>Semberecki</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Maciejewski</surname>
          </string-name>
          ,
          <article-title>Deep learning methods for subject text classification of articles</article-title>
          ,
          <source>in: 2017 Federated Conference on Computer Science and Information Systems (FedCSIS)</source>
          , IEEE,
          <year>2017</year>
          , pp.
          <fpage>357</fpage>
          -
          <lpage>360</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>S.</given-names>
            <surname>Poddar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Basu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Ghosh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Ghosh</surname>
          </string-name>
          ,
          <article-title>Overview of the fire 2023 track:artificial intelligence on social media (aisome)</article-title>
          ,
          <source>in: Proceedings of the 15th Annual Meeting of the Forum for Information Retrieval Evaluation</source>
          ,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>S.</given-names>
            <surname>Poddar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. M.</given-names>
            <surname>Samad</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Mukherjee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Ganguly</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Ghosh</surname>
          </string-name>
          ,
          <article-title>Caves: A dataset to facilitate explainable classification and summarization of concerns towards covid vaccines</article-title>
          ,
          <source>in: Proceedings of the 45th International ACM SIGIR Conference on Research and Development in Information Retrieval</source>
          ,
          <year>2022</year>
          , pp.
          <fpage>3154</fpage>
          -
          <lpage>3164</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>