Sentiment Analysis of Skincare Product Reviews: A Comparison of Naïve Bayes and Support Vector Machine Algorithms
DOI:
https://doi.org/10.30871/jaic.v10i4.13227Keywords:
Sentiment Analysis, Naïve Bayes, Support Vector Machine, Skincare product reviews, Class ImbalanceAbstract
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
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
How to Cite
Issue
Section
License
Copyright (c) 2026 Refida Septiana Putri, Reykha Putri Randika, Febi Dwi Sasmita, Pungkas Subarkah

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) ) that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).



