<!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>SOFIA: An Analytics Recommendation System</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Fatemeh Nargesian</string-name>
          <email>fnargesian@cs.toronto.edu</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alain Biem</string-name>
          <email>abiem@yahoo.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Prateek Jain</string-name>
          <email>jainprateek@gmail</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Srinivasan Parthasarathy</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Deepak S. Turaga</string-name>
          <email>turaga@us.ibm.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Science, University of Toronto, IBM Watson Research Center</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>The SOFIA analytic recommender system helps non-expert users to select analytics (algorithms and their implementations) to fulfill a data mining task in an effective manner. The recommender is a novel framework that applies an ontology-driven approach to recommend a ranked list of analytics to fulfill a task based on the characteristics of the given dataset. SOFIA relies on an ontological representation of data science principles evolved by the data science community; it does not require training examples nor actual deployment of candidate analytics on given datasets.</p>
      </abstract>
      <kwd-group>
        <kwd>Analytics Recommendation</kwd>
        <kwd>Data mining</kwd>
        <kwd>Ontology</kwd>
        <kwd>Meta-learning</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        In several domains, such as data mining, there is a variety of algorithms and their
implementations, in major software packages, that can be considered as candidates to solve
particular data mining problems. One of the most difficult tasks in such domains is to
decide when one analytic (an algorithm or one of its implementations) is better than
the other to do a data mining task on a dataset with particular characteristics.
“Metalearning” is the automatic process of knowledge acquisition that relates the performance
of the learning algorithms with the characteristics of the machine learning problems and
datasets [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. SOFIA is an application which delivers the following services: registering
data mining analytics (algorithms or executables) by developers and experts,
querying and searching analytics (keyword search), visualizing analytics, deploying single
executables or composed analytics, and recommending analytics. In this paper, we
introduce the analytics recommendation aspect of SOFIA, demonstrated in Figure 2. The
users of SOFIA are data analysts in different domains who are interested in finding the
most efficient and effective analytics to do data mining tasks. These users have limited
knowledge about data mining algorithms, implementations and the characteristics of
their datasets.
      </p>
      <p>
        Several approaches to solving the problem of analytics selection can be identified.
The most straightforward approach is to evaluate each available analytic, on the given
dataset, and select the one yielding the best results for the task. This data-driven
approach is simple and intuitive but is time-consuming when the data set is large and there
is a large choice of analytics for the task [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. A more efficient way is the use of expert
or consensus knowledge relating the characteristics of analytics, data mining tasks and
datasets [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. The use of this knowledge is expressed via reasoning rules; however,
developing rules for analytics selection may be expensive and unfeasible, since good human
experts are not always available [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. SOFIA has unified the consensus knowledge about
different data mining algorithms and analytics in order to support automatic knowledge
discovery and provide a base for research. SOFIA ontology is an OWL-based ontology
which represents machine learning analytics at various levels of abstractions in a
taxonomy. At the high level, the SOFIA ontology represents general data mining tasks such
as classification, clustering, or prediction, etc. Each task can then be achieved by a set
of algorithms and each algorithm has various implementations registered in the system.
The SOFIA ontology, currently, consists of 342 implementations in languages such as
Python, Java and C++ for 461 algorithms and 227 number of data mining tasks.
SOFIA automatically derives the characteristics of a dataset by analyzing its schema
and data values and infers more characteristics following some ontological rules
embedded in the ontology. Then, a set of recommendation rules are generated on the fly to
match the characteristics of SOFIA analytics and those of the given dataset to come up
with recommendations. In SOFIA, the logic of analytics and dataset property matching
is expressed, by a data mining expert, as simple analytic-to-dataset characteristics
mappings. A mapping is an association between a dataset’s property and its value and an
analytic’s property and its value. It describes a partial condition for matching analytics
to datasets. An instance of an analytic-to-dataset mapping is: if an algorithm supports
multi-category classification, it could be deemed as a recommendation for a dataset with
more than two class labels. A composition of mappings between dataset properties and
analytic properties discovers whether the analytic would perform a specific task
efficiently and effectively on the dataset. An example of such composition is shown in
Figure 1(b) as a rule in Semantic Web Rule Language (SWRL)(http://protege.stanford.edu).
According to this rule, it is inferred that, in Figure 1(a), a classification algorithm A with
shown characteristics is a good match for dataset D, since the algorithm A is relatively
robust to noise and missing data, thus, it can efficiently handle the large amount of
noise and missing data in dataset D. Moreover, the input and class type of algorithm A
is similar to those of dataset D. In SOFIA, other properties of analytics, such as
efficiency, numerical stability, etc. are also taken into account while matching a dataset to
analytics. SOFIA adopts an algorithm for automatic compilation of mappings and
generating recommendation rules. These rules are created dynamically on the fly according
to the dataset and data mining task provided by the user. After incorporating the rules
in SOFIA ontology, the reasoning algorithm of SOFIA evaluates the rules against the
ontology and the recommendations are inferred.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>SOFIA Analytics Recommender</title>
      <p>Sofia analytics recommender has two modes for different users: (1) domain experts, (2)
data analysts. The domain expert mode allows data mining experts of SOFIA to modify
dataset-analytics mappings and semantic general rules in text format. This application
mode of SOFIA is not demonstrated in this paper due to lack of space. In data analyst
mode, the user first specifies a dataset by uploading a dataset in CSV format or selecting
from a list of existing datasets (UCI repository). Then, she selects a data mining task
and the number of required recommendations as shown in left part of Figure 2. Based
on the selected task, the system might ask the user for extra information. For instance,
in a classification task, SOFIA needs to know which column in the CSV file is the class
(a) Datasets and analytics properties.</p>
      <p>
        (b) A recommendation rule written in SWRL.
label column. SOFIA extracts native, derived and task-specific properties of the dataset
such as size, missing data level, noisy data level, etc. These properties are shown to
the user in case a user would like to do further corrections on dataset properties, as
in the middle part of Figure 2. In the next step, the recommender composes a set of
the recommendation rules, on the fly, based on the characteristics of the dataset and
selected task. Then, the recommendation rules are incorporated into SOFIA ontology.
The recommender uses Pellet reasoner (http://clarkparsia.com/pellet) to evaluate the
rules. These analytics are then ranked by the sum of the mappings’ significance scores
involving in the rule that infers them [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. In the following sections, we describe the
dataset properties extraction and rule composition components of SOFIA recommender
in more details.
2.1
      </p>
      <sec id="sec-2-1">
        <title>Dataset Properties Extraction</title>
        <p>SOFIA represents a dataset with a set of native (e.g. data type, size), derived (e.g.
missing data level, noisy data level) and task specific properties (e.g. number of classes,
class label type for classification task). Dataset properties extraction module scans the
dataset provided by the user and generates the dataset profile as data property values.
For example, missing data ratio is the average number of missing data values in each
row of a dataset. This ratio can then be translated into a string value for missing data
level property (e.g., small, medium and large) assuming threshold intervals.
2.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>Automatic Generation of Recommendation Rules</title>
        <p>Manually creating recommendation rules that result in high quality recommendations
costs domain experts’ effort and time. SOFIA takes as input a set of simple mappings,
written by an expert, and generates a set of recommendation ontological rules,
automatically and on the fly, by combining appropriate mappings. The body of a
recommendation rule is a conjunction of conditions on dataset and analytics’ properties that
qualify analytics as recommendations for a dataset. The rule generation module of SOFIA
adopts a filtering approach to prune candidate analytics for recommendation. The
algorithm starts by assuming that all analytics available in the ontology are potential
recommendations. The mapping selection procedure follows a greedy policy to select
mappings based on significance scores. These scores are provided in the mapping file
by the domain expert. At each step, a mapping is selected and if it premise is satisfied
based on the characteristics of the dataset, the clauses in its head are added to the
partial recommendation rule. The head clauses are mostly related to the characteristics of
recommended analytics. Then, the partial rule is added to the ontology and the reasoner
infers recommended analytics that might be filtered in the next filtering steps. The
filtering procedure terminates when the partial rule is restrictive enough to return the number
of required recommendations.
3</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Implementation and Demonstation</title>
      <p>In this demonstration, we introduce SOFIA, a tool to explore data mining analytics and
request for recommendations for fulfilling a task on a user given dataset. SOFIA has
been implemented using Java. SOFIA ontology represents machine learning analytics
using Web Ontology Language (OWL). SOFIA offers an interactive web interface
implemented using play framework. In the demonstration, users can play with SOFIA
ontology visualization tool order to become familiar with existing analytics’
properties, available at different levels of taxonomy. They can also browse description and
ontological information about different analytics and search for analytics using
keywords. Users can also advocate expert users and register new analytics or matching
mappings to SOFIA. On the other hand, a user can use SOFIA as a data analyst
requesting analytics recommendations for fulfilling a data mining task on a dataset. In
this demonstration, we will highlight features of SOFIA using both UCI repository
datasets (https://archive.ics.uci.edu/ml/datasets.html) and real datasets.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Christophe</given-names>
            <surname>Giraud-Carrier</surname>
          </string-name>
          et al.
          <article-title>Introduction to the special issue on meta-learning</article-title>
          .
          <source>In Machine Learning</source>
          , volume
          <volume>54</volume>
          , pages
          <fpage>187</fpage>
          -
          <lpage>193</lpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Ricardo</surname>
            <given-names>B. C.</given-names>
          </string-name>
          <string-name>
            <surname>Prudncio</surname>
          </string-name>
          et al.
          <article-title>Meta-learning approaches to selecting time series models</article-title>
          .
          <source>In Machin Learning</source>
          , pages
          <fpage>121</fpage>
          -
          <lpage>137</lpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3. et al.
          <source>Quan Sun</source>
          .
          <article-title>Pairwise meta-rules for better meta-learning-based algorithm ranking</article-title>
          .
          <source>In Machine Learning</source>
          , volume
          <volume>93</volume>
          , pages
          <fpage>141</fpage>
          -
          <lpage>161</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4. et al.
          <article-title>Smith-Miles. Cross-disciplinary perspectives on meta-learning for algorithm selection</article-title>
          .
          <source>In ACM Computer Survey</source>
          , volume
          <volume>41</volume>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>