<!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>Anomaly Detection in Public Procurements using the Open Contracting Data Standard</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Elisabeth Kehler​</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Julio Paciello​</string-name>
          <email>julio.paciello@pol.una.py</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Juan Pane​</string-name>
        </contrib>
      </contrib-group>
      <abstract>
        <p>​Public procurement typically presents a potential source of corruption. For this reason, the detection of anomalies in public procurements can improve the quality of purchases, and consequently enable a better quality of life in the country through the correct use of public funds. In this paper, we use as a case study the public contracts of Paraguay, which are in the open data format of the Open Contracting Data Standard (OCDS), for training an unsupervised learning model for anomaly detection, based on the Isolation Forest algorithm. The resulting classification allows to obtain a measurement or scoring of contracts that can be used to identify outliers. Given a local dataset of cases of procurement processes with protests with judgments in favor of the protestant or with citizen complaints, the preliminary results show that the trained model classifies as anomalous more than 45% of the potentially anomalous dataset. A detailed validation considering the public procurements local regulations is needed, with the purpose of building a tool that allows an intelligent sampling of contracts with atypical behavior to review, applicable to Paraguay and other countries that implement the OCDS.</p>
      </abstract>
      <kwd-group>
        <kwd>​ ​Open Contracting Data Standard</kwd>
        <kwd>Open data</kwd>
        <kwd>Anomaly detection</kwd>
        <kwd>Unsupervised learning</kwd>
        <kwd>Artificial Intelligence</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Transparency is an important tool to avoid corruption and is essential in a process of
public procurements. The Open Contracting Data Standard (OCDS) [1] is a tool that
helps to implement the transparency needed and provides the possibility of analyzing
the data on a machine learning level. This work uses the publicly available data of the
public procurements of Paraguay as a case study. The Public Procurements Office
(DNCP) publishes since 2010 contracts in the OCDS open data format. The total
number of contracts published by the DNCP since 2010 to 2019 amounts to 311,782.</p>
      <p>Anomalies detection in public contracts is especially important in order to find,
prevent and take actions of possibly misappropriated funds. These funds can then be
redirected to areas with an important social impact, such as education or public health
care. The regulatory analysis of the conformity of public procurement processes
according to the local legislation is performed manually by a team of public officials
of the DNCP, analyzing each procurement process separately. Given the volume of
public contracts that are managed annually and the manual work of public officials to
perform this task, it is possible to clearly notice that an exhaustive control of all
contracts is not feasible. In addition to the control carried out by the DNCP team,
there are also journalistic publications on cases identified as possible frauds.
However, journalistic investigations focus mostly on contracts that are potentially
more striking for public opinion, which represent a small portion of the total.</p>
      <p>
        Considering the public procurements as a potential source of corruption, and
therefore a way for the misuse of the public funds, performing regulatory control to
ensure that the processes are aligned with the local legislation represents an important
task for a country. In Paraguay, to date, this analysis is done manually by specialized
staff of the DNCP. They determine the classification of the data according to the local
laws [
        <xref ref-type="bibr" rid="ref7">8</xref>
        ] and also considering known fraud schemes, as for example the Red Flags
scheme [
        <xref ref-type="bibr" rid="ref8">9</xref>
        ]. So, the main problem is that having an ever growing amount of data, a
proportional growing number of staff members to analyze the data is required. The
use of the OCDS format makes it possible to apply Machine Learning techniques, as
unsupervised learning, for anomaly detections of possible outliers to the expected
behavior, serving the DNCP as an automated tool for implementing a smart sampling
of procurement processes that can require an in-depth verification. In this work, this
problem is addressed by proposing the automation of control tasks in a first instance,
which allows the DNCP staff to obtain a smartly selected sample of relevant
procurement processes for manual review.
      </p>
      <p>The work is organized as follows, in section II the State of Art is mentioned, in
section III we explain the proposed solution and in section IV we present the
preliminary results and final discussion.
2</p>
    </sec>
    <sec id="sec-2">
      <title>State of Art of anomaly detection techniques</title>
      <p>
        Conti and Naldi in [
        <xref ref-type="bibr" rid="ref3">4</xref>
        ] present an statistical anomaly detection approach in
