Research Article

A BERT-based with fuzzy logic sentimental classifier for sarcasm detection

Tianyou Wang*
Faculty of Science and Technology, BNU-HKBU United International College, Zhuhai, China

* Corresponding author: [email protected]

Abstract

This study explores the challenging task of sarcasm detection in text, a crucial aspect of sentiment analysis in Natural Language Processing (NLP). Sarcasm, characterized by irony and nuanced language, often complicates the interpretation of emotional tone in text. To address this, the study employs a hybrid model that integrates BERT (Bidirectional Encoder Representations from Transformers) with fuzzy logic. BERT's deep semantic understanding is combined with the sequential processing of LSTM and the flexible decision-making capabilities of fuzzy logic. The model's performance is validated using multiple datasets, demonstrating a significant improvement in accuracy, particularly in detecting subtle and context-dependent sarcasm. This research contributes to the advancement of sentiment analysis, offering a robust framework for handling complex linguistic expressions in various NLP applications.

Keywords: Sarcasm Detection; Transformer; BERT; Fuzzy Logic; Sentiment Analysis
Published: September 20, 2024
DOI: 10.54254/2755-2721/88/20241727
Volume: ACE Vol.88
pp. 196-201
Download PDF

References

  1. Sharma, D. K., Singh, B., Agarwal, S., Pachauri, N., Alhussan, A. A., & Abdallah, H. A. (2023). Sarcasm Detection over Social Media Platforms Using Hybrid Ensemble Model with Fuzzy Logic. Electronics, 12(4), 937. https://doi.org/10.3390/electronics12040937
  2. Zadeh, L. A. (1988). Fuzzy logic. Computer, 21(4), 83-93. https://10.1109/2.53
  3. Devlin, J., Chang, M., Lee, K., & Toutanova, K. (2018). BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. arXiv preprint arXiv:1810.04805. https://arxiv.org/abs/1810.04805
  4. Cai, R., Qin, B., Chen, Y., Zhang, L., Yang, R., Chen, S., & Wang, W. (2020). Sentiment Analysis About Investors and Consumers in Energy Market Based on BERT-BiLSTM. IEEE Access, 8, 171408-171415. https://doi.org/10.1109/ACCESS.2020.3024750
  5. Ansari, G., Shukla, S., Gupta, M., & Gupta, H. (2022). A Fuzzy Approach for Opinion Summarization of Product Reviews. In 2022 Fourth International Conference on Cognitive Computing and Information Processing (CCIP), 1-6.
  6. Shereen Oraby, Vrindavan Harrison, Lena Reed, Ernesto Hernandez, Ellen Riloff, and Marilyn Walker. (2016). Creating and Characterizing a Diverse Corpus of Sarcasm in Dialogue. In The 17th Annual SIGdial Meeting on Discourse and Dialogue (SIGDIAL), Los Angeles, California, USA.
  7. Khodak, M., Saunshi, N., & Vodrahalli, K. (2017). A Large Self-Annotated Corpus for Sarcasm. arXiv preprint arXiv:1704.05579. https://arxiv.org/abs/1704.05579
  8. Misra, R., & Arora, P. (2019). Sarcasm Detection using Hybrid Neural Network. arXiv preprint arXiv:1908.07414. https://arxiv.org/abs/1908.07414
  9. Potamias, R. A., Siolas, G., & Stafylopatis, A. (2020). A transformer-based approach to irony and sarcasm detection. Neural Computing & Applications, 32(12), 17309–17320. https://doi.org/10.1007/s00521-020-05102-3