Comparative Analysis of Naive Bayes and SVM for Improved Emotion Classification on Social Media

identifying emotions such as happy, angry, sad, and fear. However, Indonesian text processing faces challenges due to language complexity and slang. This research aims to compare Naive Bayes and SVM models, focusing on evaluating the impact of preprocessing, feature extraction, and parameter optimization to improve emotion classification. The dataset was collected from API X using crawling techniques and manually annotated by six annotators. The training process used full and half preprocessing datasets with TF-IDF, BoW, and Word2Vec feature extraction. Naive Bayes and SVM models were evaluated using accuracy, precision, recall, and F1 score. Our results show that full preprocessing improves accuracy, with TF-IDF + BoW achieving 78.01% with SVM and outperforming Naïve Bayes at 75.53%. The results classify emotions into four classes: happy, sad, angry, and fear. This study demonstrates the value of preprocessing and feature selection to deal with slang and complexity in Indonesian texts. These results provide insights for developing optimal emotion classification models and offer applications in sentiment analysis, social media monitoring, and mental health detection.

Authors

Institutions

Publication Details

Journal
EDUMATIC Jurnal Pendidikan Informatika
Published
2025-04-09
DOI
https://doi.org/10.29408/edumatic.v9i1.29087
Citations
2
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
4.96
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparative Analysis of Naive Bayes and SVM for Improved Emotion Classification on Social Media

Warih Maharani, Rio Ferdinand Putra Pratama
2 citations
EDUMATIC Jurnal Pendidikan Informatika
Sentiment Analysis and Opinion Mining
4.96
article

Comparative Analysis of Naive Bayes and SVM for Improved Emotion Classification on Social Media

Warih Maharani, Rio Ferdinand Putra Pratama
article en
2 citations

Abstract

identifying emotions such as happy, angry, sad, and fear. However, Indonesian text processing faces challenges due to language complexity and slang. This research aims to compare Naive Bayes and SVM models, focusing on evaluating the impact of preprocessing, feature extraction, and parameter optimization to improve emotion classification. The dataset was collected from API X using crawling techniques and manually annotated by six annotators. The training process used full and half preprocessing datasets with TF-IDF, BoW, and Word2Vec feature extraction. Naive Bayes and SVM models were evaluated using accuracy, precision, recall, and F1 score. Our results show that full preprocessing improves accuracy, with TF-IDF + BoW achieving 78.01% with SVM and outperforming Naïve Bayes at 75.53%. The results classify emotions into four classes: happy, sad, angry, and fear. This study demonstrates the value of preprocessing and feature selection to deal with slang and complexity in Indonesian texts. These results provide insights for developing optimal emotion classification models and offer applications in sentiment analysis, social media monitoring, and mental health detection.

EDUMATIC Jurnal Pendidikan InformatikaVol. 9(1)
Telkom University (ID)
Openalex Percentile: Top 5%
Sentiment Analysis and Opinion Mining
4.96
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Comparative Analysis of Naive Bayes and SVM for Improved Emotion Classification on Social Media — Warih Maharani, Rio Ferdinand Putra Pratama · EDUMATIC Jurnal Pendidikan Informatika (2025) | TGRS Research Map | TGRS