A Hybrid Framework for Sarcasm Detection Using ‎CB Technique

  • Authors

    https://doi.org/10.14419/z470zd97

    Received date: June 11, 2025

    Accepted date: July 11, 2025

    Published date: July 17, 2025

  • Convolution Neural Networks; Deep Learning; Natural Language Processing; Sarcasm Detection; Transformers
  • Abstract

    In the last two decades, people have been posting about their choices, likes, dislikes, their views, and their opinions on websites. People tend ‎to post text feedback, audio feedback, and video feedback on websites. Natural language processing techniques such as emotion detection, ‎sentiment analysis, etc., can be used to judge the sentiments of the people. Businesses can use these techniques to judge their products and ‎services and, in turn, decide the respective future actions to be taken based on the opinions. In sentiment analysis, the feedback can be judged ‎as positive, negative, or neutral. Some people express their views sarcastically. By being sarcastic, the opinion is inverted in terms of polarity. ‎Neural network techniques have been used recently for sarcasm detection. This study is focused on detecting sarcasm from text reviews ‎using the CB technique of Convolution Neural Networks (CNN) and Bi-directional Encoder Representations from Transformers (BERT). ‎This technique improves the performance compared to the individual deep learning techniques by having an F-score of 95%‎.

  • References

    1. Statista Research Department, “Internet and social media users in the world 2024. Statista,” 2024. [Online]. Available: https://www.statista.com/statistics/617136/digital-population-worldwide.
    2. P. K. M and K. Veeramani, “Harnessing Advanced Learning for Sarcasm Detection,” 2024 Third International Conference on Smart Technologies and Systems for Next Generation Computing (ICSTSN), pp. 1–5, https://doi.org/10.1109/ICSTSN61422.2024.10671235.
    3. T. Goyal, D. H. Rajeshbai, N. Gopalkrishna, M. Tushar, and H. R. Mamatha, “Mobile Machine Learning Models for Emotion and Sarcasm Detec-tion in Text: A Solution for Alexithymic Individuals,” 2024 3rd International Conference for Innovation in Technology, INOCON 2024, no. 2018, pp. 1–5, 2024, https://doi.org/10.1109/INOCON60754.2024.10511772.
    4. D. Suhartono, W. Wongso, and A. Tri Handoyo, “IdSarcasm: Benchmarking and Evaluating Language Models for Indonesian Sarcasm Detection,” IEEE Access, vol. 12, no. June, pp. 87323–87332, 2024, https://doi.org/10.1109/ACCESS.2024.3416955.
    5. R. A. Fitrianto, A. S. Editya, M. M. H. Alamin, A. L. Pramana, and A. K. Alhaq, “Classification of Indonesian Sarcasm Tweets on X Platform Us-ing Deep Learning,” Proceedings - International Conference on Informatics and Computational Sciences, pp. 388–393, 2024, https://doi.org/10.1109/ICICoS62600.2024.10636904.
    6. M. E. Hassan, M. Hussain, I. Maab, U. Habib, M. A. Khan, and A. Masood, “Detection of Sarcasm in Urdu Tweets Using Deep Learning and Transformer Based Hybrid Approaches,” IEEE Access, vol. 12, no. May, pp. 61542–61555, 2024, https://doi.org/10.1109/ACCESS.2024.3393856.
    7. Z. Wang, S. jie Hu, and W. dong Liu, “Product feature sentiment analysis based on GRU-CAP considering Chinese sarcasm recognition,” Expert Syst Appl, vol. 241, no. February 2023, p. 122512, 2024, https://doi.org/10.1016/j.eswa.2023.122512.
    8. M. Nirmala, A. H. Gandomi, M. R. Babu, L. D. D. Babu, and R. Patan, “An Emoticon-Based Novel Sarcasm Pattern Detection Strategy to Identi-fy Sarcasm in Microblogging Social Networks,” IEEE Trans Comput Soc Syst, vol. 11, no. 4, pp. 5319–5326, 2024, https://doi.org/10.1109/TCSS.2023.3306908.
    9. J. Dai, “A BERT-Based with Fuzzy logic Sentimental Classifier for Sarcasm Detection,” 2024 7th International Conference on Advanced Algo-rithms and Control Engineering, ICAACE 2024, pp. 1275–1280, 2024, https://doi.org/10.1109/ICAACE61206.2024.10548550.
    10. H. Liu, R. Wei, G. Tu, J. Lin, C. Liu, and D. Jiang, “Sarcasm driven by sentiment: A sentiment-aware hierarchical fusion network for multimodal sarcasm detection,” Information Fusion, vol. 108, no. March, p. 102353, 2024, https://doi.org/10.1016/j.inffus.2024.102353.
    11. Y. Li et al., “An attention-based, context-aware multimodal fusion method for sarcasm detection using inter-modality inconsistency,” Knowl Based Syst, vol. 287, no. November 2023, p. 111457, 2024, https://doi.org/10.1016/j.knosys.2024.111457.
    12. R. R. Waly, M. Saeed, A. Ashraf, and W. H. Gomaa, “Advancements in Arabic Tweets Sarcasm Detection & Sentiment Analysis with Fine-Tuned Models,” 2024 Intelligent Methods, Systems, and Applications (IMSA), no. Subtask 1, pp. 292–298, 2024, https://doi.org/10.1109/IMSA61967.2024.10652758.
    13. Y. Tingre, R. Pingale, N. Choudhary, A. Kale, and N. Hajare, “Sarcasm Detection of Emojis Using Machine Learning Algorithm,” Proceedings of InC4 2024 - 2024 IEEE International Conference on Contemporary Computing and Communications, vol. 1, pp. 1–4, 2024, https://doi.org/10.1109/InC460750.2024.10649041.
    14. B. Sreenivas Prasad, N. Akash Babu, T. Harithikeswar Reddy, A. Vishnu Vardhan Reddy, S. Vekkot, and P. C. Nair, “Sarcasm Detection in Newspaper Headlines,” 2024 4th International Conference on Intelligent Technologies, CONIT 2024, pp. 1–8, 2024, https://doi.org/10.1109/CONIT61985.2024.10627150.
    15. H. Thakur and J. Srivastava, “Sarcasm Detection with BiLSTM Multihead Attention,” 2024 IEEE 9th International Conference for Convergence in Technology, I2CT 2024, pp. 1–7, 2024, https://doi.org/10.1109/I2CT61223.2024.10543816.
    16. M. A. Galal, A. Hassan Yousef, H. H. Zayed, and W. Medhat, “Arabic sarcasm detection: An enhanced fine-tuned language model approach,” Ain Shams Engineering Journal, vol. 15, no. 6, p. 102736, 2024, https://doi.org/10.1016/j.asej.2024.102736.
    17. Rishabh Misra, “News Headlines Dataset Kaggle,” https://www.kaggle.com/datasets/rmisra/news-headlines-dataset-for-sarcasm-detection.
    18. Dan Ofer, “Reddit Dataset,” https://www.kaggle.com/datasets/danofer/sarcasm.
    19. Nikhil John, “Twitter Dataset,” https://www.kaggle.com/datasets/nikhiljohnk/tweets-with-sarcasm-and-irony/data.
    20. A. Alakrot, A. Dogman, and F. Ammer, “Sarcasm Detection in Libyan Arabic Dialects Using Natural Language Processing Techniques,” 2024 IEEE 4th International Maghreb Meeting of the Conference on Sciences and Techniques of Automatic Control and Computer Engineering, MI-STA 2024 - Proceeding, no. May, pp. 761–767, 2024, https://doi.org/10.1109/MI-STA61267.2024.10599695.
    21. 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, https://doi.org/10.1016/j.procs.2024.04.100.
    22. Z. L. Chia, M. Ptaszynski, M. Karpinska, J. Eronen, and F. Masui, “Initial exploration into sarcasm and irony through machine translation,” Natural Language Processing Journal, vol. 9, no. September, p. 100106, 2024, https://doi.org/10.1016/j.nlp.2024.100106.
    23. J. Thambi, S. S. H. Samudrala, S. R. Vadluri, P. C. Nair, and M. Venugopalan, “Sarcasm Detection in News Headlines Using ML and DL Models,” Proceedings - 3rd International Conference on Advances in Computing, Communication and Applied Informatics, ACCAI 2024, no. Ml, pp. 1–8, 2024, https://doi.org/10.1109/ACCAI61061.2024.10601793.
    24. V. Grover and H. Banati, “An attention approach to emoji focused sarcasm detection,” Heliyon, vol. 10, no. 17, p. e36398, 2024, https://doi.org/10.1016/j.heliyon.2024.e36398.
    25. Q. Abuein, R. M. Al-Khatib, A. Migdady, M. S. Jawarneh, and A. Al-Khateeb, “ArSa-Tweets: A novel Arabic sarcasm detection system based on deep learning model,” Heliyon, vol. 10, no. 17, p. e36892, 2024, https://doi.org/10.1016/j.heliyon.2024.e36892.
    26. Z. Karkiner and M. Sert, “Sarcasm Detection in News Headlines with Deep Learning,” 32nd IEEE Conference on Signal Processing and Commu-nications Applications, SIU 2024 - Proceedings, pp. 1–4, 2024, https://doi.org/10.1109/SIU61531.2024.10600986.
    27. B. Wu, H. Tian, X. Liu, W. Hu, C. Yang, and S. Li, “Sarcasm Detection in Chinese and English Text with Fine-Tuned Large Language Models,” Proceedings - 2024 IEEE 10th Conference on Big Data Security on Cloud, BigDataSecurity 2024, pp. 47–51, 2024, https://doi.org/10.1109/BigDataSecurity62737.2024.00016.
    28. S. Puvvada, Kusuma, M. V. Shaik, K. Galla, S. Venkatrama Phani Kumar, and K. Venkata Krishna Kishore, “A Novel Machine Learning Model for Sarcasm Detection on Facebook Comments,” Proceedings of the 3rd International Conference on Applied Artificial Intelligence and Computing, ICAAIC 2024, pp. 546–552, 2024, https://doi.org/10.1109/ICAAIC60222.2024.10575012.
    29. Q. Lu, Y. Long, X. Sun, J. Feng, and H. Zhang, “Fact-sentiment incongruity combination network for multimodal sarcasm detection,” Information Fusion, vol. 104, no. December 2023, p. 102203, 2024, https://doi.org/10.1016/j.inffus.2023.102203.
    30. Y. Diao, L. Yang, S. Li, Z. Hao, X. Fan, and H. Lin, “Detect Sarcasm and Humor Jointly by Neural Multi-Task Learning,” IEEE Access, vol. 12, pp. 38071–38080, 2024, https://doi.org/10.1109/ACCESS.2024.3370858.
    31. D. K. Sharma, B. Singh, S. Agarwal, N. Pachauri, A. A. Alhussan, and H. A. Abdallah, “Sarcasm Detection over Social Media Platforms Using Hybrid Ensemble Model with Fuzzy Logic,” Electronics (Switzerland), vol. 12, no. 4, Feb. 2023, https://doi.org/10.3390/electronics12040937.
    32. D. K. Sharma, B. Singh, and A. Garg, “An Ensemble Model for detecting Sarcasm on Social Media,” Proceedings of the 2022 9th International Conference on Computing for Sustainable Global Development, INDIACom 2022, pp. 743–748, 2022, https://doi.org/10.23919/INDIACom54597.2022.9763115.
    33. E. Savini and C. Caragea, “Intermediate-Task Transfer Learning with BERT for Sarcasm Detection,” Mathematics, vol. 10, no. 5, 2022, https://doi.org/10.3390/math10050844.
    34. G. Li, F. Lin, W. Chen, and B. Liu, “Affection Enhanced Relational Graph Attention Network for Sarcasm Detection,” Applied Sciences (Switzer-land), vol. 12, no. 7, 2022, https://doi.org/10.3390/app12073639.
    35. P. Parameswaran, A. Trotman, V. Liesaputra, and D. Eyers, “Detecting the target of sarcasm is hard: Really??,” Inf Process Manag, vol. 58, no. 4, p. 102599, 2021, https://doi.org/10.1016/j.ipm.2021.102599.
    36. P. Goel, R. Jain, A. Nayyar, S. Singhal, and M. Srivastava, “Sarcasm detection using deep learning and ensemble learning,” Multimed Tools Appl, 2022, https://doi.org/10.1007/s11042-022-12930-z.
    37. L. Zhou, X. Xu, and X. Wang, “BNS-Net: A Dual-Channel Sarcasm Detection Method Considering Behavior-Level and Sentence-Level Conflicts,” 2024 International Joint Conference on Neural Networks (IJCNN), no. C, pp. 1–9, 2024, https://doi.org/10.1109/IJCNN60899.2024.10651549.
  • Downloads

  • How to Cite

    Parkar, A., & Bhalla , R. . (2025). A Hybrid Framework for Sarcasm Detection Using ‎CB Technique. International Journal of Basic and Applied Sciences, 14(3), 116-124. https://doi.org/10.14419/z470zd97