Classification of Heart (Cardiovascular) Disease using the SVM Method

Authors

  • Minhajul Abidin Universitas Qamarul Huda Badaruddin Bagu , Indonesia Author
  • Misbahul Munzir Universitas Qamarul Huda Badaruddin Bagu , Indonesia Author
  • Adi Imantoyo Hankuk University of Foreign Studies , Korea, Republic of Author
  • Nuraqilla Waidha Bintang Grendis Universitas Qamarul Huda Badaruddin , Indonesia Author
  • Ahmad Syahrul Hadi San Universiti Tun Hussein Onn Malaysia , Malaysia Author
  • Ahmed A. Mostfa University of Al Hamdaniya , Iraq Author
  • Furizal Furizal Peneliti Teknologi Teknik Indonesia , Indonesia Author
  • Abdel-Nasser Sharkawy South Valley University , Egypt Author

DOI:

https://doi.org/10.64021/ijmst.1.1.9-15.2025

Keywords:

cardiovascular, classification, gridsearchcv, heart disease prediction, support vector machine

Abstract

Cardiovascular disease is one of the leading causes of death worldwide, with a high mortality rate, especially in developing countries like Indonesia. This highlights the importance of developing systems to identify and detect heart disease at an early stage. In this study, the Support Vector Machine (SVM) algorithm was used to classify cardiovascular diseases by utilizing a dataset consisting of 303 patient records obtained from Kaggle. The dataset was divided into 70% for training and 30% for testing. Before optimization using GridSearchCV, the SVM model achieved an accuracy of 79%, precision of 79%, recall of 73%, and F1-score of 76%. However, after adjusting the hyperparameters with GridSearchCV, the model's accuracy slightly decreased to 77%, with precision remaining at 79%, recall dropping to 66%, and F1-score at 72%. Despite this decline in performance after optimization, the results indicate that although SVM has potential for classifying heart disease, its performance is highly influenced by data quality and the selection of appropriate hyperparameters. Even with the performance decrease postoptimization, the model still provides useful predictions, showing consistent results and a proportional class distribution.

References

H. Hasanah and Nurmalitasari, “Perbandingan Tingkat Akurasi Algoritma Support Vector Machines (SVM) dan C45 dalam Prediksi Penyakit Jantung,” Pros. Semin. Nas. Teknol. dan Sains, vol. 2, pp. 13–18, 2023.

J. Teknik Elektro dan Komputasi et al., “Implementasi Algoritma Naïve Bayes dan Support Vector Machine (SVM) Pada Klasifikasi Penyakit Kardiovaskular,” J. Tek. Elektro dan Komputasi, vol. 4, no. 2, pp. 207–214, 2022, [Online]. Available: http://jurnal.unmuhjember.ac.id/index.php/ELKOM/article/view/7691

S. N. N. Arif, A. M. Siregar, S. Faisal, and A. R. Juwita, “Klasifikasi Penyakit Serangan Jantung Menggunakan Metode Machine Learning K Nearest Neighbors (KNN) dan Support Vector Machine (SVM),” J. Media Inform. Budidarma, vol. 8, no. 3, p. 1617, 2024, doi: 10.30865/mib.v8i3.7844.

M. A. Bianto, K. Kusrini, and S. Sudarmawan, “Perancangan Sistem Klasifikasi Penyakit Jantung Mengunakan Naïve Bayes,” Creat. Inf. Technol. J., vol. 6, no. 1, p. 75, 2020, doi: 10.24076/citec.2019v6i1.231.

S. Syarli and A. A. Muin, “Metode Naive Bayes Untuk Prediksi Kelulusan (Studi Kasus: Data Mahasiswa Baru Perguruan Tinggi),” J. Ilmu Komput., vol. 2, no. 1, pp. 22–26, 2018, [Online]. Available: https://fikomunasman.ac.id/ejournal/index.php/jikom/article/view/26/17

P. A. Octaviani, Yuciana Wilandari, and D. Ispriyanti, “Penerapan Metode Klasifikasi Support Vector Machine (SVM) pada Data Akreditasi Sekolah Dasar (SD) di Kabupaten Magelang,” J. Gaussian, vol. 3, no. 8, pp. 811–820, 2014, [Online]. Available: http://download.portalgaruda.org/article.php?article=286497&val=4706&title=PENERAPAN METODE KLASIFIKASI SUPPORT VECTOR MACHINE (SVM) PADA DATA AKREDITASI SEKOLAH DASAR (SD) DI KABUPATEN MAGELANG

