<!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>Authorship identification in large email collections: Experiments using features that belong to different linguistic levels</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>George K. Mikros</string-name>
          <email>gmikros@isll.uoa.gr</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Kostas Perifanos</string-name>
          <email>kperifanos@phil.uoa.gr</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Italian Language and Literature, National and Kapodistrian University of Athens</institution>
          ,
          <country country="GR">Greece</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Department of Linguistics, National and Kapodistrian University of Athens</institution>
          ,
          <country country="GR">Greece</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2011</year>
      </pub-date>
      <abstract>
        <p>The aim of this paper is to explore the usefulness of using features from different linguistic levels to email authorship identification. Using various email datasets provided by PAN'11 lab we tested several feature groups in both authorship attribution and authorship verification subtasks. The selected feature groups combined with Regularized Logistic Regression and One-Class SVM machine learning methods performed well above average in authorship attribution subtasks and below average in authorship verification subtasks.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Authorship identification refers to the connection of a text of unknown authorship to
a specific author using a set of quantifiable text features as indicators of the author’s
style. Since the late 1990s authorship identification has known a new impetus based on
developments in a number of key research areas such as Information Retrieval, Machine
Learning and Natural Language Processing [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]
      </p>
      <p>The authorship identification dataset provided by the 5th International Workshop
on Uncovering Plagiarism, Authorship, and Social Software Misuse PAN’11 provided
a test bed for comparing different strategies in both feature selection and
classification algorithms. Our approach to authorship identification is based mainly on the idea
that an author’s style is a complex multifaceted phenomenon affecting the whole
spectrum of his/her linguistic production. Following the old theoretical notion of "double
articulation" of the Prague School of Linguistics we accept that stylistic information is
constructed in blocks of segments of increasing semantic load, from character n-grams,
to word n-grams. In order to capture the multilevel manifestation of stylistic traits we
should detect these features, which belong to many different linguistic levels, and
utterly combine them for achieving the most accurate representation of an author’s style.</p>
    </sec>
    <sec id="sec-2">
      <title>Features and classification algorithms</title>
      <p>
        Authorship identification research has used an impressive array of stylometric features
ranging from characters to syntactic and semantic units. We selected our features taking
into consideration the best practices established in authorship identification research
published from the 1990’s till today [
        <xref ref-type="bibr" rid="ref12 ref4 ref6">12,4,6</xref>
        ]
      </p>
      <p>
        As mentioned above we decided to focus on features that cover a wide range of
linguistic levels and at the same time are easy to implement and are language independent.
We used five single feature groups and in a later stage we combined them in a feature
group labeled "All", a methodology that gave us the best results in the validation set and
is generally accepted as better strategy [
        <xref ref-type="bibr" rid="ref13 ref6">6,13</xref>
        ]. In all our features we normalized their
