Skip to main content

On the development of an information system for monitoring user opinion and its role for the public

Abstract

Social media services and analytics platforms are rapidly growing. A large number of various events happen mostly every day, and the role of social media monitoring tools is also increasing. Social networks are widely used for managing and promoting brands and different services. Thus, most popular social analytics platforms aim for business purposes while monitoring various social, economic, and political problems remains underrepresented and not covered by thorough research. Moreover, most of them focus on resource-rich languages such as the English language, whereas texts and comments in other low-resource languages, such as the Russian and Kazakh languages in social media, are not represented well enough. So, this work is devoted to developing and applying the information system called the OMSystem for analyzing users’ opinions on news portals, blogs, and social networks in Kazakhstan. The system uses sentiment dictionaries of the Russian and Kazakh languages and machine learning algorithms to determine the sentiment of social media texts. The whole structure and functionalities of the system are also presented. The experimental part is devoted to building machine learning models for sentiment analysis on the Russian and Kazakh datasets. Then the performance of the models is evaluated with accuracy, precision, recall, and F1-score metrics. The models with the highest scores are selected for implementation in the OMSystem. Then the OMSystem’s social analytics module is used to thoroughly analyze the healthcare, political and social aspects of the most relevant topics connected with the vaccination against the coronavirus disease. The analysis allowed us to discover the public social mood in the cities of Almaty and Nur-Sultan and other large regional cities of Kazakhstan. The system’s study included two extensive periods: 10-01-2021 to 30-05-2021 and 01-07-2021 to 12-08-2021. In the obtained results, people’s moods and attitudes to the Government’s policies and actions were studied by such social network indicators as the level of topic discussion activity in society, the level of interest in the topic in society, and the mood level of society. These indicators calculated by the OMSystem allowed careful identification of alarming factors of the public (negative attitude to the government regulations, vaccination policies, trust in vaccination, etc.) and assessment of the social mood.

Introduction

The rapid development of the Internet, social networks, online services, and other web resources have initiated a great interest in the use of information from social networks and the great online activity of users. Research on social media platforms has shown a significant increase in the number of users over the last decade [1]. Older social media platforms like Facebook, YouTube, Reddit, Twitter, etc., save their popularity and are replenished by an even greater number of users. Meanwhile, new platforms, such as Instagram, Tumblr, TikTok, Pinterest, and others, are strengthening their positions in the media space every year [2]. These platforms have been developing not only in the entertainment direction but also in other spheres of life as new events occur almost daily, and their relevance is constantly changing.

In many cases, social networks are used to solve a wide range of business tasks: managing and promoting brands [3], advertising goods and services, creating distribution channels for goods, etc. In addition to business tasks [4], there is a great need for monitoring social networks [5] and content analysis in other areas. Critical topics in politics [6], economics [7], healthcare, medicine, culture, and other areas are gaining great popularity in the media space [8]. It is possible to get the results of public opinion on various social and political topics from discussion places on social networks. In this regard, the technologies of “monitoring social networks” (social listening) and content analysis are gaining great popularity. The number of analytics platforms has significantly increased in the last few years. The lists of the most popular platforms can be easily found online with descriptions of their features and characteristics. Sproutsocial, Hubspot, Buzzsumo, Hootsuite, Brandmention, IQBuzz, and Snaplytics are good examples of such analytics applications. The description of features and characteristics of these platforms are thoroughly described in “Analytics platforms” section of this research. Despite a large number of such platforms, they remind each other in a way that they immensely focus on business purposes leaving significant social, economic, and political problems uncovered. Moreover, all of them are not open access and require a regular paid subscription for their full service. The majority of published papers in reputable journals are devoted to sentiment analysis (SA) of user comments from the Twitter social network [9,10,11]. The research topic of many papers also covers the presidential elections in the USA [9, 10] and other countries [11, 12]. At the same time, the works studying and describing complex social analytics platforms, such as [13], are not fully presented.

Moreover, most of them focus on resource-rich languages such as English, German, French, Italian, Spanish, and Portuguese languages, whereas texts and comments in other low-resource languages such as Russian and Kazakh languages are underrepresented. The web crawlers of the platforms are also not configured to extract texts from the social media space of Kazakhstan. This problem is significant for Kazakhstan, where social media content is mostly written in Russian and Kazakh languages. In addition, it is essential to receive information about current topics in the country from the most popular news portals and discussion platforms on social networks. Even though the news portals tend to publish their content in both languages, it has been noticed during the manual analysis of parsed texts that user comments in Russian prevail over comments in Kazakh, which makes obtaining data even more valuable for understanding the sentiments of the Kazakh speaking population of the country.

Thereby, a new opinion monitoring information system, the OMSystem, which pays much attention to the political, economic, healthcare, education, culture, ecology, and civil society topics, has been developed. This multifunctional platform monitors the media space of Kazakhstan and supports the Kazakh and Russian languages, which allows analyzing the media space efficiently. The OMSystem supports Kazakhstan’s leading news portals and important popular social networks like Facebook, VKontakte, Instagram, Twitter, and YouTube. The core part of the system is the evaluation of the public’s mood and “social well-being” with the use of the SA tool and the social mood indicators such as the level of topic discussion activity in society, the level of interest in the topic in society, and the level of social mood. The SA tool determines the sentiment [14] of the public mood, the range of interests, and information dissemination. It also identifies current problematic issues in society and tracks the dynamics of user involvement in a certain topic. This tool uses the SA methods generally presented by three main approaches: lexicon-based, machine learning-based, and deep learning-based.

This paper describes the architecture of the OMSystem, main modules, and functionalities of this platform, focusing on the SA tools and the module for defining the social mood of society. The use of sentiment dictionaries as a lexicon-based approach and machine learning (ML) algorithms in the OMSystem are also carefully explained. The first part of the experimental section presents the steps to train ML models and select the most efficient ones for use in the OMSystem. The second part demonstrates the definition of the public opinion on the topic of vaccination against coronavirus infection by the evaluation with the following social mood estimating measures: the level of topic discussion activity in society, the level of interest in the topic in society, and the level of social mood. Many scientific articles review the topics related to the Covid-19 pandemic, and research in this field is especially demanded today. Nevertheless, most of the papers were devoted to analyzing labeled sentiment texts, posts, and tweets from social media platforms to evaluate the ML metrics of the trained models. Still, they did not summarize texts together to use other social measures to provide the general people’s attitudes towards the different aspects of this critical topic [15, 16]. Thara and Poornachandran [17] focuses on building SA models with ML algorithms and estimating social mood with the abovementioned measures. The developed ML models have been evaluated by accuracy, precision, recall, and F1-score measures to find the most effective algorithms that need to be used in the OMSystem. The social mood part has also provided exciting findings about the public’s attitude to the vaccination campaign, vaccination policies, and the Government’s activities and methods of combating the pandemic. The reasons for people’s negative moods on this topic have also been extensively analyzed.

The rest of the paper is organized in the following way: “Related works” section provides an overview of the related works to this paper. “Analytics platforms” section describes the features of popular social analytics platforms for brand monitoring, highlighting the essential missing tools implemented in the OMSystem. “The OMSystem information system design methodology” and “The linguistic module” sections describe the structure, functionalities, and module for SA and social mood evaluation. “Machine learning methods” section describes and discusses the experiments on the development of ML algorithms and the public’s attitude towards the vaccination against coronavirus infection. Finally, in “Data collection and data processing” section, we summarize all the previously described sections, analyze the obtained results, and outline directions for future research.

Related works

In recent years, the active development of web technologies has made it possible to analyze users’ moods on various topics. At the same time, marketing campaigns interested in learning users’ opinions and developing many strategies for increasing the flow of customers and profits play a significant role in data analytics. The manual search and filtering of users’ views on websites remain challenging because of their vast number. Therefore, special tools have been developed to automatically track, summarize, and visualize information from social content to solve this problem. In [18], SA of the popular smartphone brand was presented. Data was collected from Twitter using a web crawler that searches through particular hashtags. Benedetto and Tedeschi [19] demonstrates an open framework for monitoring, analyzing, and receiving media content. This framework allows you to collect, index, and retrieve data using the Representational state transfer application programming interface (REST API) from the following sources: Twitter, Facebook, YouTube, Google+, and Flickr. Schinas et al. [20] presents an analysis of the statements of many political leaders, diplomats, journalists, and other media figures on the Twitter platform, the most active social network covering these issues. Radicioni et al. [21] shows an architecture that combines SA and community discovery to understand trends, approaches, business, and policy views on topics such as shopping, politics, Covid-19, and electric vehicles. At the same time, many works are devoted to describing analytics platforms, social networks, and text processing for SA. Bhatnagar and Choubey [22] describes the steps of preprocessing, vectorization, and classification of the textual data using ML algorithms. Nandwani and Verma [23] pays great attention to studying the critical approaches of the most efficient ML algorithms for SA. That work showed that the Support vector machine (SVM) and naïve Bayes (NB) classifier are more effective than other algorithms. The classification of Twitter posts is also performed in [24], where the primary role is assigned to the K-nearest neighbors (k-NN) and SVM. Huq et al. [25] provides detailed SA of user opinions from Twitter and Facebook social networks using convolutional neural networks (CNN), recurrent neural networks (RNN), long short-term memory (LSTM) neural networks, and hybrid approaches. In [26], comments on controversial political discussions in German on YouTube were conducted. SA was performed with various word embeddings, ML algorithms, and RNN. Then the classification efficiency was assessed using the following metrics: Precision, Recall, and F1-score. A new and more advanced approach to text classification using one CNN and two LSTM layers was described in [27].

