[Paper Review] Machine Learning Suites for Online Toxicity Detection
This paper evaluates 62 machine learning classifiers across 19 algorithm families on the Jigsaw Wikipedia comment dataset to identify toxic online content. Tree-based models offer the most interpretable rules and feature importance rankings, while a simple bad word list proves the most predictive feature among 28 syntax, sentiment, emotion, and outlier dictionaries.
To identify and classify toxic online commentary, the modern tools of data science transform raw text into key features from which either thresholding or learning algorithms can make predictions for monitoring offensive conversations. We systematically evaluate 62 classifiers representing 19 major algorithmic families against features extracted from the Jigsaw dataset of Wikipedia comments. We compare the classifiers based on statistically significant differences in accuracy and relative execution time. Among these classifiers for identifying toxic comments, tree-based algorithms provide the most transparently explainable rules and rank-order the predictive contribution of each feature. Among 28 features of syntax, sentiment, emotion and outlier word dictionaries, a simple bad word list proves most predictive of offensive commentary.
Motivation & Objective
- To systematically evaluate a broad range of machine learning classifiers for detecting toxic online comments.
- To compare classifiers based on accuracy and execution time using features from the Jigsaw Wikipedia comment dataset.
- To identify which feature types—syntax, sentiment, emotion, or outlier dictionaries—most strongly predict toxicity.
- To assess the interpretability of models, particularly in terms of feature contribution and rule transparency.
- To determine whether simple lexical features outperform complex linguistic or sentiment-based features in toxicity detection.
Proposed method
- The study uses 62 classifiers from 19 algorithmic families, including logistic regression, SVM, random forests, gradient boosting, and neural networks.
- Features are extracted from the Jigsaw dataset, covering syntax, sentiment, emotion, and outlier word dictionaries, totaling 28 distinct features.
- Performance is evaluated using accuracy as the primary metric, with statistical significance testing to compare classifier performance.
- Execution time is measured to assess computational efficiency, particularly for real-time online monitoring applications.
- Tree-based models are analyzed for their ability to provide feature importance rankings and transparent decision rules.
- Ablation analysis is performed to evaluate the predictive power of individual feature types, including a simple bad word list.
Experimental results
Research questions
- RQ1Which machine learning classifier family achieves the highest accuracy in detecting toxic online comments on the Jigsaw dataset?
- RQ2How do execution times of different classifiers compare, and which are suitable for real-time online toxicity detection?
- RQ3Which feature type—syntax, sentiment, emotion, or outlier word dictionaries—contributes most to predicting toxicity?
- RQ4To what extent can tree-based models provide interpretable, rule-based explanations for toxicity predictions?
- RQ5Does a simple bad word list outperform more complex linguistic or sentiment-based features in predicting toxic comments?
Key findings
- Tree-based algorithms, such as random forests and gradient boosting, provide the most transparent and interpretable models with clear feature importance rankings.
- Among the 28 features evaluated, a simple bad word list was found to be the most predictive of toxic commentary.
- The study identifies statistically significant performance differences between classifiers, with gradient boosting models achieving high accuracy.
- Execution time varies widely across algorithms, with tree-based models offering a favorable balance of speed and performance.
- Sentiment and emotion features showed limited predictive power compared to lexical and syntactic features.
- The results suggest that high predictive performance can be achieved with simple, interpretable models and basic lexical features.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.