<!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>Author Profiling for English and Spanish Text</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Upendra Sapkota</string-name>
          <email>upendra@cis.uab.edu</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Thamar Solorio</string-name>
          <email>solorio@cis.uab.edu</email>
          <xref ref-type="aff" rid="aff1">1</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>Gabriela Ramírez-de-la-Rosa</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Instituto Nacional de Astrofísica</institution>
          ,
          <addr-line>Óptica y Electrónica, Puebla</addr-line>
          ,
          <country country="MX">Mexico</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of Alabama at Birmingham</institution>
          ,
          <addr-line>Birmingham, AL 35294</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2013</year>
      </pub-date>
      <abstract>
        <p>This paper describes an approach for the author profiling task of the PAN 2013 challenge. This work is based on the idea of linguistic modality3 that has been successfully used in other classification tasks such as authorship attribution. We consider three different modalities: syntactic, stylistic, and semantic, each representing a different aspect of text. For each modality, we extract informative meta features by computing the similarity relations between the feature vectors in the test files and the centroids of modality specific clusters. Since we were provided texts in both Spanish and English, we build a language independent framework for author profiling. For both English and Spanish documents, our system performed well for the age identification task. For gender prediction, although our system could not perform as expected for English, it yielded good results on Spanish.</p>
      </abstract>
      <kwd-group>
        <kwd>author profiling</kwd>
        <kwd>linguistic modality</kwd>
        <kwd>similarity relations</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        With the proliferation of social media (blogs, chats), it has been possible to access
large online texts. Such large texts can be utilized to understand how the writing style
among users of different age groups, as well as between male and female vary [
        <xref ref-type="bibr" rid="ref1 ref2">1,2</xref>
        ].
Unlike the authorship attribution problem where the task is to identify the true author
of a given piece of text, the author profiling task tries to learn as much information as
possible (demographics, personality) about the unknown writer of the given text. Author
profiling has a number of application areas such as forensic, security, and commercial
domains.
      </p>
      <p>
        Following the concept of linguistic modalities explored by previous research and
proven to be successful for authorship attribution [
        <xref ref-type="bibr" rid="ref5 ref6">5,6</xref>
        ], we build a framework to solve
the author profiling problem. The ultimate target of processing the features separately
by linguistic modalities is to compute informative meta characteristics by performing
unsupervised clustering of each set of modality vectors in the training set. Solorio et
al. (2011) mention that the motivation behind using meta characteristics is to leverage
      </p>
    </sec>
    <sec id="sec-2">
      <title>3 Each linguistic modality refers to a type of feature.</title>
      <p>the similarity patterns of each class along the different linguistic modalities in the form
of meaningful higher level features. In this paper, we explore the idea of linguistic
modalities for author profiling task. We also explore various features to understand
their contribution in the author profiling task.</p>
      <p>To automatically identify the age and gender of the unknown author of a given text
either in English or Spanish, we consider only the language independent features on
different modalities. For both languages, we use the same features that help us understand
how the performance of the author profiling system changes with language.
2</p>
      <sec id="sec-2-1">
        <title>Methodology</title>
        <p>
          Each document is represented separately by modality, i.e., a document will have one
feature vector per modality. We denote this set of vectors as First Level Features (FLF)
following the naming convention from [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ]. Once FLF for all the training documents are
extracted, the first step towards meta feature extraction is modality-wise clustering of
the feature vectors of training documents. This results in k clusters for each modality.
Modality Specific Meta Features (MSMF) are the cosine similarities between a test
feature vector and centroid of each cluster (average of feature vectors in the cluster). If we
consider a total of m modalities, and if each modality generates k clusters, we have a
total of m k meta features.
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>The outline of the algorithm is given below.</title>
      <p>
        1. For each modality
1.1 Cluster all the training vectors in an unsupervised fashion to get k clusters.
1.2 Compute the cluster centroid by averaging the feature vectors in that cluster.
1.3 Generate meta feature by computing cosine similarity [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] between cluster centroid
and each (both test and train) document’s feature vector.
      </p>
      <p>For the author profiling problem, we consider three different modalities –stylistic,
semantic, and perplexity values from character n-gram language models. In the end, we
augment meta features with FLF to train a machine learning classifier.
3</p>
      <sec id="sec-3-1">
        <title>Experimental Results and Evaluation</title>
        <p>
          For all our experiments, the semantic modality contains the top 5000 words, while the
perplexity modality contains a perplexity value for each class computed from character
4-gram language models. In the stylistic modality, we have 22 features. In this modality,
12 features are taken from [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] and we added 10 new features, most of which are related
to HTML format as well as errors regarding the use of the indefinite articles. Based
on preliminary results, we added 1) HTML features such as count of ‘www’, count of
‘&lt;img’, count of ‘&lt;a href’, and count of ‘&lt;br’; 2) emoticon based features such as count
of happy emoticons as well as count of all emoticons; 3) count of mistakes in the use
of ‘a’ and ‘an’. To compute these counts, we use several regular expressions. Besides
the addition of these features, we also investigated the use of other types of features as
new modalities. We experimented to see if the expression of certain type of emotions
in the text could help in the profiling task. For this, we used a number of
emotionbased features as a new modality but preliminary results showed no improvement in the
performance, and hence we discarded these features. Similarly, we experimented with
different features extracted from POS tagged data, but to our surprise, we observed
degradation in the performance. In the semantic modality, we experimented the use of
tf–idf weighting, but then also there was no improvement in the performance. We finally
decided to use simple normalized term frequency to create the feature vectors. We
performed all these experiments using only 15,000 documents from the total training data
and this might have caused us to make decisions that ended up hurting performance on
the test set.
        </p>
        <p>Documents in two languages: English and Spanish were considered for the
