RUS  ENG
Full version
JOURNALS // Modelirovanie i Analiz Informatsionnykh Sistem // Archive

Model. Anal. Inform. Sist., 2024 Volume 31, Number 1, Pages 90–101 (Mi mais817)

Artificial intelligence

Application of deep neural networks for automatic irony detection in Russian texts

M. A. Kosterin, I. V. Paramonov

P.G. Demidov Yaroslavl State University, Yaroslavl, Russia

Abstract: 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.

Keywords: irony detection, sarcasm detection, neural network-based classifier, deep learning, natural language processing, BERT.

UDC: 004.912

MSC: 68T50

Received: 15.02.2024
Revised: 23.02.2024
Accepted: 28.02.2024

DOI: 10.18255/1818-1015-2024-1-90-101



© Steklov Math. Inst. of RAS, 2024