Heart Disease Prediction Using Support Vector Machine (SVM) Classification Based on Clinical Data

Authors

  • Leonita Yulyta Agustin Politeknik Negeri Jember
  • Nur Alisa Qiroati Sholeha Politeknik Negeri Jember
  • Siti Aisa Nur Apriliana Politeknik Negeri Jember
  • Niyalatul Muna Politeknik Negeri Jember

DOI:

https://doi.org/10.67580/nexura.v1i1.34

Keywords:

Heart Disease, Support Vector Machine, Classification, Machine Learning, Clinical Prediction

Abstract

Heart disease is the leading cause of death globally and requires an accurate early prediction system. This study aimed to develop a heart disease classification model using the Support Vector Machine (SVM) method with a Radial Basis Function (RBF) kernel based on the Heart Disease Dataset, which consists of 100 patient records and 13 clinical attributes. The research stages included data preprocessing, feature standardization using StandardScaler, data splitting with an 80:20 ratio, SVM model training, and evaluation using accuracy, precision, recall, F1-score, and confusion matrix metrics. The evaluation results showed that the SVM model with the RBF kernel achieved an accuracy of 85%, with a precision of 0.83 for the negative class and 1.00 for the positive class, recall of 1.00 for the negative class and 0.40 for the positive class, and F1-score of 0.91 for the negative class and 0.57 for the positive class. The confusion matrix produced TN=15, FP=0, FN=3, and TP=2. The low recall of the positive class indicates the model’s limitation in detecting actual heart disease cases (false negatives), mainly caused by class imbalance in the dataset (77 negative : 23 positive) and the limited sample size. Prediction on new clinical data resulted in class 0 (negative), although the data were actually classified as positive, confirming the model’s tendency to produce false negatives in borderline cases. This study highlights the potential of SVM as a tool for early heart disease diagnosis while emphasizing the importance of handling class imbalance and hyperparameter optimization to improve model sensitivity.

References

[1] World Health Organization, “Cardiovascular diseases (CVDs) — Fact Sheet,” World Health Organization, 2023. [Online]. Available: https://www.who.int/news-room/fact-sheets/detail/cardiovascular-diseases-%28cvds%29. [Accessed: Jun. 2, 2026].

[2] G. A. Roth et al., “Global, Regional, and National Burden of Cardiovascular Diseases and Risk Factors in 204 Countries and Territories, 1990–2023,” Journal of the American College of Cardiology, 2025, doi: 10.1016/j.jacc.2025.08.015.

[3] R. Kumar et al., “A Comprehensive Review of Machine Learning for Heart Disease Prediction: Challenges, Trends, Ethical Considerations, and Future Directions,” Frontiers in Artificial Intelligence, vol. 8, Art. no. 1583459, 2025.

[4] F. M. Natsir, R. Y. Bakti, and T. Wahyuni, “Analisis Deteksi Dini Penyakit Jantung dengan Pendekatan Support Vector Machine pada Data Pasien [Early Detection Analysis of Heart Disease Using a Support Vector Machine Approach on Patient Data],” Arus Jurnal Sains dan Teknologi (AJST), vol. 2, no. 2, pp. 437–446, Oct. 2024.

[5] S. A. Aini, D. Fitriani, M. A. Awwalin, A. A. R. Ramadhan, and I. W. D. Prastya, “Klasifikasi Penyakit Jantung Berdasarkan Faktor Klinis Menggunakan Algoritma XG Boost, Random Forest, Support Vector Machine (SVM) dan K-Nearest Neighbor (KNN) [Heart Disease Classification Based on Clinical Factors Using XGBoost, Random Forest, Support Vector Machine (SVM), and K-Nearest Neighbor (KNN)],” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 10, no. 2, pp. 3449–3454, Apr. 2026.

[6] G. A. Pamungkas, R. Rahmadewi, and I. P. Sary, “Klasifikasi Risiko Penyakit Jantung Menggunakan Algoritma Support Vector Machine (SVM) [Heart Disease Risk Classification Using the Support Vector Machine (SVM) Algorithm],” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 9, no. 3, pp. 5438–5443, Jun. 2025.

[7] J. K. Nainggolan, F. Sinaga, A. M. Sitorus, A. Khairia, and B. A. Wijaya, “Analisa Komparasi dengan Algoritma K-Nearest Neighbor (KNN) dan Support Vector Machine (SVM) untuk Prediksi Penyakit Jantung [Comparative Analysis of K-Nearest Neighbor (KNN) and Support Vector Machine (SVM) Algorithms for Heart Disease Prediction],” DINAMIK, vol. 30, no. 2, pp. 297–306, 2025.

[8] H. Hasanah and Nurmalitasari, “Perbandingan Tingkat Akurasi Algoritma Support Vector Machines (SVM) dan C4.5 dalam Prediksi Penyakit Jantung [Comparison of the Accuracy Levels of Support Vector Machine (SVM) and C4.5 Algorithms in Heart Disease Prediction],” in Proceedings of the National Seminar on Technology and Science 2023, Kediri, Indonesia, Jan. 2023, vol. 2, pp. 13–18.

