<!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>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Vilius Pranckaitis</string-name>
          <email>vilius.pranckaitis@ktu.edu</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Mantas Lukoševičius</string-name>
          <email>mantas.lukosevicius@ktu.lt</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Faculty of Informatics Kaunas University of Technology Kaunas</institution>
          ,
          <country country="LT">Lithuania</country>
        </aff>
      </contrib-group>
      <fpage>27</fpage>
      <lpage>32</lpage>
      <abstract>
        <p>-There is arguably more research done on clustering of English texts than of any other language. In this article, the process of clustering Lithuanian news articles is studied. For text preprocessing, the effect of stemming, term frequency metrics and feature filtering is investigated. In addition, following clustering algorithms are compared: k-means, bisecting kmeans, and three linkage method variations of hierarchical clustering. The results show that k-means algorithm gives best overall results and that only one of the three hierarchical algorithms produces comparably good results. Term frequencyinverse document frequency (TF-IDF) with stemming significantly increased clustering quality compared to not doing stemming and/or using TF. Feature filtering by IDF helped to optimize the k-means algorithm, but reduced the quality when using hierarchical clustering.</p>
      </abstract>
      <kwd-group>
        <kwd>document clustering</kwd>
        <kwd>feature selection</kwd>
        <kwd>k-means</kwd>
        <kwd>hierarchical clustering</kwd>
        <kwd>Lithuanian news articles</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>I. INTRODUCTION</p>
      <p>The way people transfer information has changed
drastically throughout the history. The initial methods were
slow and had low capacity, e.g. a messenger carrying as many
scrolls as he is physically able to carry. Throughout the
centuries new ways to store and transfer information were
invented. Nowadays information travels at the speed of light in
amounts so large that humans can hardly comprehend them.</p>
      <p>While the amounts of information transferred increased,
human capabilities to consume this information did not
improve as much. This only increases the need for automated
means to process information: group, categorize, find
duplicates, etc. One of such means is document clustering.</p>
      <p>
        This work studies clustering process of Lithuanian news
articles. The purpose of this study is to examine how different
text preprocessing steps and clustering algorithms affect the
quality of the clustering produced. This article describes the
work done and the results of it. Similar previous work includes
[
        <xref ref-type="bibr" rid="ref1 ref2 ref3">1, 2, 3</xref>
        ].
      </p>
      <p>This document is divided into several sections. Section II
introduces reader to feature selection and clustering of textual
data. Section III describes the data set used in this study.
Section IV lists the metrics used to evaluate results. In sections
V and VI it is described how features were selected and what
experiments were performed. Sections VII and VIII provide
analysis of results and conclusions.</p>
    </sec>
    <sec id="sec-2">
      <title>Copyright © 2017 held by the authors</title>
      <p>
        II. A BRIEF INTRODUCTION TO DOCUMENT CLUSTERING
