Skip to main content

Machine Learning Approach to Classify Toxic Comments on Social Media Platforms

  • Conference paper
  • First Online:
Proceedings of International Conference on Data Science and Applications

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 287))

Abstract

Social networking has become a significant component of life for all. With increasing accessibility to the Internet, there is a huge amount of hatred and toxicity globally on online platforms. People tend to post toxic comments, hiding behind anonymous identities. Therefore, it is very much required to filter out the toxicity and avoid unnecessary hate on online social media platforms, so that the actual purpose of these platforms, which is to facilitate effective conversations among communities and expressing oneself freely, can be fulfilled. The research work aims to build and train various classification models, namely SVM, logistic regression, naive Bayes, XGBoost, and bidirectional LSTM (long short-term memory), which assist in the classification of toxic comments in different subcategories. A comparative evaluation of these classification models using two datasets is done based on their accuracy. With these classification models’ help, we can prevent online harassment and abuse and create a safer Internet environment.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 189.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 249.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Alwis, V.: Intelligent E-news Summarization. In: 2018 18th International Conference on Advances in ICT for Emerging Regions (ICTer) (2018)

    Google Scholar 

  2. Chakrabarty, N.: A Machine Learning Approach to Comment Toxicity Classification. Computational Intelligence in Pattern Recognition, pp. 183–193. Springer, Singapore (2020)

    Google Scholar 

  3. https://www.kaggle.com/c/jigsaw-toxic-comment-classification-challenge/data

  4. Yu, L.C., Wang, J., Lai, K.R., Zhang, X.: Refining word embeddings for sentiment analysis. In: Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing (2017)

    Google Scholar 

  5. Pennington, J., Socher, R., Manning, C.D.: Computer Science Department, Stanford University. GloVe: Global Vectors for Word Representation

    Google Scholar 

  6. Agarwal, A., Xie, B., Vovsha, I., Rambow, O., Passonneau, R.: Sentiment Analysis of Twitter Data

    Google Scholar 

  7. Aken, V., Risch, B., Krestel, J., Alexander, L.R.: Challenges for Toxic Comment Classification: An In-Depth Error Analysis (2018)

    Google Scholar 

  8. https://www.kaggle.com/kazanova/sentiment140

  9. Rathee, N., Joshi, N., Kaur, J.: Sentiment analysis using machine learning techniques on Python. In: 2018 Second International Conference on Intelligent Computing and Control Systems (ICICCS), Madurai, India, pp. 779-785 (2018). https://doi.org/10.1109/ICCONS.2018.8663224.

  10. Chandra Satapathy, S., Raju, K.S., Shyamala, K., Krishna, D.R., Favorskaya, M.N.: Advances in Decision Sciences, Image Processing. Security and Computer Vision. Springer Science and Business Media LLC (2020)

    Google Scholar 

  11. Stamp, M., Alazab, M., Shalaginov, A.: Malware Analysis Using Artificial Intelligence and Deep Learning. Springer Science and Business Media LLC (2021)

    Google Scholar 

  12. Shakhovska, N.: Advances in Intelligent Systems and Computing (2016)

    Google Scholar 

  13. Agarwal, B., Nayak, R., Mittal, N., Patnaik, S.: Deep Learning-Based Approaches for Sentiment Analysis. Springer Science and Business Media LLC (2020)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Gupta, S., Goel, M., Rathee, N. (2022). Machine Learning Approach to Classify Toxic Comments on Social Media Platforms. In: Saraswat, M., Roy, S., Chowdhury, C., Gandomi, A.H. (eds) Proceedings of International Conference on Data Science and Applications. Lecture Notes in Networks and Systems, vol 287. Springer, Singapore. https://doi.org/10.1007/978-981-16-5348-3_34

Download citation

Publish with us

Policies and ethics