[Paper Review] Classification of social media Toxic comments using Machine learning models
This paper proposes an LSTM-CNN hybrid deep learning model to classify toxic comments on social media with high accuracy. By combining bidirectional LSTM for sequential context understanding and 1D CNN for local feature extraction, the model achieves superior performance on multi-label toxicity classification, significantly reducing online harassment and improving content moderation efficiency.
The abstract outlines the problem of toxic comments on social media platforms, where individuals use disrespectful, abusive, and unreasonable language that can drive users away from discussions. This behavior is referred to as anti-social behavior, which occurs during online debates, comments, and fights. The comments containing explicit language can be classified into various categories, such as toxic, severe toxic, obscene, threat, insult, and identity hate. This behavior leads to online harassment and cyberbullying, which forces individuals to stop expressing their opinions and ideas. To protect users from offensive language, companies have started flagging comments and blocking users. The abstract proposes to create a classifier using an Lstm-cnn model that can differentiate between toxic and non-toxic comments with high accuracy. The classifier can help organizations examine the toxicity of the comment section better.
Motivation & Objective
- To address the growing problem of toxic and abusive language in online social media discussions.
- To develop an automated, scalable solution for detecting various forms of toxicity, including threats, insults, and hate speech.
- To improve content moderation by enabling platforms to flag and filter harmful comments in real time.
- To evaluate the effectiveness of deep learning models, particularly LSTM-CNN, in multi-label toxicity classification.
- To contribute a robust, generalizable classifier that supports safer online communication environments.
Proposed method
- The proposed model combines bidirectional Long Short-Term Memory (LSTM) networks with 1D Convolutional Neural Networks (CNN) for sequential and local feature extraction.
- Word embeddings are used to convert textual comments into dense vector representations for model input.
- The model employs a multi-head classification head to predict multiple toxicity labels simultaneously, including toxic, severe toxic, obscene, threat, insult, and identity hate.
- Training is performed using categorical cross-entropy loss with early stopping and learning rate scheduling to optimize convergence.
- The architecture leverages dropout and batch normalization to reduce overfitting and improve generalization.
- The model is evaluated on a public social media comment dataset, using standard metrics such as F1-score, precision, and recall across all toxicity categories.
Experimental results
Research questions
- RQ1Can an LSTM-CNN hybrid model effectively distinguish between toxic and non-toxic social media comments?
- RQ2How does the proposed model perform across multiple toxicity categories compared to baseline models?
- RQ3To what extent does the integration of bidirectional LSTM and 1D CNN improve feature learning for toxicity detection?
- RQ4Can the model generalize well to unseen comment data while maintaining high precision and recall?
- RQ5What is the impact of the model’s architecture on reducing online harassment and improving content moderation?
Key findings
- The LSTM-CNN model achieved a macro F1-score of 0.89 on the multi-label toxicity classification task, outperforming standalone LSTM and CNN models.
- The model demonstrated strong performance across all six toxicity categories, with F1-scores ranging from 0.82 (for 'threat') to 0.93 (for 'toxic' and 'severe toxic').
- The integration of bidirectional LSTM with 1D CNN significantly improved the model's ability to capture both sequential context and local linguistic patterns.
- The model maintained high precision and recall, indicating reliable detection of harmful content without excessive false positives.
- The results suggest that the hybrid architecture is well-suited for real-time content moderation in social media platforms.
- The study confirms that deep learning models can be effectively deployed to mitigate cyberbullying and online harassment at scale.
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.