Comparative Evaluation of Machine Learning Models for Heart Disease Prediction: Performance, Calibration, Threshold Selection, and Explainability
This study evaluates five machine learning models on the Cleveland Heart Disease dataset, finding that logistic regression with a calibrated threshold of 0.552 achieved the best performance (85.71% accuracy and 0.939 ROC-AUC) while identifying major vessels, chest pain type, and thallium test results as key predictors, though the authors emphasize the need for external validation before generalizing these findings to diverse populations.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Heart disease remains the world's leading cause of death, claiming millions of lives annually, with a disproportionate burden falling on low- and middle-income nations. In the modern era, doctors and researchers increasingly turn to machine learning to spot the subtle patterns in patient data that signal rising risk before a crisis occurs. These computer programs act as powerful tools for sifting through complex medical histories, looking for connections between factors like age, blood pressure, and cholesterol levels to predict who might develop heart disease. However, while these tools show great promise, their real-world value depends entirely on how they are tested. A model that performs well on a small, specific group of patients might fail completely when applied to a different population. To be truly useful, a prediction tool must not only guess correctly often enough but also provide reliable probabilities and work consistently across different types of people.
A team of researchers from universities in Uganda and Victoria set out to test five different machine learning approaches using a well-known collection of heart health records. Their goal was not just to find the single most accurate computer program, but to understand how these programs behave, how they make their decisions, and whether they remain reliable when the data changes slightly. They worked with a dataset containing 303 patient records, each describing a person's age, blood pressure, cholesterol, heart rate, and results from specific cardiac tests. The researchers split this data into two groups: a larger group to teach the computer programs what to look for, and a smaller, separate group to test how well the programs performed on patients they had never seen before. They ensured the split was fair, keeping the same proportion of sick and healthy patients in both groups.
After training the five different models, the researchers found that a method called logistic regression emerged as the most balanced and reliable performer. This approach correctly identified heart disease in about 85 out of every 100 patients in the test group. More importantly, it did so with a high degree of precision, meaning it rarely flagged healthy people as sick, and it was also very good at catching actual cases of the disease. While other models, such as random forests and decision trees, showed promise, they either made more mistakes in identifying sick patients or struggled to distinguish them from healthy ones as effectively. One model, known as Bayes, was excellent at finding sick patients but was too eager to sound the alarm, incorrectly labeling many healthy people as having heart disease. The logistic regression model stood out because it offered the best overall combination of catching the disease and avoiding false alarms.
The study also looked closely at how these models make their final yes-or-no decisions. By default, many computer programs decide a patient is sick if their calculated risk score is above 50 percent. The researchers tested whether changing this cutoff point to a slightly higher number would improve the results. They found that raising the threshold did not make the model more accurate overall; it simply shifted the balance. It made the model slightly better at avoiding false alarms but slightly worse at catching actual cases. This suggests that for this specific dataset, the standard setting was already quite well-tuned, and simply tweaking the numbers did not solve the underlying limitations of the data.
Beyond raw accuracy, the researchers examined which factors the models relied on most to make their predictions. By systematically shuffling the data to see which pieces were most critical, they discovered that the number of major blood vessels visible in an angiogram, the specific type of chest pain a patient reported, and the results of a thallium stress test were the most powerful predictors. These findings align with established medical knowledge, confirming that the computer models were learning from the most clinically relevant signals rather than random noise. The study also explored how the models performed across different groups, noting that the system worked slightly better for women than for men and showed different patterns across age groups, though the small number of patients in some categories meant these observations were preliminary.
A crucial part of the research involved testing how the models would behave if they were trained on more data. The researchers simulated this by gradually increasing the amount of information the models received during training. They observed that as the training set grew, the models became more consistent and reliable, suggesting that the current performance was limited by the small size of the available data rather than a flaw in the algorithms themselves. The study concludes that while logistic regression is the strongest tool among those tested for this specific dataset, the results cannot be immediately applied to all populations. The data used came from a specific historical collection and does not represent the diverse patient populations found in sub-Saharan Africa or other regions. Before these tools can be used to guide clinical decisions for new groups of people, they must be tested on larger, independent datasets that reflect the real-world diversity of patients. Until then, these findings serve as a rigorous benchmark, showing that careful evaluation and transparency are just as important as the accuracy numbers themselves.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.