Document clustering is an application of cluster analysis to
textual documents. It is unsupervised learning and can be used
for finding similar documents, organizing large document
collections, detecting duplicate content and search optimization
[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>Document clustering process can be separated into three
stages: feature selection, feature extraction and an application
of clustering algorithm. A more detailed description of these
stages is given in the following paragraphs.</p>
      <sec id="sec-2-1">
        <title>A. Feature selection</title>
        <p>Feature selection is a process of creating feature vectors
from the text of the documents. It includes various text
processing steps such as splitting text into tokens, stemming
and lemmatization, removing stop words, and calculating term
frequency values.</p>
        <p>
          Text data has a few properties, which requires different
approach than clustering other kinds of data [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. While the
dimensionality of text data is large, documents usually contain
a relatively small number of distinct words (i.e. the data is
sparse). In addition, the number of words in two documents
may differ by orders of magnitude (e.g. a tweet versus a
chapter of a book). Also, some of the words might be common
in all kinds of texts while others would only appear in specific
type of documents. Measures for these problems can and
should be taken in feature selection step.
        </p>
        <p>Stemming and lemmatization can be used to reduce the
problem of high dimensionality. Multiple forms of the same
word induce multiple dimensions in a feature vector. By
stemming words multiple dimensions would be joined to a
single dimension corresponding to a base form of the word. In
addition to decreasing dimensionality this would also reduce
noise caused by the grammar of a language (which is especially
true for Lithuanian language, in which a word can have many
different forms).</p>
        <p>
          There are multiple ways to control the input of a term to a
clustering process. A simple stop words list can be used to
remove stop words from the text. Other statistical techniques
can be used for less significant term removal, such as term
strength, entropy-based ranking and term contribution [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. A
common approach to control how much a term affects the
clustering process is term frequency–inverse document
frequency (TF–IDF). A numeric value is assigned to every term
as a product of TF and IDF values. TF is calculated per
document and is directly proportional to the number of times a
term in a document. IDF is calculated per corpus and is
inversely proportional to number of documents in which a term
appears.
        </p>
        <p>There are multiple variants of TF–IDF formula. In this
work fallowing formula is used:
(1)
where ft,d is the number of times term t appears in document d,
N is the number of documents in D, and nt is the number of
documents in D containing term t.</p>
      </sec>
      <sec id="sec-2-2">
        <title>B. Feature extraction</title>
        <p>While feature selection is a process of filtering relevant
features of a text, feature extraction uses the original feature set
to build new features. This includes methods for
dimensionality reduction, such as Principal Component</p>
      </sec>
      <sec id="sec-2-3">
        <title>Analysis, Non-negative Matrix Factorization and Latent</title>
        <p>
          Semantic Indexing [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. The clustering itself can also be used to
extract features. For example, in [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] it was shown how to
reduce dimensionality and noise of the features by clustering
the words first.
        </p>
        <p>
          The importance of feature extraction comes from a fact that
words tend to correlate with one another. This means that the
feature space is bigger than the number of concepts [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ].
Dimensionality reduction can be used to transform this big
feature space to a smaller space of concepts.
        </p>
      </sec>
      <sec id="sec-2-4">
        <title>C. Clustering</title>
        <p>
          There are many different approaches how to cluster textual
data [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]: distance–based clustering, probabilistic methods (e.g.
topic modeling), co-clustering (clustering words and
documents simultaneously), clustering with frequent phrases.
In this work variations two distance–based algorithms are
studied: k–means clustering and hierarchical agglomerative
clustering.
        </p>
        <p>K–means is a simple algorithm, producing flat clustering.
During initialization, algorithm selects k means, which
corresponds to k clusters. Then two steps are repeated: (1) for
every data point choose the nearest mean and assign the point
to the corresponding cluster; (2) recalculate means by
averaging data points assigned to the corresponding cluster.
The algorithm terminates, when assignment of the data points
doesn’t change after successive iterations.</p>
        <p>
          The clustering produced by k–means algorithm highly
depends on the initial means chosen. A common approach is to
run algorithm multiple times with randomly chosen initial
means. In [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] there is proposed a simple randomized seeding
technique, which improves speed and accuracy of k–means.
        </p>
        <p>Bisecting k-means algorithm is a variation of k–means
algorithm. This algorithm takes top–down approach. It starts
with single cluster containing all the data points. Iteratively the
biggest cluster is chosen and split into two parts by running
inner k–means on the data points of the cluster. The algorithm
terminates when the chosen number of clusters is reached.</p>
        <p>Hierarchical agglomerative clustering is another
wellknown technique for clustering. Algorithm starts by assigning
every data point to a separate cluster. Then iteratively two
closest together clusters are joined into a single cluster. This
step is repeated until single cluster is left. The output of the
algorithm is a tree which describes how the clusters were
joined.</p>
        <p>There are multiple ways to describe the distance between
two clusters in terms of distances between data points in those
clusters:


</p>
        <p>Single linkage. The distance between two clusters is
equal to smallest distance between two data point
crossing these clusters (i.e. closest pair of points across
clusters). This resembles Kruskal’s minimum spanning
tree algorithm.</p>
        <p>Group average linkage (also known as Unweighted</p>
      </sec>
      <sec id="sec-2-5">
        <title>Pair Group Method with Arithmetic Mean, UPGMA).</title>
        <p>In this method, the distance between clusters is an
average of distances between every pair of data points
across clusters.</p>
        <p>Complete linkage. This is similar to single linkage
method, but instead of smallest distance the largest
distance between a pair of data points is taken (i.e. the
most distant pair of points across clusters).</p>
        <p>
          The distance–based clustering algorithms requires a metric
to evaluate the distance between data points. In this work a
cosine distance was chosen:
(2)
where , are feature vectors, n is dimensionality of the
vectors. Cosine distance is a commonly used distance metric
and gives good results for textual data [
          <xref ref-type="bibr" rid="ref8 ref9">8, 9</xref>
          ]. In [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ] it was
shown that cosine distance works significantly better than
Euclidean distance when clustering Lithuanian texts using k–
means algorithm.
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>III. DATA SET PREPARATION</title>
      <p>The articles for the experiments were taken from the three
major Lithuanian news websites: delfi.lt, alfa.lt and 15min.lt. A
week’s worth of articles were retrieved, starting from January
1st to January 7th, 2016, total of 3572 articles.</p>
      <p>The news sites contain different sub-sections, e.g. “news
from Lithuania”, “crime”, “business”, etc. Every article is
published in one of these sub-sections. To label the data the
names of the sub-sections were used. One problem of such
labeling is that different websites have different number of
categories, some of which are more abstract than others (e.g.
one website has a single sub-section “sports”, while other has
multiple sub-sections for “basketball”, “football” and so on).
To avoid labels being mismatched, they were normalized
across the websites by grouping them to several categories. By
investigating the websites, a common set of categories was
noticed:</p>
    </sec>
    <sec id="sec-4">
      <title>Crime (321 articles);</title>
    </sec>
    <sec id="sec-5">
      <title>Business (337 articles);</title>
    </sec>
    <sec id="sec-6">
      <title>Cars (170 articles);</title>
    </sec>
    <sec id="sec-7">
      <title>Sports (602 articles);</title>
    </sec>
    <sec id="sec-8">
      <title>Technologies (129 articles);</title>
    </sec>
    <sec id="sec-9">
      <title>Opinions (99 articles);</title>
    </sec>
    <sec id="sec-10">
      <title>Entertainment (526 articles);</title>
    </sec>
    <sec id="sec-11">
      <title>Life (306 articles);</title>
    </sec>
    <sec id="sec-12">
      <title>Culture (56 articles);</title>
      <p>Other (187 articles, which doesn’t fall into previous
categories).</p>
      <p>This division to categories shows that some categories are
more popular than others. For example, 1/6th of the articles fall
into “sports” category. The standard deviation of such
composition is 173.6, and median absolute deviation is 135
(these metrics are also used for comparison of clustering
algorithms further in this article).</p>
      <p>Fig. 1 shows the article categories mapped to 2 dimensions
using PCA. While the “sports” category lies in top right
quadrant clearly separated from other categories, other
categories are much more intermixed. This is probably caused
by the fact that sports articles have a distinctive vocabulary and
that “sports” category takes up a big part of the data set.</p>
    </sec>
    <sec id="sec-13">
      <title>IV. MEANS OF EVALUATION</title>
      <p>To measure the quality of the clustering several evaluation
metrics were used: precision, recall, F1 score, purity and
entropy.</p>
      <sec id="sec-13-1">
        <title>A. Precission and recall</title>
        <p>Precision and recall are well known measures in
information retrieval. Both measures deal with notions of true
positive, false positive, true negative and false negative. In case
of clustering, every pair of documents are taken in account. If a
pair of documents have same label and appear in the same
cluster, then it is a true positive. The rest of the notions are
where C is a set of clusters ci, k is the number of clusters, and N
is the number of items.</p>
        <p>Precision and recall range from 0 to 1 and are defined as:
(3)
(4)
(5)
(6)
(7)
(8)</p>
      </sec>
      <sec id="sec-13-2">
        <title>B. F1 score</title>
        <p>Precision and recall tend to introduce bias when the number
of clusters reaches extremes (e.g. recall equals 1 when every
item falls into a single cluster). F1 score reduces bias by
combining both measures:</p>
        <p>Because F1 score doesn’t tend to favor high or low number
of clusters as much as other metrics, a preference is given to
this metric throughout the article.</p>
      </sec>
      <sec id="sec-13-3">
        <title>C. Purity</title>
        <p>Purity describes the homogeneity of clusters. Purity of a
clustering ranges from 0 to 1 and is defined as

where N is the number of items, k is the number of clusters, ci
is a chosen cluster, and gj is a category which has the
maximum number of items in ci.</p>
        <p>Purity has a bias for high number of clusters. For example,
when every cluster consists of a single item, purity equals to 1.</p>
      </sec>
      <sec id="sec-13-4">
        <title>D. Entropy</title>
        <p>Entropy, same as purity, describes the homogeneity of the
clusters. However, while purity only considers the number of
items from dominating category, entropy considers the whole
composition of the cluster. For a single cluster, entropy is
defined as
where ci is a chosen cluster, m is the number of categories, and
gj is a category which has items in cluster ci. To calculate then
entropy for a whole clustering, weighted average is used:
Entropy, same as purity, is biased towards high number of
clusters (e.g. entropy of a single item cluster is 0).</p>
      </sec>
    </sec>
    <sec id="sec-14">
      <title>V. FEATURE SELECTION PROCEDURE</title>
      <p>Text preprocessing and conversion to feature vectors
consisted of the following steps:
1)
2)
3)
4)
5)
6)</p>
    </sec>
    <sec id="sec-15">
      <title>Splitting text into tokens;</title>
    </sec>
    <sec id="sec-16">
      <title>Switching characters to lowercase;</title>
      <sec id="sec-16-1">
        <title>Stemming (skipped in some experiments);</title>
        <p>Filtering a specific percentage of terms which are
