<!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>CIQ: Classi cation of Insincere Questions</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Chandni.M</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Priyanga V.T</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Premjith B</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Soman K.P</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Center for Computational Engineering and Networking (CEN) Amrita School of Engineering</institution>
          ,
          <addr-line>Coimbatore Amrita Vishwa Vidyapeetham</addr-line>
          ,
          <country country="IN">India</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper explains about the description of the task carried out by the team Amrita CEN CIQ: Classi cation of Insincere Questions for the shared task conducted by FIRE 2019.The main objective of the shared task taken is to classify the insincere questions into six ne grained classes - Rhetorical questions, Hate speech/ in ammatory questions, Hypothetical questions, Sexually explicit/objectionable content questions, Other and Sincere/ true Information Seeking questions. The proposed system predicts the test data with an accuracy of 48.51%. The classi cation model used in this task is the Decision Tree Classi er. The Word embedding algorithm used for the extraction of features is Fasttext algorithm. A balanced Decision Tree is used as a classi er and proved to get better results when compared to the Random Forest Classi er with 0.52 F1-score.</p>
      </abstract>
      <kwd-group>
        <kwd>Insincere questions fastText Decision Tree</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Community Question Answering (CQA) is forum which had been used by several
thousands of users for seeking information and also to retrieve answers for their
queries. These kind of community answer seeking websites gained popularity in
the recent past and had been used by many people across the globe. However,
such websites fail to provide appropriate information to the users in most of the
cases because of the improper usage of forums. Quora is one such website which
is facing these issues. Identi cation of the insincere questions posted by the users
will help to resolve the above mentioned problems.</p>
      <p>The questions posted in the forums are labelled as insincere questions by
analysing the aspect of a question. This analysis and identi cation of the aspect
of the questions are challenging and signi cant. Therefore, Forum for
Information Retrieval Evaluation (FIRE-2019) organized a shared task on classi cation
of Insincere Questions (CIQ). This shared task aims to categorize an insincere
questions into six classes - Rhetorical questions, Hate speech/ in ammatory
questions, Hypothetical questions, Sexually explicit/objectionable content
questions, Other and Sincere/ true Information Seeking questions. This kind of
classi cation not only helps the community moderators to make the website user
friendly but also the users to navigate appropriate information. Thus, the CIQ
had created a dataset for the classi cation of Insincere questions by selectively
choosing Non-Information Seeking Questions (NISQ) data created by Kaggle.</p>
      <p>
        We (Amrita CEN CIQ) developed a classi cation model using the Decision
Tree classi er for the identi cation of the various aspects of insincere questions.
Since, the distribution of training data is not even among all the classes, we used
a weighted decision tree classi er which gave more weights to minority classes
and less weight to majority classes. The sentence vectors were constructed with
the fastText [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] word embedding algorithm. Our model obtained the F1-score of
0.52.
2
      </p>
      <p>Description of the Task
The main objective of the shared task CIQ : Categorization of Insincere
Questions was to classify the insincere questions into six di erent categories based
on the nature of questions asked such as Rhetorical questions, Hate speech,
Hypothetical classes, Sexually explicit questions, Sincere questions and other kind
of questions which cannot be classi ed into other categories. Classi cation of
Insincere questions(CIQ) has taken a set of questions from the Quora dataset
as the training and testing data. The training set contains 900 questions across
six ne grained categories of insincere questions and testing data contains 100
questions.</p>
      <p>The number of questions in each classes are not uniform. Class "0" refers
to the questions which are not sincere and contains the minimum number of
questions of only 20. Whereas, Class "1" refers to the rhetorical questions which
has the maximum number of questions among all other classes of classi cation.
The unequal distribution of the data among the six di erent classes is one of the
challenges faced during the training of the model. The statistics of the training
data is given in Table 1 and a visualization of the class distribution is shown in
Figure 1.
The steps involved in the developing the system submitted by Amrita CEN CIQ
is illustrated in Figure
3.1</p>
    </sec>
    <sec id="sec-2">
      <title>Preprocessing</title>
      <p>The training and testing data are initially preprocessed to remove the