procurement auctions using an average bid based method evaluating with the
detection probability and the false alarm probability. Vaserhelyi and Issa illustrate
K-Means Clustering applied to a labeled refund transactions dataset in [
        <xref ref-type="bibr" rid="ref4">5</xref>
        ]. Deng and
Mei combine Self-Organizing Map (SOM) and K-Means Clustering for an
unsupervised approach to detecting Fraudulent Financial Statements in [
        <xref ref-type="bibr" rid="ref5">6</xref>
        ]. Panigrahi,
Kundu, Sural and Majumdar propose a fusion approach for credit card fraud detection
using a rule-based filter, a Dempster-Shafer adder and a Bayesian Lerner in [
        <xref ref-type="bibr" rid="ref6">7</xref>
        ].
      </p>
      <p>As we can appreciate there are multiple previous works that address the anomaly
detection in certain stages of public procurements, and also in financial transactions.
This work proposes to implement a tool that focuses on all stages of public
procurement, during the call for bids, the award and contracts, and contract
modifications specifically in the format of the OCDS. This approach also differs from
the mentioned state of art by applying unsupervised isolation forests to determine the
anomaly score of the data points.</p>
      <p>
        Isolation Forest [
        <xref ref-type="bibr" rid="ref1 ref2">2, 3</xref>
        ] creates a forest of binary trees by randomly selecting a
feature and also randomly selecting the split value at each node. The anomaly score is
obtained by getting the length of the path to the data point in the isolation tree. It was
chosen for its independence to distance and density, especially because the data sets
are high-dimensional, and for its good computational performance.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Proposed Solution</title>
      <p>The semi-structured version of the data in the OCDS format allows for the
implementation of algorithms to analyze it. The goal is to train a unsupervised
learning model that separates anomalies from the data for their consequent human
analysis to determine if a fraud is taking place.</p>
      <p>As seen in Figure 1, first the data had to be cleaned, considering human errors
when loading the data. Then a feature selection is done, selecting the variables based
on three criteria: a) if the variable has data (is not empty), b) if the data is structured
(E.g. no free text or links to text), and c) if the data is part of the local regulations for
the procurement process. For an algorithm to be able to analyze the data efficiently,
the data needs to be converted to numerical values, in this approach hashing and
binary vectors are used to perform these tasks. The data is divided into 3 datasets, a)
data in the planning and tender stages of the procurement process, b) contracts, and c)
contracts modifications. Finally the data was normalized for use as an input to the
algorithm.</p>
      <p>After training the model and getting the anomaly score for the input data, the
DNCP provided to this work a dataset containing potentially anomalous procurement
processes from 2010 onwards, in order to obtain a preliminary validation of the
effectiveness of the classification model. The dataset includes potentially anomalous
procurement processes with ​protests with judgments in favor of the protestant or with
citizen complaints​. Protests are internal disputes in the procurement process whereas
complaints are external complaints with identity protection about the procurement
process. The scores of these cases obtained with the isolation forest implementation
were then analysed to measure the accuracy of the trained models.</p>
    </sec>
    <sec id="sec-4">
      <title>Preliminary Results and Final Discussion</title>
      <p>The results consists of three trained models and the anomaly score for each of the data
points. This anomaly score ranges between -1 and 1, where if it is less than 0 it is
considered an anomaly and if it is more than 0 is considered as normal. The following
Table 1 shows the total data points analysed per dataset, the total data points with
protests ​with judgments in favor of the protestant and ​with complaints per dataset, the
percentage of data points with protests and complaints detected as anomalous and the
execution times. The computational platform used was an Intel Core i7, with 16 GB
of RAM, running the iforest algorithm implementation of the Python scikit-learn
library with a 1000 estimators and 50 samples. The implementation and input/output
data can be found at https://gitlab.com/MaEliK/otherframeworks.
Contract 29406 168 144 16.07% 31.94% 3,538 s
Modifications</p>
      <p>The obtained percentages show the proportion of data classified by the algorithm
