<!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>Corplab INLI@FIRE-2018: Identi cation of Indian Native Language using Pairwise Coupling</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Soumik Mondal</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Athul Harilal</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alexander Binder</string-name>
          <email>binderg@sutd.edu.sg</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Singapore University of Technology and Design (SUTD) 8 Somapah Road</institution>
          ,
          <country country="SG">Singapore</country>
          <addr-line>487372</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2018</year>
      </pub-date>
      <abstract>
        <p>We are going to describe the techniques and methodology used during the implementation of Indian Native Language Identi cation (INLI) that was organized at FIRE 2018. Native Language Identication (NLI) is a process of identifying the native language of a writer by analyzing their text written in another language, which is in this case English. The following six di erent Indian languages were considered in this task: Bengali, Hindi, Kannada, Malayalam, Tamil, and Telugu. We have used state of the art TF-IDF feature vectors with linear-SVM as a classi er in our analysis. The classi er has been used with three di erent strategies (i.e. One-vs-the-rest and Pairwise Coupling strategies as described in [7]) and achieved an accuracy of 42.1% for test TestSet-1 and 31.8% for test TestSet-2.</p>
      </abstract>
      <kwd-group>
        <kwd>Native Language Identi cation Linear SVM TF-IDF Feature One Vs Rest Classi er Pairwise Coupling</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Study on the in uence of native language while using a second language has
been studied since 1950s in the linguistic literature domain. This has motivated
research in NLI that aims to automatically identify the native language of a user
by analyzing the text written in another language. NLI works on the
assumption that the user's linguistic background will lead them to use native language
(mother tongue) phrases/styles more frequently in their learned languages.</p>
      <p>
        NLI is useful in di erent areas such as cyber-forensic, authorship identi
cation, analysis on social media, and second language acquisition. NLI helps
to identify the author's native language by analyzing text from web-blogs to
monitor terrorist communications and for digital crime investigation [
        <xref ref-type="bibr" rid="ref1 ref9">1, 9</xref>
        ].
      </p>
      <p>
        NLI is a nontrivial pattern recognition challenge especially with a small
corpus for training which has several useful applications. Therefore it is gaining
popularity and competitions are being organized in various conferences/events
in recent years [
        <xref ref-type="bibr" rid="ref11 ref5">11, 5</xref>
        ]. Most commonly used features for NLI tasks are
character n-grams, misspellings, mispronunciations, frequency patterns of particular
words, POS n-grams, content words, function words, Term Frequency-Inverse
Document Frequency (TF-IDF), Continuous Bag of Words (CBOW), etc. [
        <xref ref-type="bibr" rid="ref4 ref6">4,
6</xref>
        ], whereas irrespective of the feature vector used, the most dominant choice of
