A Method for Classifying Sarcasms Based on Quantum TF_IDF Features

Abstract

This article proposes an LSTM-based approach for sarcasm detection by forming quantum features from textual data. In the proposed method, words are first encoded in quantum space, and their semantic similarity is calculated using interference. Based on the encoded data, quantum TF-IDF features are generated and fed into a neural network for classification. The obtained results were compared with those of the classical approach. According to experimental results, the quantum approach achieved 83% accuracy, while the classical approach achieved 78%. Additionally, the quantum approach reduced computation time by 49% compared to the classical one. Due to its superposition and parallelism properties, the quantum approach provides higher performance. Its limitations include testing on a simulator, interdependence between data, and the inability to use real quantum technologies. Applying quantum computing through TF-IDF methods for natural language processing and sarcasm detection can be a promising direction.

Country : Uzbekistan

1 Niyozmatova Nilufar2 Turgunova Nafisa3 Abduraxmanova Nigora4 Almuradova Nigora5 Bakhtiyorova Mohiruy

  1. Department of Digital Technologies and Artificial Intelligence, “Tashkent Institute of Irrigation and agricultural Mechanization Engineers” National Research University, Uzbekistan & Department of Software Engineering in Information Technologies, Tashkent
  2. Department of Digital Technologies and Artificial Intelligence, “Tashkent Institute of Irrigation and agricultural Mechanization Engineers” National Research University, Uzbekistan
  3. Department of Software Engineering in Information Technologies, Tashkent University of Information Technologies Named after Muhammad al-Khwarizmi, Uzbekistan
  4. Department of Software Engineering in Information Technologies, Tashkent University of Information Technologies Named after Muhammad al-Khwarizmi, Uzbekistan
  5. Department of Digital Technologies and Artificial Intelligence, “Tashkent Institute of Irrigation and agricultural Mechanization Engineers” National Research University, Uzbekistan

IRJIET, Volume 9, Issue 11, November 2025 pp. 268-274

doi.org/10.47001/IRJIET/2025.911034

