<!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>SEWEBAR-CMS: A System for Postprocessing Association Rule Models</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Tomas Kliegr</string-name>
          <email>tomas.kliegr@vse.cz</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>David Chudan</string-name>
          <email>david.chudan@vse.cz</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andrej Hazucha</string-name>
          <email>andrej.hazucha@vse.cz</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jan Rauch</string-name>
          <email>rauch@vse.cz</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Faculty of Informatics and Statistics, VSE Praha</institution>
          ,
          <addr-line>Nam. Winstona Churchilla 4, 130 67 Praha 3</addr-line>
          ,
          <country country="CZ">Czech Republic</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>The principal problem of the association rule (AR) mining task is the selection of rules that might be interesting for the domain expert from the many rules typically generated by the software. SEWEBAR-CMS is a Joomla!-based Content Management System for post-processing AR models that supports the data analyst in this e ort. The input for the system are AR models in GUHA-extended PMML AR model and machine-readable background knowledge elicited from domain experts within the CMS. PMML and background knowledge are converted to auto-generated reports with XSLT2HTML transformation and presented as CMS documents. They are also semantized according to the Association Rule Mining Ontology, interlinked, and stored in an external Ontopia knowledge base, which uses the Topic Map semantic web formalism. Queries issued from the CMS against Ontopia in the tolog language are used to select discovered ARs that are in some interesting relationship (e.g. exception, con rmation) with the background knowledge. The data analyst presents the mining results to the domain expert through the analytical report that blends in query results with free text and fragments of the auto-generated reports.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Analytical report is a free-text document describing various elements of an
