Pengembangan Intelligent Expert System Berbasis Machine Learning untuk Diagnosa Penyakit Jantung Menggunakan Algoritma Random Forest

Authors

  • Fendri Martadinata IKesT Muhammadiyah Palembang
  • A. Firdaus Universitas Muhammadiyah Ahmad Dahlan Palembang
  • Gusnaini Universitas Muhammadiyah Ahmad Dahlan Palembang

DOI:

https://doi.org/10.52523/jhast.v4i2.111

Keywords:

Expert System, Machine Learning, Random Forest, Disease Diagnosis

Abstract

Heart disease is one of the leading causes of death worldwide and requires prompt and accurate diagnosis to reduce the risk of severe complications. Conventional diagnostic processes that rely heavily on manual analysis often take considerable time and may lead to errors, especially when handling large and complex patient data. Therefore, an intelligent system is needed to assist in the diagnostic process in a more efficient and automated manner. This study aims to develop an intelligent expert system based on machine learning for heart disease diagnosis using the Random Forest algorithm. The dataset used in this study consists of 1,025 patient records with 13 attributes representing various health conditions. The data were divided into training and testing sets using an 80:20 ratio, resulting in 820 training data and 205 testing data. The research methodology includes data preprocessing, model training using the Random Forest algorithm, and performance evaluation using accuracy, precision, recall, and F1-score metrics. The experimental results show that the proposed model achieves an accuracy of 94.63%, with precision and recall values ranging from 0.93 to 0.96, and an F1-score of 0.95. Furthermore, the confusion matrix analysis indicates that the model correctly classified 95 negative cases and 99 positive cases, with a relatively low misclassification rate. These results demonstrate that the Random Forest algorithm has strong capability in identifying data patterns and producing stable predictions. Therefore, the developed system can be utilized as a supportive tool for early detection of heart disease in a more effective, accurate, and efficient manner

References

F. Febby, A. Arjuna, and M. Maryana, “Dukungan Keluarga Berhubungan dengan Kualitas Hidup Pasien Gagal Jantung,” J. Penelit. Perawat Prof., vol. 5, no. 2, pp. 691–702, Mar. 2023, doi: 10.37287/jppp.v5i2.1537.

Irfan Sazali Nasution, Arini Dwi Rahmadani, W. Audina, D. P. Sari, and N. D. Sari, “Systematic Review: Pengaruh Gaya Hidup dan Pengetahuan Masyarakat terhadap Risiko Penyakit Jantung Koroner,” Sehat Rakyat J. Kesehat. Masy., vol. 4, no. 2, pp. 287–298, May 2025, doi: 10.54259/sehatrakyat.v4i2.4337.

M. Ardiana, N. I. Intansari, and A. N. Fadila, “The Consequences of Hypertension and Obesity on Coronary Heart Disease,” Pharmacogn. Journal, vol. 16, no. 6, pp. 1331–1335, Jan. 2025, doi: 10.5530/pj.2024.16.214.

Cindy Muazizah and Hermina Novida, “Faktor Risiko Kematian Pada Pasien Diabetes Melitus dan Penyakit Jantung: Systematic Review,” J. Ilmu Kedokt. dan Kesehat. Indones., vol. 4, no. 2, pp. 01–13, Jul. 2024, doi: 10.55606/jikki.v4i2.3908.

Y. Muhammad, M. Tahir, M. Hayat, and K. T. Chong, “Early and accurate detection and diagnosis of heart disease using intelligent computational model,” Sci. Rep., vol. 10, no. 1, p. 19747, Nov. 2020, doi: 10.1038/s41598-020-76635-9.

Linda Marlinda, Sistem Pakar Peracangan dan Pembahasan Metode Chaining, Certainty Faktor, Fuzzy Logik, Pertama. Yogyakarta: Graha Ilmu, 2021.

A. A. Panji Bintoro, Ratnasari, Edy Wihardjo, Indah Pratiwi Putri, Pengantar Machine Learning, Pertama. Sumatara Barat: PT Mafy Media Literasi Indonesia, 2024.

S. B. Abbasi, S. U. Rehman, K. Aziz, M. A. Abid, and S. W. Lee, “Early diagnosis of cardiac disorders using machine learning-based decision support system,” Precis. Futur. Med., vol. 9, no. 2, pp. 77–91, Jun. 2025, doi: 10.23838/pfm.2025.00142.

Soumya K S and Alias Itten, “Heart Disease Prediction Using Random Forest Algorithm: A Comprehensive Analysis,” Int. J. Eng. Res. Sci. Technol., vol. 22, no. 2, pp. 119–123, Apr. 2025, doi: 10.62643/ijerst.2025.v21.i2.p119-123.

