<!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>Statistical testing based feature selection for Native Language Identi cation INLI@FIRE2018</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>B. Bharathi</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bhuvana J</string-name>
          <email>bhuvanajg@ssn.edu.in</email>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>SSN College of Engineering</institution>
          ,
          <addr-line>Chennai, Tamilnadu</addr-line>
        </aff>
      </contrib-group>
      <abstract>
        <p>Native Language Identi cation is the process of determining the language native to the author from the written text. We have proposed a system that uses machine learning algorithms to identify the native language from the written text. We extracted Term frequencyinverse document frequency (Tf-idf) as the feature from the given document and used statistical based measures such as Analysis of Variance -F value measure, Chi - square measure for selecting the best features. The selected features are fed to Multi Layer Perceptron and Stochastic Gradient Descent classi er to classify the native language into one of 6 listed Indian languages. This work was submitted to Indian Native Language Identi cation task INLI@FIRE2018. We have investigated the performance of the proposed system using three classi ers namely Multi Layer Perceptron (MLP) classi er with Analysis of Variance -F value measure, MLP classi er with Chi - square measure and Stochastic Gradient Descent classi er with Chi - square measure. From the results we have observed that SGD classi er with Chi - square measure has performed better than the other two classi ers.</p>
      </abstract>
      <kwd-group>
        <kwd>Native Language Identi cation Tf-idf MLP SGD Analysis of Variance-F value measure Chi - square</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Native Language Identi cation (NLI) is the process of identifying the native
language of the author based on written texts in an another language. In uence of
one language can a ect the usage of other language by a same speaker referred
to as cross-linguistic in uence (CLI). CLI has played an important role in
Second Language Acquisition (SLA) which studies and examines the e ects of one
language on other learned languages.</p>
      <p>The in uence of the native language will be re ected in the text through the
usage of patterns. Identifying such patterns forms the basics of NLI. NLI has
been identi ed as a multiclass classi cation task, for which various traditional
machine learning approaches can be used to identify the native language. NLI
nd its applications in educational scenarios, where feedback can be provided
to language learners, in authorship pro ling, security, personalized grammar
correction etc.</p>
      <p>
        The proposed work for NLI of 6 languages has used three models such as
Multi Layer Perceptron classi er with Analysis of Variance -F value measure,
MLP classi er with Chi - square measure and Stochastic Gradient Descent
classi er with Chi - square measure. This proposed work is submitted for the shared
task on INLI @FIRE 2018 [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Against the existing trend of using deep
learning, we have used tradional machine learning algorithms, since the size of the
datasets used by INLI @FIRE 2018 shared task are too small. Related work in
this eld of research is given in section 2, the proposed system is elaborated in
section 3. Section 4 provides the details of experimental setup with the analysis
on performance in section 5 and section 6 concludes the paper.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Related Work</title>
      <p>
        This section gives the overview of similar work done in the led of NLI. Most
of the widely used features for NLI [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] are part-of-speech, lexical features such
as sentence length, document length, type/token ration, character and word
ngrams, syntactic features namely parse tree and dependency-based features,
lexical, and stylistic features, character n-grams, POS bi-grams, with some spelling
mistakes character, word n-grams, writing quality markers, tree substitution
Grammars and dependency features. The classi ers commonly used in literature
are SVM classi er, Nave Bayes classi er, logistic regression learners etc.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] the authors have used Tf-idf weighting schemes on features such as
n-gram words/characters/POS tags with linear classi ers like support vector
machines, logistic regressions and perceptrons. This work was submitted to 2013
NLI Shared Task in the closed-training track and has achieved 84.55%
accuracy by 10 fold cross-validation testing on the TOEFL11 corpus. Authors of
[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] have also used Tf-idf for feature extraction and SVM as classi er which
reported a overall accuracy of 43.60%. Their work was one of the submissions of
INLI@FIRE2017 tasks.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], the authors have integrated several approaches into an ensemble for
NLI. Two Resnets have been applied on linguistic features whose outputs are
combined and given to a fully connected layer. A sentence level bidirectional
LSTM was used to capture syntactic patterns over tokens and related POS tags
from the Stanford CoreNLP toolkit were used. For NLI classi cation, features
are extracted from misspelled words as well and are given to a logistic regression
classi er. Continuous bag-of-words (CBOW), which is the mean of embedding
of all words in the essay was used as a feature in simple neural network. It
has been observed that the tradional methods have yield better results in the
required task.
      </p>
      <p>
        Three advanced ensemble models are evaluated in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] on three data sets.
