<!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 Wide Range of Features for Author profiling</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>University of Houston Department of Computer Science</institution>
          ,
          <addr-line>Houston, TX, 77004</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2015</year>
      </pub-date>
      <abstract>
        <p>Predicting an author's age, gender and personality traits by analyzing his/her documents is important in forensics, marketing and resolving authorship disputes. Our system combines different styles, lexicons, topics, familial tokens and different categories of character n-grams as features to build a logistic regression model for four different languages: English, Spanish, Italian and Dutch. With this model, we obtained global ranking scores of 0.6623, 0.6547, 0.7411, 0.7662 for English, Spanish, Italian and Dutch languages respectively.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>
        The PAN15 [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] author profiling shared task is to predict the age-group (18-24, 25-34,
35-49, 50-xx), gender (male, female) and personality traits (extroverted, stable,
agreeable, conscientious, open) of authors by analyzing their tweets. Task participants have
access to the training data in four different languages: English, Spanish, Italian and
Dutch.
      </p>
      <p>Researchers have approached this problem in a variety of ways on a number of
different datasets. In order to capture the profile of Facebook users, Schwartz et al. used
what they call an Open Vocabulary approach [7]. They used word n-grams and Latent
Dirichlet Allocation (LDA) topics as features and compared their method with a Closed
Vocabulary approach that used Linguistic Inquiry and Word Count (LIWC) word
categories and found the Open Vocabulary method to be better for all of the personality
traits as well as for age and gender.</p>
      <p>
        Estival et al. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] performed the same task on emails collected from both native and
non-native English speakers. Apart from age, gender and personality traits, they also
tried to predict the native language, country of residence and level of education of the
authors. They experimented with different classifiers such as SMO, Random Forest and
SVM and found that for different attributes of an author’s profile. They also tried feature
selection and while using all of their character, lexical and structural features worked
best for age and gender prediction, removing the lexical features produced better results
for personality traits.
      </p>
      <p>In this paper, we built two separate models for age-gender and personality for each
language. We used a wide range of features as described in Section 2 for profiling
author’s age, gender and personality traits. We experimented with different combinations
of these features with Logistic Regression as a classifier.</p>
    </sec>
    <sec id="sec-2">
      <title>Methodology</title>
      <p>
        We started out by tokenizing author’s twitter data with the help of Ark Tweet NLP
