<!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>Intelligent Instrumentation for Opinion Mining in Social Media</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>N Yarushkina</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>A Filippov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>V Moshkin</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>G Guskov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>A Romanov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Ulyanovsk State Technical University</institution>
          ,
          <addr-line>Ulyanovsk</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <fpage>50</fpage>
      <lpage>55</lpage>
      <abstract>
        <p>The paper presents a developed intelligent tool for Opinion Mining of social media. In addition, the article presents new algorithms to the hybridization of ontological analysis and methods of knowledge engineering with methods of nature language processing (NLP) for extracting the semantic and emotional component of semi-structured and unstructured text resources. These approaches will improve the efficiency of the analysis of social media contentspecific data and fuzziness of natural language.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>1. Introduction
Active growth of social media audience on the Internet (social networks, forums, blogs and online
media) made them a new source of data and knowledge. The specifics of working with social media
has several advantages and disadvantages.</p>
      <p>Advantages include:
─ high speed of access to information;
─ a broad audience;
─ a wide range of data topics;
─ large amount of data.</p>
      <p>The disadvantages are:
─ large amount of data;
─ unstructured presentation of information;
─ absence of a single conceptual framework.</p>
      <p>A large amount of social media data is both an advantage and a disadvantage at the same time.
Monthly in Russian social networks about 30 million unique authors publish 580 billion messages
according to statistics for 2017.</p>
      <p>However, a large amount of data makes it possible to obtain a large training sets, for machine
learning methods and a large statistical sample for social studies.</p>
      <p>The monthly billions of unstructured text messages and publications that users leave monthly
cannot be processed manually.</p>
      <p>There is a need for methods of automated intelligent and sentimental analysis of text data. These
methods handle large amounts of data and understand their meaning (Text Mining), determine the
sentiment (Opinion Mining) of user messages and publications in a short time [1-5].</p>
      <p>Understanding the meaning and sentiment of publications in social media is the most important and
complex element of automated text processing [6-11].</p>
      <p>Our scientific group has created an intelligent tool for Opinion Mining of social media. This tool
includes new approaches to the hybridization of ontological analysis and methods of knowledge
engineering with methods of nature language processing (NLP) for extracting the semantic and emotional
component of semi-structured and unstructured text resources [12-16].</p>
      <p>These approaches will improve the efficiency of the analysis of social media content-specific data
and fuzziness of natural language.
2. The architecture of the software system for Opinion Mining social media
Service-oriented approach is the basis of the architecture of the software system for Opinion Mining
Social Media (SOM). This approach allows:
1. To increase the overall fault tolerance of the SOM by performing services in different address
spaces.
2. To increase the scalability of the SOM by running several instances of services and balancing
the load between them.
3. To provide the ability to use different operating systems, programming languages, storage
technologies, etc.
4. To reduce the downtime of SOM when making changes, correcting errors, etc.
5. To provide an opportunity to completely replace services while maintaining the interface of
interaction with other parts of the SOM.</p>
      <p>REST in conjunction with the HTTP protocol [0] is the basis for the organization of the interface
for the interaction of SOM services. REST allows a distributed system of any type to have the
following properties: performance, extensibility, simplicity, updatability, intelligibility, portability and
reliability.</p>
      <p>The architecture of SOM is shown in Figure 1.
The SOM consists of the following subsystems:
1. Subsystem for importing data from social media. This subsystem works with popular Internet
services (Vkontakte, Facebook, Odnoklassniki, Twitter, Instagram, Youtube) through the public
application programming interface (Public API). The data loader from the Intranet media retrieves data
from HTML pages based on rules. You need to create your own rule for each Internet media. The rule
should consist of a set of CSS-selectors. The ontology loader loads into the storage subsystem a
description of the features of the problem area (PrA) in the form of ontologies in the language RDF or
OWL.</p>
      <p>2. The data storage subsystem provides the representation of information extracted from social
media in a unified structure that is convenient for further processing. The data is stored in the context
of users, collections, data sources, versions, etc. As database management systems (DBMS) are used:
─ Elasticsearch for indexing and retrieving data [0];
─ MongoDB for storing data in JSON format [0];
─ Neo4j for storing graphs of social interaction (social graph) and ontology [0].</p>
      <p>The data converter converts the data imported from social media into an internal SOM submission.
The social graph builder constructs a social graph. The social graph based on the relationship of users
and social media communities. The translator OWL/RDF-ontology in the graph translates the ontology
into the graph knowledge base [0].</p>
      <p>3. The subsystem of semantic data analysis performs preprocessing of text resources. In addition,
this subsystem performs statistical and linguistic analysis of text resources.</p>
      <p>4. The subsystem of sentimental data analysis determines the attitude of a speaker, writer, or other
