<!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 for ontology construction</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Blaz Fortuna</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dunja Mladenic</string-name>
        </contrib>
      </contrib-group>
      <fpage>2</fpage>
      <lpage>4</lpage>
      <abstract>
        <p>In this paper we describe a solution for incorporating background knowledge into the OntoGen system for semi-automatic ontology construction. This makes it easier for different users to construct different and more personalized ontologies for the same domain. To achieve this we introduce a word weighting schema to be used in the document representation. The weighting schema is learned based on the background knowledge provided by user. It is than used by OntoGen's machine learning and text mining algorithms.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>INTRODUCTION</title>
      <p>When using ontology-based techniques for knowledge management
it is important for the ontology to capture the domain knowledge in
a proper way. Very often different tasks and users require the
knowledge to be encoded into ontology in different ways, depending on
the task. For instance, the same document-database in a company
may be viewed differently by marketing, management, and technical
staff. Therefore it is crucial to develop techniques for incorporating
user’s background knowledge into ontologies.</p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] we introduced a system called OntoGen for semi-automatic
construction of topic ontologies. Topic ontology consists of a set of
topics (or concepts) and a set of relations between the topics which
best describe the data. The OntoGen system helps the user by
discovering possible concepts and relations between them within the data.
      </p>
      <p>In this paper we propose a method which extends OntoGen system
so that the user can supervise the methods for concept discovery by
providing background knowledge - his specific view on the data used
by the text mining algorithms in the system.</p>
      <p>
        To encode the background knowledge we require from the user to