tokenizer [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. This tool is well adapted for Twitter. In addition, we replaced all of the
hyperlinks/urls with URL . Also, we expanded most of the contractions used in Twitter.
For instance, we replaced r with are, u with you, n’t with not. We replaced good and
bad emoticons with words emoticon_good and emoticon_bad respectively. After
preprocessing and tokenization, we extracted the following features:
Lexical: These consist of the word unigrams, bigrams and trigrams, which are
commonly used in an author’s profile.
      </p>
      <p>Twitter Style: Stylistic features capture the stereotypical style of a particular group of
authors. Number of words, characters, question marks, exclamation marks,
hashtags, user mentions (@), urls, all capitalized words, text and number combined
tokens, average word length and average tweet length features were used to capture
the writing style of authors.</p>
      <p>Familial Tokens: Some of the familial tokens used by males and females are very
distinct. Females are a lot more likely to use my hubby, my bf, my husband, my
boyfriend, etc. than males. In the same way males will use words such as my wife,
my girlfriend, my gf, etc. The presence of these tokens in authors’ tweets are strong
indicative features to distinguish the gender of an author. We prepared a list of these
tokens for all languages and used their normalized counts as features.</p>
      <p>Categorical Char n-grams: Sapkota et al. [6] evaluated the predictive power of
different subgroups of character n-grams in single and cross domain authorship
attribution settings. They defined ten different character n-gram categories based on
affixes, words and punctuation. Instead of using all the character n-grams, we
defined similar categories and used those combinations of categories of char n-grams
that gave us high accuracy. Categories like mid-word, beg-punct, multi-word, prefix,
mid-punct and space-prefix proved to be good for this task.</p>
      <p>LDA Topics: Many researchers have used LDA topics as features in order to predict
gender, age group and personality of authors. We also used similarity of tweets with
LDA topics as feature. For age and gender we clustered documents into eight topic
groups and for personality we clustered into ten topic groups.</p>
      <p>Age and Gender: We hypothesized that the same personality trait might have different
patterns in authors from different age groups and gender. So, we used these as
features in the determination of the personality of authors.</p>
      <p>
        Apart from these features, we also experimented with the word categories in the
LIWC corpus. However, the addition of LIWC word lists degraded our system’s
performance and we dropped the LIWC word list from our final system. After obtaining these
features, we trained a multiclass logistic regression classifier with them. We used the
gensim [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] Python library for LDA topic extraction and the scikit-learn [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] framework
for feature extraction and to perform classification.
      </p>
    </sec>
    <sec id="sec-3">
      <title>Experiments and Results</title>
      <p>Since, the training dataset is small, we performed our experiments through ten fold cross
validation. We experimented with different combinations of the above defined features.
Table 1 shows the combination of features that gave us the best results for age_gender
and personality task. We created two separate models for age_gender and for
personality classification. The personality model uses the age_gender model’s age_group and
gender prediction as features.</p>
    </sec>
    <sec id="sec-4">
      <title>Discussion and Conclusion</title>
      <p>Our system combined various style, lexicons, topics, familial tokens and categories of
character n-grams features to build a final logistic regression classifier. Building a model
with all of these features combined did not give good performance. But when combined
selectively, these features boosted our system’s performance. In addition, we also found
that the same type of features are not the ones that are strongly representative of authors’
profiles across different languages. For instance, the categories of character n-grams that
were prominent across different languages were not the same. For English, Spanish and
Italian, familial tokens did not improve the system performance, whereas for Dutch it
is one of the key features. Similarly, Twitter specific style features are prominent across
English, Spanish and Dutch but not in Italian. However, across all languages, word
unigrams, bigrams and trigrams are important features, which illustrates that authors
having similar attributes tend to use similar words. In conclusion, our system analyzes
a wide range of features to profile author’s age-group, gender and personality traits and
is reasonably successful in doing so.</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgments References</title>
      <p>We thank PAN15 organizers and committee members for organizing Author
Profiling task. This research was funded by National Science Foundation CAREER grant
1462141.
6. Sapkota, U., Bethard, S., Montes, M., Solorio, T.: Not all character n-grams are created equal:
A study in authorship attribution. In: Proceedings of the 2015 Conference of the North
American Chapter of the Association for Computational Linguistics: Human Language
Technologies. pp. 93–102. Association for Computational Linguistics, Denver, Colorado (May–June
2015), http://www.aclweb.org/anthology/N15-1010
7. Schwartz, H.A., Eichstaedt, J.C., Kern, M.L., Dziurzynski, L., Ramones, S.M., Agrawal, M.,
Shah, A., Kosinski, M., Stillwell, D., Seligman, M.E., et al.: Personality, gender, and age in
the language of social media: The open-vocabulary approach. PloS one 8(9), e73791 (2013)</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Estival</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gaustad</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pham</surname>
            ,
            <given-names>S.B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Radford</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hutchinson</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Author profiling for English Emails</article-title>
          .
          <source>In: Proceedings of the 10th Conference of the Pacific Association for Computational Linguistics</source>
          . pp.
          <fpage>263</fpage>
          -
          <lpage>272</lpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Gimpel</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schneider</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>O'Connor</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Das</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mills</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Eisenstein</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Heilman</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yogatama</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Flanigan</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Smith</surname>
            ,
            <given-names>N.A.</given-names>
          </string-name>
          :
          <article-title>Part-of-speech tagging for twitter: Annotation, features, and experiments</article-title>
          .
          <source>In: Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies: Short Papers - Volume 2</source>
          . pp.
          <fpage>42</fpage>
          -
          <lpage>47</lpage>
          . HLT '
          <volume>11</volume>
          ,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computational Linguistics, Stroudsburg, PA, USA (
          <year>2011</year>
          ), http://dl.acm.org/citation.cfm?id=
          <volume>2002736</volume>
          .
          <fpage>2002747</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Pedregosa</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Varoquaux</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gramfort</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Michel</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Thirion</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Grisel</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Blondel</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Prettenhofer</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Weiss</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dubourg</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vanderplas</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Passos</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cournapeau</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Brucher</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Perrot</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Duchesnay</surname>
          </string-name>
          , E.:
          <article-title>Scikit-learn: Machine learning in Python</article-title>
          .
          <source>Journal of Machine Learning Research</source>
          <volume>12</volume>
          ,
          <fpage>2825</fpage>
          -
          <lpage>2830</lpage>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <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>Potthast</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stein</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Daelemans</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          :
          <article-title>Overview of the 3rd author profiling task at PAN 2015</article-title>
          . In: Cappellato L.,
          <string-name>
            <surname>Ferro</surname>
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gareth</surname>
            <given-names>J.</given-names>
          </string-name>
          and San Juan E. (Eds). (Eds.)
          <article-title>CLEF 2015 Labs and Workshops, Notebook Papers</article-title>
          .
          <article-title>CEUR-WS</article-title>
          .org vol.
          <volume>1391</volume>
          , (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5. Rˇehu˚rˇek,
          <string-name>
            <given-names>R.</given-names>
            ,
            <surname>Sojka</surname>
          </string-name>
          ,
          <string-name>
            <surname>P.</surname>
          </string-name>
          :
          <article-title>Software Framework for Topic Modelling with Large Corpora</article-title>
          .
          <source>In: Proceedings of the LREC 2010 Workshop on New Challenges for NLP Frameworks</source>
          . pp.
          <fpage>45</fpage>
          -
          <lpage>50</lpage>
          . ELRA, Valletta, Malta (May
          <year>2010</year>
          ), http://is.muni.cz/publication/884893/en
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>