<!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 Using Style-based Features Notebook for PAN at CLEF 2013</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Seifeddine Mechti</string-name>
          <email>mechtiseif@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Maher Jaoua</string-name>
          <email>maher.jaoua@fsegs.rnu.tn</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Lamia Hadrich Belguith</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>ANLP Research Group- MIRACL Laboratory, University of Sfax</institution>
          ,
          <country country="TN">Tunisia</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this paper, we present a method for profiling the author of an anonymous text. Our approach is based on learning the author profile with a focus on dimensions age and gender. Our system takes as input a document which is written in English or in Spanish and generates the age and the gender of its author. First, we computed a ranked list of words that occur in the corpus and we grouped them into classes according to their similarities. Then, we calculated the TF * IDF score of each class for each document in order to find the stylistic differences between men and women, on the one hand, and those between different age intervals on the other hand. After that, we applied the learning process on 66% of the English and the Spanish corpuses using decision trees through the J48 algorithm. In factwe got the second place in the competition for the English corpus;Our system has shown a high level of accuracy and effectiveness in treating the gender dimension and we got the best accuracy for the entire PAN 2013 competition.</p>
      </abstract>
      <kwd-group>
        <kwd />
        <kwd>Machine learning</kwd>
        <kwd>Author profiling</kwd>
        <kwd>Style-based features</kwd>
        <kwd>Decision trees</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>Over the past twenty years, the field of Information Retrieval (IR) has grown well
beyond its primary objectives which are text indexing and the search for relevant
documents in a collection. Today, IR includes modeling, classification and
categorization of documents, plagiarism detection, data visualization, filtering
languages, etc. Document classification allows answering the question: to which class
does a text or a conversation pertain? However, many studies have focused on
profiling the author of a particular text and more specifically on detecting the age of
the writer of a given text, her gender, her native language, … [1, 2, 3, 4]. The aim of
author profiling isto identify the stylistic differences in writing between a man and a
woman and between authors from different age intervals. In this paper, we will
answer the following questions: How to know if an anonymous text was written by a
man or a woman? What is the author approximate age?</p>
      <p>The training corpora are made up of an English corpus (236,000 documents) and a
Spanish one (75,900 documents). For both corpuses, we used 66% of documents for
training and 33% for test.</p>
    </sec>
    <sec id="sec-2">
      <title>Related work</title>
      <p>Text classification is based on text mining and statistical techniques that produce
results from calculations of extracted terms frequency [5]. Text classification may
also be based on machine learning approaches, such as Bayesian approaches and
decision trees.</p>
      <p>In [3], Koppel et al explored the possibility of automatically classifying documents
according to author gender using an author profiling approach. Author profiling is the
task of predicting features related to the text author [6]. It addresses several
dimensions such as age, gender, native language, personality, level of education, etc.</p>
      <p>According to Koppel et al [3], men who prefer to categorize things use more
determiners (the/the, this/that, a/an,etc.) and quantifiers (two, more, little,
etc.).Women are more interested in relationships and, therefore, use personal
pronouns (I, you, me, her, etc.) more than men. Koppel algorithm therefore consist s in
quantifying the recurrence of 467 English keywords (a, too, yourself, their, etc.) in a
text in order to calculate the gender of its author. Indeed, the program was trained and
was conditioned on a corpus of texts from the Blog Authorship Corpus [7]. The works
analyzed were within all styles of writing: fiction, textbooks, tests, etc. After this
learning phase, the software was able to provide a correct answer four out of five
times. Gaustad[6] work on an automatic classification of messages in Arabic. They
received a rate of 81.5% of well classified documents in relation to the gender and of
72% in relation to age. Hariharan [8] and Kose [9] have also obtained promising
results in their work. They worked on the detection of gender; in this category they
managed to obtain an accuracy of 0.9.</p>
      <p>In this paper, we focus on two-dimensional author profiles. The author profile
attributes are age and gender. We consider English and Spanish texts.</p>
    </sec>
    <sec id="sec-3">
      <title>3 Our approach</title>
      <p>Our approach is purely statistical. It accepts input from any document written in