rarest according to IDF (skipped in some experiments);</p>
      </sec>
      <sec id="sec-16-2">
        <title>Applying TF–IDF (TF used in some experiments);</title>
      </sec>
    </sec>
    <sec id="sec-17">
      <title>Normalizing feature vectors.</title>
      <p>More details about what feature selection steps were used
in which experiments are given in the experiment descriptions.</p>
    </sec>
    <sec id="sec-18">
      <title>VI. EXPERIMENTS Several experiments were conducted during this work, testing text preprocessing steps and clustering algorithms. Below is a detailed description of these experiments.</title>
      <sec id="sec-18-1">
        <title>A. Stemming and term frequency experiment</title>
        <p>In this experiment, it was studied how stemming and
different term frequencies affected the clustering. 4 different
configurations were used: (1) TF without stemming, (2) TF
with stemming, (3) TF–IDF without stemming, and (4) TF–
IDF with stemming. No term filtering was applied.</p>
        <p>For clustering, k-means algorithm was used. Each
stemming/term frequency configuration was tested by making
multiple runs, trying out different numbers of clusters k[9;13]
and with 5 randomly generated initial mean sets (in total, 25
runs per stemming/term frequency configuration).</p>
      </sec>
      <sec id="sec-18-2">
        <title>B. Clustering algorithms experiment</title>
        <p>In this experiment, multiple clustering algorithms were
