<!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>Employing Relation Between Reading and Writing Skills on Age Based Categorization of Short Estonian Texts</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Avar Pentel</string-name>
          <email>pentel@tlu.ee</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Tallinn University, Institute of Informatics</institution>
          ,
          <country country="EE">Estonia</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this paper, we present results of our study on age-based categorization of short texts as 85 words per author. We introduce a novel set of features that will reliably work with short texts, and is easy to extract from the text itself without any outside databases. These features were formerly known as variables in readability formulas. We tested datasets presented two age groups children and teens up to age 15 and adults 20 years and older. Besides readability features, we also tested widely used n-gram features. Models trained on readability features performed better or as well as models trained on n-gram features. Model generated by Support Vector Machine with readability features yield to f-score 0.953.</p>
      </abstract>
      <kwd-group>
        <kwd>age detection</kwd>
        <kwd>readability features</kwd>
        <kwd>n-grams</kwd>
        <kwd>logistic regression</kwd>
        <kwd>support vector machines</kwd>
        <kwd>bayesian</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>With a wide spread of social media, growing problem is related to false identities.
Younger people might pretend adults to access adult sites, and older people might
pretend youngsters to communicate with youngsters. As we can imagine, this might
lead to serious threats, as for pedophilia or other criminal activities. Thus, automatic
age detection has serious practical application in social media.</p>
      <p>While many works are published on text authorship profiling, social media poses
two problems that are not solved this far.</p>
      <p>
        The first problem is related to the amount of the text needed to make predictions.
Usually a large training data sets and long texts per author are used [
        <xref ref-type="bibr" rid="ref1 ref2">1,2</xref>
        ] to make such
classification models, but in social media, we can only relay on short texts.
      </p>
      <p>
        The second problem is related to the cost of feature extraction. Most of the recent
studies [
        <xref ref-type="bibr" rid="ref3 ref4 ref5 ref6">3-6</xref>
        ] on age detection using word and character n-gram based features and
additional databases or systems, as part of speech tagging, etc., to assess the roles of
the words in a sentence. With millions of users, these techniques are too costly to be
applicable. Ideally, a system could use mostly client side resources.
      </p>
      <p>In this paper, we propose a novel set of features for author’s age based profiling
that solves both previously mentioned problems. We call these new features the
readability features. These features can be easily extracted using client side JavaScript and
they make at least as best classifiers as widely used n-gram based features.</p>
      <p>
        We suppose that authors reading skills and writing skills are correlated, and by
analyzing author’s text readability, we can conclude about his/her education level,
which at least to the particular age is correlated with the actual age of an author.
Therefore, we can employ old readability formulas that were developed already
before computerized era. Automated Readability Index [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], Gunning Fog index [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ],
SMOG [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], Flesch-Kincaid [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], and other readability formulas assess how much
education is needed to understand particular texts. If we take a closer look at the first
pair of these formulas (1,2), we can see, that they are using very simple variables,
which can be easily extracted from text.
      </p>
      <p>ARI = 4.71×  chwaroarcdtsers   sentences  − 21.43</p>
      <p> + 0.5 ×  words 
GFI = 0.4 ×  words  + 100 ×  complexwords 
 sentences   words 
(1)
(2)</p>
      <p>As readability indexes are developed for texts with about 100 words, these are
good candidates for our task.
2</p>
      <p>Methodology</p>
      <p>We collected short texts, average 85 words long, from different social media
sources like Facebook, Blog comments, and Internet forums. All authors were
identified, and they used in their texts Estonian language. We chose balanced and stratified
dataset with 400 instances and with different age groups: 7-15 and 20-48.</p>
      <p>We used three types of features in our training datasets: readability features,
character n-grams and word n-grams.</p>
      <p>Readability features are quantitative data about texts, as for instance an average
number of characters in a word, syllables in word, etc. All together 14 different
features were extracted from each text as shown in Table 1.</p>
      <p>feature
CPW
WPS
CPS
explanation
average number
of characters per
word
average number
of words per
sentence
average number
of commas per
sentence
average number
of syllables per
word</p>
      <p>
        Complex word in our feature set, is a loan from Gunning Fog Index [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], where it
means words with 3 or more syllables. As in the Estonian language average number
of syllables per word is higher, we raised the number of syllables accordingly. We
also created a new and very simple syllable counter for Estonian language.
      </p>
      <p>Another type of features we used, are character n-grams. We extracted all occurred
character bigrams and trigrams and using Χ2 attribute evaluation, we selected 119
character bigrams and 576 character trigrams.</p>
      <p>Similarly, we extracted all occurred word unigrams, bigrams and trigrams and
using Χ2 attribute evaluation, we selected as features 100 word unigrams, 30 word
bigrams and 6 word trigrams.</p>
      <p>
        We made four different datasets: with readability features, with character n-grams,