group documents into categories. These categories do not need to
describe the data in details, the important thing is that they show to the
system the user’s view of the data - which documents are similar and
which are different from the user’s perspective. The process of
manually marking the documents with categories is time consuming but
can be significantly speeded up by the use of active learning [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
Another source of such labeled data could be popular online tagging
services (e.g Del.icio.us) which allow the user to label the websites
of his interests with labels he chose.
      </p>
      <p>This paper is organized as follows. In Section 2 we introduce
OntoGen system and in Section 3 we derive the algorithm for calculating
word weights. We conclude the paper with some preliminary results
in Section 4.</p>
    </sec>
    <sec id="sec-2">
      <title>ONTOGEN</title>
      <p>
        OntoGen [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] is a system for semi-automatic ontology construction,
screenshot of the tool is presented in the Figure 1. Important part
of OntoGen are methods for discovering concepts from a collection
of documents. For the representation of the documents we use the
well established bag-of-words representation which heavily relies on
the weights associated with the words. The weights of the words are
commonly calculated by so called TFIDF weighting. We argue that
this provides just one of the possible views on the data and propose
an alternative word weighting that takes into account the background
knowledge which provides the user’s view on the documents.
      </p>
      <p>
        OntoGen discovers concepts using Latent Semantic Indexing
(LSI) [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] and k-means clustering [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The LSI is a method for
linear dimensionality reduction by learning an optimal sub-basis which
approximates documents’ bag-of-words vectors. The sub-basis
vectors are treated as concepts. The k-means method discovers concepts
by clustering the documents’ bag-of-words vectors into k clusters
where each cluster is treated as a concept.
      </p>
      <p>Both methods heavily rely on the representation of the documents.
Namely, the document representation provides the vectors of the
documents which LSI tries to approximate and, the basis for clustering
algorithm is the similarity of document which also depends on the
document representation.</p>
      <p>By incorporating background knowledge directly into the
document representation via word weighting, reflecting similarity
between the documents, we enable our methods to discover concepts
which resemble the view that the user has on the data.
3.1</p>
    </sec>
    <sec id="sec-3">
      <title>WORD WEIGHTING</title>
    </sec>
    <sec id="sec-4">
      <title>Bag-of-Words and Cosine Similarity</title>
      <p>Most commonly used representation of the documents in text mining
is bag-of-words representation. Let V = w1, . . . , wn be vocabulary
of words. Let T Fk be the number of occurrences of the word wk in
the document. In the bag-of-words representation a single document
is encoded as a vector x with elements corresponding to the words
from a vocabulary, eg. xk = T Fk. These vectors are in general very
sparse since the number of different words that appear in the whole
collection is usually much larger than the number of different words
that appear inside one specific document.</p>
      <p>Measure usually used to compare text documents is the cosine
similarity and is defined to be the cosine of the angle between two
documents’ bag-of-words vectors,
sim(xi, xj ) =</p>
      <p>Pkn=1 xikxjk
pPn k=1 xikxik
k=1 xikxikpPn
.</p>
      <p>(1)
Performance of both bag-of-words representation and cosine
similarity can be significantly improved by introducing word weights. Each
word from vocabulary V is assigned a weight and elements of
vectors xi are multiplied by the corresponding weights.</p>
      <p>As we already mentioned, our approach is based on the word
weights being the key to viewing the same data from different angels.
We can use the weights to store the background knowledge since the
weights define which words are important.
3.2</p>
    </sec>
    <sec id="sec-5">
      <title>TFIDF</title>
      <p>Most of the research on word weighting schemas was traditionally
done in the information retrieval community. A typical goal in
information retrieval is to find the most relevant document from the
document collection for a given query. Many popular methods from
information retrieval are based on measuring cosine similarity
between the documents and a query and their performance can be
significantly improved by appropriate weighting of the words.</p>
      <p>
        Most of the popular methods for this task developed in last decades
do not involve learning. Word weights are calculated by predefined
formulas from some basic statistics of the word frequencies inside
the document and inside the whole document collection [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. These
methods are base on intuition and experimental validation.
      </p>
      <p>
        The most widely used is the TFIDF weighting schema [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] which
defines elements of bag-of-words vectors with the following formula:
xik = T Fk · log(N · IDFk).
(2)
      </p>
      <p>The intuition behind this weighting schema is that the words which
occur very often are not so important for determining if a pair of
documents is similar while a not so frequent words occurring in the
both documents is a strong sign of similarity. The TFIDF weighting
can be easily modified to include category information by replacing
IDF and number of documents with ICF and number of categories.</p>
      <p>
        There are many extensions of this schema most famous being
Okapi weighting schema [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] which we will skip here since it does
not incorporate category information.
3.3
      </p>
    </sec>
    <sec id="sec-6">
      <title>SVM Feature Selection</title>
      <p>
        As we will see in the next chapter a different approach can also be
taken for generating word weights based on feature selection
methods. Feature selection methods based on Support Vector Machine
(SVM) [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] has been found to increase the performance of
classification by discovering which words are important for determining the
correct category of a document [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>The method proceeds as follow. First linear SVM classifier is
trained using all the features. Classification of a document is done
by multiplying the document’s bag-of-words vector with the normal
vector computed by SVM,
xT w = x1w1 + x2w2 + . . . + xnwn,
(3)
and if the result is above some threshold b then the document is
considered positive. This process can also be seen as voting where each
word is assigned a vote weight wi and when document is being
clasi i as its vote. All the
sified each word from the document issues x w
votes are summed together to obtain the classification. A vote can be
positive (document should belong to the category) or negative (the
document should not belong to the category).</p>
      <p>A simple and naive way of selecting the most important words for
the given category would be to select the words with the highest vote
values wi for the category. It turns out that it is more stable to select
the words with the highest vote xiwi averaged over all the positive
documents.</p>
      <p>The votes wi could also be interpreted as word weights since they
are higher for the words which better separate the documents
according to the given categories.
3.4</p>
    </sec>
    <sec id="sec-7">
      <title>Word Weighting with SVM</title>
      <p>The algorithm we developed for assigning weights using SVM
feature selection method is the following:
1. Calculate a classifier for each category from the document
collection (one-vs-all method for multi-class classification). TFIDF
weighting schema can be used at this stage. Result is a set of SVM
normal vectors W = {wj ; j = 1, . . . , m}, one for each category.
2. Calculate weighting for each of the categories from its classifier
i i
weight vector. Weights are calculated by averaging votes x w
across all the documents from the category. Only weights with
positive average are kept while the negative ones are set to zero.
This results in a separate set of word weights for each category.</p>
      <p>By μjk we denote weight for the k-th word and j-th category.
3. Weighted bag-of-words vectors are calculated for each document.</p>
      <p>Let C(di) be a set of categories of a document di. Elements of
vector xi are calculated in the following way:</p>
      <p>
xik = </p>
      <p>X
j∈C(di)

j
μk · T Fk .</p>
      <p>(4)</p>
      <p>This approach has another strong point. Weights are not only
selected so that similarities correspond to the categories given by the
user but they also depend on the context. Let us illustrate this on a
sample document which contains words ”machine learning”. If the
document would belong to category ”learning” then the word
”learning” would have high weight and the word ”machine” low weight.
However, if the same document would belong to category ”machine
learning”, then most probably both words would be found important
by SVM.
4
4.1</p>
    </sec>
    <sec id="sec-8">
      <title>PRELIMINARY RESULTS</title>
    </sec>
    <sec id="sec-9">
      <title>Reuters RCV1 Dataset</title>
      <p>
        As a document collection for testing our method we chose Reuters
RCV1 [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] dataset. The reason for which we chose it is that each news
article from the dataset has two different types of labels (categories).
Each news article is assigned labels according to (1) the topics
covered and (2) the countries involved in it. We used a subset of 5000
randomly chosen documents for the experiments.
      </p>
      <p>A List with the 10 most frequent categories from the used subset
of RCV1 dataset is shown in Table 1. The statistics are for the subset
used in the experiments.
4.2</p>
    </sec>
    <sec id="sec-10">
      <title>Results</title>
      <p>In the Figure 2 are the top 3 concepts discovered with k-means
algorithm for both word weighting schemas. Documents are placed
also in different concepts. For example, having two documents
talking about the stock prices, one at the New York stock-exchange and
the other at the UK stock-exchange. The New York document was
placed in (1) Market concept (the same as the UK document) and in
(2) USA concept (while the UK document was placed in (2) Europe
concept).</p>
    </sec>
    <sec id="sec-11">
      <title>CONCLUSION</title>
      <p>In this paper we have presented a method for learning document
similarity measure trough selecting appropriate word weights for
bag-ofwords document representation model. We selected the word weights
by training the SVM linear classifier for given categories and than
extracting the word weights from the hyper plane normal vector. The
learned word weighting schema was used to adjust the concept
discovery methods in the OntoGen system to the user’s domain
knowledge.</p>
      <p>As part of the future work we plan to extend this method to the text
categorization task where category information is known only for the
documents from training set.</p>
    </sec>
    <sec id="sec-12">
      <title>ACKNOWLEDGEMENTS</title>
      <p>This work was supported by the Slovenian Research Agency and the
IST Programme of the European Community under SEKT
Semantically Enabled Knowledge Technologies (IST-1-506826-IP), NeOn
Networked Ontologies (IST-2004- 27595) and PASCAL Network of
Excellence (IST-2002-506778). This publication only reflects the
authors’ views.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Brank</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Grobelnik</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Milic-Frayling</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mladenic</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Feature selection using support vector machines</article-title>
          .
          <source>Proceedings of the Third International Conference on Data Mining Methods and Databases for Engineering</source>
          , Finance, and Other Fields, Bologna, Italy,
          <fpage>25</fpage>
          -
          <lpage>27</lpage>
          September 2002
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>N.</given-names>
            <surname>Cristianini</surname>
          </string-name>
          and
          <string-name>
            <given-names>J.</given-names>
            <surname>Shawe-Taylor</surname>
          </string-name>
          ,
          <article-title>An introduction to support vector machines</article-title>
          , Cambridge University Press,
          <year>2000</year>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>S.</given-names>
            <surname>Deerwester</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Dumais</surname>
          </string-name>
          , G. Furnas,
          <string-name>
            <given-names>T.</given-names>
            <surname>Landuer</surname>
          </string-name>
          and
          <string-name>
            <given-names>R.</given-names>
            <surname>Harshman</surname>
          </string-name>
          ,
          <article-title>Indexing by Latent Semantic Analysis</article-title>
          ,
          <source>Journal of the American Society of Information Science</source>
          , vol.
          <volume>41</volume>
          , no.
          <issue>6</issue>
          ,
          <fpage>391</fpage>
          -
          <lpage>407</lpage>
          ,
          <year>1990</year>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Fortuna</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mladenic</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Grobelnik</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          , (
          <year>2005a</year>
          ).
          <article-title>Semi-automatic construction of topic ontology</article-title>
          .
          <source>Proceedings of the ECML/PKDD Workshop on Knowledge Discovery for Ontologies.</source>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Grobelnik</surname>
            <given-names>M.</given-names>
          </string-name>
          &amp;
          <string-name>
            <surname>Mladenic</surname>
            <given-names>D.</given-names>
          </string-name>
          <article-title>Automated knowledge discovery in advanced knowledge management</article-title>
          .
          <source>J. of. Knowledge management 2005</source>
          , Vol.
          <volume>9</volume>
          ,
          <fpage>132</fpage>
          -
          <lpage>149</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Jain</surname>
          </string-name>
          ,
          <article-title>Murty and Flynn: Data Clustering: A Review, ACM Comp</article-title>
          . Surv.,
          <year>1999</year>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Lewis</surname>
            ,
            <given-names>D. D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yang</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rose</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Li</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <article-title>RCV1: A New Benchmark Collection for Text Categorization Research</article-title>
          .
          <source>Journal of Machine Learning Research</source>
          ,
          <volume>5</volume>
          :
          <fpage>361</fpage>
          -
          <lpage>397</lpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Novak</surname>
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mladenic</surname>
            <given-names>D.</given-names>
          </string-name>
          &amp;
          <string-name>
            <surname>Grobelnik</surname>
            <given-names>M.</given-names>
          </string-name>
          <article-title>Text classification with active learning</article-title>
          .
          <source>Proceedings of GfKl</source>
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Robertson</surname>
            ,
            <given-names>S. E.</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Walker</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. M.</given-names>
            <surname>Hancock-Beaulieu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Gatford</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Payne</surname>
          </string-name>
          .
          <source>Okapi at TREC-4. The Fourth Text REtrieval Conference (TREC-4)</source>
          .
          <fpage>1996</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>G.</given-names>
            <surname>Salton</surname>
          </string-name>
          .
          <source>Developments in Automatic Text Retrieval. Science</source>
          , Vol
          <volume>253</volume>
          , pages
          <fpage>974</fpage>
          -
          <lpage>979</lpage>
          .
          <year>1991</year>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Singhal</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Buckley</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Mitra</surname>
          </string-name>
          .
          <article-title>Pivoted Document Length Normalization</article-title>
          .
          <source>Proceedings of the 19th ACM SIGIR Conference on Research and Development in Information Retrieval</source>
          .
          <year>1996</year>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>