Stroke Risk Prediction based on SVM and XGBoost Algorithms with SMOTE-ENN

Rianindya Chandra Hardika, Dedy Mirwansyah, Abadi Nugroho

Abstract


Stroke is a neurological disorder that requires early risk identification. One of the challenges in stroke prediction using machine learning is class imbalance, which can cause models to favor the majority class. This study aims to compare the performance of Support Vector Machine (SVM) and Extreme Gradient Boosting (XGBoost) for stroke prediction using the Synthetic Minority Over-sampling Technique–Edited Nearest Neighbours (SMOTE-ENN). The dataset used was the Stroke Prediction Dataset, consisting of 43,400 records and 12 attributes. The research procedure included data preprocessing, an 80:20 train-test split, application of SMOTE-ENN to the training data, SVM and XGBoost model training, and evaluation using accuracy, precision, recall, F1-score, confusion matrix, ROC-AUC, and computational time. The results show that SMOTE-ENN successfully increased the representation of the stroke class from 1.8% to a balanced distribution in the training data. The SMOTE-ENN-XGBoost model achieved an accuracy of 96.96%, precision of 96.83%, recall of 97.11%, and F1-score of 96.97%, with a training time of 4.68 seconds. In comparison, the SMOTE-ENN-SVM model achieved an accuracy of 90.13%, precision of 88.07%, recall of 92.83%, and F1-score of 90.39%, with a training time of 21.2 minutes. These results indicate that SMOTE-ENN-XGBoost provides better classification performance and computational efficiency than SMOTE-ENN-SVM for stroke prediction. The findings suggest that applying SMOTE-ENN with XGBoost can support stroke risk detection with high classification performance and more efficient computational time.

Keywords


machine learning; SMOTE-ENN, stroke; SVM; XGBoost

Full Text:

PDF

References


R. M. D. Saputra, Y. Chairul, D. Riana, A. S. Hewiz, and F. Aziz, “Stroke Prediction based on Random Forest with SMOTE,” 2023 Int. Conf. Inf. Technol. Res. Innov. ICITRI 2023, pp. 17–21, 2023, DOI: 10.1109/ICITRI59340.2023.10249261.

K. Sundaram, B. Lanitha, K. Kamaraj, and A. K. Ramamoorthy, “Enhanced Brain Stroke Prediction: An Ensemble of Random Forest, Logistic Regression and XGBoost,” 2nd Int. Conf. Emerg. Res. Comput. Sci. ICERCS 2024, pp. 1–5, 2024, DOI: 10.1109/ICERCS63125.2024.10895046.

Y. Wang and Y. Guo, “Forecasting Method of Stock Market Volatility in Time Series Data based on Mixed Model of ARIMA and XGBoost,” China Commun., Vol. 17, No. 3, pp. 205–221, 2020, DOI: 10.23919/JCC.2020.03.017.

Y. Zhou, X. Song, and M. Zhou, “Supply Chain Fraud Prediction based on XGBoost Method,” 2021 IEEE 2nd Int. Conf. Big Data, Artif. Intell. Internet Things Eng. ICBAIE 2021, No. Icbaie, pp. 539–542, 2021, DOI: 10.1109/ICBAIE52039.2021.9389949.

K. Subramanian, J. B. Rawlings, and C. T. Maravelias, “Economic Model Predictive Control for Inventory Management in Supply Chains,” Comput. Chem. Eng., Vol. 64, pp. 71–80, 2014, DOI: 10.1016/j.compchemeng.2014.01.003.

S. Sidiq, Alfian, and N. Shobi Mabrur, “Pengembangan Model Prediksi Risiko Diabetes menggunakan Pendekatan AdaBoost dan Teknik Oversampling SMOTE,” J. Ilm. Inform. Dan Ilmu Komput., Vol. 4, pp. 13–23, 2025, [Online]. Available: https://doi.org/10.58602/jima-ilkom.v4i1.41

L. Oktovianus, A. Linardi, B. A. Makalew, and I. K. Wairooy, “Comparative Analysis of KNN and SVM Algorithms for Diabetes Prediction,” Proc. - 6th Int. Conf. Informatics, Multimedia, Cyber Inf. Syst. ICIMCIS 2024, pp. 631–636, 2024, DOI: 10.1109/ICIMCIS63449.2024.10957572.

