Sarcasm detection in online comments using machine learning
Top Cited Papers
Open Access
- 31 July 2023
- journal article
- research article
- Published by Emerald Publishing in Information Discovery and Delivery
- Vol. 52 (2) , 213-226
Abstract
Purpose: Sarcasm is a linguistic expression that usually carries the opposite meaning of what is being said by words, thus making it difficult for machines to discover the actual meaning. It is mainly distinguished by the inflection with which it is spoken, with an undercurrent of irony, and is largely dependent on context, which makes it a difficult task for computational analysis. Moreover, sarcasm expresses negative sentiments using positive words, allowing it to easily confuse sentiment analysis models. This paper aims to demonstrate the task of sarcasm detection using the approach of machine and deep learning. Design/methodology/approach: For the purpose of sarcasm detection, machine and deep learning models were used on a data set consisting of 1.3 million social media comments, including both sarcastic and non-sarcastic comments. The data set was pre-processed using natural language processing methods, and additional features were extracted and analysed. Several machine learning models, including logistic regression, ridge regression, linear support vector and support vector machines, along with two deep learning models based on bidirectional long short-term memory and one bidirectional encoder representations from transformers (BERT)-based model, were implemented, evaluated and compared. Findings: The performance of machine and deep learning models was compared in the task of sarcasm detection, and possible ways of improvement were discussed. Deep learning models showed more promise, performance-wise, for this type of task. Specifically, a state-of-the-art model in natural language processing, namely, BERT-based model, outperformed other machine and deep learning models. Originality/value: This study compared the performance of the various machine and deep learning models in the task of sarcasm detection using the data set of 1.3 million comments from social media.Keywords
This publication has 31 references indexed in Scilit:
- Sarcasm Detection with Sentiment Semantics Enhanced Multi-level Memory NetworkNeurocomputing, 2020
- A transformer-based approach to irony and sarcasm detectionNeural Computing and Applications, 2020
- Sarcasm Analysis Using Conversation ContextComputational Linguistics, 2018
- Proposed Approach for Sarcasm Detection in TwitterIndian Journal of Science and Technology, 2017
- Lexicon Generation for Emotion Detection from TextIEEE Intelligent Systems, 2017
- A sentiment analysis of who participates, how and why, at social media sport websitesOnline Information Review, 2016
- A Pattern-Based Approach for Sarcasm Detection on TwitterIEEE Access, 2016
- POS Tagging Approaches: A ComparisonInternational Journal of Computer Applications, 2015
- An Impact Analysis of Features in a Classification Approach to Irony Detection in Product Reviews2014
- From humor recognition to irony detection: The figurative language of social mediaData & Knowledge Engineering, 2012