Sentiment Analysis of Skincare Product Reviews: A Comparison of Naïve Bayes and Support Vector Machine Algorithms

Authors

  • Refida Septiana Putri Universitas Amikom Purwokerto
  • Reykha Putri Randika Universitas Amikom Purwokerto
  • Febi Dwi Sasmita Universitas Amikom Purwokerto
  • Pungkas Subarkah Universitas Amikom Purwokerto

DOI:

https://doi.org/10.30871/jaic.v10i4.13227

Keywords:

Sentiment Analysis, Naïve Bayes, Support Vector Machine, Skincare product reviews, Class Imbalance

Abstract

The rapid growth of the skincare industry has generated a massive volume of consumer reviews on e-commerce platforms, making manual sentiment analysis increasingly impractical. This study compares the performance of Multinomial Naïve Bayes and Support Vector Machine (SVM) for sentiment classification of skincare product reviews using the Sephora Products and Skincare Reviews dataset from Kaggle, consisting of 602,130 reviews. Unlike previous studies that often employ different datasets and experimental settings, this research evaluates both algorithms using a uniform pipeline, including automatic sentiment labeling based on rating values, text preprocessing, Bag of Words feature representation, and identical evaluation procedures. Model performance was assessed using Area Under Curve (AUC), Accuracy, Precision, Recall, F1-Score, and Matthews Correlation Coefficient (MCC). The results indicate that positive sentiment dominates the dataset (82.37%), resulting in a highly imbalanced class distribution. Multinomial Naïve Bayes achieved better performance than SVM on most evaluation metrics, with an AUC of 0.784, F1-Score of 0.764, Precision of 0.749, and MCC of 0.153, whereas SVM obtained an AUC of 0.497, F1-Score of 0.743, Precision of 0.695, and MCC of 0.000. The near-zero MCC and low AUC of SVM suggest that the model struggled to distinguish minority classes under extreme class imbalance despite achieving high accuracy. These findings highlight the importance of employing multiple evaluation metrics beyond accuracy when assessing classification performance on imbalanced datasets. Furthermore, the results indicate that Multinomial Naïve Bayes provided better performance than SVM under the dataset characteristics and experimental configuration used in this study.

Downloads

Download data is not yet available.

References

[1] Jasmirzal, Rahmaddeni, Junadhi, and M. Khairul Anam, “Penerapan Metode Support Vector Machine Untuk Analisis Sentimen Terhadap Produk Skincare,” Indonesian Journal of Computer Science Attribution, vol. 13, no. 1, pp. 2024–1438, Feb. 2024.

[2] N. Widhiyanta, I. Muhandhis, R. Syadillal Jannah, and L. Alfina Wulansari, “Analisis Sentimen Ulasan Produk Moisturizer Skintific Di Tokopedia Menggunakan Support Vector Machine,” 2025.

[3] T. Astuti and Y. Astuti, “Analisis Sentimen Review Produk Skincare Dengan Naïve Bayes Classifier Berbasis Particle Swarm Optimization (PSO),” Jurnal Media Informatika Budidarma, vol. 6, no. 4, p. 1806, Oct. 2022, doi: 10.30865/mib.v6i4.4119.

[4] D. A. WP, J. D. Firizqi, and Z. A. Amalia, “Analisis Sentimen Produk Skincare Somethinc Niacinamide di Female Daily dengan Naïve Bayes Classifier,” Jurnal Media Informatika Budidarma, vol. 8, no. 2, p. 946, Apr. 2024, doi: 10.30865/mib.v8i2.7571.

[5] A. F. Setyaningsih, D. Septiyani, and S. R. Widiasari, “Implementasi Algoritma Naïve Bayes untuk Analisis Sentimen Masyarakat pada Twitter mengenai Kepopuleran Produk Skincare di Indonesia,” Jurnal Teknologi Informatika dan Komputer, vol. 9, no. 1, pp. 224–235, May 2023, doi: 10.37012/jtik.v9i1.1409.

[6] Nicholas and R. Sutomo, “Comparative Analysis of Sentiment Analysis Using the Support Vector Machine and Naive Bayes Algorithm on Cryptocurrencies,” 2021. [Online]. Available: www.jmis.site

[7] F. Rahmansyah, S. Lestari, and S. Yusuf Irianto, “Sentiment Analysis of Skincare Products Using Lexicon and Multinomial Naive Bayes on The Sociolla Website,” Architecture and High Performance Computing, vol. 7, no. 4, 2025, doi: 10.47709/cnahpc.v7i4.7151.

