<!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>SeerNet@INLI-FIRE-2017: Hierarchical Ensemble for Indian Native Language Identification</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Native Language Identification</institution>
          ,
          <addr-line>Text Classification, Ensemble</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Royal Jain Venkatesh Duppada Sushant Hiray Seernet Technologies, LLC Milpitas</institution>
          ,
          <addr-line>CA</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Native Language Identification has played an important role in forensics primarily for author profiling and identification. In this work, we discuss our approach to the shared task of Indian Language Identification. The task is primarily to identify the native language of the writer from the given XML file which contains a set of Facebook comments in the English language. We propose a hierarchical ensemble approach which combines various machine learning techniques along with language agnostic feature extraction to perform the final classification. Our hierarchical ensemble improves the TF-IDF based baseline accuracy by 3.9%. The proposed system stood 3rd across unique team submissions..</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>CCS CONCEPTS</title>
      <p>• Computing methodologies → Classification and regression
trees; Support vector machines; Neural networks; Bagging;
Feature selection;</p>
    </sec>
    <sec id="sec-2">
      <title>INTRODUCTION</title>
      <p>Native Language Identification (NLI) is primarily the task of
automatically identifying the native language of an individual based
on their writing or speech in another language. The underlying
assumption here is that an author’s native language (mother tongue)
will often have an influence on the way they express themselves
in another language. Identifying such common patterns across a
group of people can be used to determine their native language.</p>
      <p>
        Identifying the native language of an author has various
