<!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>A two-stage contagious Naive Bayes classi er for detecting sociolinguistic features in text</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Iena Petronella Derks</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alta de Waal</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Center for Arti cial Intelligence Research</institution>
          ,
          <addr-line>CAIR</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Department of Statistics, University of Pretoria</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>Online platforms allow users to masquerade themselves; making virtual interactions anonymous or misleading recipients of the interactions. It also facilitates an environment for cybercrimes, allowing users to take advantage of others and commit heinous acts. An important concern on social media usage, in particular, has to do with the security of under-age users that have access to the Internet. Children are more vulnerable to threatening situations, such as harassment [3], cyberbullying [7], and inappropriate conversations [8]. Natural language processing (NLP) techniques can be used to process and understand social media data [1]. In the area of sociolinguistics, there is evidence that links natural word use to personality and social uctuations [5]. In NLP, the term burstiness is used to describe the tendency of word recurrence. The burstiness phenomenon is frequently exhibited in real text, in which an informative word is more likely to occur if it has already appeared in the text [2]. State-of-the-art NLP models, such as the multinomial Naive Bayes model, are often used to model text documents [4].</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Introduction
One application area of NLP is sociolinguistics which can be de ned as the
relationship between social factors and linguistics. Sociolinguistics aims to isolate
features to determine linguistic variation in social conditions [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. This paper
investigates classi cation models which can model the burstiness, or contagious
e ects of text as the text that we are interested in are manifestations of di erent
social groups of people. For example, a teenager vs. an adult impersonating as
a teenager will have di erent sentence structures. More formally de ned, the
purpose of this work is to:
1. Learn the linguistic patterns among di erent social groups of people, and
classifying unknown authors according to these patterns; and
2. Represent these patterns as Bayesian networks to gain an understanding of
the dependency structure of words used among di erent social groups.
To identify these linguistic patterns, a comparison is made between two
classi cation techniques, namely the Naive Bayes (NB) classi er and a contagious
counterpart thereof. The NB classi er assumes that words occurring in a
document are independent of each other. On the other hand, the contagious classi er
captures the burstiness phenomenon. To go one step further, we investigate the
dependencies between words using a Bayesian network. This allows us to
understand why certain word patterns results in a classi cation.
2.1
      </p>
      <p>Data Application
This paper presents a comparison between the baseline NB classi er and the
proposed contagious counterpart thereof. Two data sets will be used to evaluate
the performance of each method, namely the IMDB data set and the PAN 2012
data set. The IMDB data set consist of movie reviews, with binary sentiment
classi cation. The PAN 2012 data set is originally used to identify potential
predators in online conversations, with 66 927 conversations. The problem is
addressed with a two-stage solution, where stage 1 is based on text classi cation
techniques and stage 2 makes use of Bayesian networks to understand the
structural dependencies among words in a document. The evaluation of stage 1 is
typical classi cation performance, whereas the visual structural learning of the
Bayesian network provides for exploratory data analysis in order to understand
the conditional dependencies between words.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Chowdhury</surname>
            ,
            <given-names>G.G.</given-names>
          </string-name>
          :
          <article-title>Natural language processing</article-title>
          .
          <source>Annual review of information science and technology 37(1)</source>
          ,
          <volume>51</volume>
          {
          <fpage>89</fpage>
          (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Doyle</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Elkan</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Accounting for burstiness in topic models</article-title>
          .
          <source>In: Proceedings of the 26th Annual International Conference on Machine Learning</source>
          . pp.
          <volume>281</volume>
          {
          <fpage>288</fpage>
          .
          <string-name>
            <surname>ACM</surname>
          </string-name>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Kennedy</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>McCollough</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dixon</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bastidas</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ryan</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Loo</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sahay</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Technology solutions to combat online harassment</article-title>
          .
          <source>In: Proceedings of the rst workshop on abusive language online</source>
          . pp.
          <volume>73</volume>
          {
          <issue>77</issue>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Madsen</surname>
            ,
            <given-names>R.E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kauchak</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Elkan</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Modeling word burstiness using the dirichlet distribution</article-title>
          .
          <source>In: Proceedings of the 22nd international conference on Machine learning</source>
          . pp.
          <volume>545</volume>
          {
          <fpage>552</fpage>
          .
          <string-name>
            <surname>ACM</surname>
          </string-name>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Pennebaker</surname>
            ,
            <given-names>J.W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mehl</surname>
            ,
            <given-names>M.R.</given-names>
          </string-name>
          , Niederho er, K.G.:
          <article-title>Psychological aspects of natural language use: Our words, our selves</article-title>
          .
          <source>Annual review of psychology 54(1)</source>
          ,
          <volume>547</volume>
          {
          <fpage>577</fpage>
          (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Spolsky</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Widdowson</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          , et al.:
          <source>Sociolinguistics</source>
          , vol.
          <volume>1</volume>
          . Oxford University Press (
          <year>1998</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Van</given-names>
            <surname>Hee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            ,
            <surname>Lefever</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            ,
            <surname>Verhoeven</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            ,
            <surname>Mennes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            ,
            <surname>Desmet</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            ,
            <surname>De Pauw</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            ,
            <surname>Daelemans</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            ,
            <surname>Hoste</surname>
          </string-name>
          ,
          <string-name>
            <surname>V.</surname>
          </string-name>
          :
          <article-title>Automatic detection and prevention of cyberbullying</article-title>
          .
          <source>In: International Conference on Human and Social Analytics (HUSO</source>
          <year>2015</year>
          ). pp.
          <volume>13</volume>
          {
          <fpage>18</fpage>
          .
          <string-name>
            <surname>IARIA</surname>
          </string-name>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Yenala</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jhanwar</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chinnakotla</surname>
            ,
            <given-names>M.K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Goyal</surname>
          </string-name>
          , J.:
          <article-title>Deep learning for detecting inappropriate content in text</article-title>
          .
          <source>International Journal of Data Science and Analytics</source>
          <volume>6</volume>
          (
          <issue>4</issue>
          ),
          <volume>273</volume>
          {
          <fpage>286</fpage>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>