association rule mining task: the data, pre-processing steps, task setting and
particularly the potentially interesting discovered association rules. The presented
system addresses the well-known problem of the association rule mining task
{ selection of the potentially interesting rules. Typically, too many rules are
produced and it is di cult for the data analyst to select which rules might be
interesting for the domain expert.</p>
      <p>SEWEBAR-CMS system1 is a web-based content management system for
presentation of association rule mining results that addresses this problem by
letting the domain expert input his knowledge of the problem using an
intuitive user interface, which requires little interaction. The elicited information is
translated into background association rules that are subsequently matched with
discovered association rules.</p>
      <p>This paper is organized as follows. In Section 2, we give a brief overview
of the systems architecture, typical work ow and the exchange formats used,
Section 3 brie y describes the background knowledge elicitation formalism and
user interfaces. Section 4 presents integration of SEWEBAR-CMS with external
semantic knowledge base, which performs matching of mined rules with
background knowledge. Section 5 demonstrates the framework on an example of
post-processing the results of mining from a synthetic nancial dataset. The
conclusions discuss the interoperability with mainstream data mining systems.</p>
      <p>It should be noted at this point that it is out of the scope of this paper to
describe the association rule mining task, a concise de nition can be found in
most data mining textbooks.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Architecture, Work ow and Formats</title>
      <p>SEWERAR-CMS serves as a communication hub between the data analyst,
domain expert, the association rule mining software and post-processing
systems such as the semantic knowledge base. The data mining system (Figure 1A)
and the post-processing system (Figure 1D) run on an arbitrary platform and
are connected with SEWEBAR-CMS via a SOAP/XML-RPC/REST web
service. SEWEBAR-CMS is built on top of the PHP-based open source Joomla!2
CMS, one of the most popular open source CMS systems at the time of writing.
Joomla!'s advantages include object-oriented architecture, thousands of available
extensions and an active community.
2.1</p>
      <sec id="sec-2-1">
        <title>Work ow</title>
        <p>While the system does not enforce a speci c work ow per se, we describe here
the recommended one. Figure 1B shows the domain expert inputing her
background knowledge about the dataset and patterns (aka association rules) in the
mined domain including patterns that have been refuted and conjectures that
she would like the data analyst to explore. The elicited knowledge is saved into
the Background Knowledge Exchange Format (BKEF).</p>
        <p>Referring to the background knowledge, which is presented in the CMS as
an XSLT-generated HTML document, the data analyst starts mining the data.
First, he uses the background knowledge to pre-process the data and then for
setting up the mining task. Figure 1A shows the mining result exported into
PMML (GUHA AR PMML) format from the data mining system and sent via a
web-service to SEWEBAR-CMS. In Figure 1C the PMML document is
XSLTtransformed to an auto-generated report . The data analyst usually performs and
exports multiple experiments varying preprocessing steps and settings. Within
the CMS data analyst then initiates another export, which sends the GUHA AR
2 http://www.joomla.org
PMML documents and BKEF documents to an external knowledge base. In this
paper, we focus on the case when this is a semantic knowledge base, but it can
be e.g. an XML database.</p>
        <p>Eventually in Figure 1E, the data analyst creates a textual report
conveying the results of mining to the domain expert. In the report, the analyst can
mix fragments from the autogenerated document with background knowledge
and autogenerated PMML reports. These fragments carry machine-readable
information, so that they can be updated when the underlying PMML or BKEF
changes. Most importantly, the domain expert issues queries against the
knowledge base for rules that are in some interesting relationship with background
knowledge patterns. Matching rules are included into the analytical report in
the same updatable fashion as report fragments.</p>
        <p>A Field Mapping Language (FML) is a simple speci cation intended to map
BKEF and PMML documents (Fig. 1C). The tools for generation of FML
documents are under active development. In the current system, we use manually
created FML documents. In the following two subsections, we will describe in
greater detail the GUHA AR PMML and BKEF formats, which are of central
importance for the system.
2.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>GUHA AR PMML and BKEF</title>
        <p>
          GUHA AR PMML [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] is an extension of the PMML (Predictive Markup
Modeling Language) 4.0 Association Rule model, which is the industry standard for
representing the output of association rule mining systems. The purpose of the
GUHA extension is to increase the expressivity of the model so that it can be
used with a broader range of Association Rule mining software. A GUHA AR
PMML document contains description of the input data set, the transformations
performed on its elds, association rule mining settings and most importantly
the set of discovered association rules. The most marked di erences between
classical and GUHA ARs are described in [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ], however, these di erences are not
important for this demo.
        </p>
        <p>
          BKEF (Background Knowledge Exchange Format) documents [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] describe
the knowledge of the domain expert relating to the data being analyzed. This
speci cation was proposed within the SEWEBAR-CMS to satisfy the need for
a formal description of background knowledge that would be interoperable with
PMML. A BKEF document consists of two distinct pieces of information: the
mandatory de nition of Meta-attributes and the optional Patterns. The
Metaattribute [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] is an abstraction of a data eld in the input dataset, which the
domain expert uses to convey information about data elds such as suggestions
for value transformations. Metaattributes can then be used to construct patterns,
such as background association rules. Background association rules have a similar
structure as association rules, but are expressed by the domain expert.
3
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Background Knowledge Elicitation</title>
      <p>SEWEBAR-CMS contains two Joomla! extensions for elicitation of background
knowledge. The Metaattribute Editor is intended for elicitation of user
background knowledge on individual data elds, this includes particularly outliers,
discretization hints and signi cant values. In uence Editor gathers background
knowledge association rules through mutual in uences, an easy to understand
graphical representation. One input mutual in uence can be transformed to
multiple association rules.</p>
      <p>For example, if the domain expert wants to convey that with increasing values
of Age, there is a smaller chance of a good value of Quality, he will use the mutual
in uence of the type Age " Quality. Such a pattern can correspond to multiple
(background) association rules, for example
BAR1: Age(&lt;65;75))=&gt;Quality(Bad)</p>
      <p>BAR2: Age(&lt;55;65))=&gt;Quality(Bad)</p>
      <p>
        The transformation of mutual in uences to background association rules can