applications, primarily in forensics. In forensics, author profiling and
identification using their native language is an important feature
[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Identifying the native language can also be used to provide
personalised training for learning new languages [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Recent work
by [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] focuses on using this in tracing linguistic influences in
multiauthor texts.
      </p>
      <p>Researchers have experimented with a range of machine
learning algorithms, with Support Vector Machines having found the
most success. However, some of the most successful approaches
have made use of classifier ensemble methods to further improve
performance on this task.</p>
      <p>
        In this shared task [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] we focus on identifying the native
language for users from their comments on various Facebook news
posts. From Natural Language Processing (NLP) perspective, NLI is
framed as a multiclass supervised classification task. The shared
task at hand is specific to identifying six Indian native languages:
Tamil, Hindi, Kannada, Malayalam, Bengali and Telugu.
      </p>
      <p>As we explore in the next section, prior work has primarily
dealt with statistical machine learning algorithms including SVMs
and representation methods such as tf-idf. Our approach combines
these various state of the art algorithms using a hierarchical
ensemble. We’ve also experimented with two diferent types of feature
extraction strategies. They are explored further in Section 3.1
2</p>
    </sec>
    <sec id="sec-3">
      <title>RELATED WORK</title>
      <p>Most of the related NLI work can be categorized into 2 domains:
text based and speech based.
2.1</p>
    </sec>
    <sec id="sec-4">
      <title>Text NLI</title>
      <p>
        The 2013 Native Language Identification Shared Task [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] created
an increased interest in the problem by providing a large labelled
dataset. [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] exploited diference in parse structure in texts of
diferent native language speakers for reducing classification error. Very
recently, the 2017 shared task on Native Language Identification
[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] provided additional contributions to the field.
2.2
      </p>
    </sec>
    <sec id="sec-5">
      <title>Speech NLI</title>
      <p>
        [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] demonstrates that the acoustic features along with various
features computed on the transcripts can provide increased accuracy
in dialect identification. [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] achieved good results with i-vector and
glove vector features with a GRU deep learning model.
      </p>
      <p>Starting from the shared task in 2013, quite a few approaches
used ensembling techniques to combine multiple base classifiers to
improve the performance.
3
3.1</p>
    </sec>
    <sec id="sec-6">
      <title>SYSTEM DESCRIPTION</title>
    </sec>
    <sec id="sec-7">
      <title>Feature Extraction</title>
      <p>We observe from the dataset that people often use words and
phrases which belong to their native language transliterated into
English. Some common examples are "Jai ho", "vadi koduthu" etc.
We also expect that people who have the same native language
would have some topics/concerns which would not be shared by
people who have a diferent native language. For example an issue
which revolves around Tamil Nadu would resonate more with Tamil
speaking people as compared to others.</p>
      <p>For our classification system we created two diferent feature
sets from our data. In the first feature set we take raw sentences
as inputs. The sentences are tokenized to create vocabulary of
tokens. This vocabulary is then used to create term
frequencyinverse document frequency features for each sample point which
are then used as feature input in the classification step. One benefit
of term frequency inverse document frequency over simple bag
of words approach is it mitigates the efect of common words and
thus making inputs easier to discriminate. We refrained from using
higher n-grams features due to limited amount of data.</p>
      <p>In the second feature set we leverage our observations stated
above to filter the relevant information. First, for each sentence
we collect words which do not belong to the English vocabulary.
The sentences were tokenized using tweetokenize package1 and we
check whether the word belongs to English vocabulary by using the
English dictionary provided in enchant 2. These words are extracted
for capturing usage of native language in inputs. We then tested
our hypothesis that speakers of common native language would
have topics/concerns which are not shared as strongly by others.
To this end we collected all the documents of native speakers of
each language and extracted topics from it using Latent Dirichlet
Allocation. We observed a good deal of topics which were specific
to speakers of common native language. We think this is a result of
regional and cultural proximity between speakers of common native
1https://www.github.com/jaredks/ tweetokenize
2https://pypi.python.org/pypi/pyenchant/
language. Most of these topics were expressed in the noun forms
and hence to extract this information we collected noun chunks
which are present in the sentences. Noun chunks are extracted
using spacy3. Now we follow procedure similar to first feature set.
We collect these two features for each sentence and then create
a vocabulary for it. This vocabulary is then used to create term
frequency inverse document frequency features which are then
used as inputs for classification.
3.2</p>
    </sec>
    <sec id="sec-8">
      <title>Classification</title>
      <p>
        We perform the classification separately for both feature sets
described above. The training data set in the competition was small
hence, instead of creating separate train and development set, we
performed 10-fold cross validation. On each fold, a model was
trained and the predictions were collected on the remaining dataset.
We calculated mean of accuracy over 10 fold for each type of
classiifer. We also observed the performance of each classifier on points
which were harder to classify i.e those points for which the
decisions were incorrect for majority of classifiers. After evaluation
selected four classifiers, namely LogisticRegression, MLPClassifier,
LinearSVC and RidgeClassifier of sklearn [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], were selected for
ensemble creation. These classifiers were chosen based on their
performance on the cross-validation and also on the basis of their
complimentary performance on hard to predict data points. The
performance of these classifiers on cross validation is shown in
table 1.
      </p>
    </sec>
    <sec id="sec-9">
      <title>3.3 Ensemble</title>
      <p>We created a hierarchical ensemble model for this task, consisting
of two layers of ensembles. First layer consists of two ensemble.
First one consists of four classifiers selected in the previous section
mentioned. These classifiers were trained on feature set 1 ( term
frequency inverse document frequency features on raw input
sentences). Second ensemble also consists of same four classifiers but
were trained on feature set 2, which had term frequency inverse
document frequency features computed using noun chunk and non
English words extracted from each sentence. Each ensemble
predicts the output using the majority vote. We limited the decision to
majority vote as complex weighted voting would have caused
overiftting. Final classification is predicted using a combination of two
ensembles described above. If they output same class, we present
that class as prediction. If they difer, we calculate the confidence
of each ensemble using count of classifiers in the ensemble which
support its decision. Fig 1. depicts our system.</p>
    </sec>
    <sec id="sec-10">
      <title>4 RESULTS</title>
      <p>We can see from table 1. that all four classifiers perform quite
well on both the extracted feature sets especially considering the
classification problem involves six classes. This suggest that the
dataset points are easier to discriminate. We further see that the
accuracy increases significantly on feature set 2, suggesting that
features such as native language words and regional/local topics
are important for identification of native language.</p>
      <p>We presented three submissions. Submission 1 is the output of
ifnal classifier(see Fig 1). Submission 2 is the output of Ensemble 1,
which was trained on raw sentences. Submission 3 was generated
using ensemble 2 trained on feature set 2 (non-English phrase and
noun chunks). We can see that Submission 3 outperform other
two classifiers strengthening our belief on importance of native
language phrases and shared topics in identifying native language
of speaker.</p>
    </sec>
    <sec id="sec-11">
      <title>5 FUTURE WORK AND CONCLUSION</title>
      <p>This paper studies couple of approaches for identification of native
language. First approach measures the power of tf-idf features for
the purpose of classification. Second approach identifies certain
features which separate diferent native language speakers from
each other and utilizes those for better ac curacies of overall system.
We have seen improvement in accuracy due to identification of
discriminating features, however extending this procedure is time
consuming and requires language expertise. Recent studies have
shown use of deep neural networks can be a possible alternate to</p>
      <p>Class
BE
HI
KA
MA
TA
TE
OverAll
creating manually hand-crafted features and can provide better
performance.</p>
    </sec>
    <sec id="sec-12">
      <title>ACKNOWLEDGMENTS</title>
      <p>We would like to thank the organisers of the FIRE-2017 Shared
Task on Native language identification, for providing the data, the
guidelines and timely support.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <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="ref2">
        <mixed-citation>
          [2]
          <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>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Shervin</given-names>
            <surname>Malmasi</surname>
          </string-name>
          and
          <string-name>
            <given-names>Mark</given-names>
            <surname>Dras</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Native Language Identification using Stacked Generalization</article-title>
          .
          <source>arXiv preprint arXiv:1703.06541</source>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Shervin</given-names>
            <surname>Malmasi</surname>
          </string-name>
          , Keelan Evanini, Aoife Cahill, Joel Tetreault, Robert Pugh, Christopher Hamill, Diane Napolitano, and
          <string-name>
            <given-names>Yao</given-names>
            <surname>Qian</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>A Report on the 2017 Native Language Identification Shared Task</article-title>
          .
          <source>In Proceedings of the 12th Workshop on Innovative Use of NLP for Building Educational Applications</source>
          .
          <fpage>62</fpage>
          -
          <lpage>75</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>F.</given-names>
            <surname>Pedregosa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Varoquaux</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Gramfort</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Michel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Thirion</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Grisel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Blondel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Prettenhofer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Weiss</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Dubourg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Vanderplas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Passos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Cournapeau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Brucher</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Perrot</surname>
          </string-name>
          , and
          <string-name>
            <given-names>E.</given-names>
            <surname>Duchesnay</surname>
          </string-name>
          .
          <year>2011</year>
          .
          <article-title>Scikit-learn: Machine Learning in Python</article-title>
          .
          <source>Journal of Machine Learning Research</source>
          <volume>12</volume>
          (
          <year>2011</year>
          ),
          <fpage>2825</fpage>
          -
          <lpage>2830</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <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 Meeting of the Association for Computational Linguistics: Human Language Technologies-Volume 1. Association for Computational Linguistics</source>
          ,
          <fpage>924</fpage>
          -
          <lpage>933</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Ishan</given-names>
            <surname>Somshekar</surname>
          </string-name>
          , Bogac Kerem Goksel, and Huyen Nguyen. [n. d.].
          <source>Native Language Identification</source>
          . ([n. d.]).
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Joel</surname>
            <given-names>R Tetreault</given-names>
          </string-name>
          , Daniel Blanchard, and
          <string-name>
            <given-names>Aoife</given-names>
            <surname>Cahill</surname>
          </string-name>
          .
          <year>2013</year>
          .
          <article-title>A Report on the First Native Language Identification Shared Task.</article-title>
          .
          <source>In BEA@ NAACL-HLT</source>
          .
          <fpage>48</fpage>
          -
          <lpage>57</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Sze-Meng Jojo</surname>
            Wong and
            <given-names>Mark</given-names>
          </string-name>
          <string-name>
            <surname>Dras</surname>
          </string-name>
          .
          <year>2011</year>
          .
          <article-title>Exploiting Parse Structures for Native Language Identification</article-title>
          .
          <source>In Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP '11)</source>
          .
          <article-title>Association for Computational Linguistics</article-title>
          , Stroudsburg, PA, USA,
          <fpage>1600</fpage>
          -
          <lpage>1610</lpage>
          . http://dl.acm.org/citation.cfm? id=
          <volume>2145432</volume>
          .
          <fpage>2145603</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Marcos</surname>
            <given-names>Zampieri</given-names>
          </string-name>
          , Shervin Malmasi, Nikola Ljubešić, Preslav Nakov, Ahmed Ali, Jörg Tiedemann, Yves Scherrer, and
          <string-name>
            <given-names>Noëmi</given-names>
            <surname>Aepli</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Findings of the VarDial Evaluation Campaign 2017</article-title>
          . (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>