Semantic and Contextual Modeling for Malicious Comment Detection with BERT-BiLSTM

Zhou Fang, Hanlu Zhang, Jacky He, Zhen Qi, Hongye Zheng
3/14/2025
cs.CL

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

This study aims to develop an efficient and accurate model for detecting malicious comments, addressing the increasingly severe issue of false and harmful content on social media platforms. We propose a deep learning model that combines BERT and BiLSTM. The BERT model, through pre-training, captures deep semantic features of text, while the BiLSTM network excels at processing sequential data and can further model the contextual dependencies of text. Experimental results on the Jigsaw Unintended Bias in Toxicity Classification dataset demonstrate that the BERT+BiLSTM model achieves superior performance in malicious comment detection tasks, with a precision of 0.94, recall of 0.93, and accuracy of 0.94. This surpasses other models, including standalone BERT, TextCNN, TextRNN, and traditional machine learning algorithms using TF-IDF features. These results confirm the superiority of the BERT+BiLSTM model in handling imbalanced data and capturing deep semantic features of malicious comments, providing an effective technical means for social media content moderation and online environment purification.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{fang2025semantic,
  title  = {Semantic and Contextual Modeling for Malicious Comment Detection with BERT-BiLSTM},
  author = {Zhou Fang and Hanlu Zhang and Jacky He and Zhen Qi and Hongye Zheng},
  year   = {2025},
  eprint = {2503.11084},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.11084v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.11084.svg)](https://codeofpaper.com/paper/2503.11084)

Discussion