[9] M. D. F. Tino, H. Hasanah, and T. D. Santosa, “Perbandingan Algoritma Support Vector Machines (SVM) dan Neural Network untuk Klasifikasi Penyakit Jantung [Comparison of Support Vector Machine (SVM) and Neural Network Algorithms for Heart Disease Classification],” INFOTECH Journal, vol. 3, no. 1, pp. 232–235, May 2023.

[10] D. Setiawan, A. Muhammad, and S. H. F. Dewi, “Penerapan Algoritma Klasifikasi untuk Deteksi Dini Penyakit Jantung Koroner Berdasarkan Gejala Klinis [Application of Classification Algorithms for Early Detection of Coronary Heart Disease Based on Clinical Symptoms],” Teknik: Jurnal Ilmu Teknik dan Informatika, vol. 5, no. 1, pp. 18–26, May 2025.

[11] N. L. Fitriyani, M. Syafrudin, G. Alfian, and J. Rhee, “HDPM: An Effective Heart Disease Prediction Model for a Clinical Decision Support System,” IEEE Access, vol. 8, pp. 133034–133050, 2020.

[12] J. P. Li, A. U. Haq, S. U. Din, J. Khan, A. Khan, and A. Saboor, “Heart Disease Identification Method Using Machine Learning Classification in E-Healthcare,” IEEE Access, vol. 8, pp. 107562–107582, Jun. 2020.

[13] S. Mohan, C. Thirumalai, and G. Srivastava, “Effective Heart Disease Prediction Using Hybrid Machine Learning Techniques,” IEEE Access, vol. 7, pp. 81542–81554, Jun. 2019.

[14] M. M. Ali, B. K. Paul, K. Ahmed, F. M. Bui, J. M. W. Quinn, and M. A. Moni, “Heart Disease Prediction Using Supervised Machine Learning Algorithms: Performance Analysis and Comparison,” Computers in Biology and Medicine, vol. 136, p. 104672, Sep. 2021.

[15] P. Ghosh, S. Azam, M. Jonkman, A. Karim, F. M. J. M. Shamrat, E. Ignatious, S. Shultana, A. R. Beeravolu, and F. De Boer, “Efficient Prediction of Cardiovascular Disease Using Machine Learning Algorithms With Relief and LASSO Feature Selection Techniques,” IEEE Access, vol. 9, pp. 19304–19326, Jan. 2021.

[16] R. Katarya and S. K. Meena, “Machine Learning Techniques for Heart Disease Prediction: A Comparative Study and Analysis,” Health and Technology, vol. 11, no. 1, pp. 87–97, Jan. 2021, doi: 10.1007/s12553-020-00505-7.

[17] A. Rahim, Y. Rasheed, F. Azam, M. W. Anwar, M. A. Rahim, and A. W. Muzaffar, “An Integrated Machine Learning Framework for Effective Prediction of Cardiovascular Diseases,” IEEE Access, vol. 9, pp. 106575–106588, Jul. 2021.

[18] G. N. Ahmad, H. Fatima, S. Ullah, A. S. Saidi, and Imdadullah, “Efficient Medical Diagnosis of Human Heart Diseases Using Machine Learning Techniques With and Without GridSearchCV,” IEEE Access, vol. 10, pp. 80151–80173, 2022.

[19] M. Swathy and K. Saruladha, “A Comparative Study of Classification and Prediction of Cardio-Vascular Diseases (CVD) Using Machine Learning and Deep Learning Techniques,” ICT Express, vol. 8, no. 1, pp. 109–116, Mar. 2022.

[20] S. Subramani et al., “Cardiovascular Diseases Prediction by Machine Learning Incorporation with Deep Learning,” Frontiers in Medicine, vol. 10, p. 1150933, Apr. 2023.

[21] M. Pal, S. Parija, G. Panda, K. Dhama, and R. K. Mohapatra, “Risk Prediction of Cardiovascular Disease Using Machine Learning Classifiers,” Open Medicine, vol. 17, no. 1, pp. 1100–1113, Jun. 2022.

[22] E. Owusu, P. Boakye-Sekyerehene, J. K. Appati, and J. Y. Ludu, “Computer-Aided Diagnostics of Heart Disease Risk Prediction Using Boosting Support Vector Machine,” Scientific Programming, vol. 2021, Art. no. 3152618, Dec. 2021.

Downloads

Published

2026-06-30

How to Cite

Agustin, L. Y., Sholeha, N. A. Q., Apriliana, S. A. N., & Muna, N. (2026). Heart Disease Prediction Using Support Vector Machine (SVM) Classification Based on Clinical Data. Journal of Public Health and Community Systems, 1(1), 50–65. https://doi.org/10.67580/nexura.v1i1.34

Issue

Section

Articles

Most read articles by the same author(s)

Similar Articles

You may also start an advanced similarity search for this article.