tested. In every test the same feature selection procedure was
used. The text preprocessing matched the steps mentioned in
section “Feature Selection Procedure”, except without any term
filtering applied.</p>
        <p>Below is the list of clustering algorithms tested:





</p>
      </sec>
    </sec>
    <sec id="sec-19">
      <title>K-means;</title>
    </sec>
    <sec id="sec-20">
      <title>Bisecting k-means;</title>
    </sec>
    <sec id="sec-21">
      <title>Hierarchical, single linkage;</title>
    </sec>
    <sec id="sec-22">
      <title>Hierarchical, group average linkage;</title>
    </sec>
    <sec id="sec-23">
      <title>Hierarchical, complete linkage;</title>
      <sec id="sec-23-1">
        <title>Random (for comparison).</title>
        <p>In case of k-means algorithms, previously mentioned
configuration was used: 5 randomly generated initial mean set
for each k[9;13]. The results of multiple tests were averaged.</p>
        <p>Contrary to k-means, hierarchical clustering doesn’t depend
on a random factor. However, to extract flat clustering</p>
        <p>
          HDBSCAN extraction method [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ] was used, which doesn’t
allow direct control of the number of clusters. In HDBSCAN, a
single parameter is used—a minimum size of a cluster. This
allows to imprecisely control the number of clusters produced.
Because of this, multiple tests were run with different
minimum cluster size parameter. The tests, which produces
from 9 to 13 clusters, were picked and their results were
averaged.
        </p>
      </sec>
      <sec id="sec-23-2">
        <title>C. Term filtering experiment</title>
        <p>In term filtering experiment, it was studied how clustering
