Perbandingan Logistic Regression dan  Random Forest untuk Prediksi Risiko Stroke

Authors

  • Aldrey Diriyah Sumatera Institute of Technology image/svg+xml Author
  • Affan Alfarabi Institut Teknologi Sumatera Author
  • Fadhlurrohman Arif Mukhlis Sumatera Institute of Technology image/svg+xml Author
  • Putri Nuriya Salsabila Institut Teknologi Sumatera Author
  • I Gde Eka Dirgayussa Institut Teknologi Sumatera Author
  • Nurul Maulidiyah Institut Teknologi Sumatera Author

DOI:

https://doi.org/10.30998/string.v11i1.3094

Keywords:

Health Data, Logistic Regression, Machine Learning, Random Forest

Abstract

Stroke is a leading cause of global mortality that requires early detection through artificial intelligence technologies. This study aims to conduct a comparative analysis between Logistic Regression and Random Forest models in predicting stroke risk based on health and lifestyle data. The study utilized the Stroke Prediction Dataset, which underwent preprocessing, standardization, and class imbalance handling. Model performance was evaluated using Accuracy, Precision, Recall, and ROC-AUC metrics. The results demonstrate that Random Forest significantly outperformed Logistic Regression with an AUC value of 0.990 compared to 0.892. Random Forest proved to be more effective for medical screening, achieving a Recall of 96.29%, which is substantially higher than Logistic Regression at 83.71%. Furthermore, Random Forest demonstrated superior capability in capturing non-linear data patterns in complex variables such as BMI. It is concluded that Random Forest is the recommended method for stroke early detection systems due to its ability to minimize undetected positive cases (false negatives).

Downloads

Download data is not yet available.

Downloads

Published

2026-08-05

Issue

Section

Articles

How to Cite

Diriyah, A., Alfarabi, A., Mukhlis, F. A., Salsabila, P. N., Dirgayussa, I. G. E., & Maulidiyah, N. (2026). Perbandingan Logistic Regression dan  Random Forest untuk Prediksi Risiko Stroke. STRING (Satuan Tulisan Riset Dan Inovasi Teknologi), 11(1), 1–10. https://doi.org/10.30998/string.v11i1.3094