<!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>Background knowledge-enrichment for bottom clauses improving.</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Orlando Mun~oz Texzocotetla</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Rene MacKinney-Romero</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Departamento de Ingenier a Electrica Universidad Autonoma Metropolitana Mexico D.</institution>
          <addr-line>F. 09340</addr-line>
          ,
          <country country="MX">Mexico</country>
        </aff>
      </contrib-group>
      <fpage>23</fpage>
      <lpage>28</lpage>
      <abstract>
        <p>In this paper we present a method to enrich the hypothesis language which is used to construct the bottom clause. This approach, which is embedded in the Aleph system, is based on numerical xed subintervals and categorical subsets. Each subinterval/subset contains values, for each attribute which is prede ned, that are related with the example to saturate. The enriched language allows to reduce the number of rules of the nal theories and, in some cases, to improve the accuracy.</p>
      </abstract>
      <kwd-group>
        <kwd>Arti cial Intelligence</kwd>
        <kwd>ILP</kwd>
        <kwd>discretization</kwd>
        <kwd>grouping</kwd>
        <kwd>numerical attributes</kwd>
        <kwd>categorical attributes</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>Most of the ILP algorithms induce one clause at a time in order to nd a theory
T . Each clause in T is usually constructed with a single numerical (or categorical)
value for each attribute1. This may result in inaccurate theories with a lot of
rules. To overcome these drawbacks, some ILP systems use approaches which
are based in the following strategies:</p>
      <p>
        Discretization. Some ILP systems discretize numerical attributes in a global
way, and the nal intervals are used during the learning process. TILDE [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] and
ECL-GSD [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] follow this strategy. In [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], a global binary discretization method
is presented, but in addition to this each categorical attribute is grouped in two
subsets. Propositionalization. These strategies consist in transforming a
relational problem into a propositional problem. The main objective it is to solve
a problem that was originally a relational problem, with faster and more e
cient propositional algorithms than the relational systems. LINUS and DINUS
[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] systems follow that procedure. Genetic algorithms. To deal with numerical
attributes, some systems implement genetic re nement operators which search
globally the best intervals. In [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], several re nement operators are presented, and
a genetic algorithm is used to test the intervals. Numerical Reasoning. In
[
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], new relations (equalities, inequalities, regression models, etc.) are added a
priori into the background knowledge. These relations are lazily evaluated
during the bottom clause construction. Numerical reasoning is improved in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], since
1 We refer to the arguments of predicates as attributes.
it proposes to improve noise handling by mean of statistical-based techniques.
Regarding the categorical data, we think that using grouping algorithms for
categorical attributes can also improve the nal theories.
      </p>
      <p>In this paper we present a method to enrich the hypothesis language which is
used to construct the bottom clause. This approach deals with both categorical
and numerical attributes, in a local or global way. The enriched language allows
to reduce the number of rules of the nal theories and, in some cases, to improve
the accuracy. This paper is organized as follows: section 2 describes the proposed
method; section 3 shows the experimental results on several data sets; nally,
section 4 presents our conclusions and future work.
2</p>
    </sec>
    <sec id="sec-2">
      <title>The method</title>
      <p>To enrich the hypothesis language our method tests di erent numerical
subintervals (or categorical subsets) according to an evaluation function, then the best
quali ed are added into the background knowledge. Due to the great amount
of subintervals/subsets that can be created we decided to use an evolutive
approach to generate and evaluate them. This method was embedded in the basic
algorithm of Aleph as follows:</p>
      <p>0. State parameters. In addition to the mode declarations, types and
determinations, users can also declare the attributes to be discretized/grouped in any
of the two following ways:
i. lit(: : : ; Attr; : : :), goal(: : : ; Class)</p>
      <p>Where Attr is the attribute to discretize/group respect to Class which
can have more than two values. The predicate lit is into the background
knowledge (it is possible to declare two or more attributes in lit), and goal
is the target predicate.
ii. lit(: : : ; Attr; : : :)</p>
      <p>In this case the corresponding classes are positive and negative.</p>
      <p>1. Select an example e. In this step, a subset of values of Attr are related to