be speci ed either manually using background association rules, or automatically
as described in [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Note that for the mutual in uence of type A " B, [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] assumes
that the B attribute is binary. For the attribute Quality=fGood, Badg, this can
be met by putting quality(Good) $ quality good(true) and quality(Bad) $
quality good(false).
4
      </p>
    </sec>
    <sec id="sec-4">
      <title>Semantic Knowledge Base Integration</title>
      <p>
        BKEF, PMML and FML les stored in the CMS database are transformed
into instances of concepts of the Background Knowledge Ontology [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], FML to
Schema Mapping Ontology and GUHA AR PMML into the Association Rule
Ontology [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] and stored in the OKS. Essentially, during the semantization
elements in the input XML document are transformed into instances of similarly
named concepts, attributes are converted into occurrences, though it should be
noted that this is not one-to-one mechanistic transformation.
      </p>
      <p>Fig. 2. Association Rule Query Designer screenshot</p>
      <p>
        The fact that both discovered and background knowledge is semantized and
interlinked can be utilized in tolog queries. tolog (written with lower case) is a
Topic Map query language that combines SQL with Prolog. The system allows
either entering a tolog query directly, or using the visual Association Rule Query
Designer (ARQD) [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] depicted on Fig. 2. The SEWEBAR-CMS includes the
Knowledge Base Include extension [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], which initializes ARQD with data eld
names from a speci c knowledge base, lets the user de ne the query in ARQD,
executes the query against the knowledge base and nally includes the query
result into the analytical report.
5
      </p>
    </sec>
    <sec id="sec-5">
      <title>Case Study: Financial Dataset</title>
      <p>The case study demonstrates the SEWEBAR-CMS system on an updated
version of the Financial Data Set rst introduced in the PKDD'99 Discovery
Challenge (http://lisp.vse.cz/pkdd99/). The Financial Dataset consists of 8
tables describing the operations of bank customers. Among the 6181 customers
the aim is to identify subgroups with high occurrence of bad loans.</p>
      <p>For the mining schema we used the columns salary, status, district,
amount, duration and quality; all columns come from the Loans table.
5.1</p>
      <sec id="sec-5-1">
        <title>Background Knowledge</title>
        <p>The hypothetical nancial expert uses the elicitation interface presented in
Section 3 to input background knowledge relating to the dataset. For example, she
uses the Metaattribute Editor to enter two preprocessing hints for the district
eld, which contains the location of the client's permanent residence. The
Region preprocessing hint recommends to decrease the granularity of the eld by
grouping districts (default value from the database) into regions. In this way,
the number of distinct values in the eld drops from 77 to 14. The District hint
recommends to leave the values on the district granularity.</p>
        <p>After entering information on individual data elds, the expert proceeds to
the In uence Editor and uses it to enter con rmed mutual in uences. By
selecting a proper arrow symbol in the attribute matrix, the following pieces of
backround knowledge are entered:
{ BK1 With increasing age, the relative frequency of good loans decreases.
{ BK2 With increasing salary, the relative frequency of bad loans decreases.
5.2</p>
      </sec>
      <sec id="sec-5-2">
        <title>Data Mining</title>
        <p>The data analyst loads the data matrix into the LISp-Miner data mining
system3 (http://lispminer.vse.cz). First, the data need to be preprocessed. The
data-miner performs automatic binning for data elds, where there is no
corresponding metaattribute in the background knowledge, or it does not specify a
preprocessing hint. The latter is the case of the Age attribute, where values are
equidistantly binned into intervals h25; 35), h35; 45) ... Remaining elds such as
district are preprocessed based on the background knowledge, out of the two
possible preprocessing hints for the district eld, the District hint is chosen.</p>
        <p>
          After the preprocessing is nished, the data analyst formulates the
following association rule mining task: Age(interval 1 - 2) ^ Regions(subset 1 - 1) ^
Duration(subset 1 - 1) ^ Amount(subset 1 - 1) ^ Salary (cut 1 - 2) ) Quality
(subset 1 - 1). The interest measure threshold was set as follows minConf = 0:9
and base = 100. Explanation of the mining setting is out of the scope of this
paper, details can be found e.g. in [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ].
        </p>
        <p>The data mining system nds 258 rules in the data, storing the result as
Task 1 PMML model. Although this result might contain valuable knowledge,
the rules are too numerous. The analyst therefore decides to reiterate the mining
with altered setting hoping to obtain rules that concern only the bad quality
loans and to cut down the number of rules by applying the Region preprocessing
hint and by removing columns amount and duration. In this revised Task 2
PMML model only 7 rules were found.
5.3</p>
      </sec>
      <sec id="sec-5-3">
        <title>Authoring the report</title>
        <p>The resulting mining model is exported to GUHA AR PMML and sent via a
web service to the SEWEBAR-CMS. The model is there immediately visualized
3 SEWEBAR-CMS can be viewed as a web-based spin o from the LISp-Miner project
using an XSLT transformation into a human readable report. Similarly, the
knowledge obtained from the domain expert is stored as a machine-readable
BKEF document and visualized with an XSLT transformation into an HTML
page of the CMS system. These autogenerated reports are intended for reference
by the data analyst as they are necessarily too verbose for the end user. The two
PMML documents as well as the BKEF document, which was created based on
the domain expert's input, are semantized and merged into one topic map.</p>
        <p>The end user is presented an analytical report, which is a concise document
created by the data analyst that sums all the information about the data mining
task and highlights the most interesting discovered association rules.</p>
        <p>To make the report concise, the analyst needs to highlight in it the discovered
rules, which he deems interesting with respect to the background knowledge.
Optionally, the report may also contain a section including rules that are clearly
con rming the expert's knowledge. Since the manual evaluation of all the 265
rules discovered in both tasks would be too laborious, the expert uses the
Semantic Knowledge Base to perform the search.</p>
        <p>In the rst query, the data miner tries to nd rules that comply with the
rst piece of the background knowledge conveyed by the domain expert (see
Section 5.1): With increasing age, the relative frequency of good loans decreases.
The data analyst therefore decides to search for rules that involve young age
and good loan quality. He uses the Association Rule Query Designer (ARQD)
to formulate a query, which will nd all rules containing age group h25; 35) in
the antecedent and good loan quality in the consequent. Figure 2 presents the
screenshot of the ARQD interface with the query formulated. The query nds
40 such rules, several discovered rules are listed:
1 Age(&lt;25;35)) &amp; Amount(&lt;0;100000)) &amp; Duration(12)=&gt;Quality(Good)
20 Age(&lt;25;45)) &amp; Duration(12) &amp; Salary(medium)=&gt;Quality(Good)
29 Age(&lt;25;35)) &amp; Amount(&lt;0;100000)) &amp; Salary(low, medium)=&gt;Quality(Good)
40 Age(&lt;25;35)) &amp; Amount(&lt;0;100000)) &amp; Salary(medium, high)=&gt;Quality(Good)
The analyst puts this query result into the part of the report, which deals with
conrming the domain expert's knowledge.</p>
        <p>With the second query, the analyst wants to nd discovered rules that might be
