Abstract
Hate speech detection is crucial in curbing online toxicity and fostering a safer digital environment. Previous research has proposed the use of hybrid CNN-RNN models for this purpose. This study aims to improve the performance of the hybrid CNN-RNN method by using a double-layer approach to address imbalanced datasets. The novelty lies in using double layers of hybrid CNN-RNN to improve hate speech detection accuracy. The research also employs oversampling techniques alongside the double-layer model. The process includes pre-processing, feature extraction, training tuning, testing, and performance evaluation. Results demonstrate that the double-layers Hybrid CNN-RNN model achieved an accuracy of 0.827, precision of 0.797, recall of 0.759, and F1 score of 0.883 with imbalanced data. Balanced data yielded an even higher accuracy of 0.908, precision of 0.943, recall of 0.894, and F1 score of 0.914. Moreover, the proposed model outperforms the hybrid CNN-RNN with imbalanced datasets, showing an accuracy of 0.752, precision of 0.797, recall of 0.559, and F1 score of 0.657. Techniques such as dropout and early stopping address overfitting in complex models and large datasets. This research advances hate speech detection methodologies by demonstrating the effectiveness of a double-layer hybrid CNN-RNN model, especially for imbalanced data. It underscores the importance of addressing imbalanced datasets for improved model accuracy. Future work could explore alternative data augmentation techniques or compare the proposed model with other architectures.
Funding Information
  • Department of Information Technology, Universitas Muhammadiyah Yogyakarta
  • Center of Electrical Engineering, Universiti Teknologi MARA

This publication has 28 references indexed in Scilit: