Klasifikasi Smartphone Berdasarkan Spesifikasi Menggunakan Decision Tree C4.5 dan Random Forest dengan Hyperparameter Tuning
DOI:
https://doi.org/10.69693/ijmst.v4i3.13271Keywords:
Decision Tree C4.5, GridSearchCV, Universitas Muhammadiyah Jember, Random Forest, Smartphone ClassificationAbstract
The rapid growth of smartphone products has produced substantial variation in technical specifications and price segments, making manual grouping increasingly complex. This study identifies the most informative specification using the C4.5 Decision Tree and develops a smartphone price-segment classification model using Random Forest optimized through hyperparameter tuning. The dataset contains 3,260 smartphone records and six input features: RAM capacity, internal storage, number of processor cores, battery capacity, main-camera resolution, and screen size. Prices in Indian rupees were converted into Indonesian rupiah and used only to generate three class labels: Entry-Level, Mid-Range, and Flagship; price was excluded from model inputs to prevent data leakage. The dataset was divided using a stratified 80:20 split. C4.5 analysis identified internal storage as the root node at a threshold of 192 GB with a Gain Ratio of 0.3804. The baseline Random Forest achieved 85.12% accuracy, 82.92% macro precision, 80.81% macro recall, and 81.77% macro F1-score. GridSearchCV with five-fold StratifiedKFold selected 100 trees, max_depth 20, min_samples_split 2, min_samples_leaf 1, max_features sqrt, and bootstrap=True. The tuned model maintained 85.12% accuracy while improving macro precision to 83.44%, macro recall to 81.03%, and macro F1-score to 82.15%. The tuned model was selected because it produced a better balance across classes and was subsequently implemented in a web-based classification system.
References
1. Adil Setiawan, Andri Armaginda Siregar, Setiawan, N., Jalaluddin Nasution, Naufal Dhiya Putra Dalimunthe, & Farhan Sardy Abdillah. (2026). Optimasi Performa Model SVM dan Random Forest untuk Klasifikasi Kanker Payudara melalui Penyesuaian Hyperparameter. Jurnal Komputer Teknologi Informasi Sistem Informasi (JUKTISI), 4(3), 2141–2149. https://doi.org/10.62712/juktisi.v4i3.789
2. Alvina, P., & Yamasari, Y. (2025). Model Rekomendasi Lagu Berbasis Genre Menggunakan Metode Random Forest dan Decision Tree—Journal of Informatics and Computer Science, 07.
3. Anugerah, A., Nurhidayatullah, M., Wijaya, P., Tamba, T., Suttan, M., Razhevva, H., Lubis, B. O., Informasi, S., & Sarana Informatika, B. (2025). SISTEM REKOMENDASI JURUSAN KULIAH BAGI CALON MAHASISWA BARU UNIVERSITAS BSI MARGONDA, FAKULTAS TEKNIK DAN INFORMATIKA, MENGGUNAKAN ALGORITMA C4.5. Jurnal Mahasiswa Teknik Informatika, 9(2).
4. Ayu Firnanda, P., Shofwatillah, L., Rahma, F., Fauzi, F., Studi Statistika, P., Muhammadiyah Semarang, U., Kedungmundu No, J., Tembalang, K., & Tengah, J. (2025). Analisis Perbandingan Decision Tree dan Random Forest untuk Klasifikasi Penjualan Produk di Supermarket. Emerging Statistics and Data Science Journal, 3(1).
5. Chayy Bilqisth, S., & Ikhsanuddin, R. M. (2025). ANALISIS PERBANDINGAN AKURASI KLASIFIKASI KEPUASAN SISWA TERHADAP KINERJA GURU MENGGUNAKAN ALGORITMA SVM, C4.5, DAN RANDOM FOREST. Jurnal Teknik Elektro Dan Informatika, 20, 37–44.
6. Devia, E. (2023). Penerapan Decision Tree Dengan Algoritma C4.5 Untuk Menentukan Rekomendasi Kenaikan Jabatan Karyawan. Jurnal Information System.
7. Fakhriza, F., Subekti, D., & Winar Cahyo, P. (2025). OPTIMALISASI ALGORITMA RANDOM FOREST FEATURE SELECTION DAN PENYESUAIAN PARAMETER HIPER KLASIFIKASI GENRE MUSIK. JIKA, 9(1). https://www.kaggle.com/datasets/maharshipa
8. Gunawan, H., & Catherine. (2021). C4.5, K-Nearest Neighbor, Naïve Bayes and Random Forest Algorithms Comparison to Predict Students’ On Time Graduation. Indonesian Journal of Artificial Intelligence and Data Mining (IJAIDM), 4(2), 62–71. https://doi.org/10.24014/ijaidm.v4i2.10833
9. James, G., Witten, D., Hastie, T., & Tibshirani, R. (2023). An Introduction to Statistical Learning with Applications in R, Second Edition.
10. Maisyaroh, R., Azizah, N., & Hidayat, N. (2025). Tren Penelitian Klasifikasi Sentimen Pelanggan Berbasis Machine Learning: Machine Learning-Based Customer Sentiment Classification Research Trends. Jurnal Rekayasa Lampung (JRL), 4(3), 2830–4640. https://doi.org/10.23960/jrl
11. Muchalim Danu Warta, Pramono, & Joni Maulindar. (2025). Sistem_Rekomendasi_Kuliner_Ikonik_Kota_Solo_Menggu. Jurnal Teknologi Terpadu.
12. Ningrum, J. C., Nilogiri, A., & A’yun, Q. (2025). Perbandingan Hasil Penerapan Metode Algoritma C4.5 Dan Random Forest Pada Penyakit Tuberculosis Di Puskesmas Jajag Comparison of the Results of the Application of C4.5 and Random Forest Algorithm Methods on Tuberculosis at the Jajag Health Center. Jurnal Smart Teknologi, 6(5). http://jurnal.unmuhjember.ac.id/index.php/JST
13. Nur Fauzi, N. P., Khomsah, S., & Putra Wicaksono, A. D. (2025). Penerapan Feature Engineering dan Hyperparameter Tuning untuk Meningkatkan Akurasi Model Random Forest dalam Klasifikasi Risiko Kredit. Jurnal Teknologi Informasi Dan Ilmu Komputer, 12(2), 251–262. https://doi.org/10.25126/jtiik.2025128472
14. Pahlevi, O., Rianto, H., & Author, C. (2025). Analisis Komparatif Model Data Mining Algoritma C4.5, CHAID, dan Random Forest untuk Penilaian Kelayakan Kredit. Computer Science (CO-SCIENCE), 5(1). http://jurnal.bsi.ac.id/index.php/co-science
15. Ramadhani, N., Muhyil Umam, A., Syahroni, W., Rachmatullah, S., & Zumam, W. (2025). Klasifikasi Pemilihan Siswa Dalam Rekomendasi Beasiswa Al-Azar Menggunakan Algoritma C4.5 di MA Tahfidh Annuqayah. Jurnal PROCESSOR, 20(1). https://doi.org/10.33998/processor.2025.20.1.2179
16. Reynaldi, R., Faisal, I., & Chiuloto, K. (2025). OPTIMASI HYPERPARAMETER DENGAN RANDOMSEARCHCV UNTUK MENINGKATKAN AKURASI KLASIFIKASI PNEUMONIA. Jurnal Multidisiplin Dan Sains, 1(2). https://jurnal.compartdigital.com/index.php/judis
17. Setyowati, S. L., Qalbi, A., Aristawidya, R., Sartono, B., & Firdawanti, A. R. (2025). Optimizing Random Forest Parameters with Hyperparameter Tuning for Classifying School-Age KIP Eligibility in West Java. Jambura Journal of Mathematics, 7(1), 40–48. https://doi.org/10.37905/jjom.v7i1.28736
18. Ulfa, A., Winarso MKom, D., & Arribe MMSi, E. (2020). SISTEM REKOMENDASI JURUSAN KULIAH BAGI CALON MAHASISWA BARU MENGGUNAKAN ALGORITMA C4.5 (Studi Kasus: Universitas Muhammadiyah Riau). Jurnal FASILKOM.
19. Yakuf Al Jarkhi. (2025). Klasifikasi Kisaran Harga Smartphone Berdasarkan Spesifikasi Teknis Menggunakan Algoritma Naive Bayes. Journal of Computer, Technology and Information Systems.
20. Yuni, E., & Artaningsih, T. (2022). Penerapan Metode Simple Additive Weighting (SAW) Pada Sistem Rekomendasi Pemilihan Handphone. Scientia Sacra: Jurnal Sains, 2(2). http://pijarpemikiran.com/index.php/Scientia
21. Dinda Novita Sari, H. O. (2022). Penerapan Data Mining Untuk Klasifikasi Gaya Belajar Siswa Menggunakan Algoritma C4.5 Application Of Data Mining For Student Learning Style Classification Using C4.5 Algorithm. Jurnal Smart Teknologi.. http://jurnal.unmuhjember.ac.id/index.php/JST
22. Michael Lauw C, H. H. (2023). Combination of Smote and Random Forest Methods for Lung Cancer Classification. International Journal of Engineering and Computer Science Applications (IJECSA). DOI: 10.30812/IJECSA.v2i2.3333
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Indonesian Journal of Multidisciplinary on Social and Technology

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