[8] R. F. Rahmadzani, R. W. Pratiwi, and A. N. Paradita, “Comparison of Naive Bayes and Support Vector Machine (SVM) Methods in Female Daily Skincare Sentiment Analysis,” Radiant, vol. 6, no. 2, pp. 99–108, Jun. 2025, doi: 10.52187/rdt.v6i2.316.

[9] N. Z. B. Jannah and K. Kusnawi, “Comparison of Naïve Bayes and SVM in Sentiment Analysis of Product Reviews on Marketplaces,” Sinkron : Jurnal dan Penelitian Teknik Informatika, vol. 8, no. 2, pp. 727–733, Mar. 2024, doi: 10.33395/sinkron.v8i2.13559.

[10] T. Setiawan, S. Liem, and D. M. R. Pribadi, “Perbandingan Algoritma SVM dan Naïve Bayes dalam Analisis Sentimen Komentar Tiktok pada Produk Skincare,” 2024. [Online]. Available: https://jurnal.politap.ac.id/index.php/aicoms

[11] A. Fathiarahma, A. Voutama, T. Ridwan, and N. Heryana, “Analisis Text Mining Klasifikasi Kegiatan Keluarga menggunakan Orange dengan Metode Naive Bayes,” Jurnal Teknologi Terpadu, Dec. 2022.

[12] M. Hamka, N. Alfatari, and D. Ratna Sari, “Analisis Sentimen Produk Kecantikan Jenis Serum Menggunakan Algoritma Naïve Bayes Classifier,” Jurnal Sistem Komputer dan Informatika (JSON), vol. 4, no. 1, p. 64, Sep. 2022, doi: 10.30865/json.v4i1.4740.

[13] B. Darmawan, A. Dwi Laksito, M. Resa, A. Yudianto, and A. Sidauruk, “Analisis Perbandingan Ekstraksi Fitur Teks pada Sentimen Analisis Kenaikan Harga BBM,” Krea-TIF: Jurnal Teknik Informatika, vol. 11, no. 1, pp. 53–63, 2023, doi: 10.32832/krea-tif.v11i1.13819.

[14] C. Ali, “Klasifikasi Topik Berita Politik Menggunakan Model Logistic Regression Dan Fitur Bag Of Words,” Jurnal Kecerdasan Buatan dan Teknologi Informasi, vol. 4, no. 3, pp. 282–291, Sep. 2025, doi: 10.69916/jkbti.v4i3.375.

[15] A. D. M. Putri, N. Sulistianingsih, and R. Rismayati, “Pengaruh Teknik Representasi Teks Bag-of-Words dan TF-IDF terhadap Akurasi Klasifikasi Sentimen Teks Multi-Domain,” JTIM : Jurnal Teknologi Informasi dan Multimedia, vol. 7, no. 4, pp. 675–688, Oct. 2025, doi: 10.35746/jtim.v7i4.756.

[16] V. D. Yunanda and N. Hendrastuty, “Perbandingan Kernel Polynomial dan RBF Pada Algoritma SVM Untuk Analisis Sentimen Skincare di Indonesia,” Jurnal Media Informatika Budidarma, vol. 8, no. 2, p. 726, Apr. 2024, doi: 10.30865/mib.v8i2.7425.

[17] K. M. Sujon, R. Hassan, K. Choi, and M. A. Samad, “Accuracy, precision, recall, f1-score, or MCC? empirical evidence from advanced statistics, ML, and XAI for evaluating business predictive models,” J. Big Data, vol. 12, no. 1, Dec. 2025, doi: 10.1186/s40537-025-01313-4.

[18] W. I. Salsabila and C. B. Vista, “Implementasi SMOTE dan Under Sampling pada Imbalanced Dataset untuk Prediksi Kebangkrutan Perusahaan,” 2021.[Online].Available:https://jurnal.pcr.ac.id/index.php/jkt/

Downloads

Published

2026-08-12

How to Cite

[1]
R. S. Putri, R. P. Randika, F. D. Sasmita, and P. Subarkah, “Sentiment Analysis of Skincare Product Reviews: A Comparison of Naïve Bayes and Support Vector Machine Algorithms”, JAIC, vol. 10, no. 4, pp. 3902–3910, Aug. 2026.

Similar Articles

1 2 3 4 5 > >> 

You may also start an advanced similarity search for this article.