IJMECS Vol. 17, No. 2, 8 Apr. 2025
Cover page and Table of Contents: PDF (size: 805KB)
PDF (805KB), PP.123-134
Views: 0 Downloads: 0
Toxic, TextBlob, Sentiment Analysis, Convolutional Neural Network, Machine Learning
The toxic comment detection over the internet through social networking posts found hatred comments and apply certain limitations to stop the negative impact of that information in our society. In order to perform sentiment analysis, NLP text classification approach is very effective. In this paper, we design a specific algorithm using Convolution Neural Network (CNN) approach and perform TextBlob sentiment analysis to evaluate the polarity and subjectivity analysis of posted tweets or comments. This paper can also filter the tweets collected over different locations formed Twitter dataset and then model is evaluated in terms of accuracy, precision, recall and f1-score as calculated results of 0.984, 0.887, 0.905 and 0.895 respectively for the analysis of toxic/non-toxic comment identification. Hence, our algorithm utilized NLTK and TextBlob libraries and suggests that the analyzed post can be recommended to the others or not.
Varun Mishra, Tejaswita Garg, "Toxicity Detection Using TextBlob Sentiment Analysis for Location-Centered Tweets", International Journal of Modern Education and Computer Science(IJMECS), Vol.17, No.2, pp. 123-134, 2025. DOI:10.5815/ijmecs.2025.02.06
[1]Chakrabarty N., 2020. A Machine Learning Approach to Comment Toxicity Classification. In: Das A., Nayak J., Naik B., Pati S., Pelusi D. (eds) Computational Intelligence in Pattern Recognition. Advances in Intelligent Systems and Computing, Springer, Singapore, 183-193. https://doi.org/10.1007/978-981-13-9042-5_16.
[2]Tóth, Z., Mrad, M., Itani, O.S., Luo, J. and Liu, M.J., 2022. B2B eWOM on Alibaba: Signaling through online reviews in platform-based social exchange. Industrial Marketing Management, 104, pp.226-240.
[3]Mourad, A., Srour, A., Harmanani, H., Jenainati, C. and Arafeh, M., 2020. Critical impact of social networks infodemic on defeating coronavirus COVID-19 pandemic: Twitter-based study and research directions. IEEE Transactions on Network and Service Management, 17(4), pp.2145-2155.
[4]Abbasi, A., Javed, A.R., Iqbal, F., Kryvinska, N. and Jalil, Z., 2022. Deep learning for religious and continent-based toxic content detection and classification. Scientific Reports, 12(1), p.17478
[5]Machova, K.; Mach, M.; Vasilko, M. Comparison of Machine Learning and Sentiment Analysis in Detection of Suspicious Online Reviewers on Different Type of Data. Sensors 2022, 22, 155. https://doi.org/10.3390/s22010155.
[6]Bhatt, U.; Iyyani, D.; Jani, K.; Mali, S. Troll-Detection Systems Limitations of Troll Detective Systems and AI/ML Anti-trolling Solution. In Proceedings of the 3rd International Conference for Convergence in Technology (I2CT), Pune, India, 6–8 April 2018; pp. 1–6.
[7]Nobata, C., Tetreault, J., Thomas, A., Mehdad, Y., Chang, Y., 2016. Abusive language detection in online user content, in: Proceedings of the 25th international conference on world wide web, pp. 145–153. . International World Wide Web Conferences Steering Committee.
[8]M. Ibrahim, M. Torki, N. El-Makky, Imbalanced toxic comments classification using data augmentation and deep learning, in: 2018 17th IEEE International Conference on Machine Learning and Applications (ICMLA), 2018, IEEE, pp. 875–878.
[9]M. Anand, R. Eswari, Classification of abusive comments in social media using deep learning. in: 2019 3rd International Conference on Computing Methodologies and Communication (ICCMC), 2019, IEEE, pp. 974–977.
[10]S. V. Georgakopoulos, S. K. Tasoulis, A. G. Vrahatis, and V. P. Plagianakos, “Convolutional neural networks for toxic comment classification,” Proceedings of the 10th Hellenic Conference on Artificial Intelligence, 2018. [Online]. Available: https://doi.org/10.1145/3200947.3208069]
[11]Mohammad, Fahim. 2018. Is preprocessing of text really worth your time for online comment classification? arXiv:1806.02908.
[12]Van Aken, Betty , Julian Risch, Ralf Krestel, and Alexander L.öser. 2018. Challenges for toxic comment classification: An in-depth error analysis. arXiv:1809.07572.
[13]H.H. Saeed, K. Shahzad, F. Kamiran, Overlapping toxic sentiment classification using deep neural architectures, in: 2018 IEEE International Conference on Data Mining Workshops (ICDMW), 2018, IEEE, pp. 1361–1366.
[14]Li, Siyuan. 2018. Application of recurrent neural networks in toxic comment classification. Ph.D. thesis, UCLA.
[15]Saif, Mujahed A., Alexander N. Medvedev, Maxim A. Medvedev, and Todorka Atanasova. 2018. Classification of online toxic comments using the logistic regression and neural networks models. In AIP conference proceedings, vol. 2048, 060011. AIP Publishing LLC.
[16]Ravi, Pallam, Greeshma S Hari Narayana Batta, and Shaik Yaseen. 2019. Toxic comment classification. International Journal of Trend in Scientific Research andDevelopment (IJTSRD).
[17]Agrawal, Sweta, and Amit Awekar. 2018. Deep learning for detecting cyberbullying across multiple social media platforms. In European conference on information retrieval, 141–153. Springer, arXiv:1809.07572.
[18]Ptaszynski,Michal, Juuso Kalevi Kristian Eronen, and FumitoMasui. 2017. Learning deep on cyberbullying is always better than brute force. In LaCATODA@ IJCAI, 3–10.
[19]Ray Oshikawa, J. Q. (2020). A Survey on Natural Language Processing for Fake News Detection. arXiv:1811.00770v2 [cs.CL], 8.
[20]Marina Danchovsky Ibrishimova, K. F. (2020). A Machine Learning Approach to Fake News Detection Using NLP. researchgate.
[21]Joni Salminen, M. H. g. (2020). Developing an online hate classifier for multiple social media platforms. Huma centric computing and information sciences.
[22]Jahan, M.S. and Oussalah, M., 2021. A systematic review of hate speech automatic detection using natural language processing. arXiv preprint arXiv:2106.00742.
[23]Wang, K., Yang, J. and Wu, H., 2021. A survey of toxic comment classification methods. arXiv preprint arXiv:2112.06412.
[24]Andrew Gibiansky, 2014. Convolutional Neural Networks. https://andrew.gibiansky.com/blog/machine-learning/convolutional-neural-networks/
[25]Palavar, Y. E., Çelіk, Z., Albayrak, A., Özçelіk, E., & Erdіl, M. (2022). Analysis of the Covid-19 Process in Terms of Health Managers. In 2022 2nd International Conference on Computing and Machine Intelligence (ICMI) (pp. 1-5). IEEE.