frequency in relation to the text length. In order to construct the "All" feature group we
used the 1000 most frequent features from each single feature group in the training
corpus resulting in a total vector of 5000 features. The single feature groups we combined
are described below:
– Character Bigrams (cbg): Character bigrams provide a robust indicator of
authorship and many studies have confirmed their superiority in large datasets e.g. [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
– Character Trigrams (ctg): Character trigrams capture significant amount of stylistic
information and have the additional merit that they also represent common email
acronyms like FYI, FAQ, BTW, etc.
– Word Unigrams (ung): Word frequency is considered among the oldest and most
reliable indicators of authorship outperforming sometimes even the n-gram features
[
        <xref ref-type="bibr" rid="ref1 ref3">1,3</xref>
        ].
– Word Bigrams (wbg): Word bigrams have long been used in authorship attribution
with success e.g. [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
– Word Trigrams (wtg): Word trigrams have also been found to convey useful stylistic
information [
        <xref ref-type="bibr" rid="ref10 ref5">5,10</xref>
        ] since they approach more closely the syntactic structure of the
document.
      </p>
      <p>Character n-grams approach phonology and morphology capturing quantitative
information regarding syllable structure, phonotactics, consonant clusters, prefix and
suffix structure. Word n-grams on the other hand approach syntax organization including
different lexical bundles, phrases, collocation structures among others.</p>
      <p>The most frequent unigrams were detected using a custom PERL script which
identified tokens as a sequence of alphanumeric characters using the regular expression
\w+. Later a custom PERL script took as input a list of the most frequent tokens in the
training corpus and produced a vector containing text length normalized frequency of
occurrence of each token in all the texts contained in the datasets.</p>
      <p>
        The most frequent n-grams were detected using the Ngram Statistics Package (NSP)
[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], a PERL module designed word and character n-gram identification. Tokenization
in n-gram identification followed the following rules:
– Token was identified any sequence of alphanumeric characters using the following
regular expression: \w+
– As tokens were identified also the punctuation marks defined in the following
regular expression: [\.,;:\?!]. Punctuation usage often reflects author-related stylistic
habits [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] and n-grams with punctuation can capture better possible these stylistic
idiosyncrasies.
– All tokens were converted to lowercase.
      </p>
      <p>Output files from NSP were converted to vectors using custom PERL script which
aggregated n-gram counts from each text file and normalized their frequency to the
text length. Given the rather huge dimensionality of the extracted features, the task of
training models is time and memory consuming, even for moderate number of training
instances. Therefore a method for solving efficiently large scale classification problem
was required.</p>
      <p>
        For the purposes of the authorship attribution tasks, we used Regularized Logistic
Regression (RLR) as implemented in LIBLINEAR [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], a relatively new and highly
efficient package for classification tasks. For the case of verification tasks we used
OneClass Support Vector Machines proposed by Schölkopf et al. [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] which is provided
by the LibSVM package.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Evaluation</title>
      <p>3.1</p>
      <sec id="sec-3-1">
        <title>Authorship identification task</title>
        <p>In the Authorship identification task we trained our classifier (RLR) using the default
values (Costparameter = 1, Epsilon = 0:01). In order to evaluate the performance
of our classifier in the training set we used both accuracy and F1 averaged in 10-fold
cross-validation of the testing sample. The trained model we obtained from this
procedure was used for prediction in the LargeValid dataset. Its performance was also
measured using accuracy by comparing the predictions made by the classifier with the
labels provided by the GroundTruthLarge and Small Valid files. We compared
different feature groups both single and in different combinations. The best results obtained
from the "All" feature group which contained the 1000 most frequent features from
each single feature group. The results from our experiments in LargeTrain, LargeValid
and SmallTrain, SmallValid datasets are shown in the following table. We report only
the "All" feature group and the single group results since the number of combinations
we examined was large (25 feature group combinations for each dataset):</p>
        <p>From the above table it is obvious that combining the feature groups we get the best
classification accuracy over all the datasets. In order to ensure further the superiority
of the combined feature group we conducted a series of pairwise t-tests comparing
the "All" feature group with each of the single feature groups. Since we had multiple
comparisons a Bonferroni correction was applied to the p level of significance (p =
0:01) of all the t-test conducted. In all the comparisons employed, the "All" feature
group obtained a statistical significant better classification accuracy and F1 over each
one of the single feature groups providing support to our claim that a combined feature
group consisting of features from multiple and different linguistic levels capture more
efficiently an author’s style.
3.2</p>
      </sec>
      <sec id="sec-3-2">
        <title>Authorship verification tasks</title>
        <p>In authorship verification tasks (+ datasets) two subtasks were defined:
– Combined authorship attribution and verification: In this subtask the aim was to
find which of the given texts in the LargeValid+ and SmallValid+ were written
from authors within the corresponding training set and which from external authors.
In the first case we trained a One-Class SVM model with RBF kernel using the
LargeTrain and the Small Train datasets as one class. The trained model was applied
to the LargeValid+ and SmallValid+ datasets in order to identify the texts that were
written from the authors of the training sets. All "unknown" cases were assigned
the label "unknown" and they were removed from the Valid+ datasets. Then we
applied the previously trained models from the authorship identification subtask to
the reduced Valid+ datasets and performed authorship attribution. The final results
obtained from this procedure are shown in the Table 2 below:
– Authorship verification task: The aim of the second subtask was to find if 3 specific
authors (Verify1, 2 and 3 datasets) had written any and what texts from the provided
validation datasets (Verify1+, 2+ and 3+). The procedure followed in this case was
the training of One-Class SVM model using RBF kernel and its subsequent
application to the respective validation datasets. Furthermore, since our training set was
small we used only the 2000 most frequent character bigrams of the training set in
order to train our classifier. The final results from this procedure are shown in Table
3:
The Author Identification competition organized by the PAN 2011 Lab was an
interesting and challenging task in which we had the opportunity to test the usefulness of both
features and machine learning methods in a variety of authorship attribution and
verification scenarios. Our features covered a wide range of linguistic levels, from sub-word
entities (character bigrams, trigrams) to word and hyper-word formations (word
unigrams, bigrams and trigrams). In the authorship attribution subtask we used the above
mentioned features combined with the Regularized Logistic Regression. This approach
scored well in all the performance indices except the macro-averaged precision
probably due to the large dimensionality of our solution. In total our system ranked in the 5th
(out of 13 groups) and 3rd (out of 12 groups) position in the LargeTest and SmallTest
dataset correspondingly.</p>
        <p>On the subtasks of authorship verification our approach scored below the average
performance of the participating research groups. In the combined scenario of
authorship attribution and verification we trained a One-Class SVM in the training datasets
with the same features used in authorship attribution subtask in order to identify and
exclude the texts that weren’t part of the training set. Then we performed an authorship
attribution to the remaining texts. This approach was ranked in the 6th (out of 9 groups)
and 5th (out of 9 groups) position in the LargeTest+ and SmallTest+ dataset
correspondingly. In the plain authorship verification task we trained a One-Class SVM using
the 2000 most frequent character bigrams with little success in the respective datasets.
Our approach obviously suffered from overtraining since we obtained high recall but
low precision values in Verify2+Test and Verify3+Test datasets. More specifically our
system ranked in the 4th (out of 7 groups), the 7th (out of 7 groups) and 5th (out
of 7 groups) position in the Verify1+Test, Verify2+Test and Verify3+Test dataset
correspondingly. We believe that some of the factors affecting the performance of our system
in the verification tasks were the usage of the LIBSVM One-Class algorithm combined
with the usage of the character bigrams in the plain verification subtask. There is a
constant decline of our system’s performance when we employ LIBSMV One-Class in the
combined subtask (Large+, Small+ datasets) and a further decrease when we shrink our
features to character bigrams.</p>
        <p>The results obtained from the authorship attribution subtask are encouraging and
support our claim that authorship is based on textual features that are scattered in a
wide spectrum of linguistic levels. Future research will be directed to detect features
from other linguistic levels and use them in attribution tasks taking into consideration
not only their frequency but also their discriminative power especially in small classes
in order to improve our macro-average performance indices. Furthermore, we will
continue our experimentation in the verification subtask with different one-class learning
algorithms and varying feature groups.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Allison</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Guthrie</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Authorship attribution of E-Mail: Comparing classifiers over a new corpus for evaluation. European Language Resources Association (ELRA), Marrakech</article-title>
          , Morocco (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Banerjee</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pedersen</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>The design, implementation, and use of the ngram statistic</article-title>
          package pp.
          <fpage>370</fpage>
          -
          <lpage>381</lpage>
          (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Coyotl-Morales</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Villaseñor-Pineda</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Montes-y Gómez</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosso</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <source>Authorship Attribution Using Word Sequences, Lecture Notes in Computer Science</source>
          , vol.
          <volume>4225</volume>
          , pp.
          <fpage>844</fpage>
          -
          <lpage>853</lpage>
          . Springer Berlin / Heidelberg (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Grieve</surname>
            ,
            <given-names>J.W.</given-names>
          </string-name>
          :
          <article-title>Quantitative authorship attribution: an evaluation of techniques</article-title>
          .
          <source>Literary and Linguistic Computing</source>
          <volume>22</volume>
          (
          <issue>3</issue>
          ),
          <fpage>251</fpage>
          -
          <lpage>270</lpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Guzmàn-Cabrera</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          , Montes-y
          <string-name>
            <surname>Gómez</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosso</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Villaseñor-Pineda</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>A Web-Based Self-training Approach for Authorship Attribution</article-title>
          , pp.
          <fpage>160</fpage>
          -
          <lpage>168</lpage>
          . Springer-Verlag, Berlin, Heidelberg (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Juola</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Authorship attribution</article-title>
          .
          <source>Foundations and Trends R in Information Retrieval</source>
          <volume>1</volume>
          (
          <issue>3</issue>
          ),
          <fpage>233</fpage>
          -
          <lpage>334</lpage>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Luyckx</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Daelemans</surname>
            ,
            <given-names>W.:</given-names>
          </string-name>
          <article-title>The effect of author set size and data size in authorship attribution</article-title>
          .
          <source>Literary and Linguistic Computing</source>
          <volume>26</volume>
          (
          <issue>1</issue>
          ),
          <fpage>35</fpage>
          -
          <lpage>55</lpage>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Mikros</surname>
            ,
            <given-names>G.K.</given-names>
          </string-name>
          :
          <article-title>Stylometric experiments in Modern Greek: Investigating authorship in homogeneous newswire texts</article-title>
          , pp.
          <fpage>445</fpage>
          -
          <lpage>456</lpage>
          . Mouton de Gruyter, Berlin / New York (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9. R.-E. Fan, e.a.:
          <article-title>Liblinear: A library for large linear classication</article-title>
          .
          <source>Journal of Machine Learning Research 9</source>
          ,
          <fpage>1871</fpage>
          -
          <lpage>1874</lpage>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10. S. Raghavan, e.a.:
          <article-title>Authorship attribution using probabilistic context-free grammars</article-title>
          . In: for Computational Linguistics,
          <string-name>
            <surname>A</surname>
          </string-name>
          . (ed.)
          <source>Proceedings of the ACL 2010 Conference Short Papers</source>
          . pp.
          <fpage>158</fpage>
          -
          <lpage>164</lpage>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Schölkopf</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Platt</surname>
            ,
            <given-names>J.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shawe-Taylor</surname>
          </string-name>
          , J.,
          <string-name>
            <surname>Smola</surname>
            ,
            <given-names>A.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Williamson</surname>
          </string-name>
          , R.C.
          <article-title>: Estimating the support of a high-dimensional distribution</article-title>
          .
          <source>Tech. Rep. MSR-TR-99-87</source>
          , Microsoft Research (
          <year>1999</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Stamatatos</surname>
          </string-name>
          , E.:
          <article-title>A survey of modern authorship attribution methods</article-title>
          .
          <source>Journal of the American Society for Information Science and Technology</source>
          <volume>60</volume>
          (
          <issue>3</issue>
          ),
          <fpage>538</fpage>
          -
          <lpage>556</lpage>
          (
          <year>2009</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>
          ),
          <fpage>378</fpage>
          -
          <lpage>393</lpage>
          (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>