All these works were mainly devoted to the analysis of texts in the English language. However, most texts and user comments are written in the Russian and Kazakh languages in the Kazakh media space. Thus, it became necessary to analyze the works dealing with these languages specifically. The sentiment classification of Russian tweets using logistic regression (LR), XGBoost, and CNN was carried out in [28, 29]. Unfortunately, the works devoted to the SA of Kazakh texts are greatly underrepresented. The Kazakh language is an agglutinative language with complex morphological and syntactic structures [30]. The sentiment classification tasks require the preprocessing stage, where stemmers or lemmatizers are applied to words to extract their stems or indefinite forms. The existing language packages of NLP tools do not contain the stemmers and lemmatizers for the Kazakh language as for other widely represented languages, especially European. Tukeyev et al., Yergesh et al. and Bekmanova et al. [31,32,33] implemented only a dictionary approach formalizing rules for defining the sentiment of phrases in texts. ML and NN approaches had a limited reflection in these works. In addition, they neither described any open-source analytics platforms nor provided functionalities for evaluating society’s SA and social mood in the Russian and Kazakh media spaces. Thus, various foreign and Kazakh analytics platforms were thoroughly investigated in the next section.

Analytics platforms

The widespread development of Internet technologies, social networks [34], and data analytics has led to numerous tools and analytics platforms for promoting the brand, monitoring public opinions, and assessing social well-being as one of the main tools for determining the socio-economic system in the context of sustainable advancement.

Currently, the foreign market is represented by many tools for monitoring social networks [35], content analysis, and brand promotion. Therefore, the marketers distinguished a list of the most popular and advanced analytics platforms: Sproutsocial, Hubspot, Buzzsumo, Hootsuite, Brandmention, IQBuzz, and Snaplytics take an essential place.

Sproutsocial [36] is a multifunctional analytics tool that allows comparing results in several networks efficiently. This tool monitors and gathers all messages from Facebook, Twitter, Instagram, and other social networks in one unified place. It also benchmarks customer satisfaction by gaining analytics data through an automated Twitter DM survey. Sproutsocial is powered by ML algorithms that allow suggesting replies to users’ frequently asked questions. Generally, Sproutsocial is very useful when it is required to count links on Twitter [37], measure the growth of Instagram followers, evaluate participation on LinkedIn, and much more. This tool then provides an opportunity to evaluate results using understandable visualized reports. Sproutsocial includes marketing, social media management, and analytics of various leading brands and agencies, including Chipotle, Subaru, Zendesk, etc.

Hubspot [38] is a tool that allows marketers to obtain comparative information about the level of engagement on social networks and reflect on past efforts made to support high customer interest in their products. HubSpot provides a detailed overview of how social media affects profit margins and enables you to report on collected data quickly and efficiently. At the same time, it gives an opportunity to compare different platforms, track and view brands on social networks, and understand how the target audience watches business content. This tool has a bunch of features, such as website activity tracking, task management, insight, KPI dashboard, sales automation, etc. Website tracking saves how users interact with websites: visited pages, time spent on each page, the location of the visitor, and so on. This HubSpot feature allows businesses to track how a lead interacts with their website. The task management tool creates to-do lists and sets tasks’ priorities, statuses, and deadlines. The insight allows to automatically add the information about the company that was added to the application. This information includes the size of the company, its description, contact information, etc. The KPI dashboard sets the company’s goal for the sales and the performance of marketing planes. The sales automation feature has automated various stages of sales and deals. Another essential feature of the HubSpot analytics tool is the ability to analyze indicators specific to social networks and the entire path of the client. This tool also provides information about marketing tactics that are most effective for businesses and their impact on social media campaigns and includes dozens of other features for business.

BuzzSumo [39] is an excellent resource for analyzing the social interaction of any particular content. The tool allows searching for information based on requests on the Internet, taking into account various factors, including likes and reposts. The advanced search engine of BuzzSumo finds the most relevant content by topic, author, and domain. The service prompts which directions respond to the initially selected audience. Trying to choose the most accurate direction of content creation, it receives valuable information about answers on social networks. In addition, this tool allows collecting statistics on the number of reposts of a certain message on a blog on such social networks as Facebook [40], Twitter, and Pinterest. The main functionalities features of this platform are Content discovery (browsing topics, trends, and forums), Content research (crawling websites to get the most up-to-date content), Monitoring (finding different competitors, brand mentions, and updates and alerting with the most important events), and APIs (connect, integrate and develop with different sources of data). An essential feature of the tool is the ability to track the effectiveness of competitors as part of a content marketing campaign. BuzzSumo also easily determines competitors’ activity in social networks and identifies key people in a particular area. Such an analysis can help to see which posts receive the most engagement and use this data to adjust the content strategy.

Hootsuite [41] is one of the most popular multifunctional services for working on social networks. The emphasis in this service is on working with Twitter, and, first of all, Hootsuite will be useful for those who maintain several accounts at once. Hootsuite also works successfully with Facebook, LinkedIn, MySpace, and Foursquare accounts and blogs on WordPress. HootSuite offers a wide range of analytical capabilities, such as connecting Google Analytics on the site and viewing graphs for comparing the number of tweets and the popularity of links. The key features of this platform are Post Scheduling, Streams, Analytics, and Assignments. Post Scheduling allows setting the dates and times to create a new post. Streams monitor active social media channels online. Analytics provide opportunities to see the performance of posts, their sentiments, page content clicks, total clicks on posts, and much more. Finally, assignments provide an ability to assign items to different team members. Hootsuite additionally allows you to post on all social networks on a specific schedule. The tool also allows you to track recent social trends and brand mentions.

Brandmention [42] is one of the most powerful platforms for free search and analysis of social networks. The system also offers SA, related keywords, popular sources, etc. Brandmention searches over 100 social networks [43], including social bookmarks, blogs, forums, social services, and more. In addition, data can be exported or configured for e-mail. Brandmention allows configuring the keywords for social monitoring and finding the company’s and its competitors' companies’ social handles. Some keywords can also be excluded from the search result.

IQBuzz [44] is a professional tool for analyzing and managing reputation on the Internet and a social network monitoring service [45]. IQBuzz tracks many sources and platforms such as Twitter, Yandex, LiveInternet, LiveJournal, various blogs, video hosting services such as RuTube and YouTube, various news, entertainment, and specialized services, and thematic and regional portals. One of the key advantages of the service is the ability to connect new sources and Internet resources for monitoring.

Snaplytics [46] is a cloud-based platform that analyzes Snapchat and Instagram stories. Today, millions of active Snapchat and Instagram users present stories as an excellent method of promotion on Instagram. This application also allows you to see peaks and slumps of views. The most important features of Snaplytics are automatic publishing, post scheduling, monitoring, and analytics. Platform users can track comments and replies, post stories from various sources, and view rates. Snaplytics also allows generating reports and exporting them to CSV files and other formats.

In Kazakhstan, social analytics is significantly underrepresented. Only a few works devoted to SA of the Kazakh language could be found in the Scopus database. Their research is mostly restricted to SA with the use of dictionary and ML approaches [30, 32]. Generally, there are only a few brands and social analytics platforms. Among the most advanced applications are the iMAS [47] and the Alem Media Monitoring [48], which work with the Russian and Kazakh languages. The iMAS platform provides SA on specified topics for a given period. The Alem Media Monitoring is software designed to analyze public opinion in the Internet space. This system allows collecting information on certain topics from news portals and social networks [49], determining the sentiment of texts using ML algorithms, visualizing all the performed analyses, and compiling and uploading reports. Unfortunately, these platforms are not open-source, and the information provided on their official websites demonstrates the study by three sentiment classes (positive, negative, and neutral) of texts and comments, the sources (news portals, social networks, and blogs), and periods of monitoring, visualizing them with different graphics and making reports in the word, excel and pdf formats. Nevertheless, there is no description of how these systems estimate the public’s social mood. Moreover, the research papers devoted to the iMAS and the Alem Media Monitoring platforms have not been found online. The proposed OMSystem was first described in [50]. It is designed to provide complex social analytics, including the web crawler, SA with sentiment dictionaries and ML algorithms, and evaluation of the “social well-being.” The following sections demonstrate the structure, functionalities, and module for evaluating the social mood of society.

The OMSystem information system design methodology

The OMSystem, the first automatic tool developed to analyze the opinions of Kazakhstani users expressed through news portals, blogs, and social networks, was developed to provide a complex analysis of the public’s social mood and cover the parts skipped in other analytics platforms in Kazakhstan. The OMSystem allows monitoring of web resources and social networks with subsystems for modeling “social well-being” [51] and supporting sentiment dictionaries of the Russian and Kazakh languages and ML algorithms for determining the sentiment of texts and user comments. The OMSystem supports Kazakhstan’s leading news portals and popular social networks like Facebook, VKontakte, Instagram, Twitter, and YouTube. The platform’s main task is the operational monitoring of the information space and social networks on the most important topics in society. They unambiguously determine the scale of the problem, public opinion, and their quick explanation, analyze the dynamics of the commercial brand, events, and references to activities, and, in turn, assess the degree of “social well-being.”

This system allows working with texts in the Kazakh and Russian languages. It also has built-in modules for connecting to the application programming interfaces (APIs) of social networks: Vkontakte [52], Facebook [53, 54], Twitter [22, 55], Instagram [56, 57], YouTube [58], Telegram [59], and Odnoklassniki [60]. The OMSystem automatically determines the language of the text (Russian, Kazakh) and the sentiment of the topic, as negative, positive, or neutral, using a sentiment dictionary and ML algorithms. Furthermore, there is a possibility to record the time range in the system when monitoring social networks (for a year, for 6 months, for 3 months, for a month, for a week, for a day, etc.). The OMSystem also allows building visual reports on the monitoring results in various graphs and charts (pie, histogram, chart, graph, and others). At the same time, the platform provides ways to identify the profile of a social network participant by reading profile data and counting the activity of a participant in a topic by the number of comments, likes, and reposts.

The development of the OMSystem included the most important stages to achieve all the required goals. First, a module for using API to connect to social networks and a storage system for keeping the parsed data and processed analytical results were created. Then the sentiment dictionaries in the Russian and Kazakh languages were designed to evaluate the sentiment on the analyzed topics. The SA module was further extended with ML modules trained on the texts, labeled by human annotators and sentiment dictionaries. As an analytical application, the convenient quantitative and qualitative graphical visualization of the monitoring results was a significant step in the system’s design. The advanced role policy was the next important step. Finally, the system’s interface and design were improved to match the modern trends and requirements of the development of web applications.

