<!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>Using Intra-Profile Information for Author Profiling</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>A. Pastor López-Monroy</string-name>
          <email>pastor@ccc.inaoep.mx</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Manuel Montes-y-Gómez</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Hugo Jair Escalante</string-name>
          <email>hugojair@ccc.inaoep.mx</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Luis Villaseñor-Pineda</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Laboratory of Language Technologies, Department of Computer Science, Instituto Nacional de Astrofísica</institution>
          ,
          <addr-line>Óptica y Electrónica, Luis Enrique Erro No. 1, C.P. 72840, Pue. Puebla</addr-line>
          ,
          <country country="MX">México</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2014</year>
      </pub-date>
      <fpage>1116</fpage>
      <lpage>1120</lpage>
      <abstract>
        <p>In this paper we describe the participation of the Laboratory of Language Technologies of INAOE at PAN 2014. We address the Author Profiling (AP) task finding and exploiting relationships among terms, documents, profiles and subprofiles. Our approach uses the idea of second order attributes (a lowdimensional and dense document representation) [4], but goes beyond incorporating information among each target profile. The proposed representation deepen the analysis incorporating information among texts in the same profile, this is, we focus in subprofiles. For this, we automatically find subprofiles and build document vectors that represent more detailed relationships of documents and subprofiles. We compare the proposed representation with the standard Bag-of-Terms and the best method in PAN13 using the PAN 2014 corpora for AP task. Results show evidence of the usefulness of intra-profile information to determine gender and age profiles. According to the PAN 2014 official results, the proposed method was one of the best three approaches for most social media domains. Particularly, it achieved the best performance in predicting age and gender profiles for blogs and tweets in English.</p>
      </abstract>
      <kwd-group>
        <kwd>Age Identification</kwd>
        <kwd>Gender Identification</kwd>
        <kwd>Subprofiles Generation</kwd>
        <kwd>Subclass Information</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        For several years the scientific community has been discussing the following basic
question: How much information can be known from an author’s document?, Commonly
known as the Author Profiling (AP) [
        <xref ref-type="bibr" rid="ref1 ref3 ref6">3,6,1</xref>
        ], this task is of great interest because of its
wide applicability to problems in different areas, such as: business intelligence, criminal
law, computer forensics, etc.
      </p>
      <p>
        In this paper, we use well-known textual features for AP [
        <xref ref-type="bibr" rid="ref3 ref6">3,6</xref>
        ], but we focus in the
representation of documents, exposing its key role in the problem. For this, we mainly
consider the Second Order Attributes (SOA) proposed in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], SOA is an approach that
builds document vectors in a space of profiles. Under this representation, each value
in the vector represents the relationship of each document with each target profile.
Notwithstanding the usefulness of the approach in [
        <xref ref-type="bibr" rid="ref4 ref5">4,5</xref>
        ], the method has an evident
shortcoming: this approach basically assumes that the relationship between a
vocabulary term (i.e., a word) and a group of authors (a target profile) can be represented using
one single value. For example, in López-Monroy et. al. (2013), the representation of
the word linux is highly related to the male profile, therefore its occurrence in a given
document, causes a dramatically increase in the probability of belonging to the male
profile. This behaviour could make difficult to identify the correct profile for some
authors (e.g., classifying documents belonging to females writing about technology). We
believe that such assumption is in some extend naive and can be alleviated through the
automatic generation of subprofiles.
      </p>
      <p>In this work, we generate new highly informative attributes that represents
relationships among terms, documents, profiles and also subprofiles. In order to automatically
generate the aforementioned subprofiles we propose dividing each target profile into
several groups using a clustering algorithm. Then we build the final document
representation on the top of the generated subprofiles, using them as the new target profiles. This
approach improves even more the representation of documents in the AP task, and also
mitigates common problems of other standard representations (e.g. the Bag-of-Terms,
BOT), for example: i) high dimensionality, and ii) the sparseness of the representation.
Results using the latter ideas also seem promising and competitive compared with other
approaches and systems in PAN 2014 forum.</p>
      <p>The rest of this paper is organized as follows: Section 2 introduces the proposed
