Sentiment Analysis of Sumenep Tourism Reviews Using SVM and TF-IDF
DOI:
https://doi.org/10.63703/sisfotekjar.v7i1.199Keywords:
sentiment analysis, tourism reviews, Google Maps, Support Vector Machine, TF-IDFAbstract
This study aims to classify the sentiment of tourist attraction reviews in Sumenep Regency using Term Frequency–Inverse Document Frequency (TF-IDF) weighting and the Support Vector Machine (SVM) algorithm, as well as to evaluate model performance under an imbalanced class distribution. Data were collected by web scraping Google Maps reviews of six tourist destinations. Of the 797 reviews collected, 725 were retained after reviews without text and those with three-star ratings were excluded. Reviews with four- and five-star ratings were labeled positive, whereas reviews with one- and two-star ratings were labeled negative. Text preprocessing included case folding, text cleaning, word normalization, stopword removal, and stemming. The processed text was represented using TF-IDF with a maximum of 3,000 unigram and bigram features. Classification was performed using an SVM with a linear kernel, a regularization parameter of C=1.0C=1.0C=1.0, and balanced class weights. The final dataset consisted of 643 positive reviews and 82 negative reviews. The model achieved an accuracy of 87.50%, a weighted F1-score of 85.61%, a macro F1-score of 59.09%, and a balanced accuracy of 57.42%. Recall for the positive class reached 96.09%, whereas recall for the negative class was only 18.75%. The model performed well in recognizing positive reviews but remained inadequate in detecting negative reviews. Class imbalance and the limited variation of negative reviews continued to affect classification performance, indicating that model evaluation should consider class-specific metrics rather than relying solely on overall accuracy.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 M. Yahya Ubaidillah, Saiful Bahri (Penulis)

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.








