<!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>Content-centric age and gender profiling</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Wee-Yong Lim</string-name>
          <email>weylim@i2r.a-star.edu.sg</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jonathan Goh</string-name>
          <email>jonathan-goh@i2r.a-star.edu.sg</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Vrizlynn L. L. Thing</string-name>
          <email>vriz@i2r.a-star.edu.sg</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Cybercrime and Security Intelligence (CSI) Department Institute for Infocomm Research</institution>
          ,
          <country country="SG">Singapore</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2013</year>
      </pub-date>
      <abstract>
        <p>Author profiling can be considered a form of text analysis of which the objective is to ascertain characteristics of the author behind a text sample. This paper describe the design and implementation of an approach for determining the age group (10s, 20s, or 30s) and gender (male/female) of text samples for the author profiling task in PAN 2013. Evaluation is then based on the compounded accuracy in determining the correct age group and gender of authors of samples in a test corpus. The training corpus provided for this task contains English and Spanish text samples from online contents (e.g. blogs, chats) of authors. Content in each sample are split into one or more “conversations”, of which are all wholly attributed to a specific author. To the best of our knowledge, interweaving responses of other person(s)(if any) are filtered, focussing the scope of the analysis to the writing style and content present in individual author's sample. The underlying research in this work is, thus, the empirical investigation of features that can be extracted from the text samples, that are helpful in identifying the gender and age group of an author based purely on characteristics present within his/her text samples. Main contribution in this work is a concise content-based feature based on similarity scores between given text samples and corpora of the different classes. This feature is compared and used with some common style-based, vocabulary and idiosyncrasies features. Results from experiments on a balanced subset of the PAN 2013 authorship profiling training corpus paint a clear contrast between the content-based feature and the other features, favouring the former for both the English and Spanish samples. Ultimately, 24 five-fold cross validation tests were ran on the different feature sets on the balanced corpus, with the best accuracies for simultaneous gender and age group classification at 48.52% and 61.23% for the English and Spanish samples respectively, in contrast to a baseline of 16.67%.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Task and General Approach</title>
      <p>
        Text analysis can involved processing users’ generated content for various purposes
such as classification/clustering-based tasks like author attribution [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ][
        <xref ref-type="bibr" rid="ref10">10</xref>
        ][
        <xref ref-type="bibr" rid="ref4">4</xref>
        ],
plagiarism detection [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] and information retrieval related tasks such as information
extraction, summarization of contents, etc. This work focus on the task of profiling the
background/characteristics of groups of authors by analysing their text samples. In
particular, the premise of this work is concerned with the author profiling task in PAN 2013 [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]
- profiling the age group (10s, 20s, or 30s) and gender (male/female) of authors using a
provided training corpus.
      </p>
      <p>
        Similar to the task of author attribution, it is recognized here that the key research in
author profiling is the selection for the best features and the proper use of classification
techniques in building an appropriate model to distinguish between the different profile
groups. Thus, in approaching this problem, we seek the question “Why/How do
authors in different sociolinguistic profile group differs in their written communications,
assuming using a common language?”. In general, there are 2 main contributing factors
to differences in the communications amongst the authors in the different groups - (i)
content/subject matter difference as well as (ii) syntactic and style-based differences [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]
amongst the different profile groups.
      </p>
      <p>
        Profiling text samples typically contain the sequential steps of describing the text
sample (usually via features represented in a vector), investigation and selection of
useful features and lastly, building a model to represent characteristics styles of each author
or author group. In this work, we apply Principal Component Analysis (PCA) to
linearly transform the high dimensional data into a lower dimensional space for a more
simple representation of the data and subsequently utilize a popular implementation
of Support Vector Machine (SVM) [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] classifier for learning the model for the author
profiling task.
      </p>
      <p>The rest of this paper is organised as follows. Section 2 describe the motivation
behind our approach to the PAN 2013 author profiling task, ending with a tabular listing of
the features used. Section 3 present the results of the experiments in this work together
with analysis of the various features used. Section 4 summarize the approach used and
findings of our analysis in this work.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Our Features</title>
      <p>
        A person’s syntactic construct or lexical usage can give cues to his authorship, but what