References

  1. A.A,S. G, S. H R, M. Upadhyaya, A. P. Ray, and M. T C, ‘Sarcasm detection in natural language processing’, Mater. Today Proc., vol. 37, pp. 3324–3331, 2021, doi: 10.1016/j.matpr.2020.09.124.
  2. D. Muhamediyeva, N. Niyozmatova, N. Turgunova, S. Ungalov, and N. Almuradova, ‘Classification of Emoji in Text Documents of Users in Social Networks Using Machine Learning’, in 2025 6th International Conference on Mobile Computing and Sustainable Informatics (ICMCSI), Jan. 2025, pp. 1491–1496. doi: 10.1109/ICMCSI64620.2025.10883250.
  3. N. Mamatov and N. Nuritdinov, ‘MATNNI TAHLIL QILISH BOʻYICHA ILGʻOR TAJRIBALAR’, Comput. Linguist. Probl. Solut. PROSPECTS, vol. 1, no. 1, May 2025, Accessed: Oct. 31, 2025. [Online]. Available: https://compling.navoiy-uni.uz/index.php/conferences/article/view/1172
  4. A.V. Ulinov and I. V. Kozupeev, “Vliyanie kolichestva priznakov na kachestvo klassifikatsii tekstov metodom TF-IDF,” Auditorium, no. 1(45), 2025. [Online]. Available: https://cyberleninka.ru/article/n/vliyanie-kolichestva-priznakov-na-kachestvo-klassifikatsii-tekstov-metodom-tf-idf . [Accessed: Oct. 31, 2025].’
  5. Т. Б. Х. Угли, Т. Н. М. Кизи, И. М. И. Кизи, and А. Д. А. Кизи, ‘АЛГОРИТМЫ ОТДЕЛЕНИЯ ФАКТОВ ОТ ИНФОРМАЦИИ НА УЗБЕКСКОМ ЯЗЫКЕ ИЗ ЗАЯВЛЕНИЙ, ПОЛУЧЕННЫХ ОТ ВИРТУАЛЬНЫХ ПРИЕМНЫХ’, Univers. Технические Науки, no. 12–2 (117), pp. 9–11, 2023.
  6. N. S. Mamatov, N. M. Turg’unova, B. X. Turg’unov, and B. N. Samijonov, ‘N. S. Mamatov, N. M. Turg‘unova, B. X. Turg‘unov, and B. N. Samijonov, “Algorithm for analysis of texts in Uzbek language,” in Artificial Intelligence and Information Technologies, CRC Press, 2024, pp. 511–515.’, in Artificial Intelligence and Information Technologies, CRC Press, 2024.
  7. N. Niyozmatova and N. Turg‘unova, “Matnlarni vektorlashni TF_IDF kvant algoritmi,” Digital Transformation and Artificial Intelligence, vol. 3, no. 3, pp. 189–193, 2025.’
  8. O. J. Babomuradov, N. S. Mamatov, L. B. Boboyev, and B. I. Otaxonova, ‘O. J. Babomuradov, N. S. Mamatov, L. B. Boboyev, and B. I. Otaxonova, “Classification of texts using decision trees algorithms,” Descendants of Muhammad al-Khwarizmi, vol. 4, no. 10, 2019.’, Descend. Muhammad Al-Khwarizmi, vol. 4, no. 10, 2019.
  9. J. Pradhan, R. Verma, S. Kumar, and V. Sharma, ‘An Efficient Sarcasm Detection using Linguistic Features and Ensemble Machine Learning’, Procedia Comput. Sci., vol. 235, pp. 1058–1067, 2024, doi: 10.1016/j.procs.2024.04.100.
  10. A.-C. Băroiu and  Ștefan Trăușan-Matu, ‘Automatic Sarcasm Detection: Systematic Literature Review’, Information, vol. 13, no. 8, p. 399, Aug. 2022, doi: 10.3390/info13080399.
  11. S. Khan, I. Qasim, W. Khan, K. Khursheed, J. Khan, and M. Anwar, ‘A novel transformer attention‐based approach for sarcasm detection’, Expert Syst., vol. 42, July 2024, doi: 10.1111/exsy.13686.
  12. G. Chandrasekaran, K. Chowdary, C. B. Jyothi, A. Kiran, K. Kumar, and S. Kadry, ‘Deep learning-based attention models for sarcasm detection in text’, Int. J. Electr. Comput. Eng. IJECE, vol. 14, p. 6786, Dec. 2024, doi: 10.11591/ijece.v14i6.pp6786-6796.
  13. N. A. Niyozmatova, N. S. Mamatov, B. I. Otaxonova, A. N. Samijonov, and K. K. Erejepov, ‘Classification Based On Decision Trees And Neural Networks’, in 2021 International Conference on Information Science and Communications Technologies (ICISCT), Nov. 2021, pp. 01–04. doi: 10.1109/ICISCT52966.2021.9670345.
  14. S. K. Lora, I. Jahan, R. Hussain, R. Shahriyar, and A. B. M. A. A. Islam, ‘A transformer-based generative adversarial learning to detect sarcasm from Bengali text with correct classification of confusing text’, Heliyon, vol. 9, no. 12, p. e22531, Dec. 2023, doi: 10.1016/j.heliyon.2023.e22531.
  15. O. O. Babomuradov, B. Otaxonova, N. S. Mamatov, and L. B. Boboev, ‘O. O. Babomuradov, B. Otaxonova, N. S. Mamatov, and L. B. Boboev, “Text documents classification in Uzbek language,” International Journal of Recent Technology and Engineering, vol. 8, no. 2S11, pp. 3787–3789, 2019.’, Int. J. Recent Technol. Eng., vol. 8, no. 2S11, pp. 3787–3789, 2019.
  16. Д. Мухамедиева, Н. Тургунова, and А. Нажмиддинов, ‘Обучения многослойных нейронных сетей на основе квантовых вычислений’, Новый Узбекистан Наука Образование И Инновации, vol. 1, no. 1, pp. 641–644, May 2024.