approach, Section 3 explains the evaluation and the obtained results, finally Section 4
outlines the conclusions.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Computing Intra-Profile Relationships</title>
      <p>The proposed method has three main stages to represent documents: i) representing
terms in a space of profiles, ii) representing documents in a space of profiles, and iii)
generating subprofiles and re-compute steps 1 and 2 using subprofiles as the new target
profiles. The rest of this section explains the above steps in detail.
2.1</p>
      <sec id="sec-2-1">
        <title>Representing terms in a space of profiles</title>
        <p>The intuitive idea is to capture the relationship of each term (i.e., a word, an n-gram,
a punctuation mark, etc.) with each one of the target profiles. Let ft1; : : : ; tmg be the
vocabulary in the corpus, and fp1; : : : ; png be the set of target profiles. We build term
vectors ti = htpi1; : : : ; tpini, where tpij represents the relationship of the term ti with
the profile pj . Equation 1 reflects the idea for computing tpij .</p>
        <p>wij =</p>
        <p>X
k:dk2Pj
log2
1 +</p>
        <p>tf ki
len(dk)
(1)
where Pj are training documents with profile pj , tfik is the term frequency of the
term ti in the document dk, and len(dk) is the number of terms in the document dk. To
avoid high cumulative term frequencies in high unbalanced data, a normalization that
considers the proportion of each term in each profile is performed (Equations 2.1 and
2.2).</p>
        <p>wij
(2:1) tpij = T ERMS</p>
        <p>X</p>
        <p>wij
i=1</p>
        <p>wij
(2:2) tpij = P ROF ILES</p>
        <p>X
j=1
wij
2.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>Representing Documents in a space of profiles</title>
        <p>The intuitive idea is to capture the relationship of each document (i.e., a blog, a tweet,
a review etc.) with each one of the target profiles. For this we use the previously
computed term vectors to build document vectors in a space of profiles. Thus, to build the
representation of each document we add its term vectors weighted by their frequency
tfkj . Thus, we build document vectors dk = hdp1k; : : : ; dpnki, where n is number
profiles, and dpik reflects the relationship of the document dk and the profile pi. Equation
(3) expose the latter ideas.
(2)
(3)
dk =</p>
        <p>X
ti Dk</p>
        <p>tfik
len(dk)
ti
where Dk is the set of terms that belongs to document dk
2.3</p>
      </sec>
      <sec id="sec-2-3">
        <title>Generating subprofiles</title>
        <p>
          The latter ideas generate vectors where each value represents the relationship between
a document and each target profile. The intuitive idea is that the representation assumes
certain homogeneity in documents belonging to the same target profile, then a single
relationship value per profile is computed [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ]. In spite of the usefulness of this assumption
[
          <xref ref-type="bibr" rid="ref4 ref5">4,5</xref>
          ], it is in some extend naive, because even when a group of authors could share the
same general profile (e.g., females), there could be more specific subgroups of females
with finer differences (say, young-gamer females and housewife females). Thus, each
target profile is in some extend heterogeneous among its authors.
        </p>
        <p>Generating subprofiles involves discovering natural subgroups among authors
belonging to the same profile. In this regard, we decide to use the latter generated
document representation to build document vectors in a space of profiles, then cluster
documents in the same profile. The intuitive idea of this approach, is to use an appropriated
base representation for AP to find documents similar to each other inside that space.
Once a set of clusters (subprofiles) for each target profile are generated, we rebuilt the
SOA using all found clusters as the new target profiles. In this way, as indicated in
formula (3), we end up with a set of attributes that represents relationships between
documents and detailed subprofiles. In order to build the aforementioned subprofiles,
we have used the Expectation Maximization Clustering (EMC) algorithm.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Experimental Results</title>
      <p>
        We approached the AP problem in a separated way: i) age, and ii) gender prediction.
