Study on Basic Machine Learning Techniques to Detect and Classify Cardiovascular Diseases

Document Type

Article

Publication Date

1-1-2026

Abstract

The heart is an essential organ required to maintain the general health of individuals. Cardiovascular diseases (CVDs) have become the leading cause of death globally, replacing cancer and diabetes. Computer-based techniques have made it easier for physicians to diagnose various cardiac conditions, including heart failure. We are currently in the “information age,” a period characterized by the generation of millions of bytes of data every day. By applying ML algorithms’ techniques, such as Random Forest (RF), XGBoost, KNN, and GaussianNB, we can evaluate and compare the performance of machine learning classifiers for heart disease prediction and transform these data into information for the estimation of heart disease. The World Health Organization has estimated that in 2019, cardiac disease was responsible for 32% of all deaths worldwide. In this paper, we use a public data set (Indicators of Heart Disease) and hyperparameters to develop four classifiers—the Random Forest, XGBoost, KNN, and GaussianNB—and compare their performance. Based on the trial data, XGBoost was the best, with an accuracy of 91.63%, a precision of 94.40%, a recall of 88.50%, an F1-score of 91.36%, a specificity of 94.75%, and an AUC score of 97.39%. This study showcases the accuracy of machine learning systems in predicting cardiac conditions and can serve as a foundation for developing a decision-support tool aimed at detecting and preventing heart disease in its early stages.

Keywords

accuracy, cardiovascular disease, GaussianNB, heart disease, K-nearest neighbor, Machine learning, random forest, XGBoost

Publication Title

Revista Internacional De Metodos Numericos Para Calculo Y Diseno En Ingenieria

ISSN

02131315

DOI

10.23967/j.rimni.2026.10.74340

Volume

42

Issue

3

Share

COinS