Deep Learning-Based Identification of Immoral Posts on Social Media Using Fine-tuned Bert Model

Authors

  • Bibi Saqia Department of Computer Science, University of Science and Technology, Bannu, 28100, Pakistan https://orcid.org/0009-0002-4613-5771
  • Khairullah Khan Department of Computer Science, University of Science and Technology, Bannu, 28100, Pakistan
  • Atta Ur Rahman IRC for Finance and Digital Economy, KFUPM Business School, King Fahd University of Petroleum & Minerals, Dhahran 31261, Saudi Arabia https://orcid.org/0000-0003-3569-9926
  • Wahab Khan Department of Computer Science, University of Science and Technology, Bannu, 28100, Pakistan https://orcid.org/0000-0002-5694-0419

DOI:

https://doi.org/10.59461/ijdiic.v3i4.143

Keywords:

Immoral Post , Social Media , Deep Learning , Bert model, Word Embeddings

Abstract

The propagation of immoral content on social media poses substantial worries to online societal well-being and communication standards. While beneficial, traditional machine learning (ML) methods fall short of capturing the difficulty of textual and sequential data. This work reports this gap by suggesting a deep learning-based technique for detecting immoral posts on social media. The proposed model presents a fine-tuned Bidirectional Encoder representation from Transformers (BERT) with word embedding methods. Word2Vec and Global Vectors for Word Representation (GloVe) are employed to improve the identification of immoral posts on social media platforms to advance detection accuracy and strength. The incentive behind this study stems from the increasing demand for more sophisticated methods to struggle with damaging content. The proposed model is considered to capture the complicated patterns and semantic nuances in immoral posts by decreasing the dependence on manual feature engineering. The model is trained and assessed using benchmark datasets containing SARC and HatEval, which deliver a detailed set of labelled user-generated posts. The proposed model shows the best performance compared to traditional ML approaches. The fine-tuned Bert-based Word2Vec embeddings achieved a precision of 95.68%, recall of 96.85 %, and F1 scores of 96.26% on the SARC dataset. Fine-tuned Bert-based GloVe on the HatEval dataset achieved superior precision of 96.65, recall of 97.75, and F1-score of 97.20. The proposed results highlight the potential of the deep learning (DL) approach and fine-tuned BERT models, considerably refining the detection of unethical content on social networks.

Downloads

Published

16-11-2024

How to Cite

Bibi Saqia, Khairullah Khan, Atta Ur Rahman, & Wahab Khan. (2024). Deep Learning-Based Identification of Immoral Posts on Social Media Using Fine-tuned Bert Model. International Journal of Data Informatics and Intelligent Computing, 3(4), 26–39. https://doi.org/10.59461/ijdiic.v3i4.143

Issue

Section

Regular Issue