<!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>Age and Gender Identi cation using Stacking for Classi cation? Notebook for PAN at CLEF 2016</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Madhulika Agrawal</string-name>
          <email>madhu1agrawal@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Teresa Goncalves</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Universidade de Evora</institution>
          ,
          <country country="PT">Portugal</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper presents our approach of identifying the pro le of an unknown user based on the activities of known users. The aim of author pro ling task of PAN@CLEF 2016 is cross-genre identi cation of the gender and age of an unknown user. This means training the system using the behavior of di erent users from one social media platform and identifying the pro le of other user on some di erent platform. Instead of using single classi er to build the system we used a combination of di erent classi ers, also known as stacking. This approach allowed us explore the strength of all the classi ers and minimize the bias or error enforced by a single classi er.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>which belong to some other genre. Di erent platforms provides di erent facilities
and at the same time impose various restriction on the way of representation of
thoughts. Now it will be interesting to see if the writing style changes with the
change in platform or not.</p>
      <p>The rest of this paper is organized as follows: Section 2 gives a description
about the dataset used. Section 3 presents the approach of feature selection and
combining of classi ers. Section 4 describes the results obtained on training data
during the development as well the results on test dataset. Section 6 concludes
the paper.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Dataset Description</title>
      <p>
        The dataset is part of Author Pro ling task of PAN@CLEF 2016 [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. The dataset
consist of xml documents containing tweets from various users. Each dataset
corresponds to documents in one of the languages: English, Spanish or Dutch.
The dataset have documents written by user belonging to age groups 18-24,
25-34, 35-49, 50-64, 65-xx. Users are also classi ed according to their genders,
male and female. Number of documents belonging to each age group is di erent.
But the number of documents by male and female are same across all the three
datasets. A detailed description of the dataset is given in Tab.1. The Dutch
dataset do not have age details.
In our experiments, we re-framed the problem of identifying the gender and age
of the author as a classi cation problem. The classi er is trained over the given
classes (male and female for gender and di erent age groups for the age). Then
      </p>
      <p>Category
Gender</p>
      <p>Male</p>
      <p>Female
Age Group (in years)
18-24
25-34
35-49
50-64
65-xx
Total
the idea is to classify the new document as belonging to one of these classes. The
system was trained separately for gender and age classi cation. Instead of using
a single classi er we used a combination of classi ers, also known as stacking.
Our experiment can be categorized into following steps:
{ Preprocessing
{ Feature Extraction and Feature Selection
{ Classi cation
3.1</p>
      <sec id="sec-2-1">
        <title>Preprocessing</title>
        <p>All the tweets from a single user are joined together into one document. Once
we have the documents for all the users, we perform few preprocessing steps to
remove the noise from the corpus. All the HTML/XML tags from the documents
were removed. Any reference to other user was replaced with @USERNAME.
@LINKS were used to represent links to other web pages. If there are some
emotions expressed in the tweet using an emoticons, they were replaced with
@EMOJI. Duplicate tweets, extra whitespace, tabs and blank lines were also
removed. Whole text was converted to lower case and the stop words were
removed.
3.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>Feature Extraction and Feature Selection</title>
        <p>
          The documents are then represented as TF-IDF matrix [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. This TF-IDF
conversion resulted in the feature space with much higher dimension. Many features
in this feature space does not contribute in the classi cation and hence it is
reduced by evaluating the worth of a feature by measuring the information gain
with respect to the class [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]. The information gained by each term for
identifying the categories is calculated and the terms having certain threshold value of
information gain are retained. The threshold parameter was set to 0 in our
experiments, meaning all the attributes for which the information gain is positive
are retained. The percentage reduction in the feature space is represented in the
Tab.2.
Stacking [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] is an ensemble learning method where several hypotheses are
combined into one. It consist of base models and a meta model as shown in g.1.
Each base model is an individual classi er with their own hypothesis. The
classi cation decision made by each of these base classi ers are feed as input to the
meta classi er, which is responsible for making the nal classi cation decision.
The tool used by us for performing the classi cation is Weka [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ], developed by
University of Waikato. The Tab.3 shows the base and meta classi ers used by
our approach for gender and age classi cation.
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Results</title>
      <p>
        During the development, the accuracy obtained for gender and age identi
cation in all the three languages using 10-fold cross-validation is given in the Tab.4.
The results obtained after submitting the developed system on the virtual
machine TIRA [
        <xref ref-type="bibr" rid="ref1 ref3">1, 3</xref>
        ] and running it on the test datasets are as shown in Tab.5.
The tests were conducted on two datasets, test1 and test2. Both these datasets
were collected from reviews in case of Dutch. Concretely test1 is 10% of test2.
For English and Spanish, test1 was collected from social media and test2 from
blogs. The important observation from the results of both the development and
the test dataset is that the performance of the system is consistent throughout
the languages for gender classi cation. Thus the classi er that is used in our
approach performs same irrespective of the language of dataset. This is a key
take away from this experiment as it is important to be able to develop a system
that can identify the user, irrespective of the its language. .
In this paper, we have discussed the performance of combining several classi ers
into one. The results that was obtained on the test dataset are poor as compared
to the results obtained during the development of the system. This shows that
the cross-genre author pro ling is a challenging task. It would be interesting to
see if by using some other features, the performance can be improved or not.
      </p>
      <p>The future work may include ne tuning of certain parameters such as the
threshold for determining the information gain. If we can identify attributes
that contributes most to the classi cation than it might improve the system's
performance.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Gollub</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stein</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Burrows</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hoppe</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          : TIRA:
          <article-title>Con guring, Executing, and Disseminating Information Retrieval Experiments</article-title>
          . In: Tjoa,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Liddle</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Schewe</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.D.</given-names>
            ,
            <surname>Zhou</surname>
          </string-name>
          ,
          <string-name>
            <surname>X</surname>
          </string-name>
          . (eds.) 9th
          <source>International Workshop on Text-based Information Retrieval (TIR 12) at DEXA</source>
          . pp.
          <volume>151</volume>
          {
          <fpage>155</fpage>
          . IEEE, Los Alamitos, California (Sep
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Hall</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Frank</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Holmes</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pfahringer</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Reutemann</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Witten</surname>
            ,
            <given-names>I.H.</given-names>
          </string-name>
          :
          <article-title>The weka data mining software: an update</article-title>
          .
          <source>ACM SIGKDD explorations newsletter 11(1)</source>
          ,
          <volume>10</volume>
          {
          <fpage>18</fpage>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Potthast</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gollub</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <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>Stamatatos</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stein</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Improving the Reproducibility of PAN's Shared Tasks: Plagiarism Detection, Author Identication, and Author Pro ling</article-title>
          . In: Kanoulas,
          <string-name>
            <given-names>E.</given-names>
            ,
            <surname>Lupu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Clough</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            ,
            <surname>Sanderson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Hall</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Hanbury</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Toms</surname>
          </string-name>
          , E. (eds.)
          <article-title>Information Access Evaluation meets Multilinguality, Multimodality, and Visualization</article-title>
          .
          <source>5th International Conference of the CLEF Initiative (CLEF 14)</source>
          . pp.
          <volume>268</volume>
          {
          <fpage>299</fpage>
          . Springer, Berlin Heidelberg New York (
          <year>Sep 2014</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>Verhoeven</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Daelemans</surname>
            ,
            <given-names>W.</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>
          :
          <article-title>Overview of the 4th Author Pro ling Task at PAN 2016: Cross-genre Evaluations</article-title>
          .
          <source>In: Working Notes Papers of the CLEF 2016 Evaluation Labs. CEUR Workshop Proceedings, CLEF and CEUR-WS.org (Sep</source>
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Salton</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fox</surname>
            ,
            <given-names>E.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wu</surname>
          </string-name>
          , H.:
          <article-title>Extended boolean information retrieval</article-title>
          .
          <source>Communications of the ACM</source>
          <volume>26</volume>
          (
          <issue>11</issue>
          ),
          <volume>1022</volume>
          {
          <fpage>1036</fpage>
          (
          <year>1983</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Wolpert</surname>
            ,
            <given-names>D.H.</given-names>
          </string-name>
          :
          <article-title>Stacked generalization</article-title>
          .
          <source>Neural networks 5(2)</source>
          ,
          <volume>241</volume>
          {
          <fpage>259</fpage>
          (
          <year>1992</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Yang</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pedersen</surname>
            ,
            <given-names>J.O.:</given-names>
          </string-name>
          <article-title>A comparative study on feature selection in text categorization</article-title>
          .
          <source>In: ICML</source>
          . vol.
          <volume>97</volume>
          , pp.
          <volume>412</volume>
          {
          <issue>420</issue>
          (
          <year>1997</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>