profiling task. There are two profiling problems: determining the author’s gender (Male and
Female) and author’s age (10s: 13-17, 20s: 23-27 and 30s: 33-47), which we solved as
a single six class problem.</p>
        <p>
          In the final submission, only in the stylistic and perplexity modalities, we included
both the FLF and meta features while the semantic modality includes only the meta
features. We obtained a largely reduced feature set containing only 208 features in
total. The independent features from different modalities at the end are merged together
to create a single feature vector per document, which is the final document
representation. Accuracy was the only performance measure for evaluating the software. We used
support vector machines (SVMs) implemented in Weka [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] with default parameters as
the underlying classifier. To train the character 4-gram language models, we applied
the SRILM toolkit [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]. The clustering was done using CLUTO [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ]’s vculster
clustering program with parameter clmethod = rbr that selects a k-ways clustering solution,
which at the end is globally optimized .
        </p>
        <p>For both English and Spanish, our author profiling framework performed well for
age prediction, yielding accuracy of 55%, that is 1:7 times better than the
baseline. We did not obtain similar performance on the gender identification, although for
Spanish, our system is slightly better than the baseline. When we consider
identification of age and gender as a single compound task, accuracy of our system for English
is 24.71%, 1:5 times better than the baseline, and for Spanish is 29.34%, that is
1:8 times better than the baseline. For this compound task (age + gender), the best
performance of the PAN 2013 challenge was also not that high, 38.94% for English and
42.08% for Spanish. This may be due to the complexity of the task. In Table 1, although
the average performance of our system for age identification is 55.33% and 49.46% for
gender identification, the overall average accuracy is much lower (27.03%). However,
when we average the accuracy of English and Spanish, our system is still 1:63 times
more accurate than the baseline.</p>
        <p>In this project, we explored different features for author profiling and tried to
understand whether a framework used for other classification task, such as authorship
attribution could be adapted to author profiling. After various experiments, we believe
that we can improve results on author profiling by including some task-specific features.
4</p>
      </sec>
      <sec id="sec-3-2">
        <title>Conclusions</title>
        <p>In this paper, we showed how a modality specific approach used successfully for AA
would perform on the profiling task. We solved two profiling problems: gender and age
as a single six class problem. Our method uses only 208 features and is competitive,
yielding acceptable accuracies on both profiling problems on the Spanish dataset.
However, for English, our system gave poor performance, specially for gender identification.
But still, we were able to have a fully automatic language-independent author profiling
system that on average performs 1:63 times better than a simple baseline. A good
future direction would be to evaluate our approach on different datasets as well as to
explore the task-specific features to improve the performance.</p>
      </sec>
      <sec id="sec-3-3">
        <title>Acknowledgements</title>
        <p>This research was partially supported by ONR grant N00014-12-1-0217 and by NSF
award 1254108. It was also supported in part by the CONACYT grant 134186.</p>
      </sec>
    </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>Dhawle</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>
          :
          <article-title>Lexical predictors of personality type</article-title>
          .
          <source>In: Proceedings of the 2005 Joint Annual Meeting of the Interface and the Classification Society of North America</source>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Corney</surname>
          </string-name>
          , M.,
          <string-name>
            <surname>de Vel</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Anderson</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mohay</surname>
          </string-name>
          , G.:
          <article-title>Gender-preferential text mining of e-mail discourse</article-title>
          .
          <source>In: Proceedings of the 18th Annual Computer Security Applications Conference</source>
          . pp.
          <fpage>282</fpage>
          -.
          <source>ACSAC '02</source>
          , IEEE Computer Society, Washington, DC, USA (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Karypis</surname>
          </string-name>
          , G.:
          <article-title>CLUTO - a clustering toolkit</article-title>
          .
          <source>Tech. Rep</source>
          . #
          <fpage>02</fpage>
          -
          <lpage>017</lpage>
          (
          <year>Nov 2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Salton</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Buckley</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Term-weighting approaches in automatic text retrieval</article-title>
          .
          <source>Information Processing Management</source>
          <volume>24</volume>
          (
          <issue>5</issue>
          ),
          <fpage>513</fpage>
          -
          <lpage>523</lpage>
          (
          <year>1988</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Sapkota</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Solorio</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Montes-y Gómez</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosso</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>The use of orthogonal similarity relations in the prediction of authorship</article-title>
          .
          <source>In: Computational Linguistics and Intelligent Text Processing</source>
          . pp.
          <fpage>463</fpage>
          -
          <lpage>475</lpage>
          . Springer Berlin Heidelberg (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Solorio</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pillay</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Raghavan</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Montes-y Gómez</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Generating metafeatures for authorship attribution on web forum posts</article-title>
          .
          <source>In: Proceedings of the 5th International Joint Conference on Natural Language Processing</source>
          ,
          <string-name>
            <surname>IJCNLP</surname>
          </string-name>
          <year>2011</year>
          . pp.
          <fpage>156</fpage>
          -
          <lpage>164</lpage>
          . AFNLP,
          <string-name>
            <surname>Chiang</surname>
            <given-names>Mai</given-names>
          </string-name>
          ,
          <source>Thailand (November</source>
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Stolcke</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>SRILM - an extensible language modeling toolkit</article-title>
          . pp.
          <fpage>901</fpage>
          -
          <lpage>904</lpage>
          (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Witten</surname>
            ,
            <given-names>I.H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Frank</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          :
          <article-title>Data Mining: Practical Machine Learning Tools and Techniques</article-title>
          . Morgan Kauffmann, 2nd edn. (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>