Sarcasm Messages Detection using Hybrid Features Extraction Deriving from Context and Content Sentences on Social Networks
Main Article Content
Abstract
This research aims to enhance the detection of sarcastic messages in the Thai language across social networks. It involves extracting and analyzing context-based features from messages to identify and differentiate sarcastic content. The study employs deep learning and machine learning techniques to classify these messages. The experimental findings demonstrate that a combination of context-based and content-based features yields the highest accuracy in identification. Specifically, the utilization of a bidirectional Long-Short Term Memory (Bi-LSTM) with 256 nodes, ReLU as the activation function, a dropout rate of 0.2, Sigmoid as the output activation function, binary cross-entropy as the loss function, and the Adam optimizer resulted in the highest accuracy achieved by the Bi-LSTM model, reaching 96.79%.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
References
S. W. K. Chan and M. W. C. Chong, “Sentiment analysis in financial texts,” Decision Support Systems, vol. 94, pp. 53-64, Feb. 2017.
S. Tartir and I. Abdul-Nabi, “Semantic Sentiment Analysis in Arabic Social Media,” Journal of King Saud University - Computer and Information Sciences, vol. 29, pp. 229-233, Apr. 2017.
S. Gitto and P. Mancuso, “Improving airport services using sentiment analysis of the websites,” Tourism Management Perspectives, vol. 22, pp. 132-136, Apr. 2017.
G. Jasso and I. Meza, “Character and Word Baselines Systems for Irony Detection in Spanish Short Texts,” Procesamiento Del Lenguaje Natural, no. 56, pp. 41-48, Mar. 2016.
M. Bouazizi and T. Otsuki Ohtsuki, “A Pattern-Based Approach for Sarcasm Detection on Twitter,” in IEEE Access, vol. 4, pp. 5477-5488, 2016.
M. S. Razali, A. A. Halin, L. Ye, S. Doraisamy and N. M. Norowi, “Sarcasm Detection Using Deep Learning With Contextual Features,” in IEEE Access, vol. 9, pp. 68609-68618, 2021.
S. G. Wicana, T. Y. Ibisoglu and U. Yavanoglu, “A Review on Sarcasm Detection from Machine Learning Perspective,” 2017 IEEE 11th International Conference on Semantic Computing (ICSC), San Diego, CA, USA, pp. 469-476, 2017.
O. o. t. R. Society, “Thai Royal Institute Dictionary,” 18-feb-2021, 2021.
Z. Karkiner and M. Sert, “Sarcasm Detection in News Headlines with Deep Learning,” 2024 32nd Signal Processing and Communications Applications Conference (SIU), Mersin, Turkiye, pp. 1-4, 2024.
N. A. Helal, A. Hassan, N. L. Badr and Y. M. Afify, “A contextual-based approach for sarcasm detection,” Scientific Reports, vol. 14, no. 1, pp. 15415, 2024.
O. Vitman, Y. Kostiuk, G. Sidorov and A. Gelbukh, “Sarcasm detection framework using context, emotion and sentiment features,” Expert Systems with Applications, vol. 234, pp. 121068, 2023.
K. Bari, “Sarcasm Detection of Newspaper Headlines Using LSTM-RNN,” 2023 5th International Conference on Advances in Computing, Communication Control and Networking (ICAC3N), Greater Noida, India, pp. 604-608, 2023.
P. Kumar and G. Sarin, “WELMSD – word embedding and language model based sarcasm detection,” Online Information Review, vol. 46, no. 7, pp. 1242-1256, 2022.
F. Kunneman, C. Liebrecht, M. van Mulken and A. van den Bosch, “Signaling sarcasm: From hyperbole to hashtag,” Information Processing & Sarcasm Messages Detection using Hybrid Features Extraction Deriving from Context and Content Sentences on Social Networks 257 Management, vol. 51, no. 4, pp. 500-509, Jul. 2015.
P. Vateekul and T. Koomsubha, “A study of sentiment analysis using deep learning techniques on Thai Twitter data,” 2016 13th International Joint Conference on Computer Science and Software Engineering (JCSSE), Khon Kaen, Thailand, pp. 1-6, 2016.
M. Bouazizi, and T. O. Ohtsuki, “A Pattern-Based Approach for Sarcasm Detection on Twitter,” in IEEE Access, vol. 4, pp. 5477-5488, 2016.
A. Rajadesingan, R. Zafarani and H. Liu, “Sarcasm Detection on Twitter: A Behavioral Modeling Approach,” WSDM ’15: Proceedings of the Eighth ACM International Conference on Web Search and Data Mining, pp. 97–106, 2015.
S. Hiai and K. Shimada, “A Sarcasm Extraction Method Based on Patterns of Evaluation Expressions,” 2016 5th IIAI International Congress on Advanced Applied Informatics (IIAI-AAI), Kumamoto, Japan, pp. 31-36, 2016.
J. Karoui, F. B. Zitoune and V. Moriceau, “SOUKHRIA: Towards an Irony Detection System for Arabic in Social Media,” Procedia Computer Science, vol. 117, no. Supplement C, pp. 161-168, Jan. 2017.
N. Boudad, R. Faizi, R. Oulad Haj Thami and R. Chiheb, “Sentiment analysis in Arabic: A review of the literature,” Ain Shams Engineering Journal, vol. 9, no. 4, pp. 2479-2490, 2018.
A. N. Reganti, T. Maheshwari, U. Kumar, A. Das and R. Bajpai, “Modeling Satire in English Text for Automatic Detection,” 2016 IEEE 16th International Conference on Data Mining Workshops (ICDMW), Barcelona, Spain, pp. 970-977, 2016.
M. Mladenovi´c, C. Krstev, J. Mitrovi´c and R. Stankovi´c, “Using Lexical Resources for Irony and Sarcasm Classification,” BCI ’17: Proceedings of the 8th Balkan Conference in Informatics, no. 13, pp. 1-8, 2017.
M. P. L, “OSKut (Out-of-domain StacKed cut for Word Segmentation),” 2022.
P. Limkonchotiwat, W. Phatthiyaphaibun, R. Sarwar, E. Chuangsuwanich and S. Nutanong, “Handling Cross- and Out-of-Domain Samples in Thai Word Segmentation,” Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, pp. 1003–1016, 2021.
R. Ahuja and S. C. Sharma, “Transformer-Based Word Embedding With CNN Model to Detect Sarcasm and Irony,” Arabian Journal for Science and Engineering, vol. 47, pp. 9379-9392, 2022.
K. Pasupa and T. Seneewong Na Ayutthaya, “Thai sentiment analysis with deep learning techniques: A comparative study based on word embedding, POS-tag, and sentic features,” Sustainable Cities and Society, vol. 50, p. 101615, 2019.