<!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>Development and research of algorithms for clustering data of super-large volume</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>I.А. Rytsarev</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>А.V. Blagov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>M.I. Khotilin</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Samara National Research University</institution>
          ,
          <addr-line>34 Moskovskoe Shosse, 443086, Samara</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2017</year>
      </pub-date>
      <fpage>80</fpage>
      <lpage>83</lpage>
      <abstract>
        <p>The work is devoted to the research of text data clustering algorithms. As the object of research, the social network Twitter was selected. At the same time, text data was collected, processed and analyzed. To solve the problem of obtaining the necessary information, studies in the field of optimizing the data collection of the social network Twitter were carried out. A software tool that provides the collection of necessary data from specified geolocation has been developed. The existing algorithms for clustering data, mainly of large volume were explored. The aim of the paper is to explore the algorithms of clustering text data of social networks collected on certain geolocations. As the object of research data from the social network Twitter was used. To achieve the goal, the following tasks were set: - collection of social network data, - processing of the received data with extraction of the necessary information, - research, approbation and modernization of data clustering algorithms. During the research work the following algorithms were studied and tested: • The k-means algorithm, • LDA algorithm; • algorithm of data classification by the judge method. In addition to the algorithms, the following measures were tested: • TF-IDF, • Word2Vec. A software product to collect data from the social network Twitter was developed. A software product for cluster analysis of collected data is also being developed.</p>
      </abstract>
      <kwd-group>
        <kwd>data clustering algorithms</kwd>
        <kwd>superhigh volume data</kwd>
        <kwd>text analysis</kwd>
        <kwd>k-means</kwd>
        <kwd>tf-idf metric</kwd>
        <kwd>lda</kwd>
        <kwd>collective decision-making method</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>2. Text data clustering</title>
    </sec>
    <sec id="sec-3">
      <title>3. Data collection from social network Twitter</title>
    </sec>
    <sec id="sec-4">
      <title>4. Results and Discussion</title>
      <p>
        Data for analysis and subsequent clustering were collected within 24 hours, according to two query-requests: Samara and
Moscow regions. 1.5 GB of information was collected (&gt; 40,000 messages). After that, the following algorithms were applied to
this information: modified TF-IDF, LDA [
        <xref ref-type="bibr" rid="ref10 ref9">9-10</xref>
        ], data classification algorithm with the help of graphs.
      </p>
      <sec id="sec-4-1">
        <title>4.1. Processing with the modified TF-IDF algorithm</title>
        <p>By applying the modified TF-IDF metric:
 
( ,  ,  ) =  ∗ tf( ,  ) × 
( ,  ),
(1)
where  ( ,  ) =  _ /(∑ ∗  _ ),  ( ,  ) = log | |/|( _ ∋  _ )| , k – correction factor, for words that are hashtags;
and the k-means algorithm, 22 clusters were obtained. On the example of one of the obtained clusters (figure 1) it is clear that
the messages are close in meaning, but among them there are messages with "foreign" subjects.</p>
        <p>Such an inaccurate result was most likely obtained due to the fact that the researched messages on Twitter have a 140
character limit.</p>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. LDA algorithm processing</title>
        <p>LDA algorithm is based on the definition of the most used topics (themes) that can form clusters.</p>
        <p>The LDA model solves the classical problem of text analysis: create a probabilistic model of a large collection of texts (for
example, for information retrieval or classification).</p>
        <p> Obviously, one document can have several topics; Approaches that cluster documents on topics do not take this into
account. LDA is a hierarchical Bayesian model consisting of two levels:
 • on the first level - a mixture, the components of which correspond to "themes";
 • at the second level, a multinomial variable with a priori Dirichlet distribution, which specifies the "distribution of
