An Interpretable Machine Learning Approach for Bengali Toxic Comments Detection

Toxic comment detection is critical for providing a positive online environment and to detect this type of comment is very important for people’s mental health. In this research, a machine learning based pipeline was created to detect if a comment is toxic or not. For prediction purposes, two datasets were utilized.The first dataset, which is publicly available, contains a total of 16,073 comments. Out of 16,073, 8,488 comments are classified as toxic, and 7,585 comments are classified as not toxic.The second dataset, also publicly available and collected from Mendeley Data, contains 44,001 comments. Among these, 28,661 comments are classified as toxic or bully, while 15,340 comments are classified as not toxic or not bully. Preprocessing was completed, and features were extracted using TF-IDF, before training the models on the datasets. Then we evaluated the results using a confusion matrix and performance metrics like precision, f1 score, recall, accuracy. For Dataset-1, the Stochastic Gradient Descent (SGD) classifier achieved the best performance among the implemented models, with a weighted F1 score of 0.91 and an accuracy of 91.44%.For Dataset-2, the Stochastic Gradient Descent (SGD) classifier demonstrated the highest performance among the implemented models, achieving a weighted F1 score of 0.88 and an accuracy of 88.42%..To explain the model’s prediction, LIME framework was implemented. With the use of explainable artificial intelligence, the decision-making process of our models becomes more transparent. Source Code: https://github.com/ZobayerAkib/An-Interpretable-Machine-Learning-Approach-for-Bengali-Toxic-Comments-Detection-IEEE2025

Authors

Institutions

Publication Details

Published
2025-02-13
DOI
https://doi.org/10.1109/ecce64574.2025.11014029
Citations
3
Primary Topic
Imbalanced Data Classification Techniques
Type
article
Field-Weighted Citation Impact
7.44
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

An Interpretable Machine Learning Approach for Bengali Toxic Comments Detection

Md. Zobayer Ibna Kabir
3 citations
Imbalanced Data Classification Techniques
7.44
article

An Interpretable Machine Learning Approach for Bengali Toxic Comments Detection

Md. Zobayer Ibna Kabir
article en
3 citations

Abstract

Toxic comment detection is critical for providing a positive online environment and to detect this type of comment is very important for people’s mental health. In this research, a machine learning based pipeline was created to detect if a comment is toxic or not. For prediction purposes, two datasets were utilized.The first dataset, which is publicly available, contains a total of 16,073 comments. Out of 16,073, 8,488 comments are classified as toxic, and 7,585 comments are classified as not toxic.The second dataset, also publicly available and collected from Mendeley Data, contains 44,001 comments. Among these, 28,661 comments are classified as toxic or bully, while 15,340 comments are classified as not toxic or not bully. Preprocessing was completed, and features were extracted using TF-IDF, before training the models on the datasets. Then we evaluated the results using a confusion matrix and performance metrics like precision, f1 score, recall, accuracy. For Dataset-1, the Stochastic Gradient Descent (SGD) classifier achieved the best performance among the implemented models, with a weighted F1 score of 0.91 and an accuracy of 91.44%.For Dataset-2, the Stochastic Gradient Descent (SGD) classifier demonstrated the highest performance among the implemented models, achieving a weighted F1 score of 0.88 and an accuracy of 88.42%..To explain the model’s prediction, LIME framework was implemented. With the use of explainable artificial intelligence, the decision-making process of our models becomes more transparent. Source Code: https://github.com/ZobayerAkib/An-Interpretable-Machine-Learning-Approach-for-Bengali-Toxic-Comments-Detection-IEEE2025

Ahsanullah University of Science and Technology (BD)
Zero hunger
Openalex Percentile: Top 3%
Imbalanced Data Classification Techniques
7.44
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.