The OMSystem was developed on the Django framework that uses the Python programming language. In addition, Django has its integrated authorization and authentical modules and libraries for web forms with input data validation. The administrative and parsed textual data is kept in the PostgreSQL relation database that is easily connected to the Django application. The SA modules with sentiment dictionaries and ML algorithms are shown in detail in the following chapters. The OMSystem has several roles: “Superuser,” “Administrator,” “User,” and “Expert.” The “Superuser” has the right to login into the System, navigate through the site, set up research and analysis reports, set up a rule profile for the search topic, change settings for uploading data from the System, invite experts, and view, edit, and delete personal data. The “Administrator” has the right to login into the System, view and edit system settings, assign roles for other users, change settings for connecting subsystems and modules, get technical reports (the number of results, the volume of data, search time, etc.), and configure settings for uploading reports. The “User” has the right to login into the System, navigate through the system, set up new topics and parameters for monitoring, and view the monitoring reports. The “Expert” has the right to login into the System, view the analysis page and details, switch to the sources of results, and view the system's functionality. JavaScript libraries and CSS styles were utilized to improve the interface of the application and graphical analytical reports.

The OMSystem’s interface and architecture are schematically shown in Figs. 1 and 2.

Fig. 1
figure 1

OMSystem’s interface

Fig. 2
figure 2

OMSystem’s architecture

The English language is yet to be added to the interface of the platform. Its architecture was also described in [50], where experiments characterized the building of ML models for the OMSystem. The designed system’s functionality is implemented in the components:

  • Data sources: They are represented by news portals, blogs, and social networks.

  • Connector module: It is used for the connection to data sources.

  • The linguistic constructor module: It is used for creating sentiment dictionaries that include words belonging to any of the three classes: positive, negative, and neutral.

  • Data analysis and processing module: It uses sentiment dictionaries and ML algorithms for SA. In addition, this module creates social analytics defining social mood.

  • Results module: It contains a formed relational database of texts and comments, analytical reports, graphics, and tables.

The SA tool, labeling texts and user comments in three sentiment classes (positive, neutral, and negative), is the core part of the OMSystem. The sentiment classes are assigned with the use of the hybrid approach: the lexicon-based (sentiment dictionaries) and the ML-based. The lexicon-based approach assigns a label by the largest number of words of one of three sentiment classes. The ML-based approach uses the trained ML models with the highest effectiveness in terms of accuracy, precision, recall, and F1-score, such as NB, LR, SVM, k-NN, Decision tree (DT), Random Forest (RF), and XGBoost.

The linguistic module

A sentiment dictionary is generally represented as a list of words, each of which is assigned a “weight” that describes its emotional coloring. Sentiment dictionaries include hundreds or thousands of such words, and they are then used to determine the sentiment of sentences, paragraphs, or the whole texts based on the average of their weights of the sentiment words. The sentiment dictionaries in the OMSystem are also directed to analyzing social, political, and economic content, so they need to include corresponding words for such texts.

