Komparasi Large Language Models Llama 3.2 3B dan Machine Learning Klasik dalam Klasifikasi Sentimen Ulasan Produk Skincare
DOI:
https://doi.org/10.62411/tc.v25i4.18433Abstract
Ulasan produk skincare berjumlah besar, dan klasifikasi sentimen otomatis terhadapnya dipersulit oleh ketidakseimbangan kelas yang kuat. Penelitian ini membandingkan tiga klasifikator berbasis TF-IDF, yaitu Support Vector Machine (SVM), Naive Bayes, dan Logistic Regression, dengan Llama 3.2 3B yang digunakan melalui prompt-based inference, untuk klasifikasi sentimen tiga kelas pada ulasan skincare berbahasa Indonesia. Dataset 10.000 ulasan diberi label dari rating (1–2 negatif, 3 netral, 4–5 positif; 75,48% positif) dan dibagi secara stratified menjadi 8.000 data latih, 1.000 data validasi, dan 1.000 data uji. Model dievaluasi dengan accuracy, rata-rata macro dan weighted dari precision, recall, dan F1-score, serta confusion matrix. SVM memperoleh accuracy tertinggi (78,60%), sedangkan Logistic Regression memperoleh Macro F1 tertinggi (58,48%). Naive Bayes mencapai accuracy 75,70% tetapi Macro F1 hanya 29,86% karena hampir semua ulasan diprediksi positif. Llama 3.2 3B mencapai accuracy 67,30% dan Macro F1 44,15%, dengan recall kelas negatif 90% tetapi recall kelas netral hanya 5%. Karena prediktor kelas mayoritas saja sudah mencapai accuracy 75,50%, accuracy saja menyesatkan pada data ini, dan kelas netral tetap menjadi kesulitan utama semua pendekatan. Kata Kunci - Analisis sentimen; ulasan skincare; TF-IDF; Llama 3.2; ketidakseimbangan kelasDownloads
Published
Issue
Section
License
Copyright (c) 2026 Frendy Brilyan Pratama, Achmad Fitro

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
License Terms
All articles published in Techno.COM Journal are licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0). This means:
1. Attribution
Readers and users are free to:
-
Share – Copy and redistribute the material in any medium or format.
-
Adapt – Remix, transform, and build upon the material.
As long as proper credit is given to the original work by citing the author(s) and the journal.
2. Non-Commercial Use
-
The material cannot be used for commercial purposes.
-
Commercial use includes selling the content, using it in commercial advertising, or integrating it into products/services for profit.
3. Rights of Authors
-
Authors retain copyright and grant Techno.COM Journal the right to publish the article.
-
Authors can distribute their work (e.g., in institutional repositories or personal websites) with proper acknowledgment of the journal.
4. No Additional Restrictions
-
The journal cannot apply legal terms or technological measures that restrict others from using the material in ways allowed by the license.
5. Disclaimer
-
The journal is not responsible for how the published content is used by third parties.
-
The opinions expressed in the articles are solely those of the authors.
For more details, visit the Creative Commons License Page:
? https://creativecommons.org/licenses/by-nc/4.0/