features do we use to describe and quantify such characteristics? Despite several prior
research on authorship attribution [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] and some on author profiling
[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] , there is little consensus on the “ideal” features to use [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Hence, our
approach is to combine the use of common or relevant features used in previous work
with a content similarity feature which we have implemented for this task.
2.1
      </p>
      <sec id="sec-2-1">
        <title>Style-based features</title>
        <p>
          Analysis on empirical evidence indicated the usefulness of pronouns, determiners and
prepositions (e.g. “I”, “her”, “as”, “the”, “of”, “in”, etc.) in gender and age group
profiling tasks in [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]. Hence, features of similar intent in the form of POS tags and specific
pronouns are used in this work to (i) corroborate the usefulness of such features for the
shorter mean sample length corpus and (ii) explore their usefulness on a Spanish corpus
as well.
        </p>
        <p>Other simple statistical features such as average sentence length, words per
conversation, number of contraction words (e.g. he’s, i’m, etc.) and number of URLs are
also included as part of the style-based features. Given the relatively short length of the
text samples, all features are simply normalized against the number of words in each
sample.
2.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>Vocabulary and Idiosyncrasies (VI) features</title>
        <p>
          The number of unique words in the sample is used as a proxy for the vocabulary richness
of the author of the sample. This is a simple and intuitive feature but further
consideration may be needed in future work in view of the discussions and caution raised on the
use of vocabulary features in [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ], [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ].
        </p>
        <p>
          Referencing the list of discriminative frequent words in [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ], we postulate that in
some cases (e.g. the teens age group), the presence and occurrence of neologisms can
help in discriminating between the different profile classes. Hence, apart from the nature
of a set of particular words themselves that is discriminative, idiosyncrasies represented
by such words may that help in this task, where the term “idiosyncrasies” in this work
refers loosely to any (misspelled) words that deviate from a standard US/GB English or
Spanish dictionary lexicon or any all-caps words with 2 or more characters.
2.3
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>Content-based features</title>
        <p>In this work, we consider content-based features as features that are reflective of the
subject areas expressed in the samples. A straightforward measure for generating such
features for a certain author group profile is via a histogram of the n most common
words found in training samples from the group. Naturally, this concept can be extended
to character or word level n-grams in the samples. Two inherent practical weaknesses
are present in such a method - (i) high number of dimensions in the description and
(ii) a thresholding exercise is required to determine the best n to use. In addition, a
thresholding exercise also implies that there is likely to be some form of information
loss. Intuitively, this is represented by the loss of not-so-frequent, yet still discriminative
helpful terms that happen to fall below an arbitrarily chosen threshold.</p>
        <p>For practical reasons, the approach taken in this work seeks to minimize the
dimension of the description for each text sample and eliminate the need for any thresholding
exercises. As such, term frequency-inverse document frequency (TF-IDF) based scores
are used to measure the similarity of content between a given text sample and each of
the profile group’s collection of samples. This is done by measuring each word of the
text sample with the entire lexicon for each of the profile group. The TF-IDF scores
of all the words are then summed up to determine the similarity between the text
sample and the corpora. Ideally, the collection of training samples from the correct profile
group will give the highest similarity score, indicating a similarity in the content present
in the given text sample and training samples from its profile group. In this work, we
chose to use the similarity measures from all the profile groups as a feature set.</p>
        <p>In order to obtain the similarity score, the TF-IDF for all the words in in the entire
training corpus are first calculated, thereby providing an indication on how rare or
common a particular word is in the entire corpus. TF is first calculated by normalising the
term frequency (TF) over the maximum frequency in the corpus as stated in Equation 1.
This is to prevent the TF from being bias towards the profile groups with larger lexicon
set.</p>
        <p>tf (t; c) =</p>
        <p>f (t; c)
max(w; c)
where f(t, c) refers to the frequency of the word t in the corpus, c and max(w, c) refers
to the maximum frequency of any word, w, in the corpus, c. Subsequently, the TF-IDF
score for each word is then computed using Equation 2.</p>
        <p>T F _IDFc = tf (t; c) log(
sum_of _f req
tf (t; c)
)
where tf(t, c) is simply the normalised frequency of the word that occurs in a particular
corpus, c. sum_of_freq is defined as the sum of frequency for the entire corpora. The
similarity score from a test sample would then be calculated using Equation 3.
(1)
(2)
n
X (1 + log(
i=1
term_f req(w)
n
SimilarityM easurec =
) )T F _IDFc(w))
(3)
where SimilarityMeasurec refers to the score between the test sample and the corpus, c.
n refers to the total word count in the test sample, term_freq is defined as the frequency
of the word, w, in the test sample. TF_IDFc is the pre-determined score for the word,
w, in corpus, c.
2.4</p>
      </sec>
      <sec id="sec-2-4">
        <title>Features list</title>
        <p>Features in Table 1 summarize the features used in this work. Values are normalized
against length of each sample.
3</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Experiments</title>
      <p>The English corpus for the PAN 2013 author age and gender profiling consist of 236,600