classi er is Support Vector Machine (SVM) [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
The corpus of INLI-2018 contains English comments/opinions of anonymous
users that featured in regional newspapers, which was taken from Facebook.
Users understood one of the following six native languages: Malayalam (MA),
Bengali (BE), Kannada (KA), Telugu (TE), Hindi (HI), and Tamil (TA). The
underlying assumption of this process is that only native speakers will read
the native language newspapers. The distribution of the training instances with
respect to the classes can be seen in Table 1. There are two test sets provided
by the organizers (TestSet-1 and TestSet-2). TestSet-1 is the same test set that
was used in INLI-2017, and TestSet-2 is a new test set given at INLI-2018 [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. In
total TestSet-1 and TestSet-2 has 783 and 1185 instances respectively. Detailed
description about the training set and the TestSet-1 can be found in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
We followed a multi-class classi cation approach as described in [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] for this task.
The detailed description of our approach has been given below.
      </p>
    </sec>
    <sec id="sec-2">
      <title>Data preprocessing</title>
      <p>The given corpus collected from social media includes a signi cant number of
non-ASCII characters like emojis. In general, user-generated social media texts
are very noisy and contains irrelevant textual information for the classi cation
process. Therefore, we remove such non-ASCII characters before feature
extraction process. We have also replaced multiple occurrences of some characters like
"......" or "sorryyyyyyy" with "." or "sorry".
2.2</p>
    </sec>
    <sec id="sec-3">
      <title>Feature extraction</title>
      <p>TF-IDF is a well-known weighting algorithm that measures the importance of
a word in a document, given a collection of documents. The rationale behind
this algorithm is that, if a word appears in a document very frequently, then
it should be a signi cant word for that document and should be given a higher
weight. However if that word appears in many other documents, it is not a
unique identi er and therefore it should be given lower weight. We have used
this feature in our approach.</p>
      <p>TF-IDF is a product of two di erent measures, Term Frequency (TF) and
Inverse Document Frequency (IDF): tf idf (t; d; D) = tf (t; d) idf (t; D), where
t denotes the words/terms; d denotes a given document; D = d1; d2; : : : dn
denotes the collection of the documents. The rst part of this formula tf (t; d)
equates the number of times each word appeared in each document and it
excludes stop words such as "a", "the" etc. . The second part of the formula is
jDj
idf (t; D) = log 1+jfd2D:t2dgj . Note that frequency of a term in the document does
not a ect IDF, and 1 is added to the denominator to avoid division by zero.
2.3</p>
    </sec>
    <sec id="sec-4">
      <title>Classi er models and prediction</title>
      <p>
        In the rst run, we have used one-vs-rest classi er settings. In the second run we
have randomly arranged the set of classes into pairs and for each pair (i.e. i and
j) based on the classi er's probability, we determine if the data ts better into
class i or class j, and then proceed to the next round of the scheme [
        <xref ref-type="bibr" rid="ref7 ref8">7, 8</xref>
        ]. In the
third run, for each class i, we randomly choose k other classes and determine the
mean score for class i when comparing the test data in k pairwise comparisons
with the randomly chosen classes. The class having the highest total score is
selected as the identi ed class [
        <xref ref-type="bibr" rid="ref7 ref8">7, 8</xref>
        ]. We would like to mention that in all of the
above approaches we have used linear-SVM with l2 regularization as a choice of
the classi er.
3
      </p>
      <sec id="sec-4-1">
        <title>Result</title>
        <p>We report our achieved results using three evaluation metrics and it's overall
T P T P
accuracy. The three measures are: P recision = T P +F P , Recall = T P +F N and
F measure = 2 PP rreecciissiioonn+RReeccaallll where TP is True Positive, FP is False</p>
        <p>Run</p>
        <p>Class
BE
HI</p>
        <p>KA
Run-1 MA</p>
        <p>TA
TE
Overall
Accuracy
BE
HI</p>
        <p>KA
Run-2 MA</p>
        <p>TA
TE
Overall
Accuracy
BE
HI</p>
        <p>KA
Run-3 MA</p>
        <p>TA
TE
Overall
Accuracy
Positive, and FN is false negative predicted values. Table 2 shows the achieved
results obtained during di erent runs of the two test sets. We can clearly observe
very poor performance for HI and good performance for BE irrespective of the
test set. We also observe that the overall performance for TestSet-2 is poor when
compared to the TestSet-1.</p>
        <p>We observe that Run-1 performed better than other runs. We believe that
Run-2 and Run-3 techniques could perform well when we have many more classes
present for identi cation.
4</p>
      </sec>
      <sec id="sec-4-2">
        <title>Conclusion</title>
        <p>We have discussed our methodology used to solve the task given at INLI-2018
and have derived some insights from the achieved results. The achieved results
(i.e. 42.1% for test TestSet-1 and 31.8% for test TestSet-2) are moderate when
compared to the other techniques used in this task. We believe that improving
the feature set could improve the results.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Abbasi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chen</surname>
          </string-name>
          , H.:
          <article-title>Applying authorship analysis to extremist-group web forum messages</article-title>
          .
          <source>IEEE Intelligent Systems</source>
          <volume>20</volume>
          (
          <issue>5</issue>
          ),
          <volume>67</volume>
          {
          <fpage>75</fpage>
          (
          <year>2005</year>
          )
        </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>H.B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Singh</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Soman</surname>
            ,
            <given-names>K.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosso</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Overview of the inli pan at re-2017 track on indian native language identi cation</article-title>
          .
          <source>In: CEUR Workshop Proceedings</source>
          . vol.
          <year>2036</year>
          , pp.
          <volume>99</volume>
          {
          <issue>105</issue>
          (
          <year>2017</year>
          )
        </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>Barathi-Ganesh</surname>
            ,
            <given-names>H.B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Soman</surname>
            ,
            <given-names>K.P.</given-names>
          </string-name>
          :
          <article-title>Overview of the inli@ re2018 track on indian native language identi cation</article-title>
          .
          <source>In: CEUR Workshop Proceedings</source>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <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>
          . In: BEA@
          <string-name>
            <surname>NAACL-HLT</surname>
          </string-name>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Malmasi</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Evanini</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cahill</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tetreault</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pugh</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hamill</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Napolitano</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Qian</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          :
          <article-title>A report on the 2017 native language identi cation shared task</article-title>
          .
          <source>In: 12th Workshop on Building Educational Applications Using NLP</source>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Mechti</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Abbassi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Belguith</surname>
            ,
            <given-names>L.H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Faiz</surname>
            ,
            <given-names>R.:</given-names>
          </string-name>
          <article-title>An empirical method using features combination for arabic native language identi cation</article-title>
          .
          <source>In: 2016 IEEE/ACS 13th International Conference of Computer Systems and Applications (AICCSA)</source>
          . pp.
          <volume>1</volume>
          {
          <issue>5</issue>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Mondal</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bours</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Person identi cation by keystroke dynamics using pairwise user coupling</article-title>
          .
          <source>IEEE Transactions on Information Forensics and Security</source>
          <volume>12</volume>
          (
          <issue>6</issue>
          ),
          <volume>1319</volume>
          {
          <fpage>1329</fpage>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Mondal</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bours</surname>
            ,
            <given-names>P.:</given-names>
          </string-name>
          <article-title>A continuous combination of security &amp; forensics for mobile devices</article-title>
          .
          <source>Journal of Information Security and Applications</source>
          <volume>40</volume>
          , 63 {
          <fpage>77</fpage>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Perkins</surname>
          </string-name>
          , R.:
          <article-title>New Threats and Countermeasures in Digital Crime and Cyber Terrorism, chap. Native Language Identi cation (NLID) for Forensic Authorship Analysis of Weblogs</article-title>
          , pp.
          <volume>213</volume>
          {
          <fpage>234</fpage>
          .
          <string-name>
            <given-names>IGI</given-names>
            <surname>Global</surname>
          </string-name>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Stehwien</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pad</surname>
            ,
            <given-names>S.:</given-names>
          </string-name>
          <article-title>Generalization in native language identi cation { learners versus scientists</article-title>
          .
          <source>In: Proceedings of CLiC-IT</source>
          . pp.
          <volume>264</volume>
          {
          <fpage>268</fpage>
          .
          <string-name>
            <surname>Trento</surname>
          </string-name>
          ,
          <string-name>
            <surname>Italy</surname>
          </string-name>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Tetreault</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Blanchard</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cahill</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>A report on the rst native language identi cation shared task</article-title>
          .
          <source>In: In Proceedings of the Eighth Workshop on Innovative Use of NLP for Building Educational Applications</source>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>