<!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>INAOE's participation at PAN'13: Author Profiling task</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Department of Computer Science</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>A. Pastor López-Monroy, Manuel Montes-y-Gómez, Hugo Jair Escalante</institution>
          ,
          <addr-line>Luis Villaseñor-Pineda, and Esaú Villatoro-Tello</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Information Technologies Department, Universidad Autónoma Metropolitana-Cuajimalpa</institution>
          ,
          <country country="MX">México</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Instituto Nacional de Astrofísica</institution>
          ,
          <addr-line>Óptica y Electrónica</addr-line>
          ,
          <country country="MX">México</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2013</year>
      </pub-date>
      <abstract>
        <p>This paper describes the participation of the Laboratory of Language Technologies of INAOE at PAN 2013 evaluation lab. We adopted second order representations for facing the problem of Author Profiling (AP). This representation tackles two shortcomings of the typical Bag-of-Terms: i) the sparsity and high dimensionality of document representations, and ii) the assumption of total independence between terms in documents. In order to overcome these problems the proposed representation builds document vectors in a space of the different profiles, which represent the relationships of each document with the different profiles (say, age and gender). In order to evaluate our approach, we compare the proposed representation against a standard Bag-of-Terms representation using the PAN 2013 corpus for AP. We found that the second order attributes using a low computational cost, show evidence of being useful to determine genre and age profile.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>The Author Profiling (AP) task consists in knowing as much as possible about an
unknown author, just by analyzing a given text [2]. The interest in AP task is growing in
recent years, this is due, in part, to the huge amount of information in plain text
available on internet. In this context, several applications related to AP are emerging, some
of them have to do with business intelligence, computer forensics and security. One
way to address the AP task is to approach it as a single-label multiclass classification
problem, where profiles represent the classes to discriminate.</p>
      <p>The representation of documents is a key procedure for AP. Currently, one of the
most common approaches for document representation is the Bag of Terms (BOT). BOT
representation builds feature vectors of documents, taking each term in the vocabulary
as an attribute. However, BOT like representations have some drawbacks:
1. Terms are considered independent of other elements in the problem: We believe that
valuable information that may help to deal with the AP problem is being ignored.
In this context, we propose taking into account relationships between profiles and
terms.
2. High dimensionality and high sparsity of vectors: both affect the representation and
the performance of the classification algorithms, and could be impractical in some
situations. In this way, we focus in a representation based in second order attributes
rich in representativeness, which represents relations with each profile.</p>
      <p>In summary, to overcome the above issues we propose to use a low dimensional
representation with high level of representativeness. In this way, in our proposal we follow
some ideas from Concise Semantic Analysis (CSA) [3] to achieve relationships between
documents and profiles. Thus, our approach intends to exploit the use of second order
attributes for the AP task. For this, we use: i) the term frequency tf weighting scheme in
order to capture the use of the stylistic terms (e.g., stopwords, puntuation marks, etc.),
and ii) we provide an effective normalization to deal with the high imbalanced data.</p>
      <p>In summary, The rest of this paper is organized as follows: Section 2 introduces the
proposed representation, Section 3 explains how we performed the experiments and the
results we obtained, finally Section 4 shows our conclusions.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Second order attributes for Author Profiling</title>
      <p>From a general point of view, the proposed representation is built through two main
stages: i) To build term vectors in a space of profiles, and ii) To build document vectors
in a space of profiles. The rest of this section explains both steps in detail.
2.1</p>
      <p>Term Representation
Estimating the relationships between each term and profiles is the first step to get the
second order attributes. In this way, it is necessary to construct a vector representation
for each term. Terms could be any textual unit used as document feature, for example,
words, n-grams, punctuation marks, etc.</p>
      <p>The main idea behind this first step is to capture the relation that each term maintains
with different profiles. In other words, we compute a value that shows how a term tj
is used in each profile pi. Let ft1; : : : ; tmg denote the vocabulary in the collection, and
fp1; : : : ; png be the set of profiles to be analyzed. For each term tj in the vocabulary,
we build a term vector tj = htp1j ; : : : ; tpnj i, where tpij is a real value representing the
relationship of the term tj with the profile pi. For computing tpij we mainly take into
account those documents that belong to the profile pi. The relationship of a term with a
profile considers the relative term frequency just in the documents of this profile. Thus,
high frequencies will show more preference for the term in a given set of documents.
Equation 1 follows the above idea and computes a relative weight as:
wij =</p>
      <p>X
k:dk2Pi
log2
1 +</p>
      <p>
        tf kj
len(dk)
(
        <xref ref-type="bibr" rid="ref1">1</xref>
        )
where Pi is the set of documents that belong to profile pi, tfkj is the number of
occurrences of the term tj in the document dk, and len(dk) is the length of the document
dk. The function in equation 1 is to soften the most frequent terms of the corpus.
Finally, we apply a simple normalization (Equation 2.1) for computing tpij . Note that this
normalization takes into account the weights computed for other profiles, causing each
weight being relative to all profiles.
      </p>
      <p>
        It is worth noting that, until this step, the second order attributes are sensible to