SVMs with a Radial Basis Function (RBF), Logistic regression, Perceptron,
ridge regression, Decision Trees, Linear Discriminant Analysis, Quadratic
Discriminant Analysis, k -nearest Neighbors and Nearest Centroid are used as
metaclassi ers for NLI. The outputs generated by the meta-classi ers are either
discrete labels or continuous values. Authors have used McNemars test a
nonparametric method as statistical testing for comparing NLI systems. The
metaclassi er, mean probability combiner, the tree-based method namely Random
forest and LDA-based method are observed to outperform in their performances.
      </p>
      <p>
        The other work that supports the ensemble of classi ers for NLI is [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], which
was the extension of work submitted to 2017 Native Language Identi cation
shared task. To avoid excessive use of hand engineered features, [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] has used
simple word and sub-word features and are used to train Naive Bayes classi er
with 11 classes. Also used Gated Recurrent Units (GRU) as complementary
model for invsetigation.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], recurring word-based n-grams, part-of-speech, dependencies, lemma
realization and syntactic parse tree are used as features for NLI with accuracy
for open and close task namely 84.5% and 82.2% respectively. This work was a
participant task submitted to NLI Shared Task 2013 and used an ensemble that
integrates features and are evaluated on TOEFL11 and International Corpus
of Learner English (ICLE), BUiD (British University in Dubai) Arab Learner
Corpus (BALC), International Corpus Network of Asian Learners of English
(ICNALE), Tbingen Telugu NLI Corpus (TTEL-NLI) and Non-TOEFL11 (NT11)
corpora.
      </p>
      <p>
        Another work that used ensemble of classi ers that also a participant of NLI