A. Handayani, S. Salsabila, A. Firdausiyah, A. Setiawan, and Y. Nia Nesicha, “Predictive Analysis Heart Disease Based on Machine Learning Using the Random Forest Algorithm,” J. Artif. Intell. Eng. Appl., vol. 4, no. 3, pp. 1980–1986, Jun. 2025, doi: 10.59934/jaiea.v4i3.1060.

D. Ayu Puspita Sari, A. Suradi, and M. Windarti, “SISTEM PAKAR DIAGNOSA KESEHATAN MENTAL PADA REMAJA DENGAN METODE FORWARD CHAINING BERBASIS WEB,” J. Comput. Sci. Technol., vol. 4, no. 2, pp. 34–39, Nov. 2024, doi: 10.54840/jcstech.v4i2.309.

D. Supiyan, “Pengembangan Sistem Pakar Untuk Diagnosa Penyakit Diabetes Melitus Menggunakan Metode Forward Chaining,” bit-Tech, vol. 7, no. 3, pp. 918–927, Apr. 2025, doi: 10.32877/bt.v7i3.2244.

R. S. Abbrar, M. Eka, and I. Rusydi, “Sistem Pakar Backward Chaining Untuk Mendiagnosa Penyakit Mata Pada Anak Akibat Bermain Game Online Berbasis Web,” War. Dharmawangsa, vol. 19, no. 1, pp. 488–501, Jan. 2025, doi: 10.46576/wdw.v19i1.5883.

L. H. E-government and P. Hariona, “Jurnal Informatika Ekonomi Bisnis Sistem Pakar dengan Metode Backward Chaining untuk Optimalisasi,” vol. 3, pp. 66–71, 2021, doi: 10.37034/infeb.v3i2.68.

M. Pal and S. Parija, “Prediction of Heart Diseases using Random Forest,” J. Phys. Conf. Ser., vol. 1817, no. 1, p. 012009, Mar. 2021, doi: 10.1088/1742-6596/1817/1/012009.

Ersa Muliani, Asmarani Ayudhia, Maulidya, Novan Alkaf Bahraini Saputra, and Nuruddin Wiranda, “Implementasi Algoritma Random Forest dengan Variasi Parameter n_estimators untuk Klasifikasi Penyakit Hati,” CESS (Journal Comput. Eng. Syst. Sci., vol. 10, no. 2, pp. 563–571, Jul. 2025, doi: 10.24114/cess.v10i2.66740.

B. Aribowo, B. Tjahjono, G. Firmansyah, and A. M. Widodo, “Prediksi Peringkat Akreditasi BAN PT Program Studi Sarjana Rumpun Ilmu Komputer Menggunakan Klasifikasi Machine Learning,” J. Al-AZHAR Indones. SERI SAINS DAN Teknol., vol. 10, no. 2, p. 122, May 2025, doi: 10.36722/sst.v10i2.3089.

Z. Jin, J. Shang, Q. Zhu, C. Ling, W. Xie, and B. Qiang, “RFRSF: Employee Turnover Prediction Based on Random Forests and Survival Analysis,” Lect. Notes Comput. Sci. (including Subser. Lect. Notes Artif. Intell. Lect. Notes Bioinformatics), vol. 12343 LNCS, pp. 503–515, 2020, doi: 10.1007/978-3-030-62008-0_35.

A. Mohanty and G. Gao, “A survey of machine learning techniques for improving Global Navigation Satellite Systems,” EURASIP J. Adv. Signal Process., vol. 2024, no. 1, pp. 1–52, 2024, doi: 10.1186/s13634-024-01167-7.

D. S. Nurrochmah, N. Rahaningsih, R. D. Dana, and C. L. Rohmat, “Penerapan Algoritma Naive Bayes dalam Analisis Sentimen Ulasan Aplikasi KitaLulus di Google Play Store,” J. Inform. Terpadu, vol. 11, no. 1, pp. 1–11, Mar. 2025, doi: 10.54914/jit.v11i1.1544.

Downloads

Published

2026-09-30

How to Cite

Fendri Martadinata, A. Firdaus, & Gusnaini. (2026). Pengembangan Intelligent Expert System Berbasis Machine Learning untuk Diagnosa Penyakit Jantung Menggunakan Algoritma Random Forest. Journal Health Applied Science and Technology, 4(2), 55–62. https://doi.org/10.52523/jhast.v4i2.111