surprising for the expert. According to the two pieces of background knowledge
combined, old people with very low salaries should have bad loan quality. The analyst
therefore formulates a query searching for rules that capture the opposite relationship:
old people (age in \h55; 65)") with very low salary and good loan quality.</p>
        <p>There are 27 rules returned and inserted into the report. The analyst inspects the
result and discards the obvious rules, particularly the ones that limit loan amount to
the lowest bands. After doing this, the report contains the following two rules
1 Age(&lt;55;65)) &amp; Duration(24) &amp; Salary(very low, low)=&gt;Quality(Good)
2 Age(&lt;55;65)) &amp; Duration(12) &amp; Salary(very low, low)=&gt;Quality(Good)
Into the same section, the analyst includes a fragment of the BKEF document
containing the contradicting pieces of background knowledge.</p>
        <p>
          Note that the queries could be created automatically from background knowledge
if an FML mapping between BKEF and PMML models exists. This approach is in
detail described in [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ].
        </p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Summary</title>
      <p>SEWEBAR-CMS introduces, to the best of our knowledge, the rst systematic solution
to post-processing association rule mining results that exploits semantic web
technologies. The framework is built upon proven standards and technologies such as XML and
content management systems. The proposed data mining ontology is designed with
respect to the industry standard PMML speci cation, which should foster adoption of
the framework among data mining practitioners.</p>
      <p>
        Since the GUHA AR PMML, the framework input format, is based on PMML, the