samples equally divided between the genders. Number of samples for the 10s, 20s and
30s age groups are 17,200, 85,800 and 133,600 respectively. The smaller Spanish
corpus consist of 75,900 samples also equally divided between the genders and having
2,500, 42,600 and 30,800 samples for the respective age groups. For each language,
classification can be performed separately or simultaneously among the two sets of
classes, resulting in a total of 6 classes, namely [male, 10s], [female, 10s], [male, 20s]...
etc.</p>
      <p>In our experiments, we seek to quantify the discriminative capabilities of the
different sets of features for the age, gender and age+gender classes. This results in a total
of 12 experiments being conducted for each language. Each experiment consist of a
coarse, but reasonably extensive search for the best parameters for the SVM classifier
and the corresponding 5-fold cross validation accuracy. To avoid the problem of having
an unbalance dataset, 1,000 samples were selected for each of the age+gender classes
and subsequently 2,000 samples for each of the age classes and 3,000 samples for each
of the gender classes.</p>
      <p>Feature
Style-based
Average words
Contraction words
Average sentence length
URLs
Punctuation list
Pronoun list
POS tag list
Vocabulary
crasies (VI)
Unique words
Capital words
Spelling errors
&amp;</p>
      <p>IdiosynContent-based
Lexicon similarity list</p>
      <p>Description
Average number of words per conversation (each sample contains
one or more ‘conversation’ by the same author)
Number of abbreviated words using single quote marks
Average number of words in each sentence
Number of URLs
Histogram of punctuations
Histogram of pronouns (e.g. they, you, she, etc.)
Histogram of Part-of-Speech tags (e.g. adjective, determiner, etc.)
Number of unique words in the sample
Number of words (length &gt; 2) containing only capital letters
Number of words that are not found in US/GB English or Spanish
dictionaries
Similarity scores of the sample with the content of the different
classes</p>
      <p>Given the balanced dataset used in the experiments, the baseline for the age,
gender and age+gender classifications are approximately 33%, 50% and 17% respectively.
Referring to Figures 1, 2, it is clear that style-based, vocabulary and idiosyncrasy
features are simply not very discriminative in discerning between the age and gender of
the samples in this specific task. Their poor performance is apparent for both languages
and is in stark contrast to the accuracies obtained for the content-based features.</p>
      <p>In contrast, content-based features are much more discriminative than the other
features for both age and gender profiling for the given corpus. In fact, the clear difference
in performance is further highlighted by the slight decrease in accuracy when
contentbased features are used together with the rest of the features. Given the consistent results
for different feature sets across the classes and languages, we are pessimistic on the use
of the listed style-based, vocabulary and idiosyncrasies features in this work for age and
gender profiling tasks.</p>
      <p>
        The weak performance of the non-content features in this work may indicate that
writing styles (i) may not be consistent enough across a community of author even if
these authors share some sociolinguistic similarities in one form or another (ii) or that
differences in writing styles are simply not evident enough in the relatively short sample
length, (iii) or that the listed features are ineffective at capturing the relevant stylistic
properties. Considering the stronger performance of rich set of syntactic features in
other work (e.g. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]), we are reluctant to dismiss the effectiveness of such style-based
features. Furthermore, it is acknowledged that the motivation for minimizing the
number of dimensions in this work inhibited the investigation of a more comprehensive set
of style-based features.
      </p>
      <p>The task of profiling authors using their writing samples is effectively categorizing
the authors into their most likely sociolinguistic groups based on similarities of their
samples with collective demographic characteristics exhibited by each these groups.
It is then intuitive and apparent from previous work that a major component of such
demographic characteristics is defined by popular subject areas in the respective groups.
Given “many different topics” are present in the PAN corpus, it is assumed that there are
no constraint in the subject areas in all the text samples, allowing authors to freely steer
their conversations to the topics of their interest. It is, thus, of no surprise that
contentbased features subsequently performed relatively well in discriminating samples into
their authors’ age group and gender. Naturally, the imposition of any constraints based
on subject areas when selecting the training and test text samples is likely to quickly
deteriorate the effectiveness of any content-based features.</p>
      <p>
        Caution have been expressed in the past noting the dependency of content-based