quality changes in response to increasing the number of terms
removed from feature vectors. Filtering was done by sorting
terms by IDF and removing the ones which appear in the least
number of documents. The percentage of terms remaining after
filtering ranged from 100% to 10%. K-means and group
average linkage hierarchical algorithms were used, configured
as in clustering algorithms experiment.</p>
      </sec>
    </sec>
    <sec id="sec-24">
      <title>VII. RESULTS AND ANALYSIS</title>
      <sec id="sec-24-1">
        <title>A. Stemming and term frequency experiment</title>
        <p>The average F1 scores of different stemming and term
frequency combinations are displayed in Fig. 2. The worst
results are produced by TF ( without stemming and
with stemming). While TF–IDF without stemming
provides only a small increase ( ), the F1 score
improves by more than 50% when applying stemming
( ).</p>
        <p>The results confirm the intuition that TF–IDF and
stemming improves clustering by disregarding stop words and
reducing noise caused by language grammar. It is worth noting
that stemming was much more effective when combined with
TF–IDF. This shows that when selecting features, one
misconfigured step can greatly diminish effect of other steps.</p>
      </sec>
      <sec id="sec-24-2">
        <title>B. Clustering algorithms experiment</title>
        <p>In Fig. 3 there are displayed average and maximum values
of F1 score. The best results (both average and maximum)
were shown by k–means and bisecting k–means algorithms
(latter achieving the absolute maximum across
all algorithms with no term filtering applied). Close results
were shown by group average linkage hierarchical algorithm.
Complete linkage and single linkage versions performed
significantly worse, by value being closer to random clustering
than to previously mentioned algorithms.</p>
        <p>More quality measures are given in Table II. Different
algorithms lead according to different metrics, but two of them
stands out: k–means algorithm has the highest mean value of
F1 score and purity, while group average linkage hierarchical
clustering leads by precision and entropy.</p>
        <p>Among all the algorithms, single linkage hierarchical
clustering has the best recall value. This is probably caused by
the fact that recall is biased to favor big clusters. In many cases
this algorithm produced single cluster containing more than a
half of articles along with multiple small clusters. The cluster
size statistics confirms that—single linkage hierarchical
clustering has the highest standard deviation, but lowest
median absolute deviation (MAD). High standard deviation is
caused by cluster sizes being distant from the mean. In case of
MAD, a small number of outliers are irrelevant, so low MAD
value means that the sizes of most of the clusters are close to
each other.</p>
        <p>When comparing cluster size statistics, group average
hierarchical algorithm produces clusters which are close to
each other in size. This observation is backed up by relatively
low values of standard deviation and median absolute
deviation. The cluster size distribution is not as equal in case of
both k–means algorithms. While the k–means has lower
standard deviation, bisecting k–means has lower MAD. In
other words, the majority of clusters produced by bisecting k–
means are more similar in size than those produced by k–
means, but the outliers are more extreme too.</p>
        <p>Fig. 4 displays the relation between number of clusters and
the F1 score of hierarchical clustering algorithms. Group
average clustering tends to show higher values when the
number of clusters is close to the number of categories. This
signals that the underlying concepts found by the algorithm are
similar to the categories of the documents. In case of single and
complete linkage methods, there is no such correlation.</p>
      </sec>
      <sec id="sec-24-3">
        <title>C. Term filtering experiment</title>
        <p>For filtering tests, k-means and group average linkage
