Development of A Prototype For Detecting Sexual Harassment Speech In Instagram Comments
Abstrak
Verbal sexual harassment in the comment sections of Instagram is an increasingly alarming issue, but currently, the platform does not have an automated detection system that can identify harassing speech at the moment of publication. This research compares nine classification models, consisting of six machine learning algorithms (Logistic Regression, Support Vector Machine, Multinomial Naive Bayes, Random Forest, K-Nearest Neighbors, and XGBoost) with Term Frequency-Inverse Document Frequency (TF-IDF) representation, and three deep learning models (Convolutional Neural Network (CNN) with FastText, IndoBERT, and IndoBERT-CNN) on a dataset of 2,000 manually labeled Indonesian Instagram comments. Hyperparameter optimization was carried out by Grid Search with 10-fold cross-validation in the framework of Knowledge Discovery in Databases (KDD). Preprocessing steps included case folding, elongation normalization, emoji removal, leetspeak normalization and cleaning text. Results indicate that deep learning models outperformed machine learning models for all evaluation metrics. Both IndoBERT and IndoBERT-CNN obtained the highest accuracy and F1-score of 0.960. The best model is IndoBERT because it has a higher recall value of 0.970 and faster training time of 111.56 seconds compared to IndoBERT-CNN with 199.62 seconds. The chosen IndoBERT model was then integrated into a web prototype based on Django. Black-box testing was performed to verify that all features worked as expected, including the automatic blocking of harassing comments with a warning message for the user.
Identifier
- OpenAlex: https://openalex.org/W7171657303
- DOI: https://doi.org/10.67561/jaids.v2i2.4

