<!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>UAMCLyR at Replab2013: Monitoring Task ?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Christian Sanchez-Sanchez</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Hector Jimenez-Salazar</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Wulfrano Arturo Luna-Ram rez</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Departamento de Tecnolog as de la Informacion Universidad Autonoma Metropolitana, Unidad Cuajimalpa</institution>
          ,
          <addr-line>Vasco de Quiroga 4871 Col. Santa Fe</addr-line>
          ,
          <country>Mexico D.F</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this article we deal with the Topic Detection and Priority Detection subtasks from RepLab 2013, trying clustering and classi cation methods as well as term selection techniques in order to know its performance in two sub collections of tweets: single and extended (single tweet plus derived tweets). Our tests show good performance in spite of we used very few resources.</p>
      </abstract>
      <kwd-group>
        <kwd>Tweet Clustering</kwd>
        <kwd>Tweet Classi cation</kwd>
        <kwd>Term Selection Techniques</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Twitter has become a very popular social interaction place where the users
give their opinions about the companies and their products via tweets. Because
of that Twitter has become a signi cant repository of opinions on companies,
brands, and persons, such entities have interest to protect their reputation and
try to deal with non founded gossips that can a ect their image and incomes.
RepLab 2013 [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] faces some research challenges on Twitter, one of these is the
Monitoring task which consists on:
{ clustering tweets based on their attributes
{ ordering tweets by priority for each entity
      </p>
      <p>
        Performing such a monitoring of tweets is a signi cantly challenging task
given that the tweet messages are very short and noisy. Some authors try to face
these problems through the idea of concept term expansion in tweets performing
one or more clustering phases of and priority level, as well as unsupervised
clustering techniques. Additionally, some authors use supervision for priority
level assessment [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. The main motivation of our experiments was:
{ To evaluate how much previous topics and terminology (supervised
approach) can help to identify new topics.
{ To estimate how much derived conversations from one tweet can ease to
detect topics.
{ To determine which kind of terms can improve Topic Detection.
{ To evaluate how much features extracted from tweets' metadata are useful
to determine priority of tweets.
      </p>
      <p>In this paper we explored clustering and classi cation methods as well as
term selection techniques in order to know its performance over two sub
collections of tweets: single and extended (single tweet plus derived tweets). Our tests
show good performance in spite of we used very few resources. In the following
section we describe the data and its preprocessing. Section 3 outlines the
methods applied to data collection for Topic Detection subtask. At Section 4 we detail
attributes and our approach followed for tweet Priority Detection subtask. The
results are presented at Section 5, and nally, our conclusions are depicted in
Section 6.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Data description and preprocessing</title>
      <p>The corpus of tweets that was used in the experiments was formed considering
two kinds of texts: main text of the tweet (Main) as well as the derived
conversation from the main text (All) Thus, from everyone, training and testing
collections, we build up two collections, namely:
{ Main-Training,
{ All-Training,
{ Main-Testing, and
{ All-Testing.</p>
      <p>These collections allow us to organize the experiments on pairs: given a particular
method for some subtask, it was applied on each collection as two independent
runnings.</p>
      <p>In order to perform Topic Detection subtask it is important to mention that
in all experiments it was only taken into account the information contained in
the text of the tweets. It is worth mentioning that we classify and cluster tweets
for each entity in order to ease the subtask. Additionally, for each entity we
work on two subsets: English and Spanish tweets, ltered through the Language
attribute.</p>
      <p>
        All experiments for Topic Detection subtask carried out the same
preprocessing: removing stop words, morphological and in ectional endings (Porter
Stemming)[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], as well as internal links and user names from tweets were
removed. Furthermore, text representation of tweets was supported by some term
selection techniques and with the purpose of clustering and classifying the
information, when WEKA[
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] was used, we model it through Bag of Words (BOW)
representation with boolean weighting scheme.
      </p>
      <p>Also, Priority Detection subtask was applied to each entity, considering some
attributes extracted from the Training and Testing collection; it was not used
Main/All collection as in Topic Detection subtask. Furthermore, at Priority
Detection subtask the tweet text and some of the related attributes were extracted
from the tweet html le and they were stored as plain text le. When there were
responses to the tweet text, they were attached to the text plain text le. At
this process, we observed, in the gold standard, some tweets were not related to
any entity and then, they were discarded.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Topic detection subtask</title>
      <p>At the rst four experiments of Topic Detection subtask, we pretended to know
how useful is training set aiming to identify topics in twitter. Experiments seven
and eight are completely unsupervised and try to compare its performance to
the previous rst to sixth tests.
3.1</p>
      <sec id="sec-3-1">
        <title>Supervised detection</title>
        <p>
          We applied two classi cation algorithms, Naive Bayes and Sequential Minimal
Optimization Support Vector Machines (SMO SVM) [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ][
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. After testing some
combination and con guration of the aforementioned algorithms, using
MainTraining and All-Training collections, the best con guration was SMO SVM
( with a polykernel and standardized data), then this election was applied to
Testing collection, for classifying its elements.
3.2
        </p>
      </sec>
      <sec id="sec-3-2">
        <title>Unsupervised detection</title>
        <p>We performed three pairs of experiments on an unsupervised manner, two of
them select terms accordingly with the percentage of terms which obtains the
best performance on the training dataset. A nal pair of experiments applies a
method to automatically select the set of terms used at the representation of
tweets.
3.3</p>
      </sec>
      <sec id="sec-3-3">
        <title>DF term selection</title>
        <p>
          In order to improve unsupervised Topic Detection, two term selection methods
were tested: the well known document frequency index, DF, number of documents
which contain the term; and the transition point, TP, frequency which divides
into high and low the term frequencies [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ]. After evaluating some combination
and con guration of the aforementioned methods, over both collections (Main
and All), the best results were gotten using DF with 43% of the terms of highest
DF value (Spanish subset used only 34%).
        </p>
      </sec>
      <sec id="sec-3-4">
        <title>Uni er term selection</title>
        <p>
          This test was supported on the diversi cation and uni cation concepts proposed
by Zipf [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ], which have been used at clustering of web services [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. Two measures
were used aiming to select terms: uni er degree of a term, U , and the saturation
of a set of terms, S^.
        </p>
        <p>Given a collection of documents C = fd1; : : : ; dng, it is de ned as
U (ti) = 1 X sim(ti; tj );
r</p>
        <p>j6=i
S^(C) =</p>
        <p>2
n(n
1)</p>
        <p>
          X sim(di; dj );
i6=j
where t is the representation of the term t given by the classes in which t occurs,
r = #ftj jsim(ti; tj ) 6= 0)g, and sim is a similarity measure. In our experiments
we used Jaccard coe cient as similarity measure, and the classes, in order to
represent terms (t), were provided by the clustering of the tweets on the same
working collection (without term selection). Here we used the K-Star
clustering algorithm [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ]. In these experiments we discard those tweets with no words
contained in the term selection.
        </p>
        <p>Summarizing, the method follows two steps:
1. Select terms basing on U and S^:
(a) Calculate U (t) for all terms of C and sort them in increasing order,
namely TU = [U (t1); : : : ; U (tk)].
(b) Divide TU into m parts, in order to provide m sets of terms: Vi; (1 i
m) it represents the rst i parts of terms (our experiments used m = 10).
(c) Compute the array [S^(Ci)] whose elements correspond to each selection
set Vi, and determine the index of the maximum descending value of
S^(Ci): j.
2. Apply of the K-Star clustering algorithm to Cj .
3.4
and
4
4.1</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Priority detection subtask</title>
      <sec id="sec-4-1">
        <title>Attributes used for priority subtask.</title>
        <p>From the plain text les, a set of seven attributes were calculated, those are
described as follows:
1. Referenced users: calculated from the number of user tags or email found
within the tweet text, i.e. the number of tokens with the form @string are
considered as referenced users.
2. Hashtags: the number of hashtags symbols are counted (#).
3. Web addresses: the number of http tokens are considered.
4. Tweet length in characters.
5. Frequency of retweets. This is a measure contained in the tweet information
and it is considered as an attribute.
6. Frequency of favorites. This is a measure of popularity of the tweet, it
is contained in the tweet information and also is considered as an attribute
too.
7. Conversation Generated. This is a boolean attribute calculated from the
presence or absence of responses to each tweet.</p>
        <p>So, every tweet text le belonging to each entity was processed in order
to calculate those seven attributes for the sake to classify them as MILDLY
IMPORTANT, ALERT and UNIMPORTANT according to the training set.
4.2</p>
      </sec>
      <sec id="sec-4-2">
        <title>Supervised detection</title>
        <p>
          It was used the WEKA application to perform three runs in order to classify
the test tweets as it was required for the Priority Detection subtask. So, three
classi ers where applied to the les of attributes calculated for each tweet
belonging to the entities: the tree inducer algorithm J48, the Naive Bayes and the
SMO function (Support Vector Poly Kernel) [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ] [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ] [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ].
        </p>
        <p>At it was stated, the training was executed over the training collection In
some cases there were entities with missing tweets belonging to the ALERT class.
Those les were lled with 30 tweets from all the entities for the sake to preserve
the three classes in all the training set and, thus, to obtaining appropriated
classi er's models. So, the three classi ers were applied to the test set as were
mentioned.
5
5.1</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Experimental results</title>
      <sec id="sec-5-1">
        <title>Topic detection experiments</title>
        <p>Four pair of experiments were carried out. Each pair deals with a pair of
collections: Main-Testing (Main-Training), and All-Testing (All-Training), as
described at Sec. 2. By instance, the Pair One consists of the runnings
UAMCLyR topic detection 1 and UAMCLyR topic detection 2 which use the
collections Main-Testing and All-Testing, respectively.</p>
        <p>Table 1 depicts how each experiment pair was performed: method, approach
(classi cation/clustering), and the term selection criterion.</p>
        <p>
          Finally, at Table 2 we show for each run the used collection, and in descending
order the F values based on Reliability and Sensitivity as well as the Baseline,
de ned in [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ], for the Topic Detection subtask.
        </p>
        <p>As we can see, all our experiments are above of the Baseline. We observed
a better performance with clustering than classi cation. Term selection based
on U and S^ provided the best result, however, this method was not able to
determine best terms when the collection was extended from Main to All.</p>
        <p>
          The results of the three experiments of Priority Detection subtask can be
seen in Table 4 following a descending order according to F value based on
Reliability and Sensitivity and the Baseline, as de ned in [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ], for this subtask
including the Accuracy measure for all the runs performed.
6
        </p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Conclusions and future work</title>
      <p>In all cases of Topic Detection, clustering approach outperformed to classi cation
approach. Additionally, we realized that when the derived conversation from
tweets was included, the detection got worse. Particularly, it can be observed that
in all supervised Topic Detection experiments, the term selection method was
unable to correctly discriminate the relevant terms when extending the corpus;
i.e. from Main to All collection. The term selection based on uni cation provided
the best results, perhaps because it was calculated directly from test collection.
However, uni cation term selection it is not sensitive to the increasing of the
vocabulary. We plan to carry out additional tests mainly to the term selection
techniques using at clustering of tweets.</p>
      <p>It can also be claimed that it is possible to detect priority in tweets based
on models of classi cation that rely only in some attributes calculated from the
metadata features of tweets. From this models it can be obtained acceptable
results when classifying new instances. As further work, the method of Priority
Detection could be tested in two ways in order to be improved:
{ to separate the tweets by language
{ and the extraction of models based on other attributes which take into
account linguistic features of texts.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>T.</given-names>
            <surname>Mart n</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Spina</surname>
          </string-name>
          , E. Amigo, &amp; J.
          <string-name>
            <surname>Gonzalo</surname>
          </string-name>
          (
          <year>2012</year>
          )
          <article-title>UNED at RepLab 2012: Monitoring Task</article-title>
          .
          <source>CLEF 2012 Working Notes.</source>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Porter</surname>
            ,
            <given-names>M. F.</given-names>
          </string-name>
          (
          <year>1997</year>
          )
          <article-title>An algorithm for su x stripping</article-title>
          . Morgan Kaufmann Publishers Inc. pp.
          <fpage>313</fpage>
          -
          <lpage>316</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>M.</given-names>
            <surname>Hall</surname>
          </string-name>
          , E. Frank,
          <string-name>
            <given-names>G.</given-names>
            <surname>Holmes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Pfahringer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. Reutemann &amp; I. H.</given-names>
            <surname>Witten</surname>
          </string-name>
          (
          <year>2009</year>
          )
          <article-title>The WEKA Data Mining Software: An Update</article-title>
          ,
          <source>SIGKDD Explorations</source>
          , Volume
          <volume>11</volume>
          , Issue 1.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Steve R. Gunn</surname>
          </string-name>
          (
          <year>1998</year>
          )
          <article-title>Support Vector Machines for Classi cation</article-title>
          and Regression.University of Southamptom,
          <source>Technical Report.</source>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Platt</surname>
            ,
            <given-names>John C.</given-names>
          </string-name>
          (
          <year>1998</year>
          )
          <article-title>Sequential Minimal Optimization: A Fast Algorithm for Training Support Vector Machines</article-title>
          ,
          <source>Technical Report MSR-TR-98-14.</source>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>H.</given-names>
            <surname>Jimenez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Pinto</surname>
          </string-name>
          &amp; P.
          <string-name>
            <surname>Rosso</surname>
          </string-name>
          (
          <year>2005</year>
          )
          <article-title>Uso del punto de transicion en la seleccion de terminos ndice para agrupamiento de textos cortos</article-title>
          ,
          <source>Revista Procesamiento del Lenguaje Natural No. 35</source>
          , pp
          <fpage>416</fpage>
          -
          <lpage>421</lpage>
          , Espan~a.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>G. K.</given-names>
            <surname>Zipf</surname>
          </string-name>
          (
          <year>1949</year>
          )
          <article-title>Human Beahaviour and the Principle of Least-E ort</article-title>
          .
          <source>AddisonWesley</source>
          , Cambridge, MA.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>H.</given-names>
            <surname>Jimenez</surname>
          </string-name>
          ,
          <string-name>
            <surname>Ch. Sanchez</surname>
          </string-name>
          , C. Rodr guez &amp; W.
          <string-name>
            <surname>Luna</surname>
          </string-name>
          (
          <year>2011</year>
          )
          <article-title>Modelacion lexico semantica de descripciones de servicios web</article-title>
          . 8o.
          <article-title>Taller de Tecnolog as del Lenguaje Humano, Complejo Cultural Universitario</article-title>
          . BUAP, Puebla.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>K.</given-names>
            <surname>Shin</surname>
          </string-name>
          &amp; S.Y. Han (
          <year>2003</year>
          )
          <article-title>Fast clustering algorithm for information organization</article-title>
          ,
          <source>Lecture Notes in Computer Science</source>
          , Vol.
          <volume>2588</volume>
          , pp
          <fpage>619</fpage>
          -
          <lpage>622</lpage>
          , Springer.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>J. Ross Quinlan</surname>
          </string-name>
          (
          <year>1993</year>
          )
          <article-title>C4.5: programs for machine learning</article-title>
          . Morgan Kauf-mann Publishers Inc., San Francisco, CA, USA.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11. Mitchell,
          <string-name>
            <surname>T.</surname>
          </string-name>
          (
          <year>2006</year>
          )
          <article-title>The discipline of machine learning (</article-title>
          <source>Technical Report CMUML-06-108)</source>
          . Carnegie Mellon University.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12. E. Amigo, J. Carrillo de Albornoz, I. Chugur,
          <string-name>
            <given-names>A.</given-names>
            <surname>Corujo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Gonzalo</surname>
          </string-name>
          , T. Mart n, E. Meij,
          <string-name>
            <surname>de M. Rijke</surname>
          </string-name>
          &amp; D.
          <string-name>
            <surname>Spina</surname>
          </string-name>
          (
          <year>2013</year>
          )
          <article-title>Overview of RepLab 2013: Evaluating Online Reputation Monitoring Systems</article-title>
          .
          <source>In Proceedings of the Fourth International Conference of the CLEF initiative, CLEF 2013</source>
          . Springer LNCS, Valencia, Spain
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>