the example selected. For instance, let e = goal(a) be the example selected and
lit(a; 12), lit(a; 15), lit(a; 20), lit(b; 30), lit(b; 35) be ve facts in the background
knowledge then the values 12; 15; 20 are related to e. If Attr is a numerical
attribute, then these values form a FixedSubinterval. If Attr is a categorical
attribute, then we call FixedSubset to these subset of values. These are xed
because it will invariably be in all subintervals/subsets that will be tested.</p>
      <p>1.5 Discretization/Grouping. Before saturation each attribute declared by
the user is processed. Depending on the attribute type there are two possible
cases.</p>
      <p>i. Let Attr be a numerical attribute and F ixedSubinterval = [min; max] be the
interval that contains all values in Attr that are related to e. Then the proposed
genetic algorithm returns a set of numerical intervals In such that: jInj is de ned
by the user and In = fx j x = [min0; max0] ^ min0 min ^ max max0g.</p>
      <p>Furthermore each element in In represents a chromosome. To evolve the
chromosomes several mutation operators are de ned. These can enlarge or
shrink an interval, either on the left side, on the right side, or on both sides. The
tness function for a chromosome x is given by the information gain, see Eq. (1).
In this case the GA maximizes the information gain to nd better subintervals.</p>
      <p>IG(x) = ent(Int)
count(x)
count(Int)
ent(x)
(1)
The corresponding entropy for some interval Int is:</p>
      <p>jSj
ent(Int) = X p(Int; j)log2(p(Int; j))</p>
      <p>j=1
where: jSj = number of classes, Int is the numerical interval of Attr, count(Int) =
numeric values into interval Int, p(Int; j), is the proportion of values in Int that belong to
the jth class.</p>
      <p>ii. Let Attr be a categorical attribute and FixedSubset be the set of all values
related to e. The proposed GA searches the best jCj subsets of categorical values
with the following constraint: C = fy j FixedSubset yg.</p>
      <p>A chromosome is represented by a subset y. The mutation operators de ned
add a new categorical value in y, delete an element from the chromosome, or
swap an element between the chromosome and the rest of categorical values, but
maintaining the FixedSubset into each new chromosome. The crossover operator
swaps an element between two chromosomes.</p>
      <p>
        In this case, the tness function is based on the distance between two values
of a categorical attribute. The tness for a chromosome y is the total sum of
the distances for each value pair in y. In addition to this, if the sum of distances
for two or more chromosomes is the same, then the value jy1j is added, because
we want to minimize and to favor the subsets with more values. This tness
function, called DILCA [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], is showed in Eq. (2).
      </p>
      <p>Fitness(y) =</p>
      <p>X s X (P (ci j st) P (cj j st))2 + y1
cicj2y st2S j j
(2)
where: ci; cj 2 y such as i 6= j. S is the set of classes de ned, P (ci j st) is the conditional
probability for ci given st, and P (cj j st) is the conditional probability for cj given st.
In both cases the user can give the number of chromosomes to be added.
2. Build a bottom clause that entails the example e. The enriched language
is used to build a bottom clause. Consider the goal relation no payment(S)
which is true for those students who do not need to repay its loan. If literals in
background knowledge are unemployed(S), enrolled(S; School; U nits), where U nits
is numerical and School is categorical, then a bottom clause would be like this:
no_payment(A) :- unemployed(A),enrolled(A,B,C),
interval(C,[11.0,13.4]),interval(C,[11.7,12.5]),interval(C,[11.3,13.3]),
interval(C,[11.3,14.0]),interval(C,[11.0,13.5]),interval(C,[10.0,12.3]),
member(B,[occ,smc,uci,ucla,ucsd]),member(B,[smc,ucb,ucla,ucsd]).</p>
      <p>3. Search. Aleph uses several search strategies (best rst, depth rst search,
etc.), re nement operators, and evaluation functions (as mentioned earlier).</p>
      <p>4. Remove covered (redundant) examples and add the best clause found to
the current theory. Go to step 1.</p>
      <p>In the next section we present the experiments performed to compare the
accuracy of our method.</p>
    </sec>
    <sec id="sec-3">
      <title>Experiments</title>
      <p>
        In this section we compare our method (we call it Extended Aleph) with the