Thus, we have five age profile classes; 18-24, 25-34, 35-49, 50-64, and 65-more. Also
we have two gender profiling classes; male, female. Given this context, we build
subprofile attributes for age, and different subprofile attributes for gender, then we train two
classifiers, one for each representation. In order to evaluate and compare this proposal,
we have used the following experimental settings for the training dataset: i) the most
3,000 frequent terms as features, and ii) the standard LibLINEAR classifier without any
parameter optimization [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. As terms we use words, contractions, words with hyphens,
punctuation marks and a set of common slang vocabulary. From Table 1 it can be seen
how the proposed approach (n SOA per profile) outperforms BOT and the best PAN 13
approach [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] (1-SOA per profile), using the PAN 14 corpus over different social media
domains. We believe this is because finding subprofiles in the target profiles (10-fold
cross validation over the training dataset was performed), provides a more detailed
perspective for documents. In this regard, n-SOA is a novel representation that capture
more important details about profiles and subprofiles, in contrast to 1-SOA proposed in
[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], which captures more general information of profiles.
      </p>
      <p>According to the PAN14 evaluation, the proposed attributes, get the best test-set
accuracy performance for age and gender prediction in blogs and tweets domains for
English language. Moreover, the reported results are in the top 3 positions for other
social media domains. Thus, the approach presented in this paper is an effective
alternative to address the AP task in different social media domains, where documents
presents challenging difficulties hindered the accurate work of most natural language
processing tools.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusions</title>
      <p>In this paper we presented a novel approach that considers the existing information
among documents belonging to the same class. This is, even for authors belonging to
the same target profiles (e.g., males), the approach look for more specific subgroups of
authors (e.g., male employees and male gamers) in order to consider intra-profile
information. To the best of our knowledge, this is the first time that AP is addressed using
this kind of intra-class-relationships inside the target profiles. Such relationships help to
achieve a better discrimination among several profiles. Using these automatically
generated attributes, the classifier can keep good classification rates, even for imbalanced
data. This is due to the relations among terms, documents and subprofiles, which
provides few but more detailed predictive attributes. We have shown better experimental
results than the standard BOT, the best method of PAN13, and most of the approaches
participating at PAN14.</p>
      <p>Acknowledgements: This work was partially funded by project CONACyT-Mexico
134186 and the program ECOS under the project M11-H04. López-Monroy also thanks
for doctoral scholarship CONACyT-México 243957.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Argamon</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Koppel</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pennebaker</surname>
            ,
            <given-names>J.W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schler</surname>
          </string-name>
          , J.:
          <article-title>Automatically profiling the author of an anonymous text</article-title>
          .
          <source>Communications of the ACM</source>
          <volume>52</volume>
          (
          <issue>2</issue>
          ),
          <fpage>119</fpage>
          -
          <lpage>123</lpage>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <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="ref3">
        <mixed-citation>
          3.
          <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="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Lopez-Monroy</surname>
            ,
            <given-names>A.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Montes-Y-Gomez</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Escalante</surname>
            ,
            <given-names>H.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Villasenor-Pineda</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Villatoro-Tello</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          :
          <article-title>Inaoe's participation at pan'13: Author profiling task</article-title>
          .
          <source>In: Notebook Papers of CLEF 2013 LABs and Workshops</source>
          , Valencia, Spain, September (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Rangel</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosso</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Koppel</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stamatatos</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Inches</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          :
          <article-title>Overview of the author profiling task at pan 2013</article-title>
          . In: Forner,
          <string-name>
            <given-names>P.</given-names>
            ,
            <surname>Navigli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            ,
            <surname>Tufis</surname>
          </string-name>
          ,
          <string-name>
            <surname>D</surname>
          </string-name>
          . (eds.)
          <article-title>Working Notes Papers of the CLEF 2013 Evaluation Labs</article-title>
          ,
          <year>September 2013</year>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Schler</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <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>Pennebaker</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>Effects of age and gender on blogging</article-title>
          .
          <source>In: Proceedings of 2006 AAAI Spring Symposium on Computational Approaches for Analyzing Weblogs</source>
          . pp.
          <fpage>199</fpage>
          -
          <lpage>205</lpage>
          (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>