Running summarizing tools on a new article
Check the paper below, then start its synthesis.
Toxic Language and Threat Detection in Social Media
Nafiseh Jabbari Tofighi (Istanbul Medipol University), Hessam Kaveh (Istanbul Medipol University), Kashfia Sailunaz (Dalhousie University), AbdAllah M. A. Elsheikh (University of Calgary), Ziad Elgammal (Istanbul Medipol University), Said AbuShaar (Middle East University), M. Kemal Özdemir (Istanbul Medipol University), Jon George Rokne (University of Calgary), Reda Alhajj (Istanbul Medipol University)
Abstract: Detecting toxic language and threats in social media is a critical task for ensuring safer online interactions and preventing the spread of harmful content. This paper presents a comprehensive approach to toxic language and threat detection using both traditional machine learning and state-of-the-art deep learning models. The study leverages two widely used datasets: the Jigsaw Toxic Comment Classification Dataset, which contains over 150,000 labeled comments categorized as toxic, severe toxic, obscene, threats, insults, and identity hate, and the Hate Speech Dataset, which classifies tweets into hate speech, offensive language, and neutral speech. To develop an efficient detection system, we explore a range of models including traditional classifiers such as Logistic Regression and Naïve Bayes, deep learning architectures like Long Short-Term Memory (LSTM) and Convolutional Neural Networks (CNN), and advanced transformer-based models such as BERT and RoBERTa. Each model is evaluated based on multiple performance metrics, including accuracy, precision, recall, F1-score, and AUC-ROC, to ensure a fair comparison. Our experimental results show that Logistic Regression achieves an overall accuracy of 94%, outperforming Naïve Bayes, which struggles with class imbalance, particularly in detecting minority classes like threats and hate speech. Deep learning models, including LSTM and CNN, improve performance by capturing the sequential structure of text. However, the best results are obtained with transformer-based architectures, where BERT achieves the highest accuracy of 96%, demonstrating its superior ability to capture contextual dependencies in toxic comments. Additionally, our study explores the impact of data preprocessing techniques, including text cleaning, tokenization, lemmatization, and class balancing using SMOTE (Synthetic Minority Over-sampling Technique). Our findings suggest that while classical machine learning models can provide a solid baseline, deep learning and transformers significantly enhance detection capabilities, especially in complex cases involving sarcasm, implicit threats, and nuanced hate speech.