noninformative content. The steps involved in the pre-processing are given as follows.
{ Removal of website links and usernames
{ Lower casing
{ Word tokenization
{ Removal of stop words
{ Removal of punctuation</p>
      <p>Each of the sentence in the corpus are tokenized into words using word tokenize()
function which are imported from the library Natural Language ToolKit(NLTK).
The NLTK library also contains stopwords of 16 di erent languages. The
stopwords in the data is also removed using NLTK library.
3.2</p>
    </sec>
    <sec id="sec-3">
      <title>Feature representation</title>
      <p>In this work, we tried fastText and Doc2vec for vectorizing the sentences with
the dimension of 100. Doc2vec directly represent the sentences into a vector of
dimension 100 whereas in fastText, the sentence vector was generated by taking
the mean of the word vectors of constituent words. On comparison between
the two algorithms used, fastText has provided a better result for the feature
extraction than Doc2Vec. The parameters of the Fasttext used are tabulated in
the Table 2 .
3.3</p>
    </sec>
    <sec id="sec-4">
      <title>Classi er</title>
      <p>We used weighted Decision Tree algorithm for classifying the insincere questions.
The performance of the model was evaluated using 5-fold cross validation. The
fastText features gave the testing accuracy of 40.70 +/- 0.02% while Doc2vec
features obtained 37.16 +/- 0.01%. Hence, we used word vectors generated using
fastText for the submitted system. The same trend follows with the test data
also. The classi cation accuracy of test data is 48.51% when the data were
vectorized using fastText and Doc2vec gave 35.64% accuracy in identifying the
di erent types of insincere questions. The confusion matrix for the test data is
given in the following g 3.</p>
      <p>The accuracy, precision and f1-score for the model is tabulated below in
Table 3 with a comparison between fastText and Doc2Vec algorithms.The subset
parameters which are used for building Decision Tree model and Random forest
model are tabulated in the Table 4.The advantage of a simple decision tree model
that it is easy to interpret and the accuracy keeps increasing with the number of
splits made in the training data. Whereas, in Random forest, the accuracy keeps
increasing with the number of trees but becomes constant at a certain point
of time. Unlike decision tree, it won't create highly biased model and reduces
the variance. Hence, we have chosen decision tree instead of random forest as a
classi er in our proposed system. The number of cross validation splits used in
both cases are same which is a ve-fold cross validation.
The identi cation of insincere questions have gained importance due to the
increased number of CQA forums. Classi cation of insincere questions is quite
easy using the text classi cation algorithms in NLP. This classi cation of
insincere questions into six di erent classes is quite a new strategy. In this paper,
we tried to implement the above mentioned classi cation using the fastText and
decision tree algorithm for feature extraction and classi cation respectively. The
proposed model proved to give the accuracy of 48.51% and F1-score(weighted)
of 0.52 with the given test data.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Le</surname>
            , Quoc, and
            <given-names>Tomas</given-names>
          </string-name>
          <string-name>
            <surname>Mikolov</surname>
          </string-name>
          .
          <article-title>"Distributed representations of sentences and documents</article-title>
          .
          <source>" International conference on machine learning</source>
          .
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Mikolov</surname>
          </string-name>
          ,
          <string-name>
            <surname>Tomas</surname>
          </string-name>
          , et al.
          <article-title>"Distributed representations of words and phrases and their compositionality</article-title>
          .
          <source>" Advances in neural information processing systems</source>
          .
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Joulin</surname>
          </string-name>
          ,
          <string-name>
            <surname>Armand</surname>
          </string-name>
          , et al.
          <article-title>"Bag of tricks for e cient text classi cation</article-title>
          .
          <source>" arXiv preprint arXiv:1607.01759</source>
          (
          <year>2016</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Ng</surname>
            ,
            <given-names>Andrew.</given-names>
          </string-name>
          <article-title>"Machine learning yearning." URL: http://www</article-title>
          . mlyearning. org/(96) (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Gabbard</surname>
            , Samuel,
            <given-names>Jinrui</given-names>
          </string-name>
          <string-name>
            <surname>Yang</surname>
          </string-name>
          , and Jingshi Liu.
          <article-title>"Quora Insincere Question Classication."</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Craig</given-names>
            <surname>Smith</surname>
          </string-name>
          .
          <year>2019</year>
          . Interesting Facts and Statistics About Quora.https://expandedramblings.com/index.php/quora-statistics
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Kaggle</given-names>
            <surname>Inc</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>Quora Insincere Questions Classi cation: Detect toxic content to imrpove online conversations</article-title>
          .https://www.kaggle.com/c/quora-insincere-questionsclassi cation
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Bojanowski</surname>
            , Piotr, Edouard Grave, Armand Joulin, and
            <given-names>Tomas</given-names>
          </string-name>
          <string-name>
            <surname>Mikolov</surname>
          </string-name>
          .
          <article-title>"Enriching word vectors with subword information." Transactions of the Association for Computational Linguistics 5 (</article-title>
          <year>2017</year>
          ):
          <fpage>135</fpage>
          -
          <lpage>146</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>