<!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>Information Retrieval and Classification based Approaches for the Sexual Predator Identification</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Darnes Vilariño</string-name>
          <email>darnes@cs.buap.mx</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Esteban Castillo</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>David Pinto</string-name>
          <email>dpinto@cs.buap.mx</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Iván Olmos</string-name>
          <email>iolmos@cs.buap.mx</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Saul León</string-name>
          <email>saul.ls@live.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Benemérita Universidad Autónoma de Puebla Faculty of Computer Science</institution>
          ,
          <country country="MX">Mexico</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this paper we present the evaluation of two different approaches with the aim of tackling the task of Sexual Predator Identification of PAN 2012. The first approach uses a dictionary of sexual terms in order to identify those documents associated in some manner with a sexual predator behavior. In order to do so, we use the sexual terms of the dictionary as a query in an information retrieval system, thus, retrieving the documents that best match with the query introduced. The second approach uses the multinomial Naïve Bayes classifier in order to detect sexual predators. The first approach performed better than the second one with low percentages of precision and high values of recall.</p>
      </abstract>
      <kwd-group>
        <kwd>Sexual predator</kwd>
        <kwd>Chat messages</kwd>
        <kwd>Sexual terms</kwd>
        <kwd>Information retrieval</kwd>
        <kwd>Supervised classifiers</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>Nowadays there has been a growing number on the use of messaging systems such as
chats and instant messaging which provide sexual predators a good platform for sexual
purposes. Thus, it becomes very important to tackle the problem of sexual predator
identification in order to ameliorate cases of sexual harassment. In this context, the 6th
International Workshop on Uncovering Plagiarism, Authorship, and Social Software
Misuse (PAN’12) has proposed a task named Sexual Predator Identification with aims
to generate a framework in which different teams around the world may compare their
approaches solving this particular problem. The goal is to provide an automatic method
that permits to detect chat conversations in which one person attempts any erotic or
suggestive remarks. The proposed task is subdivided into two sub-tasks:</p>
      <p>The above mentioned problem has been tackled in this research work by means of
two different approaches. The first one uses techniques of information retrieval, whereas
the second uses classical methods of supervised machine learning. The aim of this work
is to determine which one obtains the best performance.</p>
      <p>The remaining of this paper is structured as follows. In Section 2 and 3, the two
different approaches are explained. Section 4 shows the results obtained for each approach.
Finally in Section 5 the conclusions of this work are given.</p>
    </sec>
    <sec id="sec-2">
      <title>2 Information Retrieval Based Approach</title>
      <p>As mentioned before, this approach considers a number of sexual terms as query for
an information retrieval system. Each query is constructed with one original sexual
term with its corresponding synonyms. For the indexing process, the chat messages
that belong to the same conversation are considered to be a document d. Thus, we
constructed a posting list by using as document the target conversations.</p>
      <p>With the purpose of detecting those conversations using terms associated with a
sexual orientation, we use the cosine similarity metric in order to determine the matching
degree between each conversation and each query. The matching procedures is shown
in the Algorithm 1, with tft,d equal to the term frequency of t in document d. For the
implementation, we considered the normalized version of tf as fi,j = matfxi(,jfj) , where
max(fj ) is the maximum term frequency in the document. The number of queries was
equal to 919 which matches the original sexual terms considered, and the weight of
each query term is calculated as wt,q = (0.5 + (0.5 × fi,j )) × log10 dNfi , with N equal
to the number of conversations.</p>
      <p>Algorithm 1: CosineScore(q)</p>
      <p>Input: Posting List
Input: K : number of documents to return</p>
      <p>Input: length[N ]: length of each document of the collection
1 float Scores[N ] = 0;
2 Initialize length[N ];
3 foreach term t in q do
4 calculate wt,q and fetch postings list for t;
5 foreach pair(d,tft,d) in postings list do
6 Scores[d]+ = wft,d × wt,q;
7 Read the array Length[d];
8 foreach d do
9 Scores[d] = Scores[d]/Length[d];
10 return Top K components of Scores[]</p>
      <p>The top 10 documents for each query are returned as conversations associated with
a sexual predator. Since, 10 documents at most are obtained for each entry, we should
be returning 9190 conversations in total, but in our case we returned 9071 documents.</p>
    </sec>
    <sec id="sec-3">
      <title>Multinomial Naïve Bayes Approach</title>
      <p>
        We have used a probabilistic supervised learning method named multinomial Naïve
Bayes in order to determine sexual predators (as described in [1]). The probability of
a document (message) d being written by sexual predator a is computed as shown in
Eq.(
        <xref ref-type="bibr" rid="ref1">1</xref>
        ).
      </p>
      <p>P (a|d) ≈ P (a) Y</p>
      <p>P (tk|a)
where P (tk|a) is the conditional probability of the k-th term (tk) occurring in a message
written by sexual predator a. Actually, P (tk|a) measures the contribution of term tk so
that the message d belongs to class a. nd is the number of terms in message d. P (a)
is the prior probability of a message written by sexual predator a. Since we are really
interested in finding the best class (sexual predator) for the document, we may calculate
the maximum a posteriori (MAP) as shown in Eq.(2).</p>
      <p>amap = arg max P ∗(a|d) = arg max P ∗(a)
a∈A a∈A</p>
      <p>Y
1≤k≤nd</p>
      <p>P ∗(tk|a)</p>
      <p>P ∗(tk|a) is estimated by using Laplace smoothing, which simply adds one to each
count (See Eq. (3)).</p>
      <p>P ∗(tk|a) =</p>
      <p>Tatk + 1</p>
      <p>
        Pt′∈V (Tat′ + 1)
where Tatk is the number of occurrences of tk in training documents from class a,
including multiple occurrences of a term in a document and V is the corpus vocabulary.
(
        <xref ref-type="bibr" rid="ref1">1</xref>
        )
(2)
(3)
4
      </p>
    </sec>
    <sec id="sec-4">
      <title>Obtained results</title>
      <p>In Table 1, the obtained results for the two approaches are shown. As can be seen, the
number of conversations retrieved produced a result with high recall and low precision.</p>
      <p>In Table 2 the number of correct lines obtained are evaluated. Since the organizers of
the competition evaluated this part manually, we do not have results for the information
retrieval based approach. The number of lines retrieved is so high in comparison with
those lines that really show a sexual predator behavior.
5</p>
    </sec>
    <sec id="sec-5">
      <title>Conclusions</title>
      <p>We have attempted two basic approaches for the sexual predator identification task.
One approach based on information retrieval techniques, and the second one that uses
a supervised classifier based on Naïve Bayes. The first approach performed better than
the second one with low percentages of precision and high values of recall.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Manning</surname>
            ,
            <given-names>C.D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Raghavan</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schtze</surname>
          </string-name>
          , H.: Introduction to Information Retrieval. Cambridge University Press, New York, NY, USA (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>