hierarchical algorithms were chosen. There were multiple runs
starting with full feature space of 41 thousand dimensions to
only 10% of terms which are most common across the
documents. The F1 scores are displayed in Fig. 5.</p>
        <p>Of the two algorithms, k–means shows less sensitivity to
changes of feature space. While there is a small decrease in F1
score moving from 100% to 50% of the dimensionality
(minimum at ), the F1 score of 10% rises slightly
above the full feature space with versus</p>
        <p>.386.</p>
        <p>
          Similar results were shown in [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ]. This study compared
different metrics for feature selection, including document
frequency. The clustering was done on English texts using k–
means algorithm. The variation of quality metrics moving from
100% to 10% was relatively small. A more rapid change
occurred going from 10% down to 2%. Reference [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ] tested
multiple feature selection metrics on Lithuanian and Russian
texts, and had best results at 7% of features remaining.
        </p>
        <p>The results of group average linkage hierarchical clustering
differ from the k-means ones. The variance of F1 score is
significantly greater. At the beginning the score increases from
to . Later values drop reaching
and after a temporal increase eventually drops
to .</p>
        <p>The pruning of 10% of features might have reduced the
noise in the feature space. This would explain the sudden rise
of the F1 score. The further pruning might have started
removing relevant features. However, this does not explain the
increase in F1 score at 30–20% of feature space.
Cluster 143
size
variklio šalčio aktorė rungtynių karinių policijos bendrovės dakaro jums šulinį
dyzelinių temperatūra dainininkė ekipa partijos ugniagesiai barelį ruožas organizmą saviečių
gamintojų laipsnių muzikinę žaidėjų sąjungininkų vpk indeksas ralio vitaminų tragedijos
automobilių kritulių prodiuseris turnyro nimro neblaivus brent ekipažas astrologė smurto
Relevant elektromobilių rajoniniai eurovizijos taškų šiitų ambulatoriškai įmonės vanagas cukraus mažamečius
words tesla sniego koncertinį pergalę obama prom valiutos juknevičius horoskopas smurtaudamas
motors provėžoti meninės kamuolį narystės patrulių wti lenktynininkai riebalų sugyventinę
fiat hidrometeorologijos žanro treneris referendumas komisariato holding trasos jus sumetė
volkswagen plikledis scenoje rezultatyvaus sirijos girtumas akcininkų lenktynių mitybos nužudė
lg prispausto režisierius įvartį nato vairuojamas aplinkosaugos benediktas ožiaragis ekspertizė
When comparing both clustering algorithms, k-means
seems to intrinsically diminish the value of rare terms. In case
of group average hierarchical clustering, the impact of such
terms to the clustering results is significantly higher.</p>
      </sec>
      <sec id="sec-24-4">
        <title>D. A drill–down look at the clustering results</title>
        <p>During this study, several hundred runs were made of
various clustering configurations. From the top 50 tests sorted
by the F1 score, every single one was done using one of the
two k–means algorithms, only several of them being bisecting
k–means. Most of these tests came from the filtering
experiment, over a half having 40% or less features remaining.</p>
        <p>In order to have a better idea if the methods actually
produce meaningful clusters, a metric was proposed to measure
which terms are more relevant to the cluster. It is a
combination of two inverse document frequencies and is
defined as
where t is a term, c is a set of documents in a cluster, and D is
the documents in the data set. In other words, term relevance is
high if the term is (1) relatively rare across the documents in
the data set and (2) relatively common in the documents of the
cluster.</p>
        <p>The test with the highest F1 score came from the filtering
experiment: k–means algorithm and 20% of remaining
features. The most relevant terms of this test are displayed in
Table III. As expected, the clusters don’t seem to identically
map to the categories in the data set. However, the themes of
the clusters are easily noticeable (in Table III, some of the
themes are “cars”, “sports”, “Dakar rally”, “business”, “foreign
politics” and “crime”). Despite that, a deeper look at the
(9)
clusters reveals that it is not uncommon for other themes to
appear in the clusters, sometimes not very related to the
relevant words.</p>
      </sec>
    </sec>
    <sec id="sec-25">
      <title>VIII. CONCLUSIONS</title>
      <p>In this work, several different experiments were performed