highly unbalanced data (as the PAN13 corpus). That is, the relation of each term with
each profile attribute will be higher for larger classes just because those classes have
more documents and then more occurrences of certain terms. For that reason, we apply
a simple but effective normalization over each profile in order to consider the proportion
of the term in each profile. Equation 2.2 shows the latter idea. Note that this
normalization takes into account the weights computed for other terms, causing each weight
being relative to all terms.
After computing term vectors in a space of profiles, we build relationships between
documents and profiles; these are the second-order attributes. We compute these adding
term vectors of the terms contained in the documents. In this way, we will have
documents represented as dk = hdp1k; : : : ; dpnki, where n is the total number of existing
profiles, and dpik is a real value representing the relationship of the document dk with
the profile pi. Additionally, each term vector, before being added, is weighted by the
relative frequency of the term tj in the document dk. Equation (
        <xref ref-type="bibr" rid="ref3">3</xref>
        ) shows the above
ideas.
(
        <xref ref-type="bibr" rid="ref2">2</xref>
        )
(
        <xref ref-type="bibr" rid="ref3">3</xref>
        )
dk =
      </p>
      <p>X
tj Dk</p>
      <p>tfkj
len(dk)
tj
where Dk is the set of terms that belongs to document dk.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Experimental Results</title>
      <p>We have approached the AP problem as a single-labeled six class classification
problem. This means, that we have six age-genre profiling classes: 10s-female, 10s-male,
20s-female, 20s-male, 30s-female, 30s-male. Given this context, we use for each
experiment the following configuration: i) a stratified 10 cross fold validation using the
training PAN13 corpus, ii) the most 50,000 frequent terms, and iii) a LibLINEAR
classifier [1]. For terms we use words, contractions, words with hyphens, punctuation marks
and a set of common emoticons. From Table 1 it can be seen how the Second Order
Attributes (SOA) outperforms the BOT representation using the PAN 13 corpus, which is
an imbalanced dataset (a realistic scenario). We believe this is because the second order
attributes provides a different document perspective beyond the isolated word
frequencies. In Table 1 we also show the detailed results for predicting Age and Genre in the
test dataset, and a summary of the averaged results for all participants at PAN 2013.</p>
      <p>Detailed classification accuracy
Training data</p>
      <p>Test data</p>
      <p>Averaged results for all participants</p>
      <p>SOA BOT SOA AVG
Gender Age Total Total Gender Age Total Gender (st.dv.) Age (st.dv.) Total (st.dv.)
61.3 63.7 41.9 36.6 56.90 65.72 38.13 53.76 (3.33) 53.51 (12.50) 28.99 (7.42)
70.5 72.7 54.8 41.9 62.99 65.58 41.58 55.41 (4.99) 49.04 (14.15) 27.67 (9.35)</p>
      <p>Results in Table 1 demonstrate the performance of our proposal, which overcomes
the conventional BOT and holds the first position for both languages (averaged
accuracy), and second position for each one. We think this is because SOA are less sensitive
to the high dimensionality problem, the scarce data, and the imbalanced classes.
Moreover, it is worth knowing that our approach took only 0.22% of the time required by the
method in one position below for english corpus (based in accuracy), which means that
our proposal was one of the most efficient and effective approaches at PAN 2013.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusions</title>
      <p>In this paper we have explored a new document representation for AP task. To the
best of our knowledge, this is the first time that AP is addressed using attributes that
represent relationships with profiles. We found that, with very low computational cost
our proposal can build discriminative low dimensional dense vectors for AP. Using these
vectors, the classifier can keep good classification rates, even for imbalanced data. We
think that this is due to the relations among terms and profiles, which provides few
but high predictive attributes. We also presented experimental results that show better
performance of the proposed approach against the standard BOT. We further believe
that the proposed representation is a feasible and stable representation, quite practical
in situations where it is necessary to represent and classify fast and effectively.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Fan</surname>
            ,
            <given-names>R.E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chang</surname>
            ,
            <given-names>K.W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hsieh</surname>
            ,
            <given-names>C.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>X.R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lin</surname>
            ,
            <given-names>C.J.:</given-names>
          </string-name>
          <article-title>LIBLINEAR: A library for large linear classification</article-title>
          .
          <source>Journal of Machine Learning Research 9</source>
          ,
          <fpage>1871</fpage>
          -
          <lpage>1874</lpage>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Koppel</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Argamon</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shimoni</surname>
            ,
            <given-names>A.R.</given-names>
          </string-name>
          :
          <article-title>Automatically categorizing written texts by author gender</article-title>
          .
          <source>Literary and Linguistic Computing</source>
          <volume>17</volume>
          (
          <issue>4</issue>
          ),
          <fpage>401</fpage>
          -
          <lpage>412</lpage>
          (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Li</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Xiong</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          , Zhang,
          <string-name>
            <given-names>Y.</given-names>
            ,
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            ,
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <surname>K.</surname>
          </string-name>
          :
          <article-title>Fast text categorization using concise semantic analysis</article-title>
          .
          <source>Pattern Recognition Letters</source>
          <volume>32</volume>
          (
          <issue>3</issue>
          ),
          <fpage>441</fpage>
          -
          <lpage>448</lpage>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>