<!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>IR-based k-Nearest Neighbor Approach f or Identifying Abnormal Chat Users</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>In-Su Kang</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Chul-Kyu Kim</string-name>
          <email>1ckkim@ks.ac.kr</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Shin-Jae Kang</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Seung-Hoon Na</string-name>
        </contrib>
      </contrib-group>
      <pub-date>
        <year>2012</year>
      </pub-date>
      <abstract>
        <p>This paper addresses a task of automatically identifying abnormal chat users where training data is given as a collection of chat messages from both abnormal and normal users. We employ a k-NN classification based on an IR technique. A document is constructed in per-conversation for each user by concatenating his/her messages in a conversation. A query is constructed for a new user in the same way. A k-NN classification is then performed using top retrieved documents in response to the query.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        A chat user has his/her intended goals when taking part in chatting with others.
This paper addresses a task of identifying such goals of a chat user. Our assumption is
that strong clues for inferring their intended goals may commonly appear in chat
messages of similar users. Based on this assumption, we represent a chat user as a
document comprising his/her chat messages in a specific conversation and then
identify chat users with abnormal goals by finding chat user documents with similar
goals. We employ an information retrieval (IR) technique to discern such documents.
In a training step, we prepare an IR system by indexing a collection of chat logs with
chat-user goals marked either ‘abnormal’ or not. Given an unseen chat user, its chat
messages are collected to formulate a query to be submitted to the IR system, and its
chat goal is automatically classified using top-retrieved documents to which a k-NN
approach is applied.
similarly into documents {qi} each of which is then submitted as a query to the IR
system to retrieve a set R={d1, …, dk} of its highly related k training documents. For
each qi, the following k-nearest neighbor classifier
        <xref ref-type="bibr" rid="ref1">(Tan, 2005)</xref>
        is then used to
determine whether qi is uttered from a sexual predator (SP) or not:
c* = argmax å sim(qi , d )d (d , c)
cÎ{Y ,N} dÎR
      </p>
      <p>ì1 if d Î c
d (d , c) = í</p>
      <p>î0 if d Ï c
where Y and N indicate SP class and non-SP class respectively, and sim(×,×) is a
query-document similarity score from the IR system.
3</p>
    </sec>
    <sec id="sec-2">
      <title>Evaluation Results and Discussion</title>
      <p>To evaluate the performance of our IR-based k-NN classifier and to find the best
parameter value for the number k of top-retrieved documents, 5-fold cross-validation
was performed on the training set. Apache Lucene1 was employed for the IR system.
Without stop-words removal and stemming, all 1-gram and 2-gram terms were used
for index terms, where only rare terms with frequencies less than 3 were removed. For
retrieval, the Lucene’s default retrieval formula was used.
1 http://lucene.apache.org/core/
0.7960, and 0.3373, respectively for precision, recall, and F1. However, it was found
that in our official runs, roughly a half of the test set was missed when preparing run
submissions. So, we have fixed the error and have reiterated the same experiment.
Figure 2 presents our revised result.</p>
      <p>As Figures 1-2 show, the best k values for k-NN classifier are significantly
different between training and test data, and this is the main reason for the poor
performance in this year’s SPI task. Using a robust value for k was indeed important
in our approach; when we used k values which are optimal for both training and test
data, the proposed method showed more than 60% and 70% in F1, respectively for
training and test data.</p>
      <p>Overall, our current use of k-NN classifier was not very successful in obtaining a
good performance. We believe that this is because our current approach is not so
matured with a lot of further explorations remaining. In the future, we will further
examine the effect using document similarity on the same task by focusing on finding
a robust range for k and using more advanced IR similarity functions, and so on.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Songbo</given-names>
            <surname>Tan</surname>
          </string-name>
          . (
          <year>2005</year>
          ).
          <article-title>Neighbor-weighted K-nearest neighbor for unbalanced text corpus</article-title>
          .
          <source>Expert Systems with Applications</source>
          ,
          <volume>28</volume>
          (
          <issue>4</issue>
          ):
          <fpage>667</fpage>
          -
          <lpage>671</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>