Analysis of Consumer Skin Type Using the Naive Bayes Algorithm for Skincare Product Recommendation Adjustment
DOI:
https://doi.org/10.59934/jaiea.v6i1.3013Keywords:
Categorical Naive Bayes; Classification; Facial Skin Type; Gradio; Medical Record; Skincare RecommendationAbstract
The rapid growth of the skincare industry in Indonesia has not been followed by consumer literacy in recognising their own facial skin type, so that product selection frequently follows social media trends and may end in irritation. This study applies the Categorical Naive Bayes algorithm to classify consumer facial skin type automatically and to convert the classification result into a personalised skincare recommendation. The data consists of 1,400 facial skin examination records containing twelve categorical attributes and one skin type label with five classes, namely oily, dry, combination, normal and sensitive. Every attribute category is encoded into a numerical code, the data is divided into 1,120 training records and 280 testing records through a stratified split, and the model is built by computing prior probabilities, likelihood values with Laplace smoothing, and posterior probabilities. The model reaches an accuracy of 95.71 per cent with an average precision of 0.9571, recall of 0.9560 and F1-score of 0.9562, while ten-fold cross validation produces a mean accuracy of 0.9571 with a standard deviation of 0.0132. The classification result is then mapped into five active ingredient packages covering facial wash, toner, serum, moisturiser and sunscreen, and all 1,400 consumers are successfully assigned to a package without exception. The model is further implemented as a web based application built with the Gradio library, in which a consumer answers twelve plain language questions about the condition of the facial skin and immediately receives the predicted skin type, the confidence of the decision and the complete set of recommended ingredients that can be downloaded as a PDF file.
The rapid growth of the skincare industry in Indonesia has not been followed by consumer literacy in recognising their own facial skin type, so that product selection frequently follows social media trends and may end in irritation. This study applies the Categorical Naive Bayes algorithm to classify consumer facial skin type automatically and to convert the classification result into a personalised skincare recommendation. The data consists of 1,400 facial skin examination records containing twelve categorical attributes and one skin type label with five classes, namely oily, dry, combination, normal and sensitive. Every attribute category is encoded into a numerical code, the data is divided into 1,120 training records and 280 testing records through a stratified split, and the model is built by computing prior probabilities, likelihood values with Laplace smoothing, and posterior probabilities. The model reaches an accuracy of 95.71 per cent with an average precision of 0.9571, recall of 0.9560 and F1-score of 0.9562, while ten-fold cross validation produces a mean accuracy of 0.9571 with a standard deviation of 0.0132. The classification result is then mapped into five active ingredient packages covering facial wash, toner, serum, moisturiser and sunscreen, and all 1,400 consumers are successfully assigned to a package without exception. The model is further implemented as a web based application built with the Gradio library, in which a consumer answers twelve plain language questions about the condition of the facial skin and immediately receives the predicted skin type, the confidence of the decision and the complete set of recommended ingredients that can be downloaded as a PDF file.
Downloads
References
K. Putri Alaska and H. Toha Hidayat, “Klasifikasi Citra Kulit Wajah Menggunakan Metode Naïve Bayes Berbasis Android,” 2023.
Furqan, Yusuf, and Fadillah, “Klasifikasi Penyakit Kulit Menggunakan Algoritma Naïve Bayes Berdasarkan Tekstur Warna Berbasis Android,” Jurnal Sains Komputer & Informatika (J-SAKTI), 2022..
I. H. Sarker, “Machine Learning: Algorithms, Real-World Applications and Research Directions,” SN Computer Science, vol. 2, no. 3, p. 160, 2021, doi: 10.1007/s42979-021-00592-x..
N. Rabbani, G. Y. E. Kim, C. J. Suarez, and J. H. Chen, “Applications of machine learning in routine laboratory medicine: Current state and future directions,” Clinical Biochemistry, vol. 103, pp. 1–7, 2022, doi: 10.1016/j.clinbiochem.2022.02.011.
J. Han, J. Pei, and H. Tong, Data Mining: Concepts and Techniques. Morgan Kaufmann, 2022.
G. Honestya, S. Defit, and G. W. Nurcahyo, “Penerapan Naive Bayes untuk Memilih Produk Berdasarkan Jenis Kulit di Toko Kosmetik,” Jurnal KomtekInfo, pp. 274–280, 2024, doi: 10.35134/komtekinfo.v11i4.559.
Martinus, Santoso, and Patimah, “Sistem Pakar Penentuan Jenis Kulit Wajah Menggunakan Metode Naïve Bayes Berbasis Web,” 2023..
H. Hasnidar and P. T. Prasetyaningrum, “Sistem Pakar Pengidentifikasian Jenis Kulit Wajah Dalam Pemilihan Msglow Series Menggunakan Naïve Bayes,” Jurnal Sains dan Teknologi (JSIT), vol. 2, no. 2, pp. 88–103, 2023, doi: 10.47233/jsit.v2i3.204..
C. S. Putri, M. A. Sembiring, and H. D. E. Sinaga, “Skin Disease Detection Expert System Using Naive Bayes Classifier Method,” JURTEKSI, vol. 9, no. 1, pp. 91–96, 2022, doi: 10.33330/jurteksi.v9i1.1877.
S. D. Kusumaningrum and I. Muhimmah, “Analisis Faktor dan Metode untuk Menentukan Tipe Kulit Wajah: Tinjauan Literatur,” Jurnal Teknologi Informasi dan Ilmu Komputer, vol. 10, no. 4, 2023, doi: 10.25126/jtiik.2023106955.
Wahyuningtyas, Tursina, and Pratiwi, “Sistem Pakar Penentuan Jenis Kulit Wajah Wanita Menggunakan Metode Naïve Bayes,” 2025.Tsinghua Sci. Technol., vol. 20, no. 5, pp. 460–473, 2015.
Sulindawaty and Hasanul, “Analisis Sistem Pakar dengan Metode Forward Chaining untuk Pengenalan Jenis Kulit Wajah pada Manusia,” 2022..
Febrianti, Hidayat, and Mulyadi, “Model Rekomendasi Produk Perawatan Kulit Wajah Menggunakan Metode Content Based Filtering (CBF),” Journal of Applied Electrical Engineering, 2024..
A Sulami and V. Atina, “Penerapan Metode Content Based Filtering dalam Sistem Rekomendasi Pemilihan Produk Skincare,” 2024.
M. I. Rahayu, M. Kasegrina Siregar, and M. Desnia, “Sistem Rekomendasi Pemilihan Produk Basic Skincare Berdasarkan Jenis Kulit Menggunakan Algoritma Simple Additive Weighting (SAW),” Jurnal Teknologi Informasi dan Komunikasi, vol. 12, no. 2, 2022..
H. Munir, B. Vogel, and A. Jacobsson, “Artificial Intelligence and Machine Learning Approaches in Digital Education: A Systematic Revision,” Information, vol. 13, no. 4, 2022, doi: 10.3390/info13040203..
R. Giuliano and E. Innocenti, “Machine Learning Techniques for Non-Terrestrial Networks,” Electronics, vol. 12, no. 3, 2023, doi: 10.3390/electronics12030652.
J. Xu et al., “Conventional machine learning and deep learning in Alzheimer's disease diagnosis using neuroimaging: A review,” 2023..
Alhassan and Fuseini, “Automated data processing and feature engineering for deep learning and big data applications: a survey,” 2023.
A. E. Zimmermann, E. E. King, and D. D. Bose, “Effectiveness and Utility of Flowcharts on Learning in a Classroom Setting: A Mixed-Methods Study,” American Journal of Pharmaceutical Education, vol. 88, no. 1, p. 100591, 2024, doi: 10.1016/j.ajpe.2023.100591.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Journal of Artificial Intelligence and Engineering Applications (JAIEA)

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