features on the situation or experimental setup [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. That is the performance of
classifier(s) trained using content-based features is likely to be significantly negatively
affected when used to classify samples whose subject area is different from those present
in the training samples. However, it is argued that such caution is applicable to
stylebased (or other) features as well - the difference in both content and style can be attested
to the different sociolinguistic characteristics of the profile groups. Hence, it is
beneficial for researchers and investigators to exploit such characteristics when performing
author profiling based on text samples.
4
      </p>
    </sec>
    <sec id="sec-4">
      <title>Conclusion</title>
      <p>This paper describe our approach for the author age group and gender profiling task
in PAN 2013. Investigations on the discriminative capabilities of a set of style-based,
vocabulary, idiosyncrasies and content-based features are conducted in this work.
Although the non-content-based features performed poorly in our investigations, we are
reluctant to dismiss their suitability for all author profiling tasks based on the limited
range of the types of features implemented and the possibilities of these features being
negatively affected by the relatively short sample length. On the other hand, the novel
and concise content-based feature used in this task prove its effectiveness in
discriminating the samples to their authors’ gender and age groups. The approach to generate
this content-based feature is applicable in all domains and its low dimensionality output
will facilitate any downstream machine learning process.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1. Pan 2013 (
          <year>April 2013</year>
          ), http://pan.webis.de/
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <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>Commun. ACM</source>
          <volume>52</volume>
          (
          <issue>2</issue>
          ) (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <issue>3</issue>
          .
          <string-name>
            <surname>Chang</surname>
            ,
            <given-names>C.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lin</surname>
            ,
            <given-names>C.J.:</given-names>
          </string-name>
          <article-title>LIBSVM: A library for support vector machines</article-title>
          .
          <source>ACM Transactions on Intelligent Systems and Technology</source>
          <volume>2</volume>
          ,
          <issue>27</issue>
          :
          <fpage>1</fpage>
          -
          <lpage>27</lpage>
          :
          <fpage>27</fpage>
          (
          <year>2011</year>
          ), software available at http://www.csie.ntu.edu.tw/ cjlin/libsvm
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4. van Halteren,
          <string-name>
            <surname>H.</surname>
          </string-name>
          :
          <article-title>Linguistic profiling for author recognition and verification</article-title>
          .
          <source>In: Proceedings of the 42nd Annual Meeting on Association for Computational Linguistics</source>
          (
          <year>2004</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Halteren</surname>
            ,
            <given-names>H.V.</given-names>
          </string-name>
          :
          <article-title>Author verification by linguistic profiling: An exploration of the parameter space</article-title>
          .
          <source>ACM Trans. Speech Lang. Process</source>
          .
          <volume>4</volume>
          (
          <issue>1</issue>
          ) (
          <year>Feb 2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Hoover</surname>
            ,
            <given-names>D.L.</given-names>
          </string-name>
          :
          <article-title>Another perspective on vocabulary richness</article-title>
          .
          <source>Computers and the Humanities</source>
          <volume>37</volume>
          (
          <issue>2</issue>
          ) (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Juola</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Authorship attribution</article-title>
          .
          <source>Found. Trends Inf. Retr</source>
          .
          <volume>1</volume>
          (
          <issue>3</issue>
          ) (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <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>
          ,
          <fpage>401</fpage>
          -
          <lpage>412</lpage>
          (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Koppel</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schler</surname>
          </string-name>
          , J.:
          <article-title>Exploiting stylistic idiosyncrasies for authorship attribution</article-title>
          .
          <source>In: In IJCAI'03 Workshop on Computational Approaches to Style Analysis and Synthesis</source>
          (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Koppel</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schler</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Argamon</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Computational methods in authorship attribution</article-title>
          .
          <source>J. Am. Soc. Inf. Sci. Technol</source>
          .
          <volume>60</volume>
          (
          <issue>1</issue>
          ) (
          <year>Jan 2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Labbé</surname>
            ,
            <given-names>D.:</given-names>
          </string-name>
          <article-title>Experiments on authorship attribution by intertextual distance in English</article-title>
          .
          <source>Journal of Quantitative Linguistics</source>
          <volume>14</volume>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Oberreuter</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>L</surname>
          </string-name>
          'Huillier,
          <string-name>
            <given-names>G.</given-names>
            ,
            <surname>Ríos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.A.</given-names>
            ,
            <surname>Velásquez</surname>
          </string-name>
          ,
          <string-name>
            <surname>J.D.</surname>
          </string-name>
          :
          <article-title>Approaches for intrinsic and external plagiarism detection - notebook for pan at clef 2011</article-title>
          . In: CLEF (Notebook Papers/Labs/Workshop) (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Zheng</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Li</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Huang</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          :
          <article-title>A framework for authorship identification of online messages: Writing-style features and classification techniques</article-title>
          .
          <source>Journal of the American Society for Information Science and Technology</source>
          <volume>57</volume>
          (
          <issue>3</issue>
          ) (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>