PREDICTION OF HYPERTENSION COMORBIDITIES USING THE RANDOM FOREST ALGORITHM (CASE STUDY AT PUSKESMAS KASIHAN 2)

Authors

DOI:

https://doi.org/10.69916/jkbti.v5i2.493

Keywords:

hypertension, comorbidity, random forest, multi-label classification, CRISP-DM

Abstract

Hypertension is a chronic non-communicable disease often accompanied by comorbidities, which can increase complication risks and reduce patients' quality of life. Currently, the identification of comorbidities in hypertension patients is frequently conducted manually, making it time-consuming and highly dependent on healthcare workers' thoroughness. This study aims to develop a predictive model for hypertension comorbidities using a machine learning-based Random Forest algorithm, designed as an early screening tool for the general population. The research method follows the Cross-Industry Standard Process for Data Mining (CRISP-DM) framework, encompassing business understanding, data understanding, data preparation, modeling, evaluation, and deployment. Clinical data were collected from medical records, focusing on predicting eight primary comorbidities using a multi-label classification approach. Data preprocessing involved data cleaning, transformation, splitting into training and testing sets, and handling class imbalances. The Random Forest model was trained and evaluated using subset accuracy and hamming loss metrics. The results demonstrate that the Random Forest algorithm successfully predicts hypertension comorbidities with a subset accuracy of 0.3361 and a hamming loss of 0.1502, indicating robust performance for multi-label prediction. The model was successfully deployed into a Streamlit-based web application, enabling healthcare professionals to obtain direct prediction results. This system is expected to assist in the early screening and monitoring of hypertension patients.

Downloads

Download data is not yet available.

References

Kementerian Kesehatan Republik Indonesia, “Keputusan Menteri Kesehatan Republik Indonesia Nomor HK.01.07/MENKES/4634/2021 tentang Pedoman Nasional Pelayanan Kedokteran Tata Laksana Hipertensi Dewasa,” Keputusan Menteri Kesehatan Republik Indonesia, no. HK.01.07/MENKES/4634/2021, pp. 1–85, May 2021.

C. A. Dewati, A. R. Natavany, Z. M. Putri, A. Nurfaizi, S. O. Rumbrawer, and D. S. Sri Rejeki, “Literature Review: Faktor Risiko Hipertensi di Indonesia,” Jurnal Kesehatan Masyarakat, vol. 11, no. 3, pp. 290–307, May 2023, doi: 10.14710/jkm.v11i3.34514.

World Health Organization, “Hypertension.”

Dinas Kesehatan Daerah Istimewa Yogyakarta, “Profil Kesehatan Daerah Istimewa Yogyakarta Tahun 2023,” p. 223, Jun. 2024.

Dinas Kesehatan Daerah Istimewa Yogyakarta, “Laporan Kinerja Instansi Pemerintah,” Yogyakarta, Feb. 2025.

“Website Dinas Kesehatan Kota Yogyakarta.” Accessed: Jan. 14, 2026. [Online]. Available: https://kesehatan.jogjakota.go.id/berita/id/619?

S. A. Marendengi and S. A. Palloge, “Gambaran Pasien Hipertensi dengan Penyakit Komorbid di Puskesmas Layang Makassar pada Bulan Juli 2024,” Jun. 2025. Accessed: Mar. 05, 2026. [Online]. Available: http://citracendekiacelebes.org/index.php/INAJOH

M. M. Alsaleh et al., “Prediction of disease comorbidity using explainable artificial intelligence and machine learning techniques: A systematic review,” Jul. 01, 2023, Elsevier Ireland Ltd. doi: 10.1016/j.ijmedinf.2023.105088.

T. Suprapti and S. Anwar, “Perbandingan Akurasi Algoritma Random Forest Dan Naïve Bayes Dalam Memprediksi Risiko Hipertensi,” BULLET : Jurnal Multidisiplin Ilmu, no. 02, pp. 568–573, Apr. 2023, Accessed: Mar. 05, 2026. [Online]. Available: https://journal.mediapublikasi.id/index.php/bullet

Novianti, S. Putri Agustini Alkadri, and I. Fakhruzi, “Klasifikasi Penyakit Hipertensi Menggunakan Metode Random Forest,” Progresif: Jurnal Ilmiah Komputer, vol. 20, no. 1, pp. 380–392, Feb. 2024.

S. Alia Azhaar, T. Al Mudzakir, H. Yulia Novita, and S. Faisal, “Implementasi Algoritma Support Vector Machine (SVM) dan Random Forest Untuk Klasifikasi Penyakit Hipertensi Berdasarkan Data Kesehatan,” Jurnal Riset Komputer), vol. 12, no. 4, pp. 2407–389, 2025, doi: 10.30865/jurikom.v12i4.8744.

N. Hidayati, J. Suntoro, and G. G. Setiaji, “Perbandingan Algoritma Klasifikasi untuk Prediksi Cacat Software dengan Pendekatan CRISP-DM,” Jurnal Sains dan Informatika, vol. 7, no. 2, pp. 117–126, Nov. 2021, doi: 10.34128/jsi.v7i2.313.

R. F. N. Iskandar, D. H. Gutama, D. P. Wijaya, and D. Danianti, “Klasifikasi Menggunakan Metode Random Forest untuk Awal Deteksi Diabetes Melitus Tipe 2,” Jurnal Teknik Industri Terintegrasi, vol. 7, no. 3, pp. 1620–1626, Jul. 2024, doi: 10.31004/jutin.v7i3.26916.

Suci Amaliah, M. Nusrang, and A. Aswi, “Penerapan Metode Random Forest Untuk Klasifikasi Varian Minuman Kopi di Kedai Kopi Konijiwa Bantaeng,” VARIANSI: Journal of Statistics and Its application on Teaching and Research, vol. 4, no. 3, pp. 121–127, Dec. 2022, doi: 10.35580/variansiunm31.

B. Fathur Rochman and S. Harits Suryawan, “DASHBOARD OF PRODUCTION, UTILIZATION, FUEL AT PT CIPTA KRIDATAMA USING PYTHON AND STREAMLIT,” Pengabdian Kepada Masyarakat), vol. 1, no. 6, 2023.

M. P. Pulungan, A. Purnomo, and A. Kurniasih, “Penerapan SMOTE untuk Mengatasi Imbalance Class dalam Klasifikasi Kepribadian MBTI Menggunakan Naive Bayes Classifier,” Jurnal Teknologi Informasi dan Ilmu Komputer, vol. 11, no. 5, pp. 1033–1042, Oct. 2024, doi: 10.25126/jtiik.2024117989.

Downloads

Published

2026-05-25

PlumX Metrics

Scite Metrics

Altmetric

How to Cite

[1]
L. Luqman, Ahmad Subhan Yazid, Dita Danianti, and Dhina Puspasari Wijaya, “PREDICTION OF HYPERTENSION COMORBIDITIES USING THE RANDOM FOREST ALGORITHM (CASE STUDY AT PUSKESMAS KASIHAN 2)”, JKBTI, vol. 5, no. 2, pp. 344–352, May 2026.

Issue

Section

Articles