RABIT: Jurnal Teknologi dan Sistem Informasi Univrab
Vol 10 No 2 (2025): Juli

PERBANDINGAN ALGORITMA MACHINE LEARNING: SVM, RANDOM FOREST, DAN XGBOOST UNTUK PREDIKSI STROKE: COMPARISON OF MACHINE LEARNING ALGORITHMS: SVM, RANDOM FOREST, AND XGBOOST FOR STROKE PREDICTION

Hanifah Afkar Nabila (Teknik Informatika, Fakultas Ilmu Komunikasi dan Informatika, Universitas Muhammadiyah Surakarta)
Endang Wahyu Pamungkas (Universitas Muhammadiyah Surakarta)



Article Info

Publish Date
17 Jul 2025

Abstract

Stroke is a leading cause of death and disability worldwide, making early detection essential. This study compares three machine learning algorithms Support Vector Machine (SVM), Random Forest, and XGBoost for stroke prediction. The dataset includes Kaggle data for training and clinical data from Indonesian primary healthcare (Puskesmas) for external validation. Pre-processing involved handling missing values, encoding categorical features, normalization, and balancing using SMOTE. Performance was evaluated using accuracy, precision, recall, F1-score, AUC-ROC and AUC-PRC. Unlike most prior studies, this research incorporates clinical data to assess generalizability in real-world settings. Results show that Random Forest and XGBoost outperform SVM, especially with clinical data. This study contributes a practical perspective by validating models using local datasets and emphasizes the importance of robust algorithms and external validation in medical prediction systems.

Copyrights © 2025






Journal Info

Abbrev

rabit

Publisher

Subject

Computer Science & IT Engineering

Description

This journal is called RABIT, where the name comes from two words namely, RAB which means Abdurrab University and IT which means information technology, it can be interpreted as a journal of this journal Journal of Informatics Engineering Study Program Pekanbaru Abdurrab University. This RABIT ...