with word n-grams, and with all features combined. The models were generated using
Support Vector Machine, Logistic Regression and Naïve Bayes algorithm. Motivation
of using these algorithms comes from the literature [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. Java implementations of
listed algorithms that are available in the Weka [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] library were used. 10-fold cross
validation was used for evaluation.
      </p>
      <p>As shown in Table 2, readability features trained a better classifier with Support
Vector Machines and Logistic Regression, yielding to f-scores 0.953, and 0.95
accordingly. Naïve Bayes performed better with n-gram features. Combined feature sets
did not improve the models.</p>
      <p>Employing relations between reading and writing skills, and using features from
old readability formulas proved to be an effective way to predict author age class.
Readability features are in many ways favorable. First, they are easy to extract, they
are self sufficient, and can be computed without any extra help. Syllable counting is
problematic for some languages, but maybe it can be omitted, as syllable count is also
not used in all readability indexes.</p>
      <p>Secondly, when dealing with short texts, content-based features, as n-grams tend to
be very context dependent, the topic can cause a rise of frequency of some words that
can be associated to a particular age group. It seems, that how we write depends less
on the context than what we write.</p>
      <p>However, we have to address limitations of the current study. First, it is obvious,
that we cannot use readability features to categorize older age groups. For most of the
people, reading and writing skills will not improve continuously during the whole life.</p>
      <p>Secondly, it is possible that good age based categorization results are caused by
some specific property of Estonian language. For example, Estonian language has
many agglutinative inflectional suffixes, and therefore grammatical richness yield
directly to more syllables and longer words. Therefore, we look forward to test how
readability features work with other agglutinative and inflectional languages.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Burrows</surname>
            ,
            <given-names>J. All</given-names>
          </string-name>
          <article-title>the way through: testing for authorship in different frequency strata</article-title>
          .
          <source>Literary and Linguistic Computing</source>
          .
          <volume>22</volume>
          ,
          <issue>1</issue>
          , pp.
          <fpage>27</fpage>
          -
          <lpage>47</lpage>
          . Oxford University Press (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Sanderson</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Guenter</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <article-title>Short text authorship attribution via sequence kernels, Markov chains and author unmasking: an investigation</article-title>
          .
          <source>EMNLP'06. Association for Computational Linguistics</source>
          . pp.
          <fpage>482</fpage>
          -
          <lpage>491</lpage>
          . Stroudsburg, PA, USA (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Peersman</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Daelemans</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vaerenbergh</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <article-title>Predicting age and gender in online social networks</article-title>
          ,
          <source>SMUC '11 Proceedings of the 3rd international workshop on Search and mining user-generated contents</source>
          , pp.
          <fpage>37</fpage>
          -
          <lpage>44</lpage>
          . (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Argamon</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          , et al.
          <article-title>Automatically profiling the author of an anonymous text</article-title>
          .
          <source>Communicatin of the ACM</source>
          <volume>52</volume>
          (
          <issue>2</issue>
          ) pp.
          <fpage>119</fpage>
          -
          <lpage>123</lpage>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Nguyen</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rose</surname>
            ,
            <given-names>C.P.</given-names>
          </string-name>
          <article-title>Age prediction from text using linear regression</article-title>
          .
          <source>LaTeCH '11 Proceedings of the 5th ACL-HLT Workshop on Language Technology for Cultural Heritage</source>
          ,
          <source>Social Sciences, and Humanities</source>
          , pp
          <fpage>115</fpage>
          -
          <lpage>123</lpage>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Weren</surname>
            ,
            <given-names>E.R.D.</given-names>
          </string-name>
          et al.
          <article-title>Using simple sontent features for the author profiling task</article-title>
          .
          <source>Notebook for PAN at CLEF</source>
          , (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Marquart</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          et al.
          <article-title>Age and gender identification in social media</article-title>
          .
          <source>CEUR Workshop Proceedings</source>
          , vol
          <volume>1180</volume>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Senter</surname>
            ,
            <given-names>R.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Smith</surname>
            ,
            <given-names>E.A.</given-names>
          </string-name>
          <string-name>
            <surname>Automated Readability</surname>
          </string-name>
          <article-title>Index</article-title>
          .
          <source>Technical report</source>
          , Aerospace Medical Research Laboratories,
          <string-name>
            <surname>Wright-Patterson Air Force Base</surname>
          </string-name>
          ,
          <string-name>
            <surname>Ohio</surname>
          </string-name>
          (
          <year>1967</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Gunning</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <article-title>The Technique of Clear Writing</article-title>
          . New York:
          <string-name>
            <surname>McGraw-Hill</surname>
          </string-name>
          (
          <year>1952</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>McLaughlin</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          <string-name>
            <surname>Harry. SMOG Grading</surname>
          </string-name>
          <article-title>- a New Readability Formula</article-title>
          .
          <source>Journal of Reading</source>
          <volume>12</volume>
          (
          <issue>8</issue>
          ):
          <fpage>639</fpage>
          -
          <lpage>646</lpage>
          (
          <year>1969</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Flesch</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <article-title>A new readability yardstick</article-title>
          .
          <source>Journal of Applied Psychology</source>
          <volume>32</volume>
          : pp.
          <fpage>221</fpage>
          -
          <lpage>233</lpage>
          . (
          <year>1948</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Mihaescu</surname>
          </string-name>
          , M. C.
          <article-title>Applied Intelligent Data Analysis: Algorithms for Information Retrieval and Educational Data Mining</article-title>
          , pp.
          <fpage>64</fpage>
          -
          <lpage>111</lpage>
          . Zip publishing, Columbus, Ohio (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Hall</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          et al.
          <article-title>The WEKA data mining software: an update</article-title>
          .
          <source>SIGKDD Explorations</source>
          , vol
          <volume>11</volume>
          ,
          <issue>1</issue>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Pentel</surname>
            ,
            <given-names>A. Age</given-names>
          </string-name>
          <string-name>
            <surname>Detector</surname>
          </string-name>
          . http://www.tlu.ee/~pentel/age_detector/ (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>