Toxic Comment Classifier on Social Media Platform

Muhammad Savad N.*, Hasna K. H.**
*-** Nilgiri College of Arts and Science, Thaloor, Nilgiri, Tamil Nadu, India.
Periodicity:January - March'2023


The objective of the paper is to mitigate internet negativity by identifying and blocking toxic comments related to a particular topic or product. The detrimental effects of social media abuse and harassment can cause people to refrain from expressing themselves. Although some platforms disable user comments altogether, this method is not efficient. The presence of toxicity in comments can assist platforms in taking appropriate measures. The paper aims to classify comments according to their toxicity levels for future blockage. The dataset comprises comments classified into six types, toxic, severe toxic, threat, obscene, identity hate, and insult. Multiple classification techniques will be employed to determine the most accurate one for the data. The authors will employ four types of classification and select the most precise one for each dataset. This methodology enables the authors to choose various datasets for the problem and select the most accurate classifier for each dataset.


Logistic Regression, Random forest, K-Nearest Neighbors, Support Vector Machines.

How to Cite this Article?

Savad, N. M., and Hasna, K. H. (2023). Toxic Comment Classifier on Social Media Platform. i-manager’s Journal on Computer Science, 10(4), 17-22.


[1]. Agarwal, A., Xie, B., Vovsha, I., Rambow, O., & Passonneau, R. J. (2011, June). Sentiment analysis of twitter data. In Proceedings of the Workshop on Language in Social Media (LSM 2011) (pp. 30-38).
[2]. Carta, S., Corriga, A., Mulas, R., Recupero, D. R., & Saia, R. (2019, September). A supervised multi-class multi-label word embeddings approach for toxic comment classification. In 11th International Joint Conference on Knowledge Discovery, Knowledge Engineering and Knowledge Management (KDIR-2019) (pp. 105-112).
[3]. Çiğdem, A. C. I., Çürük, E., & Eşsiz, E. S. (2019). Automatic detection of cyberbullying in formspring. Me, myspace and Youtube social networks. Turkish Journal of Engineering, 3(4), 168-178.
[4]. d'Sa, A. G., Illina, I., & Fohr, D. (2019). Towards nontoxic landscapes: Automatic toxic comment detection using DNN. arXiv preprint arXiv:1911.08395.
[5]. Hosseini, H., Kannan, S., Zhang, B., & Poovendran, R. (2017). Deceiving Google's perspective API built for detecting toxic comments. arXiv preprint arXiv:1702.08138.
[6]. Li, S. (2018). Application of Recurrent Neural Networks in Toxic Comment Classification (Doctoral dissertation, UCLA).
[7]. Risch, J., Ruff, R., & Krestel, R. (2020). Explaining offensive language detection. Journal for Language Technology and Computational Linguistics, 34(1), 29-47.
[8]. Sharma, R., & Patel, M. (2018). Toxic comment classification using neural networks and machine learning. International Advanced Research Journal in Science, Engineering and Technology, 5(9), 47-52.
[9]. Srivastava, S., Khurana, P., & Tewari, V. (2018, August). Identifying aggression and toxicity in comments using capsule network. In Proceedings of the First Workshop on Trolling, Aggression and Cyberbullying (TRAC-2018) (pp. 98-105).
[10]. Van Aken, B., Risch, J., Krestel, R., & Löser, A. (2018). Challenges for toxic comment classification: An in-depth error analysis. arXiv preprint arXiv:1809.07572.
[11]. Yin, D., Xue, Z., Hong, L., Davison, B. D., Kontostathis, A., & Edwards, L. (2009). Detection of harassment on web 2.0. Proceedings of the Content Analysis in the WEB, 2, 1-7.
[12]. Zaheri, S., Leath, J., & Stroud, D. (2020). Toxic comment classification. SMU Data Science Review, 3(1), 1-16.
If you have access to this article please login to view the article or kindly login to purchase the article

Purchase Instant Access

Single Article

North Americas,UK,
Middle East,Europe
India Rest of world
Pdf 35 35 200 20
Online 35 35 200 15
Pdf & Online 35 35 400 25

Options for accessing this content:
  • If you would like institutional access to this content, please recommend the title to your librarian.
    Library Recommendation Form
  • If you already have i-manager's user account: Login above and proceed to purchase the article.
  • New Users: Please register, then proceed to purchase the article.