<!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>Mangalore-University@INLI-FIRE-2017: Indian Native Language Identification using Support Vector Machines and Ensemble Approach</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Hamada A. Nayel</string-name>
          <email>hamada.ali@fci.bu.edu.eg</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Support Vector Machines, Ensemble Learning, Native Languages</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>H. L. Shashirekha</string-name>
          <email>hlsrekha@gmail.com</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Science, Mangalore University</institution>
          ,
          <addr-line>Mangalore-574199</addr-line>
          ,
          <country country="IN">India</country>
          ,
          <institution>Benha University</institution>
          ,
          <addr-line>Benha-13518</addr-line>
          ,
          <country country="EG">Egypt</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Department of Computer Science, Mangalore University</institution>
          ,
          <addr-line>Mangalore-574199, Karnataka</addr-line>
          ,
          <country country="IN">India</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Identification</institution>
          ,
          <addr-line>Word Vector Space</addr-line>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper describes the systems submitted by our team for Indian Native Language Identification (INLI) task held in conjunction with FIRE 2017. Native Language Identification (NLI) is an important task that has diferent applications in diferent areas such as social-media analysis, authorship identification, second language acquisition and forensic investigation. We submitted two systems using Support Vector Machine (SVM) and Ensemble Classifier based on three diferent classifiers representing the comments (data) as vector space model for both systems and achieved accuracy of 47.60% and 47.30% respectively and secured second rank over all submissions for the task.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>CCS CONCEPTS</title>
      <p>• Information systems → Web and social media search;
Multilingual and cross-lingual retrieval; • Computing methodologies →
Language resources;</p>
    </sec>
    <sec id="sec-2">
      <title>INTRODUCTION</title>
      <p>
        Native Language Identification (NLI) aims at identifying the native