standard Aleph, and the lazy evaluation in Aleph [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. Our method works as
the latter, namely with the bottom clause construction as our method. A
10fold, cross-validation was performed to compare the accuracy and the simplicity
(number of rules) of the nal theories.
      </p>
      <p>
        From the UCI machine learning repository [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], we used Australian Credit
Approval, Pittsburgh Bridges, Japanese Credit Screening, German Credit, Iris,
Moral Reasoner, Ecoli, and Student Loan datasets. We also performed tests over
the well-known ILP datasets: Carcinogenesis [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ], KRK illegal chess position
(KRKi) [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], and mutagenesis [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] (on \regression friendly" data).
      </p>
      <p>All these methods were executed in Yap Prolog version 6:0, with the global
parameters: minpos = 2, and noise = 5; the remaining of the parameters are
xed by default in Aleph. All experiments were performed on a modern multicore
PC machine.</p>
      <p>Extended Aleph vs Aleph. Table 1, shows that our implementation
improves the accuracy in most databases, with the exception of two datasets:
Pittsburgh Bridges and Moral Reasoner. We can also see ( gure 1) that the increase
of the accuracy for the datasets Japanese Credit Screening and Iris is signi
cant, 15% and 7:8% respectively. Regarding the simplicity of the nal theories,
extended Aleph system does not improve the simplicity with two datasets:
German Credit and KRKi, but with the other datasets (excepting Moral Reasoner)
our approach decreases the number of rules in the nal theories. In particular,
with Iris and Student Loan the reduction is almost 50% ( gure 2).</p>
      <p>Extended aleph vs Lazy Evaluation in Aleph. As in the previous
case, Extended Aleph improves the accuracy except in two datasets: Moral
Reasoner and Student Loan (table 1). Furthermore, Lazy Evaluation overcomes our
method only in one single dataset: Student Loan, ( gure 2). Although both have
the same accuracy.</p>
      <p>
        In general, Extended Aleph improves or maintains the accuracy ( gure 1),
and decreases the number of rules for most of datasets. With regard to the
running time, Extended Aleph signi cantly exceeds this measure with
Carcinogenesis: Aleph 36:1s, Lazy 222:33s, Ext. Aleph 698:9s; and Ecoli: Aleph 11:5s;
Lazy 63:2s; Ext. Aleph 707:5s.
With the obtained results, we can draw some conclusions: this method does not
guarantee to improve the accuracy and simplicity of the theories in all cases.
The improvement depends on the selected attributes, namely if an attribute is
relevant in the theory construction then its processing will help to improve the
nal theory. ILP problems whose nal theories do not need constants to be
induce on them can not bene t from this method. In this case, variables are useful
to better explain that concept. The size of the search space can be a ected with
the proposed method. On one hand a discretized/grouped attribute which is
not relevant can generate a large amount of unnecessary candidate rules. On
the other hand a discretized/grouped attribute which is relevant can decrease
signi cantly the number of candidate rules. Users do not know in advance which
attributes will be most useful, therefore the intuition is an important element to
select each attribute. Our method allows to experiment easily with di erent
attributes. Finally, unlike other genetic approaches like SMART+ [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], our method
can deal with both categorical and numerical attributes.
      </p>
      <p>Some considerations for further work are as follows. Since not all cases were
successful it is necessary to test other tness functions and more datasets. These
tests will help us to identify the factors which a ect both accuracy and simplicity
of the nal theories, as well as the search space size. Another path of research
is to look into multivariable predicates, if there are correlations between two or
more attributes. Thus, we want to investigate if these correlations are relevant
to improve the performance in ILP (accuracy and simplicity) and what kind of
problems can be treated with these predicates. Finally, we want to implement
in Aleph system these ideas and compare performance with other ILP systems
that handle data types.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>A.</given-names>
            <surname>Alves</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Camacho</surname>
          </string-name>
          , and
          <string-name>
            <given-names>E.</given-names>
            <surname>Oliveira</surname>
          </string-name>
          ,
          <article-title>Improving numerical reasoning capabilities of inductive logic programming systems</article-title>
          , in IBERAMIA,
          <year>2004</year>
          , pp.
          <volume>195</volume>
          {
          <fpage>204</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>K.</given-names>
            <surname>Bache</surname>
          </string-name>
          and
          <string-name>
            <surname>M. Lichman,</surname>
          </string-name>
          <article-title>UCI machine learning repository</article-title>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>H.</given-names>
            <surname>Blockeel</surname>
          </string-name>
          and
          <string-name>
            <given-names>L. D.</given-names>
            <surname>Raedt</surname>
          </string-name>
          ,
          <article-title>Lookahead and discretization in ilp</article-title>
          , in
          <source>In Proceedings of the 7th International Workshop on Inductive Logic Programming</source>
          , Springer-Verlag,
          <year>1997</year>
          , pp.
          <volume>77</volume>
          {
          <fpage>85</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>M.</given-names>
            <surname>Botta</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Giordana</surname>
          </string-name>
          , SMART+:
          <article-title>A multi-strategy learning tool</article-title>
          , in IJCAI,
          <year>1993</year>
          , pp.
          <volume>937</volume>
          {
          <fpage>945</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>F.</given-names>
            <surname>Divina</surname>
          </string-name>
          and
          <string-name>
            <given-names>E.</given-names>
            <surname>Marchiori</surname>
          </string-name>
          ,
          <article-title>Handling continuous attributes in an evolutionary inductive learner</article-title>
          .,
          <source>IEEE Trans. Evolutionary Computation</source>
          ,
          <volume>9</volume>
          (
          <year>2005</year>
          ), pp.
          <volume>31</volume>
          {
          <fpage>43</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>D.</given-names>
            <surname>Ienco</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. G.</given-names>
            <surname>Pensa</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Meo</surname>
          </string-name>
          ,
          <article-title>Context-based distance learning for categorical data clustering</article-title>
          ,
          <source>in IDA</source>
          ,
          <year>2009</year>
          , pp.
          <volume>83</volume>
          {
          <fpage>94</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>N.</given-names>
            <surname>Lavrac</surname>
          </string-name>
          , S. Dzeroski, and
          <string-name>
            <given-names>M.</given-names>
            <surname>Grobelnik</surname>
          </string-name>
          ,
          <article-title>Learning nonrecursive de nitions of relations with linus</article-title>
          ,
          <source>in Proceedings of the European Working Session on Machine Learning</source>
          ,
          <source>EWSL '91</source>
          , London, UK, UK,
          <year>1991</year>
          , Springer-Verlag, pp.
          <volume>265</volume>
          {
          <fpage>281</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>S.</given-names>
            <surname>Muggleton</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Bain</surname>
          </string-name>
          , J. Hayes-michie, and
          <string-name>
            <given-names>D.</given-names>
            <surname>Michie</surname>
          </string-name>
          ,
          <article-title>An experimental comparison of human and machine learning formalisms</article-title>
          , in
          <source>In Proceedings of the Sixth International Workshop on Machine Learning</source>
          , Morgan Kaufmann,
          <year>1989</year>
          , pp.
          <volume>113</volume>
          {
          <fpage>118</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>O.</given-names>
            <surname>Mun</surname>
          </string-name>
          <article-title>~oz and</article-title>
          <string-name>
            <surname>R. MacKinney-Romero</surname>
          </string-name>
          ,
          <article-title>Multivalue in ILP</article-title>
          ,
          <source>in 20th International Conference on Inductive Logic Programming</source>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Srinivasan</surname>
            , Muggleton,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Srinivasan</surname>
            , and
            <given-names>S. H.</given-names>
          </string-name>
          <string-name>
            <surname>Muggleton</surname>
          </string-name>
          , Mutagenesis:
          <article-title>Ilp experiments in a non-determinate biological domain</article-title>
          ,
          <source>in Proceedings of the 4th International Workshop on Inductive Logic Programming</source>
          , volume
          <volume>237</volume>
          of GMDStudien,
          <year>1994</year>
          , pp.
          <volume>217</volume>
          {
          <fpage>232</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <given-names>A.</given-names>
            <surname>Srinivasan</surname>
          </string-name>
          and
          <string-name>
            <given-names>R.</given-names>
            <surname>Camacho</surname>
          </string-name>
          ,
          <article-title>Experiments in numerical reasoning with inductive logic programming</article-title>
          ,
          <source>Journal of Logic Programming.</source>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <given-names>A.</given-names>
            <surname>Srinivasan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. D.</given-names>
            <surname>King</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Muggleton</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M. J. E.</given-names>
            <surname>Sternberg</surname>
          </string-name>
          ,
          <article-title>Carcinogenesis predictions using ilp</article-title>
          ,
          <source>in ILP</source>
          ,
          <year>1997</year>
          , pp.
          <volume>273</volume>
          {
          <fpage>287</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>