错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Detecting toxic comments on social media: an extensive evaluation of machine learning techniques

  • Dharil Patel,
  • Pijush Kanti Dutta Pramanik,
  • Chaitanya Suryawanshi,
  • Preksha Pareek

摘要

The prevalence of toxic comments on social networking sites poses a significant threat to the freedom of speech and the psychological well-being of online users. To address this challenge, researchers have turned to machine learning algorithms as a means of categorizing and identifying toxic contents. This study presents a comprehensive comparison of multiple machine learning techniques for predicting toxic posts on a social media platform. The Jigsaw toxic comment classification dataset was used to test the performance of nine different machine learning models. Various evaluation metrics, including accuracy, precision, recall, and F1-score, were employed to assess the models' effectiveness. Additionally, hyperparameter tuning was performed for each algorithm, and the outcomes were compared to determine the optimal technique, while examining the effects of hyperparameter variations. The results demonstrate that the naive Bayes classifier is the most accurate among the proposed models, achieving an accuracy of 97.30% and a run-time complexity of 0.06. The second-highest accuracy score of 97.31% was recorded for the XGBoost algorithm, with a run-time complexity of 41.06. The findings of this study have important implications for the development of efficient online hate speech identification systems. By leveraging the insights gained from this comparative analysis, researchers and practitioners can design more effective strategies for managing and mitigating the prevalence of toxic comments in online communities, ultimately fostering a safer and more inclusive digital environment.