P. Budi Utomo, M. Faruqziddan, E. Herdika Septa Aulia, and S. Dini Azzahra, “Perbandingan Skenario Balancing Oversampling dan Undersampling dalam Klasifikasi Risiko Kambuh Kanker Tiroid menggunakan Algoritma SVM Linear,” JAMI J. Ahli Muda Indones., Vol. 5, No. 2, pp. 172–182, 2024, DOI: 10.46510/jami.v5i2.320.

F. I. Kurniadi and H. A. Saputri, “Feature Selection using XGBoost on METABRIC Dataset for Survivability Breast Cancer Detection,” Proc. 2024 Int. Conf. Inf. Manag. Technol. ICIMTech 2024, pp. 259–262, 2024, DOI: 10.1109/ICIMTech63123.2024.10780791.

T. N. Deepthi, S. Sharmila, M. Swarna, M. Gouthami, and C. L. Akshaya, “Prediction of Brain Stroke in Human Beings using Machine Learning,” Proc. 2023 2nd Int. Conf. Electron. Renew. Syst. ICEARS 2023, pp. 1314–1320, 2023, DOI: 10.1109/ICEARS56392.2023.10085128.

U. K. Giri, M. Saxena, D. Bordoloi, R. Tripathy, S. K. Mohapatra, and P. Kumar Sarangi, “Machine Learning Model for Heart Disease Detection: A Comparative Analysis of SVM vs KNN,” 2024 Int. Conf. Electr. Electron. Comput. Technol. ICEECT 2024, Vol. 1, pp. 1–5, 2024, DOI: 10.1109/ICEECT61758.2024.10739169.

S. Rachel, S. Monicka, B. Abirami, and A. Kiruthika, “Heart Disease Prediction of an Individual using SVM Algorithm,” 2025 Int. Conf. Comput. Commun. Technol. ICCCT 2025, pp. 1–4, 2025, DOI: 10.1109/ICCCT63501.2025.11019575.

L. M. I. Leo Joseph, E. H. Reddy, M. Srinidhi, P. V. Saketh, D. Mohan, and C. Rajendra Prasad, “Predicting Real-Time House Prices: A Machine Learning Approach using XGBoost Algorithm,” 2024 Asia Pacific Conf. Innov. Technol. APCIT 2024, pp. 1–4, 2024, DOI: 10.1109/APCIT62007.2024.10673571.

J. K. Kanimozhi, G. Kalasurya, P. Anitha, R. Geetha, E. Loganathan, and C. A. Kandasamy, “Comparing SVM and KNN Algorithm for High Accuracy in Brain Tumor Prediction,” 2025 Int. Conf. Comput. Technol. Data Commun. ICCTDC 2025, pp. 1–6, 2025, DOI: 10.1109/ICCTDC64446.2025.11158881.

F. A. Kusuma and B. Prasetyo, “Pemodelan Klasifikasi Anemia Aplastik menggunakan Teknik Oversampling dan K-Nearest Neighbors,” J. Inform. dan Tek. Elektro Terap., Vol. 12, No. 3, 2024, DOI: 10.23960/jitet.v12i3.4326.

K. Sulthana, F. Begum, G. B. Regulwar, S. K. Rout, V. Dasari, and B. Abhilash, “Parkinson’s Disease Prediction using XGBoost and SVM,” 2023 2nd Int. Conf. Ambient Intell. Heal. Care, ICAIHC 2023, 2023, DOI: 10.1109/ICAIHC59020.2023.10431437.

R. C. Hardika, F. Anggara, and M. A. M. Abrori, “Prediksi Safety Stock menggunakan Algoritma Support Vector Regression dengan Optimasi Hyperparameter,” Progresif J. Ilm. Komput., Vol. 22, No. 1, p. 64, 2026, DOI: 10.35889/progresif.v22i1.3386.

F. Anggara, R. C. Hardika, A. P. Rahayu, and M. A. M. Abrori, “Efektivitas Kinerja Algoritma SVM dengan Teknik ADASYN untuk Deteksi Gangguan Kecemasan Mahasiswa,” J. Nas. Komputasi dan Teknol. Inf., Vol. 9, No. 1, pp. 45–53, 2026, DOI: https://doi.org/10.32672/jnkti.v9i1.10244.




DOI: https://doi.org/10.32520/stmsi.v15i9.6894

Article Metrics

Abstract view : 0 times
PDF - 0 times

Refbacks

  • There are currently no refbacks.


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.