Breast Cancer Classification Using Naïve Bayes and Random Forest Algorithms

Authors

  • Riris Naomi Gurning Informatics Engineering Study Program, Faculty of Engineering, Pelita Bangsa University, Indonesia
  • Asep Arwan Sulaeman Informatics Engineering Study Program, Faculty of Engineering, Pelita Bangsa University, Indonesia
  • Dedi Afandi Informatics Engineering Study Program, Faculty of Engineering, Pelita Bangsa University, Indonesia

DOI:

https://doi.org/10.47709/cnahpc.v7i3.6609

Keywords:

Classification, Algorithm, Naïve Bayes, Random Forest, Breast Cancer, Bayes, Cancer

Abstract

Breast cancer is one of the leading causes of death among women in Indonesia. Therefore, early detection is crucial to improving the chances of successful treatment. This study was conducted to evaluate the performance differences between the Naïve Bayes and Random Forest algorithms in classifying breast cancer data. The dataset used was sourced from Kaggle, and the entire data processing and model analysis process was performed using RapidMiner software. Data was split into 80% for training and 20% for testing to ensure optimal model evaluation. Evaluation was conducted using accuracy, precision, and recall metrics. The findings of this study indicate that Random Forest is capable of producing more effective classification performance than Naïve Bayes. Random Forest achieved an accuracy of 99.27%, recall of 99.27%, and precision of 99.30%. Meanwhile, the Naïve Bayes algorithm only achieved an accuracy of 83.78% with recall and precision of 83.80% each. The superiority of Random Forest is believed to stem from its ensemble approach, which can handle data complexity and reduce the risk of overfitting, thereby providing more accurate and stable prediction results. Based on these results, Random Forest is considered more suitable for use in machine learning-based early breast cancer detection systems. This study is expected to serve as a reference for the development of medical decision support systems and to encourage the use of classification technology in the field of health.

Downloads

Download data is not yet available.

References

Asmalinda, W., Setiawati, D., Khotimah, K., Sapada, E., Kemenkes Palembang, P., Selatan, S., … Payudara Sendiri, P. (2022). Deteksi Dini Kanker Payudara Mengunakan Pemeriksaan Payudara Sendiri (Sadari) (Early Detection of Breast Cancer Using Breast Self-Examination). Jurnal Abdikemas, 4(1), 10–17. Retrieved from https://doi.org/10.36086/j.abdikemas.v4i1

Avci, C., & Budak, M. (2023). Comparison between random forest and support vector machine algorithms for LULC classification. International Journal of Engineering and Geosciences, 8(1), 1–10. https://doi.org/10.26833/ijeg.987605

Cahyana, C. W., & Nurlayli, A. (2023). Analisis Performa Logistic Regression, Naïve Bayes, dan Random Forest sebagai Algoritma Pendeteksi Kanker Payudara. INSERT: Information System and Emerging Technology Journal, 4(1), 51–64.

Chen, Haihua, & Wu, L. (2022). A comparative study of automated legal text classification using random forests and deep learning. Information Processing and Management, 59(2). https://doi.org/10.1016/j.ipm.2021.102798

Chen, Hong. (2021). Improved naive Bayes classification algorithm for traffic risk management. Eurasip Journal on Advances in Signal Processing, 2021(30), 1–12. https://doi.org/10.1186/s13634-021-00742-6

Della, Z. R. (2023). Studi Fenomenologi Pasien Kanker Payudara dalam Upaya Meningkatkan Kualitas Hidup?: Literature Review. Media Publikasi Promosi Kesehatan Indonesia (MPPKI), 6(8), 1495–1500. https://doi.org/10.56338/mppki.v6i8.3513

Hu, J., & Szymczak, S. (2023). A review on longitudinal data analysis with random forest. Briefings in Bioinformatics, 24(2), 1–11. https://doi.org/10.1093/bib/bbad002

Jackins, V. (2021). AI-based smart prediction of clinical disease using random forest classifier and Naive Bayes. Journal of Supercomputing, 77(5), 5198–5219. https://doi.org/10.1007/s11227-020-03481-x

Muntiari, N. R., & Hanif, K. H. (2022). Klasifikasi Penyakit Kanker Payudara Menggunakan Perbandingan Algoritma Machine Learning. Jurnal Ilmu Komputer Dan Teknologi, 3(1), 1–6. https://doi.org/10.35960/ikomti.v3i1.766

Perez, J. G., & Perez, E. S. (2021). Predicting Student Program Completion Using Naïve Bayes Classification Algorithm. International Journal of Modern Education and Computer Science, 13(3), 57–67. https://doi.org/10.5815/IJMECS.2021.03.05

R Wahid, T. O., & Affandi, D. (2022). Analysis of Clinical Risk Surgical Services To Support Services Quality At Arifin Achmad Riau Hospital. JMMR (Jurnal Medicoeticolegal Dan Manajemen Rumah Sakit), 11(1), LAYOUTING. https://doi.org/10.18196/jmmr.v11i1.11038

Rahmawati, A. (2024). Klasifikasi tumor payudara jinak dan ganas pada citra ultrasonografi (USG) berdasarkan karakteristik tekstur menggunakan metode random forest. Jurnal Teras Fisika, 7(1), 38. https://doi.org/10.20884/1.jtf.2024.7.1.10997

Salman, H. A., & Kalakech, A. (2024). Random Forest Algorithm Overview. Babylonian Journal of Machine Learning, 2024, 69–79. https://doi.org/10.58496/bjml/2024/007

Shidqi, Z. N. (2022). Faktor-Faktor Keterlambatan Diagnosis Kanker Pada Pasien Kanker Payudara?: Systematic Review. Jurnal Epidemiologi Kesehatan Komunitas, 7(2), 471–481. https://doi.org/10.14710/jekk.v7i2.14911

Suparna, K., & Sari, L. M. K. K. S. (2022). Kanker Payudara: Diagnostik, Faktor Risiko, Dan Stadium. Ganesha Medicine, 2(1), 42–48. https://doi.org/10.23887/gm.v2i1.47032

Vujovi?, Ž. (2021). Classification Model Evaluation Metrics. International Journal of Advanced Computer Science and Applications, 12(6), 599–606. https://doi.org/10.14569/IJACSA.2021.0120670

Wickramasinghe, I., & Kalutarage, H. (2021). Naive Bayes: applications, variations and vulnerabilities: a review of literature with code snippets for implementation. Soft Computing, 25(3), 2277–2293. https://doi.org/10.1007/s00500-020-05297-6

Widodo, E. (2023). Analisa Prediksi Hasil Produksi Popok Bayi Metode Naïve Bayes. Bulletin of Information Technology (BIT), 4(1), 75–80. https://doi.org/10.47065/bit.v4i1.504

Downloads

Published

2025-08-05

How to Cite

Gurning, R. N., Sulaeman, A. A., & Afandi, D. (2025). Breast Cancer Classification Using Naïve Bayes and Random Forest Algorithms. Journal of Computer Networks, Architecture and High Performance Computing, 7(3), 920–933. https://doi.org/10.47709/cnahpc.v7i3.6609

Similar Articles

<< < 1 2 3 4 5 6 7 8 9 10 > >> 

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