PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
October 8, 2025Khazanah Informatika Jurnal Ilmu Komputer dan Informatika3 citationsOpen Access

Identifying Hate Speech in Tweets with Sentiment Analysis on Indonesian Twitter Utilizing Support Vector Machine Algorithm

View Full Paper
IRImam RiadiAFAbdul FadlilMMMurni Murni

Key Points

  • Support Vector Machine accurately identifies hate speech in tweets, achieving 84% accuracy in analysis.
  • The study utilized a dataset of 5,000 tweets to categorize sentiments, enhancing model performance with specific parameters.
  • Parameter tuning via GridSearchCV improved the model’s precision to 85% and recall to 97%, significantly aiding hate speech detection.
  • The Radial Basis Function kernel outperformed others, indicating its effectiveness in machine learning applications for social media.

Abstract

Twitter had 24 million users in Indonesia at the beginning of 2023. Despite having fewer users than other platforms, its fast and instant nature makes Twitter a significant source of information dissemination. Tweets shared on Twitter offer various advantages. However, it also has negative consequences, including the dissemination of fake news, instances of cyberbullying, and the expression of hate speech. Specifically, hate speech employs offensive language to discriminate against an individual or group based on race, ethnicity, nationality, religion, gender, sexual orientation, or other personal attributes, leading to discord. Such behavior comes under the jurisdiction of various legal statutes, including the Constitution, the Criminal Code, and the ITE Law. The primary objective of this research is to categorize tweets shared on Twitter into hate speech and non-hate speech sentiments, utilizing a Support Vector Machine (SVM) algorithm based on a dataset of 5,000 tweets. This research involved data preprocessing, labeling, feature extraction using TF-IDF, model training (80%), and testing (20%). The final stage includes enhancing SVM parameters through GridSearch and cross-validation methods (GridSearchCV), followed by analysis using a Confusion Matrix with the Matplotlib Library. Radial Basis Function (RBF) kernels, defined by parameters C=10 and gamma=0.1, exhibited the highest performance among SVM models, boasting an 84% accuracy. The RBF kernel also attained 85% precision, 97% recall, and a 91% F1-score for hate speech identification. In conclusion, the evaluation of SVM kernel performance highlights the superiority of RBF kernels in achieving the highest accuracy, complemented by nuanced insights into hate speech precision, recall, and F1-score values across various kernel types.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Riadi et al. (2023) studied this question.

synapsesocial.com/papers/68e5d50830fda0630036b017https://doi.org/10.23917/khif.v9i2.22470
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1Hate Speech Detection in Tweets using Support Vector Machine2024 · 1 citations
  2. 2Machine Learning-Based Sentiment Analysis on Twitter (X): A Case Study of the “Kabur Aja Dulu” Issue Using SVM2025
  3. 3Social Media Sentiment Analysis Using Twitter Dataset2024 · 8 citations
  4. 4Analysis Sentiment Of Users Internet Service Providers In Indonesia On Social Media X Using Support Vector Machine2024
  5. 5Analysis of FastText with Support Vector Machine for Hate Speech Classification on Twitter Social Media2024