as anomalous data. It can be noticed that it detects almost half of the known
potentially anomalous data, consistently in the planning and tender phases and the
contracting phase. Finally, this work proposes an alternative to automate the
regulatory control of procurement processes based on data analysis in OCDS format.
An unsupervised learning based technique is proposed that could classify in seconds
as anomalous more than 45% of the potentially anomalous dataset provided. Next
steps are to validate the obtained results with the DNCP staff and check results
according to local regulations. Also a better interpretation of the variables that
influence high anomalous scores is required.
1. OCDS Homepage,
2019/03/14.</p>
      <p>​http://standard.open-contracting.org/latest/en/​,
last
accessed</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          2. Liu, Fei Tony, Ting, Kai Ming and Zhou, Zhi-Hua.
          <article-title>“Isolation forest</article-title>
          .
          <source>” Data Mining</source>
          ,
          <year>2008</year>
          . ICDM'08. Eighth IEEE International Conference on.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          3. Liu, Fei Tony, Ting, Kai Ming and Zhou, Zhi-Hua.
          <article-title>“Isolation-based anomaly detection.” ACM Transactions on Knowledge Discovery from Data (TKDD) 6</article-title>
          .1 (
          <year>2012</year>
          ):
          <fpage>3</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          4.
          <string-name>
            <surname>Conti</surname>
            , Pier Luigi &amp; Naldi,
            <given-names>Maurizio.</given-names>
          </string-name>
          (
          <year>2009</year>
          ).
          <article-title>Detection of Anomalous Bids in Procurement Auctions</article-title>
          .
          <source>SSRN Electronic Journal</source>
          .
          <volume>10</volume>
          .2139/ssrn.1493346.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          5.
          <string-name>
            <surname>Issa</surname>
            , Hussein &amp; Vasarhelyi,
            <given-names>Miklos.</given-names>
          </string-name>
          (
          <year>2011</year>
          ).
          <article-title>Application of Anomaly Detection Techniques to Identify Fraudulent Refunds</article-title>
          .
          <source>SSRN Electronic Journal</source>
          .
          <volume>10</volume>
          .2139/ssrn.1910468.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          6.
          <string-name>
            <surname>Deng</surname>
            , Qingshan &amp; Mei,
            <given-names>Guoping.</given-names>
          </string-name>
          (
          <year>2009</year>
          ).
          <article-title>Combining Self-Organizing Map and K-Means Clustering for Detecting Fraudulent Financial Statements</article-title>
          .
          <source>2009 IEEE International Conference on Granular Computing</source>
          ,
          <string-name>
            <surname>GRC</surname>
          </string-name>
          <year>2009</year>
          .
          <volume>126</volume>
          -
          <fpage>131</fpage>
          .
          <fpage>10</fpage>
          .1109/GRC.
          <year>2009</year>
          .
          <volume>5255148</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          7.
          <string-name>
            <surname>Panigrahi</surname>
            , Suvasini &amp; Kundu, Amlan &amp; Sural, Shamik &amp; Majumdar,
            <given-names>Arun.</given-names>
          </string-name>
          (
          <year>2009</year>
          ).
          <article-title>Credit card fraud detection: A fusion approach using Dempster-Shafer theory and Bayesian learning</article-title>
          .
          <source>Information Fusion</source>
          .
          <volume>10</volume>
          .
          <fpage>354</fpage>
          -
          <lpage>363</lpage>
          .
          <fpage>10</fpage>
          .1016/j.inffus.
          <year>2008</year>
          .
          <volume>04</volume>
          .001.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          8.
          <source>Ley</source>
          <year>2051</year>
          /03 “De Contrataciones Públicas”, https://​www.contrataciones.gov.py/documentos/download/marco-legal/12760, last accessed
          <year>2019</year>
          /03/14.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          9.
          <string-name>
            <given-names>Development</given-names>
            <surname>Gateway</surname>
          </string-name>
          , Open Contracting Partnership, “
          <article-title>Red Flags for integrity: Giving the green light to open data solutions</article-title>
          ,” in press.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>