English or Spanish. It is based on the calculation of numbers of term frequencies to
identify the differences between men and women on the one hand and the differences
between age intervals (10s, 20s and 30s) on the other hand. This method consists of
four stages, namely calculating the number of occurrences of words, choosing classes
and building ARFF1 files, machine learning and presentation of results.</p>
      <p>Our method provides one of the following six classes:10s Male,20s Male,30s
Male,10s Female,20s Female and 30s Female.</p>
    </sec>
    <sec id="sec-4">
      <title>3.1 Features</title>
      <p>The step of classes selection was very important and had a great impact on the
results. We computed the number of occurrences of all the words that occur in the
1 An ARFF (Attribute-Relation File Format) file is an ASCII text file that describes a list of
instances sharing a set of attributes. ARFF files were developed by the Machine Learning
Project at the Department of Computer Science of The University of Waikato.
corpus and ranked them in descending order of their appearance. However, we made
use of the top-200 attributes.</p>
      <p>Figure 1 depicts some examples of occurrences of the English corpus:</p>
      <p>apartamento, oficina, trabajo, bar, gusta, ellos</p>
      <p>………</p>
      <p>There are two basic types of features that can be used for authorship profiling:
content-based features and style-based features [4]. Indeed, we looked for the
similarities that can group a set of terms in the same class.</p>
      <p>The corpus of the English text is much larger. Therefore, we identified many more
classes (25 classes), which are: Prepositions, Pronouns, Determiners, Adverbs,
Verbs, He, She, No, Of, I, Me, medicine, Chemistry, Music, Sport, TV, Phone, Beer,
Sleeping, Eating, Sex, Love, Money, Internet Marketing.</p>
    </sec>
    <sec id="sec-5">
      <title>3.2 The Learning Method</title>
      <p>Once the classes were set, they are used to perform the training. We used the
learning software and data mining "Weka"[12] to perform this task. We started the
construction of ARFF files, a file for the gender dimension and one for the age
dimension for each language. Indeed, we calculated TF * IDF for each class in order
to assess the relevance of each class in a given body of the documents:
wd = fw,d * log (|D|/fw, D)[10]
D: a document collection,
w: word,
d: an individual document d єD,
fw,d : equals the number of times w appears in d, |D| is the size of the corpus,
fw, D : equals the number of documents in which w appears in D.</p>
      <p>
        We were not satisfied with the calculation of TF (term frequency) only because
IDF measures the importance of a term in the corpus and therefore it gives more
importance to discriminatory terms (which are less frequent). Then we put the TF * IDF
of each document in the corpus of each class in the two ARFF files and got our
training base for both age and gender. Here comes the role of Weka. We developed a
system based primarily on the notion of a conditional probability system. There are
numerous statistical learning methods. After trying several learning algorithms
(Naive-Bayes, SVM, Multilayer perception, DMNB text) we realized that the
learning-based decision tree method differs from other statistical methods by its tree
structure. This structure makes the learning method readable to humans, unlike in
other approaches where the predictor is built, in a black box [
        <xref ref-type="bibr" rid="ref5">11</xref>
        ]. This favors the use
of decision trees that have a role to determine, from a graphical representation of a set
of rules, an instance of the class with a probabilistic model. We implemented and
supervised the learning method of the decision tree based on a set of statistical
techniques used to model problems, extract information from raw data and make
decisions in a coherent and rational way.
4
      </p>
    </sec>
    <sec id="sec-6">
      <title>Experiments</title>
      <p>For the English language, we obtained the best results in the competition for the
gender dimension. 58% of the documents were correctly classified [13]. However, for
the age dimension, the results are encouraging, but not as good as those for the gender
ones. Indeed, 58% of the documents were correctly classified (second place in
competition).But, we encountered a problem at the level of the corpus for 10s (10-17
years), since the corpus is of a small size. Almost 90% of the documents for this
corpus were misclassified.
If the number of classes is high, that doesn’t mean that precision will be high ; instead
we had the best accuracy with only three classes.</p>
      <p>The graph below shows the variation of precision depending on the number of
classes:
For the gender dimension:(Styles features) prepositions, pronouns and verbs were
highly effective. This is due to the fact that these classes are the most represented in
all documents in the corpus. The advantage of our approach compared with previous
approaches [4] is that it does not use content features. This way, we will no longer
need 25 classes.</p>
      <p>0
