journal article·2023-04-30Open access

Deep Learning for Sarcasm Identification in News Headlines

Rasikh Ali, Tayyaba Farhat, Sanya Abdullah, Sheeraz Akram, Mousa Alhajlah, Awais Mahmood, Muhammad Amjad Iqbal

Applied Sciences· Volume 13· Issue 9

Abstract

Sarcasm is a mode of expression whereby individuals communicate their positive or negative sentiments through words contrary to their intent. This communication style is prevalent in news headlines and social media platforms, making it increasingly challenging for individuals to detect sarcasm accurately. To mitigate this challenge, developing an intelligent system that can detect sarcasm in headlines and news is imperative. This research paper proposes a deep learning architecture-based model for sarcasm identification in news headlines. The proposed model has three main objectives: (1) to comprehend the original meaning of the text or headlines, (2) to learn the nature of sarcasm, and (3) to detect sarcasm in the text or headlines. Previous studies on sarcasm detection have utilized datasets of tweets and employed hashtags to differentiate between ordinary and sarcastic tweets depending on the limited dataset. However, these datasets were prone to noise regarding language and tags. In contrast, using multiple datasets in this study provides a comprehensive understanding of sarcasm detection in online communication. By incorporating different types of sarcasm from the Sarcasm Corpus V2 from Baskin Engineering and sarcastic news headlines from The Onion and HuffPost, the study aims to develop a model that can generalize well across different contexts. The proposed model uses LSTM to capture temporal dependencies, while the proposed model utilizes a GlobalMaxPool1D layer for better feature extraction. The model was evaluated on training and test data with an accuracy score of 0.999 and 0.925, respectively.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Sentiment Analysis and Opinion Mining · Advanced Text Analysis Techniques · Text and Document Classification Technologies

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Faculty of Computer Science and Information Technology, The Superior University, Lahore 54600, Pakistan

Intelligent Data Visual Computing Research (IDVCR), Lahore 54600, Pakistan

Information Systems Department, College of Computer and Information Sciences, Imam Mohammad Ibn Saud Islamic University (IMSIU), Riyadh 12571, Saudi Arabia

Computer Science and Information Systems Department, Applied Computer Science College, King Saud University, Riyadh 12571, Saudi Arabia

Faculty of Information Technology, University of Central Punjab, Lahore 54100, Pakistan

Funding

King Saud University

References (32)