studying feature selection process and clustering algorithms.
Term frequency and stemming experiment proved that TF–IDF
with stemming is superior to other configurations. In addition,
this experiment showed that one misconfigured step in the
process can greatly diminish the effects of other steps. In the
clustering algorithms experiment only 3 of 5 algorithms tested
produced acceptable results, k–means performing arguably the
best overall. In case of filtering experiment, k–means algorithm
seemed mostly unaffected by removal of major part of the
features, while the results of group average linkage hierarchical
clustering varied more and was less predictable.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>G.</given-names>
            <surname>Ciganaitė</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Mackutė-Varoneckienė</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Krilavičius</surname>
          </string-name>
          ,
          <article-title>"Text documents clustering," in 19-oji tarpuniversitetinė tarptautinė magistrantų ir doktorantų konferencija</article-title>
          IVUS,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>A.</given-names>
            <surname>Mackutė-Varoneckienė</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Krilavičius</surname>
          </string-name>
          ,
          <article-title>"Empirical Study on Unsupervised Feature Selection for Document Clustering," in Human Language Technologies - The Baltic Perspective</article-title>
          , pp.
          <fpage>107</fpage>
          -
          <lpage>109</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>E.</given-names>
            <surname>Kebelytė</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lukoševičius</surname>
          </string-name>
          ,
          <article-title>"Keywords analysis of Lithuanian news stream," in 20-toji tarptautinė magistrantų ir doktorantų konferencija "Informacinės technologijos 2015"</article-title>
          , Kaunas,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>N.</given-names>
            <surname>Shah</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Mahajan</surname>
          </string-name>
          ,
          <article-title>"Document clustering: a detailed review,"</article-title>
          <source>International Journal of Applied Information Systems</source>
          , vol.
          <volume>4</volume>
          (
          <issue>5</issue>
          ), pp.
          <fpage>30</fpage>
          -
          <lpage>38</lpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>C. C.</given-names>
            <surname>Aggarwal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Zhai</surname>
          </string-name>
          ,
          <article-title>"A survey of text clustering algorithms," in Mining Text Data</article-title>
          , New York, Springer-Verlag, pp.
          <fpage>77</fpage>
          -
          <lpage>128</lpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>N.</given-names>
            <surname>Slonim</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Tishby</surname>
          </string-name>
          ,
          <article-title>"Document clustering using word clusters via the information bottleneck method,"</article-title>
          <source>in Proceedings of the 23rd annual international ACM SIGIR conference</source>
          ,
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>D.</given-names>
            <surname>Arthur</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Vassilvitskii</surname>
          </string-name>
          ,
          <article-title>"k-means++: the advantages of careful seeding," in Proceedings of the eighteenth annual ACM-SIAM symposium on Discrete algorithms</article-title>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>H.</given-names>
            <surname>Anna</surname>
          </string-name>
          ,
          <article-title>"Similarity measures for text document clustering,"</article-title>
          <source>in Proceedings of the Sixth New Zealand</source>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>A.</given-names>
            <surname>Strehl</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Ghosh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Mooney</surname>
          </string-name>
          ,
          <article-title>"Impact of similarity measures on webpage clustering,"</article-title>
          <source>in In Workshop on Artificial Intelligence for Web Search (AAAI</source>
          <year>2000</year>
          ),
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>R. J. G. B. Campello</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Moulavi</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Sander</surname>
          </string-name>
          ,
          <article-title>"Density-based clustering based on hierarchical density estimates," Advances in Knowledge Discovery and Data Mining</article-title>
          , pp.
          <fpage>160</fpage>
          -
          <lpage>172</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>T.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Chen</surname>
          </string-name>
          , W.-Y. Ma,
          <article-title>"An evaluation on feature selection for text clustering,"</article-title>
          <source>Icml</source>
          , pp.
          <fpage>488</fpage>
          -
          <lpage>495</lpage>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>