Shared Task 2017 is reported in [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Along with lexical features, function words
and Spelling errors, phonemes were also extracted for their task. These features
are used to train both Support Vector Machines (SVM) and Fully Connected
Neural Networks (FCNN) as classi ers. Outputs of these calssi ers are integrated
using a voting scheme. Mean, Median and Plurality vote are the three di erent
voting schemes used to combine the outputs of two classi ers. Also observed that
the performance of CNN speci cally for NLI is not good enough when compare
with traditional machine laerning algorithms.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Proposed approach</title>
      <p>
        The task of Indian Native Language Identi cation (INLI) has been carried out
using machine learning algorithms. Three runs have been submitted for this
INLI@FIRE2018 task. First submission has used Tf-idf features with Analysis
of Variance (ANOVA) F-values for selecting best features. These features are
trained using Multi Layer Perceptron (MLP) classi er. Second submission used
Tf-idf features with Chi - square value feature selection method. These features
are trained using same MLP classi er. Third submission used the Tf-idf features
with Chi - square value feature selection method. These features are trained using
Stochastic Gradient Decent (SGD) classi er. The details of the tasks have been
explained in the following sections. The proposed approach uses the following
steps to carry out the INLI task.
(i) Data preparation
(ii) Feature extraction
(iii)Feature selection and
(iv) Classi cation
The architecture of the proposed system is shown in gure 1.
The dataset used for this research are Facebook comments which are presented
in the form of XML les. From this XML le, the relevant text portions, that
is, text given between the comment tags are extracted. From the extracted text,
special symbols, punctuation symbols are removed before processing the input
text. Minidom library from XML.dom package [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] was used to extract the text
presented between comment tag. The text in each le is then converted into a
Python lists. In this work six lists were created for each of the language given in
the dataset.
3.2
      </p>
      <sec id="sec-3-1">
        <title>Feature extraction</title>
        <p>Tf-idf (Term frequency-inverse document frequency) is used in the proposed
approach to represent the feature of the given text. The Tf-idf weight is the one
that is used widely in natural language processing applications. It is a statistical
measure which is used to assess how signi cant is a word is to a document in a
corpus. The signi cance increases as the number of times a word occurs increases
in the document. The feature extraction is done using the tool TF-IDF vectorizer
method from the scikit learn library.</p>
      </sec>
      <sec id="sec-3-2">
        <title>Feature selection</title>
        <p>From the extracted Tf-idf features, the best features are selected using two
statistical feature selection algorithms namely Analysis of Variance -F value measure
(ANOVA) and Chi-square methods in the proposed approach. ANOVA and
Chisquare methods are lter based feature selection methods. These methods select
the best discriminative features from the training data. These statistical feature
selection methods are applied on the categorically independent features. The
analysis of variance is a statistical inference test that compares multiple groups
at the same time. The chi-square test is a statistical test of independence to
determine the dependency of two variables. Chi-square statistics between every
feature variable and the target variable observes the existence of a relationship
between the variables and the target. If the target variable is independent of the
feature variable, those features are discarded. If they are dependent, the feature
variable is considered to be very important. The implementation of feature
selection is carried out using f classif and chi2 packages from scikit-learn Python
library.
3.4</p>
      </sec>
      <sec id="sec-3-3">
        <title>Classi cation</title>
        <p>The proposed approach uses Multi Layer Perceptron (MLP) classi er for
submission 1 &amp; 2. Stochastic Gradient Decent algorithm is used for submission 3.
MLP is a kind of feedforward neural network with layers namely, input layer,
hidden layers and output layer. MLP forms a directed graph where the input
vector ows only in one direction through the intermediate layers. Each node has
a neuron with a nonlinear activation function excepting the input nodes. With
multiple layers, a MLP performs back propagation which is a supervised learning
technique that classi es non linearly separable samples. For training with multi
layer perceptron network, the following con gurations were used. Number of
hidden layers for the network is 2, number of hidden nodes in each hidden layer is
25 as shown in gure 2, the activation function used in the hidden layer is RELU
(Recti ed Linear Unit) and Adam optimizer is used for weight optimization.</p>
        <p>Stochastic Gradient Decent classi er is a linear classi er used for supervised
learning. SGD is the variant of Gradient Decent algorithm which is used to
minimize the least square error. The problem with Gradient Descent is when
the data set is huge, parameter calculation becomes expensive. The weight is
optimized using the following equation.</p>
        <p>w = w</p>
        <p>OQi(w)
(1)
In equation 1, Qi(w) refers to the gradient of the prediction error for the model
on the training data, w is the weight being optimized and is the learning rate.
In SGD, a sample of training set or one training value is used to calculate the
parameters instead of the entire sample space on each iteration. When compared
to other classi ers, this works much faster. By combining several binary classi ers
together in one versus all manner, SGD performs a multi-class classi cation. A
binary classi er is trained to learn to distinguish between one and that of the
remaining N-1 classes of the total N classes. During the testing phase, for each of
the classi er, signed distance to the hyperplane which is referred to as con dence
score is calculated and the class with the maximum con dence is chosen.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Experimental setup</title>
      <p>
        The proposed approach used the data set provided by the INLI@FIRE 2018
shared task [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. The data set consists of Text/XML les which in turn have a set
of Facebook comments in English language. Six Indian languages are proposed to
consider for this shared task on native language identi cation. They are Tamil,
Hindi, Kannada, Malayalam, Bengali and Telugu. The details of the number of
training data for each of the language is given in Table 1.
      </p>
    </sec>
    <sec id="sec-5">
      <title>Performance analysis</title>
      <p>Two test sets have been provided by INLI@FIRE 2018 shared task for testing.
The number of documents in test set 1 is 783. The number of documents in test
set 2 is 1185. The cross validation accuracy (with 5 folds) of the proposed work
for the three submissions are given in Table 2.</p>
      <p>The lack of accuracy or the errors are mainly due to the lack of reasonable
number of training samples in the given data set. The performance of the
proposed system for Indian language identi cation task have been measured using
the metrics namely precision, recall and F1-measure for each language for the
two test sets. The overall accuracy of proposed system has also been estimated.
The performance of the proposed system using MLP classi er with Analysis of
Variance -F value measure is given in Table 3.
Class</p>
      <p>Similar to the previous proposed model, the model using MLP classi er with
Chi - square measure has also identi ed Bengali language with highest F1 score
than the other languages in both the test sets.</p>
      <p>The performance of the proposed system using SGD classi er with Chi
square measure is given in Table 5. SGD classi er with Chi - square measure
has classi ed Bengali language with highest F1 score in both test datasets with
65% and 44.4% respectively. When compared with the other two models of the
proposed work, SGD classi er with Chi - square measure has achieved overall
accuracy of 37% for test set 2 and 46.2% for test set 1 in NLI task. This might
be because the linear classi er, SGD which is actually a Bayesian that relies on
prior distribution that improves mean squared error and thereby the improving
prediction accuracy. This performance of the proposed system using SGD with
Chi-square measure has been evaluated to be the best performing model among
the INLI@FIRE2018 submitted tasks.
Our proposed approach has used a machine learning algorithm to identify the
native language of the given document using Tf-idf features. From the extracted
features we used statistical measures such as Analysis of Variance -F value
measure, Chi - square measure for selecting the best features. These are given to
MLP and SGD classi ers to classify the Indian Native Languages. We observed
that SGD with chi-square measure has performed better than the MLP classi er
with Analysis of Variance -F measure and MLP with chi-square measure.
Performance of the proposed work can be improved further by using socio linguistic
features from the text.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Lightweight</surname>
            <given-names>DOM</given-names>
          </string-name>
          implementation, https://docs.python.
          <source>org/3</source>
          .0/library/xml.dom.minidom.html
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>Anand</given-names>
            <surname>Kumar</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.</surname>
          </string-name>
          ,
          <string-name>
            <surname>HB</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.G.</given-names>
            ,
            <surname>Singh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Soman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            ,
            <surname>Rosso</surname>
          </string-name>
          ,
          <string-name>
            <surname>P.</surname>
          </string-name>
          :
          <article-title>Overview of the INLI PAN at</article-title>
          FIRE-2017
          <source>Track on Indian Native Language Identi cation In: Notebook Papers of FIRE</source>
          <year>2017</year>
          , FIRE-2017, Bangalore, India, December 8-10, CEUR Workshop proceedings.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Anand Kumar</surname>
            <given-names>M</given-names>
          </string-name>
          ,
          <string-name>
            <surname>B.G.B.</surname>
          </string-name>
          , P., S.K.:
          <article-title>Overview of the INLI@FIRE-2018 Track on Indian Native Language Identi cation</article-title>
          .
          <source>In: In workshop proceedings of FIRE</source>
          <year>2018</year>
          , FIRE-2018, Gandhinagar, India, December 6-9, CEUR Workshop Proceedings.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Bharathi</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Anirudh</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bhuvana</surname>
          </string-name>
          , J.:
          <string-name>
            <surname>Bharathi</surname>
            <given-names>SSN</given-names>
          </string-name>
          @
          <article-title>INLI-FIRE-2017: SVM based approach for Indian Native Language Identi cation</article-title>
          .
          <source>In: International conference on Forum of Information Retrieval Evaluation (FIRE</source>
          <year>2017</year>
          )
          <article-title>CEUR proceedings</article-title>
          . vol.
          <year>2036</year>
          , pp.
          <volume>110</volume>
          {
          <issue>112</issue>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Bjerva</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Grigonyte</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <article-title>Ostling</article-title>
          , R.,
          <string-name>
            <surname>Plank</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Neural networks and spelling features for native language identi cation</article-title>
          .
          <source>In: EMNLP</source>
          . pp.
          <volume>235</volume>
          {
          <fpage>239</fpage>
          .
          <article-title>Association for Computational Linguistics (</article-title>
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Bykh</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vajjala</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Krivanek</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Meurers</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Combining shallow and linguistically motivated features in native language identi cation</article-title>
          .
          <source>In: Proceedings of the Eighth Workshop on Innovative Use of NLP for Building Educational Applications</source>
          . pp.
          <volume>197</volume>
          {
          <issue>206</issue>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Chan</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jahromi</surname>
            ,
            <given-names>M.H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Benetti</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lakhani</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fyshe</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Ensemble methods for native language identi cation</article-title>
          .
          <source>In: Proceedings of the 12th Workshop on Innovative Use of NLP for Building Educational Applications</source>
          . pp.
          <volume>217</volume>
          {
          <issue>223</issue>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Gebre</surname>
            ,
            <given-names>B.G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zampieri</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wittenburg</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Heskes</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Improving native language identi cation with TF-IDF weighting</article-title>
          .
          <source>In: the 8th NAACL Workshop on Innovative Use of NLP for Building Educational Applications (BEA8)</source>
          . pp.
          <volume>216</volume>
          {
          <issue>223</issue>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Kepler</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Astudillo</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Abad</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Fusion of Simple Models for Native Language Identi cation</article-title>
          .
          <source>In: Proceedings of the 12th Workshop on Innovative Use of NLP for Building Educational Applications</source>
          . pp.
          <volume>423</volume>
          {
          <issue>429</issue>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Malmasi</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dras</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Native language identi cation using stacked generalization</article-title>
          .
          <source>arXiv preprint arXiv:1703.06541</source>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Malmasi</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dras</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Native language identi cation with classi er stacking and ensembles</article-title>
          . Computational
          <string-name>
            <surname>Linguistics</surname>
          </string-name>
          (In Press),
          <volume>1</volume>
          {
          <fpage>70</fpage>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>