Show source-provided references
1. Dave, A.D., and Desai, N.P. (2016, January 3–5). A comprehensive study of classification techniques for sarcasm detection on textual data. Proceedings of the 2016 International Conference on Electrical, Electronics, and Optimization Techniques (ICEEOT), Chennai, India.10.1109/ICEEOT.2016.7755036 ↗
2. The sound of sarcasm10.1016/j.specom.2007.11.003 ↗
3. Riloff, E., Qadir, A., Surve, P., De Silva, L., Gilbert, N., and Huang, R. (2013, January 18–21). Sarcasm as contrast between a positive sentiment and negative situation. Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, Seattle, DC, USA.
4. Mandal, P.K., and Mahto, R. (2019, January 1–3). Deep CNN-LSTM with word embeddings for news headline sarcasm detection. Proceedings of the 16th International Conference on Information Technology-New Generations (ITNG 2019), Las Vegas, NV, USA.10.1007/978-3-030-14070-0_69 ↗
5. Sarcasm Detection Using Deep Learning With Contextual Features10.1109/ACCESS.2021.3076789 ↗
6. Porwal, S., Ostwal, G., Phadtare, A., Pandey, M., and Marathe, M.V. (2018, January 14–15). Sarcasm detection using recurrent neural network. Proceedings of the 2018 Second International Conference on Intelligent Computing and Control Systems (ICICCS), Madurai, India.10.1109/ICCONS.2018.8663147 ↗
7. Davidov, D., Tsur, O., and Rappoport, A. (2010, January 15–16). Semi-supervised recognition of sarcasm in Twitter and Amazon. Proceedings of the Fourteenth Conference on Computational Natural Language Learning, Uppsala, Sweden.
8. Bamman, D., and Smith, N. (2021, January 8–10). Contextualized sarcasm detection on twitter. Proceedings of the International AAAI Conference on Web and Social Media, Online.10.1609/icwsm.v9i1.14655 ↗
9. Poria, S., Cambria, E., Hazarika, D., and Vij, P. (2016). A deeper look into sarcastic tweets using deep convolutional neural networks. arXiv.
10. Ilić, S., Marrese-Taylor, E., Balazs, J.A., and Matsuo, Y. (2018). Deep contextualized word representations for detecting sarcasm and irony. arXiv.10.18653/v1/W18-6202 ↗
11. Ptáček, T., Habernal, I., and Hong, J. (2014, January 23–29). Sarcasm detection on czech and english twitter. Proceedings of the COLING 2014, the 25th International Conference on Computational Linguistics: Technical Papers, Dublin, Ireland.
12. Tsur, O., Davidov, D., and Rappoport, A. (2010, January 23–26). ICWSM—A great catchy name: Semi-supervised recognition of sarcastic sentences in online product reviews. Proceedings of the Fourth International AAAI Conference on Weblogs and Social Media, Washington, DC, USA.10.1609/icwsm.v4i1.14018 ↗
13. Pawar, N., and Bhingarkar, S. (2020, January 10–12). Machine learning based sarcasm detection on Twitter data. Proceedings of the 2020 5th International Conference on Communication and Electronics Systems (ICCES), Coimbatore, India.10.1109/ICCES48766.2020.9137924 ↗
14. A pattern-based approach for sarcasm detection on twitter10.1109/ACCESS.2016.2594194 ↗
15. Tay, Y., Tuan, L.A., Hui, S.C., and Su, J. (2018). Reasoning with sarcasm by reading in-between. arXiv.10.18653/v1/P18-1093 ↗
16. Joshi, A., Bhattacharyya, P., and Carman, M.J. (2018). Investigations in Computational Sarcasm, Springer.10.1007/978-981-10-8396-9 ↗
17. Sriram, B., Fuhry, D., Demir, E., Ferhatosmanoglu, H., and Demirbas, M. (2010, January 18–23). Short text classification in twitter to improve information filtering. Proceedings of the 33rd International ACM SIGIR Conference on Research and Development in Information Retrieval, Geneva, Switzerland.10.1145/1835449.1835643 ↗
18. Burfoot, C., and Baldwin, T. (2009, January 4). Automatic satire detection: Are you having a laugh?. Proceedings of the ACL-IJCNLP 2009 Conference Short Papers, Suntec, Singapore.10.3115/1667583.1667633 ↗
19. Are there necessary conditions for inducing a sense of sarcastic irony?10.1080/0163853X.2012.687863 ↗
20. Rajadesingan, A., Zafarani, R., and Liu, H. (2015, January 2–6). Sarcasm detection on twitter: A behavioral modeling approach. Proceedings of the Eighth ACM International Conference on Web Search and Data Mining, Shanghai China.10.1145/2684822.2685316 ↗
21. Shrikhande, P., Setty, V., and Sahani, A. (2020, January 26–28). Sarcasm detection in newspaper headlines. Proceedings of the 2020 IEEE 15th International Conference on Industrial and Information Systems (ICIIS), Rupnagar, India.10.1109/ICIIS51140.2020.9342742 ↗
22. Misra, R., and Arora, P. (2019). Sarcasm detection using hybrid neural network. arXiv.
23. Kumar, A., Sangwan, S.R., Singh, A.K., and Wadhwa, G. (2022). Hybrid deep learning model for sarcasm detection in Indian indigenous language using word-emoji embeddings. Trans. Asian Low-Resour. Lang. Inf. Process.10.1145/3519299 ↗
24. A machine learning approach in analysing the effect of hyperboles using negative sentiment tweets for sarcasm detection
25. An intelligent machine learning-based sarcasm detection and classification model on social networks10.1007/s11227-022-04312-x ↗
26. Nayak, D.K., and Bolla, B.K. (2022). Machine Learning and Autonomous Systems, Proceedings of ICMLAS 2021, Tamil Nadu, India, 24–25 September 2021, Springer.
27. Guibon, G., Ermakova, L., Seffih, H., Firsov, A., and Noe-Bienvenu, G.L. (2019, January 7–13). Multilingual fake news detection with satire. Proceedings of the Computational Linguistics and Intelligent Text Processing: 20th International Conference, CICLing 2019, La Rochelle, France. Revised Selected Papers, Part II.
28. Sentiment Analysis and Sarcasm Detection using Deep Multi-Task Learning10.1007/s11277-023-10235-4 ↗
29. A systematic review of machine learning techniques for stance detection and its applications10.1007/s00521-023-08285-7 ↗
30. Sarcasm detection using deep learning and ensemble learning10.1007/s11042-022-12930-z ↗
31. Misra, R. (2019). News Headlines Dataset For Sarcasm Detection, Kaggle. Available online: https://www.kaggle.com/datasets/rmisra/news-headlines-dataset-for-sarcasm-detection.
32. Oraby, S., Harrison, V., Reed, L., Hernandez, E., Riloff, E., and Walker, M. (2017). Creating and characterizing a diverse corpus of sarcasm in dialogue. arXiv.10.18653/v1/W16-3604 ↗