Hybrid Text Mining for Hate Speech Detection in Indonesia: A Naïve Bayes-Based Approach

Authors

  • Muhammad Habib Yuhandri Universitas Putra indonesia YPTK Padang
    Indonesia
  • Halifia Hendri Universitas Putra Indonesia YPTK Padang
    Indonesia
  • Richi Andrianto Universitas Putra Indonesia YPTK Padang
    Indonesia
  • Sarjon Defit Universitas Putra indonesia YPTK Padang
    Indonesia

Keywords:

Hybrid Method, Natural Language Processing (NLP), Naïve Bayes, Hate Speech (HS), Application X

Abstract

Hate speech (HS) is defined as speech that conveys hateful meaning and intent. In contemporary times, the prevalence of hate speech has surged in the virtual realm, particularly on social media platforms. Among these platforms, Twitter, now renamed X, stands out as one of the most widely used and a significant medium for the dissemination of hate speech. Hate speech can be categorized into various levels of severity, including HS_Weak, HS_Moderate, and HS_Strong. This study utilizes a dataset comprising 13,169 tweets from the social media application X from Indonesia users in 2023 to investigate hate speech detection. The research employs a novel hybrid approach that integrates image input with five preprocessing techniques: data cleaning, case folding, tokenization, stop-words removal, and stemming. Following preprocessing, the study applies Natural Language Processing (NLP) techniques in conjunction with Naïve Bayes classification. The combination of these NLP methods proves to be highly effective for the classification of text data. The key findings of this research demonstrate that the hybrid method significantly enhances hate speech detection accuracy. The evaluation of the classification model, based on training and validation, reveals an accuracy rate of 80%, a precision value of 85%, a recall value of 75%, and an F1-score of 80%. These results indicate substantial improvement over previous research outcomes. The findings suggest that the hybrid method is robust and effective for hate speech detection on social media platforms. Future research should explore the comparison of this hybrid approach with other classification methods to further validate its efficacy and potential applications in various domains of text classification.

Downloads

Download data is not yet available.

Author Biographies

Muhammad Habib Yuhandri, Universitas Putra indonesia YPTK Padang

I am a Computer Science Lecturer

Richi Andrianto, Universitas Putra Indonesia YPTK Padang

I am a Computer Science Lecturer

Downloads

Submitted

2024-06-07

Accepted

2026-01-26

Published

2026-06-24

How to Cite

Habib Yuhandri, M., Hendri, H., Andrianto, R., & Sarjon Defit. (2026). Hybrid Text Mining for Hate Speech Detection in Indonesia: A Naïve Bayes-Based Approach. Khazanah Informatika : Jurnal Ilmu Komputer Dan Informatika, 12(1), 19–29. Retrieved from https://journals2.ums.ac.id/khif/article/view/5365

Issue

Section

Articles