language (L1) of users writing in another or later learned language
or speech (L2). NLI is an important task that has many
applications in diferent areas such as social-media analysis, authorship
identification, second language acquisition and forensic
investigation. In forensic analysis [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], NLI helps to glean information about
the discriminant L1 cues in an anonymous text. Second Language
Acquisition (SLA) [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] studies the transfer efects from the native
languages on later learned language. In education, automatic
correction of grammatical errors is an important application of NLI
[
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]. NLI can be used as a feature in authorship identification task
[
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], which aims at assigning a text to one of the predefined list of
authors. Authorship identification is used for terrorists
communications investigation [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] and digital crime investigation [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>
        Supervised approaches using machine learning algorithms have
been used for NLI by many researchers. Jarvis et al. [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], used SVM
classification algorithm to create a model for NLI and reported an
accuracy of 83.6%. They used features such as n-grams of words,
Part-of-Speech (PoS) tags and lemmas. Combining multiple
classiifer systems to enhance the final output, such as ensemble classifier
was used for NLI by Tetreault et al. [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]. Bykh and Meurers [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]
applied a tuned and optimized ensemble classifier on NLI 2013 shared
task dataset and achieved an accuracy of 84.82%.
2
      </p>
    </sec>
    <sec id="sec-3">
      <title>TASK DESCRIPTION</title>
      <p>Given a comment I =&lt;w1,w2, . . . ,wN &gt; where each wi , i = 1..n
is either an English language word or a word of native language
written in English (or transliterated to English language) for an
individual social media user, the objective of the task is to
identify the native language of the user. The comment may include
English words in addition to the words of any one native
language written in English. The task considers six Indian languages,
namely Tamil (TA), Hindi (HI), Kannada (KA), Malayalam (MA),
Bengali (BE) and Telugu (TE). Considering the languages as a set of
classes C = {T A, H I , KA, MA, BE,T E} and comments as individual
instances I = {I1, I2, . . . , In } we have formulated the task as a
classification problem that assigns one of the six predefined classes
of C to a new unlabelled instance Iu .
3</p>
    </sec>
    <sec id="sec-4">
      <title>DATASET</title>
      <p>The data sets provided for this task are a collection of comments
from diferent regional newspaper’s facebook pages during
April2017 to July-2017. Training and test sets contain 1233 and 783
ifles respectively. Each training and testing file consists of a set of
comments. Table 1 shows a brief statistics about training set.</p>
    </sec>
    <sec id="sec-5">
      <title>SYSTEM DESCRIPTION</title>
      <p>
        In this section, we will describe the two systems proposed for Indian
Native Language Identification ( INLI) [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] task submissions. The
general frame work of classifier for both systems is shown in figure
1. First phase of our systems is data preprocessing, also known
as corpus cleaning. This phase is important where we exclude
non-informative tokens and phrases. Second phase comprises of
constructing vector space model for the comments (input data).
These two phases are common for both the systems. The next phase
is creating a model using a machine learning algorithm. Support
Vector Machine (SVM) and Ensemble learning are used for the first
and second submission respectively. Details of each phase is given
below.
In this phase, we tokenized each comment Ij into a set of words or
tokens and removed uninformative tokens as follows to get bag of
tokens:• Emoji removal
      </p>
      <p>Emoji is a small image used as a visual presentation to
express emotion. The first step in removing unrelated
information is to remove Emojis as they are not important for the
identification of native language.
• Special characters and digits</p>
      <p>Digits and special characters such as #, %, ... are the
characters which appear frequently in the comments of all the
languages. As such characters do not contribute to the
identification of native language they are removed.
• Modified stop words</p>
      <p>Stop words are the words which appear frequently and do
not contribute to the identification of native language. Hence,
to remove stop words we used a union of diferent stop words
lists, namely,
(1) stop words list extracted from nltk.corpus1 package.
(2) stop words list extracted from stop_words2 package.
(3) Manually written stop words. (The complete list of
manually written stop words is given in Appendix A)
1www.nltk.org/nltk_data/
2pypi.python.org/pypi/stop-words
4.2</p>
    </sec>
    <sec id="sec-6">
      <title>Constructing Vector Space Model</title>
      <p>After preprocessing, the comments will be represented as vector
space model. If &lt;t1,t2, . . . ,tk &gt; are the unique tokens/terms in a
comment Ij , the vector space model for the comment Ij will be
represented as &lt;wj1,wj2, . . . ,wjk&gt; where wji is the weight of the
token/term ti in comment Ij . For term weights, we used Term
Frequency/Inverse Document Frequency (TF/IDF) calculated as
follows:tj = t fj ∗ log
d fj + 1
where t fj is the total number of occurrences of term tj in the
current comment, d fj is the number of comments in which the
token/term tj occurs and N is the total number of comments.
N + 1 !
4.3</p>
    </sec>
    <sec id="sec-7">
      <title>Model Construction for First Submission using SVM</title>
      <p>
        SVM is a binary classifier which creates a hyperplane that
discriminates between the two classes [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. SVM can be extended to
multi-class problems by creating several binary SVMs and
combining them using a one-vs-rest method or one-vs-one method [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
      </p>
      <p>We implemented a six class SVM corresponding to six classes
TA, HI, KA, MA, BE and TE, as per the framework shown in figure
1 for comment identification using Stochastic Gradient Descent
(SGD) for optimizing the parameters of SVM model. SGD algorithm
updates the value of parameter θ of the objective function W (θ ) as
θ = θ − η∇θ E [W (θ )]
where η is step size and E[W (θ )] is the cost function.
4.4</p>
    </sec>
    <sec id="sec-8">
      <title>Model Construction for Second Submission using Ensemble Approach</title>
      <p>
        Ensemble learning is a classification technique, which uses a set
of diferent heterogenous and diverse classifiers as base classifiers
and combines the output of them in diferent approaches to get
the nfial output [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. Ensemble technique tries to overcome the
weakness of some classifiers using the strength of other classifiers.
Figure 2 shows the framework of ensemble learning.
      </p>
      <p>
        We have used 3 base classifiers, namely, multinomial Bayes,
SVM and random forest tree classifiers and combined the results
by weighted voting. Multinomial Bayes classifier is an instance of
Naive Bayes classifier that captures word frequency information in
documents [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. Random forests classifier is a supervised classifier
which comprises of multiple decision trees and each tree depends
on independently sampled random vector [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. The base classifiers
are designed as per the framework shown in figure 1.
      </p>
    </sec>
    <sec id="sec-9">
      <title>5 PERFORMANCE EVALUATION</title>
      <p>Performance evaluation of INLI task is measured as the accuracy of
the system in addition to class-wise accuracy which is calculated
using Precision (P), Recall (R) and F1 measure 3 . For each class, P
is the measure of the number of comments correctly classified over
the total number of comments that system classified as same class.
R is the measure of the number of comments correctly classified
over the actual number of comments of the class. F1 measure is the
harmonic mean of P and R, which can be calculate as
follow:F 1 = 2 ∗ P ∗ R</p>
      <p>P + R</p>
    </sec>
    <sec id="sec-10">
      <title>6 RESULTS AND DISCUSSION</title>
      <p>The class wise accuracy of first submission using SVM based on
SGD algorithm to determine the parameters of the model is shown
in Table 2 in terms of P, R and F1 measure. The overall accuracy
of this submission is 47.60% and it ranks second among all the
submissions.</p>
      <p>We used 10-fold cross-validation technique while training both
classifiers, the cross validation accuracy of both submissions is
given in Table 4.</p>
      <p>Results of both submissions illustrates that the performance of
identifying Hindi is the worst. The reason may be most of the other
languages’ natives have knowledge of Hindi. Our systems depend
essentially on the efective words for each language.</p>
    </sec>
    <sec id="sec-11">
      <title>7 CONCLUSION</title>
      <p>In this work, SVM and Ensemble classifier have been used for INLI.
SVM outperforms the Ensemble classifier which combines diferent
three classifiers. Our Support Vector Machine (SVM) submission
secured second rank respectively over all submissions for the task.</p>
    </sec>
    <sec id="sec-12">
      <title>A COMPLETE LIST OF MANUALLY WRITTEN</title>
    </sec>
    <sec id="sec-13">
      <title>STOP WORDS</title>
      <p>The following is the full list of stopwords used in our
system:{ a, about, above, across, after, afterwards, again,
against, all, almost, alone, along, already, also,
although, always, am, among, amongst, amoungst, amount,
an, and, another, any, anyhow, anyone, anything, anyway,
anywhere, are, around, as, at, back, be, became, because,
become, becomes, becoming, been, before, beforehand,
behind, being, below, beside, besides, between, beyond,
bill, both, bottom, but, by, call, can, cannot, cant,
co, con, could, couldnt, cry, de, describe, detail, do,
done, down, due, down, due, during, each, eg, eight,
either, eleven, else, elsewhere, empty, enough, etc,
even, ever, every, everyone, everything, everywhere,
except, few, fifteen, fifty, fill, find, fire, first,
five, for, former, formerly, forty, found, four, from,
front, full, further, get, give, go, had, has, hasnt,
have, he, hence, her, here, hereafter, hereby, herein,
hereupon, hers, herself, him, himself, his, how, however,
hundred, i, ie, if, in, inc, indeed, interest, into,
is, it, its, itself, keep, last, latter, latterly,
least, less, ltd, made, many, may, me, meanwhile,
yourself, yourselves }</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Ahmed</given-names>
            <surname>Abbasi</surname>
          </string-name>
          and
          <string-name>
            <given-names>Hsinchun</given-names>
            <surname>Chen</surname>
          </string-name>
          .
          <year>2005</year>
          .
          <article-title>Applying Authorship Analysis to Extremist-Group Web Forum Messages</article-title>
          .
          <source>IEEE Intelligent Systems</source>
          <volume>20</volume>
          ,
          <issue>5</issue>
          (Sept.
          <year>2005</year>
          ),
          <fpage>67</fpage>
          -
          <lpage>75</lpage>
          . https://doi.org/10.1109/MIS.
          <year>2005</year>
          .81
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Leo</given-names>
            <surname>Breiman</surname>
          </string-name>
          .
          <year>2001</year>
          .
          <string-name>
            <given-names>Random</given-names>
            <surname>Forests</surname>
          </string-name>
          .
          <source>Machine Learning</source>
          <volume>45</volume>
          ,
          <volume>1</volume>
          (
          <issue>01</issue>
          <year>Oct 2001</year>
          ),
          <fpage>5</fpage>
          -
          <lpage>32</lpage>
          . https://doi.org/10.1023/A:1010933404324
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Serhiy</given-names>
            <surname>Bykh</surname>
          </string-name>
          and
          <string-name>
            <given-names>Detmar</given-names>
            <surname>Meurers</surname>
          </string-name>
          .
          <year>2014</year>
          .
          <article-title>Exploring Syntactic Features for Native Language Identification: A Variationist Perspective on Feature Encoding and Ensemble Optimization</article-title>
          .
          <source>In Proceedings of COLING</source>
          <year>2014</year>
          ,
          <source>the 25th International Conference on Computational Linguistics: Technical Papers</source>
          . Dublin City University and Association for Computational Linguistics,
          <fpage>1962</fpage>
          -
          <lpage>1973</lpage>
          . http://aclanthology. coli.uni-saarland.de/pdf/C/C14/C14-1185.pdf
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Carole</surname>
            <given-names>E</given-names>
          </string-name>
          <string-name>
            <surname>Chaski</surname>
          </string-name>
          .
          <year>2005</year>
          .
          <article-title>WhoâĂŹs at the keyboard? Authorship attribution in digital evidence investigations</article-title>
          .
          <source>International journal of digital evidence 4</source>
          ,
          <issue>1</issue>
          (
          <year>2005</year>
          ),
          <fpage>1</fpage>
          -
          <lpage>13</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Corinna</given-names>
            <surname>Cortes</surname>
          </string-name>
          and
          <string-name>
            <given-names>Vladimir</given-names>
            <surname>Vapnik</surname>
          </string-name>
          .
          <year>1995</year>
          .
          <article-title>Support-vector networks</article-title>
          .
          <source>Machine learning 20, 3</source>
          (
          <year>1995</year>
          ),
          <fpage>273</fpage>
          -
          <lpage>297</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Dominique</given-names>
            <surname>Estival</surname>
          </string-name>
          , Tanja Gaustad, Son Bao Pham, Will Radford, and
          <string-name>
            <given-names>Ben</given-names>
            <surname>Hutchinson</surname>
          </string-name>
          .
          <year>2007</year>
          .
          <article-title>Author profiling for English emails</article-title>
          .
          <source>In Proceedings of the 10th Conference of the Pacific Association for Computational Linguistics</source>
          .
          <fpage>263</fpage>
          -
          <lpage>272</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>John</given-names>
            <surname>Gibbons</surname>
          </string-name>
          .
          <year>2003</year>
          .
          <article-title>Forensic linguistics: An introduction to language in the justice system</article-title>
          . Wiley-Blackwell.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Chih-Wei Hsu</surname>
          </string-name>
          and
          <string-name>
            <surname>Chih-Jen Lin</surname>
          </string-name>
          .
          <year>2002</year>
          .
          <article-title>A Comparison of Methods for Multiclass Support Vector Machines</article-title>
          .
          <source>Trans. Neur. Netw</source>
          .
          <volume>13</volume>
          ,
          <issue>2</issue>
          (March
          <year>2002</year>
          ),
          <fpage>415</fpage>
          -
          <lpage>425</lpage>
          . https: //doi.org/10.1109/72.991427
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Scott</given-names>
            <surname>Jarvis</surname>
          </string-name>
          , Yves Bestgen, and
          <string-name>
            <given-names>Steve</given-names>
            <surname>Pepper</surname>
          </string-name>
          .
          <year>2013</year>
          .
          <article-title>Maximizing Classification Accuracy in Native Language Identification</article-title>
          . (
          <year>2013</year>
          ),
          <fpage>111</fpage>
          -
          <lpage>118</lpage>
          pages. http:// aclanthology.coli.uni-saarland.de/pdf/W/W13/W13-1714.pdf
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Anand Kumar</surname>
            <given-names>M</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Barathi Ganesh</surname>
            <given-names>HB</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shivkaran</surname>
            <given-names>S</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Soman</surname>
            <given-names>K P</given-names>
          </string-name>
          , and Paolo Rosso.
          <year>2017</year>
          .
          <article-title>Overview of the INLI PAN at FIRE-2017 Track on Indian Native Language Identification</article-title>
          .
          <source>In Notebook Papers of FIRE</source>
          <year>2017</year>
          , FIRE-2017. Bangalore, India, December 8-10, CEUR Workshop Proceedings.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>Andrew</given-names>
            <surname>McCallum</surname>
          </string-name>
          and
          <string-name>
            <given-names>Kamal</given-names>
            <surname>Nigam</surname>
          </string-name>
          .
          <year>1998</year>
          .
          <article-title>A comparison of event models for naive bayes text classification</article-title>
          .
          <source>In AAAI-98 workshop on learning for text categorization</source>
          .
          <source>The COLING 2012 Organizing Committee</source>
          ,
          <fpage>41</fpage>
          -
          <lpage>48</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>Lourdes</given-names>
            <surname>Ortega</surname>
          </string-name>
          .
          <year>2009</year>
          .
          <article-title>Understanding Second Language Acquisition</article-title>
          .
          <source>Hodder Education</source>
          , Oxford.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>R.</given-names>
            <surname>Polikar</surname>
          </string-name>
          .
          <year>2006</year>
          .
          <article-title>Ensemble based systems in decision making</article-title>
          .
          <source>IEEE Circuits and Systems Magazine</source>
          <volume>6</volume>
          ,
          <issue>3</issue>
          (Third
          <year>2006</year>
          ),
          <fpage>21</fpage>
          -
          <lpage>45</lpage>
          . https://doi.org/10.1109/
          <string-name>
            <surname>MCAS</surname>
          </string-name>
          .
          <year>2006</year>
          . 1688199
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>Alla</given-names>
            <surname>Rozovskaya</surname>
          </string-name>
          and
          <string-name>
            <given-names>Dan</given-names>
            <surname>Roth</surname>
          </string-name>
          .
          <year>2011</year>
          .
          <article-title>Algorithm Selection and Model Adaptation for ESL Correction Tasks</article-title>
          .
          <source>In Proceedings of the 49th Annual</source>
          <article-title>Meeting of the Association for Computational Linguistics: Human Language Technologies. Association for Computational Linguistics</article-title>
          , Portland, Oregon, USA,
          <fpage>924</fpage>
          -
          <lpage>933</lpage>
          . http://www.aclweb.org/anthology/P11-1093
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <surname>Joel</surname>
            <given-names>Tetreault</given-names>
          </string-name>
          , Daniel Blanchard, Aoife Cahill, and
          <string-name>
            <given-names>Martin</given-names>
            <surname>Chodorow</surname>
          </string-name>
          .
          <year>2012</year>
          .
          <article-title>Native Tongues, Lost and Found: Resources and Empirical Evaluations in Native Language Identification</article-title>
          .
          <source>In Proceedings of COLING 2012. The COLING 2012 Organizing Committee</source>
          ,
          <fpage>2585</fpage>
          -
          <lpage>2602</lpage>
          . http://aclanthology.coli.uni-saarland.de/pdf/C/ C12/C12-1158.pdf
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>