subject with respect to some topic or emotional reaction to a document, interaction, or event from text.</p>
      <p>5. The data search subsystem searches for objects related to a specific task. The task presented in
the form of a set of keywords. In this case, the user's query can be extended semantically using an
ontology. Ontology contains descriptions of features of the PrA.
2.1. The graph knowledge base and a social graph as data models of SOM
The SOM storage subsystem stores the following kinds of data:
─ data extracted from social media;
─ description of PrA in the form of a graphical knowledge base;
─ social graph that reflects the users and their connections of in social media.</p>
      <p>The graph DBMS Neo4j used to store the description of the PrA in the form of a graph knowledge
base and a social graph. The main advantages of Neo4j are:
1. Native storage format for graphs.
2. One copy of the DBMS can control graphs with billions of nodes and links.
3. Neo4j can control graphs that do not completely fit into RAM.
4. Graph-oriented query language - Cypher.</p>
      <p>The search engine Elasticsearch used to organize data retrieval. The main advantages of
Elasticsearch are:
1. Elasticsearch can process petabytes of structured and unstructured data.
2. Using denormalization to increase the search efficiency.
3. Elasticsearch is one of the most popular search engines that is currently used by many large
organizations and services such as Wikipedia, The Guardian, StackOverflow, GitHub, etc.</p>
      <p>Document-oriented DBMS MongoDB is used to store data extracted from social media. The main
advantages of MongoDB are:
1. High performance.
2. Document-oriented query language.
3. Fault tolerance.</p>
      <p>4. Scaling.
2.2. Description the main concepts of the Social Media and their relations in knowledge base
The main SOM data model concepts are:</p>
      <p>Mass media concept stores information about different social media (VKontakte, Facebook,
Twitter, etc.) or news site. The SOM import subsystem downloads data from these social media using their
API and from news site by using set of CSS-selectors.</p>
      <p>The Person concept is a list of users extracted from social media.</p>
      <p>The Person concept has a set of attributes often used in social networks: surname, first name, date
of birth, hobbies, education, etc.</p>
      <p>The Group concept stores information about communities extracted from social media. The Group
concept has a set of attributes often used in social networks: group name, group description, age
restrictions, creation date etc.</p>
      <p>The Post concept stores information about records in social media. The Post concept has the
following attributes: author, title, content, creation date, attachments etc.</p>
      <p>The Comment concept stores information about comments in social media. The Comment concept
has the following attributes: author, title, content, creation date, attachments etc.</p>
      <p>The Attachment concept stores information about the attachments of entries and comments in
social media. The Attachment concept has several types and allows you to store the following types of
attachments: photos, photo albums, audio, video, links, documents (files), surveys etc. Table 1 shows
the correspondence of the social media concepts and SOM concepts.</p>
      <p>The main concepts of the SOM data model allow storing data downloaded from most existing
social media. Unified presentation of SOM data allows efficient processing, analysis and search. The
data converter is used to transform data downloaded from social media into the internal representation
of the SOM. It is necessary to develop a data converter module for each new Internet resource. The
Internet media loader generates the same data representation for all sites. Therefore, the converter for
each site separately is not necessary to adapt.
3. Conclusion
Intelligent tool for Opinion Mining social media developed by our research group will allow you to
download data from the social network VKontakte and Internet media.</p>
      <p>The social graph is formed during the download of data from the social network VKontakte. This
social graph contains the following types of relationships: is a friend, is a subscriber, is a relative, is in
a relationship, is in the community. The statistical index of text data is formed when data is loaded
using the search engine Elasticsearch. The data is converted into the SOM data model concept and
stored in MongoDB.</p>
      <p>The data search subsystem searches for data by keywords in the context of data sources and
concept types: users, communities, entries, comments and attachments. The user's initial search query can
be extended during the search based on the graphical knowledge base.</p>
      <p>The graph knowledge base is formed during the translation of the ontology in the OWL format into
nodes and the relationship of the graph knowledge base.
Further development of the SOM consists of:
1. Development of downloaders for social networks Twitter, Facebook, Instagram, Youtube,
ok.ru.
2. Testing the storage subsystem on large amounts of data.
3. Development of a subsystem of sentimental data analysis.
4. Development of a subsystem of semantic data analysis.
5. Finalization of the user interface.</p>
      <p>The resulting SOM should improve the effectiveness of analyzing the content of social media
taking into account the specifics of data representation and the fuzziness of natural language.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <article-title>This study was supported Ministry of Education and Science of Russia in framework of project № 2</article-title>
          .
          <fpage>4760</fpage>
          .
          <year>2017</year>
          /
          <article-title>8.9 and by the Russian Foundation for Basic Research</article-title>
          (Grants No.
          <fpage>18</fpage>
          -47-730035 and
          <fpage>18</fpage>
          - 37-00450).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>