prototype SEWEBAR-CMS implementation can be easily adapted to consume results
from other DM tools that use the industry standard apriori algorithm [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The ontology,
Joomla! extensions and XML schemas are available online at http://sewebar.vse.cz/.
The website also presents a SEWEBAR-CMS demo including short video showcases.
Acknowledgment The SEWEBAR-CMS system is a result of contribution of a number
of undergraduate and graduate students and researchers. Particularly, we would like to
recognize the contribution of the following colleagues: Jakub Balhar, Vojtech Jirkovsky,
and Stanislav Voj r. This work was supported by grant IGA 15/2010 of the University
of Economics, Prague and by Institutional Funds of the Faculty of Informatics and
Statistics of the University of Economics, Prague.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1. DMG:
          <article-title>PMML 4 Speci cation</article-title>
          , Online: http://www.dmg.
          <source>org/pmml-v4-0</source>
          .html
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Hazucha</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Balhar</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kliegr</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>A PHP library for Ontopia-CMS Integration</article-title>
          .
          <source>TMRA 2010</source>
          . University of Leipzig,
          <year>2010</year>
          . To Appear
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Kliegr</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ovecka</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zemanek</surname>
          </string-name>
          , J.:
          <article-title>Topic Maps for Association Rule Mining</article-title>
          .
          <source>In: TMRA</source>
          <year>2009</year>
          , University of Leipzig, November 11-
          <issue>13</issue>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Kliegr</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ralbovsky</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Svatek</surname>
            ,
            <given-names>V</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Simunek</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jirkovsky</surname>
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nemrava</surname>
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zemanek</surname>
            <given-names>J</given-names>
          </string-name>
          .:
          <article-title>Semantic Analytical Reports: A Framework for Post-Processing Data Mining Results</article-title>
          .
          <source>In: ISMIS'09</source>
          . Springer Verlag, LNCS,
          <year>2009</year>
          ,
          <fpage>88</fpage>
          -
          <lpage>98</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Kliegr</surname>
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Svatek</surname>
            ,
            <given-names>V</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Simunek</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stastny</surname>
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hazucha</surname>
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>An XML Schema and a Topic Map Ontology for Formalization of Background Knowledge in Data Mining</article-title>
          . In: IRMLeS-2010, Heraklion, Crete, Greece, May
          <year>2010</year>
          . Online http:// ftp.informatik.rwth-aachen.de/Publications/CEUR-WS/Vol-
          <volume>611</volume>
          /
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Kliegr</surname>
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rauch</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>An XML Format for Association Rule Models Based on GUHA Method</article-title>
          . In: RuleML-2010, 4th International Web Rule Symposium, Washington, DC, USA,
          <year>October 2010</year>
          , Springer LNCS. To appear.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Rauch</surname>
            <given-names>J.:</given-names>
          </string-name>
          <article-title>Considerations on Logical Calculi for Dealing with Knowledge in Data Mining</article-title>
          .
          <source>In: Advances in Data Management. Studies in Computational Intelligence</source>
          , Volume
          <volume>223</volume>
          /
          <year>2009</year>
          , Springer 2009.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Rauch</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Simunek</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>An Alternative Approach to Mining Association Rules</article-title>
          . In: Lin T
          <string-name>
            <given-names>Y</given-names>
            ,
            <surname>Ohsuga</surname>
          </string-name>
          <string-name>
            <given-names>S</given-names>
            ,
            <surname>Liau</surname>
          </string-name>
          <string-name>
            <surname>C J</surname>
          </string-name>
          , and Tsumoto S (eds):
          <source>Foundations of Data Mining and Knowledge Discovery</source>
          . Springer-Verlag,
          <year>2005</year>
          ,
          <fpage>219</fpage>
          -
          <lpage>239</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>