<!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>Plagiarism detection using information retrieval and similarity measures based on image processing techniques</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Marta R. Costa-jussa`</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Rafael E. Banchs</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jens Grivolla</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Joan Codina</string-name>
          <email>joan.codinag@barcelonamedia.org</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Barcelona Media - Innovation Center Av Diagonal 177</institution>
          ,
          <addr-line>9th floor, 08018 Barcelona</addr-line>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper describes the Barcelona Media Innovation Center participation in the 2nd International Competition on Plagiarism Detection. Particularly, our system focused on the external plagiarism detection task, which assumes the source documents are available. We present a two-step a approach. In the first step of our method, we build an information retrieval system based on Solr/Lucene, segmenting both suspicious and source documents into smaller texts. We perform a search based on bag-of-words which provides a first selection of potentially plagiarized texts. In the second step, each promising pair is further investigated. We implemented a sliding window approach that computes cosine distances between overlapping text segments from both the source and suspicious documents on a pair wise basis. As a result, a similarity matrix between text segments is obtained, which is smoothed by means of low-pass 2-D filtering. From the smoothed similarity matrix, plagiarized segments are identified by using image processing techniques. Our results were placed in the middle of the official ranking, which considered together two types of plagiarism: intrinsic and external.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Plagiarism can be defined as use or close imitation of the language and thoughts of
another author and the representation of them as one’s own original work1. The
challenge of automatic identification of plagiarism can be divided into: external and
internal plagiarism detection. In the case of external plagiarism a corpus of potential source
documents is available. We focus exclusively on the external plagiarism. This type of
plagiarism has been investigated in many works, and some of the most recent research
can be found in the context of the 1st International Competition on Plagiarism
Detection [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Additionally, several commercial systems can be found in the web [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. This
paper reports our first experience with the plagiarism challenge. We build a two-step
plagiarism detection system which uses information retrieval and similarity measures
techniques.
1 http://en.wikipedia.org/wiki/Plagiarism
      </p>
      <p>We found the computational cost of finding plagiarism within a large corpus of
documents to be one of the major difficulties in this task. It is therefore important to
efficiently preselect potential plagiarism candidates ahead of the more costly in-depth
matching. We have not been able to apply the full processing to all documents in the test
collection in the available time, even though we did a rather strict selection of potentially
plagiarized sections in our first processing step (at the expense of lowered recall). Our
ability to optimize various parameters was also hindered by the computational difficulty
of executing representative test runs.</p>
      <p>The rest of the paper is structured as follows. Section 2 describes the plagiarism
detection procedure which included two steps and postprocessing. Section 3 reports
results for each step of the procedure in the test collection in terms of recall, precision and
granularity, as well as the results of the official evaluation. Finally, section 4 concludes.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Plagiarism detection procedure</title>
      <p>In this section we describe in detail our plagiarism detection procedure. It consists of
two steps and postprocessing. Parameters were adjusted through informal preliminary
experiments on small subsets of the available data. In the future, we will have to perform
further experiments to adjust the parameters for all the steps in a more systematic way.
2.1</p>
      <sec id="sec-2-1">
        <title>1st step</title>
        <p>We segment both the source and suspicious documents in sub-documents of 100 words,
with an overlap of 50%. We choose 100 words because the shortest plagiarism contains
a minimum of 50 words. All sub-documents are lowercased, stemmed and tokenized.
Stopwords are removed, considering as stopwords the 80 more frequents in the entire
collection. We index both source and suspicious documents into a single index (in 9
hours2) and the resulting test collection contains 18M documents.</p>
        <p>All suspicious documents are used as queries. We consider short (less than 1000
lines) and long (more than 1000 lines) documents. We perform a query using the N
most “interesting” terms and force a matching of 35%. Interesting terms are those that
have a higher tf-idf score. The N is set to 30 for short documents and to 20 for long
documents. The N choice is limited due to time constraints. It is not feasible to
perform a query taking all the terms into account, as each query would be very expensive
computationally. The choice of 20 and 30 allows a trade-off between the detection of
possible plagiarism candidates and computational cost. For each document segment
used as a query, the top ranked match is considered as a plagiarism candidate. This
search is illustrated in Figure 1.</p>
        <p>The information retrieval system was implemented by using Solr, which is an
opensource search server based on the Apache-Lucene search library3. In the test collection,
this phase reports 175k possible cases of plagiarism out of 10M suspicious fragments
of 100 words. Consecutive suspicious fragments coming from consecutive source
fragments count as a single plagiarism. This first step was computed in less than two weeks.
2 All experiments were processed on a single machine: Intel(R) Xeon(R) CPU E335 2GHz, 1
processor, 4 cpu cores, 4M cache and 28G RAM.
3 http://lucene.apache.org/solr/tutorial.html
2.2 2nd step
The starting point of this 2nd step is the set of plagiarism candidates from the 1st step.</p>
        <p>
          This 2nd step is similar to the dotplot technique [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ]. For each pair of candidates,
we implemented a sliding window approach that computes cosine distances between
overlapping text segments from both the source and suspicious documents in a pair
wise basis, using a sliding window of 50 words. As a result, a similarity matrix between
text segments is obtained. If we represent this similarity matrix as an image, it results in
a very noisy image. That is why we smooth it by using a low-pass filter, in particular a
2-dimensional hamming window of 5x5. Then, we choose a threshold above which we
consider the text may be plagiarized.
        </p>
        <p>For each fragment above this threshold, we extract the begining and the end
positions (see Figure 2). Finally, we compute a measure based on word matching: W M =</p>
        <p>Ncoincidences where Ncoincidences is the number of words equal in the source
pNsourceNsuspicious
and suspicious text fragments; Nsource is the number of words in the source text
fragment and Nsuspicious is the number of words in the suspicious text fragment. The final
candidates are reported as detected plagiarisms only if the W M is over 0:3.</p>
        <p>This phase is computationally expensive. The 175k cases of plagiarism reported
from first step are computed in 4 weeks using 4 parallel processes on our machine.
2.3</p>
      </sec>
      <sec id="sec-2-2">
        <title>Postprocessing</title>
        <p>
          Finally, we observed that our plagiarism detection reported overlapped plagiarism
sections from the same source document. Therefore, we performed a postprocessing which
compacted all overlapped sections and additionally, all sections which were separated
less than 5000 characters. This step is intended to approach granularity to one. There is
a tradeoff between precision and granularity, and the postprocessing parameters would
need to be adjusted depending on the specific objective measure.
We initially performed experiments with the plagiarism collection proposed in the 1st
International Competition on Plagiarism Detection [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ]. We used small subsets of this
collection to conduct a trial-and-error training of the different parameters for the first
and second processing step.
        </p>
        <p>
          Here we report results using only the external test part of this year’s plagiarism
collection (as described in [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ]). Table 1 reports the results when using each phase of the
process, as well as the official evaluation results.
        </p>
        <p>
          Regarding the first step, it would be interesting to test if retrieving more than one
document could improve the recall. Additionally, notice that external plagiarisms were
created by using the following offuscations strategies: random text operations,
semantic word variation, POS-preserving word shuffling and translation [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ]. Our procedure
uses bag-of-words, which implies that is not able to detect offuscations based on
semantic word variation or translation. Regarding the second step, there are many
parameters that were optimized informally using only very small subsets of the training data,
which could explain such a low performance. While precision increases as expected,
recall drops dramatically. Using an optimized set of parameters it should be possible to
increase precision while avoiding a great loss regarding recall.
        </p>
        <p>We were not able to finish the task on time for the official submission. We were able
to process 100% of the documents with the first step, but only 26% of the documents
with the second step. Therefore, our submission consisted of the second step output
when available, and the first step output otherwise. In all cases, we performed the
postprocess. Our results were ranked in the 12th position out of 18. Notice that the lowest
measure is the precision. The low score in precision is due to the fact that we were not
able to finish the second step of our plagiarism detection procedure on time.
4</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Conclusions</title>
      <p>This paper presented a two-step system for plagiarism detection based on information
retrieval and sentence similarity. The first step uses a standard information retrieval
system based on bag-of-words. The second step computes a similarity matrix among the
first step candidates and it uses image processing techniques to filter out non-plagiarized
texts. We report results ranked towards the middle of the field of participants in the 2nd
International Competition on Plagiarism Detection.</p>
      <p>This work is our first experience in plagiarism detection. There are many aspects
of our methodology that can be further investigated. Specially, we should focus on
improving the recall, for example, by using part-of-speech in the first step. Reducing the
second step’s computational complexity would allow to deal with a larger number of
plagiarism candidates and thus be less restrictive in the initial selection. Optimization
of all parameters should be done systematically and their effect on the different
performance measures analyzed in more detail.</p>
    </sec>
    <sec id="sec-4">
      <title>Acknowledgements</title>
      <p>This work has been partially funded by the Spanish Department of Education and
Science through the Juan de la Cierva fellowship program and the Spanish Government
under the BUCEADOR project (TEC2009-14094-C04-01). The authors also want to
thank the Barcelona Media Innovation Centre for its support and permission to publish
this research.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Potthast</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stein</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Eiselt</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          , no,
          <string-name>
            <given-names>A.B.C.</given-names>
            ,
            <surname>Rosso</surname>
          </string-name>
          ,
          <string-name>
            <surname>P.</surname>
          </string-name>
          :
          <article-title>Overview of the 1st International Competition on Plagiarism Detection</article-title>
          .
          <source>In: SEPLN 2009 Workshop on Uncovering Plagiarism, Authorship, and Social Software Misuse (PAN 09)</source>
          ,
          <source>CEUR-WS.org (September</source>
          <year>2009</year>
          )
          <fpage>1</fpage>
          -
          <lpage>9</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Maurer</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kappe</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zaka</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Plagiarism - a Survey</article-title>
          .
          <source>Journal of Universal Computer Science</source>
          <volume>12</volume>
          (
          <issue>8</issue>
          ) (
          <year>2006</year>
          )
          <fpage>1050</fpage>
          -
          <lpage>1084</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Helfman</surname>
          </string-name>
          , J.:
          <article-title>Dotplot: a program for exploring self-similarity in millions of lines of text and code</article-title>
          .
          <source>Journal of Computational and Graphical Statistics</source>
          <volume>2</volume>
          (
          <issue>2</issue>
          ) (
          <year>1993</year>
          )
          <fpage>153</fpage>
          -
          <lpage>174</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Potthast</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stein</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Barro´</surname>
            n-Ceden˜ o,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosso</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>An Evaluation Framework for Plagiarism Detection</article-title>
          .
          <source>In: Proceedings of the 23rd International Conference on Computational Linguistics (COLING</source>
          <year>2010</year>
          )
          <article-title>(to appear</article-title>
          ), Beijing, China, Association for Computational Linguistics (
          <year>August 2010</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>