A. Putranto, N. L. Azizah, and A. I. Ratna Ika, “Sistem Prediksi Penyakit Jantung Berbasis Web Menggunakan Metode SVM dan Framework Streamlit,” J. Penerapan Sist. Inf. (Komputer Manajemen), vol. 4, no. 2, pp. 442–452, 2023, [Online]. Available: https://archive.ics.uci.edu/ml/datasets/heart+disease

S. Nurajizah, “Penerapan Metode Support Vector Machine Berbasis Particle Swarm Optimization Untuk Prediksi Penyakit Jantung,” J. Techno Nusa Mandiri, vol. 10, no. 1, pp. 216–266, 2013, [Online]. Available:http://www.bsi.ac.id

L. N. Farida and S. Bahri, “Komputika : Jurnal Sistem Komputer Klasifikasi Gagal Jantung Menggunakan Metode SVM ( Support Vector Machine ) Classification of Heart Failure using the SVM ( Support Vector Machine) Method,” vol. 13, pp. 0–7, 2025, doi: 10.34010/komputika.v13i2.11330.

D. A. Anggoro and D. Permatasari, “Performance Comparison of the Kernels of Support Vector Machine Algorithm for Diabetes Mellitus Classification,” Int. J. Adv. Comput. Sci. Appl., vol. 14, no. 1, pp. 580–585, 2023, doi: 10.14569/IJACSA.2023.0140163.

C. Aroef, Y. Rivan, and Z. Rustam, “Comparing random forest and support vector machines for breast cancer classification,” Telkomnika (Telecommunication Comput. Electron. Control., vol. 18, no. 2, pp. 815–821, 2020, doi: 10.12928/TELKOMNIKA.V18I2.14785.

S. Adi and A. Wintarti, “Komparasi Metode Support Vector Machine (Svm), K-Nearest Neighbors (Knn), Dan Random Forest (Rf) Untuk Prediksi Penyakit Gagal Jantung,” MATHunesa J. Ilm. Mat., vol. 10, no. 2, pp. 258–268, 2022, doi: 10.26740/mathunesa.v10n2.p258-268.

E. Suryati, Styawati, and A. A. Aldino, “Analisis Sentimen Transportasi Online Menggunakan Ekstraksi Fitur Model Word2vec Text Embedding Dan Algoritma Support Vector Machine (SVM),” J. Teknol. Dan Sist. Inf., vol. 4, no. 1, pp. 96–106, 2023, [Online]. Available: https://doi.org/10.33365/jtsi.v4i1.2445

V. Blanco, A. Japón, and J. Puerto, “A mathematical programming approach to SVM-based classification with label noise,” Comput. Ind. Eng., vol. 172, no. PA, p. 108611, 2022, doi: 10.1016/j.cie.2022.108611.

A. Gilardi, R. Borgoni, and J. Mateu, “a Nonseparable First-Order Spatiotemporal Intensity for Events on Linear Networks: an Application To Ambulance Interventions,” Ann. Appl. Stat., vol. 18, no. 1, pp. 529–554, 2024, doi: 10.1214/23-AOAS1800.

Z. Maisat, E. Darmawan, and A. Fauzan, “Implementasi Optimasi Hyperparameter GridSearchCV Pada Sistem Prediksi Serangan Jantung Menggunakan SVM Implementation of GridSearchCV Hyperparameter Optimization in Heart Attack Prediction System Using SVM,” Unipdu, vol. 13, no. 1, pp. 8–15, 2023.

D. Chicco and G. Jurman, “The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation,” BMC Genomics, vol. 21, no. 1, pp. 1–13, 2020, doi: 10.1186/s12864-019-6413-7.

L. Qadrini, “Undersampling dan K-Fold Random Forest Untuk Klasifikasi Kelas Tidak Seimbang,” Build. Informatics, Technol. Sci., vol. 4, no. 4, pp. 1967–1974, 2023, doi: 10.47065/bits.v4i4.3141.

C. A. Choquette-Choo, F. Tramèr, N. Carlini, and N. Papernot, “Label-Only Membership Inference Attacks,” Proc. Mach. Learn. Res., vol. 139, pp. 1964–1974, 2021.

M. Shorfuzzaman and M. S. Hossain, “MetaCOVID: A Siamese neural network framework with contrastive loss for n-shot diagnosis of COVID-19 patients,” Pattern Recognit., vol. 113, p. 107700, 2021, doi: 10.1016/j.patcog.2020.107700.

Downloads

Published

2025-01-12

Issue

Section

Articles

How to Cite

Classification of Heart (Cardiovascular) Disease using the SVM Method. (2025). Indonesian Journal of Modern Science and Technology, 1(1), 9-15. https://doi.org/10.64021/ijmst.1.1.9-15.2025

Similar Articles

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