topics" in the document.</p>
        <p>Complex models are often the easiest to understand so - let's see how the model will generate a new document:
 choose the length of the document N (this is not drawn on the graph - it's not that part of the model);
 select a vector — the vector of the "degree of expression" of each topic in this document;
 for each of the N words w:
o select a topic by distribution ;
o Select a word with probabilities given in β.</p>
        <p>For simplicity, we fix the number of topics k and assume that β is simply a set of parameters
Which need to be evaluated, and we will not worry about the distribution on N. The joint distribution then looks like this:
(2)</p>
        <p>Fig 3. Graph of the model.</p>
        <p>
          Unlike the usual clustering with the a priori Dirichlet distribution or the usual naive Bayesian, we do not select the cluster
once, and then we insert words from this cluster, and for each word we first select the topic by the distribution of θ, and then we
sketch this word on this topic [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ].
        </p>
        <p>In the course of the work, it was revealed by expert means that the optimal number of initial clusters is six.
The result of the algorithm can be seen in figure 4.
4.3. Algorithm of classification of data by the collective decision-making method</p>
        <p>The algorithm for classifying data by the collective decision-making method is based on the idea that each word relates to one
or another category (class). Then, as a result of processing, the text will be a set of "voices" of the affiliation of each word in the
text to one or another class. Analyzing the resulting vector, we can decide which class the text belongs to.</p>
        <p>Currently, the algorithm is being developed. The results will be presented for comparison later.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusion</title>
      <p>As a result of research work, a software package that allows to collect data from the social network Twiiter for certain
geolocations was written. With the help of this complex, data collection was carried out in the Samara and Moscow regions.</p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgements References</title>
      <p>Data Science / I.А. Rytsarev, А.V. Blagov, M.I. Khotilin</p>
      <p>It was found that using algorithms based on the use of the TF-IDF metric, it is difficult to obtain a qualitative clustering of the
textual information contained in short messages of the social network Twitter. From this we can conclude that the TF-IDF metric
is not suitable for short text messages, or about the necessary modernization of this metric.</p>
      <p>Algorithms based on "machine learning", in turn, demonstrated good results - six clusters of messages were identified:
"study", "emotions", "photo sharing", "urban environment", "city news", "politics". This suggests "rejuvenating" the audience of
the social network..</p>
      <p>The data classification algorithm by the judge's method (currently) is under development.</p>
      <p>Questions on clustering and further classification of text data are relevant in connection with the enormous spread of social
networks and Internet services around the world.</p>
      <p>In the course of further work, it is planned to compare the implemented algorithm for classifying text data and the LDA
algorithm, as well as studying the issue in the direction of output and optimization of parallel clustering algorithms.</p>
      <p>The work has been performed with partial financial support from the Ministry of Education and Sciences of the Russian
Federation within the framework of implementation of the Program for Improving the Samara university Competitiveness
among the World's Leading Research and Educational Centers for the Period of 2013-2020s.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Dean</surname>
            <given-names>J</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ghemawat</surname>
            <given-names>S.</given-names>
          </string-name>
          <article-title>MapReduce: simplified data processing on large clusters</article-title>
          .
          <source>Communications of the ACM</source>
          <year>2008</year>
          ;
          <volume>51</volume>
          (
          <issue>1</issue>
          ):
          <fpage>107</fpage>
          -
          <lpage>113</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Tan</surname>
            <given-names>W</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Blake</surname>
            <given-names>MB</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Saleh</surname>
            <given-names>I</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dustdar</surname>
            <given-names>S</given-names>
          </string-name>
          .
          <article-title>Social-network-sourced big data analytics</article-title>
          .
          <source>IEEE Internet Computing</source>
          <year>2013</year>
          ;
          <volume>5</volume>
          :
          <fpage>62</fpage>
          -
          <lpage>69</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Chubukova</surname>
            <given-names>I.</given-names>
          </string-name>
          <article-title>Tasks of Data Mining. Classification and ckusterization</article-title>
          . URL: http://www.intuit.ru.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Belim</surname>
            <given-names>SV</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kutlunin</surname>
            <given-names>PE</given-names>
          </string-name>
          .
          <article-title>Boundary extraction in images using a clustering algorithm</article-title>
          .
          <source>Computer Optics</source>
          <year>2015</year>
          ;
          <volume>39</volume>
          (
          <issue>1</issue>
          ):
          <fpage>119</fpage>
          -
          <lpage>124</lpage>
          . DOI:
          <volume>10</volume>
          .18287/
          <fpage>0134</fpage>
          -2452- 2015-39-1-
          <fpage>119</fpage>
          -124.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Protsenko</surname>
            <given-names>VI</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kazanskiy</surname>
            <given-names>NL</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Serafimovich</surname>
            <given-names>PG</given-names>
          </string-name>
          .
          <article-title>Real-time analysis of parameters of multiple object detection systems</article-title>
          .
          <source>Computer Optics</source>
          <year>2015</year>
          ;
          <volume>39</volume>
          (
          <issue>4</issue>
          ):
          <fpage>582</fpage>
          -
          <lpage>591</lpage>
          . DOI:
          <volume>10</volume>
          .18287/
          <fpage>0134</fpage>
          - 2452-2015-39-4-
          <fpage>582</fpage>
          -591.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Protsenko</surname>
            <given-names>VI</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Serafimovich</surname>
            <given-names>PG</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Popov</surname>
            <given-names>SB</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kazanskiy</surname>
            <given-names>NL</given-names>
          </string-name>
          .
          <article-title>Software and hardware infrastructure for data stream processing</article-title>
          .
          <source>CEUR Workshop Proceedings</source>
          <year>2016</year>
          ;
          <volume>1638</volume>
          :
          <fpage>782</fpage>
          -
          <lpage>787</lpage>
          . DOI:
          <volume>10</volume>
          .18287/
          <fpage>1613</fpage>
          -0073-2016-1638-782-787.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Wang</surname>
            <given-names>H.</given-names>
          </string-name>
          <article-title>Introduction to Word2vec and its application to find predominant word senses</article-title>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Yu</surname>
            <given-names>M</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dredze</surname>
            <given-names>M.</given-names>
          </string-name>
          <article-title>Improving lexical embeddings with semantic knowledge. Association for Computational Linguistics (ACL)</article-title>
          <year>2014</year>
          ;
          <fpage>545</fpage>
          -
          <lpage>550</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Blei</surname>
            <given-names>DM</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ng</surname>
            <given-names>AY</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jordan</surname>
            <given-names>MI</given-names>
          </string-name>
          .
          <article-title>Latent dirichlet allocation</article-title>
          .
          <source>The Journal of machine Learning research</source>
          <year>2003</year>
          ;
          <volume>3</volume>
          :
          <fpage>993</fpage>
          -
          <lpage>1022</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Gong</surname>
            <given-names>S.</given-names>
          </string-name>
          et al.
          <article-title>Linear Discriminant Analysis (LDA).</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Reference</surname>
            <given-names>systems: LDA. Surfingbird</given-names>
          </string-name>
          <string-name>
            <surname>Blog</surname>
          </string-name>
          . Habrahabr. URL: https://habrahabr.ru/company/surfingbird/blog/150607/ (23.
          <fpage>11</fpage>
          .
          <year>2016</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>