In the OMSystem, the sentiment dictionaries were developed in the following steps:

  1. 1.

    Forming a sentiment vocabulary, which is marked on the basis of feelings and emotions. The sentiment dictionary consists of such elements as words, phrases, misspelled words and slang forms of words, each of which has its own emotional aspect.

  2. 2.

    Creating words with errors in Russian and Kazakh languages, which will increase the search results. The words with errors are formed by replacing, inserting, and deleting symbols.

  3. 3.

    Filling the dictionary. The dictionary is based on a sentiment dictionary of English words from open sources, categorized by their sentiment (https://public.tableau.com/views/NRC-Emotion-Lexicon-viz1/NRCEmotionLexicon-viz1?:embed=y&:toolbar=yes&:loadOrderID=0&:display_count=yes&:showTabs=y&:tabs=no&:showVizHome=no). It is stated that this dictionary is suitable for any language, so the words from this dictionary were translated into Russian and Kazakh.

  4. 4.

    Expert linguists were involved in labeling the sentiment of words of the newly parsed news topics and social media comments to increase the size of the sentiment dictionaries and fill them with new important words.

Currently, the Russian sentiment dictionary includes 44,381 words, and the Kazakh sentiment dictionary includes 29,654 words.

The linguistic module defines the sentiment of texts with the use of the formed sentiment dictionaries. Here is used a function that calculates the sentiment by the maximum number of positive, negative, and neutral words in the text. This approach’s effectiveness greatly depends on the quality of the designed sentiment dictionary [61]. Although this approach is very effective, creating a high-quality sentiment dictionary requires much effort. After an initial sentiment dictionary is created manually, it is then expanded by the synonyms and antonyms from larger dictionaries existing for many languages.

In the OMSystem, large sentiment dictionaries for the Russian and Kazakh languages are developed. The following formula finds the sentiment of the text:

$$S_{t} = \left\langle {Max(w_{pos} ,w_{neut} ,w_{neg} ),D} \right\rangle ,$$
(1)

where \(S_{t}\) is a sentiment of the text; \(w_{pos}\) is the number of positive words; \(w_{neut}\) is the number of neutral words; \(w_{neg}\) is the number of negative words; \(D\) is a sentiment dictionary.

The sentiment dictionaries of both languages used in the OMSystem are presented in Figs. 3 and 4.

Fig. 3
figure 3

The Russian sentiment dictionary

Fig. 4
figure 4

The Kazakh sentiment dictionary

Machine learning methods

In addition to sentiment dictionaries, ML algorithms are also used in the OMSystem to label the text data. The following algorithms are implemented in the system: NB, LR, SVM, k-NN, DT, RF, and XGBoost. The model for defining sentiment with ML algorithms is calculated by the formula:

$$S_{t} = \left\langle {M,T} \right\rangle ,$$
(2)

where \(S_{t}\) is the sentiment of a text; \(M\) is an ML model; \(T\) is a text document.

An NB classifier [62] is one of the simplest and most commonly used ML algorithms for text classification that uses a probabilistic approach based on the Bayes theorem with strong data independence assumptions. It considers every feature that affects the probability, regardless of the presence or absence of any other features. In text classification, NB is trained on documents for each class, where the conditional probability that document \(d\) belongs to class \(c\) is computed. This formula is represented by the expression:

$$P(c|d) = \frac{P(c) \times P(d|c)}{{P(d)}},$$
(3)

where \(d = \{ x_{1} ,x_{2} , \ldots ,x_{n} \}\), \(x_{i}\) is a weight of the \(i{\text{th}}\) word in a document \(d\), and \(c\) is a class of the document.

SVM [63] is another popular ML algorithm. This algorithm works with the feature space separated by hyperplanes. In this case, a good separation is achieved due to the hyperplane, which has the greatest distance to the nearest points of the training data of the two classes (the so-called functional boundary), since the larger the boundary, the lower the classifier error. The formula of SVM is given below:

$$y_{i} (\overrightarrow {w} \times \overrightarrow {x} + b) \ge 0,$$
(4)

where \(\overrightarrow {x} = (x_{1} , x_{2} , \ldots , x_{n} )\) is a feature vector; \(\overrightarrow {w} = (w_{1} ,w_{2} , \ldots ,w_{n} )\) is a weight vector;\(y_{i}\) are output values; \(b\) is a bias.

If the value is greater than or equal to zero, it belongs to the positive class. Otherwise, it is in the negative class.

A splitting hyperplane of SVM mainly works with two-class classifiers. However, it can easily be adapted to multiclass classification, using a set of “One-vs-All” classifiers. A hyperplane of SVM is shown in Fig. 5.

Fig. 5
figure 5

A hyperplane of an SVM

An LR classifier [64] predicts the probability of an independent variable in the interval [0,…,1] using a logistic function:

$$p(x) = \frac{1}{{1 + e^{ - f(x)} }},$$
(5)

where \(f(x) = w_{0} + w_{1} x_{1} + \cdots + w_{r} x_{r}\) is a linear classification function; \(\overrightarrow {x} = (x_{1} ,x_{2} , \ldots ,x_{n} )\) is a feature vector; \(\overrightarrow {w} = (w_{1} ,w_{2} , \ldots ,w_{n} )\) is a weight vector. A logistic function \(p(x)\) is presented as a sigmoid with the values of probability of 0 and 1. Document \(d\) belongs to class 1 if the value \(p(x)\) moves to 0. Otherwise, it is put into class 2. In the case of multiclass classification, a “One-vs-All” and “One-vs-One” approaches are used to identify a specific class. A logistic function is shown in Fig. 6.

Fig. 6
figure 6

A logistic function

A k-NN algorithm [65] is one of the simplest data classification algorithms. It calculates distances between vectors and assigns points to the class of its \(k\) nearest neighbor points. This algorithm usually classifies documents using the most widely used distance measure called Euclidean distance, which is defined as:

$$d(x,y) = \sqrt {\sum\nolimits_{i = 1}^{N} {(a_{ix} - a_{iy} )^{2} } } ,$$
(6)

where \(d(x,y)\) is a distance between 2 documents; \(a_{ix}\) and \(a_{iy}\) are the weights of the \(i{\text{th}}\) term in documents \(x\) and \(y\), correspondingly; \(N\) is the number of a unique word in a set of documents. This algorithm plainly memorizes all feature vectors and their corresponding class labels during the training stage. When working with real data, the unknown class labels, the distance between the new observation vector and the previously stored ones is calculated. Then the \(k\) nearest vectors are selected, and the new object belongs to the class to which most of them belong.

DT [66] is a supervised learning method that uses a set of rules to make decisions the same way a person makes decisions. This method divides a data set by features and answers specific questions until all data points belong to a particular class. Thus, a tree structure is formed by adding a node for each question. The first node is the root node. At the first classification step, a word is selected, and all documents containing it are placed on one side, and documents that do not contain it are put on the other side. As a result, two sets of data are obtained. Then a new word is selected in these sets, and all previous steps are repeated. The same procedure continues until the entire dataset is partitioned and assigned to leaf nodes. If all data points in a leaf node uniquely correspond to the same class, then the class of the node is well-defined. In the case of mixed nodes, the algorithm assigns the given node the class with the largest number of related data points. DT is shown in Fig. 7.

Fig. 7
figure 7

Decision tree

RF [67] is another popular ML algorithm based on the concept of ensemble learning. This concept involves combining multiple classifiers to improve model performance. This algorithm includes not a single DT but a bunch of them. In classification problems, each document is classified by all trees independently. At the output, the class of the document is determined by the largest number of votes among all trees. RF is shown in Fig. 8.

Fig. 8
figure 8

Random forest

XGBoost [68] is considered one of the most superior and advanced methods among all ML algorithms, which uses the principle of boosting. This method also implements an ensemble technique as an RF algorithm. The deviations of the trained ensemble predictions are computed on the training set at each iteration. Thus, optimization is performed by adding new tree predictions to the ensemble, reducing the mean deviation of the model. In addition, XGBoost allows tuning many different hyperparameters to increase the model’s performance.

Data collection and data processing

The web-crawler of the OMSystem parses texts and user comments from different sources, such as Kazakhstan’s news portals, social networks, and blogs. The parsed texts are aggregated in the designated PostgreSQL database. The scheme of the OMSystem’s functioning is presented in Fig. 9.

Fig. 9
figure 9

The OMSystem’s analytics building steps

After the texts are gathered in the database, it is required to apply the following steps before training ML models:

  • Text preprocessing

  • Stemming

  • Vectorization

  • Class resampling

These mentioned steps are thoroughly described in the following sub-sections.

Text preprocessing and stemming

All words are converted to lower case at the preprocessing stage, and extra words, symbols, punctuation marks, and links are removed. Then it is also necessary to remove the stop words, which are words that do not carry much semantic content. Examples of such words are prepositions, conjunctions, pronouns, etc. (“нa”—“on,” “в”—“in,” “бәpi”—“all,” “жәнe”—“and,” “бipaқ”—“but” and others). Another important step is methods for reducing the number of words with similar meanings. These methods are called stemming and lemmatization. In stemming, affixes and endings of words are removed to obtain their stems. In lemmatization, words are reduced to their indefinite forms. Stemming is an easier way to write an algorithm for removing parts of words. Lemmatization, on the contrary, requires significant efforts to develop rules for reducing words to the infinitive form. The NLTK Python library includes excellent stemmers for the Russian and English languages. Unfortunately, it does not yet contain the same well-developed stemmer for the Kazakh language. Thus, a new stemmer called “KazakhStemmer” has been developed for getting stems of the Kazakh words.

Vectorization

After text preprocessing, the vectorization stage is performed, where the Bag of words (BOW) and Term frequency-inverse document frequency (TF-IDF) [69] techniques are widely used. The BOW model is quite simple, and it is easy to use for feature extraction. The model’s simplicity lies in the fact that it does not take into account either the order, the structure of words, or the features present in it. The model only considers whether the known word occurs in the document or not. The dictionary of words comprises all the words found in all documents. For example, given a number of documents and their corresponding vector representations:

  • I am writing—[1, 1, 1, 0, 0, 0, 0, 0]

  • I am writing a poem—[1, 1, 1, 1, 1, 0, 0, 0]

  • I am writing a poem in the library—[1, 1, 1, 1, 1, 1, 1, 1]

Vectorization involves counting the number of words in each document. It is shown in Table 1.

Table 1 Vectorization with BOW

Despite its simplicity, the BOW algorithm has a significant drawback associated with an increase in the size of vectors in the case of a large number of documents. Then vectors contain many zeros. The TF-IDF metric is utilized to solve this problem. This metric is a statistical measure used to rate the importance of a word in the context of a document that is part of a document collection or corpus. The weight of a word is proportional to the number of occurrences in the document, and inversely proportional to the frequency of occurrence of the word in other documents in the collection. TF (Term frequency) is the ratio of the number of occurrences of a certain word to the total number of words in the document. Thus, the importance of a word \(t_{i}\) within a single document is evaluated by the formula

$$tf(t,d) = \frac{{n_{i} }}{{\sum\limits_{i = 1}^{k} {n_{i} } }},$$
(7)

where \(n_{i}\) is the number of occurrences of a word in the document, and the denominator is the total number of words in the document.

Inverse document frequency (IDF) is the inversion of the frequency with which a certain word occurs in the documents of the collection. Accounting for IDF reduces the weight of commonly used words. For each unique word within a given collection of documents, there is only one IDF value

$$idf(t,D) = \log \frac{|D|}{{|(d_{i} \supset t_{i} )|}},$$
(8)

where \(|D|\) is the number of documents in the corpora; \(|(d_{i} \supset t_{i} )|\) is the number of documents where \(t_{i}\) occurs.

When both \(TF\) and \(IDF\) values are found, the two parts are multiplied

$$TF - IDF = TF \times IDF.$$
(9)

The texts in the following experimental part are vectorized with the \(TF - IDF\) metric.

Class resampling

During a training step of the classification model, a dataset often contains unequal classes. This case causes a significant problem when the most represented class labels most dataset elements. As a result, although accuracy is high, the values of precision, recall, and F1-score metrics remain low. Several approaches exist to resample classes: Random oversampling, Random undersampling, and Synthetic minority oversampling (SMOTE) [50].

In Random undersampling, the sizes of the large classes are reduced to the smallest class to make them all equal. In Random oversampling, an opposite operation is done. Small classes are increased to the size of the most significant class. Even though these methods will equalize the classes, they have some drawbacks. Random undersampling eliminates a considerable portion of useful information in the classes, and the dataset is greatly decreased in size. Random oversampling saves valuable data but does not replenish new information, just copying the existing one several times. SMOTE is another method that effectively increases class sizes by creating new synthetic data points between existing elements. This procedure not only preserves important information but supplements it with new data. The class resampling techniques are shown in Figs. 10 and 11.

Fig. 10
figure 10

Random undersampling and oversampling techniques

Fig. 11
figure 11

SMOTE

Multiclass classification metrics

After texts are preprocessed, vectorized, and balanced, they are classified with ML algorithms. In order to evaluate the correctness and efficiency of the performance of classification, the following accuracy, precision, recall, and F1-score metrics are utilized [50]:

$$accuracy = \frac{TP + TN}{{TP + FP + TN + FN}},$$
(10)
$$precision = \frac{TP}{{TP + FP}},$$
(11)
$$recall = \frac{TP}{{TP + FN}},$$
(12)
$$F1\_score = 2\frac{precision \times recall}{{precision + recall}},$$
(13)

where TP (true positive) are elements that are truly classified with the positive sentiment class; TN (true negative) are elements that are truly classified with the negative sentiment class; FP (false positive) are elements that are falsely classified with the positive sentiment class; FN (false negative) are elements that are falsely classified with the negative sentiment class.

In multiclass classification, the stated metrics have to be transformed into accuracy, precision-macro, precision-micro, precision-weighted, recall-macro, recall-micro, recall-weighted, F1-score-macro, F1-score-micro, and F1-score-weighted. Precision-macro is the arithmetic mean of all class precision scores. Precision-micro is the sum of all true positives for all classes divided by all positive predictions

$$precision\_macro = \frac{{precision_{1} + precision_{2} + precision_{3} }}{3},$$
(14)
$$precision\_micro = \frac{{TP_{1} + TP_{2} + TP_{3} }}{{TP_{1} + TP_{2} + TP_{3} + FP_{1} + FP_{2} + FP_{3} }}.$$
(15)

Recall-macro and recall-micro are defined in a similar manner

$$recall\_macro = \frac{{recall_{1} + recall_{2} + recall_{3} }}{3},$$
(16)
$$recall\_micro = \frac{{TP_{1} + TP_{2} + TP_{3} }}{{TP_{1} + TP_{2} + TP_{3} + FN_{1} + FN_{2} + FN_{3} }}.$$
(17)

The weighted metrics are calculated in the same manner as macro metrics, but each class has its own weight depending on the number of elements that are in that class.

$$precision\_weighted = \frac{{w_{1} \times precision_{1} + w_{2} \times precision_{2} + w_{3} \times precision_{3} }}{3},$$
(18)
$$recall\_weighted = \frac{{w_{1} \times recall_{1} + w_{2} \times recall_{2} + w_{3} \times recall_{3} }}{3},$$
(19)

where \(w_{1} ,w_{2} ,\,\,and\,w_{3}\) are the weights of the corresponding classes.

Accuracy, precision, recall, and F1-score metrics measure how well the data is classified. The metrics values have to be closer to 1 to show better performance. They are used in almost every research, where ML classification models are trained. The experimental part of this paper pays much attention to measuring the performance of the trained models with these metrics.

Another metric that shows the opposite tendency is Logarithmic Loss (LogLoss). This metric is calculated by the formula

$$LogLoss = - \frac{1}{N}\sum\limits_{i = 1}^{N} {\sum\limits_{j = 1}^{M} {y_{ij} *\log (p_{ij} )} } ,$$
(20)

where \(y_{ij}\) shows whether an element \(i\) belongs to a class \(j\); \(p_{ij}\) is the probability of an element \(i\) belonging to a class \(j\); \(N\) is the total number of elements; \(M\) is the total number of classes.

When a value of LogLoss is near 0, it shows the high accuracy of classification.

Furthermore, two metrics called Mean Absolute Error (MAE) and Mean Squared Error (MSE) are used to evaluate the performance of ML algorithms. MAE is the average of the difference between the original values and the predicted values. MSE differs from MAE in that it takes the average of the square of the difference between the original values and the predicted values. They are calculated by the formulas

$$MAE = \frac{1}{N}\sum\limits_{i = 1}^{N} {|y_{i} - \widehat{{y_{i} }}|} ,$$
(21)
$$MSE = \frac{1}{N}\sum\limits_{i = 1}^{N} {(y_{i} - \widehat{{y_{i} }})^{2} } ,$$
(22)

where \(y_{i}\) is a predicted value of an element; \(\widehat{{y_{i} }}\) is a real value of an element; \(N\) is the total number of elements.

However, they are good for regression tasks, not classification tasks. Therefore, these metrics are not used in this research.

There are also useful graphical measures for effectively evaluating the algorithms. They are called a confusion matrix and Area Under Receiver Operating Characteristics. The confusion matrix shows true and false predictions for every class. In the multiclass classification, it is shown in Fig. 12. Area Under Receiver Operating Characteristics (AUC–ROC) is very convenient for visualizing classification results. It represents an area under the curve on the plane of axes in the range from zero to one. The axes of the planes show True positive rate and False positive rate, which are calculated by the following formulas

$$True\,Positive\,Rate = \frac{TP}{{TP + FN}},$$
(23)
$$False\,Positive\,Rate = \frac{FP}{{FP + TN}},$$
(24)
Fig. 12
figure 12

A confusion matrix

The greater the value of an area, the better the classification model’s performance is. Although the AUC–ROC metric is a very important metric for evaluating the performance of models, it is standardly used for binary classification problems. In order to adapt it for multiclass classification, “One-vs-All” or “One-vs-One” techniques are utilized. An example of the AUC–ROC curve is shown in Fig. 13.

Fig. 13
figure 13

A plot of an AUC–ROC curve

In the experiments conducted in Chapter 9, accuracy, precision, recall, and F1-score metrics were supplemented with confusion matrices and AUC–ROC curves to show the classification results.

Defining the social mood of society

While OMSystem provides a comprehensive analysis of the texts of Kazakhstan Internet resources and reveals the sentiment of user opinions using ML methods, it also allows evaluating the semantic profile of society’s response to various events. The models of engagement assessment standards are considered to implement these steps. They are based on the method of measuring social network indicators for social media marketing management (SMMM) with the use of special SocialBakers formulas from Facebook [70]. The presented metrics are considered and adapted for social analytics. They are presented below:

  • the level of interest in the topic in society (\(R_{CT}\));

  • the level of topic discussion activity in society (\(R_{CE}\));

  • the level of social mood (\(R_{TS}\)).

The level of interest in the topic \(R_{CT}\) is calculated using the following formula:

$$R_{CT} = \frac{CT \times 100\% }{{\max_{CT} }},$$
(25)

where \(CT\) is the number of texts or comments found on a particular topic. \(\max_{CT}\) is the maximum number of texts or comments on a certain topic (set by the expert for a certain time). The range of values starts from 0% and is not bounded. If the value exceeds 100%, it means that this topic is of great interest.

\(R_{CE}\) determines interaction in social networks and shows the level of topic discussion activity in society. This indicator allows assessing how differently the audience reacts to the categories of events in society. It is calculated using the formula:

$$R_{CE} = \frac{{\frac{L + R + C}{{CP}}}}{CS} \times 100\% ,$$
(26)

where \(CS\) is the sum of the number of subscribers; \(CP\) is the number of texts found on a certain topic; \(C\) is the number of comments; \(L\) is the number of likes; \(R\) is the number of reposts. The range of values starts from 0% and is not bounded. As there are many topics on each news portal or a group in a social network and all users and subscribers cannot discuss them all, the level of topic discussion activity is usually not a big number.

\(R_{TS}\) is the level of social mood, which is defined by the maximum value of the sums of positive, neutral, and negative texts or comments on a certain topic.

Experimental part

Developing ML models for the OMSystem

The first experiments are devoted to the development of ML algorithms for classifying textual data. The Python programming language is utilized to conduct these experiments on the Jupyter Notebook platform. The NLTK library is used for preprocessing and stemming the data. The Scikit-learn library vectorizes the data and contains ML algorithms for classification. The Imbalanced-learn library serves for resampling classes. Finally, Seaborn and Matplotlib visualize all the results. The datasets parsed by the OMSystem’s web crawler were distributed in the following way by the languages and sentiment classes (Table 2).

Table 2 Distribution of texts by classes

The datasets for the Russian and Kazakh languages have been preprocessed, vectorized with the TF-IDF metric, and resampled with the Random oversampling, Random undersampling, and SMOTE techniques. Then the datasets were randomly split into training and testing sets as 70% and 30%, respectively, and classified with NB, SVM, LR, k-NN, DT, RF, and XGBoost [71] ML algorithms. The results of the classification of imbalanced Russian and Kazakh datasets are shown in Tables 3 and 4.

Table 3 The classification metrics for the imbalanced Russian texts
Table 4 The classification metrics for the imbalanced Kazakh texts

The results showed that imbalanced classes had the lowest values of precision-macro, recall-macro, and F1-score-macro for SVM. NB, LR, k-NN, and XGBoost also demonstrated low results of the recall-macro and F1-score-macro metrics. RF, LR, and DT had the best average values for the imbalanced Russian texts. RF, DT, and k-NN were the best for the imbalanced Kazakh texts. Generally, RF was the best among all ML algorithms for both datasets. The graphics of AUC–ROC curves for an RF algorithm for the Russian and Kazakh texts are shown in Figs. 14 and 15.

Fig. 14
figure 14

A ROC curve for Russian texts of an RF algorithm

Fig. 15
figure 15

A ROC curve for Kazakh texts of an RF algorithm

The results of the classification of the oversampled Russian and Kazakh datasets are shown in Tables 5 and 6.

Table 5 The classification metrics for the oversampled Russian texts
Table 6 The classification metrics for the oversampled Kazakh texts

The results showed that the oversampling technique significantly improved the metrics values for all ML algorithms. Among them, DT and RF were essentially superior to others in the Russian texts. DT, RF, k-NN, and LR were all good for classifying the Kazakh texts. The graphics of confusion matrices for a DT algorithm for the Russian and Kazakh texts are shown in Figs. 16 and 17.

Fig. 16
figure 16

A confusion matrix for Russian texts of a DT algorithm

Fig. 17
figure 17

A confusion matrix for Kazakh texts of a DT algorithm

The results of the classification of the SMOTE Russian and Kazakh datasets are shown in Tables 7 and 8.

Table 7 The classification metrics for the SMOTE Russian texts
Table 8 The classification metrics for the SMOTE Kazakh texts

The results demonstrated that the SMOTE technique also improved the metrics values as the Random oversampling technique. DT and RF outperformed other ML algorithms in classifying the datasets. The graphics of AUC–ROC curves for an RF algorithm for the Russian and Kazakh texts are shown in Figs. 18 and 19.

Fig. 18
figure 18

A ROC curve for Russian texts of an RF algorithm

Fig. 19
figure 19

A ROC curve for Kazakh texts of an RF algorithm

The results of the classification of the undersampled Russian and Kazakh datasets are shown in Tables 9 and 10.

Table 9 The classification metrics for the undersampled Russian texts
Table 10 The classification metrics for the undersampled Kazakh texts

In the results, it could be seen that the values of the undersampled datasets dropped compared with the oversampled and SMOTE datasets. It is caused by the significant decrease in the sizes of the positive and negative classes to make them equal to the negative class. As in the previous experiments, the DT and RF classifiers showed the best results. The graphics of confusion matrices for a DT algorithm for the Russian and Kazakh texts are shown in Figs. 20 and 21.

Fig. 20
figure 20

A confusion matrix for Russian texts of a DT algorithm

Fig. 21
figure 21

A confusion matrix for Kazakh texts of a DT algorithm

All the built classification models showed that models trained on the imbalanced datasets achieved the lowest performance. The Random undersampling method gave average values of metrics. The reason for this is that the resulting models cannot fully use the entire dataset being significantly decreased in size. The Random oversampling and SMOTE models expectedly demonstrated the best results. Among ML algorithms, LR and DT reached the best performance. As RF uses multiple independent DTs, it is clear that it outperformed a single DT. Classification results for the Russian and Kazakh datasets are comparatively equal, with slightly better performance for the latter on the oversampled and SMOTE datasets having a smaller test size. When the RF and DT ML models are trained on the oversampled and SMOTE datasets, they are saved in the files using the Python pickle library. Then a script file that processes a new parsed text with the saved classification model is implemented. In this script, a new text is input data; the saved ML model is a data processing tool; a defined sentiment class of the text is output data. The output data is saved in the corresponding table of the PostgreSQL database of the OMSystem.If it is required to change the trained model, simple corrections to the script are to be made. When the database has grown significantly, the classification models need to be retrained, and the models are saved again.The scheme of labeling texts and the script are shown in Figs. 22 and 23.

Fig. 22
figure 22

New text labeling

Fig. 23
figure 23

A text labeling script

The experimental results have also been compared to the social media SA papers. The comparison is shown in Table 11.

Table 11 The results comparison

Defining the social mood on the topic of vaccination against Covid-19

A relevant topic of vaccination against coronavirus infection [75] is taken for analysis in the experimental part. This topic is very important due to the active vaccination [76] of people in the world and Kazakhstan. A large number of news articles have been written on this topic, and users actively comment on various issues related to it. The opinions of users stand out with positive, neutral, and negative sentiments. The experimental part chooses a list of keywords and phrases in the Russian language to monitor the corresponding topics. In the following description of the experiment, all words and phrases originally in the Russian language are translated into the English language for convenience and the right understanding. These keywords and phrases are “Vaccination in Kazakhstan,” Covid [76], Coronavirus [77, 78], Sputnik, “Russian vaccine,” Pfizer [79], QazVac, Hayat, Sinovac, Sinopharm [80], “Vaccine rejection,” “Fear of vaccination,” “Choice of the vaccine,” “Vaccine effectiveness,” “Lack of confidence in the vaccine,” and Tsoi (the last name of the Minister of Health of the Republic of Kazakhstan).

In the preprocessing step, all words are transformed to the lowercase register. Then punctuation marks, digits, and other special symbols that do not carry any significant meaning are removed. Additionally, it is required to delete frequent words (i.e., stop words such as ‘and,’ ‘or,’ ‘in,’ ‘on,’ ‘at,’ ‘for,’ etc.), which do not bring any significant meaning [50]. However, ‘to be’ and ‘is’ stop words are left because they are met in expressions such as “to be vaccinated,” “is vaccinated,” and others, which are important for the analyzed topic.

The stemming step reduces the number of words with similar meanings by eliminating affixes and endings to gain their roots. Russian words are processed by ‘SnowballStemmer’ from the Python NLTK library. The text vectorization step transforms texts into a numeric vector representation to which ML algorithms are applied [50]. The vectorization is done with the use of the TF-IDF metric that considers the importance of words in the text. After the texts are vectorized, the trained ML models are applied to label them in three sentiment classes.

Next, the number of words in texts and comments is counted, and the most frequently used ones are displayed in pivot tables. The OMSystem [50, 51] performs calculations for two periods: the 10th of January, 2021 to the 30th of May, 2021 (Table 12) and the 1st of July, 2021 to the 12th of August, 2021 (Table 14), and two groups of cities: Almaty (the largest city of Kazakhstan) and Nur-Sultan (the capital of Kazakhstan), and large regional cities of Kazakhstan. The choice of these cities for analysis was made due to several facts. First, the population of Almaty, Nur-Sultan, and other large cities is almost 100% covered with information technologies. Citizens of these cities are also the most active users of social networks, and their opinions are very important, reflecting the general trend in the country. It is also important to get the public’s opinion from different regional cities because the epidemiological situation with vaccination and the availability of vaccines significantly varied in all the regions of Kazakhstan. The stated dates of monitoring were chosen because the start of vaccination campaign of the vaccination against Covid-19 started in January 2021. The first phase of vaccination finished by the beginning of summer. In the first phase, only two vaccines called “Sputnik V” and QazVac were available. Then in May and June 2021, three more vaccines, Hayat-Vax, Sinovac, and Sinopharm, were imported. Nevertheless, in the second phase of vaccination, these vaccines quickly ran out in Almaty, Nur-Sultan, and some other cities. It resulted in a large number of negative user comments. So it was essential to monitor these two periods of the vaccination campaign to estimate the level of interest and social mood in this topic.

Table 12 Analysis by topics for period 1

The sentiment charts of the first period for the cities of Almaty and Nur-Sultan and large regional cities are shown in Fig. 24.

Fig. 24
figure 24

Evaluation of the sentiment of the first period—a Almaty and Nur-Sultan, b large regional cities

Based on the results of the analysis of Table 12, it is possible to evaluate the content of texts and comments, taking into account the list of the most popular words. Furthermore, looking at the analysis of popular words in the context of regional cities, we will see that they coincide with the content in the cities of Almaty and Nur-Sultan. After the most popular words on the topic are highlighted, the results are generally evaluated by the level of topic discussion activity, the level of interest in the topic, and the level of social mood. According to the obtained results, the level of interest in this topic is significantly higher in the cities of Almaty and Nur-Sultan (491%) than in other large regional cities (12.2%). In addition, the level of topic discussion is also higher in the two main cities of the country (0.48%) than in other ones (0.08%). The level of social mood of texts and comments differs significantly, with the positive sentiment prevailing over the negative sentiment in texts and the negative sentiment prevailing over the positive sentiment in comments. It shows that texts on social media positively cover the topic of vaccination, while people’s attitude is the opposite. After the system had created a summary analysis, the gained texts and comments were manually read and investigated. Their examples are presented in Table 13. The public reacted negatively to all governmental measures related to the vaccination campaign in the winter and spring seasons, showing their distrust of the newly adopted policies and calling for the rejection of vaccination.

Table 13 Texts and comments for period 1

The sentiment charts of the second period for the cities of Almaty and Nur-Sultan and large regional cities are shown in Fig. 25.

Fig. 25
figure 25

Evaluation of the sentiment of the second period—a Almaty and Nur-Sultan, b large regional cities

The analysis of Table 14 suggests that there remains a high level of public interest in the topic during the summer. The level of interest in this topic is higher in the cities of Almaty and Nur-Sultan (128%) than in large regional cities (6.9%). The level of topic discussion activity is lower than in period 1. It is caused by fewer comments on the considered topics during a shorter time of monitoring. The following values are gained in the context of cities: 0.01% for Almaty and Nur-Sultan and 0.03% for the large regional cities. The level of the social mood of texts and comments shows a situation similar to period 1. This period’s obtained texts and comments were also manually analyzed to reveal interesting points. It is noted that texts cover the planned children’s vaccination topics, the appearance of new strains of coronavirus, the increase in the number of cases of unvaccinated people’s disease, and the supply of a new Chinese vaccine to the country. The corresponding examples of the texts and comments are presented in Table 15.

Table 14 Analysis by topics for period 2
Table 15 Texts and comments for period 2

The experimental results have been extensively studied and analyzed to understand the root of the public’s negative sentiment. Based on the data obtained by the OMSystem, it was concluded that Kazakhstanis, for the most part, do not trust the governmental methods of combating the pandemic. It should also be noted that users of social networks cannot identify fake news or trust unverified information. Therefore, the experiment conducted on the topic of vaccination against the coronavirus disease makes it possible to understand the public’s attitude and the Government’s activities by assessing comments’ SA and semantic content. As a result, it will make it possible to maintain an exploratory policy for the public correctly, determine the presentation style of information material, accelerate the introduction of such large-scale state tasks, and ensure the preservation of public health. Furthermore, the OMSystem is used as a serious analytics tool to estimate the user perception of social life, which will allow quick explanations for the public, identify alarming factors of the public, and evaluate social mood.

Conclusion

A comparative analysis of foreign analytics platforms and the developed Kazakhstani OMSystem made it possible to conclude that foreign analytics platforms are mostly aimed at business and brand promotion. At the same time, they cover only the information space of foreign countries and are little focused on existing social problems. The existing iMAS, Alem Media Monitoring, and our OMSystem analytics platforms of Kazakhstan pay more attention to the analysis of public opinion on a wide range of political and socio-economic problems. They aim to cover the most relevant topics over large and small-time ranges and use ML algorithms to quickly and efficiently determine the sentiment of texts and user comments. The OMSystem monitors the current political and socio-economic situation in the country, allows searching for the keywords on any desired topics, defines topics’ sentiment with the dictionary and ML algorithms approaches, and determines the social well-being based on such indicators as the level of topic discussion activity in society, the level of interest in the topic in society, and the level of social mood. In this paper, the functionalities of the main modules of the OMSystem, such as the ‘Connector module,’ the ‘Linguistic constructor module,’ the ‘Data analysis and processing module,’ and the ‘Results module’ were thoroughly investigated. The formation of the Russian and Kazakh datasets was described. Then the text preprocessing, stemming, vectorization, and class resampling techniques were shown. In order to label the texts on their emotional aspects, NB, LR, SVM, k-NN, DT, RF, and XGBoost ML algorithms were used to train the models. The performance of the models was evaluated by the accuracy, precision, recall, and F1-score metrics. Among all the conducted experiments, DT and RF showed the best results reaching an accuracy of 0.95–0.99 with the Random oversampling techniques. These models are added to the OMSystem. The second part of the experiments analyzed the social mood on the topic of vaccination against the coronavirus disease. The use of the social analytics metrics: the level of interest in the topic in society, the level of topic discussion activity in society, and the level of social mood made it possible to understand the public’s attitude and the Government’s activities with the summary tables, graphics, and plots. The OMSystem will also be used for the evaluation of the user perception of the important and relevant topics in future works.

Availability of data and materials

The datasets for training ML models are available at the following link (https://drive.google.com/file/d/1eAmVsYifgpkATw-Xl_Agjqxesr3VQF0U/view?usp=sharing). The database of the experimental results on the social mood on the topics related to Covid-19 of the OMSystem, corresponding pivot tables in the Russian language, and their translation to the English language and graphics are available from the corresponding author on the request.

Abbreviations

SA:

Sentiment analysis

ML:

Machine learning

SVM:

Support vector machine

NB:

Naïve Bayes

k-NN:

K-nearest neighbors

LR:

Logistic regression

DT:

Decision tree

FR:

Random forest

CNN:

Convolutional neural networks

RNN:

Recurrent neural networks

LSTM:

Long short-term memory

REST API:

Representational state transfer application programming interface

APIs:

Application programming interfaces

SMMM:

Social media marketing management

References

  1. Esteban OO. The rise of social media. Our world in data; 2019. https://ourworldindata.org/rise-of-social-media.

  2. Chaffey D. Global social media statistics research summary 2022. Smart insights; 2022. https://www.smartinsights.com/social-media-marketing/social-media-strategy/new-global-social-media-research/.

  3. Zhang H, Zang Zh, Zhu H, Uddin MI, Amin MA. Big data-assisted social media analytics for business model for business decision making system competitive analysis. Inf Process Manag. 2022;59(1):1–12.

    Article  Google Scholar 

  4. Singh H, Yadav A, Bansal R, Mala S. Understanding brand authenticity sentiments using big data analytics. In: 11th international conference on cloud computing, data science & engineering (confluence). 2021. p. 304–8. https://doi.org/10.1109/Confluence51648.2021.9377046.

  5. Pamuksuz U, Yun JT, Humphreys A. A brand-new look at you: predicting brand personality in social media networks with machine learning. J Interact Mark. 2021;56:55–69. https://doi.org/10.1016/j.intmar.2021.05.001.

    Article  Google Scholar 

  6. Praet S, Van Aelst P, van Erkel P, Van der Veeken S, Martens D. Predictive modeling to study lifestyle politics with Facebook likes. EPJ Data Sci. 2021;10:50. https://doi.org/10.1140/epjds/s13688-021-00305-7.

    Article  Google Scholar 

  7. Chandra Sekhar Reddy N, Subhashini V, Rai D, Sriharsha, Vittal B, Ganesh S. Product rating estimation using machine learning. In: 6th international conference on communication and electronics systems (ICCES). 2021. p. 1366–9. https://doi.org/10.1109/ICCES51350.2021.9489208.

  8. Dangi D, Bhagat A, Dixit DK. Emerging applications of artificial intelligence, machine learning and data science. Comput Mater Contin. 2022;70(3):5399–419.

    Google Scholar 

  9. Karamouzas D, Mademlis I, Pitas I. Public opinion monitoring through collective semantic analysis of tweets. Soc Netw Anal Min. 2022. https://doi.org/10.1007/s13278-022-00922-8.

    Article  Google Scholar 

  10. Belcastro L, Branda F, Cantini R, et al. Analyzing voter behavior on social media during the 2020 US presidential election campaign. Soc Netw Anal Min. 2022. https://doi.org/10.1007/s13278-022-00913-9.

    Article  Google Scholar 

  11. Negrete JCM, Iano Y, Negrete PDM, Vaz GC, de Oliveira GG. Sentiment and emotions analysis of tweets during the second round of 2021 ecuadorian presidential election. In: Proceedings of the 7th Brazilian technology symposium (BTSym’21). BTSym 2021. Smart innovation, systems and technologies, vol. 207. Cham: Springer; 2023. https://doi.org/10.1007/978-3-031-04435-9_24.

  12. Oussous A, Boulouard Z, Zahra BF. Prediction and analysis of moroccan elections using sentiment analysis. In: AI and IoT for sustainable development in emerging countries, vol. 105. Lecture notes on data engineering and communications technologies. Cham: Springer; 2022. https://doi.org/10.1007/978-3-030-90618-4_30.

    Chapter  Google Scholar 

  13. Ali K, Hamilton M, Thevathayan C, et al. Big social data as a service (BSDaaS): a service composition framework for social media analysis. J Big Data. 2022;9:64. https://doi.org/10.1186/s40537-022-00620-4.

    Article  Google Scholar 

  14. Qureshi MA, Asif M, Hassan MF, Mustafa G, Ehsan MK, Ali A, Sajid U. A novel auto-annotation technique for aspect level sentiment analysis. Comput Mater Contin. 2022;70(3):4987–5004.

    Google Scholar 

  15. Aldawod A, Alsakran R, Alrasheed H. Understanding entertainment trends during COVID-19 in Saudi Arabia. Information. 2022;13:308. https://doi.org/10.3390/info13070308.

    Article  Google Scholar 

  16. Akpatsa SK, Lei H, Li X, KofiSetornyoObeng VH. Evaluating public sentiments of Covid-19 vaccine tweets using machine learning techniques. Informatica. 2022;46(1):69–75. https://doi.org/10.31449/inf.v46i1.3483.

    Article  Google Scholar 

  17. Thara S, Poornachandran P. Social media text analytics of Malayalam–English code-mixed using deep learning. J Big Data. 2022;9:45. https://doi.org/10.1186/s40537-022-00594-3.

    Article  Google Scholar 

  18. Pellert M, Metzler H, Matzenberger M, et al. Validating daily social media macroscopes of emotions. Sci Rep. 2022;12:11236. https://doi.org/10.1038/s41598-022-14579-y.

    Article  Google Scholar 

  19. Benedetto F, Tedeschi A. Big data sentiment analysis for brand monitoring in social media streams by cloud computing. In: Pedrycz W, Chen SM, editors. Sentiment analysis and ontology engineering. Studies in computational intelligence. Cham: Springer; 2016. p. 341–77. https://doi.org/10.1007/978-3-319-30319-2_14.

    Chapter  Google Scholar 

  20. Schinas M, Papadopoulos S, Apostolidis L, Kompatsiaris Y, Mitkas PA, et al. Open-source monitoring, search and analytics over social media. In: Kompatsiaris I, et al., editors. Internet science. INSCI 2017. Lecture notes in computer science. Cham: Springer; 2017. p. 361–9. https://doi.org/10.1007/978-3-319-70284-1_28.

    Chapter  Google Scholar 

  21. Radicioni T, Saracco F, Pavan E, Squartini T. Analysing Twitter semantic networks: the case of 2018 Italian elections. Sci Rep. 2021;11:13207. https://doi.org/10.1038/s41598-021-92337-2.

    Article  Google Scholar 

  22. Bhatnagar S, Choubey N. Making sense of tweets using sentiment analysis on closely related topics. Soc Netw Anal Min. 2021. https://doi.org/10.1007/s13278-021-00752-0.

    Article  Google Scholar 

  23. Nandwani P, Verma R. A review on sentiment analysis and emotion detection from text. Soc Netw Anal Min. 2021. https://doi.org/10.1007/s13278-021-00776-6.

    Article  Google Scholar 

  24. Hartmann J, Huppertz J, Schamp C, Heitmann M. Comparing automated text classification methods. Int J Res Mark. 2021;36(1):20–38. https://doi.org/10.1016/j.ijresmar.2018.09.009.

    Article  Google Scholar 

  25. Huq MR, Ali A, Rahman A. Sentiment analysis on Twitter data using KNN and SVM. Int J Adv Comput Sci Appl. 2017. https://doi.org/10.14569/IJACSA.2017.080603.

    Article  Google Scholar 

  26. Dang NC, Moreno-García MN, De la Prieta F. Sentiment analysis based on deep learning: a comparative study. Electronics. 2020;9(3):483. https://doi.org/10.3390/electronics9030483.

    Article  Google Scholar 

  27. Röchert D, Neubaum G, Stieglitz S. Identifying political sentiments on YouTube: a systematic comparison regarding the accuracy of recurrent neural network and machine learning models. In: van Duijn M, Preuss M, Spaiser V, Takes F, Verberne S, editors. Disinformation in open online media. MISDOOM 2020. Lecture notes in computer science. Cham: Springer; 2020. p. 107–21. https://doi.org/10.1007/978-3-030-61841-4_8.

    Chapter  Google Scholar 

  28. Ombabi AH, Ouarda W, Alimi AM. Deep learning CNN–LSTM framework for Arabic sentiment analysis using textual information shared in social networks. Soc Netw Anal Min. 2020. https://doi.org/10.1007/s13278-020-00668-1.

    Article  Google Scholar 

  29. Znovarev A, Bilyi A. A comparison of machine learning methods of sentiment analysis based on Russian language Twitter data. In: 11th Majorov international conference on software engineering and computer systems, MICSECS, Saint Petersburg, Russian Federation. 2020. p. 1–7.

  30. Hamada MA, Sultanbek K, Alzhanov B, Tokbanov B. Sentimental text processing tool for Russian language based on machine learning algorithms. In: Proceedings of the 5th international conference on engineering and MIS, Astana, Kazakhstan. 2019. p. 1–6.

  31. Tukeyev U, Karibayeva A, Zhumanov Zh. Morphological segmentation method for Turkic language neural machine translation. Cogent Eng. 2022;7:1. https://doi.org/10.1080/23311916.2020.1856500.

    Article  Google Scholar 

  32. Yergesh B, Bekmanova G, Sharipbay A. Sentiment analysis of Kazakh text and their polarity. Web Intell. 2019;17(1):9–15.

    Article  Google Scholar 

  33. Bekmanova G, Yelibayeva G, Aubakirova S, Dyussupova N, Sharipbay A, Niyazova N. Methods for analyzing polarity of the Kazakh texts related to the terrorist threats. In: 19th international conference on computational science and its applications, ICCSA, Saint Petersburg, Russian Federation. 2019. p. 717–30.

  34. Alzahrani H, Acharya S, Duverger P, Nguyen NP. Contextual polarity and influence mining in online social networks. Comput Soc Netw. 2021;8(21):1–27. https://doi.org/10.1186/s40649-021-00101-3.

    Article  Google Scholar 

  35. Weber D, Nasim M, Mitchell L, Falzon L. Exploring the effect of streamed social media data variations on social network analysis. Soc Netw Anal Min. 2021;11(62):1–38. https://doi.org/10.1007/s13278-021-00770-y.

    Article  Google Scholar 

  36. Sproutsocial. https://sproutsocial.com/. Accessed 27 Nov 2021.

  37. Chaudhary K, Alam M, Al-Rakhami MS, Gumaei A. Machine learning-based mathematical modelling for prediction of social media consumer behavior using big data analytics. J Big Data. 2021. https://doi.org/10.1186/s40537-021-00466-2.

    Article  Google Scholar 

  38. Hubspot. https://www.hubspot.com/. Accessed 27 Nov 2021.

  39. Buzzsumo. https://buzzsumo.com/. Accessed 27 Nov 2021.

  40. Deng Q, Hine MJ, Ji Sh, Wang Y. Understanding consumer engagement with brand posts on social media: the effects of post linguistic styles. Electron Commer Res Appl. 2021;48: 101068. https://doi.org/10.1016/j.elerap.2021.101068.

    Article  Google Scholar 

  41. Hootsuite. https://www.hootsuite.com/. Accessed 27 Nov 2021.

  42. Brandmention. https://brandmentions.com/. Accessed 27 Nov 2021.

  43. Rahmatulloh A, Shofa RN, Darmawan I, Ardiansah. Sentiment analysis of Ojek online user satisfaction based on the Naïve Bayes and net brand reputation method. In: 9th international conference on information and communication technology (ICoICT). 2021. p. 337–41. https://doi.org/10.1109/ICoICT52021.2021.9527466.

  44. IQBuzz. https://iqbuzz.pro/. Accessed 27 Nov 2021.

  45. Beltrán J, Jara-Reyes R, Faure A. The emotions of the outbreak. Topics, sentiments and politics on Twitter during Chilean October. In: Rocha Á, Barredo D, López-López PC, Puentes-Rivera I, editors. Communication and smart technologies. ICOMTA 2021. Smart innovation, systems and technologies. Singapore: Springer; 2022. p. 216–26. https://doi.org/10.1007/978-981-16-5792-4_22.

    Chapter  Google Scholar 

  46. Snaplytics. https://thehub.io/startups/snaplytics. Accessed 27 Nov 2021.

  47. iMAS. https://imas.kz/. Accessed 27 Nov 2021.

  48. Alem media monitoring. https://alem.kz/en/monitoring-smi/. Accessed 27 Nov 2021.

  49. Usero B, Hernández V, Quintana C. Social media mining for business intelligence analytics: an application for movie box office forecasting. In: Arai K, editor. Intelligent computing. Lecture notes in networks and systems. Cham: Springer; 2022. p. 981–99. https://doi.org/10.1007/978-3-030-80119-9_65.

    Chapter  Google Scholar 

  50. Mutanov G, Karyukin V, Mamykova Z. Multiclass sentiment analysis of social media data with machine learning algorithms. Comput Mater Contin. 2021;69(1):913–30.

    Google Scholar 

  51. Kadyrbek N, Sundetova Zh, Torekul S. Information monitoring system of social wellness opinions. In: IEEE 8th workshop on advances in information, electronic and electrical engineering (AIEEE). 2021. p. 1–4. https://doi.org/10.1109/AIEEE51419.2021.9435811.

  52. Mussiraliyeva Sh, Omarov B, Yoo P, Bolatbek M. Applying machine learning techniques for religious extremism detection on online user contents. Comput Mater Contin. 2021;70(1):915–34.

    Google Scholar 

  53. Khalil EAH, Houby EMFE, Mohamed HK. Deep learning for emotion analysis in Arabic tweets. J Big Data. 2021. https://doi.org/10.1186/s40537-021-00523-w.

    Article  Google Scholar 

  54. Domalewska D. An analysis of COVID-19 economic measures and attitudes: evidence from social media mining. J Big Data. 2021. https://doi.org/10.1186/s40537-021-00431-z.

    Article  Google Scholar 

  55. Ramya GR, Bagavathi SP. An incremental learning temporal influence model for identifying topical influencers on Twitter dataset. Soc Netw Anal Min. 2021. https://doi.org/10.1007/s13278-021-00732-4.

    Article  Google Scholar 

  56. Heidari M, Shamsinejad P. Producing an instagram dataset for persian language sentiment analysis using crowdsourcing method. In: 6th international conference on web research (ICWR). 2020. p. 284–7. https://doi.org/10.1109/ICWR49608.2020.9122270.

  57. Camacho D, Luzón MV, Cambria E. New research methods & algorithms in social network analysis. Futur Gener Comput Syst. 2021;114:290–3. https://doi.org/10.1016/j.future.2020.08.006.

    Article  Google Scholar 

  58. Zarzour H, Al shboul B, Al-Ayyoub M, Jararweh Y. Sentiment analysis based on deep learning methods for explainable recommendations with reviews. In: 12th international conference on information and communication systems (ICICS). 2021. p. 452–6. https://doi.org/10.1109/ICICS52457.2021.9464601.

  59. Ng LHX, Loke JY. Analyzing public opinion and misinformation in a COVID-19 telegram group chat. IEEE Internet Comput. 2021;25(2):84–91. https://doi.org/10.1109/MIC.2020.3040516.

    Article  Google Scholar 

  60. Kulchitskaya DY, Folts AO. Between politics and show business: public discourse on social media regarding ksenia sobchak, the only female candidate in the2018 Russian presidential election. Monitor Obshchestvennogo Mneniya Ekonomicheskie i Sotsial’nye Peremeny. 2020;4:176–99. https://doi.org/10.14515/monitoring.2020.4.1254.

    Article  Google Scholar 

  61. Chen J, Chen Y, He Y, et al. A classified feature representation three-way decision model for sentiment analysis. Appl Intell. 2022;52:7995–8007. https://doi.org/10.1007/s10489-021-02809-1.

    Article  Google Scholar 

  62. Buzea MC, Stefan TM, Traian R. Automatic fake news detection for romanian online news. Information. 2022;13(3):151. https://doi.org/10.3390/info13030151.

    Article  Google Scholar 

  63. Didi Y, Ahlam W, Ali W. COVID-19 tweets classification based on a hybrid word embedding method. Big Data Cogn Comput. 2022;6(2):58. https://doi.org/10.3390/bdcc6020058.

    Article  Google Scholar 

  64. Vigneshwaran P, Prasath N, Sindhuja M, Islabudeen MM, Ragaventhiran J, Muthu KB. A comprehensive analysis of consumer decisions on Twitter dataset using machine learning algorithms. Int J Artif Intell. 2022. https://doi.org/10.11591/ijai.v11.i3.pp1085-1093.

    Article  Google Scholar 

  65. Hassan F, El Hicham M, Hicham L, Ali Y. Sentiment analysis of Arabic comments using machine learning and deep learning models. Indian J Comput Sci Eng. 2022. https://doi.org/10.21817/indjcse/2022/v13i3/221303003.

    Article  Google Scholar 

  66. Jain PK, Pamula R, Yekun EA. A multi-label ensemble predicting model to service recommendation from social media contents. J Supercomput. 2022;78:5203–20. https://doi.org/10.1007/s11227-021-04087-7.

    Article  Google Scholar 

  67. Mousa GA, Elamir EAH, Hussainey K. Using machine learning methods to predict financial performance: does disclosure tone matter? Int J Discl Gov. 2022;19:93–112. https://doi.org/10.1057/s41310-021-00129-x.

    Article  Google Scholar 

  68. Aljabri M, Aljameel SS, Khan IU, Aslam N, Charouf SMB, Alzahrani N. Machine learning model for sentiment analysis of COVID-19 tweets. Int J Adv Sci Eng Inf Technol. 2022;12(3):1206–14. https://doi.org/10.18517/ijaseit.12.3.14724.

    Article  Google Scholar 

  69. Patil RS, Kolhe SR. Supervised classifiers with TF-IDF features for sentiment analysis of Marathi tweets. Soc Netw Anal Min. 2022;12:51. https://doi.org/10.1007/s13278-022-00877-w.

    Article  Google Scholar 

  70. Engagement rate: a metric you can count on. https://www.socialbakers.com/blog/1427-engagement-rate-a-metric-you-can-count-on. Accessed 27 Nov 2021.

  71. Yeasmin N, Mahbub NI, Baowaly MK, Singh BC, Alom Z, Aung Z, Azim MA. Analysis and prediction of user sentiment on COVID-19 pandemic using tweets. Big Data Cogn Comput. 2022;6(2):65. https://doi.org/10.3390/bdcc6020065.

    Article  Google Scholar 

  72. Daradkeh M. Analyzing sentiments and diffusion characteristics of COVID-19 vaccine misinformation topics in social media: a data analytics framework. Int J Bus Anal. 2022;9(3):1–22. https://doi.org/10.4018/IJBAN.292056.

    Article  Google Scholar 

  73. Mishra S, Verma A, Meena K, et al. Public reactions towards Covid-19 vaccination through twitter before and after second wave in India. Soc Netw Anal Min. 2022;12:57. https://doi.org/10.1007/s13278-022-00885-w.

    Article  Google Scholar 

  74. Iwendi C, Mohan S, Khan S, Ibeke E, Ahmadian A, Ciano T. Covid-19 fake news sentiment analysis. Comput Electr Eng. 2022;101: 107967. https://doi.org/10.1016/j.compeleceng.2022.107967.

    Article  Google Scholar 

  75. Porreca A, Scozzari F, Di Nicola M. Using text mining and sentiment analysis to analyze YouTube Italian videos concerning vaccination. BMC Public Health. 2020. https://doi.org/10.1186/s12889-020-8342-4.

    Article  Google Scholar 

  76. Karami A, Zhu M, Goldschmidt B, Boyajieff HR, Najafabadi MM. COVID-19 vaccine and social media in the US: exploring emotions and discussions on Twitter. Vaccines. 2021;9(10):1059. https://doi.org/10.3390/vaccines9101059.

    Article  Google Scholar 

  77. Nasir A, Ali Shah M, Ashraf U, Khan A, Jeon G. An intelligent framework to predict socio-economic impacts of COVID-19 and public sentiments. Comput Electr Eng. 2021. https://doi.org/10.1016/j.compeleceng.2021.107526.

    Article  Google Scholar 

  78. Singh M, Jakhar AK, Pandey S. Sentiment analysis on the impact of coronavirus in social life using the BERT model. Soc Netw Anal Min. 2021. https://doi.org/10.1007/s13278-021-00737-z.

    Article  Google Scholar 

  79. Marcec R, Likic R. Using Twitter for sentiment analysis towards AstraZeneca/Oxford, Pfizer/BioNTech and Moderna COVID-19 vaccines. Postgrad Med J. 2021. https://doi.org/10.1136/postgradmedj-2021-140685.

    Article  Google Scholar 

  80. Sahraian MA, Ghadiri F, Azimi A, Moghadasi AN. Adverse events reported by Iranian patients with multiple sclerosis after the first dose of Sinopharm BBIBP-CorV. Vaccine. 2021;39(43):6347–50. https://doi.org/10.1016/j.vaccine.2021.09.030.

    Article  Google Scholar 

Download references

Acknowledgements

We would like to thank the Science Fund for the commercialization of scientific and technical activities for providing the Grant № 0101-18-GC on the topic “The opinion monitoring information system OMSystem.”

Funding

This research was financed by the Grant of the Science Fund for the commercialization of scientific and technical activities № 0101-18-GC on the topic “The opinion monitoring information system OMSystem.”

Author information

Authors and Affiliations

Authors

Contributions

VK designed the content of the research paper, described the obtained experimental results on the ML models and evaluation of the social mood, and wrote the main manuscript text. GM and ZM designed the pivot tables from the experimental data and checked the paper’s writing. GN analyzed social-economic and political aspects of received experimental results and made conclusions based on the public’s opinion. ST and ZS configured the OMSystem and ran a web crawler to parse data from the Internet resources. Finally, MN made a thorough revision of the paper, corrected it, and proposed ways for its significant improvement. All authors reviewed the manuscript. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Vladislav Karyukin.

Ethics declarations

Ethics approval and consent to participate

Not applicable.

Consent for publication

Not applicable.

Competing interests

The authors declare that they have no competing interests.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Karyukin, V., Mutanov, G., Mamykova, Z. et al. On the development of an information system for monitoring user opinion and its role for the public. J Big Data 9, 110 (2022). https://doi.org/10.1186/s40537-022-00660-w

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s40537-022-00660-w

Keywords