0.966
0.068
0
Focusing on the Spanish corpus, we also had good results both for the gender and age
dimension (55,6% and 51% correctly classified documents respectively).
As shown in table 2 we present a detailed accuracy by class for the spanish corpus:
TP Rate FP Rate Precision Recall</p>
      <p>F-Measure ROC Area</p>
      <p>Class
0</p>
      <p>We performed the classification of the documents to personalize the author of a
given text. The results are encouraging, especially for the gender dimension. It turned
out that the use of the lexical classes alone is not enough. However, we intend to
integrate other aspects such as the syntactic aspect, morphology, semantics, etc ... On
the other hand, in order to well personalize the author, we intend to explore other
dimensions apart from age and sex We will also address the detection of the native
language, the geographical data of the author, etc ...</p>
      <p>Currently, our approach is based on a statistic learning model where the corpus is
not updated and the test documents already predicted are not included in the training
for the next test. Therefore, in future work, we plan to address this issue to be more
convenient for real-time author profiling scenarios...</p>
      <p>Salton G. and McGill M.J. Introduction to modern information retrieval.1983.
Gaustad T., Estival D. and Hutchinson B. TAT: an author profiling tool with
application to Arabic emails. Proceedings of the Australasian Language</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <given-names>Argamon S.</given-names>
            ,
            <surname>Koppel</surname>
          </string-name>
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Pennebaker</surname>
          </string-name>
          <string-name>
            <given-names>J.</given-names>
            and
            <surname>Schler</surname>
          </string-name>
          <string-name>
            <surname>J.</surname>
          </string-name>
          <article-title>Automatically profiling the author of an anonymous text</article-title>
          ,
          <source>Communications of the ACM</source>
          , pages
          <fpage>119</fpage>
          -
          <lpage>123</lpage>
          . New York,USA,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <given-names>Schler J.</given-names>
            ,
            <surname>Koppel</surname>
          </string-name>
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Argamon</surname>
          </string-name>
          <string-name>
            <given-names>S.</given-names>
            and
            <surname>Pennebaker J</surname>
          </string-name>
          .
          <source>Effects of Age and Gender on Blogging, Proceedings of AAAI Spring Symposium on Computational Approaches for Analyzing Weblogs</source>
          , Stanford, England,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <surname>Koppel</surname>
            <given-names>M. S.</given-names>
          </string-name>
          <string-name>
            <surname>Argamon</surname>
            and
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Shimoni</surname>
          </string-name>
          ,
          <article-title>Automatically categorizing written texts by author gender</article-title>
          ,
          <source>Literary and Linguistic Computing</source>
          , pages
          <fpage>401</fpage>
          -
          <lpage>412</lpage>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          New York,USA,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <source>[11] [12] [13] Technology Workshop</source>
          , pages
          <fpage>21</fpage>
          -
          <lpage>30</lpage>
          , Melbourne, Australia,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          TheBlogAuthorshipCorpus: http://u.cs.biu.ac.il/~koppel/BlogCorpus.htm Hariharan S.,
          <article-title>Gender Prediction in Chat based Medium's Using Text Mining</article-title>
          , in:
          <source>International Journal of Research and Reviews in Information Sciences (IJRRIS)</source>
          ,Kohat, Pakistan,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <given-names>Köse C.</given-names>
            ,
            <surname>Özyurt</surname>
          </string-name>
          <string-name>
            <surname>Ö</surname>
          </string-name>
          . andAmanmyradov G.
          <article-title>Mining Chat Conversations for Sex Identification, Emerging Technologies in Knowledge Discovery and Data Mining (PAKKD),Nanjing</article-title>
          ,China,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <surname>Salton G.</surname>
          </string-name>
          and
          <article-title>Buckley C. Term-weighting approaches in automatic text retrieval, information processing</article-title>
          and management, pages
          <fpage>513</fpage>
          --
          <lpage>523</lpage>
          ,
          <year>1988</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <article-title>Caron S, decision tree learning for python</article-title>
          . http://scaron.info/pydtl.
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          http://www.uni-weimar.de/medien/webis/research/events/pan-13/pan13 web/pan13-ap
          <article-title>-final-results</article-title>
          .pdf
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>