<?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">mais</journal-id><journal-title-group><journal-title xml:lang="ru">Моделирование и анализ информационных систем</journal-title><trans-title-group xml:lang="en"><trans-title>Modeling and Analysis of Information Systems</trans-title></trans-title-group></journal-title-group><issn pub-type="ppub">1818-1015</issn><issn pub-type="epub">2313-5417</issn><publisher><publisher-name>Yaroslavl State University</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.18255/1818-1015-2024-1-90-101</article-id><article-id custom-type="elpub" pub-id-type="custom">mais-1840</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>Artificial Intelligence</subject></subj-group></article-categories><title-group><article-title>Применение глубоких нейронных сетей для автоматического определения иронии в русскоязычных текстах</article-title><trans-title-group xml:lang="en"><trans-title>Application of deep neural networks for automatic irony detection in Russian texts</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-8298-3156</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Костерин</surname><given-names>Максим Алексеевич</given-names></name><name name-style="western" xml:lang="en"><surname>Kosterin</surname><given-names>Maksim A.</given-names></name></name-alternatives><email xlink:type="simple">makcost@gmail.com</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0003-3984-8423</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Парамонов</surname><given-names>Илья Вячеславович</given-names></name><name name-style="western" xml:lang="en"><surname>Paramonov</surname><given-names>Ilya V.</given-names></name></name-alternatives><email xlink:type="simple">ilya.paramonov@fruct.org</email><xref ref-type="aff" rid="aff-1"/></contrib></contrib-group><aff-alternatives id="aff-1"><aff xml:lang="ru"><institution>Ярославский государственный университет им. П.Г. Демидова</institution><country>Россия</country></aff><aff xml:lang="en"><institution>P.G. Demidov Yaroslavl State University</institution><country>Russian Federation</country></aff></aff-alternatives><pub-date pub-type="collection"><year>2024</year></pub-date><pub-date pub-type="epub"><day>28</day><month>03</month><year>2024</year></pub-date><volume>31</volume><issue>1</issue><fpage>90</fpage><lpage>101</lpage><permissions><copyright-statement>Copyright &amp;#x00A9; Костерин М.А., Парамонов И.В., 2024</copyright-statement><copyright-year>2024</copyright-year><copyright-holder xml:lang="ru">Костерин М.А., Парамонов И.В.</copyright-holder><copyright-holder xml:lang="en">Kosterin M.A., Paramonov I.V.</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://www.mais-journal.ru/jour/article/view/1840">https://www.mais-journal.ru/jour/article/view/1840</self-uri><abstract><p>В работе исследуются автоматические методы классификации русскоязычных предложений на два класса: содержащие и не содержащие ироничный посыл. Рассматриваемые методы могут быть разделены на три категории: классификаторы на основе эмбеддингов языковых моделей, классификаторы с использованием информации о тональности и классификаторы с обучением эмбеддингов обнаружению иронии. Составными элементами классификаторов являются нейронные сети, такие как BERT, RoBERTa, BiLSTM, CNN, а также механизм внимания и полносвязные слои. Эксперименты по обнаружению иронии проводились с использованием двух корпусов русскоязычных предложений: первый корпус составлен из публицистических текстов из открытого корпуса OpenCorpora, второй корпус является расширением первого и дополнен ироничными предложениями с ресурса Wiktionary. Лучшие результаты продемонстрировала группа классификаторов на основе чистых эмбеддингов языковых моделей с максимальным значением F-меры 0.84, достигнутым связкой из RoBERTa, BiLSTM, механизма внимания и пары полносвязных слоев в ходе экспериментов на расширенном корпусе. В целом использование расширенного корпуса давало результаты на 2–5% выше результатов на базовом корпусе. Достигнутые результаты являются лучшими для рассматриваемой задачи в случае русского языка и сравнимы с лучшими для английского.</p></abstract><trans-abstract xml:lang="en"><p>The paper examines automatic methods for classifying Russian-language sentences into two classes: ironic and non-ironic. The discussed methods can be divided into three categories: classifiers based on language model embeddings, classifiers using sentiment information, and classifiers with embeddings trained to detect irony. The components of classifiers are neural networks such as BERT, RoBERTa, BiLSTM, CNN, as well as an attention mechanism and fully connected layers. The irony detection experiments were carried out using two corpora of Russian sentences: the first corpus is composed of journalistic texts from the OpenCorpora open corpus, the second corpus is an extension of the first one and is supplemented with ironic sentences from the Wiktionary resource. The best results were demonstrated by a group of classifiers based on embeddings of language models with the maximum F-measure of 0.84, achieved by a combination of RoBERTa, BiLSTM, an attention mechanism and a pair of fully connected layers in experiments on the extended corpus. In general, using the extended corpus produced results that were 2–5% higher than those of the basic corpus. The achieved results are the best for the problem under consideration in the case of the Russian language and are comparable to the best one for English.</p></trans-abstract><kwd-group xml:lang="ru"><kwd>обнаружение иронии</kwd><kwd>обнаружение сарказма</kwd><kwd>нейросетевой классификатор</kwd><kwd>глубокое обучение</kwd><kwd>обработка естественного языка</kwd><kwd>BERT</kwd></kwd-group><kwd-group xml:lang="en"><kwd>irony detection</kwd><kwd>sarcasm detection</kwd><kwd>neural network-based classifier</kwd><kwd>deep learning</kwd><kwd>natural language processing</kwd><kwd>BERT</kwd></kwd-group><funding-group><funding-statement xml:lang="ru">Российский научный фонд (проект No 23-21-00495).</funding-statement><funding-statement xml:lang="en">Russian Science Foundation (Project no. 23-21-00495).</funding-statement></funding-group></article-meta></front><back><ref-list><title>References</title><ref id="cit1"><label>1</label><citation-alternatives><mixed-citation xml:lang="ru">M. Kosterin, I. Paramonov, and N. Lagutina, “Automatic Irony and Sarcasm Detection in Russian Sentences: Baseline Methods,” in 33rd Conference of Open Innovations Association FRUCT, 2023, pp. 148–154, doi: 10.23919/FRUCT58615.2023.10142992.</mixed-citation><mixed-citation xml:lang="en">M. Kosterin, I. Paramonov, and N. Lagutina, “Automatic Irony and Sarcasm Detection in Russian Sentences: Baseline Methods,” in 33rd Conference of Open Innovations Association FRUCT, 2023, pp. 148–154, doi: 10.23919/FRUCT58615.2023.10142992.</mixed-citation></citation-alternatives></ref><ref id="cit2"><label>2</label><citation-alternatives><mixed-citation xml:lang="ru">D. vSandor and M. B. Babac, “Sarcasm detection in online comments using machine learning,” Information Discovery and Delivery, 2023, doi: 10.1108/IDD-01-2023-0002.</mixed-citation><mixed-citation xml:lang="en">D. vSandor and M. B. Babac, “Sarcasm detection in online comments using machine learning,” Information Discovery and Delivery, 2023, doi: 10.1108/IDD-01-2023-0002.</mixed-citation></citation-alternatives></ref><ref id="cit3"><label>3</label><citation-alternatives><mixed-citation xml:lang="ru">R. A. Potamias, G. Siolas, and A.-G. Stafylopatis, “A transformer-based approach to irony and sarcasm detection,” Neural Computing and Applications, vol. 32, pp. 17309–17320, 2020, doi: 10.1007/s00521-020-05102-3.</mixed-citation><mixed-citation xml:lang="en">R. A. Potamias, G. Siolas, and A.-G. Stafylopatis, “A transformer-based approach to irony and sarcasm detection,” Neural Computing and Applications, vol. 32, pp. 17309–17320, 2020, doi: 10.1007/s00521-020-05102-3.</mixed-citation></citation-alternatives></ref><ref id="cit4"><label>4</label><citation-alternatives><mixed-citation xml:lang="ru">C. Van Hee, E. Lefever, and V. Hoste, “Semeval-2018 task 3: Irony detection in English tweets,” in Proceedings of The 12th International Workshop on Semantic Evaluation, 2018, pp. 39–50, doi: 10.18653/v1/S18-1005.</mixed-citation><mixed-citation xml:lang="en">C. Van Hee, E. Lefever, and V. Hoste, “Semeval-2018 task 3: Irony detection in English tweets,” in Proceedings of The 12th International Workshop on Semantic Evaluation, 2018, pp. 39–50, doi: 10.18653/v1/S18-1005.</mixed-citation></citation-alternatives></ref><ref id="cit5"><label>5</label><citation-alternatives><mixed-citation xml:lang="ru">M. Khodak, N. Saunshi, and K. Vodrahalli, “A large self-annotated corpus for sarcasm.” 2017.</mixed-citation><mixed-citation xml:lang="en">M. Khodak, N. Saunshi, and K. Vodrahalli, “A large self-annotated corpus for sarcasm.” 2017.</mixed-citation></citation-alternatives></ref><ref id="cit6"><label>6</label><citation-alternatives><mixed-citation xml:lang="ru">E. Riloff, A. Qadir, P. Surve, L. De Silva, N. Gilbert, and R. Huang, “Sarcasm as contrast between a positive sentiment and negative situation,” in Proceedings of the 2013 conference on empirical methods in natural language processing, 2013, pp. 704–714.</mixed-citation><mixed-citation xml:lang="en">E. Riloff, A. Qadir, P. Surve, L. De Silva, N. Gilbert, and R. Huang, “Sarcasm as contrast between a positive sentiment and negative situation,” in Proceedings of the 2013 conference on empirical methods in natural language processing, 2013, pp. 704–714.</mixed-citation></citation-alternatives></ref><ref id="cit7"><label>7</label><citation-alternatives><mixed-citation xml:lang="ru">S. Zhang, X. Zhang, J. Chan, and P. Rosso, “Irony detection via sentiment-based transfer learning,” Information Processing &amp; Management, vol. 56, no. 5, pp. 1633–1644, 2019, doi: 10.1016/j.ipm.2019.04.006.</mixed-citation><mixed-citation xml:lang="en">S. Zhang, X. Zhang, J. Chan, and P. Rosso, “Irony detection via sentiment-based transfer learning,” Information Processing &amp; Management, vol. 56, no. 5, pp. 1633–1644, 2019, doi: 10.1016/j.ipm.2019.04.006.</mixed-citation></citation-alternatives></ref><ref id="cit8"><label>8</label><citation-alternatives><mixed-citation xml:lang="ru">D. Hazarika, S. Poria, S. Gorantla, E. Cambria, R. Zimmermann, and R. Mihalcea, “Cascade: Contextual sarcasm detection in online discussion forums.” 2018.</mixed-citation><mixed-citation xml:lang="en">D. Hazarika, S. Poria, S. Gorantla, E. Cambria, R. Zimmermann, and R. Mihalcea, “Cascade: Contextual sarcasm detection in online discussion forums.” 2018.</mixed-citation></citation-alternatives></ref><ref id="cit9"><label>9</label><citation-alternatives><mixed-citation xml:lang="ru">T. Zefirova and N. Loukachevitch, “Irony and sarcasm expression in Twitter,” EPiC Series in Language and Linguistics, vol. 4, pp. 45–49, 2019, doi: 10.29007/tpzw.</mixed-citation><mixed-citation xml:lang="en">T. Zefirova and N. Loukachevitch, “Irony and sarcasm expression in Twitter,” EPiC Series in Language and Linguistics, vol. 4, pp. 45–49, 2019, doi: 10.29007/tpzw.</mixed-citation></citation-alternatives></ref><ref id="cit10"><label>10</label><citation-alternatives><mixed-citation xml:lang="ru">A. A. Gurin and T. A. Zhukov, “Avtomaticheskoe opredelenie sarkazma v tekstakh na russkom yazyke,” Tsyfrovaya ekonomika, vol. 1(22), pp. 44–53, 2023.</mixed-citation><mixed-citation xml:lang="en">A. A. Gurin and T. A. Zhukov, “Avtomaticheskoe opredelenie sarkazma v tekstakh na russkom yazyke,” Tsyfrovaya ekonomika, vol. 1(22), pp. 44–53, 2023.</mixed-citation></citation-alternatives></ref><ref id="cit11"><label>11</label><citation-alternatives><mixed-citation xml:lang="ru">A. D. Yacoub, S. Slim, and A. Aboutabl, “A Survey of Sentiment Analysis and Sarcasm Detection: Challenges, Techniques, and Trends,” International journal of electrical and computer engineering systems, vol. 15, no. 1, pp. 69–78, 2024, doi: 10.32985/ijeces.15.1.7.</mixed-citation><mixed-citation xml:lang="en">A. D. Yacoub, S. Slim, and A. Aboutabl, “A Survey of Sentiment Analysis and Sarcasm Detection: Challenges, Techniques, and Trends,” International journal of electrical and computer engineering systems, vol. 15, no. 1, pp. 69–78, 2024, doi: 10.32985/ijeces.15.1.7.</mixed-citation></citation-alternatives></ref><ref id="cit12"><label>12</label><citation-alternatives><mixed-citation xml:lang="ru">Y. Kuratov and M. Arkhipov, “Adaptation of deep bidirectional multilingual transformers for Russian language.” 2019.</mixed-citation><mixed-citation xml:lang="en">Y. Kuratov and M. Arkhipov, “Adaptation of deep bidirectional multilingual transformers for Russian language.” 2019.</mixed-citation></citation-alternatives></ref><ref id="cit13"><label>13</label><citation-alternatives><mixed-citation xml:lang="ru">D. Zmitrovich et al., “A family of pretrained transformer language models for Russian.” 2023.</mixed-citation><mixed-citation xml:lang="en">D. Zmitrovich et al., “A family of pretrained transformer language models for Russian.” 2023.</mixed-citation></citation-alternatives></ref><ref id="cit14"><label>14</label><citation-alternatives><mixed-citation xml:lang="ru">C. Zhou, C. Sun, Z. Liu, and F. Lau, “A C-LSTM neural network for text classification.” 2015.</mixed-citation><mixed-citation xml:lang="en">C. Zhou, C. Sun, Z. Liu, and F. Lau, “A C-LSTM neural network for text classification.” 2015.</mixed-citation></citation-alternatives></ref><ref id="cit15"><label>15</label><citation-alternatives><mixed-citation xml:lang="ru">A. Rogers, A. Romanov, A. Rumshisky, S. Volkova, M. Gronas, and A. Gribov, “RuSentiment: An enriched sentiment analysis dataset for social media in Russian,” in Proceedings of the 27th international conference on computational linguistics, 2018, pp. 755–763.</mixed-citation><mixed-citation xml:lang="en">A. Rogers, A. Romanov, A. Rumshisky, S. Volkova, M. Gronas, and A. Gribov, “RuSentiment: An enriched sentiment analysis dataset for social media in Russian,” in Proceedings of the 27th international conference on computational linguistics, 2018, pp. 755–763.</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>
