<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3.dtd">
<article article-type="research-article" dtd-version="1.3" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="ru"><front><journal-meta><journal-id journal-id-type="publisher-id">ellibs</journal-id><journal-title-group><journal-title xml:lang="ru">Электронные библиотеки</journal-title><trans-title-group xml:lang="en"><trans-title>Russian Digital Libraries Journal</trans-title></trans-title-group></journal-title-group><issn pub-type="epub">1562-5419</issn><publisher><publisher-name>Казанский (Приволжский) федеральный университет</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.26907/1562-5419-2023-26-4-396-413</article-id><article-id custom-type="elpub" pub-id-type="custom">ellibs-380</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="ru"><subject>Статьи</subject></subj-group></article-categories><title-group><article-title>Решение задачи классификации эмоционального тона сообщения с определением наиболее подходящей архитектуры нейронной сети</article-title><trans-title-group xml:lang="en"><trans-title>Solving the Problem of Classifying the Emotional Tone of a Message with Determining the Most Appropriate Neural Network Architecture</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Багаутдинов</surname><given-names>Д. И.</given-names></name><name name-style="western" xml:lang="en"><surname>Bagautdinov</surname><given-names>D. I.</given-names></name></name-alternatives><email xlink:type="simple">d4niskabag@yandex.ru</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Салман</surname><given-names>Р.</given-names></name><name name-style="western" xml:lang="en"><surname>Salman</surname><given-names>S.</given-names></name></name-alternatives><email xlink:type="simple">Riham.salman.98@gmail.com</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Алексеев</surname><given-names>В. А.</given-names></name><name name-style="western" xml:lang="en"><surname>Alekseev</surname><given-names>V. A.</given-names></name></name-alternatives><email xlink:type="simple">aleksvlad99@gmail.com</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Усмонов</surname><given-names>Р. М.</given-names></name><name name-style="western" xml:lang="en"><surname>Usmonov</surname><given-names>R. M.</given-names></name></name-alternatives><email xlink:type="simple">rustam190401@mail.ru</email><xref ref-type="aff" rid="aff-1"/></contrib></contrib-group><aff-alternatives id="aff-1"><aff xml:lang="ru"><institution>Казанский (Приволжский) Федеральный университет</institution></aff><aff xml:lang="en"><institution>Kazan (Volga region) Federal University</institution></aff></aff-alternatives><pub-date pub-type="collection"><year>2023</year></pub-date><pub-date pub-type="epub"><day>28</day><month>08</month><year>2023</year></pub-date><volume>26</volume><issue>4</issue><fpage>396</fpage><lpage>413</lpage><permissions><copyright-statement>Copyright &amp;#x00A9; Багаутдинов Д.И., Салман Р., Алексеев В.А., Усмонов Р.М., 2023</copyright-statement><copyright-year>2023</copyright-year><copyright-holder xml:lang="ru">Багаутдинов Д.И., Салман Р., Алексеев В.А., Усмонов Р.М.</copyright-holder><copyright-holder xml:lang="en">Bagautdinov D.I., Salman S., Alekseev V.A., Usmonov R.M.</copyright-holder><license xml:lang="ru" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>Данная работа распространяется под лицензией Creative Commons Attribution 4.0.</license-p></license><license xml:lang="en" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>This work is licensed under a Creative Commons Attribution 4.0 License.</license-p></license></permissions><self-uri xlink:href="https://ellibs.elpub.ru/jour/article/view/380">https://ellibs.elpub.ru/jour/article/view/380</self-uri><abstract><p>Для определения наиболее эффективного подхода к решению задачи классификации эмоционального тона сообщения проведено обучение выбранных моделей нейронной сети на различных наборах обучающих данных. На основе такого показателя, как процентное соотношение правильно данных ответов на тестовом наборе данных, сравнены комбинации наборов обучающих данных и различных моделей, обученных на основе этих данных. Произведено обучение четырех моделей нейронной сети на трех различных наборах обучающих данных. В результате сравнения точности ответов каждой модели, обученной на разных обучающих данных, сделаны выводы о выборе модели нейронной сети, наиболее подходящей для решения поставленной задачи.
</p></abstract><trans-abstract xml:lang="en"><p>To determine the most effective approach for solving the task of classifying the emotional tone of a message, we trained selected neural network models on various sets of training data. Next, based on the performance metric of the percentage of correctly classified responses on a test data set, we compared combinations of training data sets and various models trained on them. During the writing of this article, we trained four neural network models on three different sets of training data. By comparing the accuracy of the responses from each model trained on different training data sets, conclusions were drawn regarding the neural network model best suited for solving the task at hand.
</p></trans-abstract><kwd-group xml:lang="ru"><kwd>NLP</kwd><kwd>sentiment detection</kwd><kwd>neural networks</kwd><kwd>comparison of neural network models</kwd><kwd>LSTM</kwd><kwd>CNN</kwd><kwd>BiLSTM</kwd></kwd-group><kwd-group xml:lang="en"><kwd>NLP</kwd><kwd>sentiment detection</kwd><kwd>neural networks</kwd><kwd>comparison of neural network models</kwd><kwd>LSTM</kwd><kwd>CNN</kwd><kwd>BiLSTM</kwd></kwd-group></article-meta></front><back><ref-list><title>References</title><ref id="cit1"><label>1</label><citation-alternatives><mixed-citation xml:lang="ru">Gosai D. D., Gohil H. J., Jayswal H. S. A Review on a Emotion Detection and Recognization from Text Using Natural Language Processing. URL: http://www.ripublication.com/ijaer18/ijaerv13n9_33.pdf</mixed-citation><mixed-citation xml:lang="en">Gosai D. D., Gohil H. J., Jayswal H. S. A Review on a Emotion Detection and Recognization from Text Using Natural Language Processing. URL: http://www.ripublication.com/ijaer18/ijaerv13n9_33.pdf</mixed-citation></citation-alternatives></ref><ref id="cit2"><label>2</label><citation-alternatives><mixed-citation xml:lang="ru">Acheampong F. A., Nunoo-Mensah H., Wenyu Chen. Transformer models for text-based emotion detection: a review of BERT-based approaches. URL: https://link.springer.com/article/10.1007/s10462-021-09958-2</mixed-citation><mixed-citation xml:lang="en">Acheampong F. A., Nunoo-Mensah H., Wenyu Chen. Transformer models for text-based emotion detection: a review of BERT-based approaches. URL: https://link.springer.com/article/10.1007/s10462-021-09958-2</mixed-citation></citation-alternatives></ref><ref id="cit3"><label>3</label><citation-alternatives><mixed-citation xml:lang="ru">Naresh S. S., Khethawat S. Emotion Detection from Text URL: https://arxiv.org/abs/1205.4944</mixed-citation><mixed-citation xml:lang="en">Naresh S. S., Khethawat S. Emotion Detection from Text URL: https://arxiv.org/abs/1205.4944</mixed-citation></citation-alternatives></ref><ref id="cit4"><label>4</label><citation-alternatives><mixed-citation xml:lang="ru">Baccianella S., Esuli A., Sebastiani F. Sentiwordnet 3.0: an enhanced lexical resource for sentiment analysis and opinion mining // Lrec. 2010. P. 2200–2204</mixed-citation><mixed-citation xml:lang="en">Baccianella S., Esuli A., Sebastiani F. Sentiwordnet 3.0: an enhanced lexical resource for sentiment analysis and opinion mining // Lrec. 2010. P. 2200–2204</mixed-citation></citation-alternatives></ref><ref id="cit5"><label>5</label><citation-alternatives><mixed-citation xml:lang="ru">Akbik A., Blythe D., Vollgraf R. Contextual string embeddings for sequence labeling // Proceedings of the 27th international conference on computational linguistics. 2010. P. 1638–1649.</mixed-citation><mixed-citation xml:lang="en">Akbik A., Blythe D., Vollgraf R. Contextual string embeddings for sequence labeling // Proceedings of the 27th international conference on computational linguistics. 2010. P. 1638–1649.</mixed-citation></citation-alternatives></ref><ref id="cit6"><label>6</label><citation-alternatives><mixed-citation xml:lang="ru">Keras. URL: https://keras.io/</mixed-citation><mixed-citation xml:lang="en">Keras. URL: https://keras.io/</mixed-citation></citation-alternatives></ref><ref id="cit7"><label>7</label><citation-alternatives><mixed-citation xml:lang="ru">Tensorflow. URL: https://www.tensorflow.org/</mixed-citation><mixed-citation xml:lang="en">Tensorflow. URL: https://www.tensorflow.org/</mixed-citation></citation-alternatives></ref><ref id="cit8"><label>8</label><citation-alternatives><mixed-citation xml:lang="ru">Numpy. URL: https://numpy.org/</mixed-citation><mixed-citation xml:lang="en">Numpy. URL: https://numpy.org/</mixed-citation></citation-alternatives></ref><ref id="cit9"><label>9</label><citation-alternatives><mixed-citation xml:lang="ru">Pandas. URL: https://pandas.pydata.org/</mixed-citation><mixed-citation xml:lang="en">Pandas. URL: https://pandas.pydata.org/</mixed-citation></citation-alternatives></ref><ref id="cit10"><label>10</label><citation-alternatives><mixed-citation xml:lang="ru">Aiogram. URL: https://aiogram.dev</mixed-citation><mixed-citation xml:lang="en">Aiogram. URL: https://aiogram.dev</mixed-citation></citation-alternatives></ref><ref id="cit11"><label>11</label><citation-alternatives><mixed-citation xml:lang="ru">Asyncio. URL: https://docs.python.org/3/library/asyncio.html</mixed-citation><mixed-citation xml:lang="en">Asyncio. URL: https://docs.python.org/3/library/asyncio.html</mixed-citation></citation-alternatives></ref><ref id="cit12"><label>12</label><citation-alternatives><mixed-citation xml:lang="ru">Aiohttp. URL: https://docs.aiohttp.org/en/stable/index.html</mixed-citation><mixed-citation xml:lang="en">Aiohttp. URL: https://docs.aiohttp.org/en/stable/index.html</mixed-citation></citation-alternatives></ref><ref id="cit13"><label>13</label><citation-alternatives><mixed-citation xml:lang="ru">GloVe: Global Vectors for Word Representation. URL: https://nlp.stanford.edu/projects/glove/</mixed-citation><mixed-citation xml:lang="en">GloVe: Global Vectors for Word Representation. URL: https://nlp.stanford.edu/projects/glove/</mixed-citation></citation-alternatives></ref><ref id="cit14"><label>14</label><citation-alternatives><mixed-citation xml:lang="ru">Google Collab. URL: https://colab.research.google.com</mixed-citation><mixed-citation xml:lang="en">Google Collab. URL: https://colab.research.google.com</mixed-citation></citation-alternatives></ref><ref id="cit15"><label>15</label><citation-alternatives><mixed-citation xml:lang="ru">Jupyter Notebook. URL: https://docs.jupyter.org/en/latest/install/notebook-classic.html</mixed-citation><mixed-citation xml:lang="en">Jupyter Notebook. URL: https://docs.jupyter.org/en/latest/install/notebook-classic.html</mixed-citation></citation-alternatives></ref><ref id="cit16"><label>16</label><citation-alternatives><mixed-citation xml:lang="ru">Multi-Class Text Emotion Analysis. URL: https://github.com/kanchitank/Text-Emotion-Analysis</mixed-citation><mixed-citation xml:lang="en">Multi-Class Text Emotion Analysis. URL: https://github.com/kanchitank/Text-Emotion-Analysis</mixed-citation></citation-alternatives></ref><ref id="cit17"><label>17</label><citation-alternatives><mixed-citation xml:lang="ru">Sentiment140 dataset with 1.6 million tweets. URL: https://www.kaggle.com/datasets/kazanova/sentiment140</mixed-citation><mixed-citation xml:lang="en">Sentiment140 dataset with 1.6 million tweets. URL: https://www.kaggle.com/datasets/kazanova/sentiment140</mixed-citation></citation-alternatives></ref><ref id="cit18"><label>18</label><citation-alternatives><mixed-citation xml:lang="ru">Twitter Emotion Classification. URL: https://www.kaggle.com/code/shtrausslearning/twitter-emotion-classification?scriptVersionId=126983369</mixed-citation><mixed-citation xml:lang="en">Twitter Emotion Classification. URL: https://www.kaggle.com/code/shtrausslearning/twitter-emotion-classification?scriptVersionId=126983369</mixed-citation></citation-alternatives></ref><ref id="cit19"><label>19</label><citation-alternatives><mixed-citation xml:lang="ru">BiLSTM. URL: https://www.kaggle.com/code/mlwhiz/bilstm-pytorch-and-keras</mixed-citation><mixed-citation xml:lang="en">BiLSTM. URL: https://www.kaggle.com/code/mlwhiz/bilstm-pytorch-and-keras</mixed-citation></citation-alternatives></ref></ref-list><fn-group><fn fn-type="conflict"><p>The authors declare that there are